html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2615 | Jsonlines export error | Sorry, I was also talking to teven offline so I already had the PR ready before noticing x) | ## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1 | 18 | Jsonlines export error
## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1
Sorry, I was also talking to teven offline so I already had the PR ready before noticing x) | [
-0.3764408230781555,
0.062102749943733215,
-0.02492542751133442,
0.2861751616001129,
0.04461958631873131,
0.08094947785139084,
0.1558462679386139,
0.39717426896095276,
0.051059115678071976,
-0.047636836767196655,
0.3336995244026184,
0.004115537740290165,
0.08341750502586365,
0.15827560424804688,
-0.13219322264194489,
-0.19957774877548218,
0.1929602473974228,
-0.0722634494304657,
0.08719726651906967,
0.23024792969226837,
-0.2315656840801239,
0.26635271310806274,
-0.1839066743850708,
-0.20316289365291595,
-0.4015364944934845,
-0.2735068202018738,
0.15770266950130463,
-0.005099095404148102,
0.043692175298929214,
-0.46156248450279236,
-0.09915031492710114,
-0.28821197152137756,
0.4996252954006195,
0.49229496717453003,
-0.00011962990538449958,
-0.17145085334777832,
0.2876416742801666,
-0.03895755112171173,
-0.20020315051078796,
0.08754242956638336,
-0.4354248046875,
-0.39700597524642944,
-0.04684213548898697,
-0.3596850335597992,
0.38233086466789246,
-0.10171376168727875,
-0.34819504618644714,
-0.458469957113266,
0.6558181047439575,
0.4028029441833496,
0.14248999953269958,
0.016279805451631546,
0.13830940425395966,
0.017078833654522896,
-0.07578962296247482,
0.06951216608285904,
-0.00429711677134037,
0.10235767066478729,
-0.14425146579742432,
0.3273942768573761,
0.24776816368103027,
-0.06330797076225281,
-0.1642431765794754,
-0.27507540583610535,
-0.1225755587220192,
-0.08652006834745407,
-0.09251471608877182,
-0.2516683042049408,
0.19806620478630066,
0.36374393105506897,
0.18418794870376587,
-0.20282629132270813,
-0.14577530324459076,
-0.3202904760837555,
0.07138483971357346,
-0.62425696849823,
0.05028599873185158,
0.5177451968193054,
-0.0037658466026186943,
0.11183986067771912,
-0.22351334989070892,
-0.09080827981233597,
-0.23120370507240295,
-0.02972319722175598,
0.0023629292845726013,
-0.2277643084526062,
-0.11781876534223557,
0.004028603434562683,
-0.16745349764823914,
-0.0984247475862503,
-0.11116678267717361,
-0.22272393107414246,
-0.5720718502998352,
-0.014036259613931179,
-0.1784096658229828,
0.04437384754419327,
0.1368657350540161,
-0.440885990858078,
0.10792215913534164,
-0.04604028910398483,
0.3337438106536865,
-0.3853144645690918,
0.208359494805336,
0.05007508024573326,
0.5481051802635193,
0.19067072868347168,
0.28014683723449707,
-0.11003706604242325,
0.2598356306552887,
-0.02132781222462654,
0.08850130438804626,
-0.07924314588308334,
0.04713816195726395,
-0.20015014708042145,
0.09543253481388092,
0.038546789437532425,
-0.027139762416481972,
-0.098701611161232,
-0.05992720648646355,
0.2017267942428589,
-0.4078754782676697,
-0.15180735290050507,
-0.280791312456131,
-0.18515321612358093,
-0.09836729615926743,
0.22934883832931519,
0.16236889362335205,
0.2720743417739868,
-0.1685679852962494,
-0.10858621448278427,
-0.04240003600716591,
-0.0828758180141449,
-0.07478880882263184,
-0.04330454021692276,
-0.03373116999864578,
-0.15753017365932465,
-0.020363986492156982,
0.2245582491159439,
-0.07424183189868927,
-0.28053635358810425,
-0.10958706587553024,
-0.0356903001666069,
-0.16734403371810913,
0.17966832220554352,
0.28526413440704346,
0.12752549350261688,
-0.16396167874336243,
-0.21393996477127075,
-0.015401042997837067,
0.19687166810035706,
-0.4836387634277344,
-0.07495439052581787,
-0.3604172170162201,
0.1418750286102295,
-0.17853137850761414,
0.11251511424779892,
-0.4827480614185333,
-0.08809716999530792,
0.10055328905582428,
0.17400352656841278,
0.3533981442451477,
-0.2788317799568176,
0.6303645968437195,
-0.2761404812335968,
0.02790280245244503,
0.23053468763828278,
-0.7488189339637756,
0.0958138257265091,
0.1825978308916092,
0.015944961458444595,
0.44960817694664,
0.39536112546920776,
-0.02373485639691353,
0.37704411149024963,
-0.08816598355770111,
0.28357648849487305,
0.10067082196474075,
0.19749830663204193,
0.11717765778303146,
0.4938798248767853,
-0.07221798598766327,
-0.006322387605905533,
0.01841673254966736,
-0.29926156997680664,
0.6212947368621826,
0.10847531259059906,
0.5063620805740356,
0.40432584285736084,
0.03775264695286751,
0.2353626787662506,
-0.2143670916557312,
-0.16883929073810577,
-0.05590244382619858,
-0.18442954123020172,
-0.3852594792842865,
-0.055643729865550995,
0.15880924463272095,
-0.1746254861354828,
0.29622527956962585,
-0.2451874315738678,
0.1185823529958725,
0.466031014919281,
0.08287578821182251,
0.14888054132461548,
0.007620857562869787,
0.30066978931427,
-0.43986815214157104,
-0.1985074281692505,
-0.08823700249195099,
-0.16344280540943146,
-0.12680362164974213,
-0.033722907304763794,
0.1973341405391693,
0.21878932416439056,
-0.03818899020552635,
0.13924580812454224,
0.05120187997817993,
-0.1272219717502594,
-0.14366742968559265,
0.17980459332466125,
-0.006184939295053482,
0.2388719767332077,
0.18224960565567017,
0.02512570284307003,
-0.3140968382358551,
0.28531715273857117,
0.23682624101638794,
-0.20688648521900177,
0.18413951992988586,
0.12206368893384933,
0.16750790178775787,
-0.34015196561813354,
-0.15554362535476685,
0.22376149892807007,
0.025793615728616714,
-0.08694489300251007,
-0.13058894872665405,
0.12461557239294052,
0.12810806930065155,
0.08854994177818298,
-0.12777546048164368,
0.29191485047340393,
-0.061554450541734695,
0.05734158307313919,
-0.13191083073616028,
0.55130934715271,
-0.2694428861141205,
0.3201516270637512,
-0.06762838363647461,
-0.02541753277182579,
0.22795310616493225,
-0.11077788472175598,
-0.044240981340408325,
-0.12894101440906525,
0.2877562940120697,
0.15129591524600983,
-0.18803948163986206,
-0.028311526402831078,
-0.35697826743125916,
0.0031247511506080627,
0.5258999466896057,
0.022396687418222427,
0.030082277953624725,
0.18466949462890625,
-0.021222203969955444,
0.009898655116558075,
0.07386893033981323,
0.06190897151827812,
0.2687598466873169,
0.1387554258108139,
-0.0613800548017025,
0.0710846483707428,
0.2284819334745407,
-0.06771348416805267,
0.2718980312347412,
0.12099289894104004,
0.22851555049419403,
0.31462833285331726,
0.19395209848880768,
0.1624784916639328,
-0.1181255429983139,
-0.43557801842689514,
-0.23856443166732788,
0.11198993027210236,
-0.31849393248558044,
0.29018187522888184,
-0.14276039600372314,
-0.04820554703474045,
-0.4705458879470825,
-0.3678220212459564,
-0.2575357258319855,
-0.30240216851234436,
-0.16738590598106384,
-0.09864452481269836,
-0.474714457988739,
-0.14060279726982117,
-0.11370585858821869,
0.08236163854598999,
0.09370338171720505,
-0.11059080809354782,
0.038836635649204254,
-0.000697301235049963,
-0.1376156210899353,
-0.0897182822227478,
0.018322616815567017,
-0.19322599470615387,
0.1084221675992012,
0.09787710011005402,
0.10402453690767288,
-0.11546044796705246,
0.12399456650018692,
0.12517181038856506,
-0.015025023370981216,
-0.04350104182958603,
0.12024632096290588,
0.2838806211948395,
-0.03673157840967178,
-0.5128863453865051,
0.0337209552526474,
0.1928916722536087,
0.03331555426120758,
0.18269042670726776,
-0.0985662043094635,
-0.1741507202386856,
-0.09308010339736938,
-0.11911376565694809,
-0.03447388857603073,
-0.355093777179718,
0.442022442817688,
-0.07105349749326706,
0.030206788331270218,
-0.033910103142261505,
0.12593021988868713,
-0.11035377532243729,
0.06718790531158447,
-0.28472259640693665,
0.23164600133895874,
-0.4047391414642334,
-0.010936316102743149,
-0.27762287855148315,
-0.22218503057956696,
0.1345081329345703,
0.17797887325286865,
-0.005669631063938141,
0.01360663864761591,
-0.39462995529174805,
0.6360439658164978,
-0.09919627755880356,
0.44225314259529114,
-0.1970856785774231,
0.15475662052631378,
0.10136353969573975,
-0.05050418898463249,
-0.025711916387081146,
-0.02383565902709961,
0.1536918431520462,
0.1530250906944275,
0.026019958779215813,
0.48948535323143005,
-0.0719284862279892,
0.6651267409324646,
-0.21649055182933807,
-0.1908443421125412,
0.7653543949127197,
0.1234656572341919,
0.21719107031822205,
0.1095760390162468,
0.08394370228052139,
-0.15813565254211426,
0.015622613951563835,
0.08679156005382538,
-0.12681373953819275,
-0.16432103514671326,
0.14840734004974365,
0.04009539633989334,
-0.11230454593896866,
0.012047931551933289,
0.015458881855010986,
-0.4064565598964691,
-0.3510843813419342,
0.24970318377017975,
-0.010953560471534729,
0.2938515245914459,
-0.3571612536907196,
-0.06922097504138947,
-0.05841527879238129,
0.01094973087310791,
-0.23227953910827637,
-0.017287909984588623,
0.2271169126033783,
0.13955603539943695,
-0.5072894096374512,
-0.4268554151058197,
-0.483409583568573,
0.2316374033689499,
0.010130155831575394,
0.5988482236862183,
0.13512952625751495,
0.0753420889377594,
-0.08297105133533478,
-0.096153624355793,
0.6169034242630005,
-0.027918683364987373,
-0.1888391524553299,
0.25809669494628906,
0.3820474445819855,
-0.1696607619524002,
-0.1103736162185669,
0.10426335036754608,
0.16997389495372772,
0.8767222166061401,
0.03934810683131218,
-0.3058120310306549,
-0.031447313725948334,
0.2559385597705841,
0.3879096508026123,
-0.12919074296951294,
-0.249660924077034,
-0.13385842740535736,
-0.18624556064605713,
-0.08754266053438187,
-0.26139959692955017,
0.12687669694423676,
0.44499170780181885,
-0.16074015200138092,
-0.15259797871112823,
0.07047560065984726,
-0.30988040566444397,
-0.01015162467956543,
0.003996569663286209,
0.2558419406414032,
-0.1063283234834671,
0.1659553050994873,
-0.12034127116203308,
0.3574882447719574,
0.4377620816230774,
0.1959054172039032,
0.06533516943454742,
-0.331535667181015,
-0.082811638712883,
-0.2703196108341217,
0.40019670128822327,
-0.1436280608177185,
-0.213993102312088,
0.06373651325702667,
-0.19266684353351593,
0.42278122901916504,
0.13682523369789124,
-0.2731591761112213,
0.29548779129981995,
0.08491829037666321,
-0.8648971915245056,
0.09164322167634964,
0.32879897952079773,
0.0798567533493042,
0.2831905484199524,
0.17337408661842346,
-0.36568522453308105,
-0.37006351351737976,
0.20085376501083374,
-0.19248223304748535,
0.5724692940711975,
0.4445645809173584,
0.145187109708786,
0.07289262115955353,
-0.3968043327331543,
0.6061342358589172,
-0.13807794451713562,
0.049989964812994,
-0.19445855915546417,
0.4044934809207916,
0.1480768620967865,
-0.1363782435655594,
0.10135600715875626,
0.08131895959377289,
-0.11469697207212448,
0.03746366500854492,
-0.510441243648529,
-0.2355322241783142,
-0.26618438959121704,
0.006801236420869827,
0.25483331084251404,
-0.2045745551586151,
-0.49931538105010986,
0.0002575237303972244,
-0.09606575965881348,
-0.23614004254341125,
-0.07675104588270187,
-0.2121945172548294,
0.09233231842517853,
-0.12663328647613525,
-0.34473294019699097,
0.12222055345773697,
0.06738222390413284,
0.13416606187820435,
0.3516380488872528,
-0.16145820915699005,
0.1418852061033249,
-0.1786925047636032,
0.26160210371017456,
0.1652996689081192,
0.030198946595191956,
-0.04948928579688072,
-0.04384089261293411,
-0.0911644697189331,
0.10173839330673218,
0.030471336096525192,
0.09667536616325378,
-0.06684945523738861,
-0.12831826508045197,
0.1746307909488678,
0.040515802800655365,
-0.21313132345676422,
-0.1321575939655304,
0.2128763198852539,
-0.22994859516620636,
-0.3254310190677643,
-0.08128958940505981,
0.15510611236095428,
0.22935518622398376,
-0.12099763751029968,
0.04329252243041992,
0.15768495202064514,
0.0012240007054060698,
0.31726786494255066,
-0.36951515078544617,
-0.18020668625831604,
-0.3000699579715729,
0.08284682035446167,
0.060516905039548874,
-0.31042584776878357,
0.2204136997461319,
0.5383709073066711,
-0.18880465626716614,
-0.07554281502962112,
0.46763837337493896,
0.2899450957775116,
-0.5295382738113403,
0.5389208197593689,
-0.0684274435043335,
0.27856379747390747,
-0.10150694102048874,
0.5041590332984924,
0.05234665423631668,
0.0035970285534858704,
0.19552777707576752,
-0.38536080718040466,
-0.19702522456645966,
0.01929231360554695,
0.21551111340522766,
0.033506281673908234,
0.040332257747650146,
0.5567014813423157,
0.040017060935497284,
-0.1997791975736618,
-0.14871299266815186,
-0.03584149479866028,
-0.15304195880889893,
0.04411317780613899,
-0.06792085617780685,
0.005857594311237335,
0.044663235545158386,
-0.03260137885808945,
0.06432926654815674,
0.11546411365270615,
-0.02021046355366707,
-0.12171590328216553,
-0.33383673429489136,
0.1359889656305313,
0.13836753368377686,
-0.21226851642131805,
0.1569174975156784,
-0.026542870327830315,
-0.21732854843139648,
-0.010731445625424385,
0.24237656593322754,
0.004666052758693695,
-0.08582063019275665,
-0.07955382764339447,
0.11577174067497253,
-0.09992942959070206,
-0.08266039192676544,
0.10233673453330994,
0.3121550679206848,
0.6382739543914795,
-0.022369131445884705,
0.42319583892822266,
-0.08757220208644867,
-0.12362609803676605,
-0.48613449931144714,
0.0350305400788784,
-0.16866828501224518,
0.3962353765964508,
0.08721690624952316,
-0.717275857925415,
-0.09458456933498383,
0.2883249521255493,
0.11184978485107422,
0.30698370933532715,
-0.24428804218769073,
0.07100438326597214,
0.05542474240064621,
0.19021591544151306,
0.03191033750772476,
-0.13023386895656586,
0.033451102674007416,
0.10647645592689514,
-0.20015113055706024,
0.030840978026390076,
-0.07134867459535599,
-0.3822002708911896,
-0.14646148681640625,
-0.1012210100889206,
0.3103381395339966,
0.15546879172325134,
0.26499733328819275,
0.3487352430820465,
0.12825830280780792,
0.14092344045639038,
-0.19224192202091217,
0.19463568925857544,
0.19321143627166748,
0.045002181082963943,
0.18775174021720886,
-0.10481153428554535,
0.6095268726348877,
-0.15013986825942993,
-0.18927758932113647,
-0.521486759185791,
-0.11232425272464752,
0.043405890464782715,
-0.10853859782218933,
0.2948247790336609,
0.15338531136512756,
0.1484999656677246,
-0.10964500159025192,
-0.10477887839078903,
-0.13124004006385803,
0.17129889130592346,
-0.13234621286392212,
0.07832670211791992,
-0.2375478297472,
-0.031153973191976547,
0.15101678669452667,
0.12559379637241364,
0.047065749764442444,
0.26658645272254944,
-0.22358018159866333,
0.26425570249557495,
-0.019815772771835327,
-0.45779353380203247,
0.14665400981903076,
-0.12411851435899734,
0.18416517972946167,
-0.27219536900520325,
0.1180657222867012,
0.21605214476585388,
-0.06732645630836487,
-0.1253814846277237,
0.09467263519763947,
0.5830351114273071,
0.2718701958656311,
0.2764337956905365,
-0.11516623944044113,
-0.2004849761724472,
0.11040937900543213,
0.09246175736188889,
0.13983596861362457,
0.2113533616065979,
-0.05347700044512749,
0.21684469282627106,
0.03858259320259094,
-0.06237988546490669,
0.3692184388637543,
0.15082938969135284,
0.047659505158662796,
0.06920395791530609,
0.12510846555233002,
-0.09312042593955994,
-0.22094354033470154,
-0.440024197101593,
-0.21727296710014343,
-0.23730415105819702,
-0.020732354372739792,
0.3701363205909729,
-0.08246861398220062,
-0.10080382972955704,
-0.07183001190423965,
0.03176974877715111,
-0.27501294016838074,
0.40353405475616455,
0.23317953944206238,
0.361777663230896,
-0.12018368393182755,
-0.19719764590263367,
0.14962691068649292,
-0.04852425307035446,
-0.306157648563385,
0.37824442982673645,
0.3052503764629364,
0.2545861005783081,
-0.2659120261669159,
0.028137147426605225,
0.24523000419139862,
0.6335808634757996,
-0.44912493228912354,
0.0829714685678482,
-0.41122254729270935,
0.05561463534832001,
0.47882550954818726,
0.08781226724386215,
-0.1390586495399475,
-0.15925127267837524,
0.4242454469203949,
-0.04519691690802574,
-0.0659676194190979,
-0.16331739723682404,
0.11275900900363922,
-0.013857200741767883,
0.07298815250396729,
0.05005236715078354,
0.39761966466903687,
0.09548391401767731,
-0.04865105450153351,
-0.2607995867729187,
-0.2927938401699066,
-0.21465887129306793,
0.05671519413590431,
0.2732059359550476,
0.31866753101348877,
0.5101501941680908,
-0.10516172647476196,
0.007079951465129852,
-0.2610447406768799,
0.17906194925308228,
-0.004899151623249054,
-0.3528940975666046,
-0.10026168078184128,
-0.009924063459038734,
-0.1000588983297348,
0.058464910835027695,
0.2610977590084076,
0.24038755893707275,
-0.08817903697490692,
0.2841232419013977,
-0.0016546174883842468,
-0.2450389862060547,
0.1022859588265419,
-0.4079577624797821,
-0.3293612003326416,
-0.024252530187368393,
0.3105502128601074,
0.1907435655593872,
-0.03876744210720062,
-0.040448009967803955,
0.17133000493049622,
0.3940409719944,
-0.13533854484558105,
-0.37087973952293396,
0.2906873822212219,
-0.11571066081523895,
-0.12219308316707611,
0.23614588379859924,
0.3582157492637634,
0.3031458556652069,
-0.4336030185222626,
0.254498153924942,
-0.08951519429683685
] |
https://github.com/huggingface/datasets/issues/2615 | Jsonlines export error | I was also already working in my PR... Nevermind. Next time we should pay attention if there is somebody (self-)assigned to an issue and if he/she is still working on it before overtaking it... 😄 | ## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1 | 35 | Jsonlines export error
## Describe the bug
When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default
## Steps to reproduce the bug
This what I'm running:
in python:
```
from datasets import load_dataset
ptb = load_dataset("ptb_text_only")
ptb["train"].to_json("ptb.jsonl")
```
then out of python:
```
head -10000 ptb.jsonl
```
## Expected results
Properly separated lines
## Actual results
The last line is a concatenation of two lines
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.9.1.dev0
- Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyArrow version: 4.0.1
I was also already working in my PR... Nevermind. Next time we should pay attention if there is somebody (self-)assigned to an issue and if he/she is still working on it before overtaking it... 😄 | [
-0.39618751406669617,
0.14125007390975952,
-0.04477708786725998,
0.26520538330078125,
0.05529017746448517,
0.06807694584131241,
0.15589198470115662,
0.3812042772769928,
-0.011088496074080467,
-0.03500513732433319,
0.3722907304763794,
0.011863772757351398,
0.08163980394601822,
0.17778894305229187,
-0.1461670845746994,
-0.17324982583522797,
0.1780269294977188,
-0.042716264724731445,
0.03448594734072685,
0.24138019979000092,
-0.2363174557685852,
0.2680276036262512,
-0.18620066344738007,
-0.19686947762966156,
-0.4044492840766907,
-0.2788294851779938,
0.14522022008895874,
-0.02178966999053955,
-0.025608809664845467,
-0.48308441042900085,
-0.09360423684120178,
-0.2329356074333191,
0.45718082785606384,
0.48465609550476074,
-0.00011653533147182316,
-0.17358502745628357,
0.3210093379020691,
0.002407768741250038,
-0.23531211912631989,
0.053045324981212616,
-0.4531084895133972,
-0.38377588987350464,
-0.03856486827135086,
-0.36365604400634766,
0.40633898973464966,
-0.12236998230218887,
-0.34130859375,
-0.4172593355178833,
0.6630899906158447,
0.4112568199634552,
0.16936002671718597,
-0.03377062454819679,
0.15366984903812408,
-0.017252478748559952,
-0.0696144625544548,
0.10264318436384201,
0.006590129807591438,
0.09388372302055359,
-0.17908459901809692,
0.2880728542804718,
0.25536397099494934,
-0.05842500180006027,
-0.14248453080654144,
-0.309188574552536,
-0.1423950493335724,
-0.11779902130365372,
-0.06045863777399063,
-0.2552989423274994,
0.1998627781867981,
0.3594553470611572,
0.197821244597435,
-0.22590917348861694,
-0.14749029278755188,
-0.31169968843460083,
0.11333782225847244,
-0.6214425563812256,
0.04877806827425957,
0.5457019805908203,
-0.019328046590089798,
0.13052982091903687,
-0.22660157084465027,
-0.10340514034032822,
-0.2398209422826767,
-0.05593401938676834,
0.03249615430831909,
-0.2110428810119629,
-0.1272573173046112,
-0.0004992485046386719,
-0.15281346440315247,
-0.11805471777915955,
-0.05797590687870979,
-0.25605642795562744,
-0.5472074747085571,
-0.01162001583725214,
-0.17634043097496033,
0.064949631690979,
0.15674743056297302,
-0.42492586374282837,
0.14234167337417603,
-0.03895837813615799,
0.34017327427864075,
-0.3556586802005768,
0.2603924870491028,
0.05851846933364868,
0.5224493145942688,
0.16737934947013855,
0.280150443315506,
-0.0627351775765419,
0.26334577798843384,
0.02931063435971737,
0.0720384418964386,
-0.07997851818799973,
0.012156841345131397,
-0.2061021327972412,
0.06487183272838593,
0.0841449648141861,
-0.02197910100221634,
-0.07445519417524338,
-0.03361041471362114,
0.20734935998916626,
-0.3438684940338135,
-0.1791132092475891,
-0.2502128779888153,
-0.16040584444999695,
-0.0843883752822876,
0.23707205057144165,
0.18380489945411682,
0.22996605932712555,
-0.13997437059879303,
-0.056174974888563156,
-0.05275750160217285,
-0.07646988332271576,
-0.09756068140268326,
-0.027442513033747673,
-0.04340993985533714,
-0.15162411332130432,
-0.022104106843471527,
0.24528230726718903,
-0.09676355123519897,
-0.286663293838501,
-0.11443465203046799,
-0.055788569152355194,
-0.15059086680412292,
0.17743125557899475,
0.2737613320350647,
0.09412872791290283,
-0.18243609368801117,
-0.17922548949718475,
-0.029098350554704666,
0.16853535175323486,
-0.4769113063812256,
-0.04237012937664986,
-0.35498276352882385,
0.1847229152917862,
-0.15051715075969696,
0.1518641859292984,
-0.49854961037635803,
-0.04304066672921181,
0.08197373151779175,
0.13034459948539734,
0.3610823452472687,
-0.2751139998435974,
0.618191123008728,
-0.2749441862106323,
0.054061248898506165,
0.23970076441764832,
-0.7175132036209106,
0.08108426630496979,
0.1316870152950287,
-0.04455718770623207,
0.44993236660957336,
0.3594822883605957,
-0.04706031456589699,
0.38199570775032043,
-0.1250738799571991,
0.2862238883972168,
0.1025875061750412,
0.21366816759109497,
0.08589962124824524,
0.4878995418548584,
-0.09101498126983643,
-0.023389799520373344,
0.04455491155385971,
-0.3476255536079407,
0.6521732807159424,
0.11511591821908951,
0.5111979246139526,
0.3936978578567505,
0.04306989535689354,
0.2332150936126709,
-0.20628181099891663,
-0.19885902106761932,
-0.03997199237346649,
-0.19819799065589905,
-0.37634414434432983,
-0.06517785042524338,
0.13632473349571228,
-0.20178839564323425,
0.3150211572647095,
-0.2656431198120117,
0.11128940433263779,
0.46081411838531494,
0.14559496939182281,
0.12427247315645218,
0.01685565523803234,
0.2683563828468323,
-0.433143675327301,
-0.19373959302902222,
-0.14755234122276306,
-0.15639452636241913,
-0.13995985686779022,
-0.06078711524605751,
0.18789446353912354,
0.21765631437301636,
-0.030970368534326553,
0.1624683439731598,
0.09083127975463867,
-0.14384472370147705,
-0.11942140758037567,
0.22005553543567657,
-0.03038714826107025,
0.23140232264995575,
0.14009703695774078,
0.029604880139231682,
-0.2782297134399414,
0.27971750497817993,
0.19401319324970245,
-0.20661859214305878,
0.2257094383239746,
0.1197509616613388,
0.1610758900642395,
-0.33962321281433105,
-0.14500916004180908,
0.20799851417541504,
-0.022490467876195908,
-0.043361008167266846,
-0.13138115406036377,
0.11531565338373184,
0.13005967438220978,
0.07430578768253326,
-0.18313270807266235,
0.2659924328327179,
-0.0412701740860939,
0.07908575981855392,
-0.13025307655334473,
0.5811469554901123,
-0.22382111847400665,
0.31291720271110535,
-0.033744387328624725,
-0.03595086187124252,
0.2417222559452057,
-0.1326756477355957,
-0.05239557474851608,
-0.1432105302810669,
0.29200705885887146,
0.15066875517368317,
-0.10959608852863312,
-0.003849608823657036,
-0.2997736930847168,
0.013057701289653778,
0.5700365900993347,
-0.0009287968277931213,
0.05438116192817688,
0.20030853152275085,
-0.010424427688121796,
-0.012890023179352283,
0.04819638282060623,
0.07339775562286377,
0.2701423168182373,
0.14349249005317688,
-0.06108869984745979,
0.08177042752504349,
0.23918624222278595,
-0.07930362969636917,
0.28661832213401794,
0.10854970663785934,
0.26174992322921753,
0.3045497536659241,
0.18695981800556183,
0.14856167137622833,
-0.14278936386108398,
-0.39718905091285706,
-0.19291193783283234,
0.09804073721170425,
-0.299008846282959,
0.2812851667404175,
-0.17970074713230133,
-0.03177185356616974,
-0.4606837034225464,
-0.34267106652259827,
-0.24311324954032898,
-0.2658654451370239,
-0.16170966625213623,
-0.12510862946510315,
-0.49196770787239075,
-0.11036911606788635,
-0.12331001460552216,
0.11657299101352692,
0.09839959442615509,
-0.06516984105110168,
0.04801688343286514,
-0.025851808488368988,
-0.07901681959629059,
-0.06261246651411057,
0.04832304269075394,
-0.18228378891944885,
0.08695345371961594,
0.11184301227331161,
0.11575759947299957,
-0.11185682564973831,
0.12596744298934937,
0.12819261848926544,
0.013544304296374321,
-0.07983977347612381,
0.11684033274650574,
0.26713910698890686,
0.0046183280646800995,
-0.5441414713859558,
0.009304741397500038,
0.15852788090705872,
-0.0006537009030580521,
0.16665621101856232,
-0.10949096083641052,
-0.193905770778656,
-0.10407228767871857,
-0.11589420586824417,
-0.049713000655174255,
-0.35891270637512207,
0.4297664165496826,
-0.11073978245258331,
0.06243860721588135,
-0.05668272078037262,
0.14181961119174957,
-0.08346573263406754,
0.02643907628953457,
-0.2701609134674072,
0.20860926806926727,
-0.3947092890739441,
-0.03834765776991844,
-0.28726139664649963,
-0.2344917505979538,
0.1153707504272461,
0.135106161236763,
-0.04123153164982796,
-0.014870870858430862,
-0.39450758695602417,
0.5985490679740906,
-0.091180220246315,
0.40726202726364136,
-0.15432626008987427,
0.15985587239265442,
0.10821354389190674,
-0.06093921139836311,
-0.060588568449020386,
-0.017103660851716995,
0.12432490289211273,
0.14299091696739197,
0.040562547743320465,
0.45375391840934753,
-0.07690992951393127,
0.6510973572731018,
-0.21718405187129974,
-0.19337724149227142,
0.7931035161018372,
0.14607420563697815,
0.20749300718307495,
0.10003996640443802,
0.08902596682310104,
-0.12757226824760437,
-0.01492001861333847,
0.12592588365077972,
-0.11181023716926575,
-0.16639910638332367,
0.17380176484584808,
0.01497733499854803,
-0.15475860238075256,
0.03236434608697891,
-0.018930545076727867,
-0.43367481231689453,
-0.3735409080982208,
0.2495989054441452,
0.01727888733148575,
0.3149969279766083,
-0.31556713581085205,
-0.0837370753288269,
-0.04976930096745491,
0.08106988668441772,
-0.2002609223127365,
-0.03123164176940918,
0.20590785145759583,
0.10809049010276794,
-0.5688768029212952,
-0.43436574935913086,
-0.48296988010406494,
0.20019493997097015,
0.00037556327879428864,
0.5802282691001892,
0.12531553208827972,
0.10263802856206894,
-0.08849120140075684,
-0.12085539102554321,
0.6239221692085266,
0.017961598932743073,
-0.2077336460351944,
0.23253968358039856,
0.38049885630607605,
-0.11947627365589142,
-0.11368563771247864,
0.1311788409948349,
0.20407621562480927,
0.8154338598251343,
0.014414213597774506,
-0.336288720369339,
-0.03151971846818924,
0.2510596811771393,
0.3690204620361328,
-0.13677933812141418,
-0.24732133746147156,
-0.12215851247310638,
-0.21055012941360474,
-0.10639972239732742,
-0.23941698670387268,
0.1065257266163826,
0.457886666059494,
-0.1845732480287552,
-0.1501585692167282,
0.08302338421344757,
-0.3093683123588562,
-0.023828640580177307,
-0.006198727525770664,
0.26893681287765503,
-0.10252903401851654,
0.13195419311523438,
-0.10674998164176941,
0.3046075105667114,
0.4929367005825043,
0.2555459141731262,
0.05917537957429886,
-0.3818763196468353,
-0.06485991925001144,
-0.2778075635433197,
0.3906008303165436,
-0.08639168739318848,
-0.23039071261882782,
0.08983784168958664,
-0.11477626860141754,
0.43109703063964844,
0.10552478581666946,
-0.30602067708969116,
0.28390875458717346,
0.09387952834367752,
-0.8680297136306763,
0.06726640462875366,
0.3517990708351135,
0.08513717353343964,
0.2663377523422241,
0.14252403378486633,
-0.2993612289428711,
-0.3890744745731354,
0.22682636976242065,
-0.22128471732139587,
0.5617585182189941,
0.4622306227684021,
0.13098235428333282,
0.05016886442899704,
-0.38236433267593384,
0.6059627532958984,
-0.07513602077960968,
0.04960603639483452,
-0.19818566739559174,
0.41801103949546814,
0.1599106341600418,
-0.14685435593128204,
0.1330638825893402,
0.0571734644472599,
-0.12497887015342712,
0.04600708559155464,
-0.5140425562858582,
-0.2688518762588501,
-0.22368623316287994,
0.04585665464401245,
0.2291860580444336,
-0.1956326961517334,
-0.47805723547935486,
0.027446497231721878,
-0.0778483897447586,
-0.2507961392402649,
-0.07657919079065323,
-0.22125239670276642,
0.08225224912166595,
-0.13663350045681,
-0.36440640687942505,
0.1354055404663086,
0.013326974585652351,
0.14755301177501678,
0.3296111822128296,
-0.1759181022644043,
0.16549094021320343,
-0.2167602777481079,
0.26329565048217773,
0.1756991595029831,
0.04035898298025131,
-0.035514798015356064,
-0.049847960472106934,
-0.09105493128299713,
0.05183374509215355,
0.018012914806604385,
0.13972468674182892,
-0.07206250727176666,
-0.14763092994689941,
0.16769534349441528,
0.053106240928173065,
-0.18707558512687683,
-0.09450097382068634,
0.21206654608249664,
-0.22726617753505707,
-0.3123399615287781,
-0.13695243000984192,
0.13842490315437317,
0.23500052094459534,
-0.12349964678287506,
0.0652359277009964,
0.15457218885421753,
-0.03456823527812958,
0.3239792287349701,
-0.32690852880477905,
-0.17504094541072845,
-0.31342756748199463,
0.06735227257013321,
0.019750751554965973,
-0.2836395800113678,
0.23683804273605347,
0.5338138937950134,
-0.18514399230480194,
-0.09182222187519073,
0.4540342092514038,
0.31823375821113586,
-0.5063894987106323,
0.5193545818328857,
-0.039705876260995865,
0.2553132176399231,
-0.09215665608644485,
0.489300400018692,
0.0531960129737854,
0.011074326932430267,
0.16090139746665955,
-0.3807057738304138,
-0.19384661316871643,
0.01688963547348976,
0.18402588367462158,
-0.016206178814172745,
0.06619592756032944,
0.539918839931488,
0.04049796611070633,
-0.19532133638858795,
-0.18746763467788696,
-0.00923160556703806,
-0.199716255068779,
0.03257608413696289,
-0.09073013067245483,
-0.05426540970802307,
0.020311648026108742,
-0.04538435861468315,
0.08947698771953583,
0.12455134093761444,
-0.04446946829557419,
-0.15809205174446106,
-0.3493088185787201,
0.11712219566106796,
0.12625762820243835,
-0.2073087841272354,
0.1414676010608673,
-0.02919342741370201,
-0.21039408445358276,
0.0005526053719222546,
0.21248166263103485,
-0.011708829551935196,
-0.07638372480869293,
-0.07668270915746689,
0.08843853324651718,
-0.12904083728790283,
-0.08349038660526276,
0.12048495560884476,
0.2823750376701355,
0.6134368777275085,
-0.01711723394691944,
0.4254065454006195,
-0.11095283180475235,
-0.09252138435840607,
-0.45309048891067505,
0.027766741812229156,
-0.1683809906244278,
0.39541393518447876,
0.11079205572605133,
-0.7080249190330505,
-0.06729210913181305,
0.32767733931541443,
0.13211002945899963,
0.29723572731018066,
-0.26736390590667725,
0.1047080010175705,
0.06984225660562515,
0.21390606462955475,
0.008948024362325668,
-0.13692402839660645,
0.05161011964082718,
0.08065129071474075,
-0.16454148292541504,
0.009780414402484894,
-0.03168290853500366,
-0.3678220808506012,
-0.16884692013263702,
-0.07475161552429199,
0.3498598337173462,
0.18097180128097534,
0.2724545896053314,
0.2772689163684845,
0.15944607555866241,
0.13484816253185272,
-0.16235733032226562,
0.2629075348377228,
0.20129133760929108,
0.033072128891944885,
0.16319280862808228,
-0.1277638077735901,
0.5978220105171204,
-0.12198023498058319,
-0.16437551379203796,
-0.519752025604248,
-0.060706060379743576,
0.05477718263864517,
-0.1363770216703415,
0.28617942333221436,
0.13115555047988892,
0.14128172397613525,
-0.14523985981941223,
-0.08225710690021515,
-0.11501552909612656,
0.15404783189296722,
-0.11617130786180496,
0.06583110988140106,
-0.24059361219406128,
-0.011379554867744446,
0.1586645394563675,
0.10759580135345459,
0.056421972811222076,
0.2367658019065857,
-0.22802698612213135,
0.25210005044937134,
-0.02967154234647751,
-0.44366687536239624,
0.12667082250118256,
-0.07063576579093933,
0.20835354924201965,
-0.28052768111228943,
0.10736081749200821,
0.20405781269073486,
-0.05923536419868469,
-0.1331191062927246,
0.15194036066532135,
0.6114035248756409,
0.2904869318008423,
0.24302543699741364,
-0.11046237498521805,
-0.18946054577827454,
0.10828876495361328,
0.08538636565208435,
0.12491130083799362,
0.24422381818294525,
-0.025654055178165436,
0.18726082146167755,
0.07729075849056244,
-0.0963657796382904,
0.3418992757797241,
0.17633049190044403,
0.039824746549129486,
0.06062595918774605,
0.09779755771160126,
-0.13572396337985992,
-0.19358205795288086,
-0.4640134572982788,
-0.1927347183227539,
-0.2539293169975281,
-0.027709517627954483,
0.40147945284843445,
-0.11803488433361053,
-0.09881114959716797,
-0.08772531151771545,
0.05420414358377457,
-0.2858714163303375,
0.4002654254436493,
0.2522844672203064,
0.3638441562652588,
-0.1063380241394043,
-0.19443225860595703,
0.13509343564510345,
-0.06894513219594955,
-0.31035998463630676,
0.37894147634506226,
0.31642305850982666,
0.2905767858028412,
-0.25515216588974,
0.008613679558038712,
0.22561976313591003,
0.5962055325508118,
-0.45040521025657654,
0.04813085123896599,
-0.44474393129348755,
0.11197212338447571,
0.43549633026123047,
0.09938284009695053,
-0.12633711099624634,
-0.15380972623825073,
0.4535103738307953,
-0.09020156413316727,
-0.04746873304247856,
-0.15131857991218567,
0.14033359289169312,
-0.0010732226073741913,
0.031115585938096046,
0.052958883345127106,
0.392041951417923,
0.09075278043746948,
-0.07320818305015564,
-0.25000616908073425,
-0.2859655022621155,
-0.204221710562706,
0.047978393733501434,
0.2739371657371521,
0.33539921045303345,
0.5070767402648926,
-0.11643216758966446,
-0.049818139523267746,
-0.23814357817173004,
0.16757827997207642,
-0.008768320083618164,
-0.3936254680156708,
-0.13753269612789154,
0.016431540250778198,
-0.08683522045612335,
0.05253612622618675,
0.23167023062705994,
0.2337377965450287,
-0.0883544534444809,
0.2496710568666458,
0.020741023123264313,
-0.2763332426548004,
0.10884130746126175,
-0.39654284715652466,
-0.3167788088321686,
-0.016158845275640488,
0.31356924772262573,
0.20531395077705383,
-0.036102332174777985,
-0.04502653330564499,
0.18038740754127502,
0.3660033643245697,
-0.16561585664749146,
-0.36281847953796387,
0.27348294854164124,
-0.16148224472999573,
-0.08955176174640656,
0.22888538241386414,
0.3258041739463806,
0.2899286150932312,
-0.4333474636077881,
0.22828978300094604,
-0.08570677042007446
] |
https://github.com/huggingface/datasets/issues/2607 | Streaming local gzip compressed JSON line files is not working | Hi @thomwolf, thanks for reporting.
It seems this might be due to the fact that the JSON Dataset builder uses `pyarrow.json` (`paj.read_json`) to read the data without using the Python standard `open(file,...` (which is the one patched with `xopen` to work in streaming mode).
This has to be fixed. | ## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True)
next(iter(streamed_dataset))
```
## Actual results
```
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-27a664e29784> in <module>
----> 1 next(iter(streamed_dataset))
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
336
337 def __iter__(self):
--> 338 for key, example in self._iter():
339 if self.features:
340 # we encode the example for ClassLabel feature types for example
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self)
333 else:
334 ex_iterable = self._ex_iterable
--> 335 yield from ex_iterable
336
337 def __iter__(self):
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs)
282 def wrapper(**kwargs):
283 python_formatter = PythonFormatter()
--> 284 for key, table in generate_tables_fn(**kwargs):
285 batch = python_formatter.format_batch(table)
286 for i, example in enumerate(_batch_to_examples(batch)):
~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files)
85 file,
86 read_options=self.config.pa_read_options,
---> 87 parse_options=self.config.pa_parse_options,
88 )
89 except pa.ArrowInvalid as err:
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory
```
## Environment info
- `datasets` version: 1.9.1.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.7
- PyArrow version: 1.0.0 | 49 | Streaming local gzip compressed JSON line files is not working
## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True)
next(iter(streamed_dataset))
```
## Actual results
```
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-27a664e29784> in <module>
----> 1 next(iter(streamed_dataset))
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
336
337 def __iter__(self):
--> 338 for key, example in self._iter():
339 if self.features:
340 # we encode the example for ClassLabel feature types for example
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self)
333 else:
334 ex_iterable = self._ex_iterable
--> 335 yield from ex_iterable
336
337 def __iter__(self):
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs)
282 def wrapper(**kwargs):
283 python_formatter = PythonFormatter()
--> 284 for key, table in generate_tables_fn(**kwargs):
285 batch = python_formatter.format_batch(table)
286 for i, example in enumerate(_batch_to_examples(batch)):
~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files)
85 file,
86 read_options=self.config.pa_read_options,
---> 87 parse_options=self.config.pa_parse_options,
88 )
89 except pa.ArrowInvalid as err:
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory
```
## Environment info
- `datasets` version: 1.9.1.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.7
- PyArrow version: 1.0.0
Hi @thomwolf, thanks for reporting.
It seems this might be due to the fact that the JSON Dataset builder uses `pyarrow.json` (`paj.read_json`) to read the data without using the Python standard `open(file,...` (which is the one patched with `xopen` to work in streaming mode).
This has to be fixed. | [
-0.19924907386302948,
-0.13397781550884247,
-0.00914461724460125,
0.2391349971294403,
0.07776452600955963,
0.016880035400390625,
0.3976743817329407,
0.5178913474082947,
0.19702133536338806,
0.0789988785982132,
0.10300148278474808,
0.3306829631328583,
-0.08836679905653,
0.020873846486210823,
0.22888673841953278,
-0.18093417584896088,
-0.043661899864673615,
0.3560611307621002,
-0.025166675448417664,
0.0015850141644477844,
-0.1305663287639618,
0.2937990427017212,
-0.1404590606689453,
-0.01851685345172882,
-0.018797723576426506,
-0.03955550491809845,
-0.04714987426996231,
0.15009424090385437,
-0.09395959973335266,
-0.3326382637023926,
0.06276936084032059,
-0.16841457784175873,
0.18802249431610107,
0.4454551637172699,
-0.00011453595652710646,
0.28864115476608276,
0.29611068964004517,
-0.16291417181491852,
-0.38860687613487244,
-0.4712483882904053,
-0.22990095615386963,
-0.14929929375648499,
-0.13077154755592346,
-0.28584545850753784,
-0.1378191113471985,
-0.34743621945381165,
-0.03375668823719025,
-0.5072002410888672,
0.5416868925094604,
0.2922607660293579,
0.15566380321979523,
0.04196545109152794,
-0.06177228316664696,
0.0905790776014328,
0.03901580348610878,
0.15732377767562866,
-0.08860811591148376,
0.3150974214076996,
0.032788489013910294,
0.11496810615062714,
0.05528499186038971,
0.4286458194255829,
-0.22549587488174438,
-0.17477723956108093,
0.14737007021903992,
-0.0008161365985870361,
-0.0843830332159996,
-0.12578685581684113,
-0.1683151125907898,
0.08573462069034576,
0.18454492092132568,
-0.41225653886795044,
-0.43983420729637146,
-0.3761075735092163,
0.04667404294013977,
-0.44880279898643494,
0.21185481548309326,
0.4092857539653778,
-0.2503080666065216,
0.1969691962003708,
-0.10066583752632141,
-0.13053177297115326,
-0.3545615077018738,
0.08545256406068802,
0.36184927821159363,
0.34808260202407837,
-0.09467773139476776,
0.00912870466709137,
-0.09198708832263947,
0.11937958747148514,
-0.08398443460464478,
-0.38596197962760925,
-0.18570630252361298,
0.22775647044181824,
-0.2421414703130722,
-0.13492238521575928,
0.14436252415180206,
-0.6062144041061401,
0.1511496603488922,
0.10122843831777573,
0.4615779519081116,
-0.12574464082717896,
0.35880759358406067,
0.054608240723609924,
0.27286845445632935,
0.18704862892627716,
0.17696598172187805,
0.26384198665618896,
0.05665925517678261,
0.389880508184433,
-0.08656640350818634,
-0.19807371497154236,
-0.23633751273155212,
-0.0394047275185585,
-0.09152989089488983,
0.13681063055992126,
0.48332613706588745,
-0.1576652228832245,
-0.08909349888563156,
0.0819106176495552,
-0.5941806435585022,
-0.13269999623298645,
0.15767234563827515,
0.09860969334840775,
0.0661022812128067,
0.2201751470565796,
0.026484891772270203,
0.1610841304063797,
-0.0021045375615358353,
-0.06189456209540367,
-0.09079552441835403,
0.023572301492094994,
0.0740586370229721,
0.13479897379875183,
0.25189730525016785,
-0.5213881134986877,
0.27936431765556335,
0.008754490874707699,
-0.046029575169086456,
-0.15623420476913452,
0.005845250561833382,
-0.12555629014968872,
0.1504514068365097,
0.1468389481306076,
-0.025929123163223267,
0.01936381869018078,
0.20588421821594238,
-0.1102273091673851,
-0.1738194227218628,
0.118353933095932,
-0.2751956880092621,
-0.26721346378326416,
0.03723612800240517,
0.20101679861545563,
0.03815893083810806,
0.009389208629727364,
-0.00814894586801529,
0.005931306630373001,
0.05569905415177345,
-0.3565130829811096,
0.02363625168800354,
-0.009464718401432037,
-0.055801376700401306,
-0.084129199385643,
0.2759925425052643,
0.4360963702201843,
-0.36087194085121155,
-0.10359223186969757,
0.0715651586651802,
0.21758553385734558,
0.7216557860374451,
0.34253770112991333,
-0.23797157406806946,
0.12730737030506134,
-0.3681201636791229,
0.361905038356781,
0.6931345462799072,
0.016038142144680023,
-0.3624648451805115,
0.8522371649742126,
-0.10863479971885681,
0.3817499577999115,
0.48008397221565247,
-0.20442916452884674,
0.1941487193107605,
-0.010517766699194908,
0.3352074921131134,
0.2812868356704712,
-0.044572003185749054,
0.038527533411979675,
-0.46427121758461,
0.13121458888053894,
0.041949767619371414,
0.03780543431639671,
-0.25131797790527344,
0.29544100165367126,
-0.04339214414358139,
0.01503328699618578,
0.35208964347839355,
-0.18005645275115967,
0.10818453133106232,
0.2904559373855591,
0.23780615627765656,
0.0199461467564106,
0.20217366516590118,
0.009263921529054642,
-0.21780332922935486,
0.032492928206920624,
-0.33661088347435,
-0.26293691992759705,
-0.28261691331863403,
-0.06241041421890259,
-0.14011317491531372,
0.14870017766952515,
-0.18434786796569824,
-0.3533779978752136,
0.14648205041885376,
0.41115137934684753,
0.38089799880981445,
0.022437527775764465,
-0.4623304605484009,
0.3006558418273926,
-0.29872554540634155,
-0.10485634952783585,
-0.2611708343029022,
0.4293637275695801,
0.07213541120290756,
-0.2631468176841736,
0.17588482797145844,
-0.05898912996053696,
0.17178921401500702,
-0.2416347712278366,
-0.222116619348526,
0.24508193135261536,
-0.12085530161857605,
0.17090699076652527,
0.11697521805763245,
-0.22262565791606903,
0.295774906873703,
-0.006211534142494202,
-0.07205667346715927,
0.34458762407302856,
0.21932831406593323,
0.204120934009552,
-0.223990797996521,
0.4739874005317688,
-0.030565444380044937,
0.3029977083206177,
0.02091147005558014,
-0.2058359533548355,
0.1924334168434143,
-0.008431442081928253,
-0.34215232729911804,
0.06537067890167236,
0.3345847427845001,
-0.12588849663734436,
0.09460529685020447,
-0.061295732855796814,
-0.3791347146034241,
-0.06355684250593185,
0.5271065831184387,
-0.083058662712574,
-0.16150182485580444,
0.1926879584789276,
-0.1803123652935028,
-0.055543988943099976,
0.296563982963562,
-0.006716445088386536,
0.33357664942741394,
0.15754517912864685,
0.10460247844457626,
0.01661337912082672,
-0.11111657321453094,
-0.25655514001846313,
0.20916078984737396,
-0.09003469347953796,
0.1146262139081955,
0.544916570186615,
0.03563699126243591,
0.0449172668159008,
-0.399539977312088,
-0.2428150773048401,
-0.12888213992118835,
0.14558091759681702,
-0.09908875823020935,
0.38413479924201965,
-0.39113563299179077,
-0.37131842970848083,
-0.12017011642456055,
-0.11286929249763489,
-0.0630648285150528,
-0.08577307313680649,
-0.026965878903865814,
0.29855877161026,
-0.2004610151052475,
0.23292386531829834,
0.0005526319146156311,
0.039402320981025696,
0.2519480884075165,
-0.42273780703544617,
-0.4818938076496124,
-0.16303794085979462,
-0.19115638732910156,
-0.010403119027614594,
0.26560360193252563,
-0.28788837790489197,
0.30171647667884827,
-0.0459040142595768,
-0.3699752688407898,
-0.270799845457077,
0.11940678209066391,
0.1435607671737671,
0.07218222320079803,
-0.0227005984634161,
-0.0912800133228302,
0.22808411717414856,
-0.07968728989362717,
-0.3324355483055115,
0.2870093286037445,
-0.21745269000530243,
-0.1486559957265854,
0.19485147297382355,
-0.031184524297714233,
-0.001844333834014833,
-0.23529887199401855,
-0.26552072167396545,
-0.14724445343017578,
-0.485222190618515,
0.2896817922592163,
-0.04036954417824745,
0.3086789548397064,
0.24290966987609863,
0.14409828186035156,
0.17795976996421814,
0.15565785765647888,
-0.05469310283660889,
-0.15096253156661987,
-0.6362749934196472,
0.3917449116706848,
-0.1101355254650116,
-0.23037837445735931,
-0.02950058877468109,
-0.15559694170951843,
-0.05509747192263603,
0.3612906336784363,
-0.456218421459198,
0.23791326582431793,
0.07027334719896317,
0.08341844379901886,
-0.09506763517856598,
-0.1340571939945221,
0.19144615530967712,
-0.10754648596048355,
-0.06036056578159332,
-0.25900954008102417,
0.07594385743141174,
-0.012235268950462341,
0.2527312636375427,
0.18331050872802734,
0.4013438820838928,
0.746996283531189,
-0.03916163370013237,
0.28654342889785767,
0.35339242219924927,
0.14586864411830902,
0.5503770112991333,
-0.13009293377399445,
0.16025091707706451,
-0.2425830364227295,
-0.21884115040302277,
0.0596466101706028,
0.10508371144533157,
-0.31964123249053955,
0.027433231472969055,
0.001218494027853012,
-0.3406587839126587,
-0.32408490777015686,
0.12440396845340729,
-0.30620133876800537,
-0.18829455971717834,
0.2014842927455902,
-0.0963934063911438,
0.19641220569610596,
-0.03942342847585678,
-0.029639430344104767,
-0.003231738694012165,
0.11535080522298813,
-0.04832863807678223,
0.26540958881378174,
0.42851322889328003,
0.128932923078537,
-0.054323792457580566,
-0.18306663632392883,
-0.3484933078289032,
0.07876434177160263,
0.2743046283721924,
0.6020610332489014,
-0.16699959337711334,
-0.16875505447387695,
0.07984762638807297,
-0.1684129536151886,
0.46363019943237305,
-0.1258806586265564,
-0.03415403515100479,
0.3472767174243927,
-0.12427911162376404,
-0.02665342018008232,
-0.11905404925346375,
-0.043169476091861725,
0.3530092239379883,
0.19594888389110565,
0.6723824739456177,
-0.17720693349838257,
-0.22020050883293152,
0.11325596272945404,
0.02156505361199379,
0.0907033234834671,
-0.15626823902130127,
-0.29280713200569153,
-0.13581210374832153,
-0.2019330859184265,
-0.06550434976816177,
-0.07177653163671494,
0.24107825756072998,
0.019956234842538834,
-0.13128161430358887,
0.0536012127995491,
-0.07305477559566498,
-0.11266610026359558,
0.007803469896316528,
0.29403892159461975,
-0.032531414180994034,
0.15934231877326965,
0.05702297389507294,
0.5039330720901489,
0.23278433084487915,
0.5136661529541016,
0.5314756631851196,
-0.41477733850479126,
0.13258467614650726,
0.07024545222520828,
0.13299435377120972,
0.16498954594135284,
-0.13509337604045868,
-0.1513887643814087,
0.13810452818870544,
0.25746211409568787,
-0.03558150306344032,
-0.08321437984704971,
0.23381945490837097,
-0.15558214485645294,
-0.35673788189888,
-0.4606524109840393,
0.24326112866401672,
-0.039203427731990814,
0.1920533925294876,
0.7787454128265381,
-0.6046571731567383,
-0.16807036101818085,
0.12870407104492188,
-0.32743945717811584,
0.6506021618843079,
0.3056921362876892,
-0.012612182646989822,
0.42303088307380676,
-0.153007373213768,
0.4291079342365265,
-0.4506242871284485,
0.3880237340927124,
-0.10754474252462387,
-0.18950903415679932,
0.013625076040625572,
-0.1521783471107483,
0.32724660634994507,
0.17365054786205292,
-0.3301243484020233,
0.15608085691928864,
0.09498736262321472,
-0.02611202374100685,
0.05640286207199097,
0.08446595072746277,
-0.34109124541282654,
-0.14785519242286682,
-0.6056395769119263,
0.08227259665727615,
-0.16434292495250702,
0.3591598868370056,
0.1198650375008583,
-0.38716042041778564,
0.010003026574850082,
-0.21891921758651733,
-0.1640441119670868,
0.4873066842556,
-0.22052393853664398,
-0.043798789381980896,
-0.12016470730304718,
-0.6457442045211792,
-0.32317784428596497,
-0.1665356308221817,
-0.3695809841156006,
-0.10148720443248749,
-0.09688042104244232,
-0.014015831053256989,
-0.156002938747406,
0.08157525956630707,
-0.4244864284992218,
0.2442319691181183,
0.1879109889268875,
-0.14475712180137634,
-0.08543470501899719,
0.17301888763904572,
-0.27939414978027344,
-0.5516800284385681,
0.20679545402526855,
-0.09458145499229431,
0.24433733522891998,
0.13876888155937195,
-0.014279612340033054,
0.01889847218990326,
-0.19521266222000122,
-0.20210643112659454,
0.13159580528736115,
-0.14081449806690216,
-0.3405292332172394,
-0.2667015790939331,
-0.15190216898918152,
-0.20086094737052917,
-0.10448192059993744,
0.2798333168029785,
0.07013832032680511,
0.30247917771339417,
0.3966614603996277,
-0.017607446759939194,
-0.0633016899228096,
-0.28495609760284424,
0.08220293372869492,
-0.19944484531879425,
-0.06271819770336151,
0.1458606719970703,
-0.02385895699262619,
0.17356373369693756,
-0.22501634061336517,
-0.01057448610663414,
0.15743285417556763,
0.05278000235557556,
0.031123843044042587,
-0.4647309184074402,
-0.1359291523694992,
-0.10715062916278839,
-0.005500413477420807,
0.11171872913837433,
0.1044035330414772,
0.20525553822517395,
0.1506943553686142,
-0.18481294810771942,
-0.2874046564102173,
-0.14904499053955078,
-0.17983241379261017,
0.03887825831770897,
0.01970127411186695,
0.14451341331005096,
0.3058989644050598,
0.04177630692720413,
0.17262426018714905,
0.18458108603954315,
0.1145530641078949,
-0.2760637104511261,
-0.12947528064250946,
0.1017443984746933,
0.14755043387413025,
-0.10664547979831696,
-0.2568066120147705,
-0.07840289920568466,
-0.239744633436203,
-0.09031302481889725,
0.10302047431468964,
-0.0890861302614212,
-0.0714164674282074,
0.22048278152942657,
0.3504035472869873,
-0.04147987812757492,
-0.1651158183813095,
-0.06969308108091354,
-0.20297080278396606,
0.32461684942245483,
-0.14919239282608032,
0.09574583172798157,
0.047933146357536316,
0.07567484676837921,
-0.5871011018753052,
-0.08130393177270889,
-0.09646105766296387,
0.15437893569469452,
0.5952441692352295,
-0.4551481604576111,
0.031125616282224655,
0.04556943476200104,
0.16995392739772797,
0.4789014160633087,
-0.130455881357193,
0.039013080298900604,
0.1729508340358734,
0.18766678869724274,
-0.04849923774600029,
-0.070273756980896,
0.13779570162296295,
0.10602940618991852,
-0.0637325793504715,
-0.07113242894411087,
-0.15258416533470154,
-0.1502205729484558,
0.09985964000225067,
0.014319159090518951,
0.3330245316028595,
0.045888785272836685,
0.21135471761226654,
0.40808460116386414,
0.20176081359386444,
0.07180195301771164,
-0.380993127822876,
0.02005460299551487,
0.07189998030662537,
-0.1887304037809372,
-0.1524384617805481,
-0.12570372223854065,
0.0813990905880928,
0.12150539457798004,
-0.3927780091762543,
-0.3188351094722748,
-0.35021430253982544,
0.08560150116682053,
-0.11790616810321808,
0.40861284732818604,
-0.005911961197853088,
0.2030268907546997,
-0.20639900863170624,
0.03384674713015556,
0.043884776532649994,
0.16065973043441772,
0.018574096262454987,
0.11596214771270752,
-0.5277093648910522,
-0.031080592423677444,
-0.058305662125349045,
0.038965340703725815,
0.35443711280822754,
0.5155138969421387,
-0.03619864583015442,
0.22145415842533112,
-0.10615214705467224,
-0.1359121948480606,
0.08837787806987762,
0.17714732885360718,
0.34257495403289795,
-0.3739396333694458,
0.287647008895874,
0.21353942155838013,
0.08201015740633011,
-0.07543784379959106,
0.009954357519745827,
0.37296000123023987,
0.36083120107650757,
0.0665019229054451,
0.027809500694274902,
0.03634852170944214,
-0.09334032237529755,
0.026661302894353867,
0.3354787230491638,
0.19048529863357544,
-0.18797829747200012,
0.2221895456314087,
0.11016614735126495,
-0.0887121930718422,
0.3944171667098999,
0.09830324351787567,
0.1196608692407608,
-0.11526431143283844,
0.1943056732416153,
-0.24773859977722168,
-0.10861094295978546,
0.0640452429652214,
-0.35414445400238037,
-0.35876914858818054,
-0.06347710639238358,
0.23324845731258392,
0.11249019205570221,
0.044079214334487915,
-0.02507716417312622,
0.08495385199785233,
-0.1289328932762146,
0.2790074348449707,
0.245602548122406,
-0.0799996629357338,
-0.166844442486763,
-0.18446677923202515,
-0.20152665674686432,
0.1580558717250824,
-0.040409769862890244,
-0.10791891813278198,
0.23713824152946472,
0.32793277502059937,
-0.0682450607419014,
0.2060447335243225,
-0.09007188677787781,
-0.18220065534114838,
-0.29460200667381287,
0.28071337938308716,
-0.35465186834335327,
-0.23699729144573212,
0.17879702150821686,
0.23359733819961548,
0.09106537699699402,
-0.4543970227241516,
0.20507299900054932,
-0.33120349049568176,
0.1178356483578682,
0.05539218336343765,
-0.030520956963300705,
0.01567915454506874,
0.06685076653957367,
0.23565347492694855,
0.1621074229478836,
0.11554665118455887,
-0.13499517738819122,
-0.19207142293453217,
-0.07282063364982605,
-0.17684753239154816,
-0.01831146329641342,
0.14588353037834167,
-0.05825008079409599,
0.5028746128082275,
-0.04843546450138092,
-0.4014248847961426,
-0.4371393918991089,
0.4285813570022583,
-0.04396221786737442,
-0.44399869441986084,
0.010393574833869934,
0.014010194689035416,
-0.1760370135307312,
0.18188342452049255,
0.012476270087063313,
0.17777270078659058,
-0.05060421675443649,
0.06168229877948761,
-0.3085520565509796,
-0.1021587923169136,
0.5942248702049255,
-0.4224969446659088,
-0.31925371289253235,
0.3241410553455353,
0.1266874223947525,
0.11907008290290833,
0.12989541888237,
-0.196591317653656,
0.13247603178024292,
0.43720483779907227,
-0.02838752046227455,
0.12153846025466919,
0.15976327657699585,
0.11520226299762726,
0.1851297914981842,
0.11781887710094452,
0.07764849066734314,
0.1725969910621643,
-0.2597600817680359,
0.13292790949344635,
-0.21405047178268433
] |
https://github.com/huggingface/datasets/issues/2607 | Streaming local gzip compressed JSON line files is not working | Sorry for reopening this, but I'm having the same issue as @thomwolf when streaming a gzipped JSON Lines file from the hub. Or is that just not possible by definition?
I installed `datasets`in editable mode from source (so probably includes the fix from #2608 ?):
```
>>> datasets.__version__
'1.9.1.dev0'
```
```
>>> msmarco = datasets.load_dataset("webis/msmarco", "corpus", streaming=True)
Using custom data configuration corpus-174d3b7155eb68db
>>> msmarco_iter = iter(msmarco['train'])
>>> print(next(msmarco_iter))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 338, in __iter__
for key, example in self._iter():
File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 335, in _iter
yield from ex_iterable
File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 78, in __iter__
for key, example in self.generate_examples_fn(**self.kwargs):
File "/home/christopher/.cache/huggingface/modules/datasets_modules/datasets/msmarco/eb63dff8d83107168e973c7a655a6082d37e08d71b4ac39a0afada479c138745/msmarco.py", line 96, in _generate_examples
with gzip.open(file, "rt", encoding="utf-8") as f:
File "/usr/lib/python3.6/gzip.py", line 53, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/lib/python3.6/gzip.py", line 163, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'https://huggingface.co/datasets/webis/msmarco/resolve/main/msmarco_doc_00.gz'
```
Loading the dataset without streaming set to True, works fine. | ## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True)
next(iter(streamed_dataset))
```
## Actual results
```
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-27a664e29784> in <module>
----> 1 next(iter(streamed_dataset))
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
336
337 def __iter__(self):
--> 338 for key, example in self._iter():
339 if self.features:
340 # we encode the example for ClassLabel feature types for example
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self)
333 else:
334 ex_iterable = self._ex_iterable
--> 335 yield from ex_iterable
336
337 def __iter__(self):
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs)
282 def wrapper(**kwargs):
283 python_formatter = PythonFormatter()
--> 284 for key, table in generate_tables_fn(**kwargs):
285 batch = python_formatter.format_batch(table)
286 for i, example in enumerate(_batch_to_examples(batch)):
~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files)
85 file,
86 read_options=self.config.pa_read_options,
---> 87 parse_options=self.config.pa_parse_options,
88 )
89 except pa.ArrowInvalid as err:
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory
```
## Environment info
- `datasets` version: 1.9.1.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.7
- PyArrow version: 1.0.0 | 167 | Streaming local gzip compressed JSON line files is not working
## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True)
next(iter(streamed_dataset))
```
## Actual results
```
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-27a664e29784> in <module>
----> 1 next(iter(streamed_dataset))
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
336
337 def __iter__(self):
--> 338 for key, example in self._iter():
339 if self.features:
340 # we encode the example for ClassLabel feature types for example
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self)
333 else:
334 ex_iterable = self._ex_iterable
--> 335 yield from ex_iterable
336
337 def __iter__(self):
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs)
282 def wrapper(**kwargs):
283 python_formatter = PythonFormatter()
--> 284 for key, table in generate_tables_fn(**kwargs):
285 batch = python_formatter.format_batch(table)
286 for i, example in enumerate(_batch_to_examples(batch)):
~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files)
85 file,
86 read_options=self.config.pa_read_options,
---> 87 parse_options=self.config.pa_parse_options,
88 )
89 except pa.ArrowInvalid as err:
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory
```
## Environment info
- `datasets` version: 1.9.1.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.7
- PyArrow version: 1.0.0
Sorry for reopening this, but I'm having the same issue as @thomwolf when streaming a gzipped JSON Lines file from the hub. Or is that just not possible by definition?
I installed `datasets`in editable mode from source (so probably includes the fix from #2608 ?):
```
>>> datasets.__version__
'1.9.1.dev0'
```
```
>>> msmarco = datasets.load_dataset("webis/msmarco", "corpus", streaming=True)
Using custom data configuration corpus-174d3b7155eb68db
>>> msmarco_iter = iter(msmarco['train'])
>>> print(next(msmarco_iter))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 338, in __iter__
for key, example in self._iter():
File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 335, in _iter
yield from ex_iterable
File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 78, in __iter__
for key, example in self.generate_examples_fn(**self.kwargs):
File "/home/christopher/.cache/huggingface/modules/datasets_modules/datasets/msmarco/eb63dff8d83107168e973c7a655a6082d37e08d71b4ac39a0afada479c138745/msmarco.py", line 96, in _generate_examples
with gzip.open(file, "rt", encoding="utf-8") as f:
File "/usr/lib/python3.6/gzip.py", line 53, in open
binary_file = GzipFile(filename, gz_mode, compresslevel)
File "/usr/lib/python3.6/gzip.py", line 163, in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'https://huggingface.co/datasets/webis/msmarco/resolve/main/msmarco_doc_00.gz'
```
Loading the dataset without streaming set to True, works fine. | [
-0.19924907386302948,
-0.13397781550884247,
-0.00914461724460125,
0.2391349971294403,
0.07776452600955963,
0.016880035400390625,
0.3976743817329407,
0.5178913474082947,
0.19702133536338806,
0.0789988785982132,
0.10300148278474808,
0.3306829631328583,
-0.08836679905653,
0.020873846486210823,
0.22888673841953278,
-0.18093417584896088,
-0.043661899864673615,
0.3560611307621002,
-0.025166675448417664,
0.0015850141644477844,
-0.1305663287639618,
0.2937990427017212,
-0.1404590606689453,
-0.01851685345172882,
-0.018797723576426506,
-0.03955550491809845,
-0.04714987426996231,
0.15009424090385437,
-0.09395959973335266,
-0.3326382637023926,
0.06276936084032059,
-0.16841457784175873,
0.18802249431610107,
0.4454551637172699,
-0.00011453595652710646,
0.28864115476608276,
0.29611068964004517,
-0.16291417181491852,
-0.38860687613487244,
-0.4712483882904053,
-0.22990095615386963,
-0.14929929375648499,
-0.13077154755592346,
-0.28584545850753784,
-0.1378191113471985,
-0.34743621945381165,
-0.03375668823719025,
-0.5072002410888672,
0.5416868925094604,
0.2922607660293579,
0.15566380321979523,
0.04196545109152794,
-0.06177228316664696,
0.0905790776014328,
0.03901580348610878,
0.15732377767562866,
-0.08860811591148376,
0.3150974214076996,
0.032788489013910294,
0.11496810615062714,
0.05528499186038971,
0.4286458194255829,
-0.22549587488174438,
-0.17477723956108093,
0.14737007021903992,
-0.0008161365985870361,
-0.0843830332159996,
-0.12578685581684113,
-0.1683151125907898,
0.08573462069034576,
0.18454492092132568,
-0.41225653886795044,
-0.43983420729637146,
-0.3761075735092163,
0.04667404294013977,
-0.44880279898643494,
0.21185481548309326,
0.4092857539653778,
-0.2503080666065216,
0.1969691962003708,
-0.10066583752632141,
-0.13053177297115326,
-0.3545615077018738,
0.08545256406068802,
0.36184927821159363,
0.34808260202407837,
-0.09467773139476776,
0.00912870466709137,
-0.09198708832263947,
0.11937958747148514,
-0.08398443460464478,
-0.38596197962760925,
-0.18570630252361298,
0.22775647044181824,
-0.2421414703130722,
-0.13492238521575928,
0.14436252415180206,
-0.6062144041061401,
0.1511496603488922,
0.10122843831777573,
0.4615779519081116,
-0.12574464082717896,
0.35880759358406067,
0.054608240723609924,
0.27286845445632935,
0.18704862892627716,
0.17696598172187805,
0.26384198665618896,
0.05665925517678261,
0.389880508184433,
-0.08656640350818634,
-0.19807371497154236,
-0.23633751273155212,
-0.0394047275185585,
-0.09152989089488983,
0.13681063055992126,
0.48332613706588745,
-0.1576652228832245,
-0.08909349888563156,
0.0819106176495552,
-0.5941806435585022,
-0.13269999623298645,
0.15767234563827515,
0.09860969334840775,
0.0661022812128067,
0.2201751470565796,
0.026484891772270203,
0.1610841304063797,
-0.0021045375615358353,
-0.06189456209540367,
-0.09079552441835403,
0.023572301492094994,
0.0740586370229721,
0.13479897379875183,
0.25189730525016785,
-0.5213881134986877,
0.27936431765556335,
0.008754490874707699,
-0.046029575169086456,
-0.15623420476913452,
0.005845250561833382,
-0.12555629014968872,
0.1504514068365097,
0.1468389481306076,
-0.025929123163223267,
0.01936381869018078,
0.20588421821594238,
-0.1102273091673851,
-0.1738194227218628,
0.118353933095932,
-0.2751956880092621,
-0.26721346378326416,
0.03723612800240517,
0.20101679861545563,
0.03815893083810806,
0.009389208629727364,
-0.00814894586801529,
0.005931306630373001,
0.05569905415177345,
-0.3565130829811096,
0.02363625168800354,
-0.009464718401432037,
-0.055801376700401306,
-0.084129199385643,
0.2759925425052643,
0.4360963702201843,
-0.36087194085121155,
-0.10359223186969757,
0.0715651586651802,
0.21758553385734558,
0.7216557860374451,
0.34253770112991333,
-0.23797157406806946,
0.12730737030506134,
-0.3681201636791229,
0.361905038356781,
0.6931345462799072,
0.016038142144680023,
-0.3624648451805115,
0.8522371649742126,
-0.10863479971885681,
0.3817499577999115,
0.48008397221565247,
-0.20442916452884674,
0.1941487193107605,
-0.010517766699194908,
0.3352074921131134,
0.2812868356704712,
-0.044572003185749054,
0.038527533411979675,
-0.46427121758461,
0.13121458888053894,
0.041949767619371414,
0.03780543431639671,
-0.25131797790527344,
0.29544100165367126,
-0.04339214414358139,
0.01503328699618578,
0.35208964347839355,
-0.18005645275115967,
0.10818453133106232,
0.2904559373855591,
0.23780615627765656,
0.0199461467564106,
0.20217366516590118,
0.009263921529054642,
-0.21780332922935486,
0.032492928206920624,
-0.33661088347435,
-0.26293691992759705,
-0.28261691331863403,
-0.06241041421890259,
-0.14011317491531372,
0.14870017766952515,
-0.18434786796569824,
-0.3533779978752136,
0.14648205041885376,
0.41115137934684753,
0.38089799880981445,
0.022437527775764465,
-0.4623304605484009,
0.3006558418273926,
-0.29872554540634155,
-0.10485634952783585,
-0.2611708343029022,
0.4293637275695801,
0.07213541120290756,
-0.2631468176841736,
0.17588482797145844,
-0.05898912996053696,
0.17178921401500702,
-0.2416347712278366,
-0.222116619348526,
0.24508193135261536,
-0.12085530161857605,
0.17090699076652527,
0.11697521805763245,
-0.22262565791606903,
0.295774906873703,
-0.006211534142494202,
-0.07205667346715927,
0.34458762407302856,
0.21932831406593323,
0.204120934009552,
-0.223990797996521,
0.4739874005317688,
-0.030565444380044937,
0.3029977083206177,
0.02091147005558014,
-0.2058359533548355,
0.1924334168434143,
-0.008431442081928253,
-0.34215232729911804,
0.06537067890167236,
0.3345847427845001,
-0.12588849663734436,
0.09460529685020447,
-0.061295732855796814,
-0.3791347146034241,
-0.06355684250593185,
0.5271065831184387,
-0.083058662712574,
-0.16150182485580444,
0.1926879584789276,
-0.1803123652935028,
-0.055543988943099976,
0.296563982963562,
-0.006716445088386536,
0.33357664942741394,
0.15754517912864685,
0.10460247844457626,
0.01661337912082672,
-0.11111657321453094,
-0.25655514001846313,
0.20916078984737396,
-0.09003469347953796,
0.1146262139081955,
0.544916570186615,
0.03563699126243591,
0.0449172668159008,
-0.399539977312088,
-0.2428150773048401,
-0.12888213992118835,
0.14558091759681702,
-0.09908875823020935,
0.38413479924201965,
-0.39113563299179077,
-0.37131842970848083,
-0.12017011642456055,
-0.11286929249763489,
-0.0630648285150528,
-0.08577307313680649,
-0.026965878903865814,
0.29855877161026,
-0.2004610151052475,
0.23292386531829834,
0.0005526319146156311,
0.039402320981025696,
0.2519480884075165,
-0.42273780703544617,
-0.4818938076496124,
-0.16303794085979462,
-0.19115638732910156,
-0.010403119027614594,
0.26560360193252563,
-0.28788837790489197,
0.30171647667884827,
-0.0459040142595768,
-0.3699752688407898,
-0.270799845457077,
0.11940678209066391,
0.1435607671737671,
0.07218222320079803,
-0.0227005984634161,
-0.0912800133228302,
0.22808411717414856,
-0.07968728989362717,
-0.3324355483055115,
0.2870093286037445,
-0.21745269000530243,
-0.1486559957265854,
0.19485147297382355,
-0.031184524297714233,
-0.001844333834014833,
-0.23529887199401855,
-0.26552072167396545,
-0.14724445343017578,
-0.485222190618515,
0.2896817922592163,
-0.04036954417824745,
0.3086789548397064,
0.24290966987609863,
0.14409828186035156,
0.17795976996421814,
0.15565785765647888,
-0.05469310283660889,
-0.15096253156661987,
-0.6362749934196472,
0.3917449116706848,
-0.1101355254650116,
-0.23037837445735931,
-0.02950058877468109,
-0.15559694170951843,
-0.05509747192263603,
0.3612906336784363,
-0.456218421459198,
0.23791326582431793,
0.07027334719896317,
0.08341844379901886,
-0.09506763517856598,
-0.1340571939945221,
0.19144615530967712,
-0.10754648596048355,
-0.06036056578159332,
-0.25900954008102417,
0.07594385743141174,
-0.012235268950462341,
0.2527312636375427,
0.18331050872802734,
0.4013438820838928,
0.746996283531189,
-0.03916163370013237,
0.28654342889785767,
0.35339242219924927,
0.14586864411830902,
0.5503770112991333,
-0.13009293377399445,
0.16025091707706451,
-0.2425830364227295,
-0.21884115040302277,
0.0596466101706028,
0.10508371144533157,
-0.31964123249053955,
0.027433231472969055,
0.001218494027853012,
-0.3406587839126587,
-0.32408490777015686,
0.12440396845340729,
-0.30620133876800537,
-0.18829455971717834,
0.2014842927455902,
-0.0963934063911438,
0.19641220569610596,
-0.03942342847585678,
-0.029639430344104767,
-0.003231738694012165,
0.11535080522298813,
-0.04832863807678223,
0.26540958881378174,
0.42851322889328003,
0.128932923078537,
-0.054323792457580566,
-0.18306663632392883,
-0.3484933078289032,
0.07876434177160263,
0.2743046283721924,
0.6020610332489014,
-0.16699959337711334,
-0.16875505447387695,
0.07984762638807297,
-0.1684129536151886,
0.46363019943237305,
-0.1258806586265564,
-0.03415403515100479,
0.3472767174243927,
-0.12427911162376404,
-0.02665342018008232,
-0.11905404925346375,
-0.043169476091861725,
0.3530092239379883,
0.19594888389110565,
0.6723824739456177,
-0.17720693349838257,
-0.22020050883293152,
0.11325596272945404,
0.02156505361199379,
0.0907033234834671,
-0.15626823902130127,
-0.29280713200569153,
-0.13581210374832153,
-0.2019330859184265,
-0.06550434976816177,
-0.07177653163671494,
0.24107825756072998,
0.019956234842538834,
-0.13128161430358887,
0.0536012127995491,
-0.07305477559566498,
-0.11266610026359558,
0.007803469896316528,
0.29403892159461975,
-0.032531414180994034,
0.15934231877326965,
0.05702297389507294,
0.5039330720901489,
0.23278433084487915,
0.5136661529541016,
0.5314756631851196,
-0.41477733850479126,
0.13258467614650726,
0.07024545222520828,
0.13299435377120972,
0.16498954594135284,
-0.13509337604045868,
-0.1513887643814087,
0.13810452818870544,
0.25746211409568787,
-0.03558150306344032,
-0.08321437984704971,
0.23381945490837097,
-0.15558214485645294,
-0.35673788189888,
-0.4606524109840393,
0.24326112866401672,
-0.039203427731990814,
0.1920533925294876,
0.7787454128265381,
-0.6046571731567383,
-0.16807036101818085,
0.12870407104492188,
-0.32743945717811584,
0.6506021618843079,
0.3056921362876892,
-0.012612182646989822,
0.42303088307380676,
-0.153007373213768,
0.4291079342365265,
-0.4506242871284485,
0.3880237340927124,
-0.10754474252462387,
-0.18950903415679932,
0.013625076040625572,
-0.1521783471107483,
0.32724660634994507,
0.17365054786205292,
-0.3301243484020233,
0.15608085691928864,
0.09498736262321472,
-0.02611202374100685,
0.05640286207199097,
0.08446595072746277,
-0.34109124541282654,
-0.14785519242286682,
-0.6056395769119263,
0.08227259665727615,
-0.16434292495250702,
0.3591598868370056,
0.1198650375008583,
-0.38716042041778564,
0.010003026574850082,
-0.21891921758651733,
-0.1640441119670868,
0.4873066842556,
-0.22052393853664398,
-0.043798789381980896,
-0.12016470730304718,
-0.6457442045211792,
-0.32317784428596497,
-0.1665356308221817,
-0.3695809841156006,
-0.10148720443248749,
-0.09688042104244232,
-0.014015831053256989,
-0.156002938747406,
0.08157525956630707,
-0.4244864284992218,
0.2442319691181183,
0.1879109889268875,
-0.14475712180137634,
-0.08543470501899719,
0.17301888763904572,
-0.27939414978027344,
-0.5516800284385681,
0.20679545402526855,
-0.09458145499229431,
0.24433733522891998,
0.13876888155937195,
-0.014279612340033054,
0.01889847218990326,
-0.19521266222000122,
-0.20210643112659454,
0.13159580528736115,
-0.14081449806690216,
-0.3405292332172394,
-0.2667015790939331,
-0.15190216898918152,
-0.20086094737052917,
-0.10448192059993744,
0.2798333168029785,
0.07013832032680511,
0.30247917771339417,
0.3966614603996277,
-0.017607446759939194,
-0.0633016899228096,
-0.28495609760284424,
0.08220293372869492,
-0.19944484531879425,
-0.06271819770336151,
0.1458606719970703,
-0.02385895699262619,
0.17356373369693756,
-0.22501634061336517,
-0.01057448610663414,
0.15743285417556763,
0.05278000235557556,
0.031123843044042587,
-0.4647309184074402,
-0.1359291523694992,
-0.10715062916278839,
-0.005500413477420807,
0.11171872913837433,
0.1044035330414772,
0.20525553822517395,
0.1506943553686142,
-0.18481294810771942,
-0.2874046564102173,
-0.14904499053955078,
-0.17983241379261017,
0.03887825831770897,
0.01970127411186695,
0.14451341331005096,
0.3058989644050598,
0.04177630692720413,
0.17262426018714905,
0.18458108603954315,
0.1145530641078949,
-0.2760637104511261,
-0.12947528064250946,
0.1017443984746933,
0.14755043387413025,
-0.10664547979831696,
-0.2568066120147705,
-0.07840289920568466,
-0.239744633436203,
-0.09031302481889725,
0.10302047431468964,
-0.0890861302614212,
-0.0714164674282074,
0.22048278152942657,
0.3504035472869873,
-0.04147987812757492,
-0.1651158183813095,
-0.06969308108091354,
-0.20297080278396606,
0.32461684942245483,
-0.14919239282608032,
0.09574583172798157,
0.047933146357536316,
0.07567484676837921,
-0.5871011018753052,
-0.08130393177270889,
-0.09646105766296387,
0.15437893569469452,
0.5952441692352295,
-0.4551481604576111,
0.031125616282224655,
0.04556943476200104,
0.16995392739772797,
0.4789014160633087,
-0.130455881357193,
0.039013080298900604,
0.1729508340358734,
0.18766678869724274,
-0.04849923774600029,
-0.070273756980896,
0.13779570162296295,
0.10602940618991852,
-0.0637325793504715,
-0.07113242894411087,
-0.15258416533470154,
-0.1502205729484558,
0.09985964000225067,
0.014319159090518951,
0.3330245316028595,
0.045888785272836685,
0.21135471761226654,
0.40808460116386414,
0.20176081359386444,
0.07180195301771164,
-0.380993127822876,
0.02005460299551487,
0.07189998030662537,
-0.1887304037809372,
-0.1524384617805481,
-0.12570372223854065,
0.0813990905880928,
0.12150539457798004,
-0.3927780091762543,
-0.3188351094722748,
-0.35021430253982544,
0.08560150116682053,
-0.11790616810321808,
0.40861284732818604,
-0.005911961197853088,
0.2030268907546997,
-0.20639900863170624,
0.03384674713015556,
0.043884776532649994,
0.16065973043441772,
0.018574096262454987,
0.11596214771270752,
-0.5277093648910522,
-0.031080592423677444,
-0.058305662125349045,
0.038965340703725815,
0.35443711280822754,
0.5155138969421387,
-0.03619864583015442,
0.22145415842533112,
-0.10615214705467224,
-0.1359121948480606,
0.08837787806987762,
0.17714732885360718,
0.34257495403289795,
-0.3739396333694458,
0.287647008895874,
0.21353942155838013,
0.08201015740633011,
-0.07543784379959106,
0.009954357519745827,
0.37296000123023987,
0.36083120107650757,
0.0665019229054451,
0.027809500694274902,
0.03634852170944214,
-0.09334032237529755,
0.026661302894353867,
0.3354787230491638,
0.19048529863357544,
-0.18797829747200012,
0.2221895456314087,
0.11016614735126495,
-0.0887121930718422,
0.3944171667098999,
0.09830324351787567,
0.1196608692407608,
-0.11526431143283844,
0.1943056732416153,
-0.24773859977722168,
-0.10861094295978546,
0.0640452429652214,
-0.35414445400238037,
-0.35876914858818054,
-0.06347710639238358,
0.23324845731258392,
0.11249019205570221,
0.044079214334487915,
-0.02507716417312622,
0.08495385199785233,
-0.1289328932762146,
0.2790074348449707,
0.245602548122406,
-0.0799996629357338,
-0.166844442486763,
-0.18446677923202515,
-0.20152665674686432,
0.1580558717250824,
-0.040409769862890244,
-0.10791891813278198,
0.23713824152946472,
0.32793277502059937,
-0.0682450607419014,
0.2060447335243225,
-0.09007188677787781,
-0.18220065534114838,
-0.29460200667381287,
0.28071337938308716,
-0.35465186834335327,
-0.23699729144573212,
0.17879702150821686,
0.23359733819961548,
0.09106537699699402,
-0.4543970227241516,
0.20507299900054932,
-0.33120349049568176,
0.1178356483578682,
0.05539218336343765,
-0.030520956963300705,
0.01567915454506874,
0.06685076653957367,
0.23565347492694855,
0.1621074229478836,
0.11554665118455887,
-0.13499517738819122,
-0.19207142293453217,
-0.07282063364982605,
-0.17684753239154816,
-0.01831146329641342,
0.14588353037834167,
-0.05825008079409599,
0.5028746128082275,
-0.04843546450138092,
-0.4014248847961426,
-0.4371393918991089,
0.4285813570022583,
-0.04396221786737442,
-0.44399869441986084,
0.010393574833869934,
0.014010194689035416,
-0.1760370135307312,
0.18188342452049255,
0.012476270087063313,
0.17777270078659058,
-0.05060421675443649,
0.06168229877948761,
-0.3085520565509796,
-0.1021587923169136,
0.5942248702049255,
-0.4224969446659088,
-0.31925371289253235,
0.3241410553455353,
0.1266874223947525,
0.11907008290290833,
0.12989541888237,
-0.196591317653656,
0.13247603178024292,
0.43720483779907227,
-0.02838752046227455,
0.12153846025466919,
0.15976327657699585,
0.11520226299762726,
0.1851297914981842,
0.11781887710094452,
0.07764849066734314,
0.1725969910621643,
-0.2597600817680359,
0.13292790949344635,
-0.21405047178268433
] |
https://github.com/huggingface/datasets/issues/2607 | Streaming local gzip compressed JSON line files is not working | Hi ! To make the streaming work, we extend `open` in the dataset builder to work with urls.
Therefore you just need to use `open` before using `gzip.open`:
```diff
- with gzip.open(file, "rt", encoding="utf-8") as f:
+ with gzip.open(open(file, "rb"), "rt", encoding="utf-8") as f:
```
You can see that it is the case for oscar.py and c4.py for example:
https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/oscar/oscar.py#L358-L358
https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/c4/c4.py#L88-L88
| ## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True)
next(iter(streamed_dataset))
```
## Actual results
```
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-27a664e29784> in <module>
----> 1 next(iter(streamed_dataset))
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
336
337 def __iter__(self):
--> 338 for key, example in self._iter():
339 if self.features:
340 # we encode the example for ClassLabel feature types for example
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self)
333 else:
334 ex_iterable = self._ex_iterable
--> 335 yield from ex_iterable
336
337 def __iter__(self):
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs)
282 def wrapper(**kwargs):
283 python_formatter = PythonFormatter()
--> 284 for key, table in generate_tables_fn(**kwargs):
285 batch = python_formatter.format_batch(table)
286 for i, example in enumerate(_batch_to_examples(batch)):
~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files)
85 file,
86 read_options=self.config.pa_read_options,
---> 87 parse_options=self.config.pa_parse_options,
88 )
89 except pa.ArrowInvalid as err:
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory
```
## Environment info
- `datasets` version: 1.9.1.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.7
- PyArrow version: 1.0.0 | 61 | Streaming local gzip compressed JSON line files is not working
## Describe the bug
Using streaming to iterate on local gzip compressed JSON files raise a file not exist error
## Steps to reproduce the bug
```python
from datasets import load_dataset
streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True)
next(iter(streamed_dataset))
```
## Actual results
```
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-27a664e29784> in <module>
----> 1 next(iter(streamed_dataset))
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
336
337 def __iter__(self):
--> 338 for key, example in self._iter():
339 if self.features:
340 # we encode the example for ClassLabel feature types for example
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self)
333 else:
334 ex_iterable = self._ex_iterable
--> 335 yield from ex_iterable
336
337 def __iter__(self):
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self)
76
77 def __iter__(self):
---> 78 for key, example in self.generate_examples_fn(**self.kwargs):
79 yield key, example
80
~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs)
282 def wrapper(**kwargs):
283 python_formatter = PythonFormatter()
--> 284 for key, table in generate_tables_fn(**kwargs):
285 batch = python_formatter.format_batch(table)
286 for i, example in enumerate(_batch_to_examples(batch)):
~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files)
85 file,
86 read_options=self.config.pa_read_options,
---> 87 parse_options=self.config.pa_parse_options,
88 )
89 except pa.ArrowInvalid as err:
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory
```
## Environment info
- `datasets` version: 1.9.1.dev0
- Platform: Darwin-19.6.0-x86_64-i386-64bit
- Python version: 3.7.7
- PyArrow version: 1.0.0
Hi ! To make the streaming work, we extend `open` in the dataset builder to work with urls.
Therefore you just need to use `open` before using `gzip.open`:
```diff
- with gzip.open(file, "rt", encoding="utf-8") as f:
+ with gzip.open(open(file, "rb"), "rt", encoding="utf-8") as f:
```
You can see that it is the case for oscar.py and c4.py for example:
https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/oscar/oscar.py#L358-L358
https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/c4/c4.py#L88-L88
| [
-0.19924907386302948,
-0.13397781550884247,
-0.00914461724460125,
0.2391349971294403,
0.07776452600955963,
0.016880035400390625,
0.3976743817329407,
0.5178913474082947,
0.19702133536338806,
0.0789988785982132,
0.10300148278474808,
0.3306829631328583,
-0.08836679905653,
0.020873846486210823,
0.22888673841953278,
-0.18093417584896088,
-0.043661899864673615,
0.3560611307621002,
-0.025166675448417664,
0.0015850141644477844,
-0.1305663287639618,
0.2937990427017212,
-0.1404590606689453,
-0.01851685345172882,
-0.018797723576426506,
-0.03955550491809845,
-0.04714987426996231,
0.15009424090385437,
-0.09395959973335266,
-0.3326382637023926,
0.06276936084032059,
-0.16841457784175873,
0.18802249431610107,
0.4454551637172699,
-0.00011453595652710646,
0.28864115476608276,
0.29611068964004517,
-0.16291417181491852,
-0.38860687613487244,
-0.4712483882904053,
-0.22990095615386963,
-0.14929929375648499,
-0.13077154755592346,
-0.28584545850753784,
-0.1378191113471985,
-0.34743621945381165,
-0.03375668823719025,
-0.5072002410888672,
0.5416868925094604,
0.2922607660293579,
0.15566380321979523,
0.04196545109152794,
-0.06177228316664696,
0.0905790776014328,
0.03901580348610878,
0.15732377767562866,
-0.08860811591148376,
0.3150974214076996,
0.032788489013910294,
0.11496810615062714,
0.05528499186038971,
0.4286458194255829,
-0.22549587488174438,
-0.17477723956108093,
0.14737007021903992,
-0.0008161365985870361,
-0.0843830332159996,
-0.12578685581684113,
-0.1683151125907898,
0.08573462069034576,
0.18454492092132568,
-0.41225653886795044,
-0.43983420729637146,
-0.3761075735092163,
0.04667404294013977,
-0.44880279898643494,
0.21185481548309326,
0.4092857539653778,
-0.2503080666065216,
0.1969691962003708,
-0.10066583752632141,
-0.13053177297115326,
-0.3545615077018738,
0.08545256406068802,
0.36184927821159363,
0.34808260202407837,
-0.09467773139476776,
0.00912870466709137,
-0.09198708832263947,
0.11937958747148514,
-0.08398443460464478,
-0.38596197962760925,
-0.18570630252361298,
0.22775647044181824,
-0.2421414703130722,
-0.13492238521575928,
0.14436252415180206,
-0.6062144041061401,
0.1511496603488922,
0.10122843831777573,
0.4615779519081116,
-0.12574464082717896,
0.35880759358406067,
0.054608240723609924,
0.27286845445632935,
0.18704862892627716,
0.17696598172187805,
0.26384198665618896,
0.05665925517678261,
0.389880508184433,
-0.08656640350818634,
-0.19807371497154236,
-0.23633751273155212,
-0.0394047275185585,
-0.09152989089488983,
0.13681063055992126,
0.48332613706588745,
-0.1576652228832245,
-0.08909349888563156,
0.0819106176495552,
-0.5941806435585022,
-0.13269999623298645,
0.15767234563827515,
0.09860969334840775,
0.0661022812128067,
0.2201751470565796,
0.026484891772270203,
0.1610841304063797,
-0.0021045375615358353,
-0.06189456209540367,
-0.09079552441835403,
0.023572301492094994,
0.0740586370229721,
0.13479897379875183,
0.25189730525016785,
-0.5213881134986877,
0.27936431765556335,
0.008754490874707699,
-0.046029575169086456,
-0.15623420476913452,
0.005845250561833382,
-0.12555629014968872,
0.1504514068365097,
0.1468389481306076,
-0.025929123163223267,
0.01936381869018078,
0.20588421821594238,
-0.1102273091673851,
-0.1738194227218628,
0.118353933095932,
-0.2751956880092621,
-0.26721346378326416,
0.03723612800240517,
0.20101679861545563,
0.03815893083810806,
0.009389208629727364,
-0.00814894586801529,
0.005931306630373001,
0.05569905415177345,
-0.3565130829811096,
0.02363625168800354,
-0.009464718401432037,
-0.055801376700401306,
-0.084129199385643,
0.2759925425052643,
0.4360963702201843,
-0.36087194085121155,
-0.10359223186969757,
0.0715651586651802,
0.21758553385734558,
0.7216557860374451,
0.34253770112991333,
-0.23797157406806946,
0.12730737030506134,
-0.3681201636791229,
0.361905038356781,
0.6931345462799072,
0.016038142144680023,
-0.3624648451805115,
0.8522371649742126,
-0.10863479971885681,
0.3817499577999115,
0.48008397221565247,
-0.20442916452884674,
0.1941487193107605,
-0.010517766699194908,
0.3352074921131134,
0.2812868356704712,
-0.044572003185749054,
0.038527533411979675,
-0.46427121758461,
0.13121458888053894,
0.041949767619371414,
0.03780543431639671,
-0.25131797790527344,
0.29544100165367126,
-0.04339214414358139,
0.01503328699618578,
0.35208964347839355,
-0.18005645275115967,
0.10818453133106232,
0.2904559373855591,
0.23780615627765656,
0.0199461467564106,
0.20217366516590118,
0.009263921529054642,
-0.21780332922935486,
0.032492928206920624,
-0.33661088347435,
-0.26293691992759705,
-0.28261691331863403,
-0.06241041421890259,
-0.14011317491531372,
0.14870017766952515,
-0.18434786796569824,
-0.3533779978752136,
0.14648205041885376,
0.41115137934684753,
0.38089799880981445,
0.022437527775764465,
-0.4623304605484009,
0.3006558418273926,
-0.29872554540634155,
-0.10485634952783585,
-0.2611708343029022,
0.4293637275695801,
0.07213541120290756,
-0.2631468176841736,
0.17588482797145844,
-0.05898912996053696,
0.17178921401500702,
-0.2416347712278366,
-0.222116619348526,
0.24508193135261536,
-0.12085530161857605,
0.17090699076652527,
0.11697521805763245,
-0.22262565791606903,
0.295774906873703,
-0.006211534142494202,
-0.07205667346715927,
0.34458762407302856,
0.21932831406593323,
0.204120934009552,
-0.223990797996521,
0.4739874005317688,
-0.030565444380044937,
0.3029977083206177,
0.02091147005558014,
-0.2058359533548355,
0.1924334168434143,
-0.008431442081928253,
-0.34215232729911804,
0.06537067890167236,
0.3345847427845001,
-0.12588849663734436,
0.09460529685020447,
-0.061295732855796814,
-0.3791347146034241,
-0.06355684250593185,
0.5271065831184387,
-0.083058662712574,
-0.16150182485580444,
0.1926879584789276,
-0.1803123652935028,
-0.055543988943099976,
0.296563982963562,
-0.006716445088386536,
0.33357664942741394,
0.15754517912864685,
0.10460247844457626,
0.01661337912082672,
-0.11111657321453094,
-0.25655514001846313,
0.20916078984737396,
-0.09003469347953796,
0.1146262139081955,
0.544916570186615,
0.03563699126243591,
0.0449172668159008,
-0.399539977312088,
-0.2428150773048401,
-0.12888213992118835,
0.14558091759681702,
-0.09908875823020935,
0.38413479924201965,
-0.39113563299179077,
-0.37131842970848083,
-0.12017011642456055,
-0.11286929249763489,
-0.0630648285150528,
-0.08577307313680649,
-0.026965878903865814,
0.29855877161026,
-0.2004610151052475,
0.23292386531829834,
0.0005526319146156311,
0.039402320981025696,
0.2519480884075165,
-0.42273780703544617,
-0.4818938076496124,
-0.16303794085979462,
-0.19115638732910156,
-0.010403119027614594,
0.26560360193252563,
-0.28788837790489197,
0.30171647667884827,
-0.0459040142595768,
-0.3699752688407898,
-0.270799845457077,
0.11940678209066391,
0.1435607671737671,
0.07218222320079803,
-0.0227005984634161,
-0.0912800133228302,
0.22808411717414856,
-0.07968728989362717,
-0.3324355483055115,
0.2870093286037445,
-0.21745269000530243,
-0.1486559957265854,
0.19485147297382355,
-0.031184524297714233,
-0.001844333834014833,
-0.23529887199401855,
-0.26552072167396545,
-0.14724445343017578,
-0.485222190618515,
0.2896817922592163,
-0.04036954417824745,
0.3086789548397064,
0.24290966987609863,
0.14409828186035156,
0.17795976996421814,
0.15565785765647888,
-0.05469310283660889,
-0.15096253156661987,
-0.6362749934196472,
0.3917449116706848,
-0.1101355254650116,
-0.23037837445735931,
-0.02950058877468109,
-0.15559694170951843,
-0.05509747192263603,
0.3612906336784363,
-0.456218421459198,
0.23791326582431793,
0.07027334719896317,
0.08341844379901886,
-0.09506763517856598,
-0.1340571939945221,
0.19144615530967712,
-0.10754648596048355,
-0.06036056578159332,
-0.25900954008102417,
0.07594385743141174,
-0.012235268950462341,
0.2527312636375427,
0.18331050872802734,
0.4013438820838928,
0.746996283531189,
-0.03916163370013237,
0.28654342889785767,
0.35339242219924927,
0.14586864411830902,
0.5503770112991333,
-0.13009293377399445,
0.16025091707706451,
-0.2425830364227295,
-0.21884115040302277,
0.0596466101706028,
0.10508371144533157,
-0.31964123249053955,
0.027433231472969055,
0.001218494027853012,
-0.3406587839126587,
-0.32408490777015686,
0.12440396845340729,
-0.30620133876800537,
-0.18829455971717834,
0.2014842927455902,
-0.0963934063911438,
0.19641220569610596,
-0.03942342847585678,
-0.029639430344104767,
-0.003231738694012165,
0.11535080522298813,
-0.04832863807678223,
0.26540958881378174,
0.42851322889328003,
0.128932923078537,
-0.054323792457580566,
-0.18306663632392883,
-0.3484933078289032,
0.07876434177160263,
0.2743046283721924,
0.6020610332489014,
-0.16699959337711334,
-0.16875505447387695,
0.07984762638807297,
-0.1684129536151886,
0.46363019943237305,
-0.1258806586265564,
-0.03415403515100479,
0.3472767174243927,
-0.12427911162376404,
-0.02665342018008232,
-0.11905404925346375,
-0.043169476091861725,
0.3530092239379883,
0.19594888389110565,
0.6723824739456177,
-0.17720693349838257,
-0.22020050883293152,
0.11325596272945404,
0.02156505361199379,
0.0907033234834671,
-0.15626823902130127,
-0.29280713200569153,
-0.13581210374832153,
-0.2019330859184265,
-0.06550434976816177,
-0.07177653163671494,
0.24107825756072998,
0.019956234842538834,
-0.13128161430358887,
0.0536012127995491,
-0.07305477559566498,
-0.11266610026359558,
0.007803469896316528,
0.29403892159461975,
-0.032531414180994034,
0.15934231877326965,
0.05702297389507294,
0.5039330720901489,
0.23278433084487915,
0.5136661529541016,
0.5314756631851196,
-0.41477733850479126,
0.13258467614650726,
0.07024545222520828,
0.13299435377120972,
0.16498954594135284,
-0.13509337604045868,
-0.1513887643814087,
0.13810452818870544,
0.25746211409568787,
-0.03558150306344032,
-0.08321437984704971,
0.23381945490837097,
-0.15558214485645294,
-0.35673788189888,
-0.4606524109840393,
0.24326112866401672,
-0.039203427731990814,
0.1920533925294876,
0.7787454128265381,
-0.6046571731567383,
-0.16807036101818085,
0.12870407104492188,
-0.32743945717811584,
0.6506021618843079,
0.3056921362876892,
-0.012612182646989822,
0.42303088307380676,
-0.153007373213768,
0.4291079342365265,
-0.4506242871284485,
0.3880237340927124,
-0.10754474252462387,
-0.18950903415679932,
0.013625076040625572,
-0.1521783471107483,
0.32724660634994507,
0.17365054786205292,
-0.3301243484020233,
0.15608085691928864,
0.09498736262321472,
-0.02611202374100685,
0.05640286207199097,
0.08446595072746277,
-0.34109124541282654,
-0.14785519242286682,
-0.6056395769119263,
0.08227259665727615,
-0.16434292495250702,
0.3591598868370056,
0.1198650375008583,
-0.38716042041778564,
0.010003026574850082,
-0.21891921758651733,
-0.1640441119670868,
0.4873066842556,
-0.22052393853664398,
-0.043798789381980896,
-0.12016470730304718,
-0.6457442045211792,
-0.32317784428596497,
-0.1665356308221817,
-0.3695809841156006,
-0.10148720443248749,
-0.09688042104244232,
-0.014015831053256989,
-0.156002938747406,
0.08157525956630707,
-0.4244864284992218,
0.2442319691181183,
0.1879109889268875,
-0.14475712180137634,
-0.08543470501899719,
0.17301888763904572,
-0.27939414978027344,
-0.5516800284385681,
0.20679545402526855,
-0.09458145499229431,
0.24433733522891998,
0.13876888155937195,
-0.014279612340033054,
0.01889847218990326,
-0.19521266222000122,
-0.20210643112659454,
0.13159580528736115,
-0.14081449806690216,
-0.3405292332172394,
-0.2667015790939331,
-0.15190216898918152,
-0.20086094737052917,
-0.10448192059993744,
0.2798333168029785,
0.07013832032680511,
0.30247917771339417,
0.3966614603996277,
-0.017607446759939194,
-0.0633016899228096,
-0.28495609760284424,
0.08220293372869492,
-0.19944484531879425,
-0.06271819770336151,
0.1458606719970703,
-0.02385895699262619,
0.17356373369693756,
-0.22501634061336517,
-0.01057448610663414,
0.15743285417556763,
0.05278000235557556,
0.031123843044042587,
-0.4647309184074402,
-0.1359291523694992,
-0.10715062916278839,
-0.005500413477420807,
0.11171872913837433,
0.1044035330414772,
0.20525553822517395,
0.1506943553686142,
-0.18481294810771942,
-0.2874046564102173,
-0.14904499053955078,
-0.17983241379261017,
0.03887825831770897,
0.01970127411186695,
0.14451341331005096,
0.3058989644050598,
0.04177630692720413,
0.17262426018714905,
0.18458108603954315,
0.1145530641078949,
-0.2760637104511261,
-0.12947528064250946,
0.1017443984746933,
0.14755043387413025,
-0.10664547979831696,
-0.2568066120147705,
-0.07840289920568466,
-0.239744633436203,
-0.09031302481889725,
0.10302047431468964,
-0.0890861302614212,
-0.0714164674282074,
0.22048278152942657,
0.3504035472869873,
-0.04147987812757492,
-0.1651158183813095,
-0.06969308108091354,
-0.20297080278396606,
0.32461684942245483,
-0.14919239282608032,
0.09574583172798157,
0.047933146357536316,
0.07567484676837921,
-0.5871011018753052,
-0.08130393177270889,
-0.09646105766296387,
0.15437893569469452,
0.5952441692352295,
-0.4551481604576111,
0.031125616282224655,
0.04556943476200104,
0.16995392739772797,
0.4789014160633087,
-0.130455881357193,
0.039013080298900604,
0.1729508340358734,
0.18766678869724274,
-0.04849923774600029,
-0.070273756980896,
0.13779570162296295,
0.10602940618991852,
-0.0637325793504715,
-0.07113242894411087,
-0.15258416533470154,
-0.1502205729484558,
0.09985964000225067,
0.014319159090518951,
0.3330245316028595,
0.045888785272836685,
0.21135471761226654,
0.40808460116386414,
0.20176081359386444,
0.07180195301771164,
-0.380993127822876,
0.02005460299551487,
0.07189998030662537,
-0.1887304037809372,
-0.1524384617805481,
-0.12570372223854065,
0.0813990905880928,
0.12150539457798004,
-0.3927780091762543,
-0.3188351094722748,
-0.35021430253982544,
0.08560150116682053,
-0.11790616810321808,
0.40861284732818604,
-0.005911961197853088,
0.2030268907546997,
-0.20639900863170624,
0.03384674713015556,
0.043884776532649994,
0.16065973043441772,
0.018574096262454987,
0.11596214771270752,
-0.5277093648910522,
-0.031080592423677444,
-0.058305662125349045,
0.038965340703725815,
0.35443711280822754,
0.5155138969421387,
-0.03619864583015442,
0.22145415842533112,
-0.10615214705467224,
-0.1359121948480606,
0.08837787806987762,
0.17714732885360718,
0.34257495403289795,
-0.3739396333694458,
0.287647008895874,
0.21353942155838013,
0.08201015740633011,
-0.07543784379959106,
0.009954357519745827,
0.37296000123023987,
0.36083120107650757,
0.0665019229054451,
0.027809500694274902,
0.03634852170944214,
-0.09334032237529755,
0.026661302894353867,
0.3354787230491638,
0.19048529863357544,
-0.18797829747200012,
0.2221895456314087,
0.11016614735126495,
-0.0887121930718422,
0.3944171667098999,
0.09830324351787567,
0.1196608692407608,
-0.11526431143283844,
0.1943056732416153,
-0.24773859977722168,
-0.10861094295978546,
0.0640452429652214,
-0.35414445400238037,
-0.35876914858818054,
-0.06347710639238358,
0.23324845731258392,
0.11249019205570221,
0.044079214334487915,
-0.02507716417312622,
0.08495385199785233,
-0.1289328932762146,
0.2790074348449707,
0.245602548122406,
-0.0799996629357338,
-0.166844442486763,
-0.18446677923202515,
-0.20152665674686432,
0.1580558717250824,
-0.040409769862890244,
-0.10791891813278198,
0.23713824152946472,
0.32793277502059937,
-0.0682450607419014,
0.2060447335243225,
-0.09007188677787781,
-0.18220065534114838,
-0.29460200667381287,
0.28071337938308716,
-0.35465186834335327,
-0.23699729144573212,
0.17879702150821686,
0.23359733819961548,
0.09106537699699402,
-0.4543970227241516,
0.20507299900054932,
-0.33120349049568176,
0.1178356483578682,
0.05539218336343765,
-0.030520956963300705,
0.01567915454506874,
0.06685076653957367,
0.23565347492694855,
0.1621074229478836,
0.11554665118455887,
-0.13499517738819122,
-0.19207142293453217,
-0.07282063364982605,
-0.17684753239154816,
-0.01831146329641342,
0.14588353037834167,
-0.05825008079409599,
0.5028746128082275,
-0.04843546450138092,
-0.4014248847961426,
-0.4371393918991089,
0.4285813570022583,
-0.04396221786737442,
-0.44399869441986084,
0.010393574833869934,
0.014010194689035416,
-0.1760370135307312,
0.18188342452049255,
0.012476270087063313,
0.17777270078659058,
-0.05060421675443649,
0.06168229877948761,
-0.3085520565509796,
-0.1021587923169136,
0.5942248702049255,
-0.4224969446659088,
-0.31925371289253235,
0.3241410553455353,
0.1266874223947525,
0.11907008290290833,
0.12989541888237,
-0.196591317653656,
0.13247603178024292,
0.43720483779907227,
-0.02838752046227455,
0.12153846025466919,
0.15976327657699585,
0.11520226299762726,
0.1851297914981842,
0.11781887710094452,
0.07764849066734314,
0.1725969910621643,
-0.2597600817680359,
0.13292790949344635,
-0.21405047178268433
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Hi !
If we want something more general, we could either
1. delete the extracted files after the arrow data generation automatically, or
2. delete each extracted file during the arrow generation right after it has been closed.
Solution 2 is better to save disk space during the arrow generation. Is it what you had in mind ?
The API could look like
```python
load_dataset(..., delete_extracted_files_after_usage=True)
```
In terms of implementation, here are some directions we could take for each solution:
1. get the list of the extracted files from the DownloadManager and then delete them after the dataset is processed. This can be implemented in `download_and_prepare` I guess
2. maybe wrap and mock `open` in the builder to make it delete the file when the file is closed. | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 129 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
Hi !
If we want something more general, we could either
1. delete the extracted files after the arrow data generation automatically, or
2. delete each extracted file during the arrow generation right after it has been closed.
Solution 2 is better to save disk space during the arrow generation. Is it what you had in mind ?
The API could look like
```python
load_dataset(..., delete_extracted_files_after_usage=True)
```
In terms of implementation, here are some directions we could take for each solution:
1. get the list of the extracted files from the DownloadManager and then delete them after the dataset is processed. This can be implemented in `download_and_prepare` I guess
2. maybe wrap and mock `open` in the builder to make it delete the file when the file is closed. | [
-0.04222416505217552,
-0.05207773298025131,
-0.13756482303142548,
0.24913644790649414,
-0.08902004361152649,
0.10409838706254959,
-0.11982795596122742,
0.18471945822238922,
0.23423129320144653,
0.24075882136821747,
0.15672846138477325,
0.5178805589675903,
-0.3404895067214966,
-0.050852179527282715,
-0.1349288374185562,
-0.020201019942760468,
-0.19922542572021484,
0.34002411365509033,
-0.004784971475601196,
0.23033027350902557,
-0.2209785133600235,
0.02622588723897934,
0.023204252123832703,
-0.10261762142181396,
0.08117910474538803,
-0.385919988155365,
0.1359870284795761,
-0.18674612045288086,
-0.1622755527496338,
-0.516405463218689,
0.05417496711015701,
0.5212089419364929,
0.23224897682666779,
0.09713255614042282,
-0.00012233477900736034,
0.03224845975637436,
0.2591513395309448,
0.07995443791151047,
-0.40756145119667053,
0.12440118938684464,
-0.14612632989883423,
-0.24530188739299774,
0.2597367465496063,
-0.16711771488189697,
0.21014273166656494,
-0.564896285533905,
-0.22389627993106842,
-0.6139011979103088,
0.5910029411315918,
-0.09774399548768997,
0.049843307584524155,
0.1384616643190384,
-0.32603174448013306,
0.2452622503042221,
0.20042742788791656,
0.2770320177078247,
-0.042400848120450974,
0.022367652505636215,
0.41518983244895935,
0.09675488620996475,
0.1619672030210495,
0.3807041347026825,
-0.05502386391162872,
-0.1603195071220398,
0.4445153474807739,
0.06313187628984451,
-0.03192416578531265,
-0.48527273535728455,
0.13982510566711426,
-0.006692714989185333,
0.7061530947685242,
-0.43306294083595276,
-0.2672885060310364,
-0.457439124584198,
0.02804708108305931,
-0.5922436714172363,
0.03859204426407814,
0.29515641927719116,
-0.12118121981620789,
0.20892851054668427,
-0.11039559543132782,
-0.4544365704059601,
-0.37339168787002563,
-0.08714108169078827,
0.60771644115448,
-0.3243742287158966,
-0.056862086057662964,
-0.06566903740167618,
0.3697439134120941,
0.07367881387472153,
0.29492783546447754,
-0.2698952853679657,
-0.13991029560565948,
0.5059065222740173,
-0.027143750339746475,
-0.184574693441391,
-0.2607620060443878,
-0.2897105813026428,
0.11943533271551132,
0.3029822111129761,
0.3516388535499573,
-0.00701059028506279,
0.1930622160434723,
0.1110152155160904,
0.1876700520515442,
0.37513232231140137,
0.00788763165473938,
-0.05305381864309311,
0.1721753180027008,
0.20768022537231445,
0.06429827213287354,
-0.09154164046049118,
0.03833342716097832,
-0.1278785914182663,
0.3636781871318817,
0.015457700937986374,
0.07163286954164505,
0.026188474148511887,
-0.16508156061172485,
0.0782492458820343,
0.129131019115448,
-0.13516755402088165,
0.15134933590888977,
0.2670411467552185,
0.05873074382543564,
0.16204720735549927,
0.21588878333568573,
0.23504403233528137,
-0.029941599816083908,
-0.1465883105993271,
0.1376226395368576,
0.07318015396595001,
-0.24018117785453796,
-0.18840937316417694,
0.36413484811782837,
-0.008334657177329063,
0.041641220450401306,
0.0005887662991881371,
-0.31387895345687866,
-0.0641818642616272,
0.6676419973373413,
-0.09938591718673706,
0.2807011604309082,
0.34219738841056824,
-0.10934674739837646,
-0.24361906945705414,
-0.3248205780982971,
-0.11986925452947617,
-0.19655871391296387,
0.5875695943832397,
-0.156887948513031,
-0.3170173764228821,
-0.1368441879749298,
0.12908989191055298,
-0.027050787582993507,
0.2437293529510498,
-0.5556282997131348,
0.11721146106719971,
0.16315266489982605,
0.0627298355102539,
-0.022435180842876434,
0.29615557193756104,
-0.05861051380634308,
-0.17877739667892456,
-0.1893477886915207,
0.3691444993019104,
-0.5007238388061523,
-0.12231013178825378,
-0.32056283950805664,
-0.1797679364681244,
0.14245983958244324,
-0.0010881870985031128,
-0.12397469580173492,
0.3791070282459259,
-0.2620407044887543,
0.09159685671329498,
0.5124640464782715,
-0.1815716028213501,
-0.42318761348724365,
0.14827576279640198,
0.11009857058525085,
0.2711138427257538,
0.3149676024913788,
0.2507965862751007,
0.27878865599632263,
0.002117224270477891,
-0.038488633930683136,
0.4016493558883667,
0.07365185022354126,
0.004099292680621147,
-0.22394679486751556,
-0.41164594888687134,
0.051355935633182526,
0.24719835817813873,
-0.02079359069466591,
0.039883390069007874,
0.06239636242389679,
-0.10242939740419388,
0.30692315101623535,
0.09782588481903076,
0.15198293328285217,
0.13272207975387573,
0.14489218592643738,
-0.24857215583324432,
-0.20805931091308594,
0.06978032737970352,
-0.5534022450447083,
0.1737692654132843,
-0.5192006826400757,
-0.2917679250240326,
-0.4091203808784485,
-0.34444552659988403,
0.08205942809581757,
0.19592586159706116,
-0.29890188574790955,
0.19668182730674744,
0.032763995230197906,
-0.18940412998199463,
0.28316840529441833,
-0.0064173974096775055,
-0.42843055725097656,
0.01990567520260811,
-0.1408999115228653,
0.1741948276758194,
-0.45013126730918884,
0.10403696447610855,
0.21242623031139374,
-0.1986985206604004,
-0.11104753613471985,
-0.009402431547641754,
-0.2910374701023102,
-0.3422917127609253,
-0.09363894909620285,
0.28297150135040283,
0.3651205599308014,
0.26834243535995483,
0.10736364126205444,
0.22819766402244568,
0.22038817405700684,
0.22185063362121582,
0.08242953568696976,
0.2590487599372864,
0.08714086562395096,
0.18248611688613892,
-0.2291262149810791,
0.5258797407150269,
-0.07650978863239288,
0.02413090318441391,
-0.12839841842651367,
-0.3022347688674927,
0.22405707836151123,
-0.0017422735691070557,
0.012859499081969261,
-0.47302448749542236,
-0.054287102073431015,
0.3683064877986908,
0.12888860702514648,
0.09176654368638992,
0.14760737121105194,
-0.015086956322193146,
0.09251091629266739,
-0.10315084457397461,
-0.10266969352960587,
0.32421889901161194,
-0.0696173831820488,
-0.16131821274757385,
0.05732966959476471,
0.4151659309864044,
0.4481205344200134,
0.09217210859060287,
-0.11546361446380615,
-0.07876590639352798,
0.47028133273124695,
0.051421016454696655,
0.26847636699676514,
0.19535458087921143,
0.08138616383075714,
0.36181142926216125,
0.16824108362197876,
-0.06226124241948128,
-0.27486756443977356,
-0.09148397296667099,
0.0715448185801506,
0.2726363241672516,
0.2208336591720581,
-0.06113825738430023,
-0.18393628299236298,
-0.29298269748687744,
0.27599501609802246,
0.1252204328775406,
0.21729014813899994,
-0.016195816919207573,
0.40935462713241577,
0.0779331624507904,
-0.3893395662307739,
0.0748191699385643,
0.008211396634578705,
0.5284096598625183,
-0.08733678609132767,
-0.26724547147750854,
-0.34041860699653625,
-0.13126811385154724,
0.23669329285621643,
-0.027529945597052574,
0.38182905316352844,
-0.19845539331436157,
0.5107132196426392,
0.07859081774950027,
0.09597542136907578,
-0.030271822586655617,
-0.09184485673904419,
0.06153380870819092,
0.40847963094711304,
0.05227842926979065,
0.13317330181598663,
0.16844961047172546,
0.12487399578094482,
0.06091952323913574,
-0.13083110749721527,
-0.22052372992038727,
-0.09630413353443146,
0.15619292855262756,
0.052433982491493225,
0.09632506221532822,
-0.21652494370937347,
-0.01631518453359604,
-0.30719515681266785,
-0.3777163326740265,
0.25576281547546387,
0.10729154944419861,
0.13723675906658173,
0.08451202511787415,
0.2943945527076721,
-0.05875658243894577,
0.14127346873283386,
0.07038342207670212,
0.045388057827949524,
-0.5879278182983398,
0.11898202449083328,
-0.20733922719955444,
0.07256996631622314,
0.3074825704097748,
-0.12210424244403839,
0.06042346730828285,
0.33883994817733765,
-0.3763495683670044,
-0.06939204037189484,
-0.041573695838451385,
0.2056567221879959,
-0.2972849905490875,
-0.03653430938720703,
0.19675981998443604,
0.33206799626350403,
-0.021748989820480347,
0.00545097142457962,
0.2608991861343384,
0.164894238114357,
0.24003654718399048,
0.06586384773254395,
0.22860172390937805,
0.28690820932388306,
0.057427141815423965,
0.47742152214050293,
-0.12406930327415466,
0.021215923130512238,
0.3330622911453247,
0.3224784731864929,
0.33700132369995117,
-0.222660630941391,
0.25848084688186646,
-0.5167120695114136,
-0.07041656970977783,
-0.12297683209180832,
0.08866006880998611,
0.14520516991615295,
-0.12835626304149628,
0.09056678414344788,
-0.15577566623687744,
-0.20417186617851257,
-0.1858893483877182,
0.30370911955833435,
-0.3123892843723297,
0.08660035580396652,
-0.02493704855442047,
-0.22530856728553772,
-0.16899386048316956,
-0.057938218116760254,
0.06850208342075348,
0.1171315610408783,
0.5481663346290588,
-0.12295657396316528,
-0.06193367391824722,
-0.07531276345252991,
-0.3717128038406372,
0.2466871738433838,
-0.14434728026390076,
-0.27008453011512756,
0.14419177174568176,
0.022802729159593582,
0.19016417860984802,
0.09201256185770035,
0.2852838933467865,
-0.021463366225361824,
-0.09214276075363159,
-0.19374915957450867,
-0.024102361872792244,
-0.3323918879032135,
0.009094074368476868,
0.05995844677090645,
0.04491439834237099,
-0.1582290232181549,
0.39854463934898376,
-0.3091912269592285,
-0.19246090948581696,
-0.35099703073501587,
0.6400807499885559,
-0.264550119638443,
-0.06942959129810333,
-0.14402596652507782,
-0.3062012195587158,
-0.632818877696991,
0.06679093837738037,
0.07988046109676361,
-0.05907633900642395,
0.15394876897335052,
-0.33153820037841797,
-0.10191857814788818,
-0.1806175708770752,
0.01871252804994583,
0.014303669333457947,
0.630209743976593,
-0.3630813956260681,
0.09315502643585205,
-0.13072597980499268,
0.023438841104507446,
0.415399968624115,
0.3095869719982147,
-0.0904393196105957,
-0.16624853014945984,
-0.0879400447010994,
-0.25198620557785034,
0.06396470963954926,
0.16846635937690735,
-0.27059975266456604,
0.44335243105888367,
-0.18180334568023682,
0.5496020913124084,
-0.10453551262617111,
-0.021343573927879333,
-0.07653819769620895,
-0.2536761164665222,
0.004494027234613895,
-0.45481646060943604,
0.22769102454185486,
0.04461636021733284,
-0.17590637505054474,
0.5514424443244934,
-0.08505956828594208,
-0.2699745297431946,
0.520348846912384,
0.06900817155838013,
1.0979140996932983,
-0.048418447375297546,
0.058753978461027145,
-0.016735803335905075,
-0.27758705615997314,
0.38075315952301025,
-0.49766606092453003,
0.2090119570493698,
-0.06454632431268692,
-0.03105059266090393,
0.049186088144779205,
-0.06229408085346222,
0.042728491127491,
0.23650608956813812,
-0.1930372565984726,
0.12303476780653,
-0.3904760479927063,
-0.13137328624725342,
-0.2855239510536194,
0.3503829538822174,
-0.26335689425468445,
-0.29374265670776367,
-0.24290600419044495,
-0.04231451824307442,
0.043784644454717636,
0.0046019889414310455,
-0.31257694959640503,
-0.08231435716152191,
0.3401918411254883,
-0.06238847225904465,
0.2848976254463196,
-0.1401858627796173,
-0.3396240174770355,
0.36953651905059814,
-0.18373209238052368,
-0.17639079689979553,
-0.27781766653060913,
0.20903605222702026,
-0.28934550285339355,
-0.013278063386678696,
0.15230678021907806,
0.0673096552491188,
0.006426721811294556,
0.023353107273578644,
-0.33204126358032227,
-0.0007070060819387436,
0.062299489974975586,
-0.16004183888435364,
0.011437319219112396,
0.20375028252601624,
-0.36745473742485046,
-0.3369389772415161,
0.21514615416526794,
0.14481152594089508,
-0.08852982521057129,
0.057230159640312195,
-0.3552045524120331,
-0.20079639554023743,
-0.49582844972610474,
0.08581309020519257,
0.06282361596822739,
0.3129726052284241,
-0.2482842057943344,
0.2814536690711975,
-0.3506733775138855,
-0.1324838101863861,
-0.11042477190494537,
-0.22553324699401855,
0.29546961188316345,
-0.05007724463939667,
0.3738797903060913,
-0.1685555875301361,
-0.21558180451393127,
-0.3375293016433716,
0.020504698157310486,
-0.017895672470331192,
-0.4794526994228363,
0.46378979086875916,
0.1569727212190628,
-0.07216258347034454,
0.035401973873376846,
0.008994538336992264,
-0.09424492716789246,
0.049326516687870026,
-0.157298743724823,
-0.17858999967575073,
-0.5771640539169312,
0.23688742518424988,
0.2657475769519806,
0.4896396994590759,
0.03457661718130112,
-0.11167849600315094,
-0.10581070184707642,
0.03295794129371643,
-0.20042583346366882,
0.226408451795578,
0.20596560835838318,
0.13561144471168518,
-0.096143938601017,
0.2747266888618469,
0.013817417435348034,
-0.22921018302440643,
-0.11262686550617218,
0.0334489569067955,
-0.16565687954425812,
-0.12691766023635864,
-0.19837184250354767,
0.14024189114570618,
-0.09141429513692856,
-0.13503342866897583,
-0.09112164378166199,
-0.28996825218200684,
0.08102498948574066,
-0.19101668894290924,
0.26229357719421387,
-0.2783586382865906,
-0.1321275681257248,
-0.12733033299446106,
0.3750867545604706,
0.03311658650636673,
-0.25103631615638733,
0.2264988273382187,
-0.13317710161209106,
0.41045743227005005,
0.02755696326494217,
0.027310026809573174,
-0.09927680343389511,
-0.056713301688432693,
-0.24998879432678223,
0.05641923099756241,
0.2500876188278198,
0.026342380791902542,
0.1521478295326233,
-0.07124564051628113,
-0.0994432121515274,
-0.000578226987272501,
0.19166789948940277,
0.274194598197937,
-0.06994955986738205,
-0.000806005671620369,
-0.0776970237493515,
0.17561157047748566,
-0.2982023060321808,
-0.15867044031620026,
-0.05919263884425163,
-0.007643816061317921,
-0.16193567216396332,
0.29615068435668945,
0.22564885020256042,
0.08999207615852356,
-0.1198941320180893,
0.15138009190559387,
0.31265056133270264,
-0.23478414118289948,
0.23937582969665527,
0.369867742061615,
0.07807530462741852,
-0.10592707991600037,
-0.05458495765924454,
0.3103906512260437,
0.21099136769771576,
-0.04672342538833618,
-0.25925958156585693,
0.4465029835700989,
0.5072867274284363,
0.23891179263591766,
-0.5002031922340393,
-0.3075028359889984,
-0.22326873242855072,
0.5195413827896118,
-0.08148396015167236,
0.36818063259124756,
0.40821778774261475,
0.23829218745231628,
0.2595688998699188,
-0.24804364144802094,
-0.13587358593940735,
0.5102303624153137,
0.06218168884515762,
-0.06766454875469208,
0.06789691746234894,
-0.11460456997156143,
0.11578664183616638,
0.10465726256370544,
0.1796213686466217,
0.19210655987262726,
-0.1854076385498047,
0.34159308671951294,
0.07326458394527435,
0.21381111443042755,
0.45334485173225403,
0.22816848754882812,
0.4140397310256958,
-0.24927577376365662,
-0.2296028584241867,
0.28142356872558594,
0.21103012561798096,
-0.12151144444942474,
-0.1747250258922577,
0.08497290313243866,
0.10954619944095612,
-0.4609769582748413,
0.08603718131780624,
0.07071678340435028,
0.07601115107536316,
-0.2645118236541748,
0.3912464678287506,
0.23917712271213531,
-0.0945056825876236,
-0.07020074129104614,
0.025467878207564354,
-0.10132986307144165,
0.08780381083488464,
0.16490869224071503,
0.23448914289474487,
-0.18679992854595184,
-0.03889509290456772,
0.29619529843330383,
-0.4712986350059509,
-0.020624320954084396,
-0.11658105999231339,
-0.15844076871871948,
-0.06561082601547241,
0.29269781708717346,
-0.19555999338626862,
-0.021069258451461792,
-0.10474883764982224,
0.05037818104028702,
-0.2902586758136749,
0.24982604384422302,
0.18878504633903503,
-0.18156054615974426,
-0.30607786774635315,
-0.2786377966403961,
-0.37816354632377625,
-0.25455963611602783,
-0.19806429743766785,
-0.03524518013000488,
0.2598966062068939,
0.13812707364559174,
-0.03564218431711197,
0.19690550863742828,
0.03241097927093506,
0.029132647439837456,
0.07391995191574097,
0.10207311064004898,
-0.49147406220436096,
0.07562453299760818,
0.176616832613945,
0.1397937536239624,
0.09360760450363159,
-0.5097527503967285,
-0.30885156989097595,
-0.18155942857265472,
-0.04672224074602127,
-0.09110137075185776,
0.2209637463092804,
0.2755781412124634,
0.6003806591033936,
0.7884605526924133,
-0.10868166387081146,
-0.26113027334213257,
-0.024622276425361633,
-0.2064300775527954,
0.0625542625784874,
-0.05511660873889923,
-0.0832701027393341,
-0.21044933795928955,
0.30179569125175476,
0.311148077249527,
-0.28447937965393066,
0.360586941242218,
-0.34081581234931946,
-0.24362429976463318,
-0.14668995141983032,
0.04093940556049347,
-0.26271334290504456,
-0.03345000743865967,
-0.04890377074480057,
0.4001444876194,
0.0136859817430377,
0.25507789850234985,
0.029558023437857628,
0.05883391201496124,
-0.35976725816726685,
-0.025477038696408272,
0.3839750289916992,
0.19793710112571716,
-0.29566967487335205,
0.40798670053482056,
0.10535509139299393,
0.0487198606133461,
0.03056838922202587,
-0.3500059247016907,
0.28719574213027954,
0.14004673063755035,
-0.3088758885860443,
-0.061006274074316025,
0.2714017331600189,
0.010257624089717865,
0.006112106144428253,
0.10723307728767395,
0.4342740774154663,
0.263179749250412,
0.0932721197605133,
-0.4791615605354309,
-0.2532896399497986
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Also, if I delete the extracted files they need to be re-extracted again instead of loading from the Arrow cache files | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 21 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
Also, if I delete the extracted files they need to be re-extracted again instead of loading from the Arrow cache files | [
-0.028062783181667328,
-0.12684541940689087,
-0.14626391232013702,
0.15173634886741638,
-0.1755872219800949,
0.19438326358795166,
-0.21975208818912506,
0.2515496015548706,
0.1799507588148117,
0.16384923458099365,
0.10564178228378296,
0.4813859760761261,
-0.24072246253490448,
-0.10407444089651108,
-0.188739612698555,
-0.0030703432857990265,
-0.23559975624084473,
0.2889692783355713,
-0.007610194385051727,
0.16210836172103882,
-0.13513141870498657,
0.015067590400576591,
0.0465383380651474,
-0.15412138402462006,
0.053776971995830536,
-0.4090363085269928,
0.2061121165752411,
-0.26022711396217346,
-0.1102864071726799,
-0.3523689806461334,
-0.0030771885067224503,
0.5342469811439514,
0.27660754323005676,
0.14195770025253296,
-0.0001208869434776716,
-0.014273423701524734,
0.28759855031967163,
0.07234340161085129,
-0.4089965522289276,
0.2255583256483078,
-0.2436767816543579,
-0.10312853008508682,
0.25988441705703735,
-0.12654295563697815,
0.2946949303150177,
-0.40843984484672546,
-0.20414532721042633,
-0.6497347354888916,
0.5037792921066284,
-0.23861658573150635,
0.09738247841596603,
0.009610088542103767,
-0.5454071164131165,
0.1060437560081482,
0.3338082432746887,
0.3475062847137451,
-0.1310422420501709,
-0.008145714178681374,
0.47744864225387573,
0.10099663585424423,
0.27679547667503357,
0.35426220297813416,
-0.07383638620376587,
-0.2929220199584961,
0.33866867423057556,
-0.025792531669139862,
-0.07459748536348343,
-0.2595769464969635,
0.2915356755256653,
0.024684738367795944,
0.6543723940849304,
-0.34599724411964417,
-0.09162496775388718,
-0.3327181041240692,
0.12472221255302429,
-0.5869952440261841,
0.08348555862903595,
0.17490415275096893,
0.04703029617667198,
0.24708746373653412,
-0.1042250245809555,
-0.479145884513855,
-0.35933685302734375,
-0.14785493910312653,
0.6762896776199341,
-0.430648535490036,
-0.07512914389371872,
-0.12687718868255615,
0.5420333743095398,
0.15204116702079773,
0.21741877496242523,
-0.17600314319133759,
-0.3039318919181824,
0.40963372588157654,
-0.06563036143779755,
-0.1792776733636856,
-0.4102025032043457,
-0.29980507493019104,
0.15669840574264526,
0.17528794705867767,
0.42544567584991455,
-0.005214408040046692,
0.1747293770313263,
0.021220069378614426,
0.24583454430103302,
0.3867214322090149,
0.07013136893510818,
-0.061833664774894714,
0.18849414587020874,
0.11725667119026184,
0.13806499540805817,
-0.049279190599918365,
0.028941676020622253,
-0.03818477690219879,
0.2580285966396332,
0.01993582770228386,
-0.03841210901737213,
-0.13205136358737946,
-0.07181057333946228,
0.06477867811918259,
0.20611995458602905,
-0.1974593549966812,
0.08658824115991592,
0.19738303124904633,
0.23601357638835907,
0.03407050669193268,
0.06153625249862671,
0.2982645034790039,
0.012463808059692383,
-0.36054617166519165,
0.12153301388025284,
0.12219110131263733,
-0.316959023475647,
-0.23776395618915558,
0.4114531874656677,
-0.005869768559932709,
-0.04180006682872772,
-0.1277223378419876,
-0.33678877353668213,
0.06539840251207352,
0.5076661109924316,
-0.11965522170066833,
0.278888463973999,
0.2771742045879364,
-0.1964021772146225,
-0.22708812355995178,
-0.28038835525512695,
-0.011432420462369919,
-0.13215205073356628,
0.5104097723960876,
-0.12530091404914856,
-0.21734082698822021,
-0.06654829531908035,
0.11250374466180801,
0.1528288871049881,
0.27233755588531494,
-0.5884192585945129,
0.11736951768398285,
0.10265064239501953,
0.04258231446146965,
0.04084031283855438,
0.34860849380493164,
0.018631253391504288,
-0.08032349497079849,
-0.3321526050567627,
0.2598176598548889,
-0.6571022272109985,
-0.08885560929775238,
-0.354511022567749,
-0.25676655769348145,
0.21151545643806458,
0.11250719428062439,
-0.11750737577676773,
0.23762246966362,
-0.1577705442905426,
0.15940967202186584,
0.3421454429626465,
-0.09356784075498581,
-0.3924857974052429,
0.15464568138122559,
0.09582677483558655,
0.192251518368721,
0.31760716438293457,
0.3045809864997864,
0.3846728801727295,
0.03865091875195503,
-0.06867100298404694,
0.26155799627304077,
0.08801539987325668,
-0.10837013274431229,
-0.3247458040714264,
-0.4044742286205292,
0.03433661907911301,
0.22382713854312897,
-0.003378823399543762,
0.055344998836517334,
0.22319120168685913,
-0.03054839000105858,
0.17100434005260468,
0.14985208213329315,
0.16635067760944366,
0.16068388521671295,
0.13902227580547333,
-0.2714565396308899,
-0.23641565442085266,
0.1407703459262848,
-0.605596661567688,
-0.008895739912986755,
-0.5798174142837524,
-0.3777630627155304,
-0.1828525811433792,
-0.3519937992095947,
0.13155770301818848,
0.013107212260365486,
-0.19803328812122345,
0.19892314076423645,
0.0346163734793663,
-0.06162276864051819,
0.2489040195941925,
-0.027793200686573982,
-0.42329561710357666,
-0.017146790400147438,
-0.09408196061849594,
-0.000020725536160171032,
-0.44194459915161133,
0.12545663118362427,
0.15121930837631226,
-0.25908878445625305,
-0.019973449409008026,
0.014080598950386047,
-0.287511944770813,
-0.4913889169692993,
-0.13185006380081177,
0.2647310495376587,
0.30569806694984436,
0.29123643040657043,
0.28805598616600037,
0.2514718770980835,
0.18143288791179657,
0.16522172093391418,
0.10452660918235779,
0.15996044874191284,
-0.017625300213694572,
0.08846411854028702,
-0.3933172821998596,
0.3887655735015869,
-0.22427918016910553,
-0.035211242735385895,
-0.18233834207057953,
-0.39225226640701294,
0.22075247764587402,
-0.10205800831317902,
0.11299837380647659,
-0.5385868549346924,
0.04729783535003662,
0.3436098098754883,
-0.11630122363567352,
0.028712132945656776,
0.10376203060150146,
-0.11539081484079361,
-0.0062075406312942505,
-0.04499394819140434,
-0.14715459942817688,
0.3006247282028198,
-0.01481512188911438,
-0.16255280375480652,
0.07893672585487366,
0.3862748146057129,
0.3511199355125427,
0.17661932110786438,
-0.1846850961446762,
-0.16306515038013458,
0.45792156457901,
-0.009585078805685043,
0.1368839293718338,
0.03684644401073456,
0.01849764958024025,
0.36775633692741394,
0.060216568410396576,
-0.006298708729445934,
-0.24240940809249878,
-0.05912909284234047,
0.11282581835985184,
0.2101316750049591,
0.28193286061286926,
-0.2630930542945862,
-0.2769411504268646,
-0.4187944233417511,
0.4745361804962158,
0.32259470224380493,
0.2582398056983948,
-0.018371740356087685,
0.5235857367515564,
0.06135271117091179,
-0.41294512152671814,
0.06954478472471237,
-0.019827064126729965,
0.6686820983886719,
-0.12507940828800201,
-0.21563804149627686,
-0.40433552861213684,
-0.18864759802818298,
0.15785866975784302,
0.01673361286520958,
0.373106986284256,
-0.10124480724334717,
0.5151019096374512,
0.1303829550743103,
0.11426408588886261,
-0.09011748433113098,
-0.03235047310590744,
0.07831127196550369,
0.3688565492630005,
-0.07538364827632904,
0.0812375620007515,
0.17572352290153503,
-0.052680592983961105,
0.12168499827384949,
-0.1933170109987259,
-0.2980664372444153,
-0.12483151257038116,
0.15777122974395752,
0.0885915532708168,
-0.021348297595977783,
-0.22570177912712097,
-0.0321052223443985,
-0.1681334376335144,
-0.3950458765029907,
0.22720898687839508,
-0.025538943707942963,
0.000047791749238967896,
0.11413008719682693,
0.23134556412696838,
0.012227131985127926,
0.016425935551524162,
0.07076739519834518,
-0.009582753293216228,
-0.5886600613594055,
0.1329730600118637,
-0.20801511406898499,
0.07411875575780869,
0.22291702032089233,
0.018605634570121765,
-0.001454681158065796,
0.34871435165405273,
-0.3909088969230652,
0.0475146621465683,
0.01797373779118061,
0.11815005540847778,
-0.3372392952442169,
-0.07647416740655899,
0.21487078070640564,
0.2313203662633896,
-0.08521745353937149,
0.03110341727733612,
0.143314927816391,
0.2431013584136963,
0.3958521783351898,
0.11967236548662186,
0.08340977132320404,
0.21457508206367493,
0.1187925785779953,
0.3881937861442566,
-0.2566867768764496,
0.03814156353473663,
0.3195040225982666,
0.39017191529273987,
0.41562390327453613,
-0.19081547856330872,
0.27778905630111694,
-0.41881629824638367,
0.05566193908452988,
-0.08588610589504242,
0.11906416714191437,
0.026161611080169678,
-0.14592589437961578,
0.16147944331169128,
-0.2239902913570404,
-0.12839284539222717,
-0.09236419200897217,
0.3123988211154938,
-0.23370260000228882,
0.06038349121809006,
-0.0057244449853897095,
-0.2973092496395111,
-0.01696622744202614,
-0.023003695532679558,
0.16609305143356323,
0.17804303765296936,
0.4248470067977905,
-0.10658031702041626,
-0.24608361721038818,
-0.07650350779294968,
-0.17450690269470215,
0.32370251417160034,
-0.23531436920166016,
-0.2074517160654068,
-0.08010752499103546,
0.030073314905166626,
0.16102838516235352,
0.2512599527835846,
0.34167391061782837,
-0.11187451332807541,
-0.036146365106105804,
-0.167520210146904,
0.048943571746349335,
-0.24401170015335083,
-0.025269756093621254,
-0.010316558182239532,
0.038194671273231506,
-0.0038876086473464966,
0.4042292535305023,
-0.2591196596622467,
-0.1607067883014679,
-0.2055034637451172,
0.5759976506233215,
-0.25911521911621094,
-0.09164643287658691,
-0.03293541073799133,
-0.17119351029396057,
-0.5231108069419861,
0.06662537157535553,
0.01827552728354931,
-0.11666581779718399,
0.16972678899765015,
-0.30503275990486145,
-0.09726110845804214,
-0.32481926679611206,
0.04770984500646591,
0.04382098466157913,
0.5563676357269287,
-0.26450109481811523,
0.06221530959010124,
-0.12865184247493744,
0.14830245077610016,
0.5444573163986206,
0.2043476402759552,
-0.09195820987224579,
0.0192478746175766,
0.016274647787213326,
-0.39697781205177307,
0.17365536093711853,
0.15995176136493683,
-0.20136676728725433,
0.3397911787033081,
-0.22125355899333954,
0.5212978720664978,
0.06998703628778458,
-0.022643042728304863,
-0.2058650553226471,
-0.30381765961647034,
-0.018576262518763542,
-0.16657596826553345,
0.1150054782629013,
0.028012357652187347,
-0.17568810284137726,
0.4709268808364868,
-0.10545730590820312,
-0.2438371330499649,
0.49040859937667847,
0.09972556680440903,
1.1869291067123413,
-0.097728431224823,
-0.03779928758740425,
-0.21283003687858582,
-0.2820969223976135,
0.2717682719230652,
-0.5684902667999268,
0.1390947550535202,
0.026834916323423386,
-0.07167980074882507,
0.10704322159290314,
-0.05061250925064087,
0.03697402402758598,
0.2111322581768036,
-0.2481747418642044,
0.050142109394073486,
-0.3473036289215088,
-0.15810416638851166,
-0.2884770929813385,
0.38069164752960205,
-0.08262661099433899,
-0.21828898787498474,
-0.04897184669971466,
-0.023917287588119507,
0.03371809795498848,
-0.08946777880191803,
-0.24125340580940247,
-0.07381559908390045,
0.37015753984451294,
-0.010271226987242699,
0.3230469822883606,
-0.13159045577049255,
-0.26500022411346436,
0.36286425590515137,
-0.1891300231218338,
-0.1291915476322174,
-0.22848020493984222,
0.04400423541665077,
-0.23247356712818146,
0.03194560110569,
0.1362992376089096,
0.012449769303202629,
0.09062683582305908,
-0.06330328434705734,
-0.4203028082847595,
0.0675697773694992,
-0.10307583212852478,
-0.12738102674484253,
0.03384517878293991,
0.15275588631629944,
-0.27642643451690674,
-0.36057519912719727,
0.15111443400382996,
0.1476818323135376,
-0.11209172010421753,
0.0539422407746315,
-0.26468998193740845,
-0.12671729922294617,
-0.5518767237663269,
0.09996101260185242,
0.08869004249572754,
0.29871219396591187,
-0.1719677895307541,
0.2865864336490631,
-0.1654573231935501,
-0.1470644176006317,
-0.20525473356246948,
-0.15969693660736084,
0.28457748889923096,
-0.15462210774421692,
0.24596144258975983,
-0.24498187005519867,
-0.22904056310653687,
-0.4594869315624237,
-0.016005538403987885,
-0.06295009702444077,
-0.3975657522678375,
0.4622119963169098,
0.0260994303971529,
-0.16923542320728302,
0.07720519602298737,
-0.09734590351581573,
0.043774355202913284,
0.030761756002902985,
-0.1405877321958542,
-0.10743490606546402,
-0.4702298045158386,
0.2746439576148987,
0.2288827747106552,
0.5749301910400391,
0.0355817973613739,
-0.014639493077993393,
-0.12301074713468552,
0.10550873726606369,
-0.22848428785800934,
0.2524847388267517,
0.273473858833313,
0.1581343561410904,
-0.04516228288412094,
0.28651779890060425,
0.05474653095006943,
-0.23749567568302155,
-0.09784496575593948,
0.05686679482460022,
-0.12066376209259033,
-0.15867075324058533,
-0.10713395476341248,
0.1126030832529068,
-0.13982003927230835,
-0.10548323392868042,
-0.19010870158672333,
-0.260355144739151,
0.09114755690097809,
-0.17662297189235687,
0.21074210107326508,
-0.24861839413642883,
-0.14092545211315155,
-0.1472356915473938,
0.45614123344421387,
-0.029298052191734314,
-0.08774185925722122,
0.17303262650966644,
-0.071468785405159,
0.3503178358078003,
-0.019552575424313545,
-0.012224916368722916,
-0.04354093596339226,
-0.07487096637487411,
-0.3222391903400421,
0.06770547479391098,
0.3231785297393799,
0.06817294657230377,
-0.01557721197605133,
-0.0005590952932834625,
-0.09038940072059631,
0.06921294331550598,
0.04206046089529991,
0.25739604234695435,
-0.06960196048021317,
-0.11795960366725922,
-0.051268111914396286,
0.18712155520915985,
-0.2150457203388214,
-0.1542568802833557,
-0.06351447105407715,
0.017414623871445656,
-0.22308699786663055,
0.2765962779521942,
0.3653720021247864,
0.06910932064056396,
0.06696846336126328,
0.08811560273170471,
0.26177680492401123,
-0.22719807922840118,
0.3391408920288086,
0.32069921493530273,
0.05533219501376152,
-0.2411571592092514,
-0.1346070021390915,
0.281980037689209,
0.12347865104675293,
-0.16229139268398285,
-0.17844992876052856,
0.39388853311538696,
0.5958598256111145,
0.3432157635688782,
-0.5122554898262024,
-0.2275402694940567,
-0.29467329382896423,
0.6062335968017578,
-0.07410728931427002,
0.44445738196372986,
0.43420812487602234,
0.17581337690353394,
0.3189774453639984,
-0.2883312702178955,
-0.20417137444019318,
0.41290780901908875,
0.08763350546360016,
0.06665253639221191,
0.028796285390853882,
-0.12466122210025787,
0.11173182725906372,
0.10138756036758423,
0.14493371546268463,
0.4016491174697876,
-0.10802136361598969,
0.3295113444328308,
0.08342847973108292,
0.257852703332901,
0.5938125848770142,
0.18515878915786743,
0.4273991882801056,
-0.14336322247982025,
-0.20683754980564117,
0.20079754292964935,
0.2718924283981323,
0.04930247738957405,
-0.10121553391218185,
-0.07751303911209106,
0.16235566139221191,
-0.36429035663604736,
-0.0038269134238362312,
0.0908985435962677,
0.06325681507587433,
-0.2624428868293762,
0.4751580059528351,
0.2595595717430115,
-0.24158425629138947,
-0.03552313894033432,
0.05580419301986694,
-0.08228515088558197,
0.17044027149677277,
0.0924600213766098,
0.20302750170230865,
-0.08391797542572021,
-0.23139244318008423,
0.384643018245697,
-0.47326725721359253,
0.032426804304122925,
-0.14344337582588196,
-0.09428770840167999,
0.012213833630084991,
0.2725045084953308,
-0.2859969437122345,
0.0040993839502334595,
-0.05263129621744156,
0.05667397379875183,
-0.22327010333538055,
0.2803290784358978,
0.20435595512390137,
-0.3420988619327545,
-0.25898057222366333,
-0.31614887714385986,
-0.2175920009613037,
-0.2054593861103058,
-0.21435546875,
0.03085234947502613,
0.24433501064777374,
0.2561449110507965,
-0.024251751601696014,
0.22624434530735016,
0.24554117023944855,
-0.13791261613368988,
-0.04179259017109871,
0.05559629201889038,
-0.4732874929904938,
0.14338891208171844,
0.3838841915130615,
0.21966618299484253,
0.1469879448413849,
-0.4231848120689392,
-0.2671891152858734,
0.041140519082546234,
-0.013926904648542404,
-0.19046592712402344,
0.2165527641773224,
0.12979386746883392,
0.7412775754928589,
0.6710228323936462,
-0.1407822221517563,
-0.3098008930683136,
-0.08683432638645172,
-0.18851915001869202,
-0.012366872280836105,
-0.1250133514404297,
0.03007982298731804,
-0.18885475397109985,
0.474976509809494,
0.2099931687116623,
-0.28641825914382935,
0.2727653384208679,
-0.2861822545528412,
-0.2152545154094696,
-0.17120897769927979,
0.23679526150226593,
-0.22968371212482452,
-0.050182946026325226,
0.023488186299800873,
0.4224819540977478,
-0.03840487822890282,
0.19408228993415833,
0.06903022527694702,
0.08399756997823715,
-0.36010682582855225,
0.032903291285037994,
0.3062989115715027,
0.3926435112953186,
-0.30702129006385803,
0.5346332788467407,
0.14903314411640167,
0.0852215588092804,
-0.0019340179860591888,
-0.2796182632446289,
0.2397042214870453,
0.10163435339927673,
-0.28209352493286133,
0.043675560504198074,
0.28979164361953735,
-0.031082041561603546,
-0.045995745807886124,
0.10218223929405212,
0.29897603392601013,
0.37290358543395996,
0.04052913933992386,
-0.4589448869228363,
-0.26432663202285767
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | I think we already opened an issue about this topic (suggested by @stas00): duplicated of #2481?
This is in our TODO list... 😅 | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 23 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
I think we already opened an issue about this topic (suggested by @stas00): duplicated of #2481?
This is in our TODO list... 😅 | [
-0.019209979102015495,
-0.12697678804397583,
-0.1481829583644867,
0.07984685897827148,
-0.13216865062713623,
0.17651605606079102,
-0.19870226085186005,
0.24316349625587463,
0.21240119636058807,
0.20227840542793274,
0.1615416705608368,
0.4751732647418976,
-0.2215886265039444,
-0.07033388316631317,
-0.2046114057302475,
0.04022087901830673,
-0.18272259831428528,
0.2646828889846802,
0.0021854564547538757,
0.18245580792427063,
-0.14065343141555786,
0.036273304373025894,
0.03948454558849335,
-0.16898749768733978,
0.09755081683397293,
-0.3767837882041931,
0.2147897332906723,
-0.27440592646598816,
-0.12017687410116196,
-0.3621695339679718,
0.04290454089641571,
0.5484219789505005,
0.2381386160850525,
0.15253853797912598,
-0.0001205524240504019,
-0.03805006295442581,
0.2979126572608948,
0.10062463581562042,
-0.40426746010780334,
0.17577986419200897,
-0.23994481563568115,
-0.10980737209320068,
0.23047947883605957,
-0.14027069509029388,
0.27543655037879944,
-0.3210349977016449,
-0.1625756025314331,
-0.6223289966583252,
0.4326826333999634,
-0.246868297457695,
0.0960136353969574,
0.016748346388339996,
-0.5319136381149292,
0.09543517231941223,
0.305042564868927,
0.41855835914611816,
-0.1824694275856018,
-0.057391222566366196,
0.5388311147689819,
0.03415872901678085,
0.2726578414440155,
0.3712629973888397,
-0.05881328135728836,
-0.27817830443382263,
0.3521537780761719,
-0.06666161119937897,
-0.08703627437353134,
-0.2991165816783905,
0.2780790328979492,
-0.02119079977273941,
0.6806833148002625,
-0.3543694317340851,
-0.12488097697496414,
-0.3069051504135132,
0.076636902987957,
-0.5461723208427429,
0.12643179297447205,
0.17991220951080322,
-0.021502206102013588,
0.27232182025909424,
-0.1678592413663864,
-0.425777792930603,
-0.3638319671154022,
-0.11203020811080933,
0.686694860458374,
-0.38862064480781555,
-0.05110038071870804,
-0.1442258358001709,
0.5321458578109741,
0.17108722031116486,
0.20388385653495789,
-0.08411097526550293,
-0.27780047059059143,
0.4167858958244324,
-0.030232246965169907,
-0.1976919025182724,
-0.34695565700531006,
-0.3571135401725769,
0.24825036525726318,
0.17235790193080902,
0.42539742588996887,
-0.03179534152150154,
0.1785060167312622,
0.06279350072145462,
0.28112608194351196,
0.3864462971687317,
0.06191743537783623,
-0.1031351163983345,
0.21242500841617584,
0.10010068863630295,
0.1506524235010147,
-0.045267827808856964,
0.11010802537202835,
-0.010606035590171814,
0.25059768557548523,
0.030771680176258087,
-0.037410225719213486,
-0.14562220871448517,
-0.05157496780157089,
0.07406386733055115,
0.2023870050907135,
-0.19603365659713745,
0.06666794419288635,
0.17084601521492004,
0.23343665897846222,
0.05340152233839035,
0.07130551338195801,
0.3021496534347534,
-0.0025233346968889236,
-0.3367944657802582,
0.12562531232833862,
0.13417544960975647,
-0.31371504068374634,
-0.27575990557670593,
0.4017679691314697,
-0.0329737663269043,
-0.03757598251104355,
-0.08564524352550507,
-0.30786097049713135,
0.050918012857437134,
0.5031170845031738,
-0.05533080920577049,
0.23666951060295105,
0.31520581245422363,
-0.19297368824481964,
-0.24961568415164948,
-0.2744363844394684,
-0.051533110439777374,
-0.14778977632522583,
0.48949217796325684,
-0.14004987478256226,
-0.2936851382255554,
-0.11329029500484467,
0.10494863986968994,
0.15744201838970184,
0.23298372328281403,
-0.581131637096405,
0.15515641868114471,
0.07523973286151886,
0.05137728527188301,
-0.029490076005458832,
0.414298415184021,
-0.01334378868341446,
-0.07492812722921371,
-0.31671082973480225,
0.2698732614517212,
-0.6963499784469604,
-0.07784026861190796,
-0.34368273615837097,
-0.2515718638896942,
0.2094903588294983,
0.15332813560962677,
-0.11950550228357315,
0.18203698098659515,
-0.17694492638111115,
0.1597195565700531,
0.29824715852737427,
-0.10388468205928802,
-0.37672874331474304,
0.15889067947864532,
0.0618310272693634,
0.18615560233592987,
0.338163822889328,
0.30274730920791626,
0.35100433230400085,
0.0028311987407505512,
-0.07175883650779724,
0.3363139033317566,
0.042874936014413834,
-0.04590317979454994,
-0.37719711661338806,
-0.42586132884025574,
0.1138882264494896,
0.2161465585231781,
0.01869959384202957,
0.08357343822717667,
0.26454612612724304,
0.025289513170719147,
0.13876113295555115,
0.13089197874069214,
0.1084432452917099,
0.13591089844703674,
0.1836434155702591,
-0.2509689927101135,
-0.23596203327178955,
0.16775134205818176,
-0.5864220857620239,
-0.03307304158806801,
-0.5517909526824951,
-0.2943541407585144,
-0.14356422424316406,
-0.36227506399154663,
0.13966798782348633,
0.05309833586215973,
-0.14787958562374115,
0.17327623069286346,
0.03879765421152115,
-0.08863167464733124,
0.21170417964458466,
-0.026197591796517372,
-0.4154304563999176,
-0.033096835017204285,
-0.11283773183822632,
0.0020008301362395287,
-0.4649411737918854,
0.10396607220172882,
0.0835515707731247,
-0.22564275562763214,
-0.04976861923933029,
0.002013847231864929,
-0.2528691291809082,
-0.5000708699226379,
-0.15242058038711548,
0.2905796468257904,
0.28508085012435913,
0.2995108664035797,
0.28221094608306885,
0.2653045058250427,
0.2180718332529068,
0.18824072182178497,
0.04743487387895584,
0.17737901210784912,
-0.04573322460055351,
0.07357614487409592,
-0.40500858426094055,
0.3439498543739319,
-0.24090196192264557,
-0.08493044227361679,
-0.20359188318252563,
-0.3892904222011566,
0.25160035490989685,
-0.10028890520334244,
0.08597276359796524,
-0.49302706122398376,
0.08599482476711273,
0.37089577317237854,
-0.19177237153053284,
0.019916247576475143,
0.12141302227973938,
-0.10241707414388657,
0.003755781799554825,
-0.07824564725160599,
-0.1640661060810089,
0.3610450029373169,
0.07681020349264145,
-0.21984553337097168,
0.07044669985771179,
0.37029191851615906,
0.3388827443122864,
0.1903005987405777,
-0.22036290168762207,
-0.16752830147743225,
0.44140228629112244,
0.01768292486667633,
0.16876187920570374,
0.046264052391052246,
-0.0339813269674778,
0.3442345857620239,
0.10060016810894012,
-0.0012355698272585869,
-0.2634166479110718,
-0.0832916796207428,
0.10247667133808136,
0.22081129252910614,
0.2615543603897095,
-0.2776219844818115,
-0.2431855946779251,
-0.40857866406440735,
0.5601940155029297,
0.34271439909935,
0.2305353283882141,
-0.0628959909081459,
0.5425235629081726,
0.08289681375026703,
-0.4694444239139557,
0.06873071193695068,
0.0326799675822258,
0.7095783352851868,
-0.16345112025737762,
-0.14679192006587982,
-0.42665261030197144,
-0.16525286436080933,
0.15742641687393188,
-0.00021751224994659424,
0.38724765181541443,
-0.13141340017318726,
0.5233258008956909,
0.10603820532560349,
0.0948028638958931,
-0.09105205535888672,
-0.12024382501840591,
0.07959356904029846,
0.3784056305885315,
0.027169119566679,
0.10427330434322357,
0.1606733202934265,
-0.019535211846232414,
0.05859126150608063,
-0.21745283901691437,
-0.2745070159435272,
-0.11529093235731125,
0.16721811890602112,
0.12561962008476257,
0.002322600921615958,
-0.26975521445274353,
-0.05116639286279678,
-0.1811908483505249,
-0.40721645951271057,
0.26525259017944336,
-0.09083004295825958,
0.04541649669408798,
0.10082186013460159,
0.20785179734230042,
-0.08957713842391968,
0.018044952303171158,
0.087981678545475,
-0.07053374499082565,
-0.7061074376106262,
0.11357040703296661,
-0.1956966668367386,
0.027381444349884987,
0.244394451379776,
0.03432662412524223,
-0.032690759748220444,
0.3245287537574768,
-0.41477733850479126,
-0.05045035108923912,
0.08866648375988007,
0.1621684581041336,
-0.3129664659500122,
-0.10394258797168732,
0.16851824522018433,
0.22753891348838806,
-0.08146876841783524,
0.05715048313140869,
0.04842773452401161,
0.19117781519889832,
0.38241544365882874,
0.1352134793996811,
0.1176508292555809,
0.28518038988113403,
0.20928247272968292,
0.3362184166908264,
-0.2803323566913605,
0.08804075419902802,
0.3748089373111725,
0.3983898162841797,
0.4186542332172394,
-0.22159940004348755,
0.1879456490278244,
-0.390818327665329,
0.01964777708053589,
-0.16225922107696533,
0.12510348856449127,
0.053316570818424225,
-0.21205875277519226,
0.15563392639160156,
-0.23830127716064453,
-0.11498716473579407,
-0.08372154831886292,
0.2974511981010437,
-0.2194238305091858,
0.025798805058002472,
0.015226531773805618,
-0.2889421582221985,
-0.07832524180412292,
-0.04410681501030922,
0.16524115204811096,
0.22617687284946442,
0.4313420355319977,
-0.07599032670259476,
-0.23365671932697296,
-0.08161336928606033,
-0.16857841610908508,
0.3073796033859253,
-0.2065439373254776,
-0.16192856431007385,
-0.14566291868686676,
0.0682421624660492,
0.18039551377296448,
0.2353230118751526,
0.4696422219276428,
-0.09612283855676651,
-0.01971573382616043,
-0.22198213636875153,
0.024103417992591858,
-0.16311544179916382,
0.011968143284320831,
0.020788628607988358,
0.012108467519283295,
0.10475794970989227,
0.41727209091186523,
-0.2507813572883606,
-0.18217910826206207,
-0.20675550401210785,
0.5407701134681702,
-0.22915253043174744,
-0.14520220458507538,
-0.005722310394048691,
-0.21236228942871094,
-0.5202820301055908,
0.06259257346391678,
0.09475672990083694,
-0.12366306781768799,
0.2344864308834076,
-0.33655816316604614,
-0.06005939096212387,
-0.34073641896247864,
0.05593227222561836,
0.03338272124528885,
0.5054510831832886,
-0.2519853711128235,
0.05128958448767662,
-0.17798399925231934,
0.1141236275434494,
0.4623527526855469,
0.17527474462985992,
-0.1009979397058487,
0.02745620161294937,
0.004471315070986748,
-0.3934120535850525,
0.14381133019924164,
0.1508958488702774,
-0.14859047532081604,
0.2990286350250244,
-0.2558403015136719,
0.5546305179595947,
0.02962573617696762,
-0.06016409024596214,
-0.18102072179317474,
-0.3058011531829834,
-0.018994314596056938,
-0.16497448086738586,
0.12176737189292908,
0.02615046501159668,
-0.18004381656646729,
0.45814022421836853,
-0.13039353489875793,
-0.21818338334560394,
0.5202697515487671,
0.06373555958271027,
1.1716762781143188,
-0.07429662346839905,
-0.062144141644239426,
-0.23096472024917603,
-0.2570969760417938,
0.3165607750415802,
-0.6766659021377563,
0.12440212070941925,
0.07342086732387543,
-0.1243327260017395,
0.1023871898651123,
-0.016225554049015045,
0.019967127591371536,
0.22192680835723877,
-0.24784201383590698,
0.06393017619848251,
-0.30015692114830017,
-0.17652331292629242,
-0.2858094274997711,
0.3896428644657135,
-0.10068818926811218,
-0.2490500509738922,
-0.0716717541217804,
-0.017344363033771515,
0.015346791595220566,
-0.021392900496721268,
-0.22157108783721924,
-0.05959109961986542,
0.4131852984428406,
-0.017229367047548294,
0.24687404930591583,
-0.11212404817342758,
-0.2360195517539978,
0.36482226848602295,
-0.16479714214801788,
-0.06896115839481354,
-0.23242904245853424,
0.029913242906332016,
-0.17332203686237335,
0.09428125619888306,
0.1340535581111908,
-0.016353782266378403,
0.07486622780561447,
-0.017267649993300438,
-0.3920019865036011,
0.08182106167078018,
-0.05494415760040283,
-0.12539418041706085,
0.0464402511715889,
0.10123375058174133,
-0.29798367619514465,
-0.37127548456192017,
0.08311507105827332,
0.09878711402416229,
-0.15171267092227936,
0.023012369871139526,
-0.28440436720848083,
-0.13071326911449432,
-0.5083085298538208,
0.08351370692253113,
0.09186819195747375,
0.33764827251434326,
-0.19567474722862244,
0.3320387005805969,
-0.193945974111557,
-0.14929112792015076,
-0.21794818341732025,
-0.1215125098824501,
0.2511503994464874,
-0.19148555397987366,
0.17884238064289093,
-0.20948857069015503,
-0.2418765276670456,
-0.43166956305503845,
-0.014951121062040329,
-0.08279559016227722,
-0.3865461051464081,
0.43023940920829773,
0.04940638318657875,
-0.23306408524513245,
0.07522720098495483,
-0.13678129017353058,
0.05797742307186127,
0.003378570079803467,
-0.10839199274778366,
-0.15506982803344727,
-0.485767662525177,
0.22410182654857635,
0.2175264060497284,
0.5688449144363403,
0.07881306111812592,
0.04536433517932892,
-0.11925286054611206,
0.06876271218061447,
-0.23064419627189636,
0.2507711946964264,
0.23309022188186646,
0.16516563296318054,
-0.012129191309213638,
0.28156471252441406,
0.03340831398963928,
-0.2585383951663971,
-0.09457741677761078,
0.07847529649734497,
-0.11481490731239319,
-0.14413437247276306,
-0.09732036292552948,
0.12153831124305725,
-0.09912929683923721,
-0.08082845062017441,
-0.13448277115821838,
-0.2419469654560089,
0.07781954109668732,
-0.1644068956375122,
0.21825315058231354,
-0.1838771104812622,
-0.12009522318840027,
-0.11282812058925629,
0.40992313623428345,
-0.03948948532342911,
-0.006141979247331619,
0.15241047739982605,
-0.04289023578166962,
0.37344616651535034,
-0.04460311308503151,
0.013396991416811943,
-0.06459268182516098,
-0.05919964611530304,
-0.3752080500125885,
0.07337625324726105,
0.2588771879673004,
0.10901156812906265,
-0.00039939209818840027,
0.022551439702510834,
-0.08754890412092209,
0.09660736471414566,
0.03991034999489784,
0.1827140748500824,
-0.11699200421571732,
-0.06763982027769089,
-0.02351570501923561,
0.19176442921161652,
-0.1976938545703888,
-0.19882608950138092,
-0.060872774571180344,
0.07522457838058472,
-0.2139882594347,
0.24786004424095154,
0.400019109249115,
0.07418721914291382,
0.13047724962234497,
0.10996345430612564,
0.35314837098121643,
-0.27663689851760864,
0.3193087875843048,
0.3104672431945801,
-0.016634810715913773,
-0.2100171595811844,
-0.17697028815746307,
0.28330254554748535,
0.11947324872016907,
-0.14271412789821625,
-0.16981089115142822,
0.38632991909980774,
0.6007130742073059,
0.38733670115470886,
-0.487527996301651,
-0.18168453872203827,
-0.26391997933387756,
0.6182787418365479,
-0.05144110321998596,
0.4884519577026367,
0.4662976861000061,
0.1884542554616928,
0.29228121042251587,
-0.2606736123561859,
-0.20654219388961792,
0.43096262216567993,
0.07680761069059372,
0.03764798492193222,
-0.0007756166160106659,
-0.1363193392753601,
0.11587080359458923,
0.08702124655246735,
0.14269369840621948,
0.3840876817703247,
-0.11650557816028595,
0.3271656036376953,
0.06553519517183304,
0.28887271881103516,
0.59284508228302,
0.15780697762966156,
0.43719854950904846,
-0.15944789350032806,
-0.16557016968727112,
0.19451558589935303,
0.22015558183193207,
0.06932397931814194,
-0.05799011141061783,
-0.015621241182088852,
0.16151167452335358,
-0.3188801407814026,
-0.02127503976225853,
0.059096693992614746,
0.05339038372039795,
-0.2769363522529602,
0.4711277186870575,
0.20563726127147675,
-0.22479359805583954,
-0.059054065495729446,
0.0458209291100502,
-0.0872470885515213,
0.17573069036006927,
0.1273069679737091,
0.20654964447021484,
-0.0734713226556778,
-0.22617396712303162,
0.37550222873687744,
-0.4341764450073242,
0.02968655899167061,
-0.17756995558738708,
-0.10822512209415436,
-0.019717860966920853,
0.2628767788410187,
-0.2581287622451782,
0.05270198732614517,
-0.06550585478544235,
0.0659322515130043,
-0.18186399340629578,
0.22174695134162903,
0.18540140986442566,
-0.44353559613227844,
-0.24828022718429565,
-0.2721303105354309,
-0.2667452096939087,
-0.18070536851882935,
-0.19069404900074005,
0.051516078412532806,
0.3041938841342926,
0.21051378548145294,
-0.02894548326730728,
0.2490503042936325,
0.1911310851573944,
-0.1328953057527542,
-0.056894898414611816,
0.1076926589012146,
-0.47540757060050964,
0.10722646117210388,
0.38881444931030273,
0.2782553732395172,
0.16422270238399506,
-0.37879279255867004,
-0.28443464636802673,
0.0037732087075710297,
-0.014565914869308472,
-0.25151878595352173,
0.27655553817749023,
0.11542010307312012,
0.7933061122894287,
0.5852683782577515,
-0.10993519425392151,
-0.3783089816570282,
-0.09885533154010773,
-0.20238934457302094,
0.015739060938358307,
-0.1293281614780426,
0.011677510105073452,
-0.19712895154953003,
0.4506746232509613,
0.19107991456985474,
-0.28324586153030396,
0.21060121059417725,
-0.2632029354572296,
-0.22452495992183685,
-0.24308419227600098,
0.24088361859321594,
-0.28431716561317444,
0.027725426480174065,
0.021936140954494476,
0.40926164388656616,
-0.06633118540048599,
0.1995100975036621,
0.06343913078308105,
0.11378152668476105,
-0.3624653220176697,
-0.017779098823666573,
0.28394579887390137,
0.35586342215538025,
-0.31325018405914307,
0.5239499807357788,
0.07520700246095657,
0.06318911910057068,
-0.013141950592398643,
-0.2903977930545807,
0.231044203042984,
0.07785779982805252,
-0.26765719056129456,
0.042491596192121506,
0.3427079916000366,
-0.05037146806716919,
-0.07368690520524979,
0.10609199106693268,
0.2718820869922638,
0.42965206503868103,
0.020260682329535484,
-0.4044407904148102,
-0.25529077649116516
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | I think the deletion of each extracted file could be implemented in our CacheManager and ExtractManager (once merged to master: #2295, #2277). 😉 | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 23 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
I think the deletion of each extracted file could be implemented in our CacheManager and ExtractManager (once merged to master: #2295, #2277). 😉 | [
-0.022601131349802017,
-0.11210323125123978,
-0.16414114832878113,
0.1639861762523651,
-0.140829935669899,
0.15682187676429749,
-0.19473426043987274,
0.2873067259788513,
0.23211440443992615,
0.1775878369808197,
0.09998245537281036,
0.4532555937767029,
-0.23331496119499207,
-0.10648272186517715,
-0.22852464020252228,
0.06522177159786224,
-0.21820491552352905,
0.2731805145740509,
-0.027397438883781433,
0.20257942378520966,
-0.08164045959711075,
0.08623817563056946,
0.07947227358818054,
-0.1437506377696991,
0.05151205137372017,
-0.41865280270576477,
0.21561753749847412,
-0.2527046203613281,
-0.09215370565652847,
-0.3959027826786041,
0.0014368891716003418,
0.5230806469917297,
0.22348208725452423,
0.1859768033027649,
-0.00011581992293940857,
-0.055346596986055374,
0.3054269552230835,
0.08451948314905167,
-0.34730103611946106,
0.19303931295871735,
-0.18833577632904053,
-0.10024654120206833,
0.21812257170677185,
-0.1417432427406311,
0.2566109299659729,
-0.30456873774528503,
-0.1959095597267151,
-0.6068361401557922,
0.45279091596603394,
-0.23664389550685883,
0.14946787059307098,
-0.014858948066830635,
-0.5173230171203613,
0.13463394343852997,
0.30285128951072693,
0.31945106387138367,
-0.1107092797756195,
-0.047523993998765945,
0.4241870939731598,
0.07512704282999039,
0.20089881122112274,
0.3739810585975647,
-0.11343852430582047,
-0.250063419342041,
0.324303537607193,
-0.009984374977648258,
-0.14232227206230164,
-0.24491173028945923,
0.31422096490859985,
0.015083149075508118,
0.5898216962814331,
-0.39730748534202576,
-0.0776180624961853,
-0.2895054221153259,
0.05655956268310547,
-0.584649920463562,
0.1107223629951477,
0.16773192584514618,
0.005849568173289299,
0.2414090633392334,
-0.1400051712989807,
-0.4298626780509949,
-0.3438481390476227,
-0.19005607068538666,
0.6732531785964966,
-0.3742927312850952,
-0.09493471682071686,
-0.14132827520370483,
0.4534684717655182,
0.14644820988178253,
0.18622250854969025,
-0.1259608417749405,
-0.28882092237472534,
0.3707064390182495,
-0.07129909098148346,
-0.20187321305274963,
-0.36891600489616394,
-0.3332549035549164,
0.2370147407054901,
0.17089754343032837,
0.4238263666629791,
0.05188504606485367,
0.23517020046710968,
0.06339376419782639,
0.2637762725353241,
0.3954227566719055,
0.0883607342839241,
-0.12768103182315826,
0.20075738430023193,
0.11122550070285797,
0.07688386738300323,
-0.05424611270427704,
0.09289362281560898,
0.00007404666393995285,
0.3071663975715637,
0.020652256906032562,
-0.07225657999515533,
-0.1556965559720993,
-0.04293620586395264,
0.0741354450583458,
0.2563769519329071,
-0.17253448069095612,
0.08697904646396637,
0.20197515189647675,
0.15323391556739807,
0.046481646597385406,
0.06329061836004257,
0.2291131466627121,
0.024084290489554405,
-0.29613879323005676,
0.08566327393054962,
0.171893909573555,
-0.3100759983062744,
-0.26614320278167725,
0.39424753189086914,
-0.060051072388887405,
-0.03532174974679947,
-0.1283136010169983,
-0.30434656143188477,
0.039080001413822174,
0.518765926361084,
-0.1317346692085266,
0.2679392397403717,
0.2626911699771881,
-0.16658923029899597,
-0.25993186235427856,
-0.2856931686401367,
-0.027482477948069572,
-0.15682198107242584,
0.42219433188438416,
-0.11598383635282516,
-0.24324165284633636,
-0.039098598062992096,
0.16736531257629395,
0.1655026525259018,
0.30483800172805786,
-0.4949507415294647,
0.13256122171878815,
0.15543201565742493,
0.05270032957196236,
-0.02544521540403366,
0.39150190353393555,
-0.012170698493719101,
-0.10844730585813522,
-0.30853039026260376,
0.26028311252593994,
-0.6160302758216858,
-0.07654901593923569,
-0.2943629026412964,
-0.2651221454143524,
0.19346460700035095,
0.13791388273239136,
-0.06257611513137817,
0.18025770783424377,
-0.1758536696434021,
0.1568828970193863,
0.3047700822353363,
-0.10473033785820007,
-0.3668220043182373,
0.16302426159381866,
0.0668901801109314,
0.19863370060920715,
0.3475046455860138,
0.27671799063682556,
0.3986901044845581,
-0.0060506961308419704,
-0.03150927275419235,
0.27651333808898926,
0.07729361206293106,
-0.06928307563066483,
-0.3465442955493927,
-0.39543417096138,
0.016698388382792473,
0.20936065912246704,
0.04111725836992264,
0.04863879829645157,
0.2571694254875183,
0.014542697928845882,
0.1615276336669922,
0.15622837841510773,
0.15401306748390198,
0.17702162265777588,
0.1292433738708496,
-0.2629844546318054,
-0.21787652373313904,
0.12992912530899048,
-0.5425736904144287,
0.011116649955511093,
-0.5635594129562378,
-0.3578415513038635,
-0.16811956465244293,
-0.345192551612854,
0.1446571946144104,
0.02597261779010296,
-0.15063683688640594,
0.15255749225616455,
0.12016640603542328,
-0.03061702847480774,
0.23218032717704773,
-0.05763355642557144,
-0.41415464878082275,
0.08212443441152573,
-0.07872503250837326,
0.021412059664726257,
-0.47092413902282715,
0.039849646389484406,
0.13046690821647644,
-0.22291772067546844,
-0.02475452981889248,
0.0109061598777771,
-0.2736268639564514,
-0.5044939517974854,
-0.13943585753440857,
0.26984503865242004,
0.2659399211406708,
0.26945531368255615,
0.240314781665802,
0.23477309942245483,
0.16865232586860657,
0.25293388962745667,
0.07809026539325714,
0.16555474698543549,
-0.02199721336364746,
0.057389646768569946,
-0.3692438006401062,
0.3941813111305237,
-0.1629273146390915,
-0.06804243475198746,
-0.20915022492408752,
-0.39630889892578125,
0.24879413843154907,
-0.11829166114330292,
0.14941498637199402,
-0.528213620185852,
0.07540106773376465,
0.3249073922634125,
-0.09787501394748688,
0.012904496863484383,
0.12580804526805878,
-0.08437662571668625,
-0.0029912516474723816,
0.00307280570268631,
-0.08140759915113449,
0.33434924483299255,
-0.0005696862936019897,
-0.20647373795509338,
0.0179730337113142,
0.3947652578353882,
0.37319543957710266,
0.18632632493972778,
-0.14431819319725037,
-0.1430865079164505,
0.4674765467643738,
-0.007740075699985027,
0.1551847755908966,
0.035697389394044876,
0.0012495890259742737,
0.379258394241333,
0.08274172246456146,
0.009578737430274487,
-0.2653331458568573,
-0.09086240828037262,
0.10354487597942352,
0.18540161848068237,
0.3281435966491699,
-0.21570049226284027,
-0.26453298330307007,
-0.3503084182739258,
0.4957950711250305,
0.3474988043308258,
0.22671261429786682,
0.001292201690375805,
0.529710054397583,
0.10805761814117432,
-0.4376135766506195,
0.07942605018615723,
0.03600693866610527,
0.6342992782592773,
-0.1338888257741928,
-0.12763406336307526,
-0.4051324129104614,
-0.19303105771541595,
0.15631155669689178,
0.04133717343211174,
0.37005552649497986,
-0.0946756899356842,
0.49196240305900574,
0.12803097069263458,
0.10748501121997833,
-0.10135642439126968,
-0.0828964039683342,
0.09048885107040405,
0.36527860164642334,
-0.04226571321487427,
0.12500812113285065,
0.15209347009658813,
-0.019617680460214615,
0.1258702427148819,
-0.21635879576206207,
-0.33813759684562683,
-0.13888747990131378,
0.20752480626106262,
0.08520549535751343,
-0.01984352618455887,
-0.28183212876319885,
-0.021943122148513794,
-0.19018162786960602,
-0.4262128472328186,
0.22398081421852112,
-0.06023296341300011,
0.07225433737039566,
0.05355621874332428,
0.15967370569705963,
-0.030491169542074203,
0.03005186654627323,
0.08891114592552185,
-0.07788359373807907,
-0.6628456711769104,
0.0983511209487915,
-0.18684229254722595,
0.03798384964466095,
0.2425362467765808,
0.04447319358587265,
0.006319213658571243,
0.2807716727256775,
-0.38766127824783325,
-0.057344112545251846,
0.08183906227350235,
0.10494597256183624,
-0.3130923807621002,
-0.11844180524349213,
0.20262190699577332,
0.2476186901330948,
-0.12332765758037567,
-0.0007630884647369385,
0.10130736231803894,
0.2300354242324829,
0.34242045879364014,
0.1033395454287529,
0.12404279410839081,
0.30774563550949097,
0.22004380822181702,
0.30429744720458984,
-0.28093665838241577,
0.04438495635986328,
0.3332584798336029,
0.403205543756485,
0.39575299620628357,
-0.19995927810668945,
0.23206669092178345,
-0.39022311568260193,
-0.010768234729766846,
-0.12729181349277496,
0.15311594307422638,
0.019208325073122978,
-0.23719795048236847,
0.16218993067741394,
-0.23518364131450653,
-0.10763385146856308,
-0.09245728701353073,
0.31035372614860535,
-0.18960295617580414,
0.013722490519285202,
0.03372566029429436,
-0.28911834955215454,
-0.04449393227696419,
-0.028092632070183754,
0.14880581200122833,
0.1669507622718811,
0.35636600852012634,
-0.08364236354827881,
-0.26351380348205566,
-0.08785942941904068,
-0.26446330547332764,
0.3332785665988922,
-0.22235466539859772,
-0.1899111121892929,
-0.10917480289936066,
0.058602891862392426,
0.13714483380317688,
0.19426076114177704,
0.3985286355018616,
-0.09872270375490189,
-0.025950290262699127,
-0.1894543617963791,
-0.006674986332654953,
-0.15789327025413513,
0.03472115471959114,
0.014704391360282898,
0.055389419198036194,
0.06255917251110077,
0.3513253331184387,
-0.30229559540748596,
-0.20039544999599457,
-0.2519719898700714,
0.5415745973587036,
-0.26827433705329895,
-0.1403571516275406,
-0.05329567566514015,
-0.2300037145614624,
-0.515253484249115,
0.0718512162566185,
0.024822698906064034,
-0.12059397995471954,
0.19343537092208862,
-0.317802757024765,
-0.09704809635877609,
-0.3147118389606476,
0.035662658512592316,
0.013495141640305519,
0.5749184489250183,
-0.3080905079841614,
0.05295843258500099,
-0.1670599728822708,
0.1460401713848114,
0.4614255726337433,
0.1831461489200592,
-0.07405781745910645,
0.05674241483211517,
0.045556098222732544,
-0.3605612814426422,
0.07472836971282959,
0.1328519582748413,
-0.1521325260400772,
0.32343289256095886,
-0.23785454034805298,
0.5641589760780334,
0.09268147498369217,
-0.05503623187541962,
-0.23530715703964233,
-0.2607461214065552,
-0.01914316788315773,
-0.14114949107170105,
0.08383266627788544,
0.04532797262072563,
-0.17575959861278534,
0.44834402203559875,
-0.23646895587444305,
-0.2719983756542206,
0.47846078872680664,
0.0938812717795372,
1.15234375,
-0.0630938857793808,
-0.044360850006341934,
-0.24818775057792664,
-0.2877419590950012,
0.29684561491012573,
-0.6555528044700623,
0.14335590600967407,
-0.035474538803100586,
-0.11665970087051392,
0.10456080734729767,
0.011456403881311417,
0.014400925487279892,
0.19934026896953583,
-0.25248193740844727,
0.09566602110862732,
-0.28797775506973267,
-0.14062291383743286,
-0.2822278141975403,
0.3869054615497589,
-0.1198892816901207,
-0.27297550439834595,
-0.05242841690778732,
0.03113282471895218,
0.0025457218289375305,
-0.08387656509876251,
-0.24106952548027039,
-0.11412158608436584,
0.44445663690567017,
-0.05005288124084473,
0.3152216672897339,
-0.09987683594226837,
-0.2177528589963913,
0.409177303314209,
-0.17414376139640808,
-0.10874616354703903,
-0.3227097988128662,
-0.043151531368494034,
-0.17693741619586945,
0.050937313586473465,
0.1713896244764328,
-0.0063799358904361725,
0.11495181918144226,
-0.03272945433855057,
-0.4030058681964874,
0.04160427302122116,
-0.11487165093421936,
-0.14889222383499146,
0.05880012363195419,
0.10789418965578079,
-0.29504647850990295,
-0.3856202960014343,
0.1859513521194458,
0.14105793833732605,
-0.16114561259746552,
0.08118369430303574,
-0.2483864426612854,
-0.10649850964546204,
-0.5253577828407288,
0.09415265917778015,
0.13362397253513336,
0.31764495372772217,
-0.21193726360797882,
0.31058576703071594,
-0.1847437620162964,
-0.15752317011356354,
-0.2423827201128006,
-0.1405695378780365,
0.33649128675460815,
-0.16293254494667053,
0.21285051107406616,
-0.20560529828071594,
-0.25023603439331055,
-0.4690577983856201,
-0.02779262512922287,
-0.04766717553138733,
-0.36347296833992004,
0.41304290294647217,
0.004933325573801994,
-0.22474737465381622,
0.11111702024936676,
-0.16200852394104004,
0.04598665609955788,
0.04976719245314598,
-0.16964590549468994,
-0.14169743657112122,
-0.46953991055488586,
0.23926480114459991,
0.20842893421649933,
0.5362952351570129,
0.053193509578704834,
-0.022217996418476105,
-0.15061424672603607,
0.160345196723938,
-0.2843221426010132,
0.23701223731040955,
0.21973666548728943,
0.16887107491493225,
-0.050639621913433075,
0.2401750087738037,
0.04558418318629265,
-0.20881332457065582,
-0.052052825689315796,
0.1431407928466797,
-0.14152076840400696,
-0.20871049165725708,
-0.07090035080909729,
0.0874166190624237,
-0.15715354681015015,
-0.02311444841325283,
-0.22869782149791718,
-0.1295992136001587,
0.0958833396434784,
-0.1730567365884781,
0.26352939009666443,
-0.19058850407600403,
-0.1276009976863861,
-0.1356276124715805,
0.44365277886390686,
-0.06297283619642258,
-0.08623310923576355,
0.15292863547801971,
-0.03501220792531967,
0.30174365639686584,
-0.04383089020848274,
-0.022369027137756348,
-0.0828738659620285,
-0.06810636073350906,
-0.3027169108390808,
0.04667855054140091,
0.2749306559562683,
0.06934374570846558,
-0.014225244522094727,
-0.0127621591091156,
-0.08268742263317108,
0.137090265750885,
0.04499188810586929,
0.20479725301265717,
-0.0748964175581932,
-0.12294890731573105,
-0.037908028811216354,
0.23747076094150543,
-0.21281366050243378,
-0.20705245435237885,
-0.07186277210712433,
0.012748710811138153,
-0.19172190129756927,
0.2789098024368286,
0.362636923789978,
0.08865697681903839,
0.169934943318367,
0.12532952427864075,
0.34716740250587463,
-0.28704404830932617,
0.27395862340927124,
0.21543729305267334,
0.05464712902903557,
-0.2092103511095047,
-0.06464274227619171,
0.3144546449184418,
0.14342135190963745,
-0.11452159285545349,
-0.12922346591949463,
0.39059683680534363,
0.5757665634155273,
0.30907580256462097,
-0.5367893576622009,
-0.22238381206989288,
-0.2938575744628906,
0.6234037280082703,
-0.13510866463184357,
0.44279709458351135,
0.403883159160614,
0.15100827813148499,
0.2659560739994049,
-0.32298123836517334,
-0.21953074634075165,
0.4456721842288971,
0.045727550983428955,
0.06986899673938751,
0.07855768501758575,
-0.07747524976730347,
0.14260123670101166,
0.09141676127910614,
0.19995197653770447,
0.43143540620803833,
-0.08097869157791138,
0.31322720646858215,
0.03188679367303848,
0.2796558439731598,
0.5481157302856445,
0.18506312370300293,
0.4165058434009552,
-0.16227079927921295,
-0.19293402135372162,
0.20233401656150818,
0.2120329588651657,
0.004021491855382919,
-0.07101435959339142,
-0.0656384825706482,
0.18741905689239502,
-0.3410091996192932,
-0.01581396907567978,
0.06780007481575012,
0.06332185119390488,
-0.3073609173297882,
0.4482384920120239,
0.23076890408992767,
-0.28878459334373474,
-0.04153454303741455,
0.0883270874619484,
-0.11801248788833618,
0.21898873150348663,
0.11878584325313568,
0.1506618708372116,
-0.056057218462228775,
-0.20428958535194397,
0.41454237699508667,
-0.42569699883461,
0.021681636571884155,
-0.1777397096157074,
-0.208207905292511,
-0.014102554880082607,
0.25358444452285767,
-0.29773661494255066,
0.02677164599299431,
-0.09831619262695312,
0.0933162048459053,
-0.1633652150630951,
0.2756980359554291,
0.15642136335372925,
-0.41754239797592163,
-0.23385733366012573,
-0.2869606614112854,
-0.24208955466747284,
-0.14071699976921082,
-0.23422300815582275,
0.047454774379730225,
0.23183324933052063,
0.23805181682109833,
-0.05370789021253586,
0.23276205360889435,
0.1777539849281311,
-0.1275857388973236,
-0.10512696206569672,
0.034711964428424835,
-0.5523294806480408,
0.15175169706344604,
0.40120673179626465,
0.1970658004283905,
0.19633446633815765,
-0.39993828535079956,
-0.24176137149333954,
-0.025516383349895477,
0.04892146587371826,
-0.1619684100151062,
0.2541066110134125,
0.11399918794631958,
0.7210955619812012,
0.6302277445793152,
-0.09510228782892227,
-0.35397690534591675,
-0.1152174100279808,
-0.17464174330234528,
-0.0046846903860569,
-0.09540395438671112,
0.009420991875231266,
-0.2118440866470337,
0.4912095069885254,
0.23967373371124268,
-0.26306596398353577,
0.2058996856212616,
-0.24400568008422852,
-0.14438650012016296,
-0.20592983067035675,
0.19791845977306366,
-0.20805716514587402,
0.0010103555396199226,
0.04792962223291397,
0.4529612362384796,
-0.028188005089759827,
0.23035132884979248,
0.08856821060180664,
0.08757828176021576,
-0.40072429180145264,
-0.017265737056732178,
0.2634521722793579,
0.338711678981781,
-0.3430575728416443,
0.47249263525009155,
0.12066079676151276,
0.11631590127944946,
-0.05245285481214523,
-0.22712597250938416,
0.25922396779060364,
0.05088876932859421,
-0.22611331939697266,
-0.001872500404715538,
0.2962723672389984,
-0.07650955021381378,
-0.06469271332025528,
0.10924583673477173,
0.224214106798172,
0.38441169261932373,
0.013439109548926353,
-0.4318144917488098,
-0.24029670655727386
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Nevermind @thomwolf, I just mentioned the other issue so that both appear linked in GitHub and we do not forget to close both once we make the corresponding Pull Request... That was the main reason! 😄 | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 36 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
Nevermind @thomwolf, I just mentioned the other issue so that both appear linked in GitHub and we do not forget to close both once we make the corresponding Pull Request... That was the main reason! 😄 | [
-0.08552661538124084,
-0.06718821078538895,
-0.1844741255044937,
0.10478685796260834,
-0.06817660480737686,
0.09409301728010178,
-0.20691655576229095,
0.357980340719223,
0.19299130141735077,
0.180329829454422,
0.12563703954219818,
0.5178521275520325,
-0.19906513392925262,
-0.053291819989681244,
-0.23030494153499603,
0.10034669935703278,
-0.17107826471328735,
0.25079840421676636,
-0.09663651883602142,
0.17212407290935516,
-0.1182253286242485,
0.15862976014614105,
0.05842411518096924,
-0.21478025615215302,
0.047286149114370346,
-0.31169387698173523,
0.24701550602912903,
-0.13067206740379333,
-0.20018203556537628,
-0.33354654908180237,
0.04969377815723419,
0.46657395362854004,
0.15479342639446259,
0.19245553016662598,
-0.00011205149348825216,
-0.0588398277759552,
0.32634615898132324,
0.04196358472108841,
-0.28121083974838257,
0.1578846275806427,
-0.15463349223136902,
-0.12968187034130096,
0.24625174701213837,
-0.171601802110672,
0.1941533088684082,
-0.286030113697052,
-0.26198792457580566,
-0.5600833892822266,
0.4046283960342407,
-0.20745645463466644,
0.2184801548719406,
0.06591969728469849,
-0.47787171602249146,
0.03866942599415779,
0.3469431698322296,
0.3130679726600647,
-0.22080089151859283,
-0.024145212024450302,
0.4340992271900177,
0.021029280498623848,
0.13282273709774017,
0.42030903697013855,
-0.04279252886772156,
-0.16822825372219086,
0.3660375773906708,
-0.03185310214757919,
-0.13207674026489258,
-0.26599428057670593,
0.3651883006095886,
-0.041888512670993805,
0.6081605553627014,
-0.40394920110702515,
-0.07049711048603058,
-0.2332204282283783,
-0.0010145027190446854,
-0.5103721618652344,
0.19648362696170807,
0.13087458908557892,
-0.029424989596009254,
0.20578722655773163,
-0.21564516425132751,
-0.3320872187614441,
-0.29868483543395996,
-0.22750212252140045,
0.5624449253082275,
-0.31717294454574585,
-0.09318430721759796,
-0.14425379037857056,
0.462785542011261,
0.1177910640835762,
0.16542190313339233,
-0.04384014755487442,
-0.30932483077049255,
0.2831881642341614,
-0.08998969197273254,
-0.22045251727104187,
-0.2162850797176361,
-0.3502407371997833,
0.2751031517982483,
0.21590928733348846,
0.3916696012020111,
0.03507937863469124,
0.19524824619293213,
-0.06963063031435013,
0.2703438103199005,
0.43230193853378296,
0.0422205813229084,
-0.1306515485048294,
0.2671509087085724,
0.05668577551841736,
0.07128962874412537,
0.014363167807459831,
0.12461553514003754,
-0.027785975486040115,
0.20985695719718933,
-0.03530905023217201,
-0.022360656410455704,
-0.2735992670059204,
-0.00276164710521698,
0.0769033432006836,
0.2991533875465393,
-0.11166320741176605,
0.04727566987276077,
0.25071725249290466,
0.21069106459617615,
0.10886082798242569,
0.05727791786193848,
0.2573492228984833,
-0.007382726296782494,
-0.25155413150787354,
0.03862709552049637,
0.15903028845787048,
-0.34530502557754517,
-0.20713546872138977,
0.36354726552963257,
0.016521407291293144,
0.044596828520298004,
-0.08718317002058029,
-0.239129438996315,
0.095771923661232,
0.47681063413619995,
-0.05259079858660698,
0.19360092282295227,
0.3282547891139984,
-0.12140841782093048,
-0.19680961966514587,
-0.24860940873622894,
-0.039099037647247314,
-0.12420834600925446,
0.37648633122444153,
-0.14883989095687866,
-0.27380338311195374,
-0.07598225772380829,
0.21675115823745728,
0.10996924340724945,
0.24221552908420563,
-0.5487083196640015,
0.11655786633491516,
0.13605140149593353,
0.042357053607702255,
0.002553604543209076,
0.3891156315803528,
0.0077831558883190155,
-0.15690773725509644,
-0.27080926299095154,
0.18428410589694977,
-0.6277387142181396,
0.018134288489818573,
-0.24190804362297058,
-0.18491815030574799,
0.22550052404403687,
0.24005159735679626,
-0.15192559361457825,
0.1250222772359848,
-0.13771142065525055,
0.19532693922519684,
0.29035136103630066,
-0.13761073350906372,
-0.42723599076271057,
0.16460782289505005,
0.011629626154899597,
0.12677456438541412,
0.30827149748802185,
0.1919437050819397,
0.36406928300857544,
0.0199810191988945,
-0.005991436541080475,
0.2740212082862854,
0.04541643708944321,
-0.008872268721461296,
-0.44721925258636475,
-0.40306511521339417,
0.018171042203903198,
0.20656970143318176,
0.04354840889573097,
-0.004269413650035858,
0.2280375063419342,
-0.04544574022293091,
0.144741952419281,
0.025210067629814148,
0.11020008474588394,
0.1990106850862503,
0.16364341974258423,
-0.36381858587265015,
-0.1670936942100525,
0.10511753708124161,
-0.5550248026847839,
0.026747867465019226,
-0.5375994443893433,
-0.2535659670829773,
-0.1553022414445877,
-0.3377278447151184,
0.1138792410492897,
-0.01780584268271923,
-0.13681335747241974,
0.09948764741420746,
0.1636173576116562,
-0.050528258085250854,
0.21016649901866913,
-0.11344315111637115,
-0.36785849928855896,
-0.04598640650510788,
-0.0555342435836792,
-0.017163200303912163,
-0.43355363607406616,
0.06701930612325668,
0.07132470607757568,
-0.2523714303970337,
0.07253547012805939,
-0.011651530861854553,
-0.18548810482025146,
-0.47299525141716003,
-0.15386292338371277,
0.26038384437561035,
0.24507814645767212,
0.2921971082687378,
0.2877059280872345,
0.26213937997817993,
0.2128138542175293,
0.2098299264907837,
0.13724477589130402,
0.1424441784620285,
-0.015927042812108994,
0.05945538729429245,
-0.41495707631111145,
0.3945380449295044,
-0.15297053754329681,
-0.05917201191186905,
-0.15091480314731598,
-0.35060009360313416,
0.2903299927711487,
-0.1401844620704651,
0.047526463866233826,
-0.4543594717979431,
0.10199464857578278,
0.31083783507347107,
-0.11021453142166138,
0.015106961131095886,
0.07892686128616333,
0.040207378566265106,
0.10060729086399078,
-0.040163807570934296,
-0.1399700939655304,
0.36693882942199707,
0.05546223744750023,
-0.2806329131126404,
0.06649630516767502,
0.35676878690719604,
0.3791138529777527,
0.2107023447751999,
-0.19492897391319275,
-0.1907741129398346,
0.3597586452960968,
-0.018401645123958588,
0.20914416015148163,
0.02218390256166458,
0.029099836945533752,
0.34127989411354065,
0.12374963611364365,
-0.02661827951669693,
-0.2955551743507385,
-0.10011591017246246,
0.07769396156072617,
0.23164112865924835,
0.24728643894195557,
-0.281629741191864,
-0.24299442768096924,
-0.30209821462631226,
0.5641671419143677,
0.3144173324108124,
0.2222723513841629,
-0.07187763601541519,
0.5412749648094177,
0.09349454194307327,
-0.5482689738273621,
0.1295158565044403,
0.06196359917521477,
0.624278724193573,
-0.11756667494773865,
-0.0005494486540555954,
-0.39890965819358826,
-0.2547472417354584,
0.13614515960216522,
0.08734303712844849,
0.3191330134868622,
-0.08648674190044403,
0.4921014904975891,
0.03619007766246796,
0.0833238959312439,
-0.14825716614723206,
-0.13641510903835297,
0.09518970549106598,
0.2864719331264496,
-0.03578932583332062,
0.112913578748703,
0.12832878530025482,
0.0019890442490577698,
0.06899020075798035,
-0.14435851573944092,
-0.3590828776359558,
-0.15671361982822418,
0.1778903752565384,
0.051676347851753235,
-0.1459529995918274,
-0.3483550250530243,
-0.1375785768032074,
-0.11672868579626083,
-0.470823734998703,
0.28618913888931274,
-0.004263252019882202,
0.05806884914636612,
0.10668104887008667,
0.18718884885311127,
-0.010236820206046104,
0.10183858871459961,
0.05153008550405502,
-0.131252720952034,
-0.6456324458122253,
0.16300003230571747,
-0.2419218122959137,
-0.10737822949886322,
0.21003174781799316,
0.08453898876905441,
0.06748582422733307,
0.24125686287879944,
-0.4375689625740051,
-0.04720301926136017,
-0.014671480283141136,
0.1606198102235794,
-0.20703202486038208,
-0.11852708458900452,
0.1915578842163086,
0.25988104939460754,
-0.20311231911182404,
-0.03333568945527077,
0.030755072832107544,
0.2139241099357605,
0.3151895999908447,
0.1125563457608223,
0.05997350439429283,
0.2892117500305176,
0.16513338685035706,
0.36261385679244995,
-0.33341115713119507,
0.07521289587020874,
0.37527212500572205,
0.3635930120944977,
0.4455360174179077,
-0.27412641048431396,
0.20365551114082336,
-0.34342801570892334,
-0.01789630949497223,
-0.09213127940893173,
0.19066017866134644,
0.06591647863388062,
-0.2766296863555908,
0.14961083233356476,
-0.22674094140529633,
-0.04684633016586304,
-0.09855436533689499,
0.32625511288642883,
-0.2088487148284912,
-0.09147746115922928,
0.062134888023138046,
-0.20484784245491028,
-0.06888434290885925,
0.006367356516420841,
0.18377304077148438,
0.10838751494884491,
0.26888346672058105,
-0.13042950630187988,
-0.26447466015815735,
-0.039400819689035416,
-0.25721240043640137,
0.2851046919822693,
-0.2718001902103424,
-0.21928639709949493,
-0.13193592429161072,
-0.017210258170962334,
0.14518806338310242,
0.13104982674121857,
0.41792166233062744,
-0.1409446895122528,
-0.1006123423576355,
-0.188283771276474,
0.012589164078235626,
-0.22018755972385406,
0.01893153414130211,
-0.03635582700371742,
0.1079014390707016,
0.13140898942947388,
0.39278891682624817,
-0.2881758213043213,
-0.2088012397289276,
-0.22045882046222687,
0.45835965871810913,
-0.20307324826717377,
-0.09956648200750351,
-0.035674840211868286,
-0.2675747275352478,
-0.52112877368927,
0.08275795727968216,
0.1385287344455719,
-0.11203084141016006,
0.14951083064079285,
-0.2988809049129486,
-0.019606007263064384,
-0.33072057366371155,
0.049219224601984024,
0.10103827714920044,
0.5875726342201233,
-0.2887619137763977,
0.0951903760433197,
-0.20156176388263702,
0.1822335124015808,
0.4474598467350006,
0.2902321219444275,
-0.09353913366794586,
0.10954362154006958,
0.08886633068323135,
-0.32335203886032104,
0.025891736149787903,
0.16844356060028076,
-0.1167425587773323,
0.23019051551818848,
-0.24753370881080627,
0.6316025853157043,
0.06192556396126747,
-0.1011546403169632,
-0.1581905335187912,
-0.29539549350738525,
0.03682726249098778,
-0.11686765402555466,
0.14419960975646973,
0.0038701053708791733,
-0.15173906087875366,
0.49749329686164856,
-0.17422623932361603,
-0.236904114484787,
0.5581267476081848,
0.11188717186450958,
1.122302770614624,
0.06624576449394226,
-0.008209861814975739,
-0.11594086140394211,
-0.3521791100502014,
0.2567614018917084,
-0.6527989506721497,
0.0919906347990036,
0.012415241450071335,
-0.13667821884155273,
0.14952491223812103,
-0.0076310597360134125,
-0.05051920562982559,
0.17213958501815796,
-0.32164135575294495,
0.043433450162410736,
-0.24369525909423828,
-0.12641869485378265,
-0.30056557059288025,
0.3972910940647125,
-0.08812163770198822,
-0.3036732077598572,
-0.13684985041618347,
0.06959040462970734,
0.09616488218307495,
-0.10275253653526306,
-0.2141227126121521,
-0.11295260488986969,
0.3157934546470642,
-0.08421827107667923,
0.2002478986978531,
-0.053164929151535034,
-0.1764603853225708,
0.3988555073738098,
-0.17001967132091522,
-0.07717306911945343,
-0.2630425691604614,
-0.08888271450996399,
-0.12113308906555176,
0.0884740799665451,
0.015209825709462166,
0.05394836887717247,
0.11296051740646362,
0.0923844501376152,
-0.3502327501773834,
-0.026247669011354446,
-0.0631624236702919,
-0.19011065363883972,
0.045009978115558624,
0.03848504275083542,
-0.3371967077255249,
-0.27309471368789673,
0.12757712602615356,
0.13418181240558624,
-0.16872937977313995,
-0.0039645228534936905,
-0.20656563341617584,
-0.07748878002166748,
-0.5094296932220459,
0.013762500137090683,
0.18160566687583923,
0.285528302192688,
-0.14495216310024261,
0.34956294298171997,
-0.07684123516082764,
-0.22273068130016327,
-0.27390173077583313,
-0.056163229048252106,
0.3547869622707367,
-0.09188780933618546,
0.14979758858680725,
-0.1659591794013977,
-0.28155070543289185,
-0.4964165687561035,
-0.07264429330825806,
0.022501714527606964,
-0.4313991069793701,
0.4540005624294281,
-0.0022816595155745745,
-0.3116542100906372,
0.11540848761796951,
-0.06609146296977997,
0.13808703422546387,
0.0372062586247921,
-0.18061918020248413,
-0.09118291735649109,
-0.47339457273483276,
0.25554773211479187,
0.1506567746400833,
0.5617163777351379,
0.0009444616734981537,
-0.0016487110406160355,
-0.0733284205198288,
0.18513014912605286,
-0.34371644258499146,
0.18667125701904297,
0.14187687635421753,
0.1569521576166153,
-0.07383985072374344,
0.15225493907928467,
0.08870392292737961,
-0.17353250086307526,
0.0005620792508125305,
0.11840967833995819,
-0.18257878720760345,
-0.24245205521583557,
-0.036061447113752365,
0.08901416510343552,
-0.15983295440673828,
-0.0823260247707367,
-0.11708645522594452,
-0.10314155369997025,
-0.0009932424873113632,
-0.15497511625289917,
0.30166205763816833,
-0.1995357871055603,
-0.0685700923204422,
-0.21739822626113892,
0.45637521147727966,
-0.09549614042043686,
0.0174308642745018,
0.16717804968357086,
-0.03979036957025528,
0.3143792152404785,
-0.0514560341835022,
0.0146959088742733,
-0.09666049480438232,
-0.10613256692886353,
-0.21365955471992493,
0.07023253291845322,
0.2113618552684784,
0.11381368339061737,
-0.0093035027384758,
0.009165488183498383,
-0.1153390109539032,
0.13311028480529785,
0.11078564822673798,
0.27080976963043213,
-0.08258851617574692,
-0.15676675736904144,
-0.03293947875499725,
0.3032122850418091,
-0.20506815612316132,
-0.19601289927959442,
-0.10919958353042603,
0.008196312934160233,
-0.16488933563232422,
0.18214485049247742,
0.3783394694328308,
0.011258147656917572,
0.20392709970474243,
0.18902897834777832,
0.37331467866897583,
-0.29299694299697876,
0.22335463762283325,
0.09373902529478073,
-0.057108040899038315,
-0.23700745403766632,
-0.08507725596427917,
0.241074338555336,
0.14417171478271484,
-0.055411092936992645,
-0.1522161066532135,
0.31871482729911804,
0.5666559338569641,
0.33260390162467957,
-0.42474421858787537,
-0.09829400479793549,
-0.19804319739341736,
0.5276715755462646,
-0.1208389401435852,
0.4313076138496399,
0.41943055391311646,
0.11996641755104065,
0.26244544982910156,
-0.3267872929573059,
-0.29908645153045654,
0.458425909280777,
0.0017608962953090668,
0.01388164609670639,
0.02789420634508133,
-0.18516027927398682,
0.15031494200229645,
0.08225364983081818,
0.14632529020309448,
0.42367100715637207,
0.0050895437598228455,
0.26983365416526794,
0.03951079025864601,
0.22514672577381134,
0.5589663982391357,
0.13035868108272552,
0.40651950240135193,
-0.14258889853954315,
-0.04198073595762253,
0.2612910866737366,
0.22205881774425507,
0.005022399127483368,
0.0026297103613615036,
0.15770789980888367,
0.2627749443054199,
-0.32471007108688354,
-0.030076012015342712,
0.1915375292301178,
0.00475318543612957,
-0.3440209627151489,
0.46571749448776245,
0.26511117815971375,
-0.22768156230449677,
0.02450341358780861,
0.15113206207752228,
-0.20070984959602356,
0.19505366683006287,
0.09904871881008148,
0.13870622217655182,
-0.014525209553539753,
-0.2503458559513092,
0.3574078381061554,
-0.4714491367340088,
0.043349843472242355,
-0.2280961275100708,
-0.2472659945487976,
-0.0754457488656044,
0.17681564390659332,
-0.2844344675540924,
0.07250366359949112,
-0.10673272609710693,
0.1258525550365448,
-0.17533095180988312,
0.3727460205554962,
0.10643129050731659,
-0.4275982975959778,
-0.2481844425201416,
-0.30173468589782715,
-0.2549426257610321,
-0.09554856270551682,
-0.20056571066379547,
0.045792922377586365,
0.20846351981163025,
0.3400159776210785,
-0.04592858999967575,
0.15530654788017273,
0.2822341322898865,
-0.1257595270872116,
-0.1181768998503685,
0.045445337891578674,
-0.6027136445045471,
0.2640288174152374,
0.3624565601348877,
0.2131042778491974,
0.224193274974823,
-0.387364000082016,
-0.21728692948818207,
0.03569316864013672,
0.09042123705148697,
-0.2374916821718216,
0.23517701029777527,
0.13612793385982513,
0.6803241968154907,
0.5626968741416931,
-0.07970412820577621,
-0.32143402099609375,
-0.18048834800720215,
-0.2506411075592041,
-0.1027376651763916,
-0.1903572827577591,
0.01465418841689825,
-0.16617774963378906,
0.5049532055854797,
0.23263639211654663,
-0.196562260389328,
0.0962209701538086,
-0.23316651582717896,
-0.12894192337989807,
-0.1913469433784485,
0.26485106348991394,
-0.17442618310451508,
0.08594711869955063,
0.05704784393310547,
0.38120976090431213,
-0.1171640083193779,
0.18152165412902832,
0.07427294552326202,
0.10074249655008316,
-0.3683778643608093,
-0.1265716552734375,
0.3467053771018982,
0.2702931761741638,
-0.3461805284023285,
0.504048764705658,
0.10222368687391281,
0.0673040822148323,
-0.09444522857666016,
-0.3364174962043762,
0.2133803367614746,
0.023566219955682755,
-0.1767968237400055,
-0.0001874007284641266,
0.3356523811817169,
-0.09552285075187683,
-0.058727946132421494,
0.06713083386421204,
0.24931806325912476,
0.3315472900867462,
-0.08112624287605286,
-0.3822198510169983,
-0.28657007217407227
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Ok yes. I think this is an important feature to be able to use large datasets which are pretty much always compressed files.
In particular now this requires to keep the extracted file on the drive if you want to avoid reprocessing the dataset so in my case, this require using always ~400GB of drive instead of just 200GB (which is already significant).
Two nice features would be to:
- allow to delete the extracted files without loosing the ability to load the dataset from the cached arrow-file
- streamlined decompression when only the currently read file is extracted - this might require to read the list of files from the extracted archives before processing them? | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 116 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
Ok yes. I think this is an important feature to be able to use large datasets which are pretty much always compressed files.
In particular now this requires to keep the extracted file on the drive if you want to avoid reprocessing the dataset so in my case, this require using always ~400GB of drive instead of just 200GB (which is already significant).
Two nice features would be to:
- allow to delete the extracted files without loosing the ability to load the dataset from the cached arrow-file
- streamlined decompression when only the currently read file is extracted - this might require to read the list of files from the extracted archives before processing them? | [
-0.0659782737493515,
-0.06750455498695374,
-0.12144362926483154,
0.13619373738765717,
-0.18816885352134705,
0.23715630173683167,
-0.16012945771217346,
0.24732832610607147,
0.16247126460075378,
0.1584101915359497,
0.10431937128305435,
0.44837668538093567,
-0.3028530776500702,
-0.10580525547266006,
-0.19399774074554443,
-0.03911229223012924,
-0.1808362901210785,
0.3018626272678375,
0.0600305013358593,
0.19133178889751434,
-0.1481150984764099,
-0.0545220673084259,
0.021462827920913696,
-0.12869003415107727,
0.1161554828286171,
-0.42013096809387207,
0.20555569231510162,
-0.23629513382911682,
-0.09822385758161545,
-0.32712358236312866,
-0.007774282246828079,
0.5414355993270874,
0.3300149440765381,
0.16351938247680664,
-0.00012168644752819091,
0.05212406814098358,
0.28179776668548584,
0.06432424485683441,
-0.4494721293449402,
0.14464178681373596,
-0.3190244436264038,
-0.18726317584514618,
0.14484040439128876,
-0.16057972609996796,
0.2758429944515228,
-0.5139070749282837,
-0.1515803188085556,
-0.7546902894973755,
0.4762699007987976,
-0.20399147272109985,
0.0753074437379837,
-0.004945636726915836,
-0.5496516823768616,
0.1562354564666748,
0.31247180700302124,
0.3418075442314148,
-0.13618861138820648,
-0.04349517822265625,
0.49675819277763367,
0.11903153359889984,
0.24899208545684814,
0.33148929476737976,
-0.04649166390299797,
-0.35072797536849976,
0.35942211747169495,
-0.06955334544181824,
-0.07357456535100937,
-0.28073564171791077,
0.2501986026763916,
0.06227933242917061,
0.6185547113418579,
-0.2949788272380829,
-0.178884357213974,
-0.3965531885623932,
0.09390279650688171,
-0.6207099556922913,
-0.0016168728470802307,
0.2456873655319214,
0.013515379279851913,
0.31003403663635254,
-0.09905625134706497,
-0.4396597146987915,
-0.3894590139389038,
-0.11286810040473938,
0.6326619386672974,
-0.4742107093334198,
-0.0741032212972641,
-0.11111686378717422,
0.5121363997459412,
0.18672558665275574,
0.2198592573404312,
-0.19674286246299744,
-0.2167707085609436,
0.39423173666000366,
-0.08308720588684082,
-0.18187902867794037,
-0.37050944566726685,
-0.2833346426486969,
0.18886905908584595,
0.14147809147834778,
0.42014163732528687,
-0.043493129312992096,
0.17956647276878357,
0.08539091050624847,
0.2840004563331604,
0.39246058464050293,
-0.017019785940647125,
-0.10819438099861145,
0.16415902972221375,
0.10968447476625443,
0.1837194710969925,
-0.06346908211708069,
0.045179225504398346,
-0.06222133710980415,
0.16861985623836517,
0.10199932008981705,
-0.09058872610330582,
-0.11006797850131989,
-0.039975184947252274,
0.044635627418756485,
0.07130777090787888,
-0.2095419019460678,
0.09905894100666046,
0.17989754676818848,
0.2338269203901291,
0.07128889858722687,
0.08952054381370544,
0.2898356318473816,
0.046368107199668884,
-0.3151603937149048,
0.11107848584651947,
0.07670368254184723,
-0.3082776665687561,
-0.2443210929632187,
0.40485867857933044,
-0.11306628584861755,
-0.05293549597263336,
-0.17799894511699677,
-0.25016218423843384,
0.08876349031925201,
0.515901505947113,
-0.15522702038288116,
0.32464227080345154,
0.23602436482906342,
-0.22887428104877472,
-0.25145792961120605,
-0.2872161567211151,
-0.014499567449092865,
-0.17151200771331787,
0.5403386950492859,
-0.13087883591651917,
-0.273629754781723,
-0.011903857812285423,
0.0827527716755867,
0.07786709070205688,
0.2827010750770569,
-0.5317143201828003,
0.23508325219154358,
0.05398998036980629,
-0.04681871458888054,
-0.04109204560518265,
0.33516860008239746,
-0.015606451779603958,
-0.013569416478276253,
-0.3476058542728424,
0.24689775705337524,
-0.6518744826316833,
-0.06022721529006958,
-0.35700172185897827,
-0.2370942234992981,
0.18242210149765015,
0.11429615318775177,
-0.15365226566791534,
0.1675504893064499,
-0.1818362921476364,
0.10571689903736115,
0.38229435682296753,
-0.06416729092597961,
-0.38674649596214294,
0.19539190828800201,
0.10777026414871216,
0.2615792155265808,
0.31337156891822815,
0.2150319218635559,
0.4147537052631378,
-0.07295366376638412,
-0.09576664865016937,
0.2799835801124573,
0.07718606293201447,
-0.09694240987300873,
-0.2989013195037842,
-0.46227821707725525,
0.0986725315451622,
0.24797584116458893,
0.021134430542588234,
0.12906265258789062,
0.2614644765853882,
-0.0357314869761467,
0.20370304584503174,
0.1651516556739807,
0.2209404557943344,
0.14003092050552368,
0.06426233798265457,
-0.26954567432403564,
-0.15031014382839203,
0.17374825477600098,
-0.4975179433822632,
0.012630771845579147,
-0.5214064121246338,
-0.3172445595264435,
-0.204538032412529,
-0.28857046365737915,
0.13722708821296692,
-0.03350459411740303,
-0.1988249272108078,
0.20152246952056885,
0.023784954100847244,
-0.1412811428308487,
0.27245578169822693,
0.06531941890716553,
-0.41017067432403564,
-0.06578168272972107,
-0.06757821142673492,
-0.05952169746160507,
-0.46460920572280884,
0.12049196660518646,
0.1567467898130417,
-0.14072665572166443,
-0.1265905797481537,
0.05243673175573349,
-0.3225056529045105,
-0.441072940826416,
-0.15056899189949036,
0.18770834803581238,
0.20102551579475403,
0.2613529562950134,
0.16141846776008606,
0.3275243639945984,
0.21615034341812134,
0.14286281168460846,
0.1739603579044342,
0.13869327306747437,
0.02979084849357605,
0.09586507827043533,
-0.3868570327758789,
0.40775853395462036,
-0.3279557228088379,
-0.02537926286458969,
-0.1928206831216812,
-0.41763561964035034,
0.25016623735427856,
-0.10819605737924576,
0.030185764655470848,
-0.5059496164321899,
0.07320886850357056,
0.34958362579345703,
-0.0904175341129303,
-0.026191627606749535,
0.1483159363269806,
-0.2089298963546753,
-0.018065553158521652,
-0.0765657126903534,
-0.2578071355819702,
0.3139602541923523,
-0.09848804026842117,
-0.12047401070594788,
0.10992571711540222,
0.4566313922405243,
0.3945099115371704,
0.2134549468755722,
-0.13387928903102875,
-0.1825801134109497,
0.5015576481819153,
0.016986001282930374,
0.13197380304336548,
0.056771691888570786,
0.06116919964551926,
0.4169520437717438,
0.1301809400320053,
0.07144135236740112,
-0.21482276916503906,
-0.12605701386928558,
0.17610904574394226,
0.14703071117401123,
0.28877824544906616,
-0.14003917574882507,
-0.20875707268714905,
-0.46249425411224365,
0.43500593304634094,
0.3845837712287903,
0.2519318163394928,
-0.006583958864212036,
0.521450936794281,
0.007744245231151581,
-0.39692020416259766,
0.05999726802110672,
-0.0019946489483118057,
0.7599346041679382,
-0.09310360252857208,
-0.30559679865837097,
-0.41877269744873047,
-0.197710320353508,
0.18832451105117798,
0.0038353875279426575,
0.3493972718715668,
-0.17901957035064697,
0.4796026051044464,
0.21437449753284454,
0.04796832799911499,
-0.08091364800930023,
-0.055287644267082214,
0.0849810391664505,
0.3521820306777954,
-0.047845594584941864,
0.035021428018808365,
0.14568845927715302,
0.08630241453647614,
0.09378992021083832,
-0.17337080836296082,
-0.21019098162651062,
-0.1256004124879837,
0.10749359428882599,
0.12088597565889359,
0.09522773325443268,
-0.26980096101760864,
0.04262431710958481,
-0.24682115018367767,
-0.4235398471355438,
0.3091306686401367,
-0.05132889747619629,
-0.06899294257164001,
0.15832661092281342,
0.23417091369628906,
-0.044575922191143036,
0.057584475725889206,
0.06800074875354767,
-0.03361953794956207,
-0.643660306930542,
0.12693828344345093,
-0.1944607049226761,
0.04361756145954132,
0.08085900545120239,
-0.06316914409399033,
-0.0740564614534378,
0.4198184609413147,
-0.37694627046585083,
0.03516802191734314,
0.06432534754276276,
0.13373887538909912,
-0.29881376028060913,
-0.08062910288572311,
0.20376598834991455,
0.21216125786304474,
-0.017612731084227562,
-0.010586060583591461,
0.14545634388923645,
0.20495307445526123,
0.3793349862098694,
0.14576023817062378,
0.19179639220237732,
0.24672585725784302,
0.2169596254825592,
0.4157986640930176,
-0.2578365206718445,
-0.007682718336582184,
0.31500935554504395,
0.39198604226112366,
0.4485298991203308,
-0.143202006816864,
0.19770297408103943,
-0.3346404433250427,
-0.010161519050598145,
-0.1489809900522232,
0.0669744685292244,
0.02619919553399086,
-0.2776843011379242,
0.14526884257793427,
-0.20312149822711945,
-0.05048530176281929,
-0.11471979320049286,
0.2853793203830719,
-0.2961053252220154,
0.11132930219173431,
0.029748693108558655,
-0.2856208086013794,
-0.060925502330064774,
-0.0604318305850029,
0.17402872443199158,
0.19015005230903625,
0.5275210738182068,
-0.054911352694034576,
-0.14520221948623657,
-0.03287961706519127,
-0.1676221787929535,
0.27329012751579285,
-0.17261894047260284,
-0.19989125430583954,
0.03566424921154976,
-0.012008700519800186,
0.09214924275875092,
0.2388249933719635,
0.3515526056289673,
-0.12521012127399445,
-0.0307968407869339,
-0.15207374095916748,
0.04300609230995178,
-0.21110545098781586,
0.013766266405582428,
0.00803050771355629,
0.02071698196232319,
0.00893988087773323,
0.44952818751335144,
-0.26231521368026733,
-0.14193594455718994,
-0.23256829380989075,
0.5902496576309204,
-0.23656056821346283,
-0.18276524543762207,
-0.0008258186280727386,
-0.1295437216758728,
-0.5585112571716309,
0.005740225315093994,
0.04327431321144104,
-0.10352905839681625,
0.097959004342556,
-0.26685377955436707,
-0.19030748307704926,
-0.24984079599380493,
0.08967317640781403,
0.020273804664611816,
0.45889678597450256,
-0.2742721736431122,
0.05620291456580162,
-0.03503277152776718,
0.23896671831607819,
0.548104465007782,
0.21424318850040436,
-0.14730267226696014,
-0.0585220605134964,
0.02626730315387249,
-0.3692210018634796,
0.16744807362556458,
0.16639667749404907,
-0.24255740642547607,
0.3254411220550537,
-0.22777675092220306,
0.46706247329711914,
-0.06896807253360748,
0.06520435959100723,
-0.259086936712265,
-0.25053876638412476,
-0.057197749614715576,
-0.20396645367145538,
0.19116997718811035,
0.054140228778123856,
-0.20987236499786377,
0.4351100027561188,
-0.1205911636352539,
-0.25727060437202454,
0.5326522588729858,
0.05907771736383438,
1.1551055908203125,
-0.1128404289484024,
0.014977950602769852,
-0.26804038882255554,
-0.17977651953697205,
0.37282630801200867,
-0.6633316874504089,
0.18162761628627777,
0.014957744628190994,
-0.13848818838596344,
0.059306077659130096,
-0.0376286506652832,
0.03766791522502899,
0.2846596837043762,
-0.228218674659729,
0.059017330408096313,
-0.2025693953037262,
-0.2804601788520813,
-0.2769898772239685,
0.3981357216835022,
-0.07361738383769989,
-0.25766846537590027,
-0.059268876910209656,
-0.03604396432638168,
0.059621017426252365,
-0.05741063132882118,
-0.21114975214004517,
-0.10651646554470062,
0.37683457136154175,
0.02897512912750244,
0.2776341438293457,
-0.17108801007270813,
-0.320793092250824,
0.373085618019104,
-0.2118293046951294,
-0.2551983892917633,
-0.102419912815094,
0.0718890130519867,
-0.268513560295105,
0.0503336638212204,
0.14716367423534393,
-0.007066238671541214,
0.09034965932369232,
-0.06277875602245331,
-0.37012502551078796,
0.03449584171175957,
-0.0024103540927171707,
-0.07829418778419495,
0.09779175370931625,
0.13365894556045532,
-0.3397369086742401,
-0.3465420603752136,
0.17582717537879944,
0.13666169345378876,
-0.12443152070045471,
0.05645665153861046,
-0.2980707883834839,
-0.09244680404663086,
-0.4841826856136322,
0.14098995923995972,
0.05867881700396538,
0.30028069019317627,
-0.14333540201187134,
0.25620797276496887,
-0.1935005486011505,
-0.11901748180389404,
-0.1494339108467102,
-0.1528201699256897,
0.14903157949447632,
-0.20141197741031647,
0.23110754787921906,
-0.25531020760536194,
-0.24304579198360443,
-0.38028618693351746,
-0.0017062313854694366,
-0.1441020667552948,
-0.38900426030158997,
0.42473238706588745,
0.03931744396686554,
-0.16467131674289703,
0.05666375532746315,
-0.16595090925693512,
0.0021753236651420593,
0.005637623369693756,
-0.06999100744724274,
-0.16726559400558472,
-0.4592875838279724,
0.25871434807777405,
0.1362251341342926,
0.5790671110153198,
0.08899376541376114,
0.001823565922677517,
-0.19067952036857605,
0.030371254310011864,
-0.21412307024002075,
0.312122642993927,
0.33796024322509766,
0.17762477695941925,
0.02696843631565571,
0.2774656414985657,
0.04031806439161301,
-0.23742087185382843,
-0.11227699369192123,
0.10826926678419113,
-0.04246214032173157,
-0.12655401229858398,
-0.13381069898605347,
0.12783226370811462,
-0.10390841215848923,
-0.11733199656009674,
-0.15632688999176025,
-0.26440566778182983,
0.029245387762784958,
-0.2014671117067337,
0.25277939438819885,
-0.25299498438835144,
-0.1273672729730606,
-0.13154079020023346,
0.3878420889377594,
-0.05597821623086929,
-0.15237192809581757,
0.19969463348388672,
-0.037123918533325195,
0.4207262396812439,
0.012595068663358688,
0.10740312188863754,
-0.07901424914598465,
-0.05573021247982979,
-0.393858402967453,
0.08159952610731125,
0.3363564610481262,
0.09103270620107651,
0.14534589648246765,
0.009826421737670898,
-0.03466163948178291,
0.1117328405380249,
0.05705517530441284,
0.20795074105262756,
-0.10513768345117569,
-0.059062205255031586,
0.023486975580453873,
0.15832190215587616,
-0.21244627237319946,
-0.106357142329216,
-0.04757754132151604,
-0.007340504787862301,
-0.16042973101139069,
0.2504926323890686,
0.36052143573760986,
0.080164834856987,
-0.01755012571811676,
0.041823610663414,
0.30674752593040466,
-0.12816044688224792,
0.3053992986679077,
0.3543406128883362,
0.11227226257324219,
-0.19181345403194427,
-0.16343829035758972,
0.3312186002731323,
0.18813303112983704,
-0.15218974649906158,
-0.17444893717765808,
0.408315509557724,
0.6499539613723755,
0.3493705987930298,
-0.5603503584861755,
-0.27893462777137756,
-0.23835472762584686,
0.6232470273971558,
-0.0590774267911911,
0.4289218783378601,
0.38451626896858215,
0.21221086382865906,
0.31610673666000366,
-0.13665179908275604,
-0.1427985429763794,
0.3982590138912201,
0.09055917710065842,
0.03552117571234703,
0.08935648202896118,
-0.18091213703155518,
0.10884518921375275,
0.06977719068527222,
0.13558708131313324,
0.37126219272613525,
-0.15991103649139404,
0.3642851710319519,
0.1624094396829605,
0.2602539360523224,
0.5718257427215576,
0.2083938717842102,
0.46636417508125305,
-0.15894797444343567,
-0.222206249833107,
0.20365238189697266,
0.2428525686264038,
0.11754500865936279,
-0.14864453673362732,
-0.05766378715634346,
0.11165488511323929,
-0.34513625502586365,
-0.0397503636777401,
0.02430230937898159,
0.08403859287500381,
-0.25720328092575073,
0.48858410120010376,
0.2748909294605255,
-0.1898321658372879,
0.06644217669963837,
0.004417117685079575,
-0.05314299836754799,
0.1279195100069046,
0.1066855639219284,
0.21259111166000366,
-0.1347331702709198,
-0.23573502898216248,
0.3795200288295746,
-0.40408843755722046,
0.009247858077287674,
-0.15636348724365234,
-0.01641232520341873,
0.02939334139227867,
0.3202226161956787,
-0.2720813453197479,
0.07905970513820648,
-0.003983788192272186,
0.046587154269218445,
-0.22350534796714783,
0.21134692430496216,
0.2501465082168579,
-0.3231528103351593,
-0.27145910263061523,
-0.25969934463500977,
-0.19678030908107758,
-0.21272322535514832,
-0.22712555527687073,
0.07632915675640106,
0.16946236789226532,
0.25538745522499084,
0.06601285189390182,
0.2566123604774475,
0.06949304789304733,
-0.10095750540494919,
0.06154283881187439,
0.0652923583984375,
-0.44694265723228455,
0.04307067021727562,
0.3881989121437073,
0.24351194500923157,
0.13378268480300903,
-0.4015810191631317,
-0.399672269821167,
-0.00015399139374494553,
-0.021938011050224304,
-0.1888749897480011,
0.20177951455116272,
0.04502159729599953,
0.6890192031860352,
0.6287797093391418,
-0.11400456726551056,
-0.30019643902778625,
-0.05391419306397438,
-0.2284242957830429,
-0.011899452656507492,
-0.08301010727882385,
0.013651478104293346,
-0.19529977440834045,
0.4423671066761017,
0.19346685707569122,
-0.35213956236839294,
0.2612166404724121,
-0.2566981017589569,
-0.2904359996318817,
-0.18764451146125793,
0.1607290804386139,
-0.3335031569004059,
-0.06644271314144135,
0.019096694886684418,
0.43395841121673584,
-0.02291231043636799,
0.20966506004333496,
0.0817558765411377,
0.08185422420501709,
-0.3381940722465515,
0.05306825041770935,
0.30169227719306946,
0.312716543674469,
-0.2746133506298065,
0.5506640672683716,
0.04935663193464279,
0.08168366551399231,
0.07999920099973679,
-0.256817102432251,
0.2503430247306824,
0.13342297077178955,
-0.31041207909584045,
0.02690216153860092,
0.22445757687091827,
0.02967616356909275,
-0.060456763952970505,
0.05018095299601555,
0.2297375500202179,
0.4168798625469208,
0.06957101076841354,
-0.45290759205818176,
-0.22046330571174622
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Note that I'm confirming that with the current master branch of dataset, deleting extracted files (without deleting the arrow cache file) lead to **re-extracting** these files when reloading the dataset instead of directly loading the arrow cache file. | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 38 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
Note that I'm confirming that with the current master branch of dataset, deleting extracted files (without deleting the arrow cache file) lead to **re-extracting** these files when reloading the dataset instead of directly loading the arrow cache file. | [
-0.16383466124534607,
0.03803069889545441,
-0.1447685956954956,
0.17809289693832397,
-0.15926878154277802,
0.23571428656578064,
-0.1746567189693451,
0.28733694553375244,
0.12659096717834473,
0.15852224826812744,
0.06744397431612015,
0.5160759687423706,
-0.22754135727882385,
-0.06908750534057617,
-0.20187139511108398,
0.06880202144384384,
-0.24983876943588257,
0.29927030205726624,
-0.12158416211605072,
0.1475563496351242,
-0.1509248912334442,
0.020951759070158005,
0.06885458528995514,
-0.17751412093639374,
-0.001651216996833682,
-0.39662590622901917,
0.2204260230064392,
-0.21673521399497986,
-0.1347009837627411,
-0.4136332869529724,
0.06340071558952332,
0.5557295083999634,
0.26556816697120667,
0.18643400073051453,
-0.00011691272084135562,
-0.011352885514497757,
0.29782503843307495,
0.10522525012493134,
-0.46204373240470886,
0.19280178844928741,
-0.27152448892593384,
-0.11854860931634903,
0.2721542418003082,
-0.11764423549175262,
0.23779574036598206,
-0.42014482617378235,
-0.20901305973529816,
-0.6489426493644714,
0.47929757833480835,
-0.1898259073495865,
0.14784666895866394,
0.032926637679338455,
-0.5153906345367432,
0.061588943004608154,
0.25727662444114685,
0.3319443464279175,
-0.09819253534078598,
0.003939456306397915,
0.3674485385417938,
0.08879102766513824,
0.17937299609184265,
0.3715205490589142,
-0.034001484513282776,
-0.2261725515127182,
0.3655919134616852,
-0.016138780862092972,
-0.17322608828544617,
-0.23170095682144165,
0.30979305505752563,
0.044382523745298386,
0.6939403414726257,
-0.4388233423233032,
-0.1589537262916565,
-0.39095333218574524,
0.14216560125350952,
-0.5054193735122681,
0.11756338179111481,
0.1817193627357483,
0.01145908236503601,
0.24223391711711884,
-0.1476079523563385,
-0.443000853061676,
-0.3262474238872528,
-0.19662122428417206,
0.5953670740127563,
-0.42009738087654114,
-0.0878203883767128,
-0.12669405341148376,
0.4859715700149536,
0.08394211530685425,
0.2252022624015808,
-0.17928588390350342,
-0.3020438849925995,
0.32213014364242554,
-0.10049429535865784,
-0.19479095935821533,
-0.33180373907089233,
-0.2837393879890442,
0.16330844163894653,
0.19714407622814178,
0.392190158367157,
0.015577621757984161,
0.15899018943309784,
-0.0024583861231803894,
0.36501240730285645,
0.32531747221946716,
0.05674862116575241,
-0.015444524586200714,
0.19550944864749908,
0.1219283938407898,
0.09446671605110168,
-0.06264080107212067,
0.05644196644425392,
-0.036169469356536865,
0.30555739998817444,
-0.022462163120508194,
0.032076410949230194,
-0.1643722504377365,
-0.07733721286058426,
0.06615515798330307,
0.19198071956634521,
-0.18180963397026062,
0.05140836909413338,
0.19190466403961182,
0.19456210732460022,
0.10841454565525055,
0.012029681354761124,
0.23961442708969116,
0.0325864776968956,
-0.3729589879512787,
0.06241561844944954,
0.08423766493797302,
-0.31524765491485596,
-0.21676969528198242,
0.42512020468711853,
-0.069252610206604,
-0.06774422526359558,
-0.07764244824647903,
-0.33259642124176025,
0.12386830151081085,
0.5096791386604309,
-0.09293761849403381,
0.27492985129356384,
0.3011265695095062,
-0.1944490671157837,
-0.21141943335533142,
-0.2887326776981354,
0.011574476957321167,
-0.14620532095432281,
0.471872478723526,
-0.08362635225057602,
-0.24052836000919342,
-0.07928857952356339,
0.1582891196012497,
0.09983371198177338,
0.25392961502075195,
-0.6136036515235901,
0.1032644584774971,
0.10204242169857025,
0.0629066526889801,
0.0064156800508499146,
0.27274301648139954,
-0.010928548872470856,
-0.07116550207138062,
-0.25002843141555786,
0.29747578501701355,
-0.7026981115341187,
-0.015114471316337585,
-0.3810780346393585,
-0.2615411877632141,
0.14419853687286377,
0.13600203394889832,
-0.11410053819417953,
0.2153523564338684,
-0.19310957193374634,
0.15850965678691864,
0.28107210993766785,
-0.12776385247707367,
-0.44949644804000854,
0.13856421411037445,
0.03167078644037247,
0.22164508700370789,
0.2527034878730774,
0.25994402170181274,
0.4064205586910248,
-0.005348175298422575,
-0.07470488548278809,
0.2618269622325897,
0.007222404703497887,
-0.0818890929222107,
-0.31014975905418396,
-0.3716855049133301,
0.0091331135481596,
0.2902944087982178,
-0.046423789113759995,
0.03339597210288048,
0.2457735240459442,
-0.011613480746746063,
0.17606374621391296,
0.13778801262378693,
0.1765558272600174,
0.15648844838142395,
0.11293631047010422,
-0.2869827151298523,
-0.24305693805217743,
0.11736331135034561,
-0.6472296118736267,
0.051557257771492004,
-0.43027740716934204,
-0.3367311656475067,
-0.2597641944885254,
-0.4017221927642822,
0.10697945952415466,
0.0003136172890663147,
-0.2254597693681717,
0.1922653317451477,
0.09042826294898987,
-0.045862361788749695,
0.1582459658384323,
-0.06656326353549957,
-0.39130207896232605,
0.0469881147146225,
-0.06503818929195404,
0.020747927948832512,
-0.47979483008384705,
0.06953084468841553,
0.17147459089756012,
-0.225521981716156,
0.030006542801856995,
0.037717919796705246,
-0.3066353499889374,
-0.43731603026390076,
-0.13676941394805908,
0.2760286033153534,
0.26771479845046997,
0.27727147936820984,
0.25838175415992737,
0.2232234627008438,
0.17235718667507172,
0.15178024768829346,
0.09930941462516785,
0.1439182162284851,
-0.019357960671186447,
0.10480701178312302,
-0.4482199251651764,
0.38629382848739624,
-0.18300798535346985,
-0.028416596353054047,
-0.1669946312904358,
-0.3487371504306793,
0.27056679129600525,
-0.08068417757749557,
0.09486540406942368,
-0.601431131362915,
-0.03673655167222023,
0.33016881346702576,
-0.05892502889037132,
0.07945653051137924,
0.0906829982995987,
0.02664528787136078,
0.0612906888127327,
-0.04236634448170662,
-0.11621537059545517,
0.34067580103874207,
-0.06976097077131271,
-0.21004143357276917,
0.11707627028226852,
0.4911107122898102,
0.35669398307800293,
0.22141358256340027,
-0.08467169106006622,
-0.1309577375650406,
0.44060203433036804,
0.0044326093047857285,
0.14526782929897308,
0.04067523032426834,
0.0857577994465828,
0.30855312943458557,
0.09131421893835068,
-0.011007639579474926,
-0.25080978870391846,
-0.06625619530677795,
0.10402124375104904,
0.2441476732492447,
0.23360252380371094,
-0.2658807635307312,
-0.33045026659965515,
-0.3818596303462982,
0.48729071021080017,
0.332680344581604,
0.25341805815696716,
-0.04122094810009003,
0.45352232456207275,
0.12117147445678711,
-0.4766841530799866,
0.12499208748340607,
-0.06676549464464188,
0.6247704029083252,
-0.10102897137403488,
-0.2049592137336731,
-0.3821294903755188,
-0.21683993935585022,
0.1266384720802307,
0.05643152818083763,
0.3907304108142853,
-0.06460068374872208,
0.4973319470882416,
0.11805135756731033,
0.1314409077167511,
-0.16481243073940277,
-0.004127912223339081,
0.08187612891197205,
0.31103992462158203,
-0.05710750073194504,
0.13391880691051483,
0.14532917737960815,
-0.0676511824131012,
0.12356474995613098,
-0.21366488933563232,
-0.3039455711841583,
-0.15679778158664703,
0.1779380440711975,
0.0637529268860817,
-0.00449329661205411,
-0.24458760023117065,
-0.1115916445851326,
-0.16384358704090118,
-0.43494102358818054,
0.2674320936203003,
-0.05109642446041107,
0.02392902597784996,
0.10862591117620468,
0.17426542937755585,
-0.017503852024674416,
-0.0008389297872781754,
0.009124881587922573,
-0.0748913511633873,
-0.5851693749427795,
0.1650400608778,
-0.21321861445903778,
0.023019012063741684,
0.23579195141792297,
0.037463150918483734,
0.02515791915357113,
0.30564308166503906,
-0.4097910523414612,
0.027887355536222458,
-0.06115792691707611,
0.17914898693561554,
-0.2906409502029419,
-0.11866717040538788,
0.20300626754760742,
0.2551264762878418,
-0.12128283828496933,
0.03410863131284714,
0.12489433586597443,
0.2755829989910126,
0.32002922892570496,
0.03232690691947937,
0.034240156412124634,
0.2859160304069519,
0.16407839953899384,
0.3512728810310364,
-0.18796062469482422,
0.05121567100286484,
0.29936569929122925,
0.3690428137779236,
0.4838578999042511,
-0.25641199946403503,
0.24886754155158997,
-0.3840314745903015,
0.01999698579311371,
-0.040489643812179565,
0.15241706371307373,
0.04078545421361923,
-0.14639213681221008,
0.21615684032440186,
-0.23632825911045074,
-0.08813975751399994,
-0.17929697036743164,
0.2731652855873108,
-0.2889282703399658,
0.040207698941230774,
0.0800962746143341,
-0.2684658467769623,
-0.01850268244743347,
-0.023389622569084167,
0.1533515751361847,
0.07738294452428818,
0.3878052234649658,
-0.09523394703865051,
-0.2750813663005829,
-0.026789670810103416,
-0.2655264735221863,
0.30231815576553345,
-0.24603162705898285,
-0.13320466876029968,
-0.04756595939397812,
0.005437970161437988,
0.14726637303829193,
0.24686093628406525,
0.3770068287849426,
-0.16159455478191376,
0.0034667998552322388,
-0.13444958627223969,
0.04936246573925018,
-0.3254888355731964,
0.03855461999773979,
-0.011381510645151138,
0.06590543687343597,
-0.024818122386932373,
0.3186228573322296,
-0.28914308547973633,
-0.20058177411556244,
-0.13540692627429962,
0.565841794013977,
-0.2458694726228714,
-0.08191508799791336,
0.004275757819414139,
-0.22070759534835815,
-0.4849286377429962,
0.07907707244157791,
0.026117702946066856,
-0.11660302430391312,
0.1459047496318817,
-0.28630515933036804,
-0.12784980237483978,
-0.2963279187679291,
0.08318567276000977,
0.09187041223049164,
0.5984152555465698,
-0.2050710767507553,
0.1636437624692917,
-0.06101248413324356,
0.14004868268966675,
0.6094427108764648,
0.3160106837749481,
-0.10910668969154358,
-0.008836410939693451,
0.034518688917160034,
-0.369634747505188,
0.14171192049980164,
0.11273752152919769,
-0.1866816133260727,
0.2563525140285492,
-0.19971805810928345,
0.5040168166160583,
0.009394427761435509,
0.002709970809519291,
-0.2488676905632019,
-0.2839723527431488,
-0.06844036281108856,
-0.2279616892337799,
0.10804948210716248,
0.042394448071718216,
-0.15456180274486542,
0.4536226987838745,
-0.10007300972938538,
-0.236953005194664,
0.47828245162963867,
0.11140231788158417,
1.049074649810791,
-0.07758376002311707,
0.0356171689927578,
-0.16096743941307068,
-0.2834869623184204,
0.32611945271492004,
-0.5598509311676025,
0.08430340886116028,
0.012318868190050125,
-0.12019205093383789,
0.11320115625858307,
-0.034306809306144714,
-0.00237882137298584,
0.2772352695465088,
-0.23474977910518646,
0.07955490797758102,
-0.3114013373851776,
-0.12003464996814728,
-0.24714727699756622,
0.43069010972976685,
-0.13019795715808868,
-0.28822192549705505,
-0.07623019069433212,
0.03502247482538223,
0.08731789886951447,
-0.18881994485855103,
-0.2189512550830841,
-0.07814127206802368,
0.3835896849632263,
-0.03891574218869209,
0.23994837701320648,
-0.08207377046346664,
-0.2556138336658478,
0.3634471297264099,
-0.1974615454673767,
-0.13240675628185272,
-0.15016242861747742,
0.0025839321315288544,
-0.1674363762140274,
0.048540569841861725,
0.12681756913661957,
0.07211732864379883,
0.07881314307451248,
0.01021245401352644,
-0.3229542076587677,
0.01760771870613098,
-0.08162321150302887,
-0.1278710961341858,
0.005741789937019348,
0.08712838590145111,
-0.2665790617465973,
-0.3794737458229065,
0.2276146411895752,
0.14662212133407593,
-0.15347714722156525,
0.01737213134765625,
-0.2547750174999237,
-0.1255756914615631,
-0.47910889983177185,
0.04894096031785011,
0.12537135183811188,
0.2693445086479187,
-0.12796376645565033,
0.2854363024234772,
-0.17087997496128082,
-0.2049614042043686,
-0.22086311876773834,
-0.11515618115663528,
0.2870611548423767,
-0.10199751704931259,
0.33089447021484375,
-0.15263201296329498,
-0.19449491798877716,
-0.48608750104904175,
0.006277807056903839,
0.08983807265758514,
-0.43113377690315247,
0.4288218319416046,
0.00833126064389944,
-0.15974953770637512,
0.13438721001148224,
-0.07853397727012634,
-0.004922058433294296,
-0.00238046795129776,
-0.1550837755203247,
-0.1179555356502533,
-0.47711655497550964,
0.25843000411987305,
0.16686660051345825,
0.5414474010467529,
0.05175994336605072,
-0.04771781340241432,
-0.15015827119350433,
0.12489823997020721,
-0.2867147922515869,
0.20424297451972961,
0.2524324357509613,
0.16709330677986145,
-0.05628974735736847,
0.30519235134124756,
0.11983492225408554,
-0.31329476833343506,
-0.051785439252853394,
0.06298188865184784,
-0.13107289373874664,
-0.20620882511138916,
-0.07970049977302551,
0.08791952580213547,
-0.1630658507347107,
-0.08994965255260468,
-0.17486828565597534,
-0.17788076400756836,
0.028861969709396362,
-0.2104351967573166,
0.2703491449356079,
-0.19277939200401306,
-0.15309756994247437,
-0.15478700399398804,
0.44222742319107056,
-0.09786037355661392,
-0.12741249799728394,
0.15008562803268433,
-0.04653097689151764,
0.30003416538238525,
-0.044694092124700546,
0.062178995460271835,
-0.0825495570898056,
-0.08361411094665527,
-0.22505055367946625,
0.10149404406547546,
0.2650090157985687,
0.07711653411388397,
-0.019548721611499786,
-0.027510561048984528,
-0.12506672739982605,
0.15177732706069946,
0.1358238011598587,
0.2690433859825134,
-0.04627851024270058,
-0.17909224331378937,
-0.039174146950244904,
0.23563137650489807,
-0.2341136932373047,
-0.13926202058792114,
-0.025732945650815964,
0.054671287536621094,
-0.17031964659690857,
0.24598228931427002,
0.3385912775993347,
0.06348592042922974,
0.056709133088588715,
0.13113805651664734,
0.26759499311447144,
-0.24231348931789398,
0.38431188464164734,
0.36347219347953796,
0.07470265030860901,
-0.24427355825901031,
-0.0652986541390419,
0.31883686780929565,
0.16028110682964325,
0.03785889595746994,
-0.10421549528837204,
0.4175523519515991,
0.6066229343414307,
0.3013852834701538,
-0.48639020323753357,
-0.3089413344860077,
-0.20991338789463043,
0.579369068145752,
-0.0945487767457962,
0.4008529782295227,
0.4404425323009491,
0.16705183684825897,
0.32271960377693176,
-0.3564128279685974,
-0.2688576877117157,
0.3678476810455322,
0.0567992702126503,
0.056950923055410385,
0.032485976815223694,
-0.11354263871908188,
0.15987072885036469,
0.12404628098011017,
0.10776407271623611,
0.33575987815856934,
-0.06218579411506653,
0.28759658336639404,
0.09811636805534363,
0.15082058310508728,
0.5758998990058899,
0.17380109429359436,
0.3641436994075775,
-0.13658148050308228,
-0.15990251302719116,
0.19969773292541504,
0.21289902925491333,
0.08413881063461304,
-0.03698516637086868,
-0.01550692692399025,
0.15016227960586548,
-0.32227057218551636,
0.060453467071056366,
0.06881318986415863,
0.03569517284631729,
-0.2824094295501709,
0.43103617429733276,
0.219858318567276,
-0.2790057361125946,
0.012440759688615799,
0.10588331520557404,
-0.09512807428836823,
0.16213694214820862,
0.09952310472726822,
0.18848316371440887,
-0.0682632327079773,
-0.20394229888916016,
0.3901366889476776,
-0.44408267736434937,
0.06192168593406677,
-0.13760101795196533,
-0.09181170165538788,
-0.04957248270511627,
0.3588746190071106,
-0.3027018904685974,
0.00671231746673584,
-0.14203983545303345,
0.09058678895235062,
-0.1946093887090683,
0.34902462363243103,
0.18697084486484528,
-0.3395480513572693,
-0.2126801759004593,
-0.3154650032520294,
-0.337893545627594,
-0.18929171562194824,
-0.2675836980342865,
0.013794956728816032,
0.2698313295841217,
0.26742371916770935,
-0.019809618592262268,
0.2280033528804779,
0.26776832342147827,
-0.04806004464626312,
-0.10250740498304367,
0.02511744573712349,
-0.5011216998100281,
0.12118224799633026,
0.32261890172958374,
0.2113984227180481,
0.1301867812871933,
-0.45621606707572937,
-0.21588240563869476,
-0.013515886850655079,
0.007537730038166046,
-0.14071105420589447,
0.21233084797859192,
0.13694654405117035,
0.6466162204742432,
0.6635487079620361,
-0.0839906707406044,
-0.31192582845687866,
-0.07297749817371368,
-0.17536824941635132,
-0.11988663673400879,
-0.1471249759197235,
-0.07379628717899323,
-0.10963935405015945,
0.4317803978919983,
0.29412272572517395,
-0.29699182510375977,
0.25748175382614136,
-0.2406551092863083,
-0.208890900015831,
-0.17870599031448364,
0.2433127760887146,
-0.25136494636535645,
0.05997365713119507,
0.046966470777988434,
0.4676736891269684,
-0.05154721066355705,
0.18821409344673157,
0.07399460673332214,
0.11811307072639465,
-0.3579018712043762,
-0.06016242504119873,
0.3388690948486328,
0.2894139587879181,
-0.3498057425022125,
0.4524712562561035,
0.14525485038757324,
0.09759342670440674,
-0.1375298798084259,
-0.29472583532333374,
0.25656160712242126,
0.10068845003843307,
-0.21679231524467468,
-0.025971021503210068,
0.24208876490592957,
-0.04881325736641884,
-0.028711942955851555,
0.07572244107723236,
0.39282646775245667,
0.32392457127571106,
-0.07213878631591797,
-0.40511569380760193,
-0.2832625210285187
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | Hi ! That's weird, it doesn't do that on my side (tested on master on my laptop by deleting the `extracted` folder in the download cache directory). You tested with one of the files at https://huggingface.co/datasets/thomwolf/github-python that you have locally ? | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 41 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
Hi ! That's weird, it doesn't do that on my side (tested on master on my laptop by deleting the `extracted` folder in the download cache directory). You tested with one of the files at https://huggingface.co/datasets/thomwolf/github-python that you have locally ? | [
-0.03325652331113815,
-0.06173117086291313,
-0.15180520713329315,
0.23214004933834076,
-0.07944191992282867,
0.1899539828300476,
-0.1519191712141037,
0.3226892352104187,
0.2679447531700134,
0.18591129779815674,
-0.00866082776337862,
0.4785895347595215,
-0.2064817100763321,
0.019821206107735634,
-0.12495547533035278,
0.019379835575819016,
-0.26122045516967773,
0.26731076836586,
-0.03528308868408203,
0.10239571332931519,
-0.1649816632270813,
0.16154782474040985,
0.030711807310581207,
-0.21431665122509003,
-0.0014288641978055239,
-0.28066322207450867,
0.17738696932792664,
-0.09008320420980453,
-0.23682163655757904,
-0.41202545166015625,
0.09119487553834915,
0.4586050510406494,
0.22785067558288574,
0.284208744764328,
-0.0001189412287203595,
0.02027645707130432,
0.32181864976882935,
0.06642704457044601,
-0.341610848903656,
0.09655606746673584,
-0.1090630516409874,
-0.25283417105674744,
0.3365180194377899,
-0.2395070195198059,
0.1118236854672432,
-0.2765807509422302,
-0.2922463119029999,
-0.5912129282951355,
0.5315220355987549,
-0.09525731205940247,
0.12675847113132477,
0.14667145907878876,
-0.35595861077308655,
0.2192573845386505,
0.2747633457183838,
0.2166806310415268,
-0.09886447340250015,
0.053727369755506516,
0.3152770400047302,
0.06759878993034363,
0.28494933247566223,
0.3909699618816376,
-0.12131725996732712,
-0.10548695921897888,
0.3051479756832123,
0.053714703768491745,
-0.1651780903339386,
-0.4498274028301239,
0.263142466545105,
-0.03117874264717102,
0.5653119087219238,
-0.4969916045665741,
-0.21954239904880524,
-0.397709459066391,
0.020581167191267014,
-0.602556049823761,
0.0792897492647171,
0.35457345843315125,
-0.08755345642566681,
0.23048868775367737,
-0.2468702793121338,
-0.3859894871711731,
-0.30758947134017944,
-0.08355292677879333,
0.4763788878917694,
-0.26208576560020447,
-0.1824118047952652,
-0.10666381567716599,
0.4677405059337616,
0.17958199977874756,
0.04245303198695183,
-0.22894629836082458,
-0.25212836265563965,
0.3555208742618561,
-0.1274116039276123,
-0.22249549627304077,
-0.20886465907096863,
-0.3137005567550659,
0.2307111918926239,
0.26990652084350586,
0.2709549069404602,
0.015721626579761505,
0.10453303158283234,
-0.030551932752132416,
0.37593409419059753,
0.41529345512390137,
-0.061114780604839325,
0.12974658608436584,
0.3189988136291504,
0.10175927728414536,
0.04948439076542854,
-0.07571513950824738,
0.10971665382385254,
-0.024488676339387894,
0.3162861764431,
-0.17408862709999084,
0.1749759167432785,
-0.1531495600938797,
-0.09122368693351746,
0.16153854131698608,
0.13619878888130188,
-0.12647725641727448,
0.043321289122104645,
0.29087913036346436,
0.030466187745332718,
0.08705908060073853,
0.06710831820964813,
0.320992648601532,
-0.056101277470588684,
-0.1605154573917389,
0.07705993205308914,
0.1735166758298874,
-0.24922630190849304,
-0.2693282663822174,
0.4215799570083618,
-0.12490402162075043,
0.08871444314718246,
-0.04357246309518814,
-0.21626265347003937,
-0.04131455719470978,
0.5175759792327881,
-0.11957241594791412,
0.3411773145198822,
0.4210415780544281,
-0.07458782196044922,
-0.11498482525348663,
-0.17227861285209656,
-0.16577371954917908,
-0.17437908053398132,
0.46092507243156433,
-0.14981210231781006,
-0.2387833595275879,
-0.12822209298610687,
0.15674126148223877,
-0.0032494887709617615,
0.24528683722019196,
-0.6246495842933655,
0.0005453377962112427,
0.151932954788208,
0.21350663900375366,
0.08486145734786987,
0.22636142373085022,
0.04966114088892937,
-0.16972599923610687,
-0.157118022441864,
0.33472728729248047,
-0.4668126702308655,
-0.03338499367237091,
-0.20987002551555634,
-0.14741022884845734,
0.18472759425640106,
0.2946436107158661,
-0.09122616797685623,
0.24073049426078796,
-0.20205466449260712,
0.11876431107521057,
0.3351450562477112,
-0.2505326569080353,
-0.5275449752807617,
0.22019854187965393,
0.06431685388088226,
0.3103696405887604,
0.2630608379840851,
0.23854336142539978,
0.30522364377975464,
0.09468317776918411,
0.04003151133656502,
0.33421391248703003,
0.04026605188846588,
0.05798543244600296,
-0.4034208655357361,
-0.2949006259441376,
0.044560756534338,
0.2469552904367447,
-0.04131938889622688,
0.10118454694747925,
0.12817174196243286,
-0.10587181150913239,
0.3076835870742798,
0.041146498173475266,
0.13623356819152832,
0.26702407002449036,
0.17707833647727966,
-0.26037853956222534,
-0.1623840034008026,
0.018359534442424774,
-0.47702860832214355,
0.0945219025015831,
-0.40801239013671875,
-0.2634159326553345,
-0.36836153268814087,
-0.38692593574523926,
0.004312014207243919,
0.08109384030103683,
-0.3423132300376892,
0.061936914920806885,
0.058709971606731415,
-0.1631043255329132,
0.3893428146839142,
0.0027060993015766144,
-0.3460029661655426,
0.15101586282253265,
0.020283328369259834,
0.10224427282810211,
-0.49060457944869995,
0.19226771593093872,
0.18864282965660095,
-0.2518172860145569,
-0.04091285169124603,
-0.01522834599018097,
-0.24884247779846191,
-0.4605018198490143,
-0.15496796369552612,
0.24935373663902283,
0.29993751645088196,
0.1253158003091812,
0.20679789781570435,
0.22356653213500977,
0.16702276468276978,
0.2181144654750824,
0.17721715569496155,
0.2222541719675064,
0.061759740114212036,
0.10059873014688492,
-0.27818816900253296,
0.44789135456085205,
-0.1885371059179306,
-0.02912699431180954,
-0.14883288741111755,
-0.376620352268219,
0.3021795153617859,
-0.07558280229568481,
-0.05410720407962799,
-0.47026118636131287,
-0.030246134847402573,
0.3676837086677551,
-0.0016349926590919495,
-0.02021957002580166,
-0.02539180964231491,
-0.047281958162784576,
0.15453848242759705,
-0.049939364194869995,
-0.1253129243850708,
0.40555378794670105,
-0.1499510407447815,
-0.1962158977985382,
-0.014080004766583443,
0.4155004024505615,
0.4606250524520874,
0.1591745913028717,
-0.06780649721622467,
-0.017317162826657295,
0.3735673427581787,
0.015571359544992447,
0.1984342634677887,
0.07100795954465866,
-0.04625839367508888,
0.3129606246948242,
0.20864583551883698,
-0.03255631774663925,
-0.2569279074668884,
0.020820893347263336,
-0.030083689838647842,
0.29177650809288025,
0.1879807412624359,
-0.09842073172330856,
-0.3195224106311798,
-0.3765309751033783,
0.4093852937221527,
0.18575479090213776,
0.18454614281654358,
-0.11933243274688721,
0.3986591696739197,
0.1807384341955185,
-0.3674205243587494,
0.08149228990077972,
0.03442220389842987,
0.3880401849746704,
-0.00169399194419384,
-0.3106749355792999,
-0.2539879083633423,
-0.14662854373455048,
0.18870511651039124,
-0.001991819590330124,
0.26630300283432007,
-0.16141894459724426,
0.5131771564483643,
-0.02225416898727417,
-0.0057917386293411255,
-0.1705053150653839,
0.020989105105400085,
0.08564041554927826,
0.24870941042900085,
0.06926578283309937,
0.11285613477230072,
0.24188852310180664,
0.019284825772047043,
0.1607370376586914,
-0.09564792364835739,
-0.2883739471435547,
-0.13499020040035248,
0.19015297293663025,
0.13943281769752502,
0.025920240208506584,
-0.2716074585914612,
-0.10412455350160599,
-0.27244073152542114,
-0.4422224164009094,
0.35005849599838257,
0.1526200771331787,
0.09991200268268585,
0.1743973195552826,
0.21716362237930298,
-0.025561731308698654,
0.14823156595230103,
0.08026597648859024,
-0.12247999757528305,
-0.6555262207984924,
0.2202029675245285,
-0.23324666917324066,
-0.04623949155211449,
0.3175826072692871,
0.03875400871038437,
0.0010779090225696564,
0.25961941480636597,
-0.4103814959526062,
-0.1555810123682022,
-0.19320125877857208,
0.24532189965248108,
-0.18020039796829224,
0.13677279651165009,
0.17678388953208923,
0.14481543004512787,
-0.07559175789356232,
0.03924458473920822,
0.04607768729329109,
0.10476259887218475,
0.343406617641449,
-0.004457391798496246,
0.10572593659162521,
0.3205357789993286,
0.11073680222034454,
0.47765064239501953,
-0.04863175004720688,
0.08833833783864975,
0.4071294069290161,
0.25209465622901917,
0.4920269846916199,
-0.3374050557613373,
0.12588322162628174,
-0.4846448600292206,
-0.0934860110282898,
-0.08548847585916519,
0.13004809617996216,
0.15596449375152588,
-0.1521030217409134,
0.13950985670089722,
-0.25210464000701904,
-0.16738557815551758,
-0.1934485286474228,
0.266827791929245,
-0.23442548513412476,
-0.025991134345531464,
0.09392759203910828,
-0.16950032114982605,
-0.083717942237854,
-0.07947938144207001,
0.024183548986911774,
0.13828504085540771,
0.2804591655731201,
-0.06284847855567932,
-0.17513605952262878,
-0.13190588355064392,
-0.44792628288269043,
0.3159884214401245,
-0.23350480198860168,
-0.2515759766101837,
0.11238966882228851,
-0.01936395652592182,
0.2216552048921585,
0.13527655601501465,
0.4183785915374756,
-0.14904917776584625,
-0.096663698554039,
-0.07559224963188171,
-0.11375480890274048,
-0.318127304315567,
0.0026897601783275604,
-0.021321551874279976,
0.18507865071296692,
0.061839956790208817,
0.28719058632850647,
-0.27886995673179626,
-0.25357237458229065,
-0.10043804347515106,
0.6766911745071411,
-0.2556503117084503,
-0.06285443156957626,
-0.23580752313137054,
-0.40805190801620483,
-0.604032039642334,
0.0970635935664177,
0.1638956516981125,
-0.10489071905612946,
0.07506832480430603,
-0.2510489523410797,
-0.0694817528128624,
-0.3054729402065277,
0.027175553143024445,
0.06159820035099983,
0.6772763729095459,
-0.2699929475784302,
0.1834552139043808,
-0.12313434481620789,
0.09921558946371078,
0.41164150834083557,
0.48251938819885254,
-0.06741085648536682,
-0.036738842725753784,
-0.019238542765378952,
-0.22858361899852753,
0.08782663196325302,
0.18019922077655792,
-0.12166469544172287,
0.20070989429950714,
-0.31594592332839966,
0.6137955784797668,
-0.025560036301612854,
-0.0278346948325634,
-0.07387345284223557,
-0.2462100237607956,
-0.1315937489271164,
-0.3758293390274048,
0.12421605736017227,
0.01242690160870552,
-0.08102138340473175,
0.47366368770599365,
-0.15424777567386627,
-0.22749175131320953,
0.46165037155151367,
-0.07324395328760147,
1.1378896236419678,
-0.057313479483127594,
0.1218128502368927,
-0.05174188315868378,
-0.3184499740600586,
0.33690568804740906,
-0.6598301529884338,
0.1584886759519577,
-0.11123184859752655,
-0.06817945092916489,
0.12697385251522064,
-0.05537015572190285,
-0.024061337113380432,
0.13341335952281952,
-0.24228039383888245,
0.2128768116235733,
-0.4090477228164673,
-0.21524226665496826,
-0.32385602593421936,
0.4293534457683563,
-0.10488429665565491,
-0.27679944038391113,
-0.2988874316215515,
0.047116078436374664,
0.12152393162250519,
0.04287126287817955,
-0.17238911986351013,
-0.07762254774570465,
0.317571759223938,
-0.14178255200386047,
0.11994491517543793,
-0.06929763406515121,
-0.13890838623046875,
0.371584415435791,
-0.1808595508337021,
-0.15897710621356964,
-0.3154520094394684,
0.02539125829935074,
-0.04091285169124603,
0.10761865973472595,
0.13791602849960327,
-0.004209235310554504,
-0.019211791455745697,
0.020740367472171783,
-0.3300173580646515,
0.006679133512079716,
-0.062432728707790375,
-0.1476428508758545,
-0.03753620386123657,
0.158697247505188,
-0.3073331415653229,
-0.4090110659599304,
0.2464350163936615,
0.26791566610336304,
-0.20212648808956146,
-0.04825197905302048,
-0.26961371302604675,
-0.12425360083580017,
-0.3961201608181,
0.028507869690656662,
0.11120927333831787,
0.39537763595581055,
-0.28961294889450073,
0.4057910144329071,
-0.2678992450237274,
-0.3382914066314697,
-0.2832977771759033,
-0.09366605430841446,
0.34417057037353516,
-0.018630370497703552,
0.30689775943756104,
-0.13570082187652588,
-0.24767248332500458,
-0.4111403822898865,
-0.026592914015054703,
-0.02542078122496605,
-0.36148402094841003,
0.5023366212844849,
0.07104340195655823,
-0.05420006811618805,
0.03575160726904869,
-0.04586130008101463,
-0.07853611558675766,
-0.004988491535186768,
-0.19251395761966705,
-0.09155115485191345,
-0.4491458833217621,
0.11110740900039673,
0.29081520438194275,
0.5239836573600769,
0.12693336606025696,
0.06260630488395691,
-0.052387479692697525,
0.12280014157295227,
-0.26100078225135803,
0.24964407086372375,
0.12280070036649704,
0.10145658254623413,
-0.0038100723177194595,
0.233769953250885,
0.12164995074272156,
-0.30093470215797424,
-0.06060197204351425,
0.07559414207935333,
-0.15733669698238373,
-0.20633912086486816,
-0.09897112846374512,
0.13120904564857483,
-0.14490032196044922,
-0.12764742970466614,
-0.07396066933870316,
-0.1366322636604309,
0.13127532601356506,
-0.2527082562446594,
0.410895437002182,
-0.07778002321720123,
-0.06810523569583893,
-0.11617585271596909,
0.429115891456604,
-0.13653680682182312,
-0.024872250854969025,
0.10991732031106949,
-0.191246896982193,
0.4337047338485718,
0.0322050079703331,
-0.00771205872297287,
-0.03089522197842598,
-0.043556928634643555,
-0.3207211494445801,
-0.004677534103393555,
0.20045879483222961,
0.06980536133050919,
0.0687473937869072,
-0.16169486939907074,
-0.08159101754426956,
0.13989956676959991,
0.20403100550174713,
0.38968199491500854,
-0.13758009672164917,
-0.11160918325185776,
0.0036814073100686073,
0.22071093320846558,
-0.24801962077617645,
-0.26814693212509155,
0.02592470496892929,
0.0022780215367674828,
-0.1571580320596695,
0.3477061986923218,
0.3385125398635864,
0.15678834915161133,
0.10676837712526321,
0.17926397919654846,
0.4243701100349426,
-0.24841468036174774,
0.36612603068351746,
0.15656183660030365,
0.07318960130214691,
-0.19898764789104462,
-0.08611779659986496,
0.2434794008731842,
0.15557965636253357,
-0.00206674262881279,
-0.14343884587287903,
0.30632683634757996,
0.519988477230072,
0.2046108990907669,
-0.577091634273529,
-0.22838260233402252,
-0.21114854514598846,
0.4667414128780365,
-0.23423635959625244,
0.47356727719306946,
0.43367448449134827,
0.14276251196861267,
0.12221080809831619,
-0.2752474844455719,
-0.2910159230232239,
0.5431444048881531,
0.015019683167338371,
-0.02916301041841507,
0.17981550097465515,
-0.09651164710521698,
0.12398087978363037,
0.2251507043838501,
0.12460559606552124,
0.26340538263320923,
-0.02720918506383896,
0.22852693498134613,
0.0037366151809692383,
0.09112212806940079,
0.5725486874580383,
0.05084226652979851,
0.42818567156791687,
-0.20180076360702515,
-0.1588834971189499,
0.2087460160255432,
0.1749546229839325,
-0.11982367932796478,
-0.030880818143486977,
0.17439252138137817,
0.21221135556697845,
-0.3490409553050995,
0.05871360003948212,
0.042639076709747314,
-0.004761125892400742,
-0.2958354353904724,
0.3895011246204376,
0.1521131694316864,
-0.1610444337129593,
-0.07685527950525284,
0.11173711717128754,
-0.11847393959760666,
0.17021742463111877,
0.08844947069883347,
0.1912446916103363,
-0.2271021157503128,
-0.06561050564050674,
0.28605782985687256,
-0.40477970242500305,
-0.00906192883849144,
-0.24572846293449402,
-0.2952019274234772,
-0.006771184504032135,
0.26617103815078735,
-0.22242766618728638,
0.03551916033029556,
-0.16564631462097168,
0.0889625996351242,
-0.19935773313045502,
0.3422854542732239,
0.23505467176437378,
-0.27209237217903137,
-0.3159380555152893,
-0.20595327019691467,
-0.3135770559310913,
-0.19191887974739075,
-0.33232957124710083,
-0.11632388830184937,
0.18170535564422607,
0.33044952154159546,
-0.1060376688838005,
0.23739579319953918,
0.18711142241954803,
-0.09522518515586853,
-0.1168179139494896,
0.002011951059103012,
-0.4604871869087219,
0.13782668113708496,
0.1788458228111267,
0.22822041809558868,
0.20815689861774445,
-0.5176975727081299,
-0.26477929949760437,
-0.15276296436786652,
0.000777754932641983,
-0.13586953282356262,
0.30298078060150146,
0.15759123861789703,
0.5477006435394287,
0.6887497901916504,
0.00148005411028862,
-0.25665122270584106,
-0.08706837147474289,
-0.24218785762786865,
-0.07385076582431793,
-0.12916068732738495,
-0.12208805233240128,
-0.1594548225402832,
0.34656059741973877,
0.3143827021121979,
-0.32936719059944153,
0.08468229323625565,
-0.2532244324684143,
-0.08611088991165161,
-0.0682171955704689,
0.14552296698093414,
-0.08918195217847824,
-0.016317952424287796,
0.07654807716608047,
0.4157755374908447,
-0.0701461061835289,
0.3245227038860321,
-0.02107039839029312,
0.15895038843154907,
-0.34482067823410034,
-0.1187073215842247,
0.32934483885765076,
0.2186019867658615,
-0.48176610469818115,
0.400386244058609,
0.13537469506263733,
0.06570718437433243,
-0.15056736767292023,
-0.3618243932723999,
0.3132098317146301,
0.13255265355110168,
-0.20167559385299683,
-0.13047651946544647,
0.32267454266548157,
-0.08665913343429565,
-0.07669013738632202,
0.10986191034317017,
0.330888956785202,
0.31244614720344543,
-0.07593335211277008,
-0.3197581171989441,
-0.26327866315841675
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | @thomwolf I'm sorry but I can't reproduce this problem. I'm also using:
```python
ds = load_dataset("json", split="train", data_files=data_files, cache_dir=cache_dir)
```
after having removed the extracted files:
```python
assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == []
```
I get the logging message:
```shell
WARNING datasets.builder:builder.py:531 Reusing dataset json ...
``` | I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 49 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
@thomwolf I'm sorry but I can't reproduce this problem. I'm also using:
```python
ds = load_dataset("json", split="train", data_files=data_files, cache_dir=cache_dir)
```
after having removed the extracted files:
```python
assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == []
```
I get the logging message:
```shell
WARNING datasets.builder:builder.py:531 Reusing dataset json ...
``` | [
0.038740020245313644,
0.0011511221528053284,
-0.07317270338535309,
0.28882551193237305,
-0.02259734645485878,
0.24423456192016602,
0.004371780902147293,
0.22520121932029724,
0.21111589670181274,
0.11122642457485199,
0.13000944256782532,
0.4447043836116791,
-0.31494587659835815,
-0.15223395824432373,
-0.18791775405406952,
0.06854528188705444,
-0.18226367235183716,
0.23035502433776855,
0.11799035966396332,
0.15388432145118713,
-0.1485169678926468,
0.016712509095668793,
0.02816052734851837,
-0.1277255415916443,
-0.08119889348745346,
-0.3685380220413208,
0.17933930456638336,
-0.2001989781856537,
-0.07094041258096695,
-0.4755667448043823,
0.19351714849472046,
0.4872879683971405,
0.2634619176387787,
0.29377517104148865,
-0.00012703207903541625,
0.14023132622241974,
0.28243565559387207,
0.1706399768590927,
-0.49461451172828674,
0.07347097247838974,
-0.21854785084724426,
-0.1317232847213745,
0.2783423960208893,
-0.1279086470603943,
0.23895710706710815,
-0.5058013796806335,
-0.2874322831630707,
-0.7039575576782227,
0.6001020669937134,
-0.14448224008083344,
0.02261262759566307,
0.08817888796329498,
-0.4752640128135681,
0.23534135520458221,
0.1795051395893097,
0.3432502746582031,
0.003217419609427452,
-0.014561949297785759,
0.3974130153656006,
0.04100479185581207,
0.2530764043331146,
0.33234724402427673,
-0.1500113159418106,
-0.23154251277446747,
0.28203776478767395,
-0.041238415986299515,
-0.030806541442871094,
-0.3038092851638794,
0.1847778558731079,
-0.003672312945127487,
0.6249607801437378,
-0.39469221234321594,
-0.25561806559562683,
-0.5423305034637451,
0.06265447288751602,
-0.6009431481361389,
0.023260805755853653,
0.27974870800971985,
-0.08250279724597931,
0.21299771964550018,
-0.18871265649795532,
-0.3832751512527466,
-0.32732200622558594,
-0.11234210431575775,
0.5984615087509155,
-0.39980629086494446,
-0.03723880648612976,
-0.04580695927143097,
0.4938417375087738,
0.14615072309970856,
0.23537229001522064,
-0.31429198384284973,
-0.21718963980674744,
0.38461384177207947,
-0.18738879263401031,
-0.09364308416843414,
-0.22391968965530396,
-0.2821355164051056,
0.14149311184883118,
0.15897737443447113,
0.2970099151134491,
-0.16740411520004272,
0.11852939426898956,
0.09084834903478622,
0.3935779333114624,
0.4597052335739136,
-0.04816778749227524,
0.11285560578107834,
0.10085192322731018,
0.16190853714942932,
0.04828750714659691,
-0.09799184650182724,
0.1011851578950882,
-0.06178385764360428,
0.42505544424057007,
-0.03219940885901451,
0.04165399819612503,
-0.10718759894371033,
-0.26106658577919006,
0.09687691181898117,
-0.007823705673217773,
-0.20519959926605225,
0.16661322116851807,
0.18667379021644592,
0.1723245531320572,
0.019371528178453445,
0.06728988885879517,
0.4301666021347046,
-0.057731203734874725,
-0.2265523374080658,
0.10329629480838776,
0.10110306739807129,
-0.32058921456336975,
-0.36790019273757935,
0.4237631857395172,
-0.12987099587917328,
-0.025971991941332817,
-0.004820288624614477,
-0.2550819516181946,
-0.06533247977495193,
0.4840128421783447,
-0.09291878342628479,
0.25380975008010864,
0.3099846839904785,
-0.21831166744232178,
-0.0880335122346878,
-0.21226473152637482,
-0.16537895798683167,
-0.14229269325733185,
0.5295098423957825,
-0.18499654531478882,
-0.3411288261413574,
-0.08569471538066864,
0.059979431331157684,
-0.06600183993577957,
0.28005144000053406,
-0.5685243606567383,
0.06120024621486664,
0.19114276766777039,
0.06874507665634155,
-0.0418272539973259,
0.2140064686536789,
-0.0375092476606369,
-0.08871520310640335,
-0.2247152328491211,
0.40240466594696045,
-0.6254301071166992,
-0.1333288848400116,
-0.3174974024295807,
-0.14520148932933807,
0.20104628801345825,
0.24209295213222504,
-0.1749444305896759,
0.3494225740432739,
-0.3156363368034363,
0.00965825468301773,
0.4006728529930115,
-0.23287107050418854,
-0.45436757802963257,
0.17654173076152802,
0.11901189386844635,
0.420715868473053,
0.3524940311908722,
0.254387229681015,
0.25947579741477966,
-0.03225432336330414,
-0.0024928972125053406,
0.3350214958190918,
0.07736726105213165,
-0.07384954392910004,
-0.2808278203010559,
-0.3792129158973694,
0.22563649713993073,
0.19167472422122955,
-0.09218509495258331,
0.11055248975753784,
0.16780948638916016,
-0.0024411482736468315,
0.2609682083129883,
0.11505100876092911,
0.11328460276126862,
0.19407200813293457,
0.11540897190570831,
-0.2010040432214737,
-0.17742301523685455,
0.13137885928153992,
-0.505256175994873,
0.09868570417165756,
-0.46579232811927795,
-0.33217674493789673,
-0.3756701946258545,
-0.2849501371383667,
0.03860440477728844,
0.1174929067492485,
-0.38909250497817993,
0.12905552983283997,
-0.022017206996679306,
-0.12795256078243256,
0.3280847668647766,
0.05594697222113609,
-0.35931336879730225,
0.15207219123840332,
-0.0983792170882225,
0.07802242040634155,
-0.5450094938278198,
0.2050360143184662,
0.18430203199386597,
-0.24730777740478516,
-0.12907098233699799,
0.14001250267028809,
-0.23060745000839233,
-0.36273422837257385,
-0.16539952158927917,
0.20361652970314026,
0.3391129672527313,
0.21509847044944763,
0.15600353479385376,
0.24213539063930511,
0.23040758073329926,
0.200959712266922,
0.046973422169685364,
0.19482193887233734,
0.011587041430175304,
0.046387530863285065,
-0.2821243703365326,
0.38120710849761963,
-0.22195036709308624,
0.05348088592290878,
-0.1775819957256317,
-0.45756083726882935,
0.2535555064678192,
-0.05709375813603401,
0.07907876372337341,
-0.4799569845199585,
0.10833460092544556,
0.3552144765853882,
-0.0536252036690712,
0.024503648281097412,
0.1122615784406662,
-0.1633777618408203,
0.0036085695028305054,
-0.09471243619918823,
-0.1975783109664917,
0.28924253582954407,
-0.12100983411073685,
-0.17924046516418457,
0.05397064983844757,
0.4722078740596771,
0.3872455358505249,
0.07281212508678436,
-0.06920723617076874,
-0.10370881110429764,
0.4217992126941681,
0.07832720875740051,
0.1705801635980606,
0.056321825832128525,
-0.037913624197244644,
0.3702069818973541,
0.25991547107696533,
-0.09258530288934708,
-0.23543903231620789,
0.014322586357593536,
0.10432565957307816,
0.2683179974555969,
0.1289220005273819,
-0.03347441926598549,
-0.39785081148147583,
-0.3873178958892822,
0.3365694582462311,
0.19679930806159973,
0.1924799382686615,
-0.1469786912202835,
0.3643900156021118,
0.1799001395702362,
-0.20706354081630707,
0.03058401308953762,
-0.04499979317188263,
0.46036621928215027,
0.007302651181817055,
-0.37097010016441345,
-0.34440353512763977,
-0.1632084846496582,
0.12286459654569626,
-0.08310578018426895,
0.40229305624961853,
-0.28095224499702454,
0.44407913088798523,
0.127563938498497,
-0.0038778800517320633,
-0.054243266582489014,
-0.01771029829978943,
0.03764818608760834,
0.3879234790802002,
0.18766851723194122,
0.1001783162355423,
0.1531304568052292,
0.03798762708902359,
0.09637901932001114,
-0.0991242453455925,
-0.14493520557880402,
-0.10224097967147827,
0.3233746886253357,
0.06612259149551392,
0.18513207137584686,
-0.17125819623470306,
0.0005544275045394897,
-0.2757926285266876,
-0.2898994982242584,
0.20133860409259796,
0.031961072236299515,
-0.016234740614891052,
0.2689196765422821,
0.28101617097854614,
-0.09652351588010788,
0.08417544513940811,
0.14889352023601532,
-0.025183748453855515,
-0.7104844450950623,
0.16074571013450623,
-0.0769009068608284,
0.13641422986984253,
0.18906565010547638,
-0.06975363940000534,
-0.029377322643995285,
0.34088408946990967,
-0.433638334274292,
-0.012082724831998348,
0.06604549288749695,
0.16275958716869354,
-0.28042691946029663,
0.019199367612600327,
0.09588675200939178,
0.2754337191581726,
0.037888698279857635,
0.020179443061351776,
0.0985087901353836,
0.14473289251327515,
0.3198247253894806,
0.17311418056488037,
0.12626740336418152,
0.26036298274993896,
0.2043638974428177,
0.43218857049942017,
-0.062224071472883224,
0.01960184797644615,
0.38818973302841187,
0.31632548570632935,
0.438729852437973,
-0.24701356887817383,
0.09891904890537262,
-0.4738690257072449,
0.004999727010726929,
-0.21820500493049622,
-0.0037109479308128357,
0.12136741727590561,
-0.04964662343263626,
0.17356914281845093,
-0.10633932054042816,
-0.1391189992427826,
-0.14047415554523468,
0.2118043452501297,
-0.36621546745300293,
0.10254231840372086,
0.05006726458668709,
-0.2705191373825073,
-0.11742196977138519,
-0.16752731800079346,
0.039108313620090485,
0.16579939424991608,
0.5044100880622864,
-0.020965104922652245,
-0.1951974779367447,
-0.10790880769491196,
-0.22365248203277588,
0.26889288425445557,
-0.19639380276203156,
-0.12398719787597656,
0.0256856270134449,
0.09046436101198196,
0.21922667324543,
0.2238592654466629,
0.49105554819107056,
-0.10353333503007889,
0.03907234966754913,
-0.09540046751499176,
-0.001443028450012207,
-0.29947325587272644,
-0.039861783385276794,
0.050279650837183,
0.09249307215213776,
-0.028744690120220184,
0.4003674387931824,
-0.25196167826652527,
-0.16512902081012726,
-0.22570842504501343,
0.6906115412712097,
-0.26012441515922546,
-0.1884288191795349,
-0.1495395451784134,
-0.263036847114563,
-0.5465502142906189,
-0.020044736564159393,
-0.008020944893360138,
-0.023606160655617714,
0.08120369911193848,
-0.2832099199295044,
-0.12703078985214233,
-0.28041407465934753,
0.1166423037648201,
-0.05640513449907303,
0.5973097085952759,
-0.29328563809394836,
0.17258940637111664,
-0.07033027708530426,
0.08520424365997314,
0.506881058216095,
0.31773319840431213,
-0.09236924350261688,
-0.0827547013759613,
-0.16806241869926453,
-0.19830720126628876,
0.10998781025409698,
0.09359817951917648,
-0.30032503604888916,
0.3180713653564453,
-0.249879390001297,
0.4409911036491394,
-0.03151815012097359,
0.009720688685774803,
0.027195388451218605,
-0.27298107743263245,
-0.11541593819856644,
-0.39698168635368347,
0.09795961529016495,
0.0724426805973053,
-0.14415884017944336,
0.47779133915901184,
-0.21328459680080414,
-0.2477707415819168,
0.49188554286956787,
-0.14855548739433289,
1.04564368724823,
-0.13452176749706268,
-0.0002492256462574005,
-0.0578194335103035,
-0.2254689335823059,
0.42288336157798767,
-0.6274006962776184,
0.19909431040287018,
-0.04310028627514839,
-0.04087957367300987,
0.10037587583065033,
-0.12001089751720428,
0.0230390764772892,
0.3152318000793457,
-0.05275242030620575,
0.24674992263317108,
-0.4842721223831177,
-0.16010814905166626,
-0.30236124992370605,
0.3316243290901184,
-0.05529985576868057,
-0.1308068484067917,
-0.19818341732025146,
-0.0560087114572525,
0.017417561262845993,
-0.020617138594388962,
-0.20031702518463135,
-0.052597418427467346,
0.4607528746128082,
-0.05187224596738815,
0.2136145979166031,
-0.12443622201681137,
-0.24202494323253632,
0.4143178462982178,
-0.13123644888401031,
-0.2538135051727295,
-0.18919850885868073,
0.13056117296218872,
-0.22440342605113983,
0.018959039822220802,
0.27499818801879883,
-0.0032377801835536957,
0.03137647360563278,
-0.0009666780242696404,
-0.36017516255378723,
0.10519824177026749,
0.017696117982268333,
-0.030539415776729584,
-0.02430140972137451,
0.15010306239128113,
-0.3183412551879883,
-0.4439483880996704,
0.14132297039031982,
0.1588863879442215,
-0.11304323375225067,
-0.04606779292225838,
-0.294094979763031,
-0.09105747938156128,
-0.32857444882392883,
0.09377169609069824,
0.03755630552768707,
0.3554038405418396,
-0.2288431078195572,
0.2944485545158386,
-0.44242268800735474,
-0.1805366724729538,
-0.13874255120754242,
-0.12592270970344543,
0.27815577387809753,
-0.10783962160348892,
0.40585780143737793,
-0.1961037516593933,
-0.1697501391172409,
-0.3114445209503174,
-0.10946451872587204,
-0.05916518345475197,
-0.35235390067100525,
0.49597111344337463,
0.15415869653224945,
0.019113972783088684,
0.030614346265792847,
-0.18911835551261902,
-0.1128222644329071,
-0.0036651939153671265,
-0.08838880807161331,
-0.23307734727859497,
-0.5126235485076904,
0.13335591554641724,
0.23343275487422943,
0.5337324142456055,
0.09821895509958267,
0.07239200919866562,
-0.2063540518283844,
0.040302783250808716,
-0.14661459624767303,
0.27191683650016785,
0.27147743105888367,
0.17609798908233643,
-0.005752667784690857,
0.2576834559440613,
0.12072713673114777,
-0.2755827307701111,
-0.1310795694589615,
-0.016249366104602814,
-0.10072027891874313,
-0.11332546174526215,
-0.1384996920824051,
0.13801056146621704,
-0.08580701798200607,
-0.0821947306394577,
-0.17087282240390778,
-0.34159982204437256,
0.19510571658611298,
-0.2087673544883728,
0.3060406744480133,
-0.07745485007762909,
-0.09229828417301178,
-0.04609830677509308,
0.36416131258010864,
-0.10116534680128098,
-0.0318116620182991,
0.12958689033985138,
-0.07773685455322266,
0.3581882119178772,
0.09357136487960815,
0.01844378188252449,
-0.024768030270934105,
0.021632350981235504,
-0.5045362710952759,
-0.01540769636631012,
0.2184852510690689,
0.06541123241186142,
0.11453378200531006,
-0.1634777933359146,
-0.05167808756232262,
0.05440452694892883,
0.1629258692264557,
0.2467234879732132,
-0.15288256108760834,
-0.013363882899284363,
-0.10647737979888916,
0.10300944745540619,
-0.1887698620557785,
-0.264470636844635,
0.057401467114686966,
0.12217037379741669,
-0.25386831164360046,
0.3539164662361145,
0.3832463324069977,
0.059159114956855774,
0.045961469411849976,
0.041537754237651825,
0.3936088979244232,
-0.21633143723011017,
0.4034717381000519,
0.4159604609012604,
0.07310494780540466,
-0.21103332936763763,
-0.15883825719356537,
0.3227527439594269,
0.12933404743671417,
-0.01143934577703476,
-0.12805548310279846,
0.39225566387176514,
0.5880977511405945,
0.19317667186260223,
-0.6003848910331726,
-0.35929882526397705,
-0.25391989946365356,
0.6064802408218384,
-0.04882068932056427,
0.4539385735988617,
0.3565713167190552,
0.27205193042755127,
0.23341302573680878,
-0.15201224386692047,
-0.12469937652349472,
0.49895381927490234,
0.0763915628194809,
-0.06073209270834923,
0.18664559721946716,
-0.13066592812538147,
0.15587744116783142,
0.131953626871109,
0.09249118715524673,
0.2826763987541199,
-0.2776646018028259,
0.23492057621479034,
-0.02092622220516205,
0.110835500061512,
0.4764100909233093,
0.19600015878677368,
0.4155323803424835,
-0.19943159818649292,
-0.17052774131298065,
0.24433468282222748,
0.2839077115058899,
0.025531979277729988,
-0.09548535943031311,
0.14150838553905487,
0.11388693004846573,
-0.34405454993247986,
-0.011564224027097225,
0.03954208642244339,
0.09089071303606033,
-0.1983008086681366,
0.48380228877067566,
0.05263132229447365,
-0.187735453248024,
-0.08844678103923798,
-0.020558295771479607,
-0.042602818459272385,
0.1373264640569687,
0.20744018256664276,
0.2993079125881195,
-0.27622610330581665,
-0.05512676388025284,
0.2671678066253662,
-0.39561277627944946,
-0.013017695397138596,
-0.09151845425367355,
-0.1284044086933136,
0.0006955806165933609,
0.4648071825504303,
-0.1881522685289383,
0.03861561417579651,
-0.11769809573888779,
0.033162228763103485,
-0.2790223956108093,
0.18283915519714355,
0.24306942522525787,
-0.3257073163986206,
-0.3032858669757843,
-0.1775818020105362,
-0.3610859215259552,
-0.22810697555541992,
-0.3321949541568756,
0.0023375097662210464,
0.22570206224918365,
0.19085124135017395,
-0.08666396886110306,
0.13386952877044678,
0.1662999838590622,
-0.027751585468649864,
-0.03810540959239006,
0.04898107424378395,
-0.37456533312797546,
-0.014257047325372696,
0.21512123942375183,
0.18909887969493866,
0.07797511667013168,
-0.4346444010734558,
-0.31084302067756653,
-0.1040523573756218,
-0.07542514055967331,
-0.08235475420951843,
0.2746675908565521,
0.14712876081466675,
0.7400566339492798,
0.6187958717346191,
-0.03638419508934021,
-0.21408912539482117,
0.0963764414191246,
-0.2081693857908249,
-0.040176499634981155,
-0.16464054584503174,
-0.01681407354772091,
-0.15967732667922974,
0.2693033516407013,
0.26988938450813293,
-0.42611372470855713,
0.26456183195114136,
-0.33128821849823,
-0.2856912612915039,
-0.11480923742055893,
0.02319326438009739,
-0.2574586272239685,
-0.021232545375823975,
-0.02974112331867218,
0.5283957719802856,
0.009937583468854427,
0.312195748090744,
0.04792345315217972,
0.22612525522708893,
-0.3168368935585022,
-0.06647282838821411,
0.3342604637145996,
0.1714877188205719,
-0.380706250667572,
0.5087202787399292,
0.07804761826992035,
0.05069417506456375,
-0.05180410295724869,
-0.3348765969276428,
0.3184892237186432,
0.22059491276741028,
-0.3912210464477539,
0.004319712519645691,
0.22576479613780975,
-0.0556490533053875,
-0.002456076443195343,
0.17469795048236847,
0.23275581002235413,
0.43569719791412354,
0.06150517612695694,
-0.2619684934616089,
-0.17453667521476746
] |
https://github.com/huggingface/datasets/issues/2604 | Add option to delete temporary files (e.g. extracted files) when loading dataset | >
>
> Do you confirm the extracted folder stays empty after reloading?
Yes, I have the above mentioned assertion on the emptiness of the extracted folder:
```python
assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == []
```
| I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution. | 37 | Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files.
When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables
Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter.
I can maybe tackle this one in the JSON script unless you want a more general solution.
>
>
> Do you confirm the extracted folder stays empty after reloading?
Yes, I have the above mentioned assertion on the emptiness of the extracted folder:
```python
assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == []
```
| [
0.041307542473077774,
-0.048537760972976685,
-0.14497224986553192,
0.22482948005199432,
-0.04660531133413315,
0.20178928971290588,
-0.16908562183380127,
0.3027113080024719,
0.2245083749294281,
0.1342935562133789,
0.010950014926493168,
0.48018598556518555,
-0.2686918377876282,
-0.12304305285215378,
-0.18242371082305908,
-0.009383834898471832,
-0.2349085509777069,
0.2767868638038635,
-0.0039625465869903564,
0.1206640750169754,
-0.17447568476200104,
0.09212034940719604,
0.037846311926841736,
-0.1965695470571518,
0.052506521344184875,
-0.40806302428245544,
0.12740404903888702,
-0.08393993228673935,
-0.13565245270729065,
-0.4438682496547699,
0.04382036626338959,
0.4613910913467407,
0.2651350200176239,
0.2756153345108032,
-0.00011828110291389748,
-0.005250558257102966,
0.32141584157943726,
0.04489739239215851,
-0.44852137565612793,
0.07876098155975342,
-0.1391090750694275,
-0.16890385746955872,
0.26235246658325195,
-0.1987498551607132,
0.22335150837898254,
-0.35630908608436584,
-0.2938638925552368,
-0.6617417931556702,
0.5167126655578613,
-0.1608562022447586,
0.12688125669956207,
0.06837150454521179,
-0.47382599115371704,
0.19338838756084442,
0.2738461494445801,
0.24093060195446014,
-0.0916808620095253,
0.038585662841796875,
0.3927951455116272,
0.004566306248307228,
0.2632928192615509,
0.3668140769004822,
-0.10023676604032516,
-0.2114972025156021,
0.35578566789627075,
0.021877240389585495,
-0.14610075950622559,
-0.3214157819747925,
0.24983501434326172,
-0.028761647641658783,
0.6228607892990112,
-0.39443209767341614,
-0.22752435505390167,
-0.3693222105503082,
0.0613991916179657,
-0.6855834126472473,
0.07141248136758804,
0.26465800404548645,
-0.025691689923405647,
0.23825028538703918,
-0.08053098618984222,
-0.37400710582733154,
-0.3292849361896515,
-0.142014279961586,
0.5611352920532227,
-0.33493128418922424,
-0.06793791800737381,
-0.15238595008850098,
0.43475082516670227,
0.14553163945674896,
0.201520174741745,
-0.24693575501441956,
-0.21348482370376587,
0.43980303406715393,
-0.11566001176834106,
-0.16844037175178528,
-0.28265199065208435,
-0.2550823390483856,
0.15414345264434814,
0.23844824731349945,
0.3873397409915924,
-0.03185611218214035,
0.1681099385023117,
0.01228608563542366,
0.30264973640441895,
0.4701264500617981,
0.0035454854369163513,
0.009140185080468655,
0.1823691874742508,
0.09233281016349792,
0.07843229174613953,
-0.059340864419937134,
-0.007167093455791473,
0.003768026828765869,
0.35647404193878174,
-0.005452364683151245,
-0.00039450451731681824,
-0.10364361107349396,
-0.0663222149014473,
0.11097025871276855,
0.14655020833015442,
-0.17648868262767792,
0.05811498314142227,
0.2550414502620697,
0.11152318120002747,
0.07977047562599182,
0.11754541099071503,
0.3180946707725525,
-0.006252664141356945,
-0.16972967982292175,
0.09014084935188293,
0.16229398548603058,
-0.28896665573120117,
-0.3153975307941437,
0.4541115164756775,
-0.08124569058418274,
0.016676655039191246,
-0.12122393399477005,
-0.23077808320522308,
0.02477601170539856,
0.531020998954773,
-0.12268781661987305,
0.28558149933815,
0.36194637417793274,
-0.14617852866649628,
-0.1604756861925125,
-0.19236193597316742,
-0.08462303876876831,
-0.15706458687782288,
0.49407416582107544,
-0.11577067524194717,
-0.2477864772081375,
-0.008216748014092445,
0.17212818562984467,
0.010168246924877167,
0.22849567234516144,
-0.5198007225990295,
0.012818340212106705,
0.10617000609636307,
0.09778353571891785,
0.008979298174381256,
0.33706849813461304,
0.05926870182156563,
-0.16624639928340912,
-0.21431957185268402,
0.36025547981262207,
-0.5754244327545166,
-0.07839328050613403,
-0.3162103295326233,
-0.13818395137786865,
0.14195193350315094,
0.19349880516529083,
-0.07481699436903,
0.26965734362602234,
-0.20394842326641083,
0.15035966038703918,
0.3257901072502136,
-0.20862147212028503,
-0.4496501386165619,
0.13340884447097778,
0.09345526993274689,
0.3512132167816162,
0.29299798607826233,
0.26573729515075684,
0.36374950408935547,
0.037041082978248596,
0.028023462742567062,
0.3027050495147705,
0.0446932390332222,
-0.03194645792245865,
-0.37993648648262024,
-0.3065943419933319,
0.12732210755348206,
0.2023751437664032,
0.040177807211875916,
0.061622753739356995,
0.11136496067047119,
-0.030888143926858902,
0.2415638267993927,
0.12423075735569,
0.11324436962604523,
0.20969976484775543,
0.21012583374977112,
-0.21841581165790558,
-0.1411333531141281,
0.07584211975336075,
-0.5337054133415222,
0.11611925810575485,
-0.48025527596473694,
-0.2700074017047882,
-0.32587385177612305,
-0.3545674681663513,
-0.00628900621086359,
0.060399703681468964,
-0.2571124732494354,
0.0709155946969986,
0.1001926064491272,
-0.0983828753232956,
0.3363024592399597,
0.005329828709363937,
-0.4017879366874695,
0.09175892919301987,
-0.0026922188699245453,
0.07025665789842606,
-0.4425693452358246,
0.1793135404586792,
0.12845122814178467,
-0.2546827793121338,
-0.09136997163295746,
0.01984471082687378,
-0.22524124383926392,
-0.505038321018219,
-0.17480725049972534,
0.2506627142429352,
0.3291652202606201,
0.23368942737579346,
0.2079574167728424,
0.22251668572425842,
0.17816652357578278,
0.2550560235977173,
0.09779010713100433,
0.21982625126838684,
0.07163835316896439,
0.06666373461484909,
-0.35931870341300964,
0.458173930644989,
-0.226888969540596,
-0.022665023803710938,
-0.1261267364025116,
-0.3892330825328827,
0.27343225479125977,
-0.10013790428638458,
0.08142976462841034,
-0.4512609839439392,
0.07874073088169098,
0.3533688485622406,
-0.04910340905189514,
0.0033762510865926743,
0.12963621318340302,
-0.0848262831568718,
-0.010780233889818192,
-0.05964026227593422,
-0.15389496088027954,
0.320688396692276,
-0.10863509029150009,
-0.144206702709198,
0.011089647188782692,
0.46146097779273987,
0.4385591745376587,
0.17018809914588928,
-0.10129113495349884,
-0.11482719331979752,
0.4571802318096161,
0.03653493896126747,
0.18168669939041138,
0.05301707237958908,
-0.04882844164967537,
0.37670814990997314,
0.17042626440525055,
0.0017932252958416939,
-0.31052282452583313,
-0.025426071137189865,
0.08667898923158646,
0.22457121312618256,
0.24443399906158447,
-0.15998588502407074,
-0.23073871433734894,
-0.3647029995918274,
0.46937745809555054,
0.19767560064792633,
0.21974818408489227,
-0.07263106107711792,
0.46891623735427856,
0.1539275348186493,
-0.32634031772613525,
0.09599180519580841,
-0.03339207172393799,
0.542359471321106,
-0.017068946734070778,
-0.31141960620880127,
-0.3771662414073944,
-0.16811010241508484,
0.20985448360443115,
0.018621861934661865,
0.3155294358730316,
-0.19958195090293884,
0.49492961168289185,
0.0888495147228241,
0.058531254529953,
-0.046410560607910156,
-0.06411707401275635,
0.04975619539618492,
0.2917630076408386,
0.027274085208773613,
0.10367521643638611,
0.20922483503818512,
0.022574715316295624,
0.10793623328208923,
-0.09464375674724579,
-0.3111012279987335,
-0.1514032781124115,
0.21326935291290283,
0.17556820809841156,
0.05093344673514366,
-0.27456024289131165,
-0.11113851517438889,
-0.2817269265651703,
-0.4231970012187958,
0.22542697191238403,
0.03980099782347679,
0.0331120491027832,
0.12601284682750702,
0.16883492469787598,
-0.0610671192407608,
0.11476463079452515,
0.08111492544412613,
-0.04502315819263458,
-0.6299254298210144,
0.18313615024089813,
-0.19124826788902283,
-0.0007601343095302582,
0.24254903197288513,
-0.06757025420665741,
-0.0057540833950042725,
0.3238615393638611,
-0.3674846887588501,
-0.05640735849738121,
-0.03328602761030197,
0.18072627484798431,
-0.3109462857246399,
-0.022311707958579063,
0.23866820335388184,
0.2549815773963928,
-0.10065712034702301,
-0.0001964271068572998,
0.09481154382228851,
0.16128554940223694,
0.3627622723579407,
0.0858088880777359,
0.015238170512020588,
0.22555285692214966,
0.1552605926990509,
0.45752906799316406,
-0.23197472095489502,
0.0894569456577301,
0.3778056204319,
0.3623315989971161,
0.4830911457538605,
-0.2674524486064911,
0.1350192427635193,
-0.4761631190776825,
-0.059717074036598206,
-0.1635608971118927,
0.06149999424815178,
0.12683281302452087,
-0.14897273480892181,
0.12715643644332886,
-0.22674697637557983,
-0.25540611147880554,
-0.10871966183185577,
0.3488437831401825,
-0.2455914318561554,
0.07470674067735672,
0.033701445907354355,
-0.26010581851005554,
-0.11066633462905884,
-0.07503484934568405,
0.05254613235592842,
0.19343358278274536,
0.35559678077697754,
-0.09596206247806549,
-0.22939026355743408,
-0.07046477496623993,
-0.2582455277442932,
0.2436959445476532,
-0.18421930074691772,
-0.15758536756038666,
0.05077803507447243,
0.0009018667042255402,
0.1316080391407013,
0.17041926085948944,
0.41880857944488525,
-0.11020354181528091,
-0.031615883111953735,
-0.04320099204778671,
-0.04910159856081009,
-0.2723812758922577,
0.014387775212526321,
-0.04368775337934494,
0.05138160660862923,
0.0062426235526800156,
0.3517800569534302,
-0.24508589506149292,
-0.16102230548858643,
-0.2627819776535034,
0.6113595962524414,
-0.2914118766784668,
-0.14618980884552002,
-0.16790363192558289,
-0.27581802010536194,
-0.5205756425857544,
0.013708941638469696,
0.10242768377065659,
-0.06994921714067459,
0.12877187132835388,
-0.22618837654590607,
-0.11656594276428223,
-0.31350353360176086,
0.09558912366628647,
0.026120450347661972,
0.6730555295944214,
-0.3106628656387329,
0.13381481170654297,
-0.1499755084514618,
0.13530749082565308,
0.4575914144515991,
0.3512051999568939,
-0.16341476142406464,
0.03242216259241104,
-0.12535572052001953,
-0.26606154441833496,
0.11174909770488739,
0.15934187173843384,
-0.24974051117897034,
0.23550376296043396,
-0.34428438544273376,
0.4965206980705261,
-0.0019972827285528183,
-0.0435357540845871,
-0.13015495240688324,
-0.25284406542778015,
-0.003190485993400216,
-0.25544625520706177,
0.10302966833114624,
-0.021974055096507072,
-0.1552114486694336,
0.4835704267024994,
-0.1392625868320465,
-0.2553928792476654,
0.5033288598060608,
-0.06331650167703629,
1.146225929260254,
-0.0912555456161499,
0.05908039212226868,
-0.07462472468614578,
-0.26714885234832764,
0.29419276118278503,
-0.6101067066192627,
0.19285185635089874,
-0.02383308857679367,
-0.14740467071533203,
0.10325193405151367,
-0.03219463676214218,
0.007378462702035904,
0.1978936344385147,
-0.25772252678871155,
0.17247584462165833,
-0.4044651389122009,
-0.2458299994468689,
-0.31276237964630127,
0.38594380021095276,
-0.13364148139953613,
-0.2389240264892578,
-0.2229069620370865,
0.030417323112487793,
0.0703631043434143,
0.009699629619717598,
-0.24336883425712585,
-0.06993941217660904,
0.34831351041793823,
-0.10294053703546524,
0.22051717340946198,
-0.1050838902592659,
-0.21156255900859833,
0.3625519871711731,
-0.17091280221939087,
-0.169326052069664,
-0.37470564246177673,
0.014715723693370819,
-0.22774790227413177,
0.06652708351612091,
0.17715682089328766,
0.019121816381812096,
-0.006390959024429321,
-0.02736693061888218,
-0.3108096122741699,
0.08405764400959015,
-0.02383396215736866,
-0.11778158694505692,
0.0023080110549926758,
0.14611783623695374,
-0.35474643111228943,
-0.3214162588119507,
0.2032020390033722,
0.17500469088554382,
-0.12040679156780243,
0.01082698255777359,
-0.31906718015670776,
-0.11614112555980682,
-0.50431227684021,
0.08122320473194122,
0.11450524628162384,
0.3476788401603699,
-0.22784754633903503,
0.3304808437824249,
-0.29159045219421387,
-0.22508713603019714,
-0.22063158452510834,
-0.05327955633401871,
0.31313014030456543,
-0.15983924269676208,
0.3334149420261383,
-0.2019820362329483,
-0.2323346883058548,
-0.4242370128631592,
0.008244313299655914,
-0.09758558869361877,
-0.266652375459671,
0.4921971261501312,
0.04981179162859917,
-0.12440767884254456,
0.05697423592209816,
-0.14614345133304596,
0.08514641225337982,
-0.008285775780677795,
-0.1706765592098236,
-0.19017243385314941,
-0.44236278533935547,
0.23615026473999023,
0.30118075013160706,
0.5027703046798706,
0.033381544053554535,
-0.004529239609837532,
-0.024131527170538902,
0.12317866832017899,
-0.2732386589050293,
0.2419099360704422,
0.16901002824306488,
0.18644748628139496,
-0.010839931666851044,
0.2098044753074646,
0.11469307541847229,
-0.29050472378730774,
-0.04248632490634918,
0.028029827401041985,
-0.11940483748912811,
-0.2052803337574005,
-0.11945858597755432,
0.11007319390773773,
-0.12230437248945236,
-0.08909028023481369,
-0.12792488932609558,
-0.25480854511260986,
0.15144804120063782,
-0.1967029720544815,
0.2219269722700119,
-0.1408960521221161,
-0.11528034508228302,
-0.0382680706679821,
0.42367973923683167,
-0.053490109741687775,
-0.06674949079751968,
0.12442813813686371,
-0.17530259490013123,
0.3281986117362976,
0.04843195527791977,
-0.05803189426660538,
-0.015176028944551945,
-0.055929310619831085,
-0.34259116649627686,
-0.012549728155136108,
0.14762595295906067,
0.07933647930622101,
0.07305559515953064,
-0.07566902041435242,
-0.09179884195327759,
0.04247758537530899,
0.16057591140270233,
0.3133678436279297,
-0.1005900502204895,
-0.027840089052915573,
-0.015204420313239098,
0.23555241525173187,
-0.307809442281723,
-0.20288552343845367,
-0.09597067534923553,
0.04228578880429268,
-0.12827962636947632,
0.35269567370414734,
0.25518834590911865,
0.01602093130350113,
0.07859689742326736,
0.12194987386465073,
0.4435409903526306,
-0.2625604271888733,
0.35673439502716064,
0.23301714658737183,
0.03352157399058342,
-0.20345641672611237,
-0.1404130458831787,
0.2835743725299835,
0.0813075602054596,
-0.04119023680686951,
-0.13535121083259583,
0.412517249584198,
0.5396198034286499,
0.27061742544174194,
-0.5496681332588196,
-0.2321305274963379,
-0.30473592877388,
0.5648601651191711,
-0.06363601982593536,
0.48339805006980896,
0.41124799847602844,
0.1609770655632019,
0.19940567016601562,
-0.2693638205528259,
-0.2112758606672287,
0.3925045132637024,
0.037602029740810394,
0.015127312391996384,
0.17794516682624817,
-0.12256629765033722,
0.1545838862657547,
0.08909645676612854,
0.19280175864696503,
0.3150659203529358,
-0.07630613446235657,
0.30509188771247864,
0.040347300469875336,
0.14444006979465485,
0.5403457283973694,
0.1726735532283783,
0.4122551381587982,
-0.20085076987743378,
-0.1683283895254135,
0.3069996237754822,
0.22863063216209412,
-0.04677915200591087,
-0.04264602065086365,
0.06075955182313919,
0.23001152276992798,
-0.4002387523651123,
0.05622050166130066,
0.02911698818206787,
0.036165349185466766,
-0.2809959650039673,
0.47384029626846313,
0.17641660571098328,
-0.16335994005203247,
-0.06650027632713318,
0.08923661708831787,
-0.13483984768390656,
0.2295845001935959,
0.12748147547245026,
0.16645663976669312,
-0.1332193911075592,
-0.09534016996622086,
0.34603551030158997,
-0.4161980152130127,
-0.039349451661109924,
-0.14949244260787964,
-0.24054646492004395,
0.028394408524036407,
0.30422040820121765,
-0.18590475618839264,
0.02068418636918068,
-0.09955140203237534,
0.0874011442065239,
-0.15067662298679352,
0.2765618562698364,
0.23043784499168396,
-0.3117164373397827,
-0.28551357984542847,
-0.24080711603164673,
-0.3313228189945221,
-0.19241762161254883,
-0.3334585726261139,
-0.07936200499534607,
0.20319071412086487,
0.2810603678226471,
-0.0578947439789772,
0.2194301038980484,
0.20724588632583618,
-0.04370584711432457,
-0.13206875324249268,
0.00960041955113411,
-0.5555421113967896,
0.09323321282863617,
0.29990047216415405,
0.22536462545394897,
0.1715487241744995,
-0.5085915923118591,
-0.2904878854751587,
-0.07408393919467926,
0.049097612500190735,
-0.10993708670139313,
0.1973835825920105,
0.11965644359588623,
0.7663528919219971,
0.6555728912353516,
-0.08232910931110382,
-0.281394898891449,
-0.08870653808116913,
-0.22644908726215363,
-0.02945650741457939,
-0.12107628583908081,
-0.018353905528783798,
-0.1915733516216278,
0.46125543117523193,
0.2556867301464081,
-0.3579714596271515,
0.17517785727977753,
-0.26291826367378235,
-0.2018047273159027,
-0.1126135066151619,
0.11249689012765884,
-0.2136930674314499,
0.02368255890905857,
0.09165310114622116,
0.4669550359249115,
-0.07260014861822128,
0.32288727164268494,
-0.037690311670303345,
0.13406404852867126,
-0.36928123235702515,
-0.10027334839105606,
0.35504239797592163,
0.25347721576690674,
-0.40916770696640015,
0.484054833650589,
0.11125792562961578,
0.021401111036539078,
-0.020409343764185905,
-0.2937963306903839,
0.310043603181839,
0.13864707946777344,
-0.2728065848350525,
-0.051329679787158966,
0.2545326352119446,
-0.1060621440410614,
-0.08098224550485611,
0.13831530511379242,
0.2301091104745865,
0.3491554856300354,
0.06697607040405273,
-0.38955795764923096,
-0.22390331327915192
] |
https://github.com/huggingface/datasets/issues/2598 | Unable to download omp dataset | Hi @erikadistefano , thanks for reporting the issue.
I have created a Pull Request that should fix it.
Once merged into master, feel free to update your installed `datasets` library (either by installing it from our GitHub master branch or waiting until our next release) to be able to load omp dataset. | ## Describe the bug
The omp dataset cannot be downloaded because of a DuplicatedKeysError
## Steps to reproduce the bug
from datasets import load_dataset
omp = load_dataset('omp', 'posts_labeled')
print(omp)
## Expected results
This code should download the omp dataset and print the dictionary
## Actual results
Downloading and preparing dataset omp/posts_labeled (download: 1.27 MiB, generated: 13.31 MiB, post-processed: Unknown size, total: 14.58 MiB) to /home/erika_distefano/.cache/huggingface/datasets/omp/posts_labeled/1.1.0/2fe5b067be3bff1d4588d5b0cbb9b5b22ae1b9d5b026a8ff572cd389f862735b...
0 examples [00:00, ? examples/s]2021-07-06 09:43:55.868815: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 990, in _prepare_split
writer.write(example, key)
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 338, in write
self.check_duplicate_keys()
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 3326
Keys should be unique and deterministic in nature
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "hf_datasets.py", line 32, in <module>
omp = load_dataset('omp', 'posts_labeled')
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 992, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 409, in finalize
self.check_duplicate_keys()
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 3326
Keys should be unique and deterministic in nature
## Environment info
- `datasets` version: 1.8.0
- Platform: Ubuntu 18.04.4 LTS
- Python version: 3.6.9
- PyArrow version: 3.0.0
| 52 | Unable to download omp dataset
## Describe the bug
The omp dataset cannot be downloaded because of a DuplicatedKeysError
## Steps to reproduce the bug
from datasets import load_dataset
omp = load_dataset('omp', 'posts_labeled')
print(omp)
## Expected results
This code should download the omp dataset and print the dictionary
## Actual results
Downloading and preparing dataset omp/posts_labeled (download: 1.27 MiB, generated: 13.31 MiB, post-processed: Unknown size, total: 14.58 MiB) to /home/erika_distefano/.cache/huggingface/datasets/omp/posts_labeled/1.1.0/2fe5b067be3bff1d4588d5b0cbb9b5b22ae1b9d5b026a8ff572cd389f862735b...
0 examples [00:00, ? examples/s]2021-07-06 09:43:55.868815: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 990, in _prepare_split
writer.write(example, key)
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 338, in write
self.check_duplicate_keys()
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 3326
Keys should be unique and deterministic in nature
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "hf_datasets.py", line 32, in <module>
omp = load_dataset('omp', 'posts_labeled')
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 992, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 409, in finalize
self.check_duplicate_keys()
File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 3326
Keys should be unique and deterministic in nature
## Environment info
- `datasets` version: 1.8.0
- Platform: Ubuntu 18.04.4 LTS
- Python version: 3.6.9
- PyArrow version: 3.0.0
Hi @erikadistefano , thanks for reporting the issue.
I have created a Pull Request that should fix it.
Once merged into master, feel free to update your installed `datasets` library (either by installing it from our GitHub master branch or waiting until our next release) to be able to load omp dataset. | [
-0.26337558031082153,
-0.11635962128639221,
-0.0825287401676178,
0.10050991922616959,
0.23119965195655823,
-0.021743137389421463,
0.20523132383823395,
0.2830137312412262,
0.04831305518746376,
0.20946449041366577,
-0.20779231190681458,
0.5524351596832275,
-0.20912529528141022,
0.23590202629566193,
0.13298523426055908,
-0.26636406779289246,
-0.15812674164772034,
0.10206848382949829,
-0.33420562744140625,
-0.09262710064649582,
-0.11044450104236603,
0.29327109456062317,
-0.17788374423980713,
0.09048022329807281,
0.03241037577390671,
-0.18051056563854218,
-0.0745367556810379,
-0.04699072986841202,
-0.27787888050079346,
-0.3463788330554962,
0.051886558532714844,
0.05487894266843796,
-0.10146267712116241,
0.3988810181617737,
-0.00010960271174553782,
0.11781595647335052,
0.0741741806268692,
0.01711260713636875,
-0.14591258764266968,
-0.6719619631767273,
-0.1396108716726303,
-0.2014085352420807,
-0.08262058347463608,
-0.36334294080734253,
0.227239191532135,
-0.25700077414512634,
0.05940690636634827,
-0.2267068475484848,
0.4353797435760498,
0.38676559925079346,
0.27397313714027405,
0.12296837568283081,
0.5405081510543823,
-0.07003863900899887,
0.1368202269077301,
-0.10913486778736115,
-0.12066393345594406,
0.34701934456825256,
0.058624327182769775,
0.153910830616951,
0.2576225697994232,
0.3272632360458374,
0.022102253511548042,
0.20504258573055267,
0.09252434968948364,
0.012578527443110943,
0.13955757021903992,
-0.2800304591655731,
0.17920517921447754,
0.2613038420677185,
0.698786735534668,
-0.3968588709831238,
-0.2707768380641937,
-0.1148359477519989,
0.21555978059768677,
-0.14401216804981232,
0.11427435278892517,
0.12411320209503174,
-0.19978462159633636,
0.07276587188243866,
-0.16058970987796783,
-0.032013725489377975,
-0.2135591059923172,
0.11175493150949478,
0.06571999192237854,
0.23256300389766693,
-0.0038948440924286842,
0.2163616418838501,
0.00007304921746253967,
-0.016996674239635468,
-0.083187997341156,
-0.1148604303598404,
0.13844995200634003,
0.1905747354030609,
-0.11528663337230682,
-0.1532757729291916,
-0.053004249930381775,
-0.6436042189598083,
0.2569110691547394,
0.023894833400845528,
0.3082277178764343,
-0.04632332921028137,
-0.21304389834403992,
0.033131763339042664,
0.11882691085338593,
0.22663499414920807,
0.14919990301132202,
0.04129277542233467,
0.1060216948390007,
0.12005499005317688,
-0.21737825870513916,
0.01682359352707863,
-0.08013290911912918,
-0.10014860332012177,
0.26476725935935974,
-0.05546405911445618,
0.5122626423835754,
-0.16099362075328827,
-0.4319573938846588,
0.2365233451128006,
-0.6948951482772827,
-0.10901405662298203,
-0.1088426485657692,
0.2770725190639496,
-0.07939834147691727,
-0.07464399188756943,
0.18085086345672607,
0.08326847851276398,
-0.23427623510360718,
-0.2156972736120224,
-0.1566639393568039,
0.15462402999401093,
-0.03715480491518974,
-0.1352514922618866,
0.15185995399951935,
0.09009744226932526,
0.4250291883945465,
0.10700400918722153,
0.10887476801872253,
-0.5665565133094788,
0.23591873049736023,
0.18048252165317535,
-0.360787034034729,
0.23124919831752777,
0.18124550580978394,
0.14659801125526428,
-0.06176931783556938,
0.03781408816576004,
-0.10027521848678589,
0.21245655417442322,
-0.16729333996772766,
-0.4056835174560547,
-0.07486577332019806,
0.34338271617889404,
0.05313470959663391,
-0.2699446976184845,
-0.16257062554359436,
-0.05082258954644203,
0.0389542356133461,
0.030983489006757736,
0.02467932552099228,
0.02246500924229622,
-0.2562178075313568,
-0.24421128630638123,
0.14607450366020203,
0.26479092240333557,
-0.2039802074432373,
-0.06587231159210205,
-0.11586884409189224,
0.0010873842984437943,
0.21730495989322662,
0.21075144410133362,
-0.2382168173789978,
0.4920542240142822,
-0.12652233242988586,
-0.06137814372777939,
0.3794509768486023,
-0.2946857213973999,
-0.5540880560874939,
0.1498630940914154,
-0.30938196182250977,
0.08788631856441498,
0.22212806344032288,
-0.045188870280981064,
0.13026563823223114,
0.16553691029548645,
0.1286422163248062,
-0.10271433740854263,
-0.1344427466392517,
-0.14395931363105774,
-0.3133157789707184,
-0.09504663199186325,
-0.23791377246379852,
0.03583771735429764,
0.18496939539909363,
-0.07829194515943527,
0.19712412357330322,
0.23298825323581696,
0.35178667306900024,
0.09669186174869537,
-0.06916753202676773,
0.22162999212741852,
0.3059597313404083,
-0.3300425410270691,
0.11082568764686584,
-0.22934642434120178,
-0.37397584319114685,
0.31553587317466736,
-0.016556400805711746,
-0.1355930119752884,
-0.03004460036754608,
-0.14324155449867249,
-0.5316035151481628,
0.11481861025094986,
-0.047293346375226974,
0.07179717719554901,
0.16369591653347015,
-0.22254464030265808,
0.1199735552072525,
0.10335391759872437,
-0.19920019805431366,
0.3342386484146118,
-0.2297881543636322,
0.18912754952907562,
-0.04126574099063873,
0.006992990151047707,
-0.36511629819869995,
0.06637020409107208,
0.18071220815181732,
0.15540221333503723,
0.15033531188964844,
-0.19908316433429718,
-0.18078750371932983,
0.4038277864456177,
-0.1873679906129837,
0.16310974955558777,
-0.19568514823913574,
-0.05841723084449768,
0.24309492111206055,
-0.24739627540111542,
-0.06984911859035492,
-0.045346129685640335,
0.17332270741462708,
0.014251701533794403,
-0.07704737037420273,
0.34091901779174805,
0.12123091518878937,
-0.21743807196617126,
0.015748627483844757,
0.20419429242610931,
0.35987788438796997,
-0.29171493649482727,
0.2594670355319977,
-0.22552461922168732,
0.46354052424430847,
-0.23634056746959686,
0.11572541296482086,
0.03737153112888336,
-0.1989537924528122,
0.2993933856487274,
0.06305369734764099,
0.006330221891403198,
0.11001840233802795,
-0.03548259288072586,
0.03148192539811134,
0.033441055566072464,
-0.07334797829389572,
0.46307292580604553,
0.24234212934970856,
0.23299540579319,
0.08397998660802841,
0.14487001299858093,
-0.22240355610847473,
-0.14423121511936188,
0.2096167802810669,
0.06387700140476227,
0.12027793377637863,
0.3854888379573822,
0.0990731418132782,
0.1486286222934723,
-0.27915695309638977,
-0.22685986757278442,
0.4535360634326935,
0.3545292317867279,
-0.06497368961572647,
-0.08710047602653503,
-0.4004334807395935,
-0.2362251877784729,
-0.24781054258346558,
0.047152526676654816,
-0.06261608004570007,
-0.08938128501176834,
0.07931104302406311,
0.37668222188949585,
0.07222002744674683,
0.07746053487062454,
-0.005353802815079689,
0.008093565702438354,
-0.0871410071849823,
0.07691141217947006,
-0.011364389210939407,
-0.0330483540892601,
-0.2678031027317047,
0.127390056848526,
0.27799978852272034,
-0.14782682061195374,
0.6885919570922852,
0.032140687108039856,
-0.21633674204349518,
-0.5223961472511292,
-0.24917283654212952,
0.037358760833740234,
0.018758950755000114,
-0.2935939431190491,
0.04391373693943024,
-0.020934052765369415,
-0.1361762285232544,
-0.27229607105255127,
0.019805993884801865,
-0.2420300394296646,
-0.48438116908073425,
0.010391240939497948,
-0.11602234840393066,
-0.0720854327082634,
-0.20302483439445496,
-0.5646247863769531,
-0.21312299370765686,
-0.24000297486782074,
0.19354888796806335,
0.04669934883713722,
0.3808448910713196,
0.24240820109844208,
-0.06738244742155075,
0.1859569400548935,
0.41959813237190247,
0.15391944348812103,
-0.19421041011810303,
-0.23946024477481842,
0.10296621918678284,
-0.2137126922607422,
-0.2867952883243561,
0.047488268464803696,
-0.15267418324947357,
0.3554932177066803,
0.004659994971007109,
-0.608931303024292,
-0.1365872025489807,
-0.214196115732193,
0.024342533200979233,
-0.186218723654747,
-0.13132640719413757,
0.3098134994506836,
0.01548079214990139,
-0.136522114276886,
-0.2190903127193451,
-0.06299269199371338,
0.28794223070144653,
0.16355949640274048,
0.3820875585079193,
-0.13816037774085999,
0.5215930938720703,
0.20620550215244293,
0.5446685552597046,
0.20924699306488037,
0.030962083488702774,
0.2792487144470215,
-0.004616638645529747,
0.019298430532217026,
-0.05509871989488602,
-0.2558484971523285,
0.005470664240419865,
-0.0831020176410675,
0.009583476930856705,
0.00929078459739685,
-0.08934015780687332,
-0.07212512940168381,
-0.04465696960687637,
0.11755289137363434,
-0.36081451177597046,
-0.33771026134490967,
-0.10467220842838287,
-0.4469052851200104,
-0.04849705845117569,
0.2157609909772873,
0.0611395388841629,
-0.21308870613574982,
-0.0070497747510671616,
0.09341637790203094,
0.020205922424793243,
-0.06889904290437698,
-0.06495179235935211,
-0.14957498013973236,
-0.01902361586689949,
-0.8308065533638,
0.2251753807067871,
0.04509884864091873,
0.28800278902053833,
-0.12437576055526733,
0.3266195058822632,
0.39356565475463867,
-0.16526876389980316,
0.39110445976257324,
-0.16763442754745483,
0.269866943359375,
0.09793679416179657,
-0.07905672490596771,
-0.1465240716934204,
-0.1656595766544342,
-0.2510339021682739,
0.08003135770559311,
0.40065905451774597,
0.35764023661613464,
-0.34976544976234436,
0.17940537631511688,
0.3486422300338745,
-0.06318892538547516,
-0.1417800933122635,
-0.2178061306476593,
0.08231286704540253,
-0.4743444323539734,
-0.481000691652298,
-0.05216517299413681,
0.043916113674640656,
0.3531838655471802,
0.09113500267267227,
-0.03041355311870575,
-0.01077648252248764,
-0.036641042679548264,
0.16654616594314575,
-0.09437541663646698,
0.11842086166143417,
0.16012035310268402,
0.6448462605476379,
0.09181487560272217,
-0.03527884930372238,
0.5881872773170471,
0.6839144825935364,
0.009393900632858276,
-0.5672091841697693,
-0.15776056051254272,
-0.10658755898475647,
-0.10101202875375748,
0.17822569608688354,
0.0908019170165062,
0.09334654361009598,
-0.20887330174446106,
-0.06466272473335266,
0.25874578952789307,
0.2643457055091858,
0.31420257687568665,
0.0723906010389328,
-0.3763008713722229,
-0.2506831884384155,
0.3191958963871002,
-0.08175815641880035,
-0.155201718211174,
0.5849037766456604,
-0.06784705817699432,
-0.10478242486715317,
0.4721505045890808,
-0.011479832231998444,
0.7160586714744568,
-0.3985788822174072,
-0.0927845686674118,
0.07311395555734634,
-0.40176552534103394,
0.606635332107544,
-0.23477596044540405,
0.1309986412525177,
-0.298712819814682,
-0.2008703202009201,
0.03992871940135956,
-0.08245143294334412,
0.022216372191905975,
0.07520656287670135,
-0.19673573970794678,
-0.08724918216466904,
0.15803417563438416,
0.08727486431598663,
0.32064083218574524,
0.3674142360687256,
-0.03196444362401962,
-0.08485141396522522,
0.11500495672225952,
0.13733051717281342,
-0.2628630995750427,
0.4060242474079132,
-0.018121086061000824,
-0.06680484861135483,
0.1028444766998291,
-0.29926633834838867,
-0.4831855893135071,
0.21736058592796326,
-0.19474443793296814,
0.3185955882072449,
-0.06214946135878563,
-0.4355202913284302,
0.1259116381406784,
0.4583158791065216,
0.3842695951461792,
0.07398448884487152,
-0.10315221548080444,
0.20489250123500824,
0.24853140115737915,
-0.11783870309591293,
-0.13500471413135529,
-0.12105269730091095,
0.13636371493339539,
-0.18447721004486084,
-0.16478468477725983,
-0.02787204086780548,
0.1377193033695221,
-0.3701801896095276,
0.06738239526748657,
0.08580026030540466,
0.1778978705406189,
0.10315854102373123,
0.10127289593219757,
0.11366921663284302,
-0.2541300058364868,
-0.436224102973938,
0.1229943335056305,
-0.046944744884967804,
-0.24311216175556183,
0.15772482752799988,
-0.03304235264658928,
-0.43834003806114197,
0.04518045485019684,
0.46981939673423767,
0.3405233919620514,
-0.02508501335978508,
0.5422227382659912,
-0.18244390189647675,
0.024518627673387527,
-0.2797749638557434,
0.1596972942352295,
0.014383766800165176,
-0.19090279936790466,
0.2175254225730896,
-0.2706024646759033,
0.19175787270069122,
-0.028045155107975006,
0.2737779915332794,
0.2958148717880249,
0.16457927227020264,
0.11275935173034668,
-0.425563246011734,
-0.25095081329345703,
0.030123285949230194,
-0.06416302919387817,
0.1341324895620346,
0.08765807002782822,
0.4184315800666809,
-0.05069832503795624,
0.2553924024105072,
-0.33563032746315,
0.14820772409439087,
-0.1318369209766388,
-0.05942045897245407,
0.17461130023002625,
-0.17171135544776917,
0.04257378354668617,
0.07189399003982544,
0.20413696765899658,
0.24372845888137817,
-0.10997871309518814,
-0.28646615147590637,
-0.2727621793746948,
0.12192550301551819,
-0.017965909093618393,
-0.008863327093422413,
-0.05679485201835632,
-0.260307639837265,
-0.1260794997215271,
0.13988730311393738,
-0.07489103078842163,
0.4401759207248688,
0.07842963188886642,
-0.16445595026016235,
0.15827544033527374,
0.24887046217918396,
-0.24606384336948395,
-0.038949526846408844,
-0.33696311712265015,
0.27504581212997437,
0.17593392729759216,
0.26759785413742065,
0.02924046851694584,
-0.12881387770175934,
-0.22964730858802795,
-0.2728816568851471,
-0.2131320685148239,
-0.1464957892894745,
0.24355584383010864,
-0.3018549680709839,
-0.042168788611888885,
0.15195488929748535,
0.24602258205413818,
0.1520499885082245,
-0.2486085295677185,
-0.16321973502635956,
0.16443529725074768,
0.2459692656993866,
-0.3797386586666107,
-0.286079078912735,
0.20329096913337708,
0.2655280828475952,
0.10338650643825531,
0.31629371643066406,
0.1810363531112671,
-0.12765656411647797,
-0.08023843169212341,
-0.06843873858451843,
0.2473835051059723,
0.04037747159600258,
0.0515412800014019,
0.23372896015644073,
-0.06135042756795883,
-0.13159973919391632,
0.20034031569957733,
0.1655680239200592,
0.24642431735992432,
0.27966955304145813,
-0.37395334243774414,
0.10082290321588516,
0.15907025337219238,
0.2548454701900482,
0.17258188128471375,
-0.27003464102745056,
0.020782964304089546,
0.053929075598716736,
-0.20695430040359497,
0.20229887962341309,
0.13905246555805206,
0.09932520985603333,
-0.2250608652830124,
-0.06419213116168976,
-0.14981286227703094,
0.11194799840450287,
-0.11649931222200394,
0.09845028817653656,
-0.48471009731292725,
-0.1465499997138977,
-0.21888916194438934,
0.17690585553646088,
0.030336521565914154,
-0.10449440777301788,
0.20717981457710266,
0.09878098964691162,
-0.3320987820625305,
-0.4219253361225128,
-0.284945547580719,
0.19377756118774414,
0.2210935354232788,
-0.44584381580352783,
0.28611913323402405,
0.14531300961971283,
-0.2279459834098816,
-0.11886429786682129,
0.4128701984882355,
0.2882540822029114,
0.13772061467170715,
-0.004457509145140648,
0.18669922649860382,
0.24326302111148834,
0.06140948086977005,
-0.06629787385463715,
0.1467689573764801,
0.38318490982055664,
0.1861082911491394,
0.2336900681257248,
0.09374585747718811,
-0.14204461872577667,
-0.04586018994450569,
0.40722793340682983,
-0.05156411603093147,
0.02601391077041626,
0.2018061876296997,
-0.1265823245048523,
-0.11345040798187256,
-0.04114939272403717,
0.16521969437599182,
-0.20652228593826294,
-0.35504546761512756,
0.08978530764579773,
0.06075482442975044,
0.13786953687667847,
0.010945819318294525,
0.11264503002166748,
-0.12174493074417114,
0.11255711317062378,
0.3411010503768921,
0.21329841017723083,
-0.42586007714271545,
-0.16143694519996643,
-0.6133245825767517,
0.38121581077575684,
-0.3473394811153412,
-0.0025534816086292267,
0.03220776468515396,
0.2755565047264099,
-0.04451494663953781,
0.0474412702023983,
0.32561081647872925,
0.020611850544810295,
-0.13623294234275818,
0.5303824543952942,
-0.3904484212398529,
-0.07948717474937439,
0.156526118516922,
-0.2918981909751892,
-0.013428756967186928,
-0.28159505128860474,
0.28255337476730347,
-0.2720334529876709,
0.02936442196369171,
0.0055844467133283615,
-0.09353360533714294,
0.21007756888866425,
-0.07036694884300232,
0.3803653419017792,
0.06225939095020294,
0.5195212364196777,
-0.030838068574666977,
-0.1754390001296997,
0.09449782967567444,
-0.01127403974533081,
-0.39461642503738403,
0.18183311820030212,
0.3479686379432678,
0.2045309990644455,
-0.09176839888095856,
-0.04745278134942055,
0.029755467548966408,
0.4856366217136383,
0.20239241421222687,
-0.15209326148033142,
-0.30988720059394836,
0.06157094985246658,
-0.22549346089363098,
0.10065852105617523,
0.00826298352330923,
0.3684365451335907,
0.06007983535528183,
0.19218263030052185,
-0.3377583622932434,
-0.48127281665802,
0.5101735591888428,
-0.20887388288974762,
-0.0934792309999466,
-0.16106657683849335,
0.37509578466415405,
0.058628059923648834,
-0.07815221697092056,
-0.4696171283721924,
-0.11142120510339737,
0.3627082109451294,
-0.41146644949913025,
-0.21397645771503448,
-0.03889443352818489,
-0.0612027607858181,
0.037003446370363235,
-0.06163409352302551,
0.5893383026123047,
-0.026027075946331024,
-0.22749309241771698,
0.287564218044281,
-0.22189836204051971
] |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Hi ! Do you have an example in mind that shows how this could be useful ? | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 17 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Hi ! Do you have an example in mind that shows how this could be useful ? | [
-0.41881972551345825,
-0.11185480654239655,
-0.021109482273459435,
0.16497811675071716,
0.44314831495285034,
-0.07371622323989868,
0.5200483202934265,
0.025510700419545174,
-0.00009145401418209076,
-0.06128983199596405,
0.13835740089416504,
0.35540589690208435,
-0.36642831563949585,
0.18168532848358154,
0.14372287690639496,
-0.1267322450876236,
-0.019303008913993835,
0.3366386890411377,
-0.3813779056072235,
-0.14552190899848938,
-0.18102078139781952,
-0.365358829498291,
-0.16670235991477966,
0.020922645926475525,
-0.18708764016628265,
-0.07787275314331055,
-0.032445184886455536,
-0.48121756315231323,
-0.033489711582660675,
-0.08909803628921509,
0.7275012731552124,
0.049632612615823746,
-0.01562652550637722,
0.6457784175872803,
-0.00011804081441368908,
-0.1917838752269745,
0.09638713300228119,
-0.0768374502658844,
0.07401786744594574,
-0.392630934715271,
-0.47024914622306824,
-0.09310032427310944,
0.03848039358854294,
-0.27040162682533264,
-0.4740883409976959,
-0.0527886226773262,
-0.03906792402267456,
-0.05446142330765724,
0.4018719792366028,
0.138998344540596,
0.17207235097885132,
-0.4391120374202728,
-0.13842597603797913,
-0.12190201878547668,
-0.07935266941785812,
0.444463849067688,
-0.2869964838027954,
-0.13274145126342773,
0.19047527015209198,
0.30426475405693054,
0.04844263195991516,
-0.02562842331826687,
-0.04942936450242996,
-0.15038248896598816,
0.7289848327636719,
-0.13782016932964325,
0.1042373776435852,
-0.44187161326408386,
-0.17863953113555908,
0.4444395899772644,
0.7537171840667725,
-0.3168220520019531,
-0.16756607592105865,
-0.16340848803520203,
0.2200717180967331,
0.2761264741420746,
-0.02315109223127365,
0.20091375708580017,
-0.0280606746673584,
0.2865287959575653,
-0.2226814329624176,
-0.257495254278183,
-0.42249608039855957,
0.03227431699633598,
-0.520164966583252,
0.1166953593492508,
-0.06819111853837967,
0.008746828883886337,
0.009133532643318176,
-0.05263411998748779,
0.265805721282959,
0.06938629597425461,
0.11794239282608032,
0.1734822541475296,
-0.13983669877052307,
-0.5531541109085083,
-0.34619900584220886,
0.21373507380485535,
-0.11309671401977539,
-0.005009211599826813,
-0.14446088671684265,
-0.15903767943382263,
0.10091830790042877,
-0.0037090033292770386,
-0.04535264894366264,
0.2560715079307556,
0.04442421346902847,
0.2834717929363251,
0.15481188893318176,
-0.33299896121025085,
-0.1865011304616928,
0.1489243507385254,
0.00449686823412776,
-0.14534403383731842,
0.12781523168087006,
0.08482088148593903,
0.07673504948616028,
-0.1519828736782074,
0.059555232524871826,
-0.2803955674171448,
-0.019367380067706108,
0.04588455706834793,
-0.13188527524471283,
0.04307316616177559,
0.18125556409358978,
0.07920105755329132,
0.1768166422843933,
0.245832622051239,
0.23447759449481964,
-0.22858168184757233,
0.06171584501862526,
0.25112855434417725,
-0.2971735894680023,
-0.13998554646968842,
0.03754260018467903,
0.163911372423172,
-0.2676424980163574,
0.006230351515114307,
-0.12349855899810791,
0.38049039244651794,
-0.00012092478573322296,
-0.26225221157073975,
0.14762043952941895,
0.29598093032836914,
-0.5519158244132996,
-0.21851950883865356,
0.15826860070228577,
-0.17859849333763123,
-0.22526270151138306,
0.46311330795288086,
-0.19851791858673096,
0.023116443306207657,
0.09012669324874878,
0.17781352996826172,
-0.03369796276092529,
0.0682864561676979,
-0.16854748129844666,
0.33712828159332275,
0.04450518637895584,
-0.11007703840732574,
0.1710587590932846,
-0.39612627029418945,
-0.10473669320344925,
-0.1422397494316101,
-0.09998727589845657,
0.09168724715709686,
-0.6140998005867004,
-0.3623420298099518,
-0.17605550587177277,
-0.07487058639526367,
0.11735799163579941,
0.06891459226608276,
-0.22854870557785034,
0.3040563464164734,
-0.14126640558242798,
-0.1797802597284317,
0.6639195680618286,
0.0727628618478775,
-0.27186474204063416,
0.2040671557188034,
-0.5375033617019653,
-0.13424603641033173,
0.14890965819358826,
0.39130985736846924,
0.24205714464187622,
-0.21895474195480347,
-0.5890004634857178,
0.23511622846126556,
-0.04817725718021393,
-0.1363942176103592,
0.0984601229429245,
-0.1721857339143753,
0.586936354637146,
0.020744916051626205,
0.2949218451976776,
0.46515071392059326,
0.1826668381690979,
0.5072154998779297,
-0.14355811476707458,
-0.3711577355861664,
0.23930323123931885,
-0.08109865337610245,
0.44712692499160767,
-0.045060791075229645,
0.0037968559190630913,
-0.39308658242225647,
-0.007308408617973328,
-0.12235144525766373,
-0.0850006714463234,
0.133142352104187,
0.37024837732315063,
-0.09066255390644073,
0.022119801491498947,
-0.3194076716899872,
-0.1461208462715149,
-0.11931142210960388,
0.14471477270126343,
-0.3999897539615631,
0.28016653656959534,
-0.26517340540885925,
-0.10513124614953995,
0.4493667185306549,
0.0060814376920461655,
0.060068272054195404,
-0.4010303318500519,
0.29319271445274353,
0.08193069696426392,
0.22274847328662872,
-0.3591737449169159,
-0.04498640447854996,
-0.1441906988620758,
-0.19693109393119812,
-0.10154468566179276,
-0.18366393446922302,
-0.05840402469038963,
-0.05127817392349243,
0.00851970911026001,
0.4392886757850647,
0.2763771414756775,
-0.4933920204639435,
0.4896824061870575,
0.07931986451148987,
0.09571875631809235,
-0.19397792220115662,
-0.3488173186779022,
0.47205573320388794,
-0.15012770891189575,
0.25031405687332153,
-0.32073211669921875,
0.03624314069747925,
0.18632327020168304,
-0.43356987833976746,
-0.1252279132604599,
-0.09077508002519608,
-0.045994896441698074,
0.028086697682738304,
0.1391770839691162,
0.20288534462451935,
0.019478917121887207,
-0.10247550159692764,
-0.0012699365615844727,
-0.09498386085033417,
0.290439635515213,
0.4638144075870514,
-0.23570623993873596,
0.26534074544906616,
-0.2432367503643036,
0.5296253561973572,
0.6370877027511597,
0.15562067925930023,
-0.2533015012741089,
0.22747915983200073,
0.09587176889181137,
-0.15038451552391052,
0.28067269921302795,
-0.0943116843700409,
0.2716951370239258,
0.03509741276502609,
-0.15714570879936218,
0.13692177832126617,
0.07075842469930649,
-0.3582983911037445,
-0.0043877605348825455,
0.19408103823661804,
-0.10778895020484924,
0.045918069779872894,
-0.18414102494716644,
-0.09737692773342133,
-0.3303298056125641,
0.06595141440629959,
0.07209683209657669,
0.14699861407279968,
-0.09452420473098755,
-0.07283225655555725,
0.2812086045742035,
0.06617400795221329,
-0.08332797884941101,
0.26073113083839417,
0.23674331605434418,
-0.05793650448322296,
-0.1471118927001953,
-0.07016807794570923,
0.07776904106140137,
0.15805824100971222,
-0.1741783320903778,
0.016990063712000847,
0.25427961349487305,
-0.342202752828598,
0.13138051331043243,
-0.09901854395866394,
-0.4404471516609192,
-0.011938177049160004,
0.05660230666399002,
0.16734100878238678,
0.34222155809402466,
0.02478501945734024,
-0.08968448638916016,
0.049369312822818756,
-0.020710326731204987,
0.04608677327632904,
-0.18600334227085114,
-0.015751216560602188,
-0.2754969596862793,
0.23329533636569977,
0.0840454250574112,
-0.24507716298103333,
-0.27033624053001404,
-0.10526655614376068,
0.1708032190799713,
0.05757787451148033,
-0.0584610179066658,
0.011633943766355515,
0.08250174671411514,
-0.019699763506650925,
0.016059504821896553,
0.15711969137191772,
-0.09403905272483826,
0.036075662821531296,
0.27733874320983887,
0.08925282210111618,
-0.11801105737686157,
-0.16550226509571075,
-0.2728358209133148,
-0.08584795892238617,
0.2958499789237976,
-0.31100064516067505,
0.001026158221065998,
-0.11238102614879608,
0.022187594324350357,
-0.08386029303073883,
-0.14564527571201324,
0.5014486312866211,
0.05097593739628792,
0.02375301532447338,
-0.021803058683872223,
0.06575800478458405,
-0.07431446760892868,
0.18657246232032776,
0.3480321764945984,
0.1766141653060913,
0.4494113624095917,
-0.016608191654086113,
0.22545841336250305,
-0.34241393208503723,
-0.4381716549396515,
-0.2640428841114044,
0.05380939692258835,
-0.004279609769582748,
0.10790633410215378,
-0.41741833090782166,
0.2436748594045639,
0.2311609983444214,
-0.30492138862609863,
-0.012119941413402557,
-0.08343406021595001,
-0.2215757668018341,
-0.16622477769851685,
-0.2121591717004776,
0.04787552356719971,
-0.07027500867843628,
0.01712408848106861,
-0.20957529544830322,
-0.06293579190969467,
-0.1967495232820511,
-0.04942246153950691,
0.12609218060970306,
-0.1038438230752945,
0.029248718172311783,
0.5218978524208069,
0.1103510707616806,
-0.04523038491606712,
-0.024213362485170364,
0.024874193593859673,
0.25431931018829346,
-0.09878844022750854,
-0.2955639064311981,
0.020069289952516556,
-0.0834713950753212,
0.056851573288440704,
-0.004699826240539551,
0.19228008389472961,
0.7796655297279358,
-0.05513402819633484,
0.19615624845027924,
0.1951417177915573,
-0.37990593910217285,
-0.20249702036380768,
0.05599142238497734,
-0.28587135672569275,
-0.17673662304878235,
0.011388584971427917,
0.0822407603263855,
-0.07985132932662964,
-0.12255847454071045,
0.10506521910429001,
0.27618172764778137,
-0.29477715492248535,
-0.3678513765335083,
0.1842411607503891,
0.008706171065568924,
-0.2560679614543915,
0.2149035930633545,
0.03230307251214981,
-0.1509322226047516,
-0.12190781533718109,
-0.05973317474126816,
-0.3734531104564667,
-0.0020949579775333405,
0.31037378311157227,
-0.1419571340084076,
-0.17178305983543396,
-0.09935447573661804,
0.2183595597743988,
0.00021307915449142456,
0.23024041950702667,
0.0964578241109848,
-0.03259614109992981,
0.201059028506279,
-0.5295644998550415,
0.04635334014892578,
0.010305061005055904,
0.2909167408943176,
-0.21279674768447876,
0.04905816540122032,
-0.07316247373819351,
-0.09935307502746582,
0.24895276129245758,
-0.17136789858341217,
0.05671431124210358,
-0.06794852763414383,
0.04333609342575073,
-0.2862595319747925,
-0.39913520216941833,
0.3170525133609772,
0.19240428507328033,
-0.13701231777668,
-0.029917344450950623,
-0.0295858234167099,
-0.5042581558227539,
0.19775895774364471,
0.5593016147613525,
0.9863254427909851,
0.1159876361489296,
0.13852253556251526,
-0.11276067048311234,
-0.031207427382469177,
0.4583590626716614,
-0.11649007350206375,
-0.058219075202941895,
-0.29653847217559814,
-0.39263248443603516,
-0.23659397661685944,
-0.30422088503837585,
0.39925023913383484,
0.5360766649246216,
-0.5129192471504211,
0.25852903723716736,
-0.37171775102615356,
-0.08380694687366486,
0.22416651248931885,
-0.10479982197284698,
0.3480708599090576,
-0.35774314403533936,
0.04610390588641167,
0.16791561245918274,
-0.08825407922267914,
0.2601303160190582,
0.030857648700475693,
-0.16750198602676392,
-0.07120084762573242,
0.28085654973983765,
-0.0880775973200798,
-0.06897054612636566,
-0.2679654657840729,
-0.1455814242362976,
-0.2007419317960739,
-0.43437814712524414,
0.8832833766937256,
0.3755267858505249,
0.21613605320453644,
0.22574569284915924,
-0.1638491153717041,
0.04650828614830971,
-0.07440432161092758,
0.30899351835250854,
0.00028963712975382805,
-0.18428738415241241,
0.45559248328208923,
-0.045895908027887344,
-0.08584705740213394,
0.06826650351285934,
0.012259186245501041,
-0.11869337409734726,
0.2134861946105957,
-0.17560221254825592,
0.11995388567447662,
-0.3734203279018402,
-0.01966562122106552,
0.033097703009843826,
0.018280301243066788,
-0.008691880851984024,
0.1461736112833023,
0.32128840684890747,
-0.035991061478853226,
0.4378368854522705,
0.35995960235595703,
-0.2925545573234558,
-0.09265974164009094,
0.15254098176956177,
0.5887402296066284,
0.05939386039972305,
0.12736642360687256,
-0.3841591477394104,
-0.3116018772125244,
-0.38537493348121643,
0.2694804072380066,
-0.058814242482185364,
-0.254247784614563,
0.22761030495166779,
0.06993062049150467,
0.022933050990104675,
-0.006897721439599991,
-0.33772656321525574,
0.25927573442459106,
0.29405415058135986,
-0.3691018521785736,
-0.4159673750400543,
-0.35631370544433594,
-0.204651340842247,
0.09089802205562592,
0.07098250836133957,
-0.0747281163930893,
0.1950053721666336,
0.35952264070510864,
0.022315962240099907,
-0.31310492753982544,
-0.05368678271770477,
0.004886293783783913,
0.11693110316991806,
0.1778046041727066,
0.16549664735794067,
-0.3920321464538574,
0.1679161936044693,
0.01831592060625553,
-0.09339310228824615,
-0.1448340117931366,
-0.19754153490066528,
-0.17095835506916046,
0.15066270530223846,
0.15068337321281433,
0.2185850739479065,
-0.1473587304353714,
0.04010940343141556,
-0.0144193135201931,
0.10926482826471329,
-0.0177836362272501,
0.22909829020500183,
-0.05778364837169647,
0.3751969337463379,
0.44899916648864746,
-0.2798539698123932,
-0.46485209465026855,
0.05322824418544769,
0.07201385498046875,
-0.006777405738830566,
-0.15879365801811218,
0.2750157117843628,
0.09910234808921814,
0.0945451557636261,
-0.5071008205413818,
0.032036807388067245,
0.0995946004986763,
-0.06159067898988724,
0.4186534881591797,
-0.007899552583694458,
0.4520023465156555,
0.5059019327163696,
-0.04416308179497719,
0.05014481022953987,
-0.19266566634178162,
0.013905150815844536,
0.25092026591300964,
0.15459808707237244,
-0.3792203664779663,
0.13635669648647308,
0.2737792432308197,
0.016039682552218437,
-0.04809432104229927,
0.2951911687850952,
-0.0435873419046402,
0.08830083906650543,
-0.07070592045783997,
-0.10387805104255676,
0.41840219497680664,
-0.36031949520111084,
0.2763783037662506,
0.6955443024635315,
-0.27418437600135803,
-0.000025484710931777954,
0.5876777768135071,
0.029415540397167206,
-0.05347882956266403,
0.34871965646743774,
0.16481205821037292,
0.3593233823776245,
0.11409890651702881,
-0.07635219395160675,
0.2673565447330475,
0.27057909965515137,
0.11857007443904877,
0.6662789583206177,
-0.0775698870420456,
-0.18246081471443176,
0.13055548071861267,
-0.18517738580703735,
-0.03667178750038147,
-0.24047310650348663,
-0.046063877642154694,
0.15598225593566895,
-0.23953568935394287,
0.3208656907081604,
-0.20139449834823608,
-0.0566178560256958,
0.12622283399105072,
-0.340204119682312,
-0.16031712293624878,
-0.25487810373306274,
0.3563574552536011,
0.12667718529701233,
0.05375991389155388,
0.2256069779396057,
0.35044142603874207,
0.06690298765897751,
0.08717946708202362,
-0.08892673254013062,
-0.25964051485061646,
0.11785701662302017,
0.12170889973640442,
0.1699090451002121,
0.5181457996368408,
0.03592616692185402,
0.18658088147640228,
-0.049604881554841995,
0.05858764052391052,
-0.1713820844888687,
-0.24734565615653992,
0.09499093145132065,
0.2725585103034973,
-0.2967212498188019,
-0.15805625915527344,
0.18447227776050568,
0.20329280197620392,
-0.12133017182350159,
0.42227858304977417,
0.03669273480772972,
0.20910322666168213,
-0.2514110505580902,
0.39763039350509644,
0.30675646662712097,
-0.18231312930583954,
-0.10094358026981354,
0.19983935356140137,
0.03937540203332901,
-0.0032950034365057945,
0.4314263164997101,
-0.4219203591346741,
-0.02423577755689621,
-0.0415412038564682,
0.0387020967900753,
0.21408763527870178,
0.13128221035003662,
0.018133528530597687,
0.014985356479883194,
-0.015118998475372791,
0.0497831255197525,
-0.3194950520992279,
0.20273038744926453,
0.16578306257724762,
0.018509218469262123,
-0.1336497962474823,
-0.20754793286323547,
0.009698145091533661,
0.2501331865787506,
0.05542587488889694,
-0.1713773012161255,
-0.1410386860370636,
0.20183701813220978,
-0.0365416519343853,
-0.027834076434373856,
0.15392635762691498,
0.4283742904663086,
0.022340349853038788,
-0.2247018814086914,
0.07162252813577652,
0.29971522092819214,
0.026411443948745728,
-0.032923974096775055,
0.35139042139053345,
0.03854327276349068,
0.29778873920440674,
0.207515686750412,
0.04201764613389969,
0.6284475326538086,
-0.05375920981168747,
0.37998858094215393,
0.5167906284332275,
-0.03326048702001572,
-0.23738457262516022,
0.2958488166332245,
0.20155346393585205,
-0.21416105329990387,
-0.24493204057216644,
-0.10700175166130066,
0.1380840688943863,
-0.23639120161533356,
0.006223559379577637,
0.0604805052280426,
-0.8246729373931885,
0.04155000299215317,
-0.1709619164466858,
-0.11131030321121216,
0.11977659165859222,
0.027488159015774727,
-0.06765079498291016,
-0.06712295114994049,
-0.05248330533504486,
-0.1298253983259201,
0.28560927510261536,
0.07810663431882858,
-0.3340092897415161,
-0.17240731418132782,
-0.0688871294260025,
-0.3314652144908905,
0.12221723794937134,
-0.0650879517197609,
-0.0006409138441085815,
0.4729187488555908,
-0.06968364119529724,
0.383111834526062,
0.05829362943768501,
-0.07388132810592651,
-0.09924833476543427,
-0.23022179305553436,
0.636976957321167,
-0.26218223571777344,
0.0422271266579628,
-0.22691018879413605,
-0.0962071567773819
] |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Example:
Merge 2 datasets into one datasets
Label extraction from dataset
dataset(text, label)
—> dataset(text, newlabel)
TextCleaning.
For image dataset,
Transformation are easier (ie linear algebra).
> On Jul 6, 2021, at 17:39, Quentin Lhoest ***@***.***> wrote:
>
>
> Hi ! Do you have an example in mind that shows how this could be useful ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
| Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 83 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Example:
Merge 2 datasets into one datasets
Label extraction from dataset
dataset(text, label)
—> dataset(text, newlabel)
TextCleaning.
For image dataset,
Transformation are easier (ie linear algebra).
> On Jul 6, 2021, at 17:39, Quentin Lhoest ***@***.***> wrote:
>
>
> Hi ! Do you have an example in mind that shows how this could be useful ?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
| [
-0.4854307472705841,
0.1529313325881958,
-0.08863990753889084,
0.18962793052196503,
0.4006465673446655,
0.10685030370950699,
0.5075282454490662,
0.1244744211435318,
-0.011683113873004913,
-0.0620449036359787,
0.05338241904973984,
0.3345322012901306,
-0.35074323415756226,
0.18758203089237213,
0.0721605122089386,
-0.1314888745546341,
-0.02831099182367325,
0.31800970435142517,
-0.44351205229759216,
-0.12158971279859543,
-0.21722573041915894,
-0.24520008265972137,
-0.2043323814868927,
-0.03501749038696289,
-0.2736254632472992,
-0.1387133151292801,
-0.11187076568603516,
-0.2744329273700714,
-0.12857341766357422,
0.003241132013499737,
0.5669196844100952,
0.21555103361606598,
-0.07129623740911484,
0.5656964778900146,
-0.00011136318789795041,
-0.12790238857269287,
0.11005974560976028,
-0.008048620074987411,
-0.13629181683063507,
-0.39961421489715576,
-0.4163694381713867,
-0.06039644777774811,
-0.039647094905376434,
-0.29179099202156067,
-0.266445517539978,
-0.1854076087474823,
0.023775575682520866,
-0.06451500952243805,
0.4134104251861572,
0.07513859868049622,
0.21365408599376678,
-0.420710951089859,
-0.08132008463144302,
-0.1326422542333603,
-0.07253294438123703,
0.4323444366455078,
-0.15735656023025513,
-0.0739583671092987,
0.25593334436416626,
0.27749401330947876,
-0.005224503576755524,
0.22310185432434082,
-0.10980764776468277,
-0.21184754371643066,
0.659743070602417,
-0.08687295764684677,
-0.051890529692173004,
-0.3680221736431122,
-0.1720115840435028,
0.30207154154777527,
0.6202868819236755,
-0.4165477156639099,
-0.2718207836151123,
-0.23530864715576172,
0.31795263290405273,
0.1380976289510727,
-0.09366407245397568,
0.1536031812429428,
-0.02915244922041893,
0.2862280011177063,
-0.3013942837715149,
-0.3070755898952484,
-0.31266459822654724,
0.07691320031881332,
-0.3927907943725586,
0.18383264541625977,
-0.018702838569879532,
0.07870623469352722,
0.026106469333171844,
-0.012061409652233124,
0.2786215543746948,
0.02867431566119194,
0.17349068820476532,
0.13025088608264923,
-0.15759286284446716,
-0.4430971145629883,
-0.3470892608165741,
-0.01647172123193741,
-0.1724005937576294,
0.0820525735616684,
-0.06693720072507858,
-0.1407572627067566,
0.00015070661902427673,
0.0678737610578537,
-0.0976172685623169,
0.2801893651485443,
0.07562510669231415,
0.28350967168807983,
0.09272485226392746,
-0.2981131374835968,
-0.13427922129631042,
0.2335570752620697,
-0.1500685065984726,
-0.18283547461032867,
0.08238790929317474,
0.07516360282897949,
0.08817525207996368,
0.06075677648186684,
0.007931744679808617,
-0.37050312757492065,
0.010208096355199814,
0.010421067476272583,
-0.15925678610801697,
0.011426933109760284,
0.21353600919246674,
0.05374119430780411,
0.22687794268131256,
0.19773735105991364,
0.27815306186676025,
-0.29101768136024475,
0.0033116680569946766,
0.3380628228187561,
-0.3129459321498871,
-0.15538138151168823,
0.05730556324124336,
0.09892508387565613,
-0.31751468777656555,
-0.006845817901194096,
-0.24449117481708527,
0.3860972821712494,
-0.01047644391655922,
-0.24803024530410767,
0.2561531960964203,
0.19992415606975555,
-0.44744977355003357,
-0.13089805841445923,
0.15153349936008453,
-0.20377930998802185,
-0.20861834287643433,
0.3421449065208435,
-0.195741206407547,
0.16296353936195374,
0.06557656079530716,
0.236557275056839,
0.11480174958705902,
0.031650882214307785,
-0.29805317521095276,
0.39044493436813354,
0.011353820562362671,
-0.06307585537433624,
0.10277736932039261,
-0.31528663635253906,
-0.06384551525115967,
-0.07782572507858276,
-0.07142093777656555,
0.1344812959432602,
-0.6597022414207458,
-0.3752606511116028,
-0.08923880755901337,
-0.04004376754164696,
0.025739170610904694,
0.17851018905639648,
-0.16793718934059143,
0.3726206421852112,
-0.11667685955762863,
-0.20428407192230225,
0.7212466597557068,
-0.06591769307851791,
-0.19491323828697205,
0.15814416110515594,
-0.5203288793563843,
-0.19140402972698212,
0.16405290365219116,
0.3704347610473633,
0.25961852073669434,
-0.17473019659519196,
-0.45526084303855896,
0.3597726821899414,
-0.13519348204135895,
-0.13348059356212616,
0.1524549424648285,
-0.283142626285553,
0.4489610195159912,
0.1342538595199585,
0.27272698283195496,
0.2775532901287079,
0.08476997911930084,
0.41581231355667114,
-0.14018982648849487,
-0.44040465354919434,
0.2843722701072693,
0.04014601930975914,
0.3044767677783966,
-0.12694869935512543,
-0.032850656658411026,
-0.3859136700630188,
-0.11052080243825912,
-0.1262238323688507,
0.0478568896651268,
0.1563093066215515,
0.2692357301712036,
-0.05149184539914131,
-0.05097928270697594,
-0.2854633629322052,
-0.16288673877716064,
-0.22486525774002075,
0.20877984166145325,
-0.34000369906425476,
0.2504790425300598,
-0.31470033526420593,
-0.07456965744495392,
0.5503130555152893,
0.03704538196325302,
0.21372810006141663,
-0.5016193985939026,
0.32242289185523987,
0.04493873566389084,
0.20223884284496307,
-0.32858604192733765,
0.04715520143508911,
-0.26167675852775574,
-0.20032452046871185,
0.002498201560229063,
-0.13452252745628357,
-0.09608455002307892,
-0.04626128077507019,
0.09162462502717972,
0.34880512952804565,
0.31091004610061646,
-0.43743520975112915,
0.35713106393814087,
-0.0832555890083313,
0.19658920168876648,
-0.17481741309165955,
-0.403409868478775,
0.3144293427467346,
-0.22896699607372284,
0.28993257880210876,
-0.17747586965560913,
0.05087118595838547,
0.1357768177986145,
-0.3550787568092346,
-0.11696111410856247,
-0.14954546093940735,
-0.06055935099720955,
-0.007577128708362579,
0.25073325634002686,
0.2566908299922943,
0.0911048948764801,
-0.0859345868229866,
0.14854685962200165,
-0.06722608953714371,
0.22107574343681335,
0.38683298230171204,
-0.28764262795448303,
0.22639954090118408,
-0.20820732414722443,
0.558770477771759,
0.44721585512161255,
0.235689178109169,
-0.25601524114608765,
0.23048292100429535,
0.10215473175048828,
-0.07363975793123245,
0.2621406614780426,
0.026759818196296692,
0.44270938634872437,
-0.01327688992023468,
-0.044140249490737915,
0.21165597438812256,
0.04423794895410538,
-0.4906042516231537,
0.08058676868677139,
0.10660088062286377,
-0.020709076896309853,
0.004888415336608887,
-0.180695578455925,
-0.1815151572227478,
-0.4042205810546875,
0.15406599640846252,
0.03768061101436615,
-0.06111244112253189,
-0.08800365030765533,
-0.07290218770503998,
0.10770729184150696,
0.1231752261519432,
0.06671717762947083,
0.22310416400432587,
0.23783640563488007,
-0.15400049090385437,
-0.058220699429512024,
-0.11083272099494934,
0.05761466175317764,
0.19075097143650055,
-0.0666935071349144,
0.042916081845760345,
0.38644570112228394,
-0.3671724498271942,
0.23922915756702423,
-0.14112624526023865,
-0.5004367828369141,
0.1360854208469391,
-0.024694018065929413,
0.0368477888405323,
0.37807154655456543,
-0.08697012066841125,
-0.1010199785232544,
-0.04032334312796593,
0.022689631208777428,
0.05770035833120346,
-0.2035498023033142,
0.004540489986538887,
-0.23006466031074524,
0.07991093397140503,
0.043502066284418106,
-0.22631379961967468,
-0.3054024875164032,
-0.21694137156009674,
0.22145019471645355,
-0.01289844885468483,
-0.04391927272081375,
0.02343418076634407,
0.15077535808086395,
0.03176041319966316,
-0.08101566135883331,
0.16767312586307526,
-0.08090619742870331,
0.03904881700873375,
0.17362023890018463,
0.12728144228458405,
-0.09196130931377411,
-0.27837198972702026,
-0.3630920648574829,
0.023473845794796944,
0.3173167109489441,
-0.23527301847934723,
0.014671067707240582,
-0.14551633596420288,
0.04554357752203941,
-0.007651656866073608,
-0.078757643699646,
0.516715407371521,
0.1359914243221283,
-0.025053657591342926,
-0.04488702863454819,
0.004079390317201614,
-0.08321914821863174,
0.04592851549386978,
0.12903431057929993,
0.0709368884563446,
0.3557409644126892,
0.043462518602609634,
0.25244712829589844,
-0.19932007789611816,
-0.3729279041290283,
-0.29994603991508484,
0.1988694965839386,
0.09983380138874054,
0.0715787336230278,
-0.48462310433387756,
0.26655733585357666,
0.12568657100200653,
-0.2803899049758911,
-0.06436355412006378,
-0.07264798134565353,
-0.1584719866514206,
-0.16526655852794647,
-0.08324669301509857,
-0.12824107706546783,
-0.11571381986141205,
0.12148237228393555,
-0.1738652139902115,
-0.06069750338792801,
-0.13480158150196075,
-0.11010444164276123,
0.06933397054672241,
0.05609133094549179,
0.01246444322168827,
0.4534652829170227,
0.043996911495923996,
-0.018561838194727898,
-0.14299273490905762,
0.053780991584062576,
0.2013118863105774,
-0.01984061300754547,
-0.16492323577404022,
-0.019235819578170776,
-0.023330964148044586,
0.01385989785194397,
-0.16047875583171844,
0.11670469492673874,
0.8743844628334045,
-0.10534612089395523,
0.039214521646499634,
0.17543888092041016,
-0.32159122824668884,
-0.24803192913532257,
0.03423799201846123,
-0.37157875299453735,
-0.30557981133461,
0.06145085021853447,
0.2085670828819275,
-0.1138121709227562,
-0.12568403780460358,
0.3286087214946747,
0.30078092217445374,
-0.18762357532978058,
-0.24295105040073395,
0.22645898163318634,
-0.06087559461593628,
-0.39767715334892273,
0.06340203434228897,
0.09865941107273102,
0.018280450254678726,
-0.1287330538034439,
-0.015914417803287506,
-0.32869431376457214,
-0.078656405210495,
0.3200699985027313,
-0.08871063590049744,
-0.16689088940620422,
-0.08836784958839417,
0.1926548331975937,
-0.0395868644118309,
0.22572632133960724,
0.1378193497657776,
0.11934905499219894,
0.02749834768474102,
-0.6537032127380371,
0.17152664065361023,
0.05056679621338844,
0.4162433445453644,
-0.1999129056930542,
0.03447606787085533,
-0.16581422090530396,
-0.0921521708369255,
0.22525085508823395,
-0.29541996121406555,
0.12159094214439392,
-0.03437682241201401,
0.14897622168064117,
-0.420434832572937,
-0.3190876841545105,
0.2972900867462158,
0.2758484482765198,
-0.1264449506998062,
0.036237381398677826,
-0.10705606639385223,
-0.49728769063949585,
0.20067735016345978,
0.49482765793800354,
0.8818394541740417,
-0.017355680465698242,
0.23648427426815033,
-0.04857104271650314,
-0.2004314363002777,
0.5380051136016846,
-0.003237813711166382,
-0.020132608711719513,
-0.28224676847457886,
-0.3579156696796417,
-0.1545637845993042,
-0.2693384885787964,
0.32933634519577026,
0.5125811696052551,
-0.5189641118049622,
0.23955465853214264,
-0.21726518869400024,
-0.0057561956346035,
0.19216640293598175,
0.0804130882024765,
0.2758335769176483,
-0.5404215455055237,
0.021334700286388397,
0.18453863263130188,
-0.002810634672641754,
0.1811758428812027,
-0.010337630286812782,
-0.17433039844036102,
-0.14442987740039825,
0.2676253318786621,
-0.14159244298934937,
-0.0099303238093853,
-0.2488073855638504,
-0.0028000958263874054,
-0.16350600123405457,
-0.3484611511230469,
0.6934306621551514,
0.25554391741752625,
0.21477298438549042,
0.22177857160568237,
-0.05785580724477768,
-0.013601001352071762,
-0.1644584834575653,
0.3608773946762085,
0.03700712323188782,
-0.3177412450313568,
0.5784921646118164,
0.03488204628229141,
0.06118730455636978,
0.040361955761909485,
0.045564621686935425,
-0.08435304462909698,
0.10054905712604523,
-0.15194404125213623,
0.1185915619134903,
-0.33257412910461426,
-0.025045590475201607,
0.10562283545732498,
-0.009645402431488037,
-0.11249502003192902,
0.14914461970329285,
0.23612158000469208,
0.04162922501564026,
0.2985835075378418,
0.29074352979660034,
-0.339358389377594,
-0.029011592268943787,
0.15575578808784485,
0.5326736569404602,
-0.0060438476502895355,
0.20886196196079254,
-0.2699057459831238,
-0.2365807145833969,
-0.40265265107154846,
0.26716190576553345,
0.11954118311405182,
-0.3909739553928375,
0.30624157190322876,
-0.03936487063765526,
-0.06122950464487076,
0.04923186078667641,
-0.3851854205131531,
0.30855268239974976,
0.26173049211502075,
-0.2858158349990845,
-0.35280895233154297,
-0.3455176055431366,
-0.038141489028930664,
0.11074693500995636,
0.10793223977088928,
0.00007589533925056458,
0.357280433177948,
0.24430522322654724,
0.037587620317935944,
-0.37801921367645264,
-0.07535213232040405,
-0.025206308811903,
0.07985293120145798,
0.16354872286319733,
0.07653620839118958,
-0.3550304174423218,
0.10565237700939178,
0.08269952982664108,
-0.07145331799983978,
-0.16293925046920776,
-0.27784955501556396,
-0.17338299751281738,
0.12104643136262894,
0.09080978482961655,
0.22928278148174286,
-0.0004710960201919079,
0.12548203766345978,
-0.03140276297926903,
-0.046861473470926285,
0.06337057054042816,
0.07096242904663086,
-0.045940496027469635,
0.2866387665271759,
0.24124208092689514,
-0.19019967317581177,
-0.3151243329048157,
0.07310479879379272,
0.03517726808786392,
-0.05563428997993469,
-0.19574449956417084,
0.3596332371234894,
0.1982058882713318,
0.09169062972068787,
-0.4791555404663086,
0.07730057090520859,
0.16452476382255554,
-0.08975555747747421,
0.3933238089084625,
-0.07313269376754761,
0.39167189598083496,
0.4886704981327057,
0.08665838837623596,
-0.06322558224201202,
-0.16469572484493256,
0.0011307727545499802,
0.10729603469371796,
0.21241877973079681,
-0.39235547184944153,
0.10344237089157104,
0.27674272656440735,
0.03795661777257919,
0.03269464150071144,
0.21008312702178955,
-0.13459648191928864,
0.23817723989486694,
-0.11697570979595184,
-0.0781984031200409,
0.4796936810016632,
-0.33709657192230225,
0.36420738697052,
0.6463413834571838,
-0.14794333279132843,
0.0617971271276474,
0.49650007486343384,
0.0711716040968895,
-0.019574470818042755,
0.34927523136138916,
0.09803803265094757,
0.4678322672843933,
0.005632136017084122,
-0.00619107112288475,
0.4555329978466034,
0.1775171160697937,
0.1988162249326706,
0.6114428639411926,
-0.06006680428981781,
-0.028299041092395782,
0.023946113884449005,
-0.14313799142837524,
-0.056723739951848984,
-0.32464301586151123,
0.02775321714580059,
0.29888322949409485,
-0.2211223542690277,
0.33212628960609436,
-0.13918370008468628,
-0.08116772025823593,
0.07641716301441193,
-0.34673061966896057,
-0.2239052951335907,
-0.3499310612678528,
0.369211882352829,
0.0660322904586792,
-0.036987707018852234,
0.06414186954498291,
0.16766685247421265,
-0.02178327366709709,
0.05893334373831749,
-0.14398346841335297,
-0.19387097656726837,
0.15546275675296783,
0.09185564517974854,
0.11438572406768799,
0.6183261275291443,
0.1413576602935791,
0.22683286666870117,
-0.026637032628059387,
0.04547310993075371,
-0.2194778174161911,
-0.2695859372615814,
-0.029579754918813705,
0.21051469445228577,
-0.24848544597625732,
-0.18525168299674988,
0.26316723227500916,
0.26065173745155334,
-0.14934241771697998,
0.24057845771312714,
0.08955174684524536,
0.16320030391216278,
-0.24390766024589539,
0.25727424025535583,
0.19719791412353516,
-0.1521507054567337,
-0.04664105921983719,
0.19722148776054382,
-0.13806161284446716,
-0.08383242040872574,
0.547649085521698,
-0.4606725871562958,
0.019234847277402878,
0.01428470853716135,
0.07617956399917603,
0.18862657248973846,
0.21151354908943176,
0.10032670199871063,
-0.04006068408489227,
-0.02381344884634018,
0.0371476411819458,
-0.31710609793663025,
0.0832652822136879,
0.14693059027194977,
-0.09470859169960022,
-0.18919937312602997,
-0.1004277914762497,
0.10864689946174622,
0.3245388865470886,
0.06717225909233093,
-0.14242886006832123,
-0.13956615328788757,
0.13004937767982483,
-0.17661410570144653,
-0.0718235969543457,
0.3381156325340271,
0.2639375329017639,
0.07753941416740417,
-0.3354123532772064,
0.0684434249997139,
0.32689064741134644,
0.06509806215763092,
-0.04752276837825775,
0.3619349002838135,
0.13860443234443665,
0.15871970355510712,
0.20674102008342743,
0.09013117849826813,
0.5049043893814087,
-0.06866200268268585,
0.16379263997077942,
0.3704545199871063,
-0.07328043133020401,
-0.26274439692497253,
0.399992972612381,
0.20488041639328003,
-0.030037878081202507,
-0.25294050574302673,
-0.13918408751487732,
0.16660188138484955,
-0.18997475504875183,
0.03654634207487106,
0.06697937101125717,
-0.8383836150169373,
0.06006641685962677,
-0.11592138558626175,
-0.009170650504529476,
0.16602976620197296,
0.059498704969882965,
0.0017783008515834808,
-0.02146543562412262,
-0.013973750174045563,
-0.30643633008003235,
0.30387377738952637,
0.04057273641228676,
-0.39398080110549927,
-0.1428614854812622,
-0.16342568397521973,
-0.21891412138938904,
0.18427734076976776,
-0.09426302462816238,
0.009631939232349396,
0.4470912516117096,
-0.10432370752096176,
0.33530572056770325,
0.23664018511772156,
0.07342630624771118,
0.005556408315896988,
-0.2274940013885498,
0.506141185760498,
-0.30775102972984314,
-0.1795012354850769,
-0.21115000545978546,
-0.17409862577915192
] |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`.
You can find examples in the documentation here:
https://huggingface.co/docs/datasets/processing.html
You can merge two datasets with `concatenate_datasets()` or do label extraction with `dataset.map()` for example | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 41 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`.
You can find examples in the documentation here:
https://huggingface.co/docs/datasets/processing.html
You can merge two datasets with `concatenate_datasets()` or do label extraction with `dataset.map()` for example | [
-0.46852436661720276,
-0.23068052530288696,
-0.05315759778022766,
0.141038715839386,
0.3790983557701111,
-0.19871509075164795,
0.33672046661376953,
0.1695585548877716,
0.10450266301631927,
0.19319117069244385,
-0.17467619478702545,
0.28939783573150635,
-0.23164255917072296,
0.5593624711036682,
0.0868365541100502,
-0.21470513939857483,
-0.1576153039932251,
0.32449451088905334,
-0.45100167393684387,
-0.09339135885238647,
-0.2045135647058487,
-0.1517905294895172,
0.08597426116466522,
0.043505117297172546,
-0.2052289992570877,
-0.2564643621444702,
-0.050321683287620544,
-0.18086650967597961,
-0.09292787313461304,
-0.020690515637397766,
0.3956405222415924,
0.22751295566558838,
-0.12318237125873566,
0.46105119585990906,
-0.00009944682096829638,
-0.1074678897857666,
-0.1551022231578827,
-0.09259655326604843,
0.10216820240020752,
-0.16819174587726593,
-0.12541832029819489,
-0.0846334770321846,
0.022099532186985016,
-0.26785212755203247,
-0.500247061252594,
-0.10915372520685196,
-0.03184887021780014,
0.06312445551156998,
0.5358986258506775,
-0.010313929989933968,
0.29587674140930176,
0.0097891204059124,
-0.01589794084429741,
-0.11695180833339691,
-0.0069826021790504456,
0.2734380066394806,
-0.12759314477443695,
-0.018073279410600662,
0.17401133477687836,
0.2556477189064026,
-0.19455352425575256,
0.39340630173683167,
-0.016171235591173172,
-0.032958418130874634,
0.6259969472885132,
0.014367258176207542,
0.05476365238428116,
-0.40715596079826355,
-0.2678070366382599,
0.46987417340278625,
0.30690738558769226,
-0.23419204354286194,
-0.41588324308395386,
-0.42409592866897583,
0.1417992264032364,
-0.04368837550282478,
0.018205158412456512,
0.081879623234272,
-0.01911027915775776,
0.21808362007141113,
-0.33455878496170044,
-0.22628675401210785,
-0.2550743818283081,
-0.08484114706516266,
-0.4569258987903595,
0.15570129454135895,
-0.1581205576658249,
-0.03208494186401367,
0.20830675959587097,
-0.10934710502624512,
-0.05707478150725365,
0.23321746289730072,
0.07701119035482407,
0.12421806156635284,
-0.13193316757678986,
-0.4667613208293915,
-0.2404336929321289,
0.2420443296432495,
0.06411246955394745,
0.09259381890296936,
-0.10185255110263824,
0.036471959203481674,
-0.1074579656124115,
0.1789063662290573,
-0.0019422341138124466,
0.3197197914123535,
-0.018151171505451202,
0.08710526674985886,
0.2844572961330414,
-0.0984443798661232,
-0.0780218243598938,
0.14268162846565247,
0.15675301849842072,
-0.18715782463550568,
-0.10856121778488159,
-0.047767363488674164,
0.07163821160793304,
-0.12147337943315506,
0.05116376280784607,
-0.30870166420936584,
0.2672426104545593,
0.17209522426128387,
-0.11213748902082443,
0.28789830207824707,
0.015388351865112782,
0.20372721552848816,
0.39531809091567993,
0.1793695092201233,
0.1763353943824768,
-0.14846496284008026,
-0.08256951719522476,
0.1802881956100464,
-0.04941025748848915,
-0.019671162590384483,
-0.0038547441363334656,
-0.037801679223775864,
-0.02936749905347824,
0.026139095425605774,
-0.08892790973186493,
0.3310028910636902,
-0.08216729015111923,
-0.10424061119556427,
0.26524320244789124,
0.16714605689048767,
-0.2829817533493042,
-0.25886327028274536,
0.07455189526081085,
-0.16459210216999054,
-0.23826754093170166,
-0.013722814619541168,
-0.17087355256080627,
0.07976554334163666,
0.01860436052083969,
0.27741092443466187,
-0.003512490540742874,
-0.08648112416267395,
-0.21165645122528076,
0.4036308526992798,
-0.012850888073444366,
-0.09909231960773468,
0.040668830275535583,
-0.17359426617622375,
-0.19436217844486237,
-0.02511649578809738,
0.0886339619755745,
-0.05991426110267639,
-0.32927390933036804,
-0.4942748248577118,
0.1610185205936432,
-0.13739220798015594,
-0.04528317600488663,
0.29367315769195557,
-0.038995321840047836,
0.19777223467826843,
-0.06221017986536026,
-0.08020935952663422,
0.493952214717865,
-0.10655531287193298,
-0.18149636685848236,
0.06813999265432358,
-0.33994799852371216,
-0.018411893397569656,
0.00834454596042633,
0.317871630191803,
0.29483285546302795,
-0.016495058313012123,
-0.34838876128196716,
0.37033021450042725,
-0.0752105638384819,
0.14979799091815948,
0.1050366759300232,
-0.28646743297576904,
0.24589616060256958,
0.06297267973423004,
0.2355775088071823,
0.25379931926727295,
-0.069267638027668,
0.11178510636091232,
-0.0753491148352623,
-0.4083537757396698,
0.20055316388607025,
0.07484321296215057,
0.25692522525787354,
-0.0320868045091629,
-0.10398232936859131,
-0.43490615487098694,
-0.11740943044424057,
-0.10575743764638901,
-0.17698581516742706,
0.2305082231760025,
0.2835943102836609,
-0.2835352122783661,
-0.05045723915100098,
-0.24058255553245544,
-0.13281914591789246,
-0.15751461684703827,
0.25841188430786133,
-0.2040448784828186,
0.22211596369743347,
-0.3294776976108551,
-0.10692664980888367,
0.4259648025035858,
0.10779114067554474,
0.24758315086364746,
-0.4918275475502014,
0.089411161839962,
0.04324299097061157,
0.06139562651515007,
0.037855587899684906,
0.06427901983261108,
-0.15450266003608704,
-0.2567330300807953,
0.07156645506620407,
0.07099398970603943,
-0.08628574013710022,
0.08285513520240784,
-0.0011875145137310028,
0.32274943590164185,
0.2609703540802002,
-0.07840216904878616,
0.14390920102596283,
-0.052529867738485336,
0.17882664501667023,
0.04338937997817993,
-0.4305519163608551,
0.6129763126373291,
0.018002742901444435,
0.1722462773323059,
-0.04841843247413635,
0.049531467258930206,
0.3008769452571869,
-0.3305990695953369,
-0.014369538985192776,
-0.19494323432445526,
-0.14801856875419617,
-0.1301358938217163,
0.29369670152664185,
0.10754211246967316,
-0.2553985118865967,
-0.023589149117469788,
0.2760584354400635,
0.03844166174530983,
0.1950594186782837,
0.3294140696525574,
-0.2586320638656616,
0.23958846926689148,
-0.06543572247028351,
0.37129098176956177,
0.20401430130004883,
0.3569669723510742,
-0.16672024130821228,
0.23902614414691925,
0.032015372067689896,
-0.004614349454641342,
0.18885740637779236,
-0.03382248431444168,
0.2357214093208313,
0.07838229835033417,
0.048915840685367584,
0.19456268846988678,
-0.22780582308769226,
-0.20590370893478394,
-0.2645701766014099,
0.0031591802835464478,
-0.20336520671844482,
0.00344674289226532,
-0.19672569632530212,
-0.1450367271900177,
-0.23931914567947388,
0.010017379187047482,
-0.3171902894973755,
-0.07846696674823761,
0.1861800253391266,
0.11252105236053467,
-0.23161709308624268,
0.11884067207574844,
0.24033474922180176,
0.2831946611404419,
0.19869950413703918,
-0.020386768504977226,
-0.12751564383506775,
-0.16755011677742004,
0.10662387311458588,
0.21948286890983582,
-0.13704147934913635,
0.097781240940094,
0.4182054102420807,
-0.411868691444397,
0.12386755645275116,
-0.2679356634616852,
-0.49990108609199524,
0.2685491740703583,
-0.1570933312177658,
0.2256888896226883,
0.3385978937149048,
0.1490933895111084,
0.029423289000988007,
-0.018831249326467514,
0.08592452853918076,
-0.1540539413690567,
-0.28911709785461426,
-0.06878263503313065,
-0.21526376903057098,
0.06951569765806198,
-0.1339474469423294,
-0.1737842559814453,
-0.23381702601909637,
-0.35813289880752563,
0.3657940626144409,
0.15337075293064117,
0.04517121613025665,
0.01057079154998064,
0.008277893997728825,
-0.031006939709186554,
-0.2154482901096344,
0.3004665970802307,
-0.21898676455020905,
-0.17807456851005554,
0.2259611040353775,
-0.07192932814359665,
-0.18184998631477356,
-0.23605656623840332,
-0.17908769845962524,
0.06738056987524033,
0.2620014548301697,
-0.17967075109481812,
-0.2952072322368622,
-0.2022523581981659,
0.20449842512607574,
0.07635640352964401,
0.11472652107477188,
0.5687103271484375,
0.10932895541191101,
-0.17922145128250122,
-0.055511921644210815,
-0.022951021790504456,
0.10115785151720047,
0.1597190499305725,
0.05934761464595795,
-0.026026450097560883,
0.36849597096443176,
-0.03899770975112915,
0.3227406442165375,
-0.3008691668510437,
-0.475877970457077,
-0.061968520283699036,
-0.058989591896533966,
0.21560844779014587,
0.04160042479634285,
-0.2979394495487213,
0.22788302600383759,
0.0441778227686882,
0.019154753535985947,
0.148188054561615,
-0.048699311912059784,
0.011146112345159054,
-0.23109334707260132,
-0.1589173972606659,
-0.22453728318214417,
-0.3170902729034424,
0.042831528931856155,
0.24250341951847076,
-0.05015919357538223,
-0.07107909023761749,
0.018423259258270264,
-0.07545733451843262,
0.05621035397052765,
0.19944629073143005,
0.41511642932891846,
0.0847507193684578,
-0.023505061864852905,
-0.2109864056110382,
0.11679836362600327,
-0.024234242737293243,
0.2419670671224594,
-0.06833229213953018,
-0.224636048078537,
0.005717795342206955,
-0.258705735206604,
-0.1484929621219635,
-0.13567578792572021,
0.6416293382644653,
0.08486415445804596,
0.07675337046384811,
-0.01790624111890793,
-0.4646275043487549,
-0.2970898747444153,
0.20672981441020966,
-0.3552083671092987,
-0.22205886244773865,
0.15041255950927734,
0.3458382189273834,
-0.35622894763946533,
-0.29236817359924316,
0.16447626054286957,
0.3387874662876129,
-0.30723968148231506,
-0.08291176706552505,
-0.0008131787180900574,
-0.12631262838840485,
-0.37731850147247314,
0.20552808046340942,
0.03855232149362564,
-0.07713272422552109,
0.0005987131735309958,
-0.05925074219703674,
-0.3329600691795349,
-0.11860653012990952,
0.2515355348587036,
0.31394606828689575,
0.06281204521656036,
-0.1446581780910492,
0.017149437218904495,
0.1051340401172638,
0.4406680464744568,
0.0418909452855587,
0.24944809079170227,
0.023510940372943878,
-0.5702090263366699,
-0.013386555016040802,
0.04227523133158684,
0.15090617537498474,
-0.0021073222160339355,
0.12467882037162781,
-0.010499902069568634,
-0.003568226471543312,
0.30546659231185913,
-0.44060876965522766,
0.2906223237514496,
-0.03108839876949787,
0.1782279759645462,
-0.2548515796661377,
-0.10460517555475235,
0.40591567754745483,
0.18762469291687012,
-0.211599200963974,
-0.0006978623569011688,
0.2190535068511963,
-0.4485890567302704,
0.21022677421569824,
0.33791592717170715,
0.820833683013916,
-0.022072412073612213,
0.13244490325450897,
0.22208726406097412,
-0.0561947338283062,
0.4963654577732086,
-0.15024492144584656,
0.032530684024095535,
-0.26915061473846436,
-0.39345040917396545,
-0.13576819002628326,
-0.0652884766459465,
0.21027666330337524,
0.24373117089271545,
-0.3813430070877075,
0.3641519546508789,
-0.049697574228048325,
-0.15864697098731995,
-0.0765661746263504,
0.032895997166633606,
0.14871856570243835,
-0.5673127770423889,
-0.4194625914096832,
0.25726521015167236,
-0.16187869012355804,
0.28471675515174866,
-0.003560359589755535,
-0.13183805346488953,
-0.0876578837633133,
0.04572899639606476,
0.0972326248884201,
-0.04412396252155304,
-0.3256533741950989,
-0.24212788045406342,
0.00739547424018383,
-0.20838534832000732,
0.33503851294517517,
0.255893737077713,
0.30959340929985046,
0.1981584131717682,
-0.12721902132034302,
0.11926785111427307,
-0.2853119671344757,
0.33461838960647583,
-0.09156651049852371,
-0.10337898135185242,
0.5256093740463257,
-0.03081103414297104,
0.032118313014507294,
-0.11503290385007858,
0.08190111815929413,
-0.12030110508203506,
0.4231548309326172,
-0.20499373972415924,
-0.09531758725643158,
-0.3909982442855835,
0.04882347583770752,
0.08005345612764359,
0.10957588255405426,
-0.1868070363998413,
0.21176625788211823,
0.1607629656791687,
-0.11719511449337006,
0.27523696422576904,
0.4020012617111206,
-0.2543523907661438,
-0.1254386156797409,
0.24942144751548767,
0.22247198224067688,
0.13150089979171753,
0.01987917348742485,
-0.22106586396694183,
-0.2818225026130676,
-0.43065786361694336,
0.07077416032552719,
0.20525701344013214,
-0.4010017514228821,
0.337790846824646,
0.09767404198646545,
-0.38129204511642456,
-0.11812589317560196,
0.11453864723443985,
0.31457728147506714,
0.04291056841611862,
-0.13495758175849915,
-0.3282349407672882,
-0.5083821415901184,
0.1449071168899536,
0.04217308759689331,
0.19678989052772522,
0.22567278146743774,
0.35464784502983093,
0.04953666776418686,
0.24302899837493896,
-0.48197707533836365,
-0.08268970251083374,
-0.20950168371200562,
0.19999176263809204,
0.2634357810020447,
-0.017115451395511627,
-0.03749099001288414,
0.0263989120721817,
0.17276228964328766,
-0.05960150063037872,
-0.21504992246627808,
-0.3660918176174164,
-0.3127804100513458,
0.061279796063899994,
-0.14530399441719055,
0.18232141435146332,
0.0940941646695137,
0.2562636733055115,
-0.07554325461387634,
-0.2365216761827469,
0.35442325472831726,
0.09062743932008743,
0.028078924864530563,
0.345535546541214,
0.17912054061889648,
-0.2006533443927765,
-0.18708200752735138,
-0.018530990928411484,
0.09468807280063629,
-0.11021120846271515,
-0.20369166135787964,
0.1857886016368866,
-0.19227808713912964,
-0.007223866879940033,
0.016615981236100197,
0.15145635604858398,
0.30994367599487305,
-0.14213722944259644,
0.33267977833747864,
0.1762281358242035,
0.08304497599601746,
0.5306998491287231,
0.2876541316509247,
-0.0343116819858551,
-0.02751768007874489,
0.1235409826040268,
0.23192307353019714,
0.3524506390094757,
-0.5596110820770264,
0.093091681599617,
0.3111479580402374,
-0.1309550553560257,
0.3483593761920929,
0.31574547290802,
0.023293394595384598,
0.19967254996299744,
-0.004885368049144745,
-0.06492160260677338,
0.26689794659614563,
-0.30598658323287964,
0.1353478729724884,
0.36438801884651184,
-0.15115490555763245,
0.008681301027536392,
0.45881417393684387,
0.1298290491104126,
0.16626447439193726,
0.15356433391571045,
-0.016384601593017578,
0.4012463688850403,
-0.11603090912103653,
0.024524353444576263,
0.45412927865982056,
-0.002964835613965988,
0.021549692377448082,
0.3619537353515625,
0.08465560525655746,
0.08487796783447266,
0.154463529586792,
0.16458484530448914,
-0.12455112487077713,
-0.4523751735687256,
-0.08469919115304947,
0.46057114005088806,
-0.21761879324913025,
0.052510134875774384,
-0.15128780901432037,
-0.12918421626091003,
0.057318300008773804,
-0.17818602919578552,
-0.07563760876655579,
-0.2884870767593384,
0.4399871528148651,
0.060555748641490936,
0.15383395552635193,
-0.03797730803489685,
-0.028967171907424927,
-0.042991556227207184,
0.24989604949951172,
-0.07695278525352478,
0.02087968774139881,
0.2935594618320465,
0.022123318165540695,
0.2136039137840271,
0.6038635969161987,
0.14484311640262604,
-0.0849437415599823,
-0.16045531630516052,
0.19327034056186676,
-0.2475614994764328,
-0.2024957686662674,
-0.21259644627571106,
-0.031060446053743362,
-0.21452674269676208,
-0.16878177225589752,
0.3770327568054199,
0.32305842638015747,
-0.24931029975414276,
0.12878797948360443,
-0.1560342162847519,
0.22320795059204102,
-0.20346102118492126,
0.19546400010585785,
0.20166760683059692,
-0.13288083672523499,
-0.2870441675186157,
-0.053905658423900604,
-0.12113536894321442,
0.09983548521995544,
0.1605128049850464,
-0.4364559054374695,
0.16860976815223694,
0.012498068623244762,
0.14889319241046906,
0.23132729530334473,
0.29735755920410156,
0.07013189792633057,
-0.060089536011219025,
0.10384298861026764,
0.023329921066761017,
-0.45501941442489624,
0.058086592704057693,
0.3359413743019104,
-0.1637789011001587,
-0.19795334339141846,
-0.1882535219192505,
0.07784885168075562,
0.3184639811515808,
0.024348817765712738,
-0.2890494167804718,
0.09324290603399277,
-0.07990193367004395,
-0.27696511149406433,
-0.006926357746124268,
-0.08207593858242035,
0.15442848205566406,
0.2809629738330841,
-0.33921051025390625,
-0.055096764117479324,
0.14504604041576385,
0.17001557350158691,
0.056349240243434906,
0.46602708101272583,
-0.21883900463581085,
-0.0072855278849601746,
0.20618680119514465,
0.25296536087989807,
0.32931384444236755,
-0.340613454580307,
0.18472586572170258,
0.3814713656902313,
-0.15141215920448303,
-0.5562723278999329,
0.16682079434394836,
0.13184823095798492,
0.22879305481910706,
-0.06721202284097672,
-0.11912718415260315,
0.01812232844531536,
-0.003667132928967476,
0.13342897593975067,
0.058537840843200684,
-0.6600279211997986,
0.2794378101825714,
0.02821245789527893,
-0.1784805804491043,
0.1371932178735733,
0.31198519468307495,
-0.0557686984539032,
-0.14054980874061584,
-0.11890505254268646,
-0.3230002224445343,
0.47018152475357056,
-0.0320269837975502,
-0.24592973291873932,
-0.07235511392354965,
-0.09050053358078003,
0.048011135309934616,
-0.13162921369075775,
-0.3248491585254669,
0.11845361441373825,
0.20897109806537628,
-0.06440333276987076,
0.06767550110816956,
0.1719878911972046,
-0.1898825615644455,
-0.24440276622772217,
-0.22526277601718903,
0.5100142955780029,
0.09942761063575745,
-0.20927487313747406,
-0.25935858488082886,
-0.2064971923828125
] |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Ok, sure.
Thanks for pointing on functional part.
My question is more
“Philosophical”/Design perspective.
There are 2 perspetive:
Add transformation methods to
Dataset Class
OR Create a Transformer Class
which operates on Dataset Class.
T(Dataset) —> Dataset
datasetnew = MyTransform.transform(dataset)
datasetNew.save(path)
What would be the difficulty
of implementing a Transformer Class
operating at dataset level ?
thanks
> On Jul 6, 2021, at 22:00, Quentin Lhoest ***@***.***> wrote:
>
>
> There are already a few transformations that you can apply on a dataset using methods like dataset.map().
> You can find examples in the documentation here:
> https://huggingface.co/docs/datasets/processing.html
>
> You can merge two datasets with concatenate_datasets() or do label extraction with dataset.map() for example
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
| Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 142 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Ok, sure.
Thanks for pointing on functional part.
My question is more
“Philosophical”/Design perspective.
There are 2 perspetive:
Add transformation methods to
Dataset Class
OR Create a Transformer Class
which operates on Dataset Class.
T(Dataset) —> Dataset
datasetnew = MyTransform.transform(dataset)
datasetNew.save(path)
What would be the difficulty
of implementing a Transformer Class
operating at dataset level ?
thanks
> On Jul 6, 2021, at 22:00, Quentin Lhoest ***@***.***> wrote:
>
>
> There are already a few transformations that you can apply on a dataset using methods like dataset.map().
> You can find examples in the documentation here:
> https://huggingface.co/docs/datasets/processing.html
>
> You can merge two datasets with concatenate_datasets() or do label extraction with dataset.map() for example
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
| [
-0.10654188692569733,
-0.05383779853582382,
0.02605361118912697,
0.14303067326545715,
0.3365960121154785,
-0.1399591565132141,
0.5725407004356384,
-0.03391541913151741,
-0.05218617618083954,
0.16315840184688568,
0.11685657501220703,
0.24485857784748077,
-0.4620169699192047,
0.4327048361301422,
0.29102057218551636,
-0.3197537958621979,
0.06042974814772606,
0.21103863418102264,
-0.5410808324813843,
-0.0536491796374321,
-0.37125545740127563,
-0.33559226989746094,
-0.053155750036239624,
0.0580875426530838,
-0.21992278099060059,
-0.1509220004081726,
-0.12715590000152588,
-0.17568501830101013,
-0.14857152104377747,
0.07267828285694122,
0.7325075268745422,
0.05477960407733917,
0.17945469915866852,
0.6730668544769287,
-0.00011880607780767605,
-0.0387481153011322,
-0.017558038234710693,
-0.05006080120801926,
-0.014886127784848213,
-0.39879900217056274,
-0.2108457386493683,
-0.12495129555463791,
-0.02503521554172039,
-0.33032289147377014,
-0.1954076886177063,
-0.015498324297368526,
0.05616909638047218,
-0.043454982340335846,
0.36257481575012207,
-0.059580907225608826,
0.10465461760759354,
-0.2699905037879944,
-0.06583739072084427,
0.04670190438628197,
-0.11548423022031784,
0.37154972553253174,
-0.27966538071632385,
0.0010365815833210945,
0.17316493391990662,
0.3063555955886841,
-0.028839506208896637,
0.07416625320911407,
0.08594490587711334,
-0.31879204511642456,
0.9122111797332764,
-0.07091784477233887,
-0.03849225491285324,
-0.39686495065689087,
-0.2046210765838623,
0.2444629967212677,
0.459940105676651,
-0.2721919119358063,
-0.6343578100204468,
-0.2657700181007385,
0.07097429037094116,
0.15893025696277618,
0.22963851690292358,
-0.005880333483219147,
0.09211105108261108,
0.2785589098930359,
-0.32457268238067627,
-0.23609724640846252,
-0.47556424140930176,
0.093836709856987,
-0.5276676416397095,
0.05061303824186325,
-0.14853113889694214,
0.015501368790864944,
0.062187694013118744,
-0.074466772377491,
0.19515834748744965,
0.09761551767587662,
0.2587229311466217,
0.235641747713089,
-0.263269305229187,
-0.3962751626968384,
-0.15439584851264954,
0.2665107846260071,
-0.03981366008520126,
-0.053441762924194336,
-0.1178390234708786,
-0.10951241105794907,
-0.1519871950149536,
0.13212168216705322,
0.24454034864902496,
0.33472856879234314,
-0.06788573414087296,
0.17465242743492126,
0.2386981099843979,
-0.31498101353645325,
0.06063760444521904,
0.01930966041982174,
0.007584206759929657,
-0.10748540610074997,
0.06356646120548248,
0.029093926772475243,
0.23854653537273407,
-0.05910889059305191,
0.2498929500579834,
-0.29123905301094055,
-0.10806845128536224,
-0.015994079411029816,
-0.1475115865468979,
0.02284780889749527,
0.25362250208854675,
0.39712151885032654,
0.31157422065734863,
0.06939248740673065,
0.35593658685684204,
-0.13714830577373505,
0.12343849986791611,
0.08962912857532501,
-0.20771163702011108,
-0.008513927459716797,
0.02543232962489128,
-0.08829465508460999,
-0.2700822055339813,
-0.04131166636943817,
-0.0517636314034462,
0.3604644536972046,
0.013219086453318596,
-0.43511831760406494,
0.12184365093708038,
0.3219592571258545,
-0.4701116681098938,
-0.21497371792793274,
-0.1325145959854126,
-0.019255641847848892,
-0.14249832928180695,
0.40757524967193604,
-0.13375088572502136,
-0.10320768505334854,
0.2736285924911499,
0.08550054579973221,
0.013681042939424515,
0.09059224277734756,
-0.6206722855567932,
0.38582971692085266,
0.03931804001331329,
-0.18486298620700836,
0.04010193049907684,
-0.3431013226509094,
-0.1524265557527542,
-0.18201550841331482,
-0.1730380356311798,
-0.02757740020751953,
-0.488018274307251,
-0.32472071051597595,
-0.05896787345409393,
-0.007816072553396225,
0.03382781893014908,
0.28751519322395325,
-0.3181764483451843,
0.5770633816719055,
-0.06493232399225235,
-0.11830591410398483,
0.7609327435493469,
-0.16234487295150757,
-0.32632508873939514,
0.13554061949253082,
-0.39322876930236816,
0.10560230165719986,
-0.028558366000652313,
0.3570359945297241,
0.39347076416015625,
-0.37401482462882996,
-0.5503358840942383,
0.25179898738861084,
-0.05030044913291931,
-0.011506786569952965,
0.18893544375896454,
-0.19707396626472473,
0.4973289370536804,
0.013382382690906525,
0.26654183864593506,
0.3399255573749542,
0.04659027233719826,
0.3440960645675659,
-0.29139062762260437,
-0.4086548686027527,
0.24897219240665436,
0.015037901699543,
0.27128511667251587,
-0.0074663907289505005,
-0.021492134779691696,
-0.42590534687042236,
-0.20004519820213318,
-0.03180892765522003,
-0.06189867854118347,
0.32685908675193787,
0.30269932746887207,
0.008340556174516678,
0.1577596664428711,
-0.11902208626270294,
-0.2191333919763565,
-0.2704630196094513,
-0.01204405166208744,
-0.3185943365097046,
0.3225785195827484,
-0.5568806529045105,
-0.37355637550354004,
0.4142184555530548,
-0.054054126143455505,
0.23348234593868256,
-0.5580808520317078,
0.11569367349147797,
0.02337447926402092,
0.2491554468870163,
-0.3481840491294861,
-0.007923498749732971,
-0.13359597325325012,
-0.29170122742652893,
-0.09533842653036118,
-0.05892856419086456,
-0.026134079322218895,
-0.15756620466709137,
-0.07205592095851898,
0.4762628674507141,
0.2876897156238556,
-0.2148323655128479,
0.3182385563850403,
0.062244221568107605,
0.2261413335800171,
-0.14589732885360718,
-0.34608888626098633,
0.28521406650543213,
-0.05357048287987709,
0.3659821152687073,
-0.08809685707092285,
-0.06483829021453857,
0.14043982326984406,
-0.22402329742908478,
-0.2181902825832367,
0.13990287482738495,
-0.11297957599163055,
-0.07260410487651825,
0.344103068113327,
0.127037912607193,
-0.032520804554224014,
-0.1819426417350769,
0.2679166793823242,
-0.10342113673686981,
0.13826607167720795,
0.4796469509601593,
-0.14082738757133484,
0.21424010396003723,
-0.3483158051967621,
0.49524208903312683,
0.6219202280044556,
0.11696746200323105,
-0.2442900836467743,
0.3060923218727112,
0.2635379433631897,
-0.052475456148386,
0.1504601538181305,
0.11450007557868958,
0.23663346469402313,
-0.1106892004609108,
0.011536873877048492,
0.3551890254020691,
0.14767247438430786,
-0.4427647590637207,
-0.1622830033302307,
-0.02964130975306034,
-0.10992385447025299,
0.05889623612165451,
-0.02872353605926037,
-0.2380892038345337,
-0.33077260851860046,
-0.012987027876079082,
-0.10743893682956696,
0.09612225741147995,
-0.09994290769100189,
-0.19370046257972717,
0.07384994626045227,
0.02438516542315483,
0.17079339921474457,
0.3343963623046875,
0.1304818093776703,
-0.12423767894506454,
0.02310846745967865,
0.08673159778118134,
0.10825798660516739,
0.029264219105243683,
-0.049112360924482346,
0.03837807476520538,
0.28548526763916016,
-0.3548637628555298,
0.10197869688272476,
-0.049428217113018036,
-0.6258035898208618,
0.20462965965270996,
0.011404363438487053,
0.17095425724983215,
0.36306989192962646,
0.06254969537258148,
0.027403801679611206,
0.042257193475961685,
0.12479788064956665,
-0.07410038262605667,
-0.23391540348529816,
0.01466294750571251,
-0.06866780668497086,
0.17588075995445251,
-0.005366271361708641,
-0.10264835506677628,
-0.16871100664138794,
-0.23110362887382507,
0.4608861207962036,
0.12010392546653748,
0.07616759836673737,
-0.05850883573293686,
-0.20508478581905365,
0.04456004872918129,
0.004125871695578098,
0.2625158131122589,
-0.009350024163722992,
-0.11286317557096481,
0.22735720872879028,
0.07681266218423843,
-0.2224092036485672,
-0.24625854194164276,
-0.2503374218940735,
0.03418227657675743,
0.5150560736656189,
-0.2194654792547226,
-0.11575062572956085,
-0.09793476015329361,
0.177081897854805,
0.044345006346702576,
0.13606177270412445,
0.6754919290542603,
0.19720719754695892,
0.10807111859321594,
-0.06831145286560059,
-0.2257615178823471,
-0.0008915737271308899,
0.2898741662502289,
0.12438603490591049,
0.4621847867965698,
0.5110165476799011,
-0.002408113330602646,
0.33392155170440674,
-0.15105792880058289,
-0.25827786326408386,
-0.2768116593360901,
0.17634733021259308,
0.04431954026222229,
0.0027494430541992188,
-0.40186846256256104,
0.2987799644470215,
-0.07189668715000153,
-0.3413553833961487,
-0.0681765079498291,
0.03442052751779556,
-0.11981873959302902,
-0.26630622148513794,
-0.2975156307220459,
-0.15941107273101807,
-0.21060757339000702,
0.18181754648685455,
0.0393160805106163,
0.1803297996520996,
-0.08076144754886627,
0.11648847907781601,
-0.08866950869560242,
0.154925137758255,
0.16673506796360016,
0.6605190634727478,
0.25788530707359314,
-0.009929054416716099,
-0.10723958909511566,
0.0872034952044487,
0.04004592448472977,
0.036686696112155914,
-0.03735343739390373,
0.11519594490528107,
0.035497527569532394,
-0.029696352779865265,
-0.13879385590553284,
-0.0774608626961708,
0.6734219193458557,
-0.1263866424560547,
-0.05388239026069641,
-0.0925460010766983,
-0.5396208763122559,
-0.20939034223556519,
0.22596214711666107,
-0.2650755047798157,
-0.2224704921245575,
0.17467045783996582,
0.299313485622406,
-0.14259444177150726,
-0.1577892154455185,
0.12209513783454895,
0.4064100980758667,
-0.33111682534217834,
-0.4063674509525299,
0.05492258444428444,
-0.24088844656944275,
-0.17785729467868805,
-0.13179025053977966,
-0.0959741547703743,
-0.243373841047287,
0.030698223039507866,
0.04252980276942253,
-0.3838764429092407,
0.004715085029602051,
0.16963708400726318,
-0.030225904658436775,
-0.2416418492794037,
-0.16220059990882874,
0.1318226456642151,
0.18348060548305511,
0.22953855991363525,
0.1789853572845459,
0.18173159658908844,
0.16270926594734192,
-0.6273982524871826,
0.12783324718475342,
0.22929924726486206,
0.24804216623306274,
0.01564040780067444,
-0.049278490245342255,
-0.130185067653656,
0.04833230376243591,
0.1366271823644638,
-0.2756724953651428,
-0.0003732219338417053,
-0.04550129175186157,
0.32210773229599,
-0.352296382188797,
-0.5900353789329529,
0.31085947155952454,
0.22793681919574738,
-0.10288858413696289,
-0.15442359447479248,
0.17437326908111572,
-0.48224031925201416,
0.13402032852172852,
0.3647254407405853,
0.955578088760376,
-0.01717936247587204,
0.07756252586841583,
0.13080742955207825,
-0.06025790795683861,
0.4272617697715759,
-0.21838223934173584,
0.027652878314256668,
-0.19850869476795197,
-0.36638566851615906,
-0.3195909559726715,
-0.2757728099822998,
0.47784560918807983,
0.4035705327987671,
-0.36959975957870483,
0.44477033615112305,
-0.026854950934648514,
0.08304271101951599,
0.3783855140209198,
0.05876735597848892,
0.2714858949184418,
-0.581607460975647,
-0.3119214177131653,
0.08926034718751907,
-0.10575929284095764,
0.2805676758289337,
-0.10498722642660141,
-0.18661636114120483,
-0.2718273401260376,
0.07700517028570175,
0.02053993195295334,
-0.04279227927327156,
-0.3292387127876282,
-0.1995067447423935,
-0.08506636321544647,
-0.2173232138156891,
0.8510034084320068,
0.3416752517223358,
0.29687559604644775,
0.21046768128871918,
-0.023610973730683327,
-0.14459912478923798,
-0.19451653957366943,
0.300386905670166,
0.20331832766532898,
-0.15051856637001038,
0.5049756169319153,
-0.1062803715467453,
0.050965480506420135,
-0.06362896412611008,
-0.09441416710615158,
-0.2002093642950058,
0.24995160102844238,
-0.14954397082328796,
0.019924890249967575,
-0.4891405701637268,
0.06579740345478058,
0.07727832347154617,
-0.043806158006191254,
-0.0220827367156744,
0.08930490911006927,
0.15738093852996826,
0.0038472178857773542,
0.34799978137016296,
0.23578491806983948,
-0.20184731483459473,
-0.06270621716976166,
0.0013767331838607788,
0.36102819442749023,
0.12470586597919464,
0.04289688169956207,
-0.34291255474090576,
-0.2802807092666626,
-0.12544932961463928,
0.24068889021873474,
0.09511703252792358,
-0.4211357831954956,
0.2090703696012497,
0.06770290434360504,
-0.006852403283119202,
-0.18502584099769592,
0.02654452994465828,
0.24462257325649261,
-0.04675836116075516,
-0.40490224957466125,
-0.3855029046535492,
-0.500625491142273,
0.10835228115320206,
0.28176167607307434,
-0.015572499483823776,
0.0729670450091362,
0.46167078614234924,
0.1958017349243164,
0.16723152995109558,
-0.2731509804725647,
-0.18455973267555237,
0.05712593346834183,
0.18183885514736176,
0.3260115385055542,
-0.12496953457593918,
-0.15133927762508392,
0.08860206604003906,
-0.042131926864385605,
-0.08288294821977615,
-0.13714133203029633,
-0.13829398155212402,
-0.10045105218887329,
0.17048168182373047,
0.14442116022109985,
0.04934868961572647,
-0.12902186810970306,
0.018103845417499542,
-0.07117567956447601,
-0.10995184630155563,
0.11450035870075226,
0.11533164232969284,
-0.1027354747056961,
0.2702433466911316,
0.16107745468616486,
-0.03359217941761017,
-0.5131675004959106,
0.2962309420108795,
0.09047126770019531,
0.03593695908784866,
-0.2626494765281677,
0.1954118311405182,
-0.04030556231737137,
0.11272573471069336,
-0.4077843129634857,
0.20162299275398254,
0.2528676390647888,
0.07665863633155823,
0.4542485475540161,
-0.21426673233509064,
0.5300098061561584,
0.4562421143054962,
0.1906013786792755,
0.09426164627075195,
-0.1394413262605667,
0.08930951356887817,
0.21378636360168457,
0.05392985790967941,
-0.36179548501968384,
0.2642562687397003,
0.33541592955589294,
-0.12113887816667557,
0.03930247947573662,
0.42576104402542114,
-0.02471151575446129,
0.13401740789413452,
-0.160720556974411,
-0.1882656216621399,
0.22889617085456848,
-0.1902730017900467,
0.15388832986354828,
0.5479020476341248,
-0.1896897703409195,
0.31014642119407654,
0.5182441473007202,
0.22187626361846924,
-0.0831044390797615,
0.2689268887042999,
0.12349669635295868,
0.26371335983276367,
0.09053072333335876,
-0.020528528839349747,
0.3966083824634552,
0.02871435508131981,
0.0679490715265274,
0.5042468309402466,
0.07376489043235779,
-0.2143767774105072,
0.12437185645103455,
-0.06107444316148758,
-0.09911619871854782,
-0.38783735036849976,
0.156518816947937,
0.2266198992729187,
-0.13835006952285767,
0.4410700798034668,
-0.0869595855474472,
-0.025966159999370575,
0.14226505160331726,
-0.24066685140132904,
-0.32441386580467224,
-0.38666480779647827,
0.32531923055648804,
0.13279753923416138,
0.15069915354251862,
0.041623808443546295,
-0.07540207356214523,
-0.05169212073087692,
0.24636206030845642,
-0.0627192035317421,
-0.00026117637753486633,
0.22783997654914856,
0.22766879200935364,
0.09294994175434113,
0.5396184921264648,
0.07618404924869537,
0.23168298602104187,
-0.04074658825993538,
0.18270443379878998,
-0.22757036983966827,
-0.18646779656410217,
0.03911516070365906,
0.19103515148162842,
-0.19331544637680054,
0.0038738176226615906,
0.2546107769012451,
0.07402060925960541,
-0.03740621730685234,
0.2260047346353531,
-0.10734468698501587,
0.44864970445632935,
-0.3857947289943695,
0.38672107458114624,
0.08281257003545761,
-0.1325121968984604,
-0.1683933436870575,
0.16303668916225433,
-0.1195957362651825,
-0.030397046357393265,
0.24657593667507172,
-0.3848781883716583,
0.049426883459091187,
-0.010487250052392483,
0.029331494122743607,
0.2443380206823349,
0.17568184435367584,
0.2190907895565033,
0.15147608518600464,
0.024795588105916977,
0.026575371623039246,
-0.30540210008621216,
-0.08438944071531296,
0.2060105949640274,
-0.1895984560251236,
-0.03021889179944992,
-0.32391583919525146,
0.09800980240106583,
0.4614945650100708,
0.013751618564128876,
-0.3440375030040741,
0.0189506933093071,
0.05979255586862564,
-0.10773847997188568,
-0.04784782603383064,
0.07163310796022415,
0.3046369254589081,
0.07013802975416183,
-0.22738605737686157,
-0.025264184921979904,
0.29073771834373474,
-0.04555545747280121,
0.07543979585170746,
0.44720226526260376,
-0.12306688725948334,
0.06239691376686096,
0.13876308500766754,
0.2046007215976715,
0.39719146490097046,
-0.06043324992060661,
0.11158976703882217,
0.34805941581726074,
-0.025698931887745857,
-0.3430047929286957,
0.40000054240226746,
0.08634859323501587,
-0.006771789863705635,
-0.19524672627449036,
-0.12115275859832764,
-0.06401336938142776,
-0.2995354235172272,
-0.12132495641708374,
0.16044358909130096,
-0.7866067886352539,
0.10511916130781174,
-0.19826409220695496,
-0.2150478959083557,
0.15357235074043274,
0.26908376812934875,
-0.04744070768356323,
-0.16479022800922394,
-0.17399200797080994,
0.009541075676679611,
0.4162624478340149,
-0.17124517261981964,
-0.2035200148820877,
-0.06164134666323662,
-0.2454264760017395,
-0.0794796273112297,
0.012492157518863678,
-0.38859114050865173,
-0.08112095296382904,
0.29138240218162537,
-0.035155124962329865,
0.23982667922973633,
0.19167497754096985,
-0.20447231829166412,
-0.2209126204252243,
-0.13213123381137848,
0.6106511354446411,
-0.3881572484970093,
-0.04342563822865486,
-0.2438923716545105,
-0.0093143992125988
] |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc.
I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :) | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 64 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc.
I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :) | [
-0.4904251992702484,
0.08723048865795135,
-0.19068124890327454,
-0.08399544656276703,
0.3473586440086365,
-0.17532067000865936,
0.3381085991859436,
0.25743627548217773,
0.09037776291370392,
0.019790761172771454,
0.2580313980579376,
0.3618631660938263,
-0.385079950094223,
0.4767218828201294,
0.19307030737400055,
-0.23244047164916992,
-0.1511344015598297,
0.26518383622169495,
-0.42508748173713684,
-0.016854047775268555,
-0.3289775252342224,
-0.15335899591445923,
-0.0330888070166111,
0.13287049531936646,
0.0029005587566643953,
-0.146635040640831,
-0.09351309388875961,
-0.32801929116249084,
-0.07021614909172058,
-0.10451710224151611,
0.316780686378479,
0.13688717782497406,
-0.05560358986258507,
0.4302741587162018,
-0.00010566464334260672,
-0.10335612297058105,
0.15285950899124146,
0.0172447320073843,
0.027098383754491806,
-0.3660886883735657,
-0.28786715865135193,
-0.2310526818037033,
-0.07963644713163376,
-0.35150161385536194,
-0.27247312664985657,
-0.1547860950231552,
0.17596209049224854,
-0.3427092730998993,
0.5134334564208984,
0.16262896358966827,
0.24927568435668945,
-0.2663998603820801,
-0.12452249228954315,
-0.010689551010727882,
-0.05416960269212723,
0.42398524284362793,
-0.30337077379226685,
-0.5247582197189331,
0.4609449803829193,
0.23065491020679474,
-0.10122904926538467,
0.11873477697372437,
-0.09940467029809952,
-0.19072158634662628,
0.6304565668106079,
-0.11569913476705551,
-0.0931701734662056,
-0.5817267894744873,
-0.07845134288072586,
0.29589173197746277,
0.410266637802124,
-0.27051883935928345,
-0.47583168745040894,
-0.2998232841491699,
-0.014563837088644505,
0.1219538003206253,
-0.2259928286075592,
0.20291656255722046,
-0.02189779281616211,
0.3270215392112732,
-0.2893727421760559,
-0.2254890501499176,
-0.3472728729248047,
0.01203572005033493,
-0.22293631732463837,
0.1600913107395172,
-0.0978744775056839,
-0.025985054671764374,
0.04536748677492142,
0.04036494717001915,
0.23708920180797577,
0.0952523946762085,
0.16542117297649384,
0.1429380625486374,
-0.09124284982681274,
-0.42841193079948425,
-0.12218116968870163,
0.010445833206176758,
-0.2088417410850525,
0.20011115074157715,
0.03290025517344475,
0.12624627351760864,
-0.01828286424279213,
0.04924166575074196,
0.005421817302703857,
0.132281094789505,
0.004580743610858917,
0.03821759298443794,
0.2880478501319885,
-0.36330485343933105,
-0.0313485711812973,
0.1370052695274353,
0.03543628752231598,
0.021280374377965927,
-0.1402968168258667,
0.1661057472229004,
0.014712557196617126,
0.014949198812246323,
-0.0016045104712247849,
-0.27265605330467224,
0.10667669028043747,
0.13367439806461334,
-0.13376636803150177,
0.07497894763946533,
0.16004735231399536,
0.3427155017852783,
0.4094095230102539,
0.05671340599656105,
0.24071772396564484,
-0.19852936267852783,
0.010068580508232117,
0.17173993587493896,
-0.20101860165596008,
-0.03145094960927963,
0.08999016880989075,
0.0984608381986618,
-0.1902894228696823,
-0.08574912697076797,
-0.13601061701774597,
0.4032215178012848,
0.2586650848388672,
-0.010307403281331062,
0.3266674280166626,
0.2876618206501007,
-0.38403448462486267,
-0.22475901246070862,
0.04783589765429497,
-0.021408140659332275,
-0.2645701467990875,
0.1571623682975769,
-0.2843393087387085,
-0.04958631098270416,
0.16544876992702484,
0.25624480843544006,
0.07456764578819275,
-0.08259941637516022,
-0.25850924849510193,
0.43594467639923096,
0.03506256639957428,
-0.12886428833007812,
0.18799719214439392,
-0.21531985700130463,
-0.20616070926189423,
-0.092954121530056,
-0.16135890781879425,
-0.08553038537502289,
-0.5210267305374146,
-0.4330342710018158,
-0.2928813695907593,
0.06708560883998871,
0.1855183094739914,
0.12581244111061096,
-0.09951920062303543,
0.25495418906211853,
-0.054006561636924744,
0.017664164304733276,
0.6603582501411438,
-0.17472057044506073,
-0.09790302067995071,
0.26882511377334595,
-0.35721367597579956,
-0.1598704606294632,
0.12790271639823914,
0.4035031199455261,
0.36326542496681213,
-0.21253064274787903,
-0.4146338403224945,
0.3534542918205261,
-0.09096909314393997,
0.005409920588135719,
0.15271684527397156,
-0.26825135946273804,
0.24697883427143097,
0.21280823647975922,
0.35049372911453247,
0.281011700630188,
0.12943266332149506,
0.1401318460702896,
-0.11051306873559952,
-0.49273648858070374,
0.35316401720046997,
-0.03766350448131561,
0.1912439465522766,
0.02065010368824005,
0.04287267476320267,
-0.6312668919563293,
0.18813854455947876,
-0.11620897799730301,
-0.2709839344024658,
0.10826852917671204,
0.271098256111145,
-0.11450769752264023,
0.11726484447717667,
-0.1550060659646988,
0.07336284220218658,
-0.16303527355194092,
0.2363795042037964,
-0.3905515968799591,
0.17087571322917938,
-0.20110292732715607,
-0.23998905718326569,
0.39378783106803894,
0.00975470058619976,
0.05346622318029404,
-0.4360544681549072,
0.1432037353515625,
0.2297930121421814,
0.1855834275484085,
-0.16413667798042297,
0.19893226027488708,
-0.3491075932979584,
-0.20439675450325012,
0.04681965336203575,
-0.22833645343780518,
0.07345954328775406,
0.06713717430830002,
0.04978442192077637,
0.5814135670661926,
0.2575736939907074,
-0.07388926297426224,
0.27157148718833923,
0.02974265068769455,
0.15121904015541077,
-0.06866411119699478,
-0.16900530457496643,
0.6479952335357666,
-0.0027134306728839874,
0.2556305229663849,
-0.13939566910266876,
0.1753910481929779,
0.26691076159477234,
-0.3181121349334717,
-0.2655094861984253,
-0.030037112534046173,
-0.03970945253968239,
-0.06468500196933746,
0.24214862287044525,
0.04816337302327156,
0.018980711698532104,
0.04628331959247589,
0.2515473961830139,
0.015413209795951843,
0.24255406856536865,
0.3825644850730896,
-0.15108877420425415,
0.20118191838264465,
-0.1937965452671051,
0.5782843828201294,
0.49149996042251587,
0.20471569895744324,
-0.22913402318954468,
0.19659799337387085,
0.1805030107498169,
-0.08800142258405685,
0.2533913552761078,
0.15996694564819336,
0.3058578670024872,
0.03243343532085419,
-0.027973325923085213,
0.1396908164024353,
-0.06318767368793488,
-0.4729795455932617,
-0.17488698661327362,
-0.05515580624341965,
-0.05898487940430641,
0.24671690165996552,
-0.2987349033355713,
-0.33896926045417786,
-0.18293821811676025,
-0.05429256334900856,
0.28927308320999146,
-0.05133131146430969,
0.20561307668685913,
-0.2524845600128174,
-0.11103062331676483,
0.16035228967666626,
-0.02945692650973797,
0.5149568915367126,
0.10222896933555603,
-0.04877827316522598,
-0.28075772523880005,
-0.21418219804763794,
0.07959704101085663,
0.19242414832115173,
0.01715422049164772,
0.03269350528717041,
0.4736204743385315,
-0.20526006817817688,
0.3556705117225647,
-0.22284716367721558,
-0.5828427672386169,
0.09998761117458344,
-0.03938215970993042,
0.15675388276576996,
0.34717878699302673,
-0.06408455967903137,
0.11750712990760803,
-0.08127792179584503,
-0.005427001975476742,
-0.19490237534046173,
-0.2889544665813446,
-0.058074139058589935,
-0.15374143421649933,
-0.06828704476356506,
-0.10094247758388519,
-0.18541830778121948,
-0.3057168126106262,
-0.3653068244457245,
0.3621487021446228,
0.016843032091856003,
0.10683279484510422,
-0.14641538262367249,
-0.05285733938217163,
0.04665452986955643,
0.12019287049770355,
0.11843474954366684,
-0.025424005463719368,
-0.054498814046382904,
0.13311709463596344,
-0.14061051607131958,
-0.19210810959339142,
-0.24216416478157043,
-0.3054257035255432,
0.17796722054481506,
0.3593086004257202,
-0.13748234510421753,
-0.08648846298456192,
-0.17978423833847046,
0.026906508952379227,
0.140541672706604,
-0.09509418159723282,
0.5606483817100525,
0.05805360898375511,
-0.10287130624055862,
-0.14306142926216125,
0.0960489809513092,
-0.15945428609848022,
0.14040401577949524,
0.0622648186981678,
0.20146095752716064,
0.4887649118900299,
0.05738371983170509,
0.3966767191886902,
-0.2763509750366211,
-0.5605835914611816,
-0.15528976917266846,
0.055918022990226746,
-0.15926358103752136,
0.03577352315187454,
-0.42233461141586304,
0.11166060715913773,
-0.09613606333732605,
-0.18437398970127106,
0.01440160721540451,
-0.017721273005008698,
-0.4235360622406006,
-0.09080791473388672,
0.01250610500574112,
-0.24038654565811157,
-0.10807688534259796,
0.1225372701883316,
-0.05863794684410095,
0.1271524578332901,
-0.08068162202835083,
-0.005404181778430939,
-0.09422832727432251,
0.0064891790971159935,
0.2501516044139862,
0.3186603784561157,
0.22445818781852722,
-0.06712047755718231,
-0.0895252376794815,
-0.13135620951652527,
0.05924021825194359,
0.19890978932380676,
-0.028622586280107498,
-0.12923040986061096,
-0.0933871939778328,
-0.12763801217079163,
-0.06058412790298462,
-0.09351565688848495,
0.6798675060272217,
-0.25858625769615173,
-0.18335963785648346,
0.11501705646514893,
-0.5211290121078491,
-0.21162325143814087,
0.15721622109413147,
-0.2936237156391144,
-0.13875415921211243,
0.18460166454315186,
0.21098406612873077,
-0.00408385694026947,
-0.0968313217163086,
-0.043680526316165924,
0.05577169358730316,
-0.27648839354515076,
-0.1382438689470291,
0.17329059541225433,
-0.16751962900161743,
-0.40469250082969666,
0.04347627982497215,
0.0667041465640068,
-0.11909373104572296,
-0.1624397188425064,
-0.220287024974823,
-0.3782521188259125,
0.01792742684483528,
0.20509330928325653,
-0.1187671422958374,
-0.3053457736968994,
-0.21153178811073303,
0.16287706792354584,
-0.07561755925416946,
0.248220756649971,
0.12177329510450363,
0.011104073375463486,
0.17715787887573242,
-0.44121062755584717,
0.21249744296073914,
0.06919166445732117,
0.24685615301132202,
-0.0770300030708313,
0.06955860555171967,
0.013677462935447693,
0.0993141308426857,
0.1730925738811493,
-0.47687700390815735,
0.09109070897102356,
-0.04908940941095352,
0.13108141720294952,
-0.17009271681308746,
-0.5385860800743103,
0.4164547622203827,
0.3622055947780609,
-0.14253360033035278,
0.192414328455925,
-0.13962331414222717,
-0.4583474099636078,
0.31089431047439575,
0.5458196997642517,
0.8820567727088928,
0.020246367901563644,
0.18159382045269012,
-0.16264602541923523,
-0.25208964943885803,
0.36599940061569214,
-0.3363494873046875,
0.1634489893913269,
-0.37656497955322266,
-0.35042664408683777,
-0.27775368094444275,
-0.1602724939584732,
0.35881805419921875,
0.3163309097290039,
-0.44214513897895813,
0.2141091674566269,
0.18541495501995087,
-0.277466744184494,
0.09271237254142761,
0.12229868769645691,
-0.00641217827796936,
-0.5177205204963684,
-0.061726853251457214,
0.23264488577842712,
0.014714580029249191,
0.2346647083759308,
-0.07671240717172623,
-0.2186504751443863,
-0.06353234499692917,
0.2925376892089844,
-0.2410869598388672,
-0.08985897153615952,
-0.19458194077014923,
0.07600541412830353,
-0.1570572853088379,
-0.15793907642364502,
0.5903674364089966,
0.21399882435798645,
0.11315542459487915,
0.16557098925113678,
-0.15227553248405457,
0.028646700084209442,
-0.16785350441932678,
0.2973020076751709,
0.059607796370983124,
-0.22489041090011597,
0.5294118523597717,
-0.07132649421691895,
0.022772647440433502,
-0.05003802478313446,
0.09852659702301025,
-0.23470237851142883,
0.05668424069881439,
-0.019772768020629883,
0.014620430767536163,
-0.28818872570991516,
0.037441935390233994,
0.06809722632169724,
-0.08478499203920364,
-0.009779274463653564,
0.20562778413295746,
0.1391352415084839,
0.10218482464551926,
0.48807016015052795,
0.24779115617275238,
-0.2698324918746948,
-0.01870596781373024,
0.04850202053785324,
0.2433789074420929,
-0.028265729546546936,
0.10785992443561554,
-0.24742640554904938,
-0.30798017978668213,
-0.4038124680519104,
0.19363155961036682,
-0.08006507903337479,
-0.140297532081604,
0.4241026043891907,
0.05600783973932266,
-0.2723398208618164,
0.022789588198065758,
-0.2902476489543915,
0.27313104271888733,
-0.06062745302915573,
-0.3673821985721588,
-0.4418162405490875,
-0.27652621269226074,
0.09843344986438751,
-0.048178840428590775,
0.1748621165752411,
-0.11950646340847015,
0.15798698365688324,
0.22333507239818573,
0.01925678923726082,
-0.4004312753677368,
-0.020610539242625237,
-0.046672508120536804,
0.07733548432588577,
0.14801159501075745,
-0.011920247226953506,
-0.3965807557106018,
0.1831100881099701,
0.01640384830534458,
0.0023941174149513245,
-0.28390902280807495,
-0.2874855101108551,
-0.1735992431640625,
0.11511732637882233,
-0.05167529731988907,
0.2266327440738678,
0.09732762724161148,
0.14616583287715912,
-0.12768752872943878,
-0.08394400030374527,
0.017520789057016373,
0.08775012940168381,
-0.06572046875953674,
0.3965677320957184,
0.3393174409866333,
-0.3135190010070801,
-0.1280069351196289,
0.13239173591136932,
0.11971420049667358,
0.010975383222103119,
-0.14041365683078766,
0.40495216846466064,
0.22198693454265594,
0.03199160099029541,
-0.13671526312828064,
0.1751731038093567,
0.26960641145706177,
-0.04333224892616272,
0.5080505609512329,
0.016216907650232315,
0.3049811124801636,
0.5331389307975769,
0.03643840551376343,
0.13189902901649475,
-0.1432756781578064,
0.13200466334819794,
0.16620558500289917,
0.296630322933197,
-0.282229483127594,
0.09344513714313507,
0.24856624007225037,
0.09421494603157043,
0.05513614043593407,
0.22992880642414093,
0.18715496361255646,
0.08469514548778534,
0.11093637347221375,
-0.13043934106826782,
0.30490753054618835,
-0.4942302703857422,
0.2468263953924179,
0.37901732325553894,
-0.06944183260202408,
0.02715495228767395,
0.30607715249061584,
0.07165183126926422,
0.0685180276632309,
0.39090126752853394,
0.2271910309791565,
0.5443760752677917,
0.2785640060901642,
0.06792311370372772,
0.33337467908859253,
0.09510834515094757,
-0.02244410291314125,
0.3389114737510681,
-0.13128863275051117,
0.2181163728237152,
0.2518441081047058,
-0.03865520656108856,
0.13006867468357086,
-0.1997905671596527,
-0.10383736342191696,
0.4290381968021393,
-0.2054004967212677,
0.08879241347312927,
-0.265866219997406,
-0.06444554030895233,
0.13667598366737366,
-0.2768554091453552,
-0.06329748034477234,
-0.10975205898284912,
0.46356964111328125,
0.09020502865314484,
0.0708070620894432,
0.1755949854850769,
0.20308881998062134,
-0.13223952054977417,
0.22480261325836182,
-0.15673360228538513,
-0.19426584243774414,
0.1774761974811554,
-0.010163076221942902,
0.1475270837545395,
0.4574739933013916,
0.2258291244506836,
0.1731734722852707,
-0.4393768608570099,
0.21725401282310486,
-0.3352845311164856,
-0.2082686722278595,
-0.16188649833202362,
0.4071252942085266,
-0.13323165476322174,
0.03228653594851494,
0.1816319227218628,
0.2737870216369629,
-0.15492774546146393,
0.1682002991437912,
-0.01911429688334465,
0.20278386771678925,
-0.20839403569698334,
0.584174394607544,
0.3528771698474884,
-0.11910365521907806,
-0.11959236860275269,
0.18307600915431976,
-0.10067251324653625,
-0.035318680107593536,
0.4973428547382355,
-0.5335720777511597,
-0.01019094604998827,
0.037252068519592285,
0.11499908566474915,
0.08393293619155884,
0.2910146117210388,
0.10345762968063354,
0.14825373888015747,
0.14195847511291504,
-0.037788718938827515,
-0.15654471516609192,
0.0021484270691871643,
0.2513350248336792,
-0.04252391308546066,
-0.16032646596431732,
-0.14108502864837646,
0.06758379936218262,
0.2708389163017273,
-0.026876285672187805,
-0.3874264657497406,
-0.1746879667043686,
0.15469074249267578,
-0.18289539217948914,
0.10269354283809662,
0.11120928078889847,
0.2961472272872925,
0.08961287885904312,
-0.2545863091945648,
-0.07734489440917969,
0.2244996428489685,
0.13737866282463074,
-0.04031688719987869,
0.3328827917575836,
0.13044008612632751,
0.12385556846857071,
0.25488168001174927,
0.20910660922527313,
0.4130345582962036,
-0.21546676754951477,
0.3468509912490845,
0.23436591029167175,
-0.18993906676769257,
-0.25912272930145264,
0.24678203463554382,
0.11878785490989685,
-0.03432564064860344,
-0.2198067009449005,
-0.23053382337093353,
0.0652119591832161,
-0.15308736264705658,
0.005577739328145981,
0.12222950160503387,
-0.5944425463676453,
0.016727982088923454,
-0.29751408100128174,
-0.09412899613380432,
-0.007021962199360132,
0.3109413683414459,
-0.0001741647720336914,
-0.10218078643083572,
-0.023492388427257538,
-0.25132250785827637,
0.21581032872200012,
-0.13683810830116272,
-0.46596476435661316,
-0.09298267215490341,
-0.13705694675445557,
-0.30588093400001526,
0.15795496106147766,
-0.13814115524291992,
-0.17422433197498322,
0.31629806756973267,
-0.24969053268432617,
0.31834420561790466,
0.21755191683769226,
0.022202596068382263,
-0.20631153881549835,
-0.262723833322525,
0.48050355911254883,
-0.10959059745073318,
-0.09337034076452255,
-0.25711074471473694,
-0.23900172114372253
] |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Thanks for reply.
What would be the constraints
to have
Dataset —> Dataset consistency ?
Main issue would be
larger than memory dataset and
serialization on disk.
Technically,
one still process at atomic level
and try to wrap the full results
into Dataset…. (!)
What would you think ?
> On Jul 7, 2021, at 16:51, Quentin Lhoest ***@***.***> wrote:
>
>
> I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc.
>
> I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :)
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
| Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 155 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Thanks for reply.
What would be the constraints
to have
Dataset —> Dataset consistency ?
Main issue would be
larger than memory dataset and
serialization on disk.
Technically,
one still process at atomic level
and try to wrap the full results
into Dataset…. (!)
What would you think ?
> On Jul 7, 2021, at 16:51, Quentin Lhoest ***@***.***> wrote:
>
>
> I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc.
>
> I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :)
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
| [
-0.42738884687423706,
0.2038235366344452,
-0.0892709344625473,
0.0677165538072586,
0.5223822593688965,
-0.13401183485984802,
0.3225385546684265,
0.19111181795597076,
0.013091199100017548,
0.06153781712055206,
0.22661861777305603,
0.35060423612594604,
-0.4103444218635559,
0.29846757650375366,
0.01334154512733221,
-0.05427359789609909,
-0.03888573497533798,
0.29654592275619507,
-0.538669228553772,
-0.07398641854524612,
-0.16742348670959473,
-0.2261761575937271,
-0.0746392160654068,
-0.11888125538825989,
-0.07012040168046951,
-0.056087225675582886,
-0.16320276260375977,
-0.4052654802799225,
-0.3135547339916229,
-0.06573633849620819,
0.5253240466117859,
0.27627629041671753,
0.02231582999229431,
0.47556591033935547,
-0.00011431791790528223,
-0.16310550272464752,
0.23986610770225525,
0.008474277332425117,
-0.11458830535411835,
-0.4431600570678711,
-0.338858425617218,
-0.20926152169704437,
-0.08252406865358353,
-0.35102900862693787,
-0.26365306973457336,
0.01739923655986786,
0.05388261377811432,
-0.3100697696208954,
0.49179112911224365,
-0.040706880390644073,
0.14106713235378265,
-0.36649441719055176,
0.0061738863587379456,
0.039574768394231796,
-0.2592403292655945,
0.4160125255584717,
-0.18950782716274261,
-0.26592862606048584,
0.2792954444885254,
0.28375548124313354,
-0.10736281424760818,
-0.02798469178378582,
-0.04700170084834099,
-0.2350814789533615,
0.6600621342658997,
-0.19433608651161194,
0.004330664873123169,
-0.5277864933013916,
-0.046532243490219116,
0.3039243817329407,
0.6490063667297363,
-0.39817920327186584,
-0.42641767859458923,
-0.1945631206035614,
-0.03832748904824257,
0.13893379271030426,
-0.04986082762479782,
0.2443586140871048,
0.017655305564403534,
0.38496798276901245,
-0.29074937105178833,
-0.2940434515476227,
-0.4222828447818756,
0.025669816881418228,
-0.3817669451236725,
0.1451612263917923,
-0.004739786498248577,
-0.04995918273925781,
-0.03843223676085472,
0.1308087706565857,
0.3123418688774109,
-0.11270144581794739,
0.22723211348056793,
0.06862380355596542,
-0.1626565009355545,
-0.5328314304351807,
-0.30754053592681885,
0.09869445115327835,
0.03445295989513397,
0.10205633193254471,
-0.0561496838927269,
0.03767930716276169,
-0.06474067270755768,
0.012117341160774231,
0.13775959610939026,
0.26555895805358887,
-0.017764024436473846,
0.11452484130859375,
0.19950124621391296,
-0.3872467875480652,
0.030475463718175888,
0.22867721319198608,
0.008877778425812721,
-0.05936615541577339,
0.11557017266750336,
0.14833223819732666,
0.048878975212574005,
-0.05836377292871475,
0.06967626512050629,
-0.13578744232654572,
0.04417530447244644,
-0.04550943523645401,
-0.20641809701919556,
-0.0037699565291404724,
0.21029740571975708,
0.4288659393787384,
0.26722490787506104,
0.15215536952018738,
0.20641720294952393,
-0.24881552159786224,
0.07792849093675613,
0.022502107545733452,
-0.32897892594337463,
-0.07786137610673904,
0.046138692647218704,
0.05874990299344063,
-0.31087231636047363,
0.11119337379932404,
-0.16365790367126465,
0.4183042347431183,
0.13643622398376465,
-0.2913188338279724,
0.16368506848812103,
0.1784059852361679,
-0.364604651927948,
-0.029323061928153038,
-0.045736562460660934,
0.0250665545463562,
-0.2207813858985901,
0.4000898003578186,
0.008114118129014969,
0.05468038097023964,
0.17352095246315002,
0.17611485719680786,
-0.017879830673336983,
0.13666540384292603,
-0.284854918718338,
0.29278698563575745,
0.16203171014785767,
-0.063412606716156,
0.1134384348988533,
-0.44302183389663696,
-0.1859665960073471,
-0.19987769424915314,
-0.1033182144165039,
0.017200805246829987,
-0.6279922127723694,
-0.24537146091461182,
-0.13628233969211578,
0.10939307510852814,
0.03653848171234131,
0.28484901785850525,
-0.12137498706579208,
0.22522833943367004,
-0.15340997278690338,
-0.23307187855243683,
0.5798240303993225,
-0.09703968465328217,
-0.24546599388122559,
0.2289627641439438,
-0.372894287109375,
-0.13948582112789154,
0.19574041664600372,
0.2967517375946045,
0.4605462849140167,
-0.23935730755329132,
-0.49085578322410583,
0.28185778856277466,
-0.06483878940343857,
-0.11804496496915817,
0.012663841247558594,
-0.25418025255203247,
0.3696836829185486,
-0.06920629739761353,
0.26024124026298523,
0.19972911477088928,
0.004315495491027832,
0.32010892033576965,
-0.026030629873275757,
-0.44737550616264343,
0.36031797528266907,
-0.0066867396235466,
0.4549991488456726,
0.056745439767837524,
0.058583468198776245,
-0.34780561923980713,
-0.03417360037565231,
0.05309039354324341,
-0.04736637696623802,
0.24668771028518677,
0.314738929271698,
-0.00911916233599186,
0.18413203954696655,
-0.15661674737930298,
0.033421263098716736,
-0.11462444067001343,
0.11162012815475464,
-0.34076350927352905,
0.296646386384964,
-0.1415417343378067,
-0.2600736618041992,
0.5447854995727539,
0.047379642724990845,
0.12054887413978577,
-0.5010403990745544,
0.3326477110385895,
0.05007874220609665,
0.16719067096710205,
-0.15015804767608643,
0.059782929718494415,
-0.3445493280887604,
-0.19233925640583038,
0.0210284274071455,
-0.1629345417022705,
0.13142623007297516,
0.0772700309753418,
-0.049482814967632294,
0.6066024303436279,
0.40958523750305176,
-0.17006270587444305,
0.47391456365585327,
0.05108025670051575,
0.13340146839618683,
-0.11948558688163757,
-0.1270045042037964,
0.4927965998649597,
-0.09844006597995758,
0.212857186794281,
-0.08143223077058792,
-0.004412587732076645,
0.2524285316467285,
-0.2985369563102722,
-0.3720683455467224,
-0.09597618877887726,
0.10433167219161987,
-0.013754423707723618,
0.2253136783838272,
0.21280786395072937,
0.015364237129688263,
0.012466631829738617,
0.15733209252357483,
-0.07550507038831711,
0.14214348793029785,
0.3831183612346649,
-0.1746160089969635,
0.22057637572288513,
-0.2004302442073822,
0.48996034264564514,
0.5510008931159973,
0.17052273452281952,
-0.24515047669410706,
0.15999092161655426,
0.11050590127706528,
-0.06508617103099823,
0.22281786799430847,
0.05257432535290718,
0.3805498778820038,
0.22481778264045715,
-0.02984979934990406,
0.18787531554698944,
0.034926027059555054,
-0.38467466831207275,
-0.08974087983369827,
-0.06985858082771301,
-0.05283530429005623,
0.01596505008637905,
-0.29602736234664917,
-0.22277459502220154,
-0.4385722875595093,
-0.08189857006072998,
0.04922887682914734,
-0.025559449568390846,
-0.04040878266096115,
-0.042444128543138504,
0.23822501301765442,
0.11598294228315353,
-0.10455383360385895,
0.3931620121002197,
0.11400213837623596,
-0.1347837597131729,
-0.14029690623283386,
-0.08848410099744797,
0.005335744470357895,
0.03956015035510063,
0.09504061937332153,
0.01665695384144783,
0.4365261197090149,
-0.15138468146324158,
0.12934328615665436,
-0.0760708600282669,
-0.5865777730941772,
0.07192429155111313,
0.07265311479568481,
0.13065437972545624,
0.28498709201812744,
0.07182154804468155,
0.14271116256713867,
0.05458284914493561,
0.03404668718576431,
-0.19979281723499298,
-0.31829598546028137,
-0.06812572479248047,
-0.026999538764357567,
-0.056173861026763916,
-0.006238827481865883,
-0.1270183026790619,
-0.3656998872756958,
-0.15904970467090607,
0.2604334354400635,
-0.037067800760269165,
0.022501565515995026,
-0.19189849495887756,
0.03664026036858559,
-0.16758325695991516,
0.03926696628332138,
0.1488775610923767,
-0.11302154511213303,
-0.01183052733540535,
0.2623635232448578,
0.06927948445081711,
-0.26764315366744995,
-0.2812870442867279,
-0.35090577602386475,
0.14911863207817078,
0.2953980565071106,
-0.24149224162101746,
0.011000878177583218,
-0.18527711927890778,
0.04746968671679497,
0.006226923316717148,
-0.0530402809381485,
0.6440248489379883,
0.135255366563797,
-0.009084649384021759,
-0.16667085886001587,
-0.012399782426655293,
-0.07240929454565048,
0.09611954540014267,
0.17596447467803955,
0.3626631200313568,
0.4776413142681122,
0.13531745970249176,
0.45284831523895264,
-0.030990060418844223,
-0.5186716914176941,
-0.255855530500412,
0.2427675724029541,
-0.010979194194078445,
0.030900783836841583,
-0.46944648027420044,
0.209697887301445,
-0.09029924869537354,
-0.4066225290298462,
-0.10129177570343018,
-0.08845462650060654,
-0.20111438632011414,
-0.14992737770080566,
-0.0057663265615701675,
-0.10171916335821152,
-0.13210508227348328,
0.17234733700752258,
-0.1624355912208557,
0.12463779747486115,
-0.06375864893198013,
-0.03381440043449402,
0.07959865033626556,
-0.034464992582798004,
0.17255264520645142,
0.43234044313430786,
0.08138443529605865,
-0.062054574489593506,
-0.05863412842154503,
0.031068621203303337,
-0.03840640187263489,
0.08968988060951233,
-0.1239117905497551,
0.016913361847400665,
0.08031629025936127,
0.04981919378042221,
-0.14094389975070953,
-0.0480196587741375,
0.9175994396209717,
-0.10543603450059891,
0.07518390566110611,
-0.05286245420575142,
-0.40789827704429626,
-0.16062749922275543,
0.055522654205560684,
-0.25641492009162903,
-0.2815265357494354,
0.12579376995563507,
0.16075298190116882,
-0.173669695854187,
-0.046767596155405045,
-0.16748832166194916,
0.14651809632778168,
-0.36060675978660583,
-0.36810293793678284,
0.13732290267944336,
0.019704312086105347,
-0.18515178561210632,
-0.13516703248023987,
0.06034228205680847,
-0.09393170475959778,
-0.3234589397907257,
-0.16028940677642822,
-0.34615859389305115,
-0.1559462547302246,
0.30140256881713867,
-0.40908297896385193,
-0.18053507804870605,
-0.26646798849105835,
0.3182811439037323,
-0.015643160790205002,
0.24021978676319122,
0.3277975916862488,
0.083452507853508,
0.09673464298248291,
-0.4447590112686157,
0.11288193613290787,
0.09164148569107056,
0.1580241620540619,
-0.0036625564098358154,
0.13135074079036713,
-0.25200581550598145,
0.10545939952135086,
0.053769100457429886,
-0.5604135990142822,
-0.06054259091615677,
-0.0197844747453928,
0.18371708691120148,
-0.4386498034000397,
-0.5073031783103943,
0.28108516335487366,
0.3722706735134125,
-0.04375742748379707,
0.13409173488616943,
-0.08832646906375885,
-0.5383079051971436,
0.3317033052444458,
0.5413062572479248,
1.011505365371704,
0.03530847653746605,
0.09510959684848785,
-0.1618187129497528,
-0.2940160632133484,
0.41218698024749756,
-0.25512510538101196,
0.137466162443161,
-0.4025072157382965,
-0.31756672263145447,
-0.32639622688293457,
-0.3039834797382355,
0.42662590742111206,
0.3661137819290161,
-0.4697665870189667,
0.2520800828933716,
0.06604750454425812,
-0.1698083132505417,
0.17878206074237823,
0.3193555474281311,
-0.013073613867163658,
-0.4183337986469269,
0.0711158886551857,
0.14107920229434967,
-0.0415540412068367,
0.19631902873516083,
-0.04622342810034752,
-0.27236950397491455,
-0.2079681158065796,
0.2208792120218277,
-0.3255496323108673,
-0.1173689216375351,
-0.322134405374527,
-0.007234575226902962,
-0.1927797496318817,
-0.2832835614681244,
0.5923343300819397,
0.19044949114322662,
0.24292095005512238,
0.21275274455547333,
-0.0905347689986229,
-0.10155825316905975,
-0.048585325479507446,
0.25039443373680115,
0.13083112239837646,
-0.2683897316455841,
0.5263625383377075,
0.0036334730684757233,
0.0560062900185585,
-0.13352924585342407,
0.017460651695728302,
-0.10483415424823761,
0.0918322503566742,
-0.340246319770813,
0.0799732357263565,
-0.44586440920829773,
-0.032355599105358124,
0.07313667237758636,
0.0000037588179111480713,
0.0337570421397686,
0.11412432789802551,
0.2982451617717743,
-0.005326221697032452,
0.5414868593215942,
0.24115394055843353,
-0.12543663382530212,
-0.08806353807449341,
0.2546871304512024,
0.3291704058647156,
0.08570139110088348,
0.043983276933431625,
-0.24233883619308472,
-0.34452110528945923,
-0.22693324089050293,
0.29970279335975647,
-0.09330806881189346,
-0.17675751447677612,
0.29139086604118347,
-0.04919722303748131,
-0.07354646921157837,
-0.07078884541988373,
-0.2497788667678833,
0.3696146011352539,
0.14451804757118225,
-0.3072432577610016,
-0.4929693937301636,
-0.22347106039524078,
0.1468704640865326,
0.027238765731453896,
0.24724359810352325,
-0.05699805170297623,
0.22503872215747833,
0.1466008424758911,
0.05128154158592224,
-0.32496708631515503,
-0.15635879337787628,
0.1272403746843338,
0.03786906227469444,
0.0823526680469513,
-0.12065472453832626,
-0.4654301404953003,
0.02437398210167885,
-0.04101669788360596,
-0.02237716317176819,
-0.2515202462673187,
-0.17958110570907593,
0.002502473071217537,
0.17601408064365387,
0.029017627239227295,
0.3748073875904083,
-0.06231189891695976,
-0.04291938245296478,
0.025281837210059166,
0.0009238738566637039,
-0.11335369944572449,
0.18861186504364014,
-0.12126022577285767,
0.3817116320133209,
0.3555002212524414,
-0.24820148944854736,
-0.3381772041320801,
0.21744400262832642,
0.11947183310985565,
0.07223828881978989,
-0.024797316640615463,
0.43530210852622986,
0.17375577986240387,
0.08687254786491394,
-0.45251360535621643,
0.11676077544689178,
0.19055120646953583,
-0.1261228322982788,
0.4027768671512604,
-0.1667666882276535,
0.3428405225276947,
0.5249502658843994,
0.3461028039455414,
0.3309941291809082,
-0.24207086861133575,
-0.017868395894765854,
0.192012220621109,
0.16847114264965057,
-0.22437624633312225,
0.18294277787208557,
0.24875521659851074,
0.033335182815790176,
-0.07616473734378815,
0.3599671423435211,
0.19591888785362244,
-0.013688258826732635,
-0.09759433567523956,
-0.0059233540669083595,
0.5347860455513,
-0.5172256827354431,
0.2831374406814575,
0.4529384672641754,
-0.05782010778784752,
0.13005191087722778,
0.39544275403022766,
0.1173454225063324,
0.04067017138004303,
0.32922399044036865,
0.17468306422233582,
0.47385406494140625,
0.2645663022994995,
0.024352245032787323,
0.31009072065353394,
0.13824209570884705,
-0.039707642048597336,
0.5465511083602905,
-0.057876020669937134,
-0.04617772996425629,
0.14815020561218262,
-0.05532053858041763,
0.1089119240641594,
-0.3581899106502533,
-0.037486255168914795,
0.25359293818473816,
-0.2680293023586273,
0.24177846312522888,
-0.2399580180644989,
-0.12680581212043762,
0.12084086239337921,
-0.2076498121023178,
-0.1561165452003479,
-0.18414485454559326,
0.49529898166656494,
0.17789551615715027,
0.0020785927772521973,
-0.008686309680342674,
0.20540499687194824,
-0.15188327431678772,
0.08134305477142334,
-0.13581427931785583,
-0.047856405377388,
0.1461288034915924,
0.05624566599726677,
0.08462626487016678,
0.6115333437919617,
0.2377920001745224,
0.32048752903938293,
-0.2992587685585022,
0.13916344940662384,
-0.2391996532678604,
-0.27488839626312256,
0.0035135112702846527,
0.4170588254928589,
-0.22620919346809387,
-0.17578478157520294,
0.2870970070362091,
0.17123045027256012,
-0.0557432547211647,
0.31069228053092957,
0.04558120667934418,
0.24013657867908478,
-0.2947982847690582,
0.5732979774475098,
0.4169827401638031,
-0.0019930824637413025,
-0.004402674734592438,
0.10763518512248993,
-0.2917107343673706,
-0.07115554809570312,
0.5056442618370056,
-0.5531598329544067,
-0.0742897093296051,
0.0058248620480299,
0.07136618345975876,
0.05757560208439827,
0.10993443429470062,
0.15494921803474426,
0.05505707114934921,
0.052236102521419525,
-0.06166712939739227,
-0.19317899644374847,
0.05944139137864113,
0.1810077428817749,
-0.06204592436552048,
-0.3174685537815094,
-0.004277258180081844,
0.11447112262248993,
0.3869268298149109,
0.0939164012670517,
-0.2907923758029938,
-0.29406553506851196,
0.35181260108947754,
-0.11160248517990112,
0.13894648849964142,
0.13810256123542786,
0.30814129114151,
0.05597209930419922,
-0.24727287888526917,
0.05994215980172157,
0.2529652714729309,
-0.0038804374635219574,
0.09388191252946854,
0.38104015588760376,
0.15139296650886536,
0.1739979088306427,
0.1588209569454193,
0.2628677487373352,
0.4578667879104614,
-0.08033767342567444,
0.2029060572385788,
0.32546934485435486,
0.01968960277736187,
-0.298949271440506,
0.4337379038333893,
0.16880886256694794,
-0.07580205798149109,
-0.4323500096797943,
-0.20015104115009308,
0.04623034596443176,
-0.15670639276504517,
-0.0028266683220863342,
0.08781778067350388,
-0.7870500087738037,
-0.10791672766208649,
-0.22667840123176575,
-0.018589770421385765,
0.019773606210947037,
0.2365134358406067,
0.09010638296604156,
0.10044395178556442,
-0.19077354669570923,
-0.20957021415233612,
0.18084071576595306,
-0.1625896543264389,
-0.3482760787010193,
-0.20395635068416595,
-0.2373824417591095,
-0.32001182436943054,
0.06704223155975342,
-0.32714730501174927,
-0.08184449374675751,
0.3845258355140686,
-0.1479874551296234,
0.33480504155158997,
0.2760915756225586,
0.07171939313411713,
-0.08765147626399994,
-0.21400654315948486,
0.5781519412994385,
-0.1806400716304779,
-0.09730572998523712,
-0.2706850469112396,
-0.07910662889480591
] |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | We can be pretty flexible and not impose any constraints for transforms.
Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like `map` work in a batched fashion to not fill up your RAM. So this shouldn't be an issue | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 59 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
We can be pretty flexible and not impose any constraints for transforms.
Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like `map` work in a batched fashion to not fill up your RAM. So this shouldn't be an issue | [
-0.5401793718338013,
-0.018992602825164795,
-0.14400796592235565,
0.1232815831899643,
0.43725013732910156,
-0.21700525283813477,
0.2453129142522812,
0.19366101920604706,
0.2192271202802658,
0.13049161434173584,
0.06151602417230606,
0.1877676397562027,
-0.2603257894515991,
0.07238736748695374,
0.048192206770181656,
-0.011597596108913422,
-0.07829228788614273,
0.2525763511657715,
-0.5557229518890381,
-0.05736280605196953,
-0.3713934123516083,
-0.15737049281597137,
0.013565830886363983,
-0.14408525824546814,
-0.03289404511451721,
-0.24287745356559753,
0.07152121514081955,
-0.013766355812549591,
-0.13780859112739563,
0.06725998222827911,
0.3069250285625458,
0.13950930535793304,
-0.13080793619155884,
0.3437948226928711,
-0.00009789673640625551,
-0.032335828989744186,
0.03869536146521568,
-0.12936429679393768,
0.04639706015586853,
0.12445559352636337,
-0.13100385665893555,
-0.11048546433448792,
-0.10950841009616852,
-0.36120232939720154,
-0.24680745601654053,
0.04237927496433258,
0.028396543115377426,
-0.314608633518219,
0.22957852482795715,
0.13057349622249603,
0.3543733060359955,
-0.16992738842964172,
-0.1962253302335739,
-0.053974345326423645,
0.21612274646759033,
0.10793794691562653,
-0.08900153636932373,
-0.1663481593132019,
0.26657307147979736,
0.24562561511993408,
-0.3121331036090851,
0.2356688678264618,
-0.04619499668478966,
0.006583491340279579,
0.5308226943016052,
-0.1477862149477005,
0.07460736483335495,
-0.18837186694145203,
-0.04395902156829834,
0.21119168400764465,
0.3024068772792816,
-0.35855481028556824,
-0.14957860112190247,
-0.18984931707382202,
-0.06427939981222153,
0.18071235716342926,
0.1255580484867096,
0.09108631312847137,
-0.11629720032215118,
0.1236250102519989,
-0.2932368814945221,
-0.21588672697544098,
-0.18586915731430054,
0.02468840777873993,
-0.386473685503006,
0.08438808470964432,
0.08105520159006119,
-0.01988968253135681,
0.2320849597454071,
-0.1219942718744278,
0.06409583240747452,
0.23339897394180298,
0.03155660629272461,
0.036205291748046875,
-0.10758404433727264,
-0.428007036447525,
-0.31648093461990356,
-0.010484948754310608,
0.14048853516578674,
-0.07699036598205566,
0.030527839437127113,
0.21469518542289734,
0.06849916279315948,
0.04047802463173866,
0.06837087124586105,
0.2132994532585144,
-0.3577129542827606,
0.06293879449367523,
0.34719377756118774,
-0.295929491519928,
-0.09472833573818207,
0.14219322800636292,
0.17776566743850708,
-0.19199055433273315,
-0.03746798634529114,
-0.18786847591400146,
-0.14582616090774536,
-0.1118827611207962,
0.03925579786300659,
-0.14975540339946747,
0.24101749062538147,
0.2816528379917145,
-0.054895516484975815,
0.3797282576560974,
0.01648697257041931,
0.12259342521429062,
0.4158710241317749,
-0.07043016701936722,
-0.10166288167238235,
-0.02678915113210678,
-0.12345150858163834,
0.16822414100170135,
-0.23923037946224213,
-0.11781736463308334,
0.1755446493625641,
0.25475624203681946,
-0.009013264440000057,
-0.13932622969150543,
-0.001468472182750702,
0.45021894574165344,
0.1454501450061798,
-0.16329947113990784,
0.3711445927619934,
0.3215205669403076,
-0.3073902130126953,
-0.23121678829193115,
-0.18242955207824707,
0.13556364178657532,
-0.224871426820755,
0.2574271261692047,
-0.01002582162618637,
-0.06018248200416565,
0.21637168526649475,
0.33659783005714417,
-0.09654146432876587,
0.08898121118545532,
-0.016475915908813477,
0.1412249654531479,
0.05782034993171692,
-0.21000999212265015,
0.02237141877412796,
-0.1844257116317749,
-0.15611083805561066,
-0.1307399868965149,
0.004221279174089432,
0.02348468452692032,
-0.35992610454559326,
-0.1965467780828476,
-0.01618039794266224,
0.029944125562906265,
0.03936400264501572,
0.23557087779045105,
-0.2584235668182373,
-0.06667055934667587,
-0.151852548122406,
-0.09598501026630402,
0.5436255931854248,
-0.08736413717269897,
-0.5102763175964355,
0.17167261242866516,
-0.307172030210495,
-0.20669923722743988,
0.03922208398580551,
0.557034969329834,
0.30301225185394287,
-0.060661740601062775,
-0.27798178791999817,
0.4389849305152893,
-0.012084292247891426,
0.2393549680709839,
-0.15221799910068512,
-0.38072338700294495,
0.22414614260196686,
0.09997491538524628,
0.4358040988445282,
0.06959430873394012,
-0.004207894206047058,
0.44793620705604553,
0.019199270755052567,
-0.3247074782848358,
0.2287275642156601,
0.09036710858345032,
0.20296940207481384,
-0.1758001744747162,
0.05147990211844444,
-0.388158917427063,
-0.02995821088552475,
-0.019490327686071396,
-0.12316377460956573,
0.174648717045784,
0.3121488690376282,
-0.06333191692829132,
0.09396937489509583,
-0.24061287939548492,
0.06624236702919006,
0.05239420011639595,
0.3378174901008606,
-0.0506487637758255,
0.2560931146144867,
-0.3789430558681488,
0.09675836563110352,
0.36951175332069397,
-0.0359233021736145,
0.09001427888870239,
-0.40978729724884033,
0.09305212646722794,
0.03957749158143997,
0.04112742841243744,
0.0174410380423069,
-0.08580482751131058,
-0.1594679355621338,
-0.12140149623155594,
0.08888022601604462,
0.08844487369060516,
0.14233416318893433,
-0.0831504762172699,
-0.2251528799533844,
0.3935473561286926,
0.2967003583908081,
-0.08646392822265625,
0.45234817266464233,
0.2250223010778427,
0.11646806448698044,
-0.054058294743299484,
-0.23264333605766296,
0.3532537817955017,
0.0675228089094162,
0.11760462820529938,
0.0894608199596405,
-0.03545070067048073,
0.3178417980670929,
-0.21058860421180725,
-0.0916873887181282,
-0.2391740381717682,
-0.08038219809532166,
0.14627350866794586,
0.2722610831260681,
0.24180643260478973,
-0.14347043633460999,
-0.17616477608680725,
0.2574054002761841,
0.09557241201400757,
0.2356151044368744,
0.2567685842514038,
-0.1985841691493988,
0.16877907514572144,
-0.023058569058775902,
0.3929044306278229,
0.45366984605789185,
0.37728381156921387,
-0.03214569017291069,
0.057063087821006775,
-0.033480044454336166,
-0.12850633263587952,
0.1743488311767578,
-0.06117112934589386,
0.2145088016986847,
-0.007574982941150665,
0.02248120680451393,
-0.08485245704650879,
-0.31403595209121704,
-0.22028027474880219,
0.0788237676024437,
-0.004088949412107468,
-0.1285700500011444,
-0.08258900791406631,
-0.210441455245018,
-0.2082371711730957,
-0.10027854144573212,
0.17740286886692047,
-0.10652001202106476,
0.13378475606441498,
0.14695635437965393,
0.08701291680335999,
-0.1986067295074463,
0.18122614920139313,
0.061728622764348984,
0.3059971034526825,
0.14939573407173157,
-0.2343183010816574,
-0.010339714586734772,
0.04423454403877258,
-0.020934678614139557,
0.2839321196079254,
0.08126018941402435,
0.03015441633760929,
0.3573113679885864,
-0.03251378983259201,
0.015915974974632263,
-0.10756726562976837,
-0.4170719385147095,
0.021991251036524773,
0.050867099314928055,
0.1327100247144699,
0.224288210272789,
0.15502811968326569,
0.1264588087797165,
0.05454489588737488,
0.022377444431185722,
-0.2790866792201996,
-0.3149189054965973,
-0.024922817945480347,
-0.05920093506574631,
0.12740246951580048,
-0.2830105125904083,
-0.23892194032669067,
-0.09299644082784653,
-0.5055266618728638,
0.2309703528881073,
0.14517490565776825,
0.05734192207455635,
0.0028787595219910145,
0.2555830478668213,
-0.1754462718963623,
0.12535059452056885,
0.17296496033668518,
-0.2668440043926239,
0.023113641887903214,
0.43283841013908386,
-0.05561526119709015,
-0.29877349734306335,
-0.186427503824234,
-0.24190925061702728,
0.2163751870393753,
0.5209242701530457,
-0.4316140413284302,
-0.011605656705796719,
-0.28758734464645386,
-0.010450907051563263,
0.010865826159715652,
-0.04552874714136124,
0.5706769824028015,
0.04710761830210686,
-0.21820156276226044,
-0.07783587276935577,
-0.11069357395172119,
0.05975523218512535,
0.1506640464067459,
0.016526758670806885,
-0.013385724276304245,
0.2726936936378479,
0.020951885730028152,
0.23720911145210266,
-0.45984378457069397,
-0.37912440299987793,
-0.037053436040878296,
0.17541798949241638,
0.132338747382164,
-0.017674125730991364,
-0.11200667917728424,
0.15405520796775818,
0.11469407379627228,
-0.16316892206668854,
0.18655872344970703,
-0.041488125920295715,
-0.43852290511131287,
-0.14495456218719482,
-0.13289311528205872,
0.002860516309738159,
-0.2513262629508972,
0.39978885650634766,
0.06627141684293747,
-0.0650799348950386,
-0.07679277658462524,
0.11904218047857285,
-0.1788250356912613,
-0.04319901391863823,
0.1782183051109314,
0.11425888538360596,
-0.008725494146347046,
-0.07354077696800232,
-0.031092790886759758,
0.12086000293493271,
-0.10726327449083328,
0.13332301378250122,
-0.1606765240430832,
0.0035681845620274544,
-0.07281811535358429,
-0.2996205985546112,
-0.11835861206054688,
-0.1653674691915512,
0.5815542340278625,
0.050049349665641785,
0.07156570255756378,
0.15108340978622437,
-0.36800456047058105,
-0.36924126744270325,
0.1909378618001938,
-0.2953853905200958,
-0.1915869563817978,
0.02020934224128723,
0.23346668481826782,
-0.19361265003681183,
-0.03120369464159012,
-0.05042724311351776,
0.19129759073257446,
-0.35801008343696594,
-0.1948174685239792,
-0.015485018491744995,
-0.17807811498641968,
-0.38719990849494934,
0.15392208099365234,
0.10014189034700394,
-0.0908321812748909,
0.016103200614452362,
-0.2437746226787567,
-0.3259716331958771,
-0.33544424176216125,
0.24591228365898132,
0.012738293036818504,
0.09448167681694031,
-0.12804464995861053,
0.16405418515205383,
-0.1807055026292801,
0.3554748296737671,
0.20750302076339722,
0.06697780638933182,
0.1276005059480667,
-0.03317032754421234,
0.19785353541374207,
0.004381029866635799,
0.07370591163635254,
0.17076784372329712,
0.051265690475702286,
-0.07574603706598282,
-0.10461585223674774,
0.2245440036058426,
-0.5025944113731384,
0.2269371896982193,
-0.11761550605297089,
-0.037203699350357056,
-0.13970337808132172,
-0.30469179153442383,
0.3326456546783447,
0.13892494142055511,
-0.21940456330776215,
0.09529349952936172,
-0.11296752095222473,
-0.5864384770393372,
0.294036865234375,
0.6617206931114197,
0.9825021624565125,
-0.09684567153453827,
0.18302425742149353,
0.023618781939148903,
-0.09514950215816498,
0.2489519566297531,
-0.33414363861083984,
0.19136498868465424,
-0.27138596773147583,
-0.34560954570770264,
0.03924640268087387,
-0.07263553142547607,
0.09038488566875458,
0.22182713449001312,
-0.40112563967704773,
0.02302824705839157,
0.03465864062309265,
-0.2270578145980835,
-0.14721843600273132,
0.226057231426239,
0.08166540414094925,
-0.5389624238014221,
-0.19047269225120544,
0.34006667137145996,
0.010083597153425217,
-0.09799297153949738,
-0.06798192858695984,
-0.1252211183309555,
-0.08387941867113113,
0.07220621407032013,
-0.05111917108297348,
-0.14579755067825317,
-0.391018271446228,
-0.026934273540973663,
-0.43494588136672974,
-0.09616987407207489,
0.25283870100975037,
0.14953629672527313,
0.01029689610004425,
0.4106079041957855,
-0.08137550204992294,
0.1445860117673874,
-0.1695801019668579,
0.2668822705745697,
-0.044428929686546326,
-0.08626905828714371,
0.42586174607276917,
-0.1075081080198288,
-0.01760905236005783,
-0.08913377672433853,
-0.05587363243103027,
-0.2663671672344208,
0.2118803858757019,
-0.1330449879169464,
0.12361272424459457,
-0.333923876285553,
-0.030627766624093056,
0.037690047174692154,
-0.18584489822387695,
0.02362551912665367,
0.2972593903541565,
0.09537278115749359,
-0.10949401557445526,
0.4886617958545685,
0.37428995966911316,
-0.26714399456977844,
-0.24936731159687042,
0.3068592846393585,
0.4510115087032318,
0.16796787083148956,
0.06819890439510345,
-0.20793390274047852,
-0.3289976119995117,
-0.4613373577594757,
-0.03863383084535599,
0.1475534439086914,
-0.15660372376441956,
0.33107712864875793,
0.017641041427850723,
-0.4553511142730713,
-0.03629447519779205,
-0.011230815201997757,
0.26099687814712524,
0.10425754636526108,
-0.2485150396823883,
-0.11956082284450531,
-0.5757895708084106,
0.1166740208864212,
0.06003964692354202,
0.3340652287006378,
-0.07173485308885574,
-0.029190056025981903,
0.0409151092171669,
0.13098420202732086,
-0.508163571357727,
-0.0618288516998291,
-0.17017480731010437,
0.23920613527297974,
-0.09061886370182037,
0.04018701612949371,
-0.1995500773191452,
0.11647902429103851,
0.1786227524280548,
0.1987207978963852,
-0.3415725827217102,
-0.3561055362224579,
0.026503458619117737,
0.07296153157949448,
-0.08510134369134903,
0.038108617067337036,
-0.005790153052657843,
-0.11367170512676239,
-0.10057558119297028,
-0.17480331659317017,
0.2322605550289154,
0.07570380717515945,
-0.13587571680545807,
0.16171175241470337,
0.35168856382369995,
-0.19042810797691345,
-0.10613815486431122,
0.25645822286605835,
-0.022988304495811462,
0.12878847122192383,
-0.0762278214097023,
0.22484233975410461,
0.12898921966552734,
-0.07555054128170013,
-0.03703824430704117,
0.1613631248474121,
0.10920572280883789,
0.016162723302841187,
0.24293887615203857,
0.08721515536308289,
0.029628682881593704,
0.6459558010101318,
0.22138097882270813,
0.14025145769119263,
-0.07334339618682861,
-0.11044949293136597,
0.21138995885849,
0.42081841826438904,
-0.3107747733592987,
-0.1477651745080948,
0.16104117035865784,
-0.18490225076675415,
0.2987508177757263,
0.3614835739135742,
0.059765201061964035,
-0.10970765352249146,
0.11339990794658661,
0.05971164256334305,
0.26579904556274414,
-0.23696200549602509,
0.15152326226234436,
0.2913595736026764,
-0.12587948143482208,
-0.13498854637145996,
0.32012128829956055,
0.2068946659564972,
0.2180115431547165,
0.43879175186157227,
0.03762209787964821,
0.39580416679382324,
0.07724735885858536,
0.07233479619026184,
0.007183864712715149,
-0.05939038097858429,
0.08403909206390381,
0.5973978042602539,
-0.013415053486824036,
0.13843011856079102,
0.1193290576338768,
-0.07740884274244308,
0.11040035635232925,
-0.2957306206226349,
-0.16415536403656006,
-0.014918409287929535,
-0.4132995903491974,
0.23731014132499695,
0.010765451937913895,
-0.19971725344657898,
-0.1087910532951355,
0.08601276576519012,
-0.08463014662265778,
-0.28409361839294434,
0.5777487754821777,
0.043637149035930634,
0.06987069547176361,
0.21872538328170776,
0.264171302318573,
-0.1287509799003601,
-0.09558319300413132,
-0.25542593002319336,
0.04368647560477257,
0.1652052104473114,
0.0027944445610046387,
0.2931782007217407,
0.31719401478767395,
0.024732716381549835,
0.24770060181617737,
-0.1783774346113205,
0.15878382325172424,
-0.02234376221895218,
-0.14739607274532318,
-0.4861273765563965,
0.13078129291534424,
0.013042420148849487,
0.12222667038440704,
0.3329809308052063,
0.35806894302368164,
-0.27238762378692627,
0.057344768196344376,
0.08220050483942032,
-0.03063322976231575,
-0.09871277213096619,
0.15745598077774048,
0.3358226418495178,
-0.190529465675354,
-0.11321566998958588,
-0.10253769904375076,
-0.18730369210243225,
-0.07118325680494308,
0.25275036692619324,
-0.6251535415649414,
0.1733267903327942,
0.10617717355489731,
0.16275888681411743,
0.06768622249364853,
0.5246922969818115,
-0.15590845048427582,
-0.06977494806051254,
-0.037201665341854095,
-0.21995100378990173,
-0.3036783039569855,
0.16219109296798706,
0.017651982605457306,
0.09076735377311707,
-0.2603812515735626,
0.14547529816627502,
0.1455656886100769,
0.08338350057601929,
-0.02791762351989746,
-0.21306215226650238,
-0.1423187106847763,
0.09924843907356262,
-0.18222162127494812,
0.04954161122441292,
0.04388205334544182,
0.12559084594249725,
0.21526898443698883,
-0.3644395172595978,
0.057064808905124664,
0.01206220593303442,
0.3014869689941406,
-0.012486297637224197,
0.24679023027420044,
-0.0544571615755558,
0.32184016704559326,
0.4679386615753174,
0.15051846206188202,
0.4137198030948639,
-0.162535160779953,
0.12292603403329849,
0.18776851892471313,
0.04707667604088783,
-0.32085373997688293,
-0.05844705551862717,
0.30248647928237915,
0.09491130709648132,
-0.15681268274784088,
0.02387005090713501,
0.005529246758669615,
0.04956166446208954,
0.028037920594215393,
0.177648663520813,
-0.3475266695022583,
0.14901213347911835,
-0.0308273583650589,
-0.021389340981841087,
-0.09298216551542282,
0.24721306562423706,
0.007918301969766617,
-0.21081021428108215,
-0.16495321691036224,
-0.41436490416526794,
0.25557786226272583,
0.009373375214636326,
-0.2656222879886627,
-0.11676570028066635,
0.012865662574768066,
-0.16652700304985046,
0.06434935331344604,
-0.418444961309433,
0.05682315677404404,
0.1724008470773697,
-0.14450177550315857,
0.04842158034443855,
0.08564385771751404,
-0.1510893553495407,
-0.2606149911880493,
-0.31299224495887756,
0.4690490961074829,
-0.0336303785443306,
-0.15142396092414856,
-0.2540898621082306,
-0.28874045610427856
] |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | Ok thanks.
But, Dataset has various flavors.
In current design of Dataset,
how the serialization on disk is done (?)
The main issue is serialization
of newdataset= Transform(Dataset)
(ie thats why am referring to Out Of memory dataset…):
Should be part of Transform or part of dataset ?
Maybe, not, since the output is aimed to feed model in memory (?)
> On Jul 7, 2021, at 18:04, Quentin Lhoest ***@***.***> wrote:
>
>
> We can be pretty flexible and not impose any constraints for transforms.
>
> Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like map work in a batched fashion to not fill up your RAM. So this shouldn't be an issue
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
| Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 162 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
Ok thanks.
But, Dataset has various flavors.
In current design of Dataset,
how the serialization on disk is done (?)
The main issue is serialization
of newdataset= Transform(Dataset)
(ie thats why am referring to Out Of memory dataset…):
Should be part of Transform or part of dataset ?
Maybe, not, since the output is aimed to feed model in memory (?)
> On Jul 7, 2021, at 18:04, Quentin Lhoest ***@***.***> wrote:
>
>
> We can be pretty flexible and not impose any constraints for transforms.
>
> Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like map work in a batched fashion to not fill up your RAM. So this shouldn't be an issue
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
| [
-0.30282866954803467,
-0.07524600625038147,
-0.05204998701810837,
0.25686153769493103,
0.49631983041763306,
0.033300869166851044,
0.3464812934398651,
0.13595685362815857,
0.10846911370754242,
-0.04890891909599304,
0.14332512021064758,
0.18079417943954468,
-0.2497086077928543,
0.09951996058225632,
0.14334946870803833,
0.02943434938788414,
-0.03675881773233414,
0.20827525854110718,
-0.6057530641555786,
-0.11037769913673401,
-0.2944279909133911,
-0.15425798296928406,
-0.1056891530752182,
-0.11360909044742584,
-0.062263842672109604,
-0.19962485134601593,
-0.1581871211528778,
-0.12624183297157288,
-0.2569144070148468,
-0.07501214742660522,
0.4201372265815735,
0.09897060692310333,
0.11094772815704346,
0.5628958344459534,
-0.00010495312744751573,
-0.1980094462633133,
0.06296700239181519,
-0.14172904193401337,
-0.04164232686161995,
-0.12714718282222748,
-0.11059073358774185,
-0.12413579225540161,
-0.09146376699209213,
-0.37884458899497986,
-0.25158804655075073,
-0.012632043100893497,
0.04266630485653877,
-0.16326379776000977,
0.2673304080963135,
0.18912380933761597,
0.2877259850502014,
-0.2571979761123657,
0.06131536886096001,
-0.11599477380514145,
-0.09063426405191422,
0.4980599284172058,
-0.21321773529052734,
-0.13176926970481873,
0.16394223272800446,
0.29511764645576477,
-0.17686232924461365,
0.11949203908443451,
0.03161602467298508,
-0.06239898130297661,
0.6949887871742249,
-0.11449000984430313,
0.1647528111934662,
-0.3416476249694824,
-0.047490380704402924,
0.17702746391296387,
0.685839831829071,
-0.42080530524253845,
-0.2926061153411865,
-0.19781294465065002,
0.04135368391871452,
0.11255809664726257,
0.07362845540046692,
0.29185184836387634,
-0.1023893803358078,
0.4228280186653137,
-0.29063576459884644,
-0.15785714983940125,
-0.21226587891578674,
-0.027361087501049042,
-0.353839248418808,
-0.027298495173454285,
-0.04856972023844719,
0.07043556869029999,
-0.02807055041193962,
-0.08964125066995621,
0.11524642258882523,
0.06874221563339233,
0.08594163507223129,
0.005337449721992016,
-0.04710112139582634,
-0.4889361560344696,
-0.2492942214012146,
-0.10576128214597702,
0.17702969908714294,
0.020616848021745682,
-0.10555335879325867,
-0.08250492066144943,
0.06632871925830841,
-0.08804412931203842,
0.17521882057189941,
0.36546269059181213,
-0.15504410862922668,
0.1602373719215393,
0.07138301432132721,
-0.3452310860157013,
-0.0499747171998024,
0.004470214247703552,
-0.02365845814347267,
0.03802087903022766,
0.20027601718902588,
-0.01010950282216072,
-0.009433360770344734,
-0.0741238072514534,
0.10057760030031204,
-0.2199297845363617,
0.18858861923217773,
0.14360441267490387,
-0.16446392238140106,
0.25628310441970825,
0.13431592285633087,
0.23641431331634521,
0.2878933548927307,
-0.0608222559094429,
0.07285451889038086,
-0.18356332182884216,
-0.09207465499639511,
0.2097066193819046,
-0.3946242332458496,
-0.03168199211359024,
0.06148670241236687,
0.2625037729740143,
-0.09842727333307266,
-0.16312222182750702,
-0.10270503163337708,
0.2932382822036743,
0.045008569955825806,
-0.288505882024765,
0.37007805705070496,
0.2936199903488159,
-0.5175172090530396,
0.0034237075597047806,
-0.00823146104812622,
0.0908266007900238,
-0.23883628845214844,
0.38878732919692993,
-0.0808291807770729,
-0.05687836557626724,
0.12324882298707962,
0.26543065905570984,
-0.05680212751030922,
0.13044480979442596,
-0.2425498366355896,
0.2334432601928711,
0.23551452159881592,
-0.11404909193515778,
0.05234592780470848,
-0.27969205379486084,
-0.014557193964719772,
-0.22482554614543915,
0.001917598769068718,
0.13082516193389893,
-0.5505939722061157,
-0.13714197278022766,
-0.09296391159296036,
0.0054792072623968124,
0.2257182002067566,
0.2538050413131714,
-0.23892687261104584,
0.21124309301376343,
-0.2781810164451599,
-0.15985694527626038,
0.5308235883712769,
-0.07173024117946625,
-0.3687422275543213,
0.22729550302028656,
-0.34694647789001465,
-0.23166656494140625,
0.1396828591823578,
0.3911379277706146,
0.391019344329834,
-0.07391927391290665,
-0.3169717490673065,
0.32556891441345215,
-0.15475986897945404,
0.01729617454111576,
-0.18261216580867767,
-0.2983468174934387,
0.4146896004676819,
0.004398897290229797,
0.3740958273410797,
0.3172219395637512,
-0.08999209851026535,
0.5544756650924683,
0.0361766554415226,
-0.1642746478319168,
0.27363893389701843,
0.03950881212949753,
0.369933158159256,
-0.21873460710048676,
0.06695514917373657,
-0.3890492618083954,
-0.1323826014995575,
-0.01647162064909935,
0.07169631868600845,
0.23841039836406708,
0.15215399861335754,
0.042567335069179535,
-0.035138145089149475,
-0.1884232461452484,
0.10059355944395065,
-0.14410413801670074,
0.2575828433036804,
-0.06822265684604645,
0.290859580039978,
-0.3608991205692291,
-0.12019376456737518,
0.3291373550891876,
0.016959669068455696,
0.09973030537366867,
-0.47224995493888855,
0.13529063761234283,
-0.10374758392572403,
0.06372050195932388,
-0.13348206877708435,
-0.11953746527433395,
-0.14710137248039246,
-0.20590533316135406,
0.027681590989232063,
0.04560016840696335,
0.10069599747657776,
-0.07277707755565643,
-0.13696691393852234,
0.4407852292060852,
0.3833368420600891,
-0.2213459610939026,
0.4104962944984436,
0.17535114288330078,
0.1971820443868637,
-0.15817442536354065,
-0.15636417269706726,
0.32260024547576904,
0.05918806046247482,
0.053962524980306625,
-0.004589203745126724,
-0.044410340487957,
0.2749355137348175,
-0.1846643090248108,
-0.14950035512447357,
-0.22131089866161346,
-0.09303915500640869,
0.1528906524181366,
0.206458181142807,
0.26720893383026123,
-0.018020760267972946,
-0.08723101764917374,
0.27590733766555786,
-0.09933048486709595,
0.17542263865470886,
0.2399033010005951,
-0.23638439178466797,
0.09679844230413437,
-0.11559300124645233,
0.33688119053840637,
0.45159250497817993,
0.26883718371391296,
-0.017209354788064957,
0.09940622001886368,
0.22483082115650177,
-0.13741889595985413,
0.2106565237045288,
-0.010123245418071747,
0.30611085891723633,
0.09286502003669739,
-0.0435657799243927,
0.014841095544397831,
-0.14263184368610382,
-0.27317652106285095,
0.20114551484584808,
0.1052609235048294,
-0.08680939674377441,
-0.08278798311948776,
-0.07911746203899384,
-0.05861897021532059,
-0.3210168480873108,
0.11395106464624405,
0.0012529082596302032,
0.13549481332302094,
-0.04518046975135803,
0.01330522820353508,
0.06787143647670746,
0.15480400621891022,
-0.025890503078699112,
0.22858905792236328,
0.14031915366649628,
-0.0222014170140028,
-0.0016006864607334137,
0.07191572338342667,
-0.012956738471984863,
0.18600717186927795,
0.008257714100182056,
-0.052320871502161026,
0.3632894456386566,
0.023742301389575005,
0.07232915610074997,
-0.09935881942510605,
-0.39522024989128113,
0.10079900920391083,
-0.039205051958560944,
0.13625824451446533,
0.24870170652866364,
0.15830662846565247,
0.06384836882352829,
0.07395874708890915,
0.10033831000328064,
-0.1901112049818039,
-0.27427107095718384,
0.038312315940856934,
-0.0836615115404129,
0.1695401966571808,
-0.1737302839756012,
-0.3793547451496124,
-0.2794140875339508,
-0.3382386565208435,
0.18880364298820496,
0.023864228278398514,
0.0039381831884384155,
0.10180790722370148,
0.08514829725027084,
-0.16377714276313782,
0.11679686605930328,
0.13599957525730133,
-0.20133090019226074,
0.008923385292291641,
0.3245040774345398,
0.09603134542703629,
-0.3421608805656433,
-0.13819848001003265,
-0.15438251197338104,
0.010207995772361755,
0.38897812366485596,
-0.3169547915458679,
-0.03138401359319687,
-0.21512658894062042,
-0.02854636125266552,
-0.03227034956216812,
-0.17379586398601532,
0.6250020265579224,
-0.007911883294582367,
-0.14442981779575348,
-0.040227942168712616,
-0.11250673234462738,
-0.07561763375997543,
0.18653589487075806,
0.12700465321540833,
0.053928256034851074,
0.4150843322277069,
0.1548914909362793,
0.17842251062393188,
-0.23134958744049072,
-0.34818702936172485,
-0.15976250171661377,
0.21639010310173035,
0.0208490751683712,
-0.001536436378955841,
-0.28159019351005554,
0.2986259162425995,
0.08677641302347183,
-0.5257764458656311,
0.06357978284358978,
-0.14337509870529175,
-0.3126086890697479,
-0.09387347102165222,
0.04160012677311897,
-0.05917394906282425,
-0.10236594825983047,
0.30855298042297363,
-0.06289094686508179,
-0.0016259700059890747,
-0.09560360014438629,
0.08324981480836868,
-0.09036977589130402,
-0.0007783635519444942,
0.13650687038898468,
0.17920532822608948,
0.04480234533548355,
-0.08239598572254181,
-0.2790713608264923,
0.03333671763539314,
-0.17547529935836792,
-0.06888042390346527,
-0.24276103079319,
0.10187225043773651,
-0.03683749586343765,
-0.2086670994758606,
-0.044829219579696655,
-0.04717063158750534,
0.8162039518356323,
0.11398562788963318,
0.030603354796767235,
0.08672454953193665,
-0.3628517687320709,
-0.322917640209198,
0.06457069516181946,
-0.30208948254585266,
-0.2120194137096405,
-0.053454380482435226,
0.20991268754005432,
-0.21980857849121094,
-0.08174389600753784,
-0.06451696157455444,
0.3001193106174469,
-0.3440362513065338,
-0.30839622020721436,
0.08771315217018127,
-0.22145414352416992,
-0.39763566851615906,
0.009578853845596313,
0.18403853476047516,
-0.024555793032050133,
0.011908458545804024,
-0.14440512657165527,
-0.22010274231433868,
-0.11553972959518433,
0.24850083887577057,
-0.1722969263792038,
0.01775186136364937,
-0.11200682818889618,
0.15869587659835815,
-0.1353849172592163,
0.3628401756286621,
0.4106985926628113,
0.04947391897439957,
0.18060040473937988,
-0.23036009073257446,
0.2115715742111206,
-0.008221851661801338,
0.1288544237613678,
0.031182073056697845,
0.042793747037649155,
-0.21189558506011963,
0.07505811005830765,
0.14926761388778687,
-0.6959343552589417,
0.059315141290426254,
-0.10672838240861893,
-0.1500357985496521,
-0.29438090324401855,
-0.4452716112136841,
0.2117900848388672,
0.12461698055267334,
-0.1842982918024063,
-0.04012179374694824,
-0.06349371373653412,
-0.6139557957649231,
0.3885999917984009,
0.6128230094909668,
1.1169222593307495,
-0.1842900514602661,
0.1669410765171051,
-0.01689920574426651,
-0.005891434848308563,
0.3774906098842621,
-0.23715077340602875,
0.19982199370861053,
-0.3550827205181122,
-0.318329393863678,
-0.1002994030714035,
-0.1418190598487854,
0.1677478849887848,
0.3499811887741089,
-0.45124951004981995,
0.03924891725182533,
-0.030631333589553833,
-0.030270490795373917,
-0.055279552936553955,
0.24154812097549438,
0.19534212350845337,
-0.5374812483787537,
-0.13392487168312073,
0.2882777750492096,
-0.12082274258136749,
-0.03476283326745033,
-0.0453362874686718,
-0.15340298414230347,
-0.09329400956630707,
0.1907481849193573,
-0.1508704423904419,
-0.06728515028953552,
-0.32109177112579346,
0.055666908621788025,
-0.4634634554386139,
-0.1997615098953247,
0.317755788564682,
0.2684043049812317,
0.15015125274658203,
0.2492230087518692,
-0.022404013201594353,
0.025525592267513275,
-0.26583951711654663,
0.23524175584316254,
-0.0859210342168808,
-0.0709659680724144,
0.5328396558761597,
-0.06234009563922882,
-0.05184432864189148,
-0.034849897027015686,
-0.06884533911943436,
-0.17066793143749237,
0.12751156091690063,
-0.24593500792980194,
0.13420075178146362,
-0.5031854510307312,
-0.14029885828495026,
0.031263235956430435,
-0.1325474977493286,
0.014352716505527496,
0.24225956201553345,
0.2745444178581238,
-0.1834602952003479,
0.42807647585868835,
0.2632655203342438,
-0.25695979595184326,
-0.20401613414287567,
0.24887847900390625,
0.5733271241188049,
0.12301041185855865,
0.23742464184761047,
-0.11569081246852875,
-0.37989890575408936,
-0.4102577269077301,
0.1769219934940338,
0.2932388186454773,
-0.20354145765304565,
0.34635692834854126,
0.0076655372977256775,
-0.1694401502609253,
-0.0017321417108178139,
-0.0573737658560276,
0.39998042583465576,
0.08334823697805405,
-0.3539372682571411,
-0.14498358964920044,
-0.592272937297821,
0.0875968262553215,
0.008170336484909058,
0.18910175561904907,
-0.0583883598446846,
0.09692949056625366,
0.1270013004541397,
0.05520821362733841,
-0.47727257013320923,
-0.17861221730709076,
-0.15510985255241394,
0.2088940590620041,
-0.0917116105556488,
-0.05655824393033981,
-0.22931626439094543,
0.01969960890710354,
0.11210133135318756,
0.030732138082385063,
-0.2857632339000702,
-0.28748631477355957,
0.14817818999290466,
0.1052134558558464,
0.15820184350013733,
0.11438001692295074,
-0.1988067924976349,
-0.1584186553955078,
-0.10515670478343964,
-0.15567560493946075,
0.11667954921722412,
0.16720885038375854,
-0.026931248605251312,
0.3737907111644745,
0.39212268590927124,
-0.19732090830802917,
-0.36327487230300903,
0.03817053139209747,
0.07368382066488266,
0.13354606926441193,
-0.008795659057796001,
0.22207370400428772,
0.20705655217170715,
0.014372222125530243,
-0.5705885291099548,
0.23229485750198364,
0.14670276641845703,
0.07009361684322357,
0.35553187131881714,
-0.08428870141506195,
0.21527251601219177,
0.755053699016571,
0.2347375452518463,
0.014571402221918106,
-0.07522737234830856,
-0.0008539017289876938,
0.16782841086387634,
0.3209894299507141,
-0.20929446816444397,
0.08897128701210022,
0.14555738866329193,
-0.2011815756559372,
0.08743086457252502,
0.2652134299278259,
-0.037669602781534195,
0.0738556981086731,
-0.0993817001581192,
-0.021686768159270287,
0.6841114163398743,
-0.36707329750061035,
0.1809159368276596,
0.4650236666202545,
-0.04276813566684723,
0.01620183140039444,
0.49524787068367004,
0.26278066635131836,
0.14232856035232544,
0.4545312523841858,
0.15722568333148956,
0.3794993460178375,
0.24662050604820251,
0.08286154270172119,
0.2041734755039215,
0.043772172182798386,
0.07978571951389313,
0.6636735796928406,
0.037964120507240295,
-0.069757841527462,
0.040778998285532,
-0.1790003776550293,
-0.0601506270468235,
-0.4161747992038727,
-0.13537774980068207,
-0.013504475355148315,
-0.40059882402420044,
0.2915462851524353,
-0.11248653382062912,
-0.06841091811656952,
0.05789703130722046,
-0.097261443734169,
-0.1537032574415207,
-0.2673506736755371,
0.47477465867996216,
0.04621319845318794,
-0.12058445811271667,
0.1951795369386673,
0.1547546237707138,
-0.07557227462530136,
0.010136738419532776,
-0.28842076659202576,
-0.06506079435348511,
0.17355482280254364,
0.06056618317961693,
0.09867928177118301,
0.5237457156181335,
0.02636677958071232,
0.2559469938278198,
-0.08224192261695862,
0.06291355192661285,
-0.050879765301942825,
-0.2541758716106415,
-0.24533537030220032,
0.35326650738716125,
-0.12960350513458252,
0.18759430944919586,
0.1301015168428421,
0.29764896631240845,
-0.1622900366783142,
0.16548576951026917,
0.2738926112651825,
0.06770850718021393,
-0.1761026382446289,
0.2827879786491394,
0.1829780489206314,
-0.24448785185813904,
0.017565302550792694,
0.04094665125012398,
-0.3012639284133911,
0.12065689265727997,
0.46164920926094055,
-0.6105458736419678,
0.10435221344232559,
0.10443463921546936,
0.12695159018039703,
0.06151184067130089,
0.23289185762405396,
0.11640946567058563,
-0.1334685981273651,
-0.08792529255151749,
-0.001616746187210083,
-0.21383289992809296,
0.2222234010696411,
0.07224366068840027,
0.03108678199350834,
-0.21699582040309906,
0.2303779572248459,
0.22440817952156067,
0.12648528814315796,
-0.2505669593811035,
-0.30926069617271423,
-0.29791709780693054,
0.20715318620204926,
-0.09546613693237305,
-0.007638711482286453,
0.05727992206811905,
0.37794601917266846,
0.05388160049915314,
-0.2726292312145233,
0.12606225907802582,
0.19396790862083435,
0.11596307903528214,
-0.0036795027554035187,
0.2997324466705322,
0.03361368551850319,
0.24569086730480194,
0.3860706388950348,
0.18190976977348328,
0.4176512062549591,
-0.0400887206196785,
-0.008874574676156044,
0.2440115064382553,
-0.08188778907060623,
-0.21225480735301971,
0.2055051028728485,
0.21146006882190704,
0.19556038081645966,
-0.28269538283348083,
0.02308654598891735,
-0.06552348285913467,
-0.10573679953813553,
-0.14790508151054382,
-0.04037993401288986,
-0.6305207014083862,
0.03021378628909588,
-0.12641866505146027,
-0.20301778614521027,
0.087313711643219,
0.20185008645057678,
0.09493905305862427,
-0.07171769440174103,
-0.14383167028427124,
-0.38443106412887573,
0.20914995670318604,
-0.0003154100850224495,
-0.35488489270210266,
-0.1294167935848236,
-0.10198149085044861,
-0.18537282943725586,
0.08687048405408859,
-0.513361930847168,
0.12843108177185059,
0.30058422684669495,
-0.010659150779247284,
0.09924528002738953,
0.10676442086696625,
0.008075680583715439,
-0.1457768678665161,
-0.206202894449234,
0.735855221748352,
-0.21721571683883667,
-0.19246287643909454,
-0.26944699883461,
-0.12811613082885742
] |
https://github.com/huggingface/datasets/issues/2596 | Transformer Class on dataset | I'm not sure I understand, could you elaborate a bit more please ?
Each dataset is a wrapper of a PyArrow Table that contains all the data. The table is loaded from an arrow file on the disk.
We have an ArrowWriter and ArrowReader class to write/read arrow tables on disk or in in-memory buffers. | Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
| 55 | Transformer Class on dataset
Just wondering if you have intenttion to create
TransformerClass :
dataset --> dataset
and make determnistic transformation (ie not fit).
I'm not sure I understand, could you elaborate a bit more please ?
Each dataset is a wrapper of a PyArrow Table that contains all the data. The table is loaded from an arrow file on the disk.
We have an ArrowWriter and ArrowReader class to write/read arrow tables on disk or in in-memory buffers. | [
-0.36044833064079285,
-0.056124307215213776,
0.011653333902359009,
0.2704978585243225,
0.3946087956428528,
-0.09719608724117279,
0.3508627116680145,
0.04822291061282158,
-0.1000286191701889,
-0.1611098200082779,
0.1317933201789856,
0.3815634250640869,
-0.3155001401901245,
-0.08339130878448486,
0.25427907705307007,
-0.23259031772613525,
0.018295057117938995,
0.4430115818977356,
-0.30591732263565063,
-0.1537891924381256,
-0.20243169367313385,
-0.2975795269012451,
-0.14110067486763,
0.1563539206981659,
-0.10866186767816544,
-0.15254199504852295,
-0.15396149456501007,
-0.36308753490448,
-0.3081543743610382,
-0.15665863454341888,
0.6911962628364563,
0.05112902820110321,
0.023532647639513016,
0.5484085083007812,
-0.00012985581997781992,
-0.023574665188789368,
0.07271499186754227,
-0.14337992668151855,
0.12988945841789246,
-0.19231171905994415,
-0.22106245160102844,
-0.03382911533117294,
0.18111397325992584,
-0.38922446966171265,
-0.3804796636104584,
-0.2979855239391327,
-0.004094110801815987,
0.05152888596057892,
0.5385864973068237,
0.1942203938961029,
0.08660928159952164,
-0.3026258051395416,
0.05516417697072029,
0.10685112327337265,
0.21609029173851013,
0.3861628770828247,
-0.20140324532985687,
0.017513088881969452,
0.15157529711723328,
0.2822321057319641,
-0.15152904391288757,
-0.1318751722574234,
-0.17619077861309052,
-0.02727401629090309,
0.8690388202667236,
0.024441326037049294,
0.15094515681266785,
-0.36327260732650757,
-0.20435938239097595,
0.29082584381103516,
0.7759718298912048,
-0.5236781239509583,
-0.15506383776664734,
-0.06795167922973633,
0.18380460143089294,
0.15509013831615448,
0.008390337228775024,
0.28533998131752014,
-0.10652461647987366,
0.21953178942203522,
-0.11103904992341995,
-0.2602996528148651,
-0.5028033256530762,
0.10280244052410126,
-0.5214720964431763,
0.1457860767841339,
-0.0008760141208767891,
0.1302548050880432,
-0.05232347175478935,
0.07414300739765167,
0.4201734662055969,
0.02597966603934765,
0.07699120789766312,
0.2010127156972885,
-0.10597077012062073,
-0.4257585406303406,
-0.428671658039093,
0.12167468667030334,
-0.05182714760303497,
0.07064478099346161,
-0.052082449197769165,
-0.24724245071411133,
0.16689962148666382,
0.02989869937300682,
-0.04348834231495857,
0.2679724395275116,
-0.027597680687904358,
0.33524560928344727,
0.06586214900016785,
-0.31620967388153076,
-0.1533956080675125,
0.1382794976234436,
-0.06098020076751709,
-0.2558611035346985,
0.224851593375206,
0.0547073595225811,
0.14567750692367554,
-0.09029043465852737,
0.12430008500814438,
-0.22159574925899506,
-0.08310019969940186,
-0.14539603888988495,
-0.2076643705368042,
0.1542181670665741,
0.21722525358200073,
0.026733290404081345,
0.24015577137470245,
0.2879994511604309,
0.1310456097126007,
-0.20537647604942322,
0.08024581521749496,
0.288830429315567,
-0.4228097200393677,
-0.1289699375629425,
0.06845349073410034,
0.1690242886543274,
-0.328716903924942,
0.058494992554187775,
-0.2053343802690506,
0.2638607621192932,
0.0007684975862503052,
-0.3211134374141693,
0.25133952498435974,
0.3396913409233093,
-0.4704186022281647,
-0.15400370955467224,
0.15388059616088867,
-0.13037462532520294,
-0.21961256861686707,
0.6994741559028625,
-0.19401416182518005,
-0.010155770927667618,
0.07224688678979874,
0.07581037282943726,
-0.00024135597050189972,
0.06769167631864548,
-0.24309733510017395,
0.1669623851776123,
0.21101433038711548,
-0.18988117575645447,
0.32889115810394287,
-0.36187851428985596,
0.1388189196586609,
-0.29938915371894836,
-0.08878619968891144,
0.1197609156370163,
-0.7907066345214844,
-0.20190787315368652,
-0.014581741765141487,
-0.08888514339923859,
0.18475133180618286,
0.21061037480831146,
-0.31403350830078125,
0.31806570291519165,
-0.11911095678806305,
-0.05588046461343765,
0.750140905380249,
0.07907453179359436,
-0.365793913602829,
0.14100927114486694,
-0.4655137062072754,
-0.30851876735687256,
0.26501360535621643,
0.4832536280155182,
0.24254925549030304,
-0.09040315449237823,
-0.5927634239196777,
0.17444603145122528,
0.049494072794914246,
-0.19067993760108948,
0.016551505774259567,
-0.16020330786705017,
0.4672035574913025,
0.027599841356277466,
0.28900837898254395,
0.22777420282363892,
0.16618900001049042,
0.14607654511928558,
-0.030154168605804443,
-0.35294783115386963,
0.28814709186553955,
0.021704426035284996,
0.3800840675830841,
-0.0008923634886741638,
0.0429794043302536,
-0.2651745080947876,
-0.04655899107456207,
-0.11685489863157272,
-0.21437732875347137,
0.1626739501953125,
0.1254604458808899,
-0.08599409461021423,
0.040173470973968506,
-0.218502938747406,
-0.20534150302410126,
-0.14958088099956512,
0.027509838342666626,
-0.3762701451778412,
0.34538182616233826,
-0.32319849729537964,
-0.2045760303735733,
0.36233213543891907,
0.03274930268526077,
0.20752856135368347,
-0.4299810826778412,
0.4497601091861725,
-0.08518438786268234,
0.058944642543792725,
-0.20498311519622803,
-0.12239948660135269,
-0.04879637062549591,
-0.16319477558135986,
-0.0185092743486166,
-0.0753684788942337,
0.02263832464814186,
-0.22531811892986298,
-0.07449843734502792,
0.3795032501220703,
0.24430333077907562,
-0.6910706758499146,
0.6359952688217163,
-0.07142661511898041,
0.14481377601623535,
-0.25947827100753784,
-0.16143232583999634,
0.4715092182159424,
-0.0678139328956604,
0.22638127207756042,
-0.27807992696762085,
-0.012620139867067337,
0.11199606955051422,
-0.3335907757282257,
-0.10630854219198227,
0.1066770851612091,
-0.06788958609104156,
0.11178892850875854,
0.23807691037654877,
0.2574709355831146,
0.06498894095420837,
-0.18648704886436462,
0.12553821504116058,
-0.15977250039577484,
0.23512402176856995,
0.4662558138370514,
-0.25357067584991455,
0.20551437139511108,
-0.17916887998580933,
0.3958261013031006,
0.6401335000991821,
0.17187315225601196,
-0.31247028708457947,
0.23813381791114807,
0.03875843062996864,
-0.04055609926581383,
0.2972995936870575,
-0.07220309972763062,
0.3564675748348236,
0.00870773196220398,
-0.19429929554462433,
0.1325376182794571,
-0.046717140823602676,
-0.2978575825691223,
0.09133677929639816,
0.16494986414909363,
-0.22846391797065735,
0.0794561579823494,
-0.0708310604095459,
-0.1709194779396057,
-0.4144054651260376,
-0.06930005550384521,
0.007886616513133049,
0.2818385362625122,
-0.08629996329545975,
-0.17292921245098114,
0.31152278184890747,
0.057358622550964355,
-0.1573176234960556,
0.1988900601863861,
0.2325233370065689,
-0.17143508791923523,
-0.19343164563179016,
-0.13233675062656403,
-0.026280134916305542,
0.04997887834906578,
-0.06615764647722244,
0.09928425401449203,
0.2294829785823822,
-0.29769840836524963,
0.24044103920459747,
-0.06809887290000916,
-0.294752299785614,
0.02005564421415329,
-0.06145818531513214,
0.022762179374694824,
0.2964046597480774,
0.25875404477119446,
-0.1494283378124237,
-0.10049315541982651,
0.1512504518032074,
-0.10104034096002579,
-0.36087945103645325,
0.175301194190979,
-0.26116886734962463,
0.08574342727661133,
0.17930588126182556,
-0.19491010904312134,
-0.26429468393325806,
-0.016240037977695465,
0.16387537121772766,
0.1531156450510025,
0.0431889183819294,
-0.1628795713186264,
0.1258719563484192,
-0.07525969296693802,
-0.0013594082556664944,
0.10074278712272644,
0.033494360744953156,
0.1717408448457718,
0.3631783723831177,
0.1620592474937439,
-0.18930892646312714,
-0.05032481998205185,
-0.2994687557220459,
0.029903825372457504,
0.3481317162513733,
-0.43286019563674927,
0.05119175836443901,
-0.12696543335914612,
0.1268928050994873,
-0.14789371192455292,
-0.013434058055281639,
0.623485803604126,
0.18280579149723053,
0.03863556683063507,
-0.036139506846666336,
-0.04359054937958717,
-0.06367384642362595,
0.01672409288585186,
0.1787312924861908,
0.1327090859413147,
0.4253958761692047,
-0.12833677232265472,
0.458335816860199,
-0.33257535099983215,
-0.3514343798160553,
-0.11176440119743347,
0.10255993157625198,
-0.030140284448862076,
0.13163810968399048,
-0.30310726165771484,
0.046897903084754944,
0.14951856434345245,
-0.3250488042831421,
-0.0367085337638855,
-0.2300453782081604,
-0.3270389437675476,
-0.1254158914089203,
-0.16804754734039307,
-0.09726031869649887,
-0.07463301718235016,
0.24532519280910492,
-0.1871759295463562,
-0.04182952642440796,
-0.32863742113113403,
-0.04220592975616455,
0.09856140613555908,
-0.04026485234498978,
0.0708341896533966,
0.49729758501052856,
-0.01944918930530548,
0.015937043353915215,
-0.010600902140140533,
-0.03617032989859581,
0.15080904960632324,
0.011838242411613464,
-0.2517883777618408,
0.08916275948286057,
0.02074648067355156,
0.08582992106676102,
0.17049260437488556,
-0.004848876502364874,
0.7906423807144165,
0.10830314457416534,
0.11971567571163177,
0.23356997966766357,
-0.12137721478939056,
-0.40226057171821594,
-0.01982845552265644,
-0.3051270544528961,
-0.1082744151353836,
-0.19837436079978943,
-0.13387109339237213,
-0.2571403980255127,
-0.08098123967647552,
0.08344396948814392,
0.2612776458263397,
-0.36656633019447327,
-0.4619605541229248,
-0.03632570430636406,
-0.11902593076229095,
-0.24589119851589203,
0.19449898600578308,
0.07999683916568756,
-0.10933685302734375,
-0.03936714679002762,
-0.023013602942228317,
-0.2647078037261963,
-0.1444283127784729,
0.19122391939163208,
-0.1442517191171646,
0.012875985354185104,
-0.1909673660993576,
0.07574856281280518,
-0.10494977235794067,
0.2206997126340866,
0.27642297744750977,
0.18941718339920044,
0.1228579580783844,
-0.43578672409057617,
-0.0072486381977796555,
0.01789540797472,
0.414827823638916,
-0.16934269666671753,
-0.017324872314929962,
0.0359380841255188,
-0.05276165157556534,
0.11646704375743866,
-0.13066960871219635,
-0.07858401536941528,
-0.015579137951135635,
-0.03304377198219299,
-0.23130890727043152,
-0.3976016342639923,
0.38080936670303345,
0.181830033659935,
-0.14066603779792786,
0.1326073706150055,
0.19002023339271545,
-0.4119343161582947,
0.29648780822753906,
0.6284171342849731,
1.2970558404922485,
-0.013190187513828278,
0.18642716109752655,
0.061984430998563766,
-0.21028758585453033,
0.337314248085022,
-0.15188969671726227,
-0.0384925939142704,
-0.41816091537475586,
-0.27540379762649536,
-0.24382485449314117,
-0.44499391317367554,
0.36969780921936035,
0.45421987771987915,
-0.508364200592041,
0.12583398818969727,
-0.397027850151062,
-0.18942494690418243,
0.2302427589893341,
-0.05159755423665047,
0.3095279932022095,
-0.2607071101665497,
-0.05563309043645859,
0.009316999465227127,
-0.17617258429527283,
0.16143518686294556,
-0.03179379552602768,
-0.182148277759552,
-0.23130476474761963,
0.1159127950668335,
-0.0707368552684784,
-0.13435803353786469,
-0.5251280069351196,
-0.10500622540712357,
-0.2574150264263153,
-0.4517550468444824,
0.6619157791137695,
0.36505335569381714,
0.008516751229763031,
0.09337630867958069,
-0.09146679192781448,
0.01367487944662571,
0.03208940848708153,
0.16992297768592834,
-0.042056113481521606,
-0.22484371066093445,
0.48180609941482544,
-0.11971605569124222,
-0.15508855879306793,
0.11497274041175842,
-0.11057678610086441,
-0.18786221742630005,
0.3535492420196533,
-0.13959072530269623,
0.2810429632663727,
-0.4471855163574219,
-0.0013255137018859386,
-0.0551852285861969,
-0.06236044317483902,
0.03939430043101311,
0.05223198980093002,
0.31587573885917664,
-0.006199919153004885,
0.3939513564109802,
0.26163122057914734,
-0.34105589985847473,
0.003275929018855095,
0.1149432361125946,
0.642734706401825,
0.16861437261104584,
0.2632632851600647,
-0.27075788378715515,
-0.3766036629676819,
-0.2814811170101166,
0.17837685346603394,
0.23879751563072205,
-0.5504468679428101,
0.07654035836458206,
0.10079018026590347,
0.13892890512943268,
-0.02523067221045494,
-0.2555328905582428,
0.4737342596054077,
0.3242422640323639,
-0.4022252559661865,
-0.4078059792518616,
-0.4356183409690857,
-0.03404901176691055,
0.18719902634620667,
0.09443681687116623,
0.021250970661640167,
0.24630501866340637,
0.45922157168388367,
0.18947166204452515,
-0.20774811506271362,
0.002355382777750492,
0.019159993156790733,
0.14194495975971222,
-0.005998311564326286,
0.07664033770561218,
-0.37803998589515686,
0.16735923290252686,
-0.05964210629463196,
-0.07411135733127594,
-0.19743387401103973,
-0.0940062403678894,
0.0293082557618618,
0.22976957261562347,
0.14798703789710999,
0.1731087863445282,
-0.25006189942359924,
-0.0883190929889679,
0.03477088734507561,
0.15025804936885834,
-0.080712229013443,
0.13474109768867493,
-0.16259461641311646,
0.3228534162044525,
0.6502869725227356,
-0.23577800393104553,
-0.7550683617591858,
0.07381048798561096,
-0.034630753099918365,
0.07322696596384048,
-0.12032674252986908,
0.21733735501766205,
0.11602110415697098,
-0.013732761144638062,
-0.40530797839164734,
0.10187515616416931,
0.13811248540878296,
-0.03144457936286926,
0.32765448093414307,
-0.10838581621646881,
0.3197033405303955,
0.1807756870985031,
0.07967980951070786,
0.307389497756958,
-0.18532606959342957,
-0.010397602804005146,
0.20379638671875,
0.06236562877893448,
-0.3804176151752472,
0.08896389603614807,
0.20936772227287292,
0.0341322086751461,
-0.1200723648071289,
0.26222383975982666,
-0.060771286487579346,
0.03688555210828781,
-0.12321823835372925,
-0.010791461914777756,
0.37704524397850037,
-0.2025352269411087,
0.09982533752918243,
0.7080119252204895,
-0.2438095510005951,
0.020061060786247253,
0.6556425094604492,
0.19762834906578064,
-0.1139334961771965,
0.1668045073747635,
0.07048527896404266,
0.3836416006088257,
0.10706409066915512,
-0.1209113746881485,
0.25177642703056335,
0.19350631535053253,
-0.02989460900425911,
0.5973747968673706,
0.18243417143821716,
-0.3034854233264923,
0.16539694368839264,
0.07097303122282028,
0.20928926765918732,
-0.31644994020462036,
0.05879884213209152,
0.08309155702590942,
-0.2280348539352417,
0.413318932056427,
-0.3233685791492462,
-0.10605629533529282,
0.14563490450382233,
-0.2937205135822296,
-0.21353015303611755,
-0.23871983587741852,
0.3417325019836426,
0.21200580894947052,
0.0011816248297691345,
0.18604335188865662,
0.39112788438796997,
0.06054132059216499,
0.030132796615362167,
-0.14636217057704926,
0.07614421099424362,
0.1960953027009964,
0.15214291214942932,
0.14963169395923615,
0.3942979872226715,
0.16326530277729034,
0.2761097550392151,
-0.15174610912799835,
0.07235834002494812,
-0.08456458151340485,
-0.27772584557533264,
0.028280023485422134,
0.2136630117893219,
-0.08708235621452332,
-0.0966932475566864,
0.2509818971157074,
0.14308179914951324,
-0.06894240528345108,
0.2980152666568756,
0.09755038470029831,
0.19082146883010864,
-0.04137732461094856,
0.37000131607055664,
0.16673807799816132,
-0.44764405488967896,
-0.010499291121959686,
0.09617026895284653,
-0.18858668208122253,
0.09038194268941879,
0.4336329996585846,
-0.5003529787063599,
-0.061982568353414536,
-0.053298961371183395,
-0.029284559190273285,
0.21923044323921204,
0.3402995467185974,
0.13010722398757935,
0.3010830283164978,
-0.23037967085838318,
-0.06879457831382751,
-0.39810219407081604,
0.21001464128494263,
0.10483092069625854,
-0.1326291561126709,
-0.01653481274843216,
-0.11782056838274002,
0.11124934256076813,
0.2530873417854309,
0.138764426112175,
-0.046442706137895584,
-0.20621357858181,
0.39141249656677246,
-0.12013325095176697,
0.06493428349494934,
0.2923528552055359,
0.4736349582672119,
-0.0678982064127922,
-0.21382787823677063,
0.09619417786598206,
0.3186483681201935,
-0.05268743261694908,
-0.061487309634685516,
0.2939701974391937,
0.18289291858673096,
0.4395686089992523,
0.33217352628707886,
0.005055055022239685,
0.8048731088638306,
0.007444955408573151,
0.40481987595558167,
0.5635289549827576,
0.08195653557777405,
-0.27708539366722107,
0.3589553236961365,
0.29519739747047424,
-0.14199060201644897,
-0.22971506416797638,
-0.105080246925354,
-0.02724067121744156,
-0.21226318180561066,
-0.07600677013397217,
0.22102753818035126,
-0.7341040372848511,
0.04972471296787262,
-0.13599884510040283,
-0.15358424186706543,
0.10583660751581192,
-0.04754328727722168,
0.11449713259935379,
-0.05525679886341095,
-0.2382289469242096,
-0.19231365621089935,
0.35825079679489136,
-0.06860923022031784,
-0.2909306287765503,
0.06174899637699127,
-0.0494968444108963,
-0.1480582058429718,
0.17917321622371674,
-0.2567441761493683,
0.05073537677526474,
0.49113643169403076,
-0.08878243714570999,
0.23916178941726685,
-0.00449870340526104,
-0.10329852998256683,
0.011300761252641678,
-0.18643341958522797,
0.814225435256958,
-0.32969334721565247,
0.020368868485093117,
-0.4875220060348511,
-0.25999659299850464
] |
https://github.com/huggingface/datasets/issues/2595 | ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets | Hi @profsatwinder.
It looks like you are using an old version of `datasets`. Please update it with `pip install -U datasets` and indicate if the problem persists. | Error traceback:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-a7b592d3bca0> in <module>()
1 from datasets import load_dataset, load_metric
2
----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation")
4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test")
9 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>()
19
20 import datasets
---> 21 from datasets.tasks import AutomaticSpeechRecognition
22
23
ModuleNotFoundError: No module named 'datasets.tasks' | 27 | ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
Error traceback:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-a7b592d3bca0> in <module>()
1 from datasets import load_dataset, load_metric
2
----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation")
4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test")
9 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>()
19
20 import datasets
---> 21 from datasets.tasks import AutomaticSpeechRecognition
22
23
ModuleNotFoundError: No module named 'datasets.tasks'
Hi @profsatwinder.
It looks like you are using an old version of `datasets`. Please update it with `pip install -U datasets` and indicate if the problem persists. | [
-0.4680482745170593,
-0.2621822953224182,
-0.04225901514291763,
-0.12496843934059143,
0.20410260558128357,
0.14506244659423828,
0.4402434527873993,
0.2543094754219055,
0.22203567624092102,
0.13481761515140533,
-0.2110193818807602,
0.20888783037662506,
-0.27976685762405396,
-0.07806102931499481,
0.08124536275863647,
-0.05570831149816513,
0.04231979697942734,
0.22078995406627655,
0.004247307777404785,
-0.19110532104969025,
-0.031974054872989655,
0.1782890111207962,
-0.33060139417648315,
0.20550116896629333,
-0.3548136055469513,
-0.2180953025817871,
0.07793737202882767,
0.04236762225627899,
-0.0422455370426178,
-0.24390006065368652,
0.1500825583934784,
-0.014650817960500717,
0.0705009326338768,
0.481868714094162,
-0.00010449938417878002,
0.046449266374111176,
0.3543688654899597,
-0.050302617251873016,
-0.3212527930736542,
-0.42220401763916016,
-0.3318476676940918,
0.03482760488986969,
-0.04613800346851349,
-0.15791788697242737,
0.10334492474794388,
0.1319064497947693,
0.12634673714637756,
-0.13682538270950317,
0.5385982394218445,
0.3482382893562317,
0.2840605676174164,
0.413154661655426,
0.15671387314796448,
-0.12671537697315216,
0.01978917047381401,
0.2498226910829544,
-0.04030846804380417,
0.297265887260437,
0.08955761045217514,
-0.1931075006723404,
0.3447544276714325,
0.28938090801239014,
-0.23903566598892212,
0.06366734206676483,
0.07982400804758072,
-0.04652382805943489,
-0.04149617254734039,
-0.4952997863292694,
0.07444722950458527,
0.13219301402568817,
0.31837189197540283,
-0.41038867831230164,
-0.19299976527690887,
-0.20507848262786865,
0.11013176292181015,
-0.27230143547058105,
0.00043035298585891724,
-0.0182034894824028,
-0.13237951695919037,
0.10622818768024445,
0.11628462374210358,
-0.18847797811031342,
0.022916071116924286,
0.026892952620983124,
-0.0017303414642810822,
-0.032781921327114105,
-0.057935915887355804,
-0.13116320967674255,
0.24403893947601318,
-0.1913582980632782,
-0.122138611972332,
0.23690269887447357,
0.17705518007278442,
0.5055814981460571,
-0.4833759069442749,
-0.17238560318946838,
0.22301208972930908,
-0.25376754999160767,
0.08283868432044983,
0.012146072462201118,
0.026049509644508362,
0.1074606329202652,
-0.1929786056280136,
0.29380837082862854,
0.15716013312339783,
0.20555907487869263,
0.24075961112976074,
0.3080773949623108,
0.2705408036708832,
0.19832958281040192,
-0.05292296037077904,
0.10624832659959793,
-0.27316465973854065,
-0.16814137995243073,
0.26002007722854614,
-0.05166143923997879,
0.49453628063201904,
-0.17212353646755219,
-0.5520051717758179,
0.06451588124036789,
-0.1806008219718933,
-0.09731664508581161,
0.04375890642404556,
0.27258190512657166,
-0.05976823344826698,
0.26821333169937134,
0.09926791489124298,
0.09802163392305374,
-0.31257155537605286,
-0.08398173004388809,
-0.2083452194929123,
0.12046733498573303,
-0.13398879766464233,
0.03753950446844101,
0.1968415379524231,
-0.1620701402425766,
0.16114060580730438,
0.02629661187529564,
0.1254216879606247,
-0.09945525228977203,
0.06077677756547928,
-0.08042670786380768,
-0.3314155042171478,
0.16535316407680511,
-0.05826307833194733,
-0.014087275601923466,
0.04459446296095848,
0.02539660781621933,
-0.15046396851539612,
0.08688966929912567,
-0.3289186954498291,
-0.19164234399795532,
0.041740525513887405,
0.26437294483184814,
-0.0014751087874174118,
-0.2592628598213196,
-0.18522563576698303,
0.019564151763916016,
-0.011282853782176971,
-0.3709942698478699,
-0.13091149926185608,
-0.36078357696533203,
0.06614883244037628,
0.1108473613858223,
0.30373501777648926,
0.2592231035232544,
-0.08037367463111877,
-0.2542341351509094,
-0.1639973670244217,
-0.18258070945739746,
0.013344064354896545,
0.32370078563690186,
-0.008494984358549118,
0.14059869945049286,
-0.06374065577983856,
0.4380912184715271,
0.2472982406616211,
-0.45269373059272766,
-0.24913698434829712,
0.1340448409318924,
0.09614622592926025,
0.06780584901571274,
-0.13990408182144165,
-0.21476005017757416,
0.1372888833284378,
-0.011143486015498638,
0.3468586504459381,
0.17331428825855255,
-0.01339002512395382,
-0.1076786071062088,
-0.05891403928399086,
-0.14396105706691742,
0.13195182383060455,
0.23438550531864166,
0.004960816353559494,
-0.04832267016172409,
-0.04276812821626663,
0.1929658204317093,
0.12696495652198792,
-0.17895716428756714,
0.038704484701156616,
0.2070474624633789,
0.4356285333633423,
0.06957239657640457,
-0.08904886990785599,
-0.41998291015625,
-0.1745186448097229,
0.03763287514448166,
0.021216679364442825,
0.25850778818130493,
-0.2317056804895401,
-0.09896484017372131,
-0.40541642904281616,
-0.10512253642082214,
-0.3773016333580017,
0.12027439475059509,
0.16697373986244202,
0.09908293187618256,
-0.061088379472494125,
0.006681840866804123,
-0.2997961938381195,
0.37572726607322693,
-0.13137851655483246,
0.09442348778247833,
-0.3323698937892914,
0.373622328042984,
-0.23770882189273834,
-0.2670724093914032,
0.24095052480697632,
0.4113731384277344,
-0.004160858690738678,
0.06251601874828339,
-0.11709382385015488,
0.21254178881645203,
-0.007691011298447847,
0.17219792306423187,
-0.2736346423625946,
-0.07516597211360931,
0.06570284068584442,
-0.3961907625198364,
0.033885639160871506,
0.11104758083820343,
0.04263157770037651,
-0.08869007229804993,
0.028557084500789642,
0.1296459287405014,
0.1537570357322693,
0.10633575916290283,
0.11651098728179932,
0.08684340119361877,
0.1682518720626831,
-0.06831035017967224,
-0.22810478508472443,
-0.0361747145652771,
0.2848307192325592,
-0.18528248369693756,
0.4031328856945038,
-0.038133054971694946,
-0.6622080206871033,
-0.3254398703575134,
0.49391472339630127,
-0.023165009915828705,
0.26339229941368103,
0.08828143775463104,
-0.2232542335987091,
0.20043334364891052,
0.12878595292568207,
-0.1824387013912201,
0.43718045949935913,
0.25298091769218445,
-0.11841000616550446,
0.2785460650920868,
-0.12138239294290543,
-0.01482540275901556,
-0.0021357461810112,
0.037637725472450256,
0.09448906779289246,
0.19065412878990173,
0.05395875126123428,
0.13092869520187378,
-0.4432958662509918,
-0.24921758472919464,
-0.2248522788286209,
0.1723361313343048,
-0.35433050990104675,
-0.034156158566474915,
-0.27806204557418823,
-0.048387449234724045,
-0.18973588943481445,
-0.09766190499067307,
-0.24224460124969482,
-0.08856087177991867,
-0.018589772284030914,
0.13715019822120667,
0.1353914588689804,
0.43190574645996094,
-0.04417931288480759,
-0.06195111572742462,
0.04690968245267868,
-0.4555506110191345,
-0.1673714816570282,
-0.16925938427448273,
-0.09829515963792801,
0.1030317097902298,
0.35747480392456055,
0.015301452949643135,
0.2674028277397156,
-0.21922385692596436,
-0.004659777507185936,
0.04954496771097183,
-0.3638140559196472,
-0.004420246928930283,
-0.24710465967655182,
0.1006777286529541,
0.02809719741344452,
0.19446465373039246,
-0.0877813994884491,
-0.27164897322654724,
0.2568014860153198,
-0.29029563069343567,
-0.3031879663467407,
0.008494269102811813,
-0.07150989025831223,
-0.2179572433233261,
-0.10560616850852966,
-0.6792393922805786,
-0.4916088581085205,
-0.38240012526512146,
0.18915706872940063,
-0.004323653876781464,
-0.05044816434383392,
0.5760884881019592,
-0.0038486099801957607,
0.16622470319271088,
-0.03960134834051132,
0.20013953745365143,
-0.1855197250843048,
-0.0014175660908222198,
0.36840465664863586,
-0.17622578144073486,
-0.19844728708267212,
0.06507273018360138,
-0.20732997357845306,
0.6107491254806519,
-0.17717912793159485,
-0.17900872230529785,
-0.09921443462371826,
-0.11539889872074127,
0.2072145938873291,
-0.14265605807304382,
0.19877459108829498,
0.25621914863586426,
0.2243708372116089,
-0.0665227398276329,
-0.03854307159781456,
-0.22909139096736908,
-0.08922482281923294,
0.5440243482589722,
0.12367494404315948,
0.02992340549826622,
0.3696117699146271,
-0.23377016186714172,
0.7312173247337341,
0.2542451322078705,
0.052972208708524704,
0.22507397830486298,
-0.1787751168012619,
0.25733840465545654,
-0.23298799991607666,
-0.4067516624927521,
0.22507573664188385,
0.052332766354084015,
0.12402516603469849,
0.1890377253293991,
-0.07551748305559158,
-0.17171353101730347,
-0.3085709512233734,
-0.1609121710062027,
-0.2336980104446411,
-0.2439303994178772,
-0.11221443116664886,
-0.21183624863624573,
0.3328001797199249,
0.13657358288764954,
0.0779007151722908,
-0.171739399433136,
-0.0623185858130455,
0.14070488512516022,
0.1314401477575302,
-0.06792943924665451,
0.06768371164798737,
-0.31492820382118225,
-0.09493017196655273,
-0.26110243797302246,
0.13216626644134521,
-0.06716374307870865,
0.3845617175102234,
-0.31054675579071045,
-0.005371086299419403,
-0.09060907363891602,
0.10611941665410995,
-0.026805251836776733,
0.05102922394871712,
-0.16778099536895752,
0.15270262956619263,
0.2210833728313446,
-0.15672051906585693,
-0.0859282836318016,
-0.13425523042678833,
0.01228165253996849,
0.14346309006214142,
0.15306922793388367,
-0.2973594069480896,
0.012724066153168678,
0.3386223316192627,
0.3727751672267914,
0.03774816915392876,
-0.09411752223968506,
-0.26680976152420044,
-0.3024865686893463,
-0.48973548412323,
0.12073592841625214,
0.1983536332845688,
0.09638401120901108,
-0.19931508600711823,
0.1669946014881134,
0.208314910531044,
-0.10862419754266739,
0.4872303605079651,
0.1101527214050293,
0.17201119661331177,
-0.05017675831913948,
0.3456844091415405,
0.5056829452514648,
0.13421280682086945,
0.2906110882759094,
0.6657877564430237,
-0.022307656705379486,
-0.5903894305229187,
-0.12387441843748093,
-0.0629284605383873,
0.39589619636535645,
0.08724896609783173,
0.10590341687202454,
-0.04795631021261215,
0.32122543454170227,
-0.026497088372707367,
-0.04841671139001846,
0.15254470705986023,
0.5146479606628418,
0.39276638627052307,
-0.33947908878326416,
-0.4118448793888092,
0.09500578790903091,
0.18550144135951996,
0.08756178617477417,
0.06814585626125336,
-0.10430243611335754,
-0.16130979359149933,
-0.03560175374150276,
-0.4842154383659363,
0.7983002066612244,
0.3278929591178894,
0.044506095349788666,
0.22525781393051147,
-0.030371254310011864,
0.03999435901641846,
-0.10184347629547119,
0.08847866952419281,
-0.13249021768569946,
0.058684494346380234,
-0.005945613607764244,
-0.1115388572216034,
0.20561140775680542,
0.08895657956600189,
-0.40665897727012634,
0.4010354280471802,
0.08365915715694427,
-0.020754370838403702,
0.038233742117881775,
0.28026217222213745,
0.021472260355949402,
-0.14099730551242828,
-0.11784273386001587,
0.23918086290359497,
-0.15854030847549438,
0.5873625874519348,
0.09033135324716568,
-0.09470280259847641,
-0.06245595961809158,
-0.30765849351882935,
-0.1190488189458847,
0.2365187108516693,
-0.17631706595420837,
0.18999765813350677,
0.31967055797576904,
-0.07804793864488602,
0.3400171101093292,
0.024367820471525192,
0.011199243366718292,
-0.019650917500257492,
-0.24279561638832092,
0.09519362449645996,
0.12175555527210236,
0.014033865183591843,
-0.046279601752758026,
0.018566858023405075,
0.5849071741104126,
-0.10096387565135956,
-0.43257200717926025,
0.14550334215164185,
-0.055094148963689804,
0.03906261920928955,
-0.26919132471084595,
0.04983898252248764,
0.283935010433197,
-0.1750936508178711,
-0.22183997929096222,
0.1223258525133133,
0.2192094624042511,
-0.027199599891901016,
0.21554090082645416,
0.06490815430879593,
-0.12252310663461685,
0.3755878806114197,
0.039561327546834946,
0.07220470905303955,
-0.0408567450940609,
0.2515895664691925,
-0.018733110278844833,
-0.3264915347099304,
0.612922191619873,
-0.0750419870018959,
-0.1617056131362915,
-0.30275455117225647,
0.07314581423997879,
0.11651427298784256,
-0.2352832555770874,
-0.0564119853079319,
0.11712914705276489,
0.09034848213195801,
0.029193835332989693,
0.19553813338279724,
-0.017714031040668488,
-0.24864792823791504,
-0.06443608552217484,
-0.14120152592658997,
-0.3983120620250702,
0.22892795503139496,
0.11194479465484619,
0.300100177526474,
-0.10092464089393616,
0.3502112925052643,
0.2470615804195404,
-0.020484687760472298,
-0.408629834651947,
-0.017280973494052887,
-0.15061403810977936,
0.22977297008037567,
0.38677680492401123,
-0.2138603925704956,
0.07955774664878845,
0.004547372460365295,
0.2706660330295563,
0.06811041384935379,
-0.1541386991739273,
-0.29020339250564575,
-0.1380581557750702,
0.07492731511592865,
0.10812021791934967,
-0.0461760088801384,
0.16556410491466522,
0.030688956379890442,
-0.09279809892177582,
-0.16296745836734772,
-0.024025389924645424,
0.07060793787240982,
-0.10044611990451813,
0.26117250323295593,
0.019956517964601517,
-0.009458914399147034,
0.24623270332813263,
0.14675354957580566,
-0.024072587490081787,
0.1554422825574875,
-0.02289036102592945,
0.08983289450407028,
0.1484561562538147,
0.07804572582244873,
-0.22698812186717987,
0.09271363914012909,
0.3652600646018982,
-0.2079780399799347,
0.09195257723331451,
-0.41460758447647095,
-0.18692423403263092,
0.0035452977754175663,
0.2747446894645691,
0.29395967721939087,
-0.2162156105041504,
0.06637027114629745,
0.32280033826828003,
0.29190874099731445,
-0.4339710772037506,
0.21760277450084686,
0.3344880938529968,
0.003923618700355291,
0.10138852894306183,
-0.010827384889125824,
0.038463834673166275,
0.04702360928058624,
0.17537307739257812,
0.16580966114997864,
0.10263845324516296,
-0.34466856718063354,
0.3764193654060364,
0.05067412182688713,
0.07587283849716187,
-0.14639604091644287,
0.3820575475692749,
-0.030178487300872803,
0.10450220108032227,
0.5094950199127197,
-0.4414915442466736,
0.1682894080877304,
0.011565906926989555,
0.15429717302322388,
0.2767113149166107,
-0.32336175441741943,
-0.20223017036914825,
-0.11390116810798645,
-0.0536591112613678,
0.0028550811111927032,
-0.06264567375183105,
0.6269548535346985,
-0.3885326087474823,
-0.1094072014093399,
-0.14445935189723969,
0.13545379042625427,
-0.3061712086200714,
0.07008209824562073,
0.034069404006004333,
-0.18399661779403687,
-0.17918582260608673,
-0.22477516531944275,
0.13552987575531006,
-0.08245736360549927,
0.41528576612472534,
0.09843920171260834,
-0.17800386250019073,
-0.2696000337600708,
-0.198764830827713,
0.21051594614982605,
0.0625380426645279,
-0.08520965278148651,
0.3057457506656647,
-0.03830619156360626,
-0.13220283389091492,
0.06689611822366714,
0.521074652671814,
0.5806873440742493,
0.17117127776145935,
-0.07287125289440155,
0.18261143565177917,
-0.08557248115539551,
-0.07937151193618774,
0.09434815496206284,
0.11675801128149033,
0.038212329149246216,
0.320830374956131,
0.12354899942874908,
0.22435948252677917,
-0.22641102969646454,
-0.04929105564951897,
-0.11672954261302948,
-0.24440723657608032,
-0.44651171565055847,
0.3851093053817749,
-0.26685354113578796,
-0.11445902287960052,
-0.3867429494857788,
-0.031038224697113037,
-0.5898921489715576,
-0.037240222096443176,
0.49321386218070984,
0.2721070647239685,
-0.10287435352802277,
-0.3833262622356415,
0.1120099127292633,
-0.24033305048942566,
0.14378994703292847,
0.39102351665496826,
0.21618306636810303,
0.026675593107938766,
0.01950123906135559,
-0.6945978999137878,
0.1206175833940506,
-0.07248683273792267,
-0.015480832196772099,
-0.04865167662501335,
-0.0889660120010376,
0.046739619225263596,
0.13187813758850098,
0.11820877343416214,
-0.2654315233230591,
-0.2165037989616394,
-0.2908383309841156,
-0.30419450998306274,
0.014306370168924332,
0.09561202675104141,
0.04456329718232155,
0.16431812942028046,
-0.2925548255443573,
-0.08717989921569824,
-0.30296334624290466,
0.07162918895483017,
-0.19858549535274506,
0.013823673129081726,
-0.02203737571835518,
0.15483838319778442,
0.3778556287288666,
0.07075187563896179,
0.72474205493927,
-0.12190935760736465,
-0.014916766434907913,
0.08846306055784225,
-0.3524931073188782,
-0.19805429875850677,
0.14284011721611023,
0.04009319096803665,
0.48658689856529236,
-0.16568095982074738,
-0.14661650359630585,
-0.28662219643592834,
0.013491936959326267,
0.09525729715824127,
-0.33679988980293274,
-0.08147095888853073,
0.10757584124803543,
-0.09596659243106842,
0.2380141168832779,
-0.05681275576353073,
0.03837960958480835,
-0.1823730319738388,
-0.0006933454424142838,
-0.31663328409194946,
-0.4183671772480011,
0.6252813339233398,
-0.09947795420885086,
-0.4117884337902069,
-0.4622044861316681,
0.24393080174922943,
-0.1391505002975464,
-0.2128485143184662,
-0.45718592405319214,
0.17436182498931885,
0.3370923399925232,
-0.04778935760259628,
-0.08681251108646393,
0.2577059268951416,
0.0695326179265976,
-0.004733525216579437,
0.029503878206014633,
0.2987220883369446,
0.04935254156589508,
-0.02686701901257038,
0.2987108826637268,
-0.15217134356498718
] |
https://github.com/huggingface/datasets/issues/2595 | ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets | @albertvillanova Thanks for the information. I updated it to 1.9.0 and the issue is resolved. Thanks again. | Error traceback:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-a7b592d3bca0> in <module>()
1 from datasets import load_dataset, load_metric
2
----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation")
4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test")
9 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>()
19
20 import datasets
---> 21 from datasets.tasks import AutomaticSpeechRecognition
22
23
ModuleNotFoundError: No module named 'datasets.tasks' | 17 | ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
Error traceback:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-8-a7b592d3bca0> in <module>()
1 from datasets import load_dataset, load_metric
2
----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation")
4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test")
9 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>()
19
20 import datasets
---> 21 from datasets.tasks import AutomaticSpeechRecognition
22
23
ModuleNotFoundError: No module named 'datasets.tasks'
@albertvillanova Thanks for the information. I updated it to 1.9.0 and the issue is resolved. Thanks again. | [
-0.36360612511634827,
-0.38334131240844727,
-0.018118109554052353,
-0.13243889808654785,
0.15852542221546173,
0.17342981696128845,
0.40831315517425537,
0.2774198651313782,
0.19420088827610016,
0.09595750272274017,
-0.1962037980556488,
0.21372222900390625,
-0.28575193881988525,
-0.030767163261771202,
0.12093406170606613,
0.024329524487257004,
0.05258437618613243,
0.1785370111465454,
0.06399582326412201,
-0.22893857955932617,
-0.0830177515745163,
0.17989632487297058,
-0.37905997037887573,
0.23350200057029724,
-0.3515876531600952,
-0.1942121684551239,
0.008990393951535225,
0.047299034893512726,
-0.05942860245704651,
-0.261959433555603,
0.15848004817962646,
-0.024439562112092972,
0.02479255199432373,
0.535466730594635,
-0.00010722184379119426,
0.013080783188343048,
0.3887677788734436,
-0.09515761584043503,
-0.34236034750938416,
-0.4812254309654236,
-0.5180744528770447,
-0.019878320395946503,
-0.03789006918668747,
-0.1568298041820526,
0.14326107501983643,
0.09318075329065323,
0.13676348328590393,
-0.02113834023475647,
0.518473744392395,
0.32341715693473816,
0.27609315514564514,
0.439674973487854,
0.17584452033042908,
-0.1285552680492401,
-0.09198880940675735,
0.3200482726097107,
-0.031203148886561394,
0.3851701021194458,
0.07189466059207916,
-0.24818675220012665,
0.3491154909133911,
0.31694215536117554,
-0.24839827418327332,
-0.039803724735975266,
0.20997187495231628,
-0.07044365257024765,
-0.08641866594552994,
-0.5517336130142212,
0.16126762330532074,
0.1745327115058899,
0.31499770283699036,
-0.4002379775047302,
-0.24456046521663666,
-0.18676170706748962,
0.14506904780864716,
-0.2974831759929657,
0.021121397614479065,
0.05815351754426956,
-0.11663693189620972,
0.04854549467563629,
0.08849181234836578,
-0.2153845578432083,
0.03249875456094742,
-0.009893454611301422,
0.0379461795091629,
0.06954177469015121,
-0.07145104557275772,
-0.124416284263134,
0.22390934824943542,
-0.17291148006916046,
-0.21985214948654175,
0.18947620689868927,
0.1876293122768402,
0.5041474103927612,
-0.4748549461364746,
-0.18373553454875946,
0.2259809672832489,
-0.27478015422821045,
0.05924932658672333,
-0.12574642896652222,
0.06968358159065247,
0.09724864363670349,
-0.14173783361911774,
0.25981464982032776,
0.23289619386196136,
0.26573118567466736,
0.33676987886428833,
0.3275896906852722,
0.3152903914451599,
0.32050761580467224,
-0.03191535547375679,
0.09618407487869263,
-0.26679229736328125,
-0.1119740903377533,
0.2743019461631775,
-0.007211139425635338,
0.5157477855682373,
-0.14452248811721802,
-0.47839459776878357,
0.026843387633562088,
-0.15860098600387573,
-0.0491170734167099,
0.045922424644231796,
0.3150603771209717,
-0.07190091162919998,
0.20492026209831238,
0.11407405138015747,
0.07078807801008224,
-0.3394896388053894,
-0.020724795758724213,
-0.20565207302570343,
0.14397217333316803,
-0.13514269888401031,
0.03909304738044739,
0.16692276298999786,
-0.23699599504470825,
0.24267929792404175,
-0.0384482815861702,
0.1271667778491974,
-0.16461145877838135,
-0.002661868929862976,
0.03504348546266556,
-0.285361647605896,
0.21888543665409088,
-0.05775824189186096,
-0.025066634640097618,
-0.006532780826091766,
0.05940389633178711,
-0.15075555443763733,
0.14884182810783386,
-0.38559967279434204,
-0.2488822489976883,
0.035392120480537415,
0.24517479538917542,
0.0019519757479429245,
-0.2012859433889389,
-0.204366534948349,
0.11030848324298859,
-0.01999524235725403,
-0.32801124453544617,
-0.11376862972974777,
-0.3114470839500427,
-0.018394652754068375,
0.08322291821241379,
0.31400394439697266,
0.21452412009239197,
-0.09572376310825348,
-0.26083725690841675,
-0.13863548636436462,
-0.18144676089286804,
-0.014655746519565582,
0.29927176237106323,
-0.028323933482170105,
0.11036854982376099,
-0.0679047629237175,
0.5170893669128418,
0.1305839568376541,
-0.40234240889549255,
-0.21302957832813263,
0.08117285370826721,
0.061591848731040955,
0.07849790900945663,
-0.14946633577346802,
-0.22622790932655334,
0.12173659354448318,
-0.005358730908483267,
0.2895030379295349,
0.21896739304065704,
0.02329067327082157,
-0.06668787449598312,
-0.07012645900249481,
-0.16010555624961853,
0.0731840431690216,
0.1477266401052475,
0.043798983097076416,
-0.01655249297618866,
-0.08379475027322769,
0.19447845220565796,
0.1807452291250229,
-0.20129525661468506,
0.037374697625637054,
0.20824269950389862,
0.4772286117076874,
0.061002179980278015,
0.001808482687920332,
-0.2899799644947052,
-0.24396765232086182,
0.09068437665700912,
-0.04902423918247223,
0.3566187620162964,
-0.3079182505607605,
-0.18249711394309998,
-0.38668012619018555,
-0.052774831652641296,
-0.39189374446868896,
0.05598345771431923,
0.16655373573303223,
0.03537943959236145,
-0.14001426100730896,
0.01619604229927063,
-0.3451237976551056,
0.2648700177669525,
-0.030972963199019432,
0.12270037829875946,
-0.35190361738204956,
0.3853033483028412,
-0.19146452844142914,
-0.3086242079734802,
0.21476396918296814,
0.4524839520454407,
-0.007953785359859467,
0.062053970992565155,
-0.13687974214553833,
0.1645604968070984,
-0.06861598789691925,
0.20830215513706207,
-0.2534753084182739,
-0.11359278857707977,
0.12041871249675751,
-0.3686167597770691,
-0.033552855253219604,
0.15603354573249817,
0.13389243185520172,
-0.10231447964906693,
0.06019280105829239,
0.19254788756370544,
0.26307252049446106,
0.08724947273731232,
0.16275174915790558,
0.07408881187438965,
0.05832624435424805,
-0.07030332833528519,
-0.18518628180027008,
-0.05718061327934265,
0.27019211649894714,
-0.1746157556772232,
0.37561333179473877,
-0.025841211900115013,
-0.6040570139884949,
-0.3535890281200409,
0.4849465489387512,
-0.07826454192399979,
0.22361022233963013,
0.05563000217080116,
-0.2568133473396301,
0.11592788249254227,
0.1705578863620758,
-0.33749473094940186,
0.3594594895839691,
0.17392738163471222,
-0.10838066041469574,
0.34826627373695374,
-0.08417849242687225,
0.003274839371442795,
-0.012649036943912506,
0.11011454463005066,
0.052142806351184845,
0.17742964625358582,
0.09458088874816895,
0.05033307895064354,
-0.44964179396629333,
-0.26560699939727783,
-0.18631607294082642,
0.186430886387825,
-0.3769986033439636,
-0.06127887964248657,
-0.25363436341285706,
-0.006275620311498642,
-0.12108971178531647,
-0.13089144229888916,
-0.29107558727264404,
-0.12628231942653656,
-0.028530336916446686,
0.1420171707868576,
0.11648668348789215,
0.411904513835907,
0.05627052113413811,
-0.042869165539741516,
0.05664873123168945,
-0.3579312562942505,
-0.21574297547340393,
-0.23658935725688934,
-0.054413825273513794,
0.06168815866112709,
0.37867680191993713,
0.038374170660972595,
0.16991817951202393,
-0.18129980564117432,
-0.00006429292261600494,
0.10454689711332321,
-0.4350385367870331,
-0.0063258446753025055,
-0.23352281749248505,
0.06339646130800247,
0.0017654001712799072,
0.19683516025543213,
-0.0975242480635643,
-0.3132132291793823,
0.2633446156978607,
-0.2720876932144165,
-0.29865342378616333,
0.0646650418639183,
-0.080159991979599,
-0.21361805498600006,
-0.12002655863761902,
-0.5569183230400085,
-0.44038018584251404,
-0.35668855905532837,
0.1819925606250763,
-0.07728642225265503,
-0.04318135976791382,
0.6514214873313904,
0.029371388256549835,
0.23777469992637634,
-0.1074320375919342,
0.16171453893184662,
-0.10488291084766388,
0.05394523963332176,
0.33763083815574646,
-0.17017875611782074,
-0.19587430357933044,
0.11668480932712555,
-0.2572162449359894,
0.6778258085250854,
-0.1940077841281891,
-0.20128478109836578,
-0.07281588017940521,
-0.050906866788864136,
0.24086549878120422,
-0.13469725847244263,
0.1593552529811859,
0.20595020055770874,
0.15662090480327606,
-0.055430613458156586,
-0.01277284324169159,
-0.24800531566143036,
-0.09728755801916122,
0.5820994973182678,
0.09441916644573212,
0.06001934036612511,
0.3471994996070862,
-0.24867255985736847,
0.7864294052124023,
0.23086997866630554,
0.11074541509151459,
0.21900278329849243,
-0.0982876643538475,
0.26744019985198975,
-0.21084249019622803,
-0.43767860531806946,
0.22268950939178467,
0.09148742258548737,
0.11182218790054321,
0.2504206895828247,
-0.03265779837965965,
-0.12136868387460709,
-0.3556511700153351,
-0.3254821300506592,
-0.16870346665382385,
-0.29667794704437256,
-0.11674010753631592,
-0.08178052306175232,
0.3221670389175415,
0.16972924768924713,
0.10559798032045364,
-0.21874302625656128,
-0.06542766094207764,
0.1467365026473999,
0.24216638505458832,
-0.09705539792776108,
0.06538224965333939,
-0.3066462576389313,
-0.14836984872817993,
-0.34053853154182434,
0.13686726987361908,
-0.051759712398052216,
0.455820769071579,
-0.21435518562793732,
0.02104867994785309,
-0.07816116511821747,
0.1187465637922287,
0.0026035532355308533,
0.10940183699131012,
-0.17142602801322937,
0.1266743689775467,
0.08906854689121246,
-0.12004145979881287,
-0.10462799668312073,
-0.06604745984077454,
0.05938582867383957,
0.14508961141109467,
0.26956233382225037,
-0.3026840090751648,
0.01771853119134903,
0.30390897393226624,
0.37606218457221985,
0.08053906261920929,
-0.13500958681106567,
-0.37702953815460205,
-0.35067811608314514,
-0.4728805124759674,
0.14290302991867065,
0.1724354475736618,
0.09702223539352417,
-0.12717272341251373,
0.16323316097259521,
0.21967048943042755,
-0.15730413794517517,
0.44202232360839844,
0.12187042832374573,
0.13291393220424652,
-0.02862895466387272,
0.34017080068588257,
0.47681087255477905,
0.0664622113108635,
0.23751266300678253,
0.6372563242912292,
-0.023676466196775436,
-0.7577490210533142,
-0.1979629397392273,
-0.12012267857789993,
0.34382596611976624,
0.11216385662555695,
0.0901918038725853,
0.027692478150129318,
0.4193374812602997,
-0.008080117404460907,
-0.007642869837582111,
0.11318929493427277,
0.48464179039001465,
0.4113260507583618,
-0.4018983244895935,
-0.33835679292678833,
0.0783463791012764,
0.143286794424057,
0.15922142565250397,
0.13717958331108093,
-0.09608758985996246,
-0.2214958369731903,
-0.024849873036146164,
-0.5586666464805603,
0.7840057015419006,
0.3227550983428955,
0.06124065816402435,
0.26293644309043884,
-0.003395847976207733,
0.07993970811367035,
0.04530126601457596,
0.16852232813835144,
-0.13810425996780396,
-0.0160071924328804,
0.011967277154326439,
-0.09744158387184143,
0.22062146663665771,
0.0779656171798706,
-0.4101414680480957,
0.4231625199317932,
0.07149212062358856,
0.04687106981873512,
0.007526376284658909,
0.2793135941028595,
0.10802054405212402,
-0.13982129096984863,
-0.1461077332496643,
0.19996029138565063,
-0.13034000992774963,
0.6326057314872742,
0.1015598401427269,
-0.12584026157855988,
-0.03054848127067089,
-0.3149099349975586,
-0.1065031886100769,
0.20049691200256348,
-0.22000429034233093,
0.22504600882530212,
0.36355480551719666,
-0.0740770697593689,
0.30702656507492065,
-0.09080389142036438,
-0.06724536418914795,
0.012437911704182625,
-0.28762245178222656,
0.08296540379524231,
0.11729158461093903,
0.06740929186344147,
-0.0960061326622963,
0.03180563077330589,
0.6111608147621155,
-0.11104046553373337,
-0.4229336678981781,
0.16731950640678406,
-0.09541729092597961,
0.10453042387962341,
-0.23546630144119263,
0.026772968471050262,
0.22497425973415375,
-0.098087839782238,
-0.22557076811790466,
0.10455518960952759,
0.2335187792778015,
-0.06080130860209465,
0.19466575980186462,
0.048396483063697815,
-0.14517374336719513,
0.3375955820083618,
0.05211504548788071,
0.00551372766494751,
-0.06953413784503937,
0.289353609085083,
-0.00040253251791000366,
-0.32518652081489563,
0.609398603439331,
-0.0939883440732956,
-0.1770113855600357,
-0.2521193325519562,
0.03219345211982727,
0.21301144361495972,
-0.2881564199924469,
0.026394065469503403,
0.14573168754577637,
0.09586617350578308,
0.009158211760222912,
0.27157312631607056,
-0.035791292786598206,
-0.23377421498298645,
-0.08702751994132996,
-0.11457569897174835,
-0.41282424330711365,
0.27966439723968506,
0.11660927534103394,
0.2642890512943268,
-0.12911128997802734,
0.41322949528694153,
0.331287682056427,
-0.046971000730991364,
-0.3769036829471588,
-0.012926343828439713,
-0.1994544118642807,
0.1677207350730896,
0.36695289611816406,
-0.19355198740959167,
0.0903574600815773,
0.08348578214645386,
0.2580675184726715,
0.0866541862487793,
-0.12997806072235107,
-0.24244248867034912,
-0.1228833794593811,
0.08765047788619995,
0.11718432605266571,
-0.032858818769454956,
0.17965708673000336,
0.01197877898812294,
-0.14750567078590393,
-0.15807557106018066,
0.02108030766248703,
0.0714745745062828,
-0.11939556896686554,
0.18216411769390106,
0.07641402631998062,
-0.007199637591838837,
0.25960493087768555,
0.21251222491264343,
0.041107550263404846,
0.12991584837436676,
0.007317520212382078,
0.02559775672852993,
0.13584508001804352,
0.11087259650230408,
-0.1450427621603012,
0.09272516518831253,
0.2530200779438019,
-0.20151829719543457,
0.08517741411924362,
-0.3775852918624878,
-0.15252353250980377,
0.0016041039489209652,
0.2083040326833725,
0.32579997181892395,
-0.1462607979774475,
0.0995502695441246,
0.3164527118206024,
0.2548803687095642,
-0.4426313638687134,
0.24022004008293152,
0.33233797550201416,
0.04457203298807144,
0.09072339534759521,
-0.014010034501552582,
0.034085292369127274,
0.05059337615966797,
0.19294525682926178,
0.14503613114356995,
0.0011352677829563618,
-0.268998384475708,
0.3850501477718353,
-0.009510409086942673,
0.046569760888814926,
-0.08081516623497009,
0.3681234121322632,
-0.020893331617116928,
0.09746015071868896,
0.38205820322036743,
-0.4378889203071594,
0.24194905161857605,
0.031586773693561554,
0.1459217369556427,
0.28721147775650024,
-0.37682974338531494,
-0.2674655318260193,
-0.1129545271396637,
-0.01589638739824295,
0.021188177168369293,
-0.07385341823101044,
0.623678982257843,
-0.4865309000015259,
-0.06269107013940811,
-0.07762295752763748,
0.1505671888589859,
-0.33409059047698975,
0.12476600706577301,
0.04123114049434662,
-0.16654998064041138,
-0.15295957028865814,
-0.24080254137516022,
0.1342773288488388,
-0.06200568377971649,
0.3735055923461914,
0.0824027955532074,
-0.15662531554698944,
-0.20836812257766724,
-0.28441742062568665,
0.2198253870010376,
0.0288596972823143,
-0.09742478281259537,
0.21858452260494232,
-0.009172558784484863,
-0.07402592897415161,
0.08732445538043976,
0.5061692595481873,
0.5795962810516357,
0.23848582804203033,
-0.03313084691762924,
0.10495097935199738,
-0.01686675101518631,
-0.0602550283074379,
0.12997019290924072,
0.07002608478069305,
0.1368561089038849,
0.41413888335227966,
0.09768880903720856,
0.1724710464477539,
-0.19979137182235718,
-0.05299230292439461,
-0.04291354492306709,
-0.21572844684123993,
-0.4559635519981384,
0.29769524931907654,
-0.3128180205821991,
-0.13894087076187134,
-0.38226988911628723,
-0.03458356112241745,
-0.5582610964775085,
0.0663025975227356,
0.467235803604126,
0.2679567039012909,
-0.16786441206932068,
-0.3979560136795044,
0.08951596915721893,
-0.26673445105552673,
0.14801709353923798,
0.40193045139312744,
0.18182311952114105,
-0.01920948550105095,
0.04714496433734894,
-0.6798254251480103,
0.18624569475650787,
-0.013390403240919113,
-0.07089194655418396,
-0.04275672137737274,
-0.15619488060474396,
-0.024506352841854095,
0.016696535050868988,
0.08771436661481857,
-0.3457702398300171,
-0.17320695519447327,
-0.3885888457298279,
-0.3407890796661377,
-0.0383816696703434,
0.08905614167451859,
-0.028440432623028755,
0.1961669772863388,
-0.2559448182582855,
-0.02158198133111,
-0.2670930325984955,
0.03971488028764725,
-0.1974104791879654,
-0.009619712829589844,
-0.02933715656399727,
0.23622626066207886,
0.3201611638069153,
-0.04361363500356674,
0.6852188110351562,
-0.09797196090221405,
-0.06327643245458603,
0.054601337760686874,
-0.295747309923172,
-0.2335704267024994,
0.18203873932361603,
0.09987972676753998,
0.4836895167827606,
-0.1316232979297638,
-0.08214534819126129,
-0.2838931083679199,
-0.0038026608526706696,
0.051009781658649445,
-0.3323505222797394,
-0.06477286666631699,
0.1963784247636795,
-0.06178469583392143,
0.23275785148143768,
0.00008553173393011093,
0.039784498512744904,
-0.20827606320381165,
-0.056877218186855316,
-0.3205319941043854,
-0.42500966787338257,
0.6887364983558655,
-0.11748287081718445,
-0.4332190752029419,
-0.4882300794124603,
0.22156240046024323,
-0.16907447576522827,
-0.2508116364479065,
-0.4525448679924011,
0.18267697095870972,
0.3078404664993286,
-0.02808280661702156,
-0.1032513827085495,
0.20853254199028015,
0.02833101712167263,
0.05593320354819298,
-0.020306142047047615,
0.2545563578605652,
0.10182031244039536,
-0.08721446245908737,
0.29263097047805786,
-0.16612839698791504
] |
https://github.com/huggingface/datasets/issues/2591 | Cached dataset overflowing disk space | I'm using the datasets concatenate dataset to combine the datasets and then train.
train_dataset = concatenate_datasets([dataset1, dataset2, common_voice_train])
| I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files).
This might not technically be a bug, but I was unsure and I felt that the bug was the closest one.
Traceback (most recent call last):
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper
out = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single
writer.finalize()
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize
self.pa_writer.close()
File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device
"""
The above exception was the direct cause of the following exception:
| 18 | Cached dataset overflowing disk space
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files).
This might not technically be a bug, but I was unsure and I felt that the bug was the closest one.
Traceback (most recent call last):
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper
out = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single
writer.finalize()
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize
self.pa_writer.close()
File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device
"""
The above exception was the direct cause of the following exception:
I'm using the datasets concatenate dataset to combine the datasets and then train.
train_dataset = concatenate_datasets([dataset1, dataset2, common_voice_train])
| [
0.037559811025857925,
-0.42221304774284363,
0.09859053790569305,
0.45147544145584106,
0.10117387026548386,
0.20505645871162415,
0.07448495924472809,
0.14190442860126495,
0.1445285528898239,
0.055636756122112274,
0.4010796844959259,
-0.2280431091785431,
-0.12429995089769363,
0.11271945387125015,
0.1466888189315796,
0.06868986785411835,
0.2591466009616852,
-0.24585938453674316,
-0.061048492789268494,
0.10609011352062225,
-0.195492684841156,
0.2656947076320648,
0.0236382856965065,
-0.12529000639915466,
-0.26418086886405945,
-0.13125215470790863,
0.11149045825004578,
0.0915546864271164,
0.11699367314577103,
-0.22152084112167358,
0.6455176472663879,
-0.037543196231126785,
0.29698413610458374,
0.3342037796974182,
-0.00012711148883681744,
-0.21884135901927948,
0.09154118597507477,
-0.18159323930740356,
-0.09225928783416748,
0.5504894256591797,
0.19144120812416077,
-0.3445688784122467,
-0.05229516327381134,
0.012889385223388672,
-0.1940160095691681,
0.13530054688453674,
-0.09690791368484497,
-0.4302128255367279,
0.2448514699935913,
0.07248470187187195,
0.04802968353033066,
-0.00776259507983923,
-0.11816823482513428,
0.1708010733127594,
-0.10923667997121811,
-0.004405327141284943,
-0.24837259948253632,
0.19986839592456818,
0.24984577298164368,
-0.16989447176456451,
-0.11372173577547073,
0.5557481050491333,
-0.059014514088630676,
-0.08442917466163635,
0.5253400802612305,
0.08338142186403275,
-0.35629719495773315,
-0.11066232621669769,
0.3813788890838623,
-0.08013536781072617,
0.3144637644290924,
-0.421186238527298,
-0.035975389182567596,
-0.5416691303253174,
0.12429258972406387,
-0.40848129987716675,
0.49177929759025574,
0.14392997324466705,
-0.3081754148006439,
0.2055080235004425,
-0.2643953561782837,
-0.46216872334480286,
-0.2639662027359009,
-0.1211516261100769,
-0.0510149709880352,
-0.169260174036026,
-0.17792996764183044,
0.003886982798576355,
0.49818918108940125,
-0.12435239553451538,
-0.01805473491549492,
-0.11482785642147064,
-0.14859333634376526,
0.16648851335048676,
-0.4704052805900574,
-0.16016314923763275,
-0.15975624322891235,
0.4838791489601135,
0.1778164803981781,
0.034369319677352905,
0.058015141636133194,
-0.22197771072387695,
0.013549485243856907,
-0.05450821667909622,
0.03849091753363609,
0.6338205933570862,
-0.43020057678222656,
0.14798565208911896,
0.026061533018946648,
-0.10047585517168045,
-0.0664958581328392,
-0.08406609296798706,
-0.006118956953287125,
-0.3888667821884155,
0.24311812222003937,
-0.30944666266441345,
0.036606207489967346,
-0.2660045027732849,
-0.13297823071479797,
0.1096004769206047,
0.18775710463523865,
0.1407831609249115,
0.25145161151885986,
0.3864436745643616,
0.18210570514202118,
0.3051150441169739,
-0.3228457570075989,
0.2218099981546402,
-0.24434266984462738,
-0.11929004639387131,
-0.04407363757491112,
-0.08466464281082153,
0.04949836805462837,
0.3295775055885315,
0.3280157446861267,
-0.11582376062870026,
-0.04382908344268799,
-0.16687287390232086,
0.23682032525539398,
-0.02642117813229561,
0.030998462811112404,
-0.25859248638153076,
0.2868449091911316,
0.1123238354921341,
-0.3598537743091583,
0.22516892850399017,
0.24257779121398926,
0.39896583557128906,
-0.24110430479049683,
0.12478241324424744,
-0.3550456762313843,
-0.2518390119075775,
0.14807908236980438,
-0.014269794337451458,
-0.18318112194538116,
-0.09696368873119354,
-0.4297463595867157,
0.21908269822597504,
0.40135106444358826,
-0.2894100546836853,
0.0460614338517189,
0.016729746013879776,
-0.45551156997680664,
-0.1271669715642929,
0.2183411419391632,
0.3905506730079651,
-0.18444545567035675,
-0.0037566423416137695,
0.08714239299297333,
0.43556421995162964,
0.04852347820997238,
0.6233538389205933,
-0.1413375288248062,
0.022438645362854004,
-0.32212966680526733,
-0.21304838359355927,
-0.03465361148118973,
-0.5695786476135254,
-0.7795038223266602,
0.01595616154372692,
0.050735749304294586,
0.2829306423664093,
0.34642601013183594,
0.18545770645141602,
0.03704582154750824,
-0.1173863634467125,
-0.12995226681232452,
0.21605698764324188,
-0.004506049677729607,
-0.055864281952381134,
-0.323156476020813,
-0.5304918885231018,
0.2853461503982544,
-0.11477996408939362,
0.04665020853281021,
0.10060366243124008,
-0.2822222411632538,
0.0011684997007250786,
0.197325199842453,
-0.03163769468665123,
0.2541687786579132,
0.3844374418258667,
0.29306650161743164,
-0.3115615248680115,
-0.06635937094688416,
0.004258401691913605,
-0.4575055241584778,
0.19509506225585938,
0.17837435007095337,
-0.37532079219818115,
0.1245836615562439,
-0.10039167106151581,
0.01440635696053505,
-0.22644582390785217,
-0.13395154476165771,
-0.21682646870613098,
-0.13746309280395508,
-0.03394485265016556,
0.4003777503967285,
-0.1763283610343933,
-0.29911008477211,
0.3400559723377228,
0.0025758128613233566,
-0.04063204303383827,
-0.32598617672920227,
-0.015432726591825485,
0.14475670456886292,
-0.017068564891815186,
-0.25984013080596924,
0.18882566690444946,
0.06481869518756866,
-0.03552783280611038,
0.036864273250103,
0.23357030749320984,
0.02266709692776203,
0.31871628761291504,
0.3493325114250183,
0.3796357810497284,
0.2128700315952301,
-0.09152229130268097,
0.282082200050354,
0.2902054488658905,
-0.06202618405222893,
0.05246170610189438,
-0.3751504123210907,
0.2003801465034485,
0.07106518000364304,
0.19506162405014038,
-0.11398085951805115,
-0.2368825376033783,
0.2514106333255768,
0.13606004416942596,
0.09445453435182571,
-0.12162724137306213,
0.22448956966400146,
0.0017588865011930466,
0.3925086557865143,
0.047658346593379974,
-0.04161037504673004,
0.2306886613368988,
0.38178151845932007,
0.23128148913383484,
0.07951127737760544,
0.3927404284477234,
-0.12577691674232483,
-0.2583569586277008,
0.10781518369913101,
0.3400517404079437,
0.5201390981674194,
0.16599726676940918,
0.1927117556333542,
-0.08257907629013062,
0.033407051116228104,
-0.024866830557584763,
0.1405932903289795,
-0.2922542095184326,
-0.16624414920806885,
0.09999097883701324,
0.17856737971305847,
-0.17033366858959198,
-0.11510073393583298,
0.20650839805603027,
-0.00721055269241333,
0.037470702081918716,
-0.12302842736244202,
0.29154956340789795,
-0.005188779905438423,
0.06696047633886337,
-0.30042222142219543,
0.20180487632751465,
-0.4009774625301361,
-0.006393211428076029,
0.13575756549835205,
0.5235958695411682,
0.09591209888458252,
0.023175058886408806,
-0.1968868374824524,
0.7337740659713745,
-0.07811557501554489,
-0.25689825415611267,
0.08064928650856018,
-0.01200864277780056,
-0.1814785599708557,
-0.14870046079158783,
0.30939608812332153,
-0.5017923712730408,
0.09717812389135361,
0.17247387766838074,
-0.08517260104417801,
-0.29793834686279297,
0.10571996122598648,
-0.07112839072942734,
0.1724739819765091,
0.026216773316264153,
-0.3023272752761841,
0.3171688914299011,
0.008635550737380981,
-0.09089307487010956,
-0.08609174191951752,
-0.10901980102062225,
-0.08054995536804199,
-0.11614366620779037,
0.05000850930809975,
0.4038134813308716,
0.1403174102306366,
0.0388045534491539,
-0.26064857840538025,
-0.23034784197807312,
0.27583903074264526,
-0.15369433164596558,
-0.04329460859298706,
0.08113913238048553,
0.011299177072942257,
-0.13151516020298004,
-0.12341964244842529,
-0.2881757616996765,
-0.252575546503067,
-0.7670428156852722,
0.317576140165329,
0.06598109006881714,
-0.07368703186511993,
0.1482880413532257,
0.22149960696697235,
0.3519728481769562,
0.1975894272327423,
-0.52629554271698,
-0.10804348438978195,
-0.1927305907011032,
0.2778545320034027,
-0.20426726341247559,
-0.24375204741954803,
0.33602243661880493,
-0.12538692355155945,
0.1910075843334198,
0.04391077160835266,
-0.19727249443531036,
0.294735848903656,
0.2608200013637543,
0.3492499887943268,
-0.07572514563798904,
-0.05992615222930908,
0.08637714385986328,
0.9180574417114258,
0.036647167056798935,
0.11798790097236633,
0.23432676494121552,
0.2871668338775635,
0.4486365020275116,
-0.1861972212791443,
-0.246478870511055,
0.05115243047475815,
-0.1345723569393158,
-0.27134519815444946,
0.10462527722120285,
0.3082747459411621,
0.14662642776966095,
0.1631295382976532,
-0.06892181932926178,
0.21875253319740295,
-0.21387788653373718,
0.33115285634994507,
-0.14019343256950378,
0.3264656364917755,
0.02809813618659973,
0.08923853188753128,
-0.33837950229644775,
-0.2278050184249878,
0.003012845292687416,
0.12780189514160156,
0.3850560784339905,
0.26120704412460327,
-0.27892041206359863,
-0.2433253973722458,
-0.48271697759628296,
0.19565540552139282,
-0.03849402070045471,
0.04033970087766647,
-0.3785456120967865,
-0.22536331415176392,
0.12978991866111755,
0.020334428176283836,
0.923485279083252,
0.046455930918455124,
0.182125523686409,
-0.2568495273590088,
-0.09680718928575516,
-0.0758298859000206,
0.0022395215928554535,
0.29074662923812866,
-0.21749086678028107,
-0.14679253101348877,
0.4098920226097107,
0.03787597268819809,
-0.08720721304416656,
-0.3201647698879242,
0.36399775743484497,
-0.457573264837265,
0.006599997170269489,
-0.22539032995700836,
-0.053763654083013535,
-0.06250022351741791,
0.1516195386648178,
0.13378892838954926,
0.12305860966444016,
0.0934421569108963,
0.132009819149971,
-0.1702723503112793,
-0.0427674800157547,
-0.055593281984329224,
0.0200953409075737,
0.5271490812301636,
0.11927376687526703,
0.04087508097290993,
0.2363302856683731,
0.25229597091674805,
0.19986024498939514,
0.27406078577041626,
0.09328632056713104,
-0.02580323815345764,
-0.021449510008096695,
0.05113597214221954,
0.11866359412670135,
0.4327240288257599,
-0.22887344658374786,
0.297484815120697,
0.0999588742852211,
0.1264849603176117,
-0.7642994523048401,
0.07686607539653778,
0.22692012786865234,
0.3894958198070526,
-0.047136951237916946,
-0.3855694830417633,
0.3176098167896271,
0.016766119748353958,
-0.014085650444030762,
0.24370864033699036,
0.11867418140172958,
-0.5224871039390564,
0.002973206341266632,
0.016697563230991364,
1.0220947265625,
-0.005273610353469849,
0.5250898003578186,
0.01060560718178749,
0.08383208513259888,
0.40280914306640625,
-0.5466372966766357,
0.3585667014122009,
0.05777154490351677,
-0.2558865547180176,
-0.035482294857501984,
0.08913207054138184,
-0.008490413427352905,
-0.07289189100265503,
-0.15172462165355682,
0.38956761360168457,
-0.09464821964502335,
0.21418000757694244,
-0.4183897078037262,
-0.08630809187889099,
-0.01176309585571289,
-0.22539052367210388,
-0.5132768750190735,
0.05454890429973602,
-0.2742120027542114,
0.10352665185928345,
-0.05083398520946503,
0.031906500458717346,
0.1635923832654953,
-0.02100219577550888,
-0.3381098806858063,
-0.20945334434509277,
-0.2528517544269562,
-0.02589750662446022,
-0.0363922081887722,
-0.3285655379295349,
-0.016561606898903847,
0.2719002068042755,
0.33186107873916626,
0.09051454067230225,
-0.3641148805618286,
0.11960235238075256,
-0.17984914779663086,
0.06281179934740067,
-0.21515141427516937,
-0.09834650158882141,
-0.16750051081180573,
-0.05480168014764786,
0.0174996480345726,
0.07076848298311234,
0.033785853534936905,
-0.41087806224823,
0.017511025071144104,
0.03225723281502724,
-0.13307379186153412,
-0.09009633958339691,
-0.20876950025558472,
0.1424434781074524,
0.03193815425038338,
-0.06901653110980988,
0.045446038246154785,
0.21769218146800995,
-0.3402993381023407,
0.120439313352108,
-0.21364636719226837,
-0.24093155562877655,
-0.03804902359843254,
0.477466881275177,
0.028959546238183975,
-0.29212480783462524,
0.5220628976821899,
-0.011416055262088776,
0.053945526480674744,
-0.18834969401359558,
0.14020174741744995,
0.17015092074871063,
-0.1835627257823944,
-0.05351245775818825,
0.028113843873143196,
-0.2855749726295471,
-0.2057350128889084,
-0.2029028832912445,
0.4924888610839844,
-0.2519829571247101,
-0.3050515949726105,
-0.14498859643936157,
-0.4076445996761322,
-0.020889677107334137,
-0.2762922942638397,
-0.025776807218790054,
-0.09619104117155075,
-0.2987639009952545,
-0.01988542638719082,
0.1916414350271225,
-0.14317066967487335,
0.014227536506950855,
-0.00012193061411380768,
-0.1673363745212555,
0.10388151556253433,
0.027455216273665428,
0.4854635000228882,
-0.06346927583217621,
-0.19099338352680206,
-0.15952405333518982,
-0.000629606656730175,
-0.0392891950905323,
-0.061814162880182266,
0.15406866371631622,
-0.16109290719032288,
-0.012418052181601524,
-0.018557123839855194,
-0.2299526482820511,
0.04440813511610031,
-0.3296544849872589,
0.1573789417743683,
0.21430182456970215,
0.20892386138439178,
-0.02163112722337246,
-0.3265133500099182,
0.000211372971534729,
0.003244023770093918,
0.11961521953344345,
0.2825601100921631,
-0.10582154989242554,
0.08209248632192612,
0.18946343660354614,
-0.019516929984092712,
-0.0718134418129921,
-0.10820335894823074,
0.24002912640571594,
0.030346065759658813,
-0.10756055265665054,
0.002384960651397705,
-0.03746519982814789,
-0.014393150806427002,
0.3485848903656006,
0.13812598586082458,
0.19012337923049927,
-0.031750984489917755,
-0.010205752216279507,
0.32909032702445984,
0.032443366944789886,
-0.06292223930358887,
-0.30293288826942444,
0.13967710733413696,
-0.1079888567328453,
-0.09744783490896225,
0.3520593047142029,
0.027016479521989822,
-0.21388764679431915,
0.08610326051712036,
0.1473427414894104,
0.4955667555332184,
-0.2976682782173157,
0.36282435059547424,
0.19309788942337036,
0.2126588076353073,
0.10369569063186646,
0.2905105948448181,
0.3293462097644806,
0.23671114444732666,
0.551228940486908,
-0.03360673040151596,
0.15533894300460815,
0.2877415418624878,
0.009771600365638733,
-0.20694217085838318,
-0.39939963817596436,
-0.4862819314002991,
0.258911669254303,
-0.2133091390132904,
0.22736021876335144,
-0.1336098462343216,
0.14679449796676636,
-0.041448820382356644,
-0.6776145696640015,
-0.30641359090805054,
-0.07123465836048126,
-0.24339669942855835,
-0.34788843989372253,
0.28027960658073425,
-0.05674419552087784,
0.2844322919845581,
0.28727370500564575,
0.07969234138727188,
-0.2331491857767105,
0.4815826714038849,
-0.054667115211486816,
-0.01801741123199463,
0.1753600537776947,
0.08767884969711304,
0.28630298376083374,
0.11032893508672714,
-0.15479928255081177,
0.2614770829677582,
-0.017421945929527283,
-0.12979236245155334,
0.02769552171230316,
0.1919710487127304,
0.2432422637939453,
0.100145123898983,
-0.04235028102993965,
0.20729480683803558,
0.08171597123146057,
0.17870581150054932,
-0.3429946005344391,
0.15291482210159302,
-0.1525602489709854,
0.0753111019730568,
0.03375197947025299,
-0.031990401446819305,
0.11957442760467529,
0.20381304621696472,
-0.11085891723632812,
0.2348306030035019,
-0.4639110565185547,
-0.04970020800828934,
-0.2446759045124054,
0.07653012126684189,
-0.21797075867652893,
0.2800676226615906,
-0.2816495895385742,
0.19422584772109985,
0.5648448467254639,
-0.044258277863264084,
0.34975436329841614,
0.19053371250629425,
-0.01178811676800251,
-0.011269468814134598,
0.7627524733543396,
0.10878613591194153,
-0.3031586706638336,
-0.3050414025783539,
0.03085365891456604,
-0.4886026382446289,
0.08074325323104858,
-0.3152816891670227,
0.23967239260673523,
-0.20807866752147675,
0.10565081983804703,
0.06698749214410782,
-0.018933620303869247,
-0.07729966938495636,
-0.09755357354879379,
0.05127401649951935,
0.046531833708286285,
-0.3450727164745331,
-0.09465120732784271,
0.17580966651439667,
0.22806483507156372,
0.08666244149208069,
-0.3995472490787506,
0.21151970326900482,
0.16425131261348724,
-0.1586642861366272,
0.4196975827217102,
0.18698221445083618,
-0.49183741211891174,
0.2579595446586609,
-0.12856711447238922,
0.19052456319332123,
0.11105069518089294,
0.23452723026275635,
0.031241776421666145,
-0.4896029233932495,
-0.03489431366324425,
-0.2327321320772171,
-0.04416850209236145,
-0.12012282013893127,
0.20552393794059753,
-0.5847111344337463,
0.03876589983701706,
-0.3769589066505432,
0.20367847383022308,
0.3197949528694153,
-0.16381290555000305,
0.09265565127134323,
-0.012531502172350883,
0.18605688214302063,
0.09033355861902237,
0.417055606842041,
0.41982027888298035,
-0.0685720145702362,
0.06421560049057007,
-0.3439026176929474,
0.13526463508605957,
0.22307336330413818,
-0.3471212089061737,
-0.36009955406188965,
0.25708162784576416,
0.3946216404438019,
0.5234395861625671,
-0.35221347212791443,
-0.345950186252594,
0.11524469405412674,
0.033307578414678574,
0.08213838934898376,
-0.14483818411827087,
0.20114415884017944,
-0.2863757312297821,
-0.25332844257354736,
0.14249800145626068,
0.31004172563552856,
0.3002067804336548,
-0.16755470633506775,
0.2714894711971283,
-0.3209957480430603
] |
https://github.com/huggingface/datasets/issues/2591 | Cached dataset overflowing disk space | Hi @BirgerMoell.
You have several options:
- to set caching to be stored on a different path location, other than the default one (`~/.cache/huggingface/datasets`):
- either setting the environment variable `HF_DATASETS_CACHE` with the path to the new cache location
- or by passing it with the parameter `cache_dir` when loading each of the datasets: `dataset = load_dataset(..., cache_dir=your_new_location)`
You can get all the information in the docs: https://huggingface.co/docs/datasets/loading_datasets.html#cache-directory
- I wouldn't recommend disabling caching, because current implementation generates cache files anyway, although in a temporary directory and they are deleted when the session closes. See details here: https://huggingface.co/docs/datasets/processing.html#enable-or-disable-caching
- You could alternatively load the datasets in streaming mode. This is a new feature which allows loading the datasets without downloading the entire files. More information here: https://huggingface.co/docs/datasets/dataset_streaming.html | I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files).
This might not technically be a bug, but I was unsure and I felt that the bug was the closest one.
Traceback (most recent call last):
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper
out = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single
writer.finalize()
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize
self.pa_writer.close()
File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device
"""
The above exception was the direct cause of the following exception:
| 127 | Cached dataset overflowing disk space
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files).
This might not technically be a bug, but I was unsure and I felt that the bug was the closest one.
Traceback (most recent call last):
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper
out = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single
writer.finalize()
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize
self.pa_writer.close()
File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device
"""
The above exception was the direct cause of the following exception:
Hi @BirgerMoell.
You have several options:
- to set caching to be stored on a different path location, other than the default one (`~/.cache/huggingface/datasets`):
- either setting the environment variable `HF_DATASETS_CACHE` with the path to the new cache location
- or by passing it with the parameter `cache_dir` when loading each of the datasets: `dataset = load_dataset(..., cache_dir=your_new_location)`
You can get all the information in the docs: https://huggingface.co/docs/datasets/loading_datasets.html#cache-directory
- I wouldn't recommend disabling caching, because current implementation generates cache files anyway, although in a temporary directory and they are deleted when the session closes. See details here: https://huggingface.co/docs/datasets/processing.html#enable-or-disable-caching
- You could alternatively load the datasets in streaming mode. This is a new feature which allows loading the datasets without downloading the entire files. More information here: https://huggingface.co/docs/datasets/dataset_streaming.html | [
0.037559811025857925,
-0.42221304774284363,
0.09859053790569305,
0.45147544145584106,
0.10117387026548386,
0.20505645871162415,
0.07448495924472809,
0.14190442860126495,
0.1445285528898239,
0.055636756122112274,
0.4010796844959259,
-0.2280431091785431,
-0.12429995089769363,
0.11271945387125015,
0.1466888189315796,
0.06868986785411835,
0.2591466009616852,
-0.24585938453674316,
-0.061048492789268494,
0.10609011352062225,
-0.195492684841156,
0.2656947076320648,
0.0236382856965065,
-0.12529000639915466,
-0.26418086886405945,
-0.13125215470790863,
0.11149045825004578,
0.0915546864271164,
0.11699367314577103,
-0.22152084112167358,
0.6455176472663879,
-0.037543196231126785,
0.29698413610458374,
0.3342037796974182,
-0.00012711148883681744,
-0.21884135901927948,
0.09154118597507477,
-0.18159323930740356,
-0.09225928783416748,
0.5504894256591797,
0.19144120812416077,
-0.3445688784122467,
-0.05229516327381134,
0.012889385223388672,
-0.1940160095691681,
0.13530054688453674,
-0.09690791368484497,
-0.4302128255367279,
0.2448514699935913,
0.07248470187187195,
0.04802968353033066,
-0.00776259507983923,
-0.11816823482513428,
0.1708010733127594,
-0.10923667997121811,
-0.004405327141284943,
-0.24837259948253632,
0.19986839592456818,
0.24984577298164368,
-0.16989447176456451,
-0.11372173577547073,
0.5557481050491333,
-0.059014514088630676,
-0.08442917466163635,
0.5253400802612305,
0.08338142186403275,
-0.35629719495773315,
-0.11066232621669769,
0.3813788890838623,
-0.08013536781072617,
0.3144637644290924,
-0.421186238527298,
-0.035975389182567596,
-0.5416691303253174,
0.12429258972406387,
-0.40848129987716675,
0.49177929759025574,
0.14392997324466705,
-0.3081754148006439,
0.2055080235004425,
-0.2643953561782837,
-0.46216872334480286,
-0.2639662027359009,
-0.1211516261100769,
-0.0510149709880352,
-0.169260174036026,
-0.17792996764183044,
0.003886982798576355,
0.49818918108940125,
-0.12435239553451538,
-0.01805473491549492,
-0.11482785642147064,
-0.14859333634376526,
0.16648851335048676,
-0.4704052805900574,
-0.16016314923763275,
-0.15975624322891235,
0.4838791489601135,
0.1778164803981781,
0.034369319677352905,
0.058015141636133194,
-0.22197771072387695,
0.013549485243856907,
-0.05450821667909622,
0.03849091753363609,
0.6338205933570862,
-0.43020057678222656,
0.14798565208911896,
0.026061533018946648,
-0.10047585517168045,
-0.0664958581328392,
-0.08406609296798706,
-0.006118956953287125,
-0.3888667821884155,
0.24311812222003937,
-0.30944666266441345,
0.036606207489967346,
-0.2660045027732849,
-0.13297823071479797,
0.1096004769206047,
0.18775710463523865,
0.1407831609249115,
0.25145161151885986,
0.3864436745643616,
0.18210570514202118,
0.3051150441169739,
-0.3228457570075989,
0.2218099981546402,
-0.24434266984462738,
-0.11929004639387131,
-0.04407363757491112,
-0.08466464281082153,
0.04949836805462837,
0.3295775055885315,
0.3280157446861267,
-0.11582376062870026,
-0.04382908344268799,
-0.16687287390232086,
0.23682032525539398,
-0.02642117813229561,
0.030998462811112404,
-0.25859248638153076,
0.2868449091911316,
0.1123238354921341,
-0.3598537743091583,
0.22516892850399017,
0.24257779121398926,
0.39896583557128906,
-0.24110430479049683,
0.12478241324424744,
-0.3550456762313843,
-0.2518390119075775,
0.14807908236980438,
-0.014269794337451458,
-0.18318112194538116,
-0.09696368873119354,
-0.4297463595867157,
0.21908269822597504,
0.40135106444358826,
-0.2894100546836853,
0.0460614338517189,
0.016729746013879776,
-0.45551156997680664,
-0.1271669715642929,
0.2183411419391632,
0.3905506730079651,
-0.18444545567035675,
-0.0037566423416137695,
0.08714239299297333,
0.43556421995162964,
0.04852347820997238,
0.6233538389205933,
-0.1413375288248062,
0.022438645362854004,
-0.32212966680526733,
-0.21304838359355927,
-0.03465361148118973,
-0.5695786476135254,
-0.7795038223266602,
0.01595616154372692,
0.050735749304294586,
0.2829306423664093,
0.34642601013183594,
0.18545770645141602,
0.03704582154750824,
-0.1173863634467125,
-0.12995226681232452,
0.21605698764324188,
-0.004506049677729607,
-0.055864281952381134,
-0.323156476020813,
-0.5304918885231018,
0.2853461503982544,
-0.11477996408939362,
0.04665020853281021,
0.10060366243124008,
-0.2822222411632538,
0.0011684997007250786,
0.197325199842453,
-0.03163769468665123,
0.2541687786579132,
0.3844374418258667,
0.29306650161743164,
-0.3115615248680115,
-0.06635937094688416,
0.004258401691913605,
-0.4575055241584778,
0.19509506225585938,
0.17837435007095337,
-0.37532079219818115,
0.1245836615562439,
-0.10039167106151581,
0.01440635696053505,
-0.22644582390785217,
-0.13395154476165771,
-0.21682646870613098,
-0.13746309280395508,
-0.03394485265016556,
0.4003777503967285,
-0.1763283610343933,
-0.29911008477211,
0.3400559723377228,
0.0025758128613233566,
-0.04063204303383827,
-0.32598617672920227,
-0.015432726591825485,
0.14475670456886292,
-0.017068564891815186,
-0.25984013080596924,
0.18882566690444946,
0.06481869518756866,
-0.03552783280611038,
0.036864273250103,
0.23357030749320984,
0.02266709692776203,
0.31871628761291504,
0.3493325114250183,
0.3796357810497284,
0.2128700315952301,
-0.09152229130268097,
0.282082200050354,
0.2902054488658905,
-0.06202618405222893,
0.05246170610189438,
-0.3751504123210907,
0.2003801465034485,
0.07106518000364304,
0.19506162405014038,
-0.11398085951805115,
-0.2368825376033783,
0.2514106333255768,
0.13606004416942596,
0.09445453435182571,
-0.12162724137306213,
0.22448956966400146,
0.0017588865011930466,
0.3925086557865143,
0.047658346593379974,
-0.04161037504673004,
0.2306886613368988,
0.38178151845932007,
0.23128148913383484,
0.07951127737760544,
0.3927404284477234,
-0.12577691674232483,
-0.2583569586277008,
0.10781518369913101,
0.3400517404079437,
0.5201390981674194,
0.16599726676940918,
0.1927117556333542,
-0.08257907629013062,
0.033407051116228104,
-0.024866830557584763,
0.1405932903289795,
-0.2922542095184326,
-0.16624414920806885,
0.09999097883701324,
0.17856737971305847,
-0.17033366858959198,
-0.11510073393583298,
0.20650839805603027,
-0.00721055269241333,
0.037470702081918716,
-0.12302842736244202,
0.29154956340789795,
-0.005188779905438423,
0.06696047633886337,
-0.30042222142219543,
0.20180487632751465,
-0.4009774625301361,
-0.006393211428076029,
0.13575756549835205,
0.5235958695411682,
0.09591209888458252,
0.023175058886408806,
-0.1968868374824524,
0.7337740659713745,
-0.07811557501554489,
-0.25689825415611267,
0.08064928650856018,
-0.01200864277780056,
-0.1814785599708557,
-0.14870046079158783,
0.30939608812332153,
-0.5017923712730408,
0.09717812389135361,
0.17247387766838074,
-0.08517260104417801,
-0.29793834686279297,
0.10571996122598648,
-0.07112839072942734,
0.1724739819765091,
0.026216773316264153,
-0.3023272752761841,
0.3171688914299011,
0.008635550737380981,
-0.09089307487010956,
-0.08609174191951752,
-0.10901980102062225,
-0.08054995536804199,
-0.11614366620779037,
0.05000850930809975,
0.4038134813308716,
0.1403174102306366,
0.0388045534491539,
-0.26064857840538025,
-0.23034784197807312,
0.27583903074264526,
-0.15369433164596558,
-0.04329460859298706,
0.08113913238048553,
0.011299177072942257,
-0.13151516020298004,
-0.12341964244842529,
-0.2881757616996765,
-0.252575546503067,
-0.7670428156852722,
0.317576140165329,
0.06598109006881714,
-0.07368703186511993,
0.1482880413532257,
0.22149960696697235,
0.3519728481769562,
0.1975894272327423,
-0.52629554271698,
-0.10804348438978195,
-0.1927305907011032,
0.2778545320034027,
-0.20426726341247559,
-0.24375204741954803,
0.33602243661880493,
-0.12538692355155945,
0.1910075843334198,
0.04391077160835266,
-0.19727249443531036,
0.294735848903656,
0.2608200013637543,
0.3492499887943268,
-0.07572514563798904,
-0.05992615222930908,
0.08637714385986328,
0.9180574417114258,
0.036647167056798935,
0.11798790097236633,
0.23432676494121552,
0.2871668338775635,
0.4486365020275116,
-0.1861972212791443,
-0.246478870511055,
0.05115243047475815,
-0.1345723569393158,
-0.27134519815444946,
0.10462527722120285,
0.3082747459411621,
0.14662642776966095,
0.1631295382976532,
-0.06892181932926178,
0.21875253319740295,
-0.21387788653373718,
0.33115285634994507,
-0.14019343256950378,
0.3264656364917755,
0.02809813618659973,
0.08923853188753128,
-0.33837950229644775,
-0.2278050184249878,
0.003012845292687416,
0.12780189514160156,
0.3850560784339905,
0.26120704412460327,
-0.27892041206359863,
-0.2433253973722458,
-0.48271697759628296,
0.19565540552139282,
-0.03849402070045471,
0.04033970087766647,
-0.3785456120967865,
-0.22536331415176392,
0.12978991866111755,
0.020334428176283836,
0.923485279083252,
0.046455930918455124,
0.182125523686409,
-0.2568495273590088,
-0.09680718928575516,
-0.0758298859000206,
0.0022395215928554535,
0.29074662923812866,
-0.21749086678028107,
-0.14679253101348877,
0.4098920226097107,
0.03787597268819809,
-0.08720721304416656,
-0.3201647698879242,
0.36399775743484497,
-0.457573264837265,
0.006599997170269489,
-0.22539032995700836,
-0.053763654083013535,
-0.06250022351741791,
0.1516195386648178,
0.13378892838954926,
0.12305860966444016,
0.0934421569108963,
0.132009819149971,
-0.1702723503112793,
-0.0427674800157547,
-0.055593281984329224,
0.0200953409075737,
0.5271490812301636,
0.11927376687526703,
0.04087508097290993,
0.2363302856683731,
0.25229597091674805,
0.19986024498939514,
0.27406078577041626,
0.09328632056713104,
-0.02580323815345764,
-0.021449510008096695,
0.05113597214221954,
0.11866359412670135,
0.4327240288257599,
-0.22887344658374786,
0.297484815120697,
0.0999588742852211,
0.1264849603176117,
-0.7642994523048401,
0.07686607539653778,
0.22692012786865234,
0.3894958198070526,
-0.047136951237916946,
-0.3855694830417633,
0.3176098167896271,
0.016766119748353958,
-0.014085650444030762,
0.24370864033699036,
0.11867418140172958,
-0.5224871039390564,
0.002973206341266632,
0.016697563230991364,
1.0220947265625,
-0.005273610353469849,
0.5250898003578186,
0.01060560718178749,
0.08383208513259888,
0.40280914306640625,
-0.5466372966766357,
0.3585667014122009,
0.05777154490351677,
-0.2558865547180176,
-0.035482294857501984,
0.08913207054138184,
-0.008490413427352905,
-0.07289189100265503,
-0.15172462165355682,
0.38956761360168457,
-0.09464821964502335,
0.21418000757694244,
-0.4183897078037262,
-0.08630809187889099,
-0.01176309585571289,
-0.22539052367210388,
-0.5132768750190735,
0.05454890429973602,
-0.2742120027542114,
0.10352665185928345,
-0.05083398520946503,
0.031906500458717346,
0.1635923832654953,
-0.02100219577550888,
-0.3381098806858063,
-0.20945334434509277,
-0.2528517544269562,
-0.02589750662446022,
-0.0363922081887722,
-0.3285655379295349,
-0.016561606898903847,
0.2719002068042755,
0.33186107873916626,
0.09051454067230225,
-0.3641148805618286,
0.11960235238075256,
-0.17984914779663086,
0.06281179934740067,
-0.21515141427516937,
-0.09834650158882141,
-0.16750051081180573,
-0.05480168014764786,
0.0174996480345726,
0.07076848298311234,
0.033785853534936905,
-0.41087806224823,
0.017511025071144104,
0.03225723281502724,
-0.13307379186153412,
-0.09009633958339691,
-0.20876950025558472,
0.1424434781074524,
0.03193815425038338,
-0.06901653110980988,
0.045446038246154785,
0.21769218146800995,
-0.3402993381023407,
0.120439313352108,
-0.21364636719226837,
-0.24093155562877655,
-0.03804902359843254,
0.477466881275177,
0.028959546238183975,
-0.29212480783462524,
0.5220628976821899,
-0.011416055262088776,
0.053945526480674744,
-0.18834969401359558,
0.14020174741744995,
0.17015092074871063,
-0.1835627257823944,
-0.05351245775818825,
0.028113843873143196,
-0.2855749726295471,
-0.2057350128889084,
-0.2029028832912445,
0.4924888610839844,
-0.2519829571247101,
-0.3050515949726105,
-0.14498859643936157,
-0.4076445996761322,
-0.020889677107334137,
-0.2762922942638397,
-0.025776807218790054,
-0.09619104117155075,
-0.2987639009952545,
-0.01988542638719082,
0.1916414350271225,
-0.14317066967487335,
0.014227536506950855,
-0.00012193061411380768,
-0.1673363745212555,
0.10388151556253433,
0.027455216273665428,
0.4854635000228882,
-0.06346927583217621,
-0.19099338352680206,
-0.15952405333518982,
-0.000629606656730175,
-0.0392891950905323,
-0.061814162880182266,
0.15406866371631622,
-0.16109290719032288,
-0.012418052181601524,
-0.018557123839855194,
-0.2299526482820511,
0.04440813511610031,
-0.3296544849872589,
0.1573789417743683,
0.21430182456970215,
0.20892386138439178,
-0.02163112722337246,
-0.3265133500099182,
0.000211372971534729,
0.003244023770093918,
0.11961521953344345,
0.2825601100921631,
-0.10582154989242554,
0.08209248632192612,
0.18946343660354614,
-0.019516929984092712,
-0.0718134418129921,
-0.10820335894823074,
0.24002912640571594,
0.030346065759658813,
-0.10756055265665054,
0.002384960651397705,
-0.03746519982814789,
-0.014393150806427002,
0.3485848903656006,
0.13812598586082458,
0.19012337923049927,
-0.031750984489917755,
-0.010205752216279507,
0.32909032702445984,
0.032443366944789886,
-0.06292223930358887,
-0.30293288826942444,
0.13967710733413696,
-0.1079888567328453,
-0.09744783490896225,
0.3520593047142029,
0.027016479521989822,
-0.21388764679431915,
0.08610326051712036,
0.1473427414894104,
0.4955667555332184,
-0.2976682782173157,
0.36282435059547424,
0.19309788942337036,
0.2126588076353073,
0.10369569063186646,
0.2905105948448181,
0.3293462097644806,
0.23671114444732666,
0.551228940486908,
-0.03360673040151596,
0.15533894300460815,
0.2877415418624878,
0.009771600365638733,
-0.20694217085838318,
-0.39939963817596436,
-0.4862819314002991,
0.258911669254303,
-0.2133091390132904,
0.22736021876335144,
-0.1336098462343216,
0.14679449796676636,
-0.041448820382356644,
-0.6776145696640015,
-0.30641359090805054,
-0.07123465836048126,
-0.24339669942855835,
-0.34788843989372253,
0.28027960658073425,
-0.05674419552087784,
0.2844322919845581,
0.28727370500564575,
0.07969234138727188,
-0.2331491857767105,
0.4815826714038849,
-0.054667115211486816,
-0.01801741123199463,
0.1753600537776947,
0.08767884969711304,
0.28630298376083374,
0.11032893508672714,
-0.15479928255081177,
0.2614770829677582,
-0.017421945929527283,
-0.12979236245155334,
0.02769552171230316,
0.1919710487127304,
0.2432422637939453,
0.100145123898983,
-0.04235028102993965,
0.20729480683803558,
0.08171597123146057,
0.17870581150054932,
-0.3429946005344391,
0.15291482210159302,
-0.1525602489709854,
0.0753111019730568,
0.03375197947025299,
-0.031990401446819305,
0.11957442760467529,
0.20381304621696472,
-0.11085891723632812,
0.2348306030035019,
-0.4639110565185547,
-0.04970020800828934,
-0.2446759045124054,
0.07653012126684189,
-0.21797075867652893,
0.2800676226615906,
-0.2816495895385742,
0.19422584772109985,
0.5648448467254639,
-0.044258277863264084,
0.34975436329841614,
0.19053371250629425,
-0.01178811676800251,
-0.011269468814134598,
0.7627524733543396,
0.10878613591194153,
-0.3031586706638336,
-0.3050414025783539,
0.03085365891456604,
-0.4886026382446289,
0.08074325323104858,
-0.3152816891670227,
0.23967239260673523,
-0.20807866752147675,
0.10565081983804703,
0.06698749214410782,
-0.018933620303869247,
-0.07729966938495636,
-0.09755357354879379,
0.05127401649951935,
0.046531833708286285,
-0.3450727164745331,
-0.09465120732784271,
0.17580966651439667,
0.22806483507156372,
0.08666244149208069,
-0.3995472490787506,
0.21151970326900482,
0.16425131261348724,
-0.1586642861366272,
0.4196975827217102,
0.18698221445083618,
-0.49183741211891174,
0.2579595446586609,
-0.12856711447238922,
0.19052456319332123,
0.11105069518089294,
0.23452723026275635,
0.031241776421666145,
-0.4896029233932495,
-0.03489431366324425,
-0.2327321320772171,
-0.04416850209236145,
-0.12012282013893127,
0.20552393794059753,
-0.5847111344337463,
0.03876589983701706,
-0.3769589066505432,
0.20367847383022308,
0.3197949528694153,
-0.16381290555000305,
0.09265565127134323,
-0.012531502172350883,
0.18605688214302063,
0.09033355861902237,
0.417055606842041,
0.41982027888298035,
-0.0685720145702362,
0.06421560049057007,
-0.3439026176929474,
0.13526463508605957,
0.22307336330413818,
-0.3471212089061737,
-0.36009955406188965,
0.25708162784576416,
0.3946216404438019,
0.5234395861625671,
-0.35221347212791443,
-0.345950186252594,
0.11524469405412674,
0.033307578414678574,
0.08213838934898376,
-0.14483818411827087,
0.20114415884017944,
-0.2863757312297821,
-0.25332844257354736,
0.14249800145626068,
0.31004172563552856,
0.3002067804336548,
-0.16755470633506775,
0.2714894711971283,
-0.3209957480430603
] |
https://github.com/huggingface/datasets/issues/2591 | Cached dataset overflowing disk space | Hi @BirgerMoell,
We are planning to add a new feature to datasets, which could be interesting in your case: Add the option to delete temporary files (decompressed files) from the cache directory (see: #2481, #2604).
We will ping you once this feature is implemented, so that the size of your cache directory will be considerably reduced. | I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files).
This might not technically be a bug, but I was unsure and I felt that the bug was the closest one.
Traceback (most recent call last):
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper
out = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single
writer.finalize()
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize
self.pa_writer.close()
File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device
"""
The above exception was the direct cause of the following exception:
| 56 | Cached dataset overflowing disk space
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb).
The cache folder is 500gb (and now my disk space is full).
Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files).
This might not technically be a bug, but I was unsure and I felt that the bug was the closest one.
Traceback (most recent call last):
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper
out = func(self, *args, **kwargs)
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single
writer.finalize()
File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize
self.pa_writer.close()
File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close
File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device
"""
The above exception was the direct cause of the following exception:
Hi @BirgerMoell,
We are planning to add a new feature to datasets, which could be interesting in your case: Add the option to delete temporary files (decompressed files) from the cache directory (see: #2481, #2604).
We will ping you once this feature is implemented, so that the size of your cache directory will be considerably reduced. | [
0.037559811025857925,
-0.42221304774284363,
0.09859053790569305,
0.45147544145584106,
0.10117387026548386,
0.20505645871162415,
0.07448495924472809,
0.14190442860126495,
0.1445285528898239,
0.055636756122112274,
0.4010796844959259,
-0.2280431091785431,
-0.12429995089769363,
0.11271945387125015,
0.1466888189315796,
0.06868986785411835,
0.2591466009616852,
-0.24585938453674316,
-0.061048492789268494,
0.10609011352062225,
-0.195492684841156,
0.2656947076320648,
0.0236382856965065,
-0.12529000639915466,
-0.26418086886405945,
-0.13125215470790863,
0.11149045825004578,
0.0915546864271164,
0.11699367314577103,
-0.22152084112167358,
0.6455176472663879,
-0.037543196231126785,
0.29698413610458374,
0.3342037796974182,
-0.00012711148883681744,
-0.21884135901927948,
0.09154118597507477,
-0.18159323930740356,
-0.09225928783416748,
0.5504894256591797,
0.19144120812416077,
-0.3445688784122467,
-0.05229516327381134,
0.012889385223388672,
-0.1940160095691681,
0.13530054688453674,
-0.09690791368484497,
-0.4302128255367279,
0.2448514699935913,
0.07248470187187195,
0.04802968353033066,
-0.00776259507983923,
-0.11816823482513428,
0.1708010733127594,
-0.10923667997121811,
-0.004405327141284943,
-0.24837259948253632,
0.19986839592456818,
0.24984577298164368,
-0.16989447176456451,
-0.11372173577547073,
0.5557481050491333,
-0.059014514088630676,
-0.08442917466163635,
0.5253400802612305,
0.08338142186403275,
-0.35629719495773315,
-0.11066232621669769,
0.3813788890838623,
-0.08013536781072617,
0.3144637644290924,
-0.421186238527298,
-0.035975389182567596,
-0.5416691303253174,
0.12429258972406387,
-0.40848129987716675,
0.49177929759025574,
0.14392997324466705,
-0.3081754148006439,
0.2055080235004425,
-0.2643953561782837,
-0.46216872334480286,
-0.2639662027359009,
-0.1211516261100769,
-0.0510149709880352,
-0.169260174036026,
-0.17792996764183044,
0.003886982798576355,
0.49818918108940125,
-0.12435239553451538,
-0.01805473491549492,
-0.11482785642147064,
-0.14859333634376526,
0.16648851335048676,
-0.4704052805900574,
-0.16016314923763275,
-0.15975624322891235,
0.4838791489601135,
0.1778164803981781,
0.034369319677352905,
0.058015141636133194,
-0.22197771072387695,
0.013549485243856907,
-0.05450821667909622,
0.03849091753363609,
0.6338205933570862,
-0.43020057678222656,
0.14798565208911896,
0.026061533018946648,
-0.10047585517168045,
-0.0664958581328392,
-0.08406609296798706,
-0.006118956953287125,
-0.3888667821884155,
0.24311812222003937,
-0.30944666266441345,
0.036606207489967346,
-0.2660045027732849,
-0.13297823071479797,
0.1096004769206047,
0.18775710463523865,
0.1407831609249115,
0.25145161151885986,
0.3864436745643616,
0.18210570514202118,
0.3051150441169739,
-0.3228457570075989,
0.2218099981546402,
-0.24434266984462738,
-0.11929004639387131,
-0.04407363757491112,
-0.08466464281082153,
0.04949836805462837,
0.3295775055885315,
0.3280157446861267,
-0.11582376062870026,
-0.04382908344268799,
-0.16687287390232086,
0.23682032525539398,
-0.02642117813229561,
0.030998462811112404,
-0.25859248638153076,
0.2868449091911316,
0.1123238354921341,
-0.3598537743091583,
0.22516892850399017,
0.24257779121398926,
0.39896583557128906,
-0.24110430479049683,
0.12478241324424744,
-0.3550456762313843,
-0.2518390119075775,
0.14807908236980438,
-0.014269794337451458,
-0.18318112194538116,
-0.09696368873119354,
-0.4297463595867157,
0.21908269822597504,
0.40135106444358826,
-0.2894100546836853,
0.0460614338517189,
0.016729746013879776,
-0.45551156997680664,
-0.1271669715642929,
0.2183411419391632,
0.3905506730079651,
-0.18444545567035675,
-0.0037566423416137695,
0.08714239299297333,
0.43556421995162964,
0.04852347820997238,
0.6233538389205933,
-0.1413375288248062,
0.022438645362854004,
-0.32212966680526733,
-0.21304838359355927,
-0.03465361148118973,
-0.5695786476135254,
-0.7795038223266602,
0.01595616154372692,
0.050735749304294586,
0.2829306423664093,
0.34642601013183594,
0.18545770645141602,
0.03704582154750824,
-0.1173863634467125,
-0.12995226681232452,
0.21605698764324188,
-0.004506049677729607,
-0.055864281952381134,
-0.323156476020813,
-0.5304918885231018,
0.2853461503982544,
-0.11477996408939362,
0.04665020853281021,
0.10060366243124008,
-0.2822222411632538,
0.0011684997007250786,
0.197325199842453,
-0.03163769468665123,
0.2541687786579132,
0.3844374418258667,
0.29306650161743164,
-0.3115615248680115,
-0.06635937094688416,
0.004258401691913605,
-0.4575055241584778,
0.19509506225585938,
0.17837435007095337,
-0.37532079219818115,
0.1245836615562439,
-0.10039167106151581,
0.01440635696053505,
-0.22644582390785217,
-0.13395154476165771,
-0.21682646870613098,
-0.13746309280395508,
-0.03394485265016556,
0.4003777503967285,
-0.1763283610343933,
-0.29911008477211,
0.3400559723377228,
0.0025758128613233566,
-0.04063204303383827,
-0.32598617672920227,
-0.015432726591825485,
0.14475670456886292,
-0.017068564891815186,
-0.25984013080596924,
0.18882566690444946,
0.06481869518756866,
-0.03552783280611038,
0.036864273250103,
0.23357030749320984,
0.02266709692776203,
0.31871628761291504,
0.3493325114250183,
0.3796357810497284,
0.2128700315952301,
-0.09152229130268097,
0.282082200050354,
0.2902054488658905,
-0.06202618405222893,
0.05246170610189438,
-0.3751504123210907,
0.2003801465034485,
0.07106518000364304,
0.19506162405014038,
-0.11398085951805115,
-0.2368825376033783,
0.2514106333255768,
0.13606004416942596,
0.09445453435182571,
-0.12162724137306213,
0.22448956966400146,
0.0017588865011930466,
0.3925086557865143,
0.047658346593379974,
-0.04161037504673004,
0.2306886613368988,
0.38178151845932007,
0.23128148913383484,
0.07951127737760544,
0.3927404284477234,
-0.12577691674232483,
-0.2583569586277008,
0.10781518369913101,
0.3400517404079437,
0.5201390981674194,
0.16599726676940918,
0.1927117556333542,
-0.08257907629013062,
0.033407051116228104,
-0.024866830557584763,
0.1405932903289795,
-0.2922542095184326,
-0.16624414920806885,
0.09999097883701324,
0.17856737971305847,
-0.17033366858959198,
-0.11510073393583298,
0.20650839805603027,
-0.00721055269241333,
0.037470702081918716,
-0.12302842736244202,
0.29154956340789795,
-0.005188779905438423,
0.06696047633886337,
-0.30042222142219543,
0.20180487632751465,
-0.4009774625301361,
-0.006393211428076029,
0.13575756549835205,
0.5235958695411682,
0.09591209888458252,
0.023175058886408806,
-0.1968868374824524,
0.7337740659713745,
-0.07811557501554489,
-0.25689825415611267,
0.08064928650856018,
-0.01200864277780056,
-0.1814785599708557,
-0.14870046079158783,
0.30939608812332153,
-0.5017923712730408,
0.09717812389135361,
0.17247387766838074,
-0.08517260104417801,
-0.29793834686279297,
0.10571996122598648,
-0.07112839072942734,
0.1724739819765091,
0.026216773316264153,
-0.3023272752761841,
0.3171688914299011,
0.008635550737380981,
-0.09089307487010956,
-0.08609174191951752,
-0.10901980102062225,
-0.08054995536804199,
-0.11614366620779037,
0.05000850930809975,
0.4038134813308716,
0.1403174102306366,
0.0388045534491539,
-0.26064857840538025,
-0.23034784197807312,
0.27583903074264526,
-0.15369433164596558,
-0.04329460859298706,
0.08113913238048553,
0.011299177072942257,
-0.13151516020298004,
-0.12341964244842529,
-0.2881757616996765,
-0.252575546503067,
-0.7670428156852722,
0.317576140165329,
0.06598109006881714,
-0.07368703186511993,
0.1482880413532257,
0.22149960696697235,
0.3519728481769562,
0.1975894272327423,
-0.52629554271698,
-0.10804348438978195,
-0.1927305907011032,
0.2778545320034027,
-0.20426726341247559,
-0.24375204741954803,
0.33602243661880493,
-0.12538692355155945,
0.1910075843334198,
0.04391077160835266,
-0.19727249443531036,
0.294735848903656,
0.2608200013637543,
0.3492499887943268,
-0.07572514563798904,
-0.05992615222930908,
0.08637714385986328,
0.9180574417114258,
0.036647167056798935,
0.11798790097236633,
0.23432676494121552,
0.2871668338775635,
0.4486365020275116,
-0.1861972212791443,
-0.246478870511055,
0.05115243047475815,
-0.1345723569393158,
-0.27134519815444946,
0.10462527722120285,
0.3082747459411621,
0.14662642776966095,
0.1631295382976532,
-0.06892181932926178,
0.21875253319740295,
-0.21387788653373718,
0.33115285634994507,
-0.14019343256950378,
0.3264656364917755,
0.02809813618659973,
0.08923853188753128,
-0.33837950229644775,
-0.2278050184249878,
0.003012845292687416,
0.12780189514160156,
0.3850560784339905,
0.26120704412460327,
-0.27892041206359863,
-0.2433253973722458,
-0.48271697759628296,
0.19565540552139282,
-0.03849402070045471,
0.04033970087766647,
-0.3785456120967865,
-0.22536331415176392,
0.12978991866111755,
0.020334428176283836,
0.923485279083252,
0.046455930918455124,
0.182125523686409,
-0.2568495273590088,
-0.09680718928575516,
-0.0758298859000206,
0.0022395215928554535,
0.29074662923812866,
-0.21749086678028107,
-0.14679253101348877,
0.4098920226097107,
0.03787597268819809,
-0.08720721304416656,
-0.3201647698879242,
0.36399775743484497,
-0.457573264837265,
0.006599997170269489,
-0.22539032995700836,
-0.053763654083013535,
-0.06250022351741791,
0.1516195386648178,
0.13378892838954926,
0.12305860966444016,
0.0934421569108963,
0.132009819149971,
-0.1702723503112793,
-0.0427674800157547,
-0.055593281984329224,
0.0200953409075737,
0.5271490812301636,
0.11927376687526703,
0.04087508097290993,
0.2363302856683731,
0.25229597091674805,
0.19986024498939514,
0.27406078577041626,
0.09328632056713104,
-0.02580323815345764,
-0.021449510008096695,
0.05113597214221954,
0.11866359412670135,
0.4327240288257599,
-0.22887344658374786,
0.297484815120697,
0.0999588742852211,
0.1264849603176117,
-0.7642994523048401,
0.07686607539653778,
0.22692012786865234,
0.3894958198070526,
-0.047136951237916946,
-0.3855694830417633,
0.3176098167896271,
0.016766119748353958,
-0.014085650444030762,
0.24370864033699036,
0.11867418140172958,
-0.5224871039390564,
0.002973206341266632,
0.016697563230991364,
1.0220947265625,
-0.005273610353469849,
0.5250898003578186,
0.01060560718178749,
0.08383208513259888,
0.40280914306640625,
-0.5466372966766357,
0.3585667014122009,
0.05777154490351677,
-0.2558865547180176,
-0.035482294857501984,
0.08913207054138184,
-0.008490413427352905,
-0.07289189100265503,
-0.15172462165355682,
0.38956761360168457,
-0.09464821964502335,
0.21418000757694244,
-0.4183897078037262,
-0.08630809187889099,
-0.01176309585571289,
-0.22539052367210388,
-0.5132768750190735,
0.05454890429973602,
-0.2742120027542114,
0.10352665185928345,
-0.05083398520946503,
0.031906500458717346,
0.1635923832654953,
-0.02100219577550888,
-0.3381098806858063,
-0.20945334434509277,
-0.2528517544269562,
-0.02589750662446022,
-0.0363922081887722,
-0.3285655379295349,
-0.016561606898903847,
0.2719002068042755,
0.33186107873916626,
0.09051454067230225,
-0.3641148805618286,
0.11960235238075256,
-0.17984914779663086,
0.06281179934740067,
-0.21515141427516937,
-0.09834650158882141,
-0.16750051081180573,
-0.05480168014764786,
0.0174996480345726,
0.07076848298311234,
0.033785853534936905,
-0.41087806224823,
0.017511025071144104,
0.03225723281502724,
-0.13307379186153412,
-0.09009633958339691,
-0.20876950025558472,
0.1424434781074524,
0.03193815425038338,
-0.06901653110980988,
0.045446038246154785,
0.21769218146800995,
-0.3402993381023407,
0.120439313352108,
-0.21364636719226837,
-0.24093155562877655,
-0.03804902359843254,
0.477466881275177,
0.028959546238183975,
-0.29212480783462524,
0.5220628976821899,
-0.011416055262088776,
0.053945526480674744,
-0.18834969401359558,
0.14020174741744995,
0.17015092074871063,
-0.1835627257823944,
-0.05351245775818825,
0.028113843873143196,
-0.2855749726295471,
-0.2057350128889084,
-0.2029028832912445,
0.4924888610839844,
-0.2519829571247101,
-0.3050515949726105,
-0.14498859643936157,
-0.4076445996761322,
-0.020889677107334137,
-0.2762922942638397,
-0.025776807218790054,
-0.09619104117155075,
-0.2987639009952545,
-0.01988542638719082,
0.1916414350271225,
-0.14317066967487335,
0.014227536506950855,
-0.00012193061411380768,
-0.1673363745212555,
0.10388151556253433,
0.027455216273665428,
0.4854635000228882,
-0.06346927583217621,
-0.19099338352680206,
-0.15952405333518982,
-0.000629606656730175,
-0.0392891950905323,
-0.061814162880182266,
0.15406866371631622,
-0.16109290719032288,
-0.012418052181601524,
-0.018557123839855194,
-0.2299526482820511,
0.04440813511610031,
-0.3296544849872589,
0.1573789417743683,
0.21430182456970215,
0.20892386138439178,
-0.02163112722337246,
-0.3265133500099182,
0.000211372971534729,
0.003244023770093918,
0.11961521953344345,
0.2825601100921631,
-0.10582154989242554,
0.08209248632192612,
0.18946343660354614,
-0.019516929984092712,
-0.0718134418129921,
-0.10820335894823074,
0.24002912640571594,
0.030346065759658813,
-0.10756055265665054,
0.002384960651397705,
-0.03746519982814789,
-0.014393150806427002,
0.3485848903656006,
0.13812598586082458,
0.19012337923049927,
-0.031750984489917755,
-0.010205752216279507,
0.32909032702445984,
0.032443366944789886,
-0.06292223930358887,
-0.30293288826942444,
0.13967710733413696,
-0.1079888567328453,
-0.09744783490896225,
0.3520593047142029,
0.027016479521989822,
-0.21388764679431915,
0.08610326051712036,
0.1473427414894104,
0.4955667555332184,
-0.2976682782173157,
0.36282435059547424,
0.19309788942337036,
0.2126588076353073,
0.10369569063186646,
0.2905105948448181,
0.3293462097644806,
0.23671114444732666,
0.551228940486908,
-0.03360673040151596,
0.15533894300460815,
0.2877415418624878,
0.009771600365638733,
-0.20694217085838318,
-0.39939963817596436,
-0.4862819314002991,
0.258911669254303,
-0.2133091390132904,
0.22736021876335144,
-0.1336098462343216,
0.14679449796676636,
-0.041448820382356644,
-0.6776145696640015,
-0.30641359090805054,
-0.07123465836048126,
-0.24339669942855835,
-0.34788843989372253,
0.28027960658073425,
-0.05674419552087784,
0.2844322919845581,
0.28727370500564575,
0.07969234138727188,
-0.2331491857767105,
0.4815826714038849,
-0.054667115211486816,
-0.01801741123199463,
0.1753600537776947,
0.08767884969711304,
0.28630298376083374,
0.11032893508672714,
-0.15479928255081177,
0.2614770829677582,
-0.017421945929527283,
-0.12979236245155334,
0.02769552171230316,
0.1919710487127304,
0.2432422637939453,
0.100145123898983,
-0.04235028102993965,
0.20729480683803558,
0.08171597123146057,
0.17870581150054932,
-0.3429946005344391,
0.15291482210159302,
-0.1525602489709854,
0.0753111019730568,
0.03375197947025299,
-0.031990401446819305,
0.11957442760467529,
0.20381304621696472,
-0.11085891723632812,
0.2348306030035019,
-0.4639110565185547,
-0.04970020800828934,
-0.2446759045124054,
0.07653012126684189,
-0.21797075867652893,
0.2800676226615906,
-0.2816495895385742,
0.19422584772109985,
0.5648448467254639,
-0.044258277863264084,
0.34975436329841614,
0.19053371250629425,
-0.01178811676800251,
-0.011269468814134598,
0.7627524733543396,
0.10878613591194153,
-0.3031586706638336,
-0.3050414025783539,
0.03085365891456604,
-0.4886026382446289,
0.08074325323104858,
-0.3152816891670227,
0.23967239260673523,
-0.20807866752147675,
0.10565081983804703,
0.06698749214410782,
-0.018933620303869247,
-0.07729966938495636,
-0.09755357354879379,
0.05127401649951935,
0.046531833708286285,
-0.3450727164745331,
-0.09465120732784271,
0.17580966651439667,
0.22806483507156372,
0.08666244149208069,
-0.3995472490787506,
0.21151970326900482,
0.16425131261348724,
-0.1586642861366272,
0.4196975827217102,
0.18698221445083618,
-0.49183741211891174,
0.2579595446586609,
-0.12856711447238922,
0.19052456319332123,
0.11105069518089294,
0.23452723026275635,
0.031241776421666145,
-0.4896029233932495,
-0.03489431366324425,
-0.2327321320772171,
-0.04416850209236145,
-0.12012282013893127,
0.20552393794059753,
-0.5847111344337463,
0.03876589983701706,
-0.3769589066505432,
0.20367847383022308,
0.3197949528694153,
-0.16381290555000305,
0.09265565127134323,
-0.012531502172350883,
0.18605688214302063,
0.09033355861902237,
0.417055606842041,
0.41982027888298035,
-0.0685720145702362,
0.06421560049057007,
-0.3439026176929474,
0.13526463508605957,
0.22307336330413818,
-0.3471212089061737,
-0.36009955406188965,
0.25708162784576416,
0.3946216404438019,
0.5234395861625671,
-0.35221347212791443,
-0.345950186252594,
0.11524469405412674,
0.033307578414678574,
0.08213838934898376,
-0.14483818411827087,
0.20114415884017944,
-0.2863757312297821,
-0.25332844257354736,
0.14249800145626068,
0.31004172563552856,
0.3002067804336548,
-0.16755470633506775,
0.2714894711971283,
-0.3209957480430603
] |
https://github.com/huggingface/datasets/issues/2585 | sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index | Hi @mmajurski, thanks for reporting this issue.
Indeed this misalignment arises because the source dataset context field contains leading blank spaces (and these are counted within the answer_start), while our datasets loading script removes these leading blank spaces.
I'm going to fix our script so that all leading blank spaces in the source dataset are kept, and there is no misalignment between the answer text and the answer_start within the context. | ## Describe the bug
The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start'].
For example:
id = '56d1f453e7d4791d009025bd'
answers = {'text': ['Pure Land'], 'answer_start': [146]}
However the actual text in context at location 146 is 'ure Land,'
Which is an off-by-one error from the correct answer.
## Steps to reproduce the bug
```python
import datasets
def check_context_answer_alignment(example):
for a_idx in range(len(example['answers']['text'])):
# check raw dataset for answer consistency between context and answer
answer_text = example['answers']['text'][a_idx]
a_st_idx = example['answers']['answer_start'][a_idx]
a_end_idx = a_st_idx + len(example['answers']['text'][a_idx])
answer_text_from_context = example['context'][a_st_idx:a_end_idx]
if answer_text != answer_text_from_context:
#print(example['id'])
return False
return True
dataset = datasets.load_dataset('squad_v2', split='train', keep_in_memory=True)
start_len = len(dataset)
dataset = dataset.filter(check_context_answer_alignment,
num_proc=1,
keep_in_memory=True)
end_len = len(dataset)
print('{} instances contain mis-alignment between the answer text and answer index.'.format(start_len - end_len))
```
## Expected results
This code should result in 0 rows being filtered out from the dataset.
## Actual results
This filter command results in 258 rows being flagged as containing a discrepancy between the text contained within answers['text'] and the text in example['context'] at the answers['answer_start'] location.
This code will reproduce the problem and produce the following count:
"258 instances contain mis-alignment between the answer text and answer index."
## Environment info
Steps to rebuilt the Conda environment:
```
# create a virtual environment to stuff all these packages into
conda create -n round8 python=3.8 -y
# activate the virtual environment
conda activate round8
# install pytorch (best done through conda to handle cuda dependencies)
conda install pytorch torchvision torchtext cudatoolkit=11.1 -c pytorch-lts -c nvidia
pip install jsonpickle transformers datasets matplotlib
```
OS: Ubuntu 20.04
Python 3.8
Result of `conda env export`:
```
name: round8
channels:
- pytorch-lts
- nvidia
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=4.5=1_gnu
- blas=1.0=mkl
- brotlipy=0.7.0=py38h27cfd23_1003
- bzip2=1.0.8=h7b6447c_0
- ca-certificates=2021.5.25=h06a4308_1
- certifi=2021.5.30=py38h06a4308_0
- cffi=1.14.5=py38h261ae71_0
- chardet=4.0.0=py38h06a4308_1003
- cryptography=3.4.7=py38hd23ed53_0
- cudatoolkit=11.1.74=h6bb024c_0
- ffmpeg=4.2.2=h20bf706_0
- freetype=2.10.4=h5ab3b9f_0
- gmp=6.2.1=h2531618_2
- gnutls=3.6.15=he1e5248_0
- idna=2.10=pyhd3eb1b0_0
- intel-openmp=2021.2.0=h06a4308_610
- jpeg=9b=h024ee3a_2
- lame=3.100=h7b6447c_0
- lcms2=2.12=h3be6417_0
- ld_impl_linux-64=2.35.1=h7274673_9
- libffi=3.3=he6710b0_2
- libgcc-ng=9.3.0=h5101ec6_17
- libgomp=9.3.0=h5101ec6_17
- libidn2=2.3.1=h27cfd23_0
- libopus=1.3.1=h7b6447c_0
- libpng=1.6.37=hbc83047_0
- libstdcxx-ng=9.3.0=hd4cf53a_17
- libtasn1=4.16.0=h27cfd23_0
- libtiff=4.2.0=h85742a9_0
- libunistring=0.9.10=h27cfd23_0
- libuv=1.40.0=h7b6447c_0
- libvpx=1.7.0=h439df22_0
- libwebp-base=1.2.0=h27cfd23_0
- lz4-c=1.9.3=h2531618_0
- mkl=2021.2.0=h06a4308_296
- mkl-service=2.3.0=py38h27cfd23_1
- mkl_fft=1.3.0=py38h42c9631_2
- mkl_random=1.2.1=py38ha9443f7_2
- ncurses=6.2=he6710b0_1
- nettle=3.7.3=hbbd107a_1
- ninja=1.10.2=hff7bd54_1
- numpy=1.20.2=py38h2d18471_0
- numpy-base=1.20.2=py38hfae3a4d_0
- olefile=0.46=py_0
- openh264=2.1.0=hd408876_0
- openssl=1.1.1k=h27cfd23_0
- pillow=8.2.0=py38he98fc37_0
- pip=21.1.2=py38h06a4308_0
- pycparser=2.20=py_2
- pyopenssl=20.0.1=pyhd3eb1b0_1
- pysocks=1.7.1=py38h06a4308_0
- python=3.8.10=h12debd9_8
- pytorch=1.8.1=py3.8_cuda11.1_cudnn8.0.5_0
- readline=8.1=h27cfd23_0
- requests=2.25.1=pyhd3eb1b0_0
- setuptools=52.0.0=py38h06a4308_0
- six=1.16.0=pyhd3eb1b0_0
- sqlite=3.35.4=hdfb4753_0
- tk=8.6.10=hbc83047_0
- torchtext=0.9.1=py38
- torchvision=0.9.1=py38_cu111
- typing_extensions=3.7.4.3=pyha847dfd_0
- urllib3=1.26.4=pyhd3eb1b0_0
- wheel=0.36.2=pyhd3eb1b0_0
- x264=1!157.20191217=h7b6447c_0
- xz=5.2.5=h7b6447c_0
- zlib=1.2.11=h7b6447c_3
- zstd=1.4.9=haebb681_0
- pip:
- click==8.0.1
- cycler==0.10.0
- datasets==1.8.0
- dill==0.3.4
- filelock==3.0.12
- fsspec==2021.6.0
- huggingface-hub==0.0.8
- joblib==1.0.1
- jsonpickle==2.0.0
- kiwisolver==1.3.1
- matplotlib==3.4.2
- multiprocess==0.70.12.2
- packaging==20.9
- pandas==1.2.4
- pyarrow==3.0.0
- pyparsing==2.4.7
- python-dateutil==2.8.1
- pytz==2021.1
- regex==2021.4.4
- sacremoses==0.0.45
- tokenizers==0.10.3
- tqdm==4.49.0
- transformers==4.6.1
- xxhash==2.0.2
prefix: /home/mmajurski/anaconda3/envs/round8
```
| 71 | sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index
## Describe the bug
The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start'].
For example:
id = '56d1f453e7d4791d009025bd'
answers = {'text': ['Pure Land'], 'answer_start': [146]}
However the actual text in context at location 146 is 'ure Land,'
Which is an off-by-one error from the correct answer.
## Steps to reproduce the bug
```python
import datasets
def check_context_answer_alignment(example):
for a_idx in range(len(example['answers']['text'])):
# check raw dataset for answer consistency between context and answer
answer_text = example['answers']['text'][a_idx]
a_st_idx = example['answers']['answer_start'][a_idx]
a_end_idx = a_st_idx + len(example['answers']['text'][a_idx])
answer_text_from_context = example['context'][a_st_idx:a_end_idx]
if answer_text != answer_text_from_context:
#print(example['id'])
return False
return True
dataset = datasets.load_dataset('squad_v2', split='train', keep_in_memory=True)
start_len = len(dataset)
dataset = dataset.filter(check_context_answer_alignment,
num_proc=1,
keep_in_memory=True)
end_len = len(dataset)
print('{} instances contain mis-alignment between the answer text and answer index.'.format(start_len - end_len))
```
## Expected results
This code should result in 0 rows being filtered out from the dataset.
## Actual results
This filter command results in 258 rows being flagged as containing a discrepancy between the text contained within answers['text'] and the text in example['context'] at the answers['answer_start'] location.
This code will reproduce the problem and produce the following count:
"258 instances contain mis-alignment between the answer text and answer index."
## Environment info
Steps to rebuilt the Conda environment:
```
# create a virtual environment to stuff all these packages into
conda create -n round8 python=3.8 -y
# activate the virtual environment
conda activate round8
# install pytorch (best done through conda to handle cuda dependencies)
conda install pytorch torchvision torchtext cudatoolkit=11.1 -c pytorch-lts -c nvidia
pip install jsonpickle transformers datasets matplotlib
```
OS: Ubuntu 20.04
Python 3.8
Result of `conda env export`:
```
name: round8
channels:
- pytorch-lts
- nvidia
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=4.5=1_gnu
- blas=1.0=mkl
- brotlipy=0.7.0=py38h27cfd23_1003
- bzip2=1.0.8=h7b6447c_0
- ca-certificates=2021.5.25=h06a4308_1
- certifi=2021.5.30=py38h06a4308_0
- cffi=1.14.5=py38h261ae71_0
- chardet=4.0.0=py38h06a4308_1003
- cryptography=3.4.7=py38hd23ed53_0
- cudatoolkit=11.1.74=h6bb024c_0
- ffmpeg=4.2.2=h20bf706_0
- freetype=2.10.4=h5ab3b9f_0
- gmp=6.2.1=h2531618_2
- gnutls=3.6.15=he1e5248_0
- idna=2.10=pyhd3eb1b0_0
- intel-openmp=2021.2.0=h06a4308_610
- jpeg=9b=h024ee3a_2
- lame=3.100=h7b6447c_0
- lcms2=2.12=h3be6417_0
- ld_impl_linux-64=2.35.1=h7274673_9
- libffi=3.3=he6710b0_2
- libgcc-ng=9.3.0=h5101ec6_17
- libgomp=9.3.0=h5101ec6_17
- libidn2=2.3.1=h27cfd23_0
- libopus=1.3.1=h7b6447c_0
- libpng=1.6.37=hbc83047_0
- libstdcxx-ng=9.3.0=hd4cf53a_17
- libtasn1=4.16.0=h27cfd23_0
- libtiff=4.2.0=h85742a9_0
- libunistring=0.9.10=h27cfd23_0
- libuv=1.40.0=h7b6447c_0
- libvpx=1.7.0=h439df22_0
- libwebp-base=1.2.0=h27cfd23_0
- lz4-c=1.9.3=h2531618_0
- mkl=2021.2.0=h06a4308_296
- mkl-service=2.3.0=py38h27cfd23_1
- mkl_fft=1.3.0=py38h42c9631_2
- mkl_random=1.2.1=py38ha9443f7_2
- ncurses=6.2=he6710b0_1
- nettle=3.7.3=hbbd107a_1
- ninja=1.10.2=hff7bd54_1
- numpy=1.20.2=py38h2d18471_0
- numpy-base=1.20.2=py38hfae3a4d_0
- olefile=0.46=py_0
- openh264=2.1.0=hd408876_0
- openssl=1.1.1k=h27cfd23_0
- pillow=8.2.0=py38he98fc37_0
- pip=21.1.2=py38h06a4308_0
- pycparser=2.20=py_2
- pyopenssl=20.0.1=pyhd3eb1b0_1
- pysocks=1.7.1=py38h06a4308_0
- python=3.8.10=h12debd9_8
- pytorch=1.8.1=py3.8_cuda11.1_cudnn8.0.5_0
- readline=8.1=h27cfd23_0
- requests=2.25.1=pyhd3eb1b0_0
- setuptools=52.0.0=py38h06a4308_0
- six=1.16.0=pyhd3eb1b0_0
- sqlite=3.35.4=hdfb4753_0
- tk=8.6.10=hbc83047_0
- torchtext=0.9.1=py38
- torchvision=0.9.1=py38_cu111
- typing_extensions=3.7.4.3=pyha847dfd_0
- urllib3=1.26.4=pyhd3eb1b0_0
- wheel=0.36.2=pyhd3eb1b0_0
- x264=1!157.20191217=h7b6447c_0
- xz=5.2.5=h7b6447c_0
- zlib=1.2.11=h7b6447c_3
- zstd=1.4.9=haebb681_0
- pip:
- click==8.0.1
- cycler==0.10.0
- datasets==1.8.0
- dill==0.3.4
- filelock==3.0.12
- fsspec==2021.6.0
- huggingface-hub==0.0.8
- joblib==1.0.1
- jsonpickle==2.0.0
- kiwisolver==1.3.1
- matplotlib==3.4.2
- multiprocess==0.70.12.2
- packaging==20.9
- pandas==1.2.4
- pyarrow==3.0.0
- pyparsing==2.4.7
- python-dateutil==2.8.1
- pytz==2021.1
- regex==2021.4.4
- sacremoses==0.0.45
- tokenizers==0.10.3
- tqdm==4.49.0
- transformers==4.6.1
- xxhash==2.0.2
prefix: /home/mmajurski/anaconda3/envs/round8
```
Hi @mmajurski, thanks for reporting this issue.
Indeed this misalignment arises because the source dataset context field contains leading blank spaces (and these are counted within the answer_start), while our datasets loading script removes these leading blank spaces.
I'm going to fix our script so that all leading blank spaces in the source dataset are kept, and there is no misalignment between the answer text and the answer_start within the context. | [
-0.23303021490573883,
-0.3295382857322693,
-0.04410991072654724,
0.37493598461151123,
0.08782308548688889,
-0.07634179294109344,
0.10575704276561737,
0.2279033362865448,
-0.29274749755859375,
0.15778303146362305,
-0.0841631144285202,
0.045068420469760895,
0.32503601908683777,
0.06854517012834549,
-0.09260866045951843,
0.15236344933509827,
0.1756328046321869,
0.010424569249153137,
0.009945452213287354,
-0.17250403761863708,
-0.2248980700969696,
0.2991383969783783,
-0.298032283782959,
0.03003058210015297,
-0.3425646126270294,
-0.01024913601577282,
0.036424584686756134,
0.11318328976631165,
-0.11750801652669907,
-0.41593876481056213,
0.21250206232070923,
-0.09367899596691132,
0.007711175829172134,
0.26386380195617676,
-0.00011653103138087317,
-0.17062538862228394,
0.07283845543861389,
-0.09732869267463684,
-0.2682840824127197,
0.004192620515823364,
-0.0435587503015995,
-0.12169160693883896,
-0.12989014387130737,
-0.10584210604429245,
-0.2390316128730774,
0.2717561423778534,
-0.06732313334941864,
-0.2866249978542328,
0.6096702218055725,
0.24432191252708435,
0.14513729512691498,
0.2883637845516205,
0.010926466435194016,
-0.0647381842136383,
0.17868676781654358,
-0.1235736608505249,
0.07569437474012375,
0.11912710964679718,
0.14563286304473877,
0.10793610662221909,
-0.03469967097043991,
0.47138524055480957,
-0.13435210287570953,
-0.03189109265804291,
-0.006144441664218903,
0.29045018553733826,
0.206617534160614,
-0.12783154845237732,
0.09985699504613876,
0.13117533922195435,
0.2598813474178314,
-0.24844712018966675,
-0.4248088002204895,
-0.4569477438926697,
-0.03582785651087761,
-0.12240558117628098,
0.33175089955329895,
0.03945370763540268,
-0.031152458861470222,
0.3647889792919159,
-0.13653267920017242,
0.07102763652801514,
-0.0857497975230217,
0.12713977694511414,
-0.08769291639328003,
0.23834270238876343,
-0.12194915115833282,
0.14922162890434265,
-0.2677042782306671,
-0.13863469660282135,
-0.06311684101819992,
-0.13759884238243103,
-0.10523374378681183,
0.4171851873397827,
-0.5139371156692505,
-0.10134775936603546,
-0.16793811321258545,
0.09079284965991974,
0.23617810010910034,
0.06949438154697418,
-0.06991666555404663,
0.0015245284885168076,
0.26592040061950684,
0.06135197728872299,
0.3417302072048187,
0.27732986211776733,
-0.11805372685194016,
0.2556290328502655,
0.1020578071475029,
0.14744634926319122,
0.04146492853760719,
0.10346765071153641,
0.19961729645729065,
-0.1841568797826767,
-0.10824663937091827,
-0.15475383400917053,
0.16846658289432526,
-0.18874819576740265,
-0.5222856998443604,
0.43384379148483276,
-0.6319299936294556,
0.2756718397140503,
-0.021435528993606567,
0.348297119140625,
-0.22168484330177307,
0.2669171392917633,
0.3325076699256897,
0.2442840337753296,
-0.0650026723742485,
-0.18516822159290314,
-0.13308469951152802,
-0.09698037803173065,
-0.014406807720661163,
-0.03445900231599808,
0.007218457758426666,
-0.12937326729297638,
0.22713038325309753,
0.29610514640808105,
0.21281945705413818,
-0.22059252858161926,
-0.3132045865058899,
-0.16487351059913635,
0.14105817675590515,
0.03068540431559086,
0.027104642242193222,
0.18765482306480408,
0.18730035424232483,
-0.2884289026260376,
0.07319536060094833,
0.09300614893436432,
-0.23830559849739075,
0.07687364518642426,
-0.09920455515384674,
0.22451983392238617,
-0.1660037785768509,
-0.056426048278808594,
0.046599630266427994,
0.24566403031349182,
0.29665860533714294,
-0.2863130569458008,
0.2683808505535126,
-0.20382609963417053,
-0.33000731468200684,
-0.08812465518712997,
0.36502203345298767,
0.29203787446022034,
-0.1985459327697754,
-0.06592580676078796,
-0.05614061653614044,
0.1563178300857544,
0.026586905121803284,
0.23752641677856445,
0.2730124890804291,
0.2942619323730469,
-0.4212449789047241,
0.26740527153015137,
0.10373352468013763,
-0.8540107011795044,
-0.5590249300003052,
-0.17421992123126984,
-0.11635078489780426,
0.22511039674282074,
-0.10361561924219131,
0.07285980880260468,
0.43427789211273193,
0.1543436348438263,
0.27352824807167053,
0.5391800403594971,
0.06792476773262024,
0.11893754452466965,
-0.3740176260471344,
0.04329146444797516,
-0.09266792237758636,
0.12352564930915833,
-0.2477577179670334,
-0.17437702417373657,
0.05309787392616272,
-0.18347419798374176,
0.18451720476150513,
0.10490554571151733,
0.07000802457332611,
0.24240820109844208,
0.32924458384513855,
0.12075679004192352,
0.17954549193382263,
-0.502495288848877,
-0.4840291738510132,
0.09337510913610458,
-0.09920378774404526,
0.05972142145037651,
-0.06249596178531647,
-0.13606707751750946,
-0.3975331783294678,
-0.03617584705352783,
-0.3520280718803406,
-0.300771564245224,
0.09092997759580612,
0.008329153060913086,
0.17425593733787537,
0.11252391338348389,
-0.11054438352584839,
0.6274505853652954,
-0.2027086764574051,
0.25744274258613586,
-0.06485457718372345,
0.18380285799503326,
-0.03699161112308502,
0.01978781633079052,
0.02574385702610016,
0.4265460968017578,
-0.03663458675146103,
0.08658816665410995,
-0.2453000247478485,
0.5439855456352234,
0.23543034493923187,
0.19751834869384766,
-0.22653520107269287,
-0.08877508342266083,
0.22654515504837036,
-0.4291588068008423,
-0.2648877501487732,
0.29571130871772766,
0.15490561723709106,
0.11389199644327164,
-0.31173184514045715,
0.5959975123405457,
0.06861323863267899,
0.08495979011058807,
-0.22454452514648438,
-0.0018037129193544388,
0.2800174653530121,
-0.12427274882793427,
-0.11357659846544266,
-0.230899840593338,
0.2905324399471283,
0.14321190118789673,
0.5214199423789978,
0.10394501686096191,
-0.3891157805919647,
0.1001308336853981,
0.2672160267829895,
-0.16954751312732697,
0.07944522798061371,
0.11687686294317245,
0.04127568379044533,
-0.08224377036094666,
0.024764981120824814,
0.22095362842082977,
0.28996458649635315,
0.2044534683227539,
-0.340902179479599,
0.3199860453605652,
-0.0366533100605011,
0.14616532623767853,
0.2144387662410736,
-0.17298488318920135,
-0.040036749094724655,
0.4994862377643585,
0.37250691652297974,
0.24275808036327362,
-0.18430709838867188,
0.17241835594177246,
-0.39707931876182556,
0.15252380073070526,
-0.555044949054718,
-0.021352477371692657,
-0.14968439936637878,
-0.07358987629413605,
-0.19930097460746765,
-0.019214041531085968,
-0.2774997353553772,
-0.11243773251771927,
0.24843363463878632,
0.15590594708919525,
-0.05376319959759712,
0.2769264876842499,
0.0002652648836374283,
0.45941829681396484,
0.0978768914937973,
-0.19885379076004028,
-0.058624256402254105,
-0.06503917276859283,
-0.16240301728248596,
-0.009097833186388016,
0.01562664657831192,
0.19987745583057404,
0.14580614864826202,
-0.4826638400554657,
-0.3007999062538147,
-0.28545528650283813,
-0.34530651569366455,
0.2101685106754303,
-0.06863610446453094,
0.36132070422172546,
0.16641676425933838,
-0.018698662519454956,
-0.36205393075942993,
-0.2030518352985382,
0.16450205445289612,
-0.029134860262274742,
-0.4773872494697571,
-0.05247534438967705,
0.055692192167043686,
-0.20533159375190735,
-0.04128781333565712,
-0.45631739497184753,
-0.09893883019685745,
-0.27093660831451416,
0.01622861623764038,
-0.18172770738601685,
0.0823783203959465,
0.24365770816802979,
-0.13891072571277618,
0.03481096774339676,
-0.29185613989830017,
0.12605930864810944,
-0.5039398074150085,
-0.04728845879435539,
0.09391410648822784,
0.04301954805850983,
-0.34363341331481934,
-0.2887290120124817,
-0.23202410340309143,
-0.17490607500076294,
-0.03508765622973442,
-0.13758453726768494,
-0.22584182024002075,
-0.17938309907913208,
0.21666237711906433,
-0.22682693600654602,
0.24351924657821655,
0.22654640674591064,
-0.18087425827980042,
0.08801008015871048,
-0.22812381386756897,
-0.4454984664916992,
0.15238280594348907,
0.39715656638145447,
0.2353450059890747,
-0.11179662495851517,
0.33001264929771423,
-0.024653855711221695,
0.6546518802642822,
0.4053240716457367,
0.22661779820919037,
0.10226991772651672,
-0.21688547730445862,
0.3332635164260864,
-0.20545291900634766,
-0.21879446506500244,
0.31269046664237976,
0.12877336144447327,
-0.3271476626396179,
0.32847923040390015,
0.039797961711883545,
0.17491291463375092,
0.015510469675064087,
0.19428473711013794,
-0.5804229378700256,
-0.18751177191734314,
-0.2166321873664856,
0.04989294335246086,
0.16470596194267273,
0.09028786420822144,
-0.07233939319849014,
0.1494959443807602,
-0.10614439845085144,
-0.0524444542825222,
0.10693066567182541,
-0.044245339930057526,
0.2364695519208908,
-0.8369109034538269,
-0.2997891902923584,
0.04330746829509735,
0.2258635014295578,
0.39950650930404663,
0.3815813958644867,
-0.013444855809211731,
-0.09399344027042389,
0.19683685898780823,
0.09238223731517792,
0.7246233224868774,
0.015939239412546158,
0.08295270800590515,
-0.2899784445762634,
0.18532754480838776,
-0.4381764233112335,
-0.2349052131175995,
-0.19489462673664093,
0.13776947557926178,
0.281177818775177,
0.16984866559505463,
-0.22085058689117432,
-0.040870245546102524,
0.1911017894744873,
0.0646318569779396,
-0.098483145236969,
-0.009390277788043022,
-0.26534807682037354,
-0.14907316863536835,
-0.34381064772605896,
0.2851319909095764,
0.4409758448600769,
0.29318010807037354,
0.47854694724082947,
-0.060885727405548096,
0.1911560744047165,
0.15684032440185547,
-0.11838802695274353,
0.2444162517786026,
0.5145235657691956,
-0.13947388529777527,
0.02023199200630188,
0.20985417068004608,
-0.047285690903663635,
0.035084307193756104,
0.5318820476531982,
-0.09855523705482483,
-0.320965051651001,
-0.03559431433677673,
-0.042349543422460556,
0.3858829736709595,
0.3409576416015625,
0.027156155556440353,
0.0072178468108177185,
-0.042327627539634705,
0.17052266001701355,
-0.23947176337242126,
-0.1145949512720108,
0.38380715250968933,
0.5305992364883423,
-0.07233104854822159,
-0.24324645102024078,
0.22699514031410217,
-0.1459895372390747,
0.030438698828220367,
0.09295693039894104,
0.5290964841842651,
-0.2636905312538147,
0.4520531892776489,
-0.10958734899759293,
1.002031683921814,
0.32818883657455444,
0.11342597007751465,
0.49788516759872437,
-0.047201015055179596,
0.3578609824180603,
-0.0754106342792511,
0.27481359243392944,
-0.41394713521003723,
0.3110218048095703,
-0.03776470571756363,
-0.11987397074699402,
-0.11781514436006546,
-0.16986818611621857,
-0.22657017409801483,
0.28606241941452026,
-0.15264680981636047,
0.23116417229175568,
-0.06266158819198608,
-0.00852254405617714,
-0.20341427624225616,
-0.03353014215826988,
-0.4369696080684662,
0.09323082119226456,
0.014677658677101135,
0.270394504070282,
-0.1487715244293213,
0.1750008463859558,
-0.33909982442855835,
-0.374233603477478,
-0.6190102696418762,
-0.02997473254799843,
-0.476357102394104,
0.004796725697815418,
0.4499209225177765,
-0.08977605402469635,
-0.036416199058294296,
0.43316495418548584,
0.30170583724975586,
0.06793434917926788,
-0.03691083937883377,
0.18586236238479614,
-0.07654381543397903,
0.3762841522693634,
0.4295198917388916,
-0.05190739035606384,
0.1574101746082306,
-0.037489671260118484,
-0.3992098271846771,
-0.18646055459976196,
0.014257061295211315,
-0.21475431323051453,
0.0705936998128891,
0.11322376132011414,
0.011674869805574417,
-0.18065668642520905,
-0.37972304224967957,
-0.1218564510345459,
0.2888597249984741,
-0.21521422266960144,
0.12182250618934631,
-0.10446494817733765,
-0.18339160084724426,
0.16808876395225525,
0.23020890355110168,
-0.3828323185443878,
-0.02935587242245674,
0.459156334400177,
-0.2447422444820404,
0.044633783400058746,
0.43615928292274475,
0.01264890655875206,
-0.10209207236766815,
-0.12105519324541092,
0.18574422597885132,
-0.08986548334360123,
-0.11957936733961105,
0.020980611443519592,
-0.14428649842739105,
-0.3595219850540161,
-0.21373842656612396,
0.33839935064315796,
0.3839161992073059,
-0.11619237810373306,
-0.050292689353227615,
-0.6957359910011292,
-0.023552177473902702,
0.2530732750892639,
0.04387788847088814,
-0.04511839523911476,
0.3628294765949249,
0.08016423881053925,
-0.17540019750595093,
-0.07035750895738602,
-0.31658679246902466,
-0.06968441605567932,
-0.2544337213039398,
0.1378873884677887,
-0.0004852619022130966,
-0.054904915392398834,
0.22773723304271698,
-0.2508428394794464,
0.09738319367170334,
-0.0025258325040340424,
-0.12870557606220245,
-0.2157401442527771,
-0.10593602061271667,
0.15164814889431,
0.0958361104130745,
-0.2368226796388626,
-0.11058977991342545,
-0.07676571607589722,
0.152308389544487,
-0.19047704339027405,
0.12856528162956238,
0.49132001399993896,
0.1518167108297348,
0.19984954595565796,
-0.5185202360153198,
-0.1265324056148529,
0.030970431864261627,
0.02348356321454048,
-0.0831899344921112,
-0.346021831035614,
0.11455854028463364,
0.2857743799686432,
-0.2541632652282715,
-0.056822262704372406,
0.2504391372203827,
0.19712746143341064,
0.1563529670238495,
0.10799172520637512,
0.19159886240959167,
-0.09821932017803192,
-0.019018620252609253,
0.1833927035331726,
0.22719518840312958,
0.3787548840045929,
-0.40001431107521057,
-0.045251719653606415,
-0.03547455742955208,
0.1983865648508072,
-0.3783813416957855,
-0.03510396555066109,
0.21720559895038605,
-0.1882687509059906,
-0.020508592948317528,
0.2156236469745636,
0.13649143278598785,
-0.2648785710334778,
-0.06507201492786407,
0.23251602053642273,
0.5807167887687683,
-0.08882796764373779,
0.011357671581208706,
0.14765231311321259,
0.02740686759352684,
0.21495205163955688,
0.31767886877059937,
-0.11529560387134552,
0.20218375325202942,
0.18653835356235504,
-0.1520354151725769,
0.043982863426208496,
-0.2052266001701355,
0.15206262469291687,
0.14444562792778015,
0.04668571427464485,
0.3828476071357727,
0.34971821308135986,
-0.4396209120750427,
0.011120390146970749,
0.13172292709350586,
0.4576258063316345,
-0.11604826897382736,
-0.23841433227062225,
-0.2936195135116577,
-0.0883244127035141,
-0.2381865680217743,
-0.05786300078034401,
-0.0807034969329834,
-0.10523480176925659,
-0.1390683948993683,
-0.09896543622016907,
-0.06288129091262817,
-0.22114087641239166,
0.15798109769821167,
0.1681918352842331,
-0.21827293932437897,
-0.3492712378501892,
-0.27466264367103577,
0.24472609162330627,
0.18391788005828857,
-0.17134514451026917,
0.3410627245903015,
0.06640942394733429,
0.009408712387084961,
0.30501261353492737,
0.5498547554016113,
0.51114821434021,
0.2144201248884201,
-0.15680354833602905,
0.19623085856437683,
-0.17397594451904297,
-0.02778656594455242,
0.011248808354139328,
0.11021395772695541,
-0.29861193895339966,
-0.49480026960372925,
0.09193819761276245,
0.2147875726222992,
-0.1876729130744934,
0.013915196061134338,
0.061369623988866806,
0.11291633546352386,
-0.3813644349575043,
-0.22478294372558594,
-0.33111250400543213,
0.31511422991752625,
-0.1817767471075058,
0.10973422229290009,
-0.14958250522613525,
-0.025889702141284943,
0.14152757823467255,
-0.16162559390068054,
0.20255771279335022,
0.07868481427431107,
0.07156533747911453,
0.1909434199333191,
0.044528111815452576,
0.6243497133255005,
-0.20134100317955017,
-0.06819013506174088,
-0.057878632098436356,
-0.5805672407150269,
0.1312074363231659,
0.03104502335190773,
-0.11549673229455948,
0.20152364671230316,
0.21466410160064697,
-0.15989267826080322,
0.22095857560634613,
0.4334925413131714,
0.061708491295576096,
-0.19035254418849945,
0.011297762393951416,
-0.21445485949516296,
0.07673802971839905,
-0.20317496359348297,
0.11044441163539886,
-0.006817808374762535,
-0.2531498074531555,
0.20531830191612244,
0.14811396598815918,
-0.057772159576416016,
0.18853215873241425,
0.15271084010601044,
-0.08002672344446182,
-0.4327375292778015,
-0.12943485379219055,
0.3209773898124695,
0.22017928957939148,
-0.23549479246139526,
0.19693489372730255,
-0.06646494567394257,
-0.16120563447475433,
-0.5237135887145996,
0.14058798551559448,
-0.3926340639591217,
0.2938769459724426,
-0.04632273316383362,
-0.3050650954246521,
0.04753229022026062,
0.2376043051481247,
0.3541375398635864,
-0.2929813265800476,
-0.4807344675064087,
0.19372577965259552,
-0.15002980828285217,
0.23154793679714203,
-0.08737558871507645,
0.19338452816009521,
-0.08013893663883209,
0.4570729434490204,
-0.33873409032821655,
-0.35801073908805847,
0.3238229751586914,
-0.34903520345687866,
-0.1189630776643753,
0.014102415181696415,
0.3399590253829956,
0.28182539343833923,
-0.14852723479270935,
-0.505400538444519,
-0.15321756899356842,
0.2660462558269501,
-0.00043580494821071625,
-0.21644224226474762,
0.11160391569137573,
-0.05062990263104439,
-0.05873273313045502,
0.029929321259260178,
0.04772436246275902,
0.36811530590057373,
-0.10838669538497925,
0.28898894786834717,
-0.3507986068725586
] |
https://github.com/huggingface/datasets/issues/2585 | sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index | If you are going to be altering the data cleaning from the source Squad dataset, here is one thing to consider.
There are occasional double spaces separating words which it might be nice to get rid of.
Either way, thank you. | ## Describe the bug
The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start'].
For example:
id = '56d1f453e7d4791d009025bd'
answers = {'text': ['Pure Land'], 'answer_start': [146]}
However the actual text in context at location 146 is 'ure Land,'
Which is an off-by-one error from the correct answer.
## Steps to reproduce the bug
```python
import datasets
def check_context_answer_alignment(example):
for a_idx in range(len(example['answers']['text'])):
# check raw dataset for answer consistency between context and answer
answer_text = example['answers']['text'][a_idx]
a_st_idx = example['answers']['answer_start'][a_idx]
a_end_idx = a_st_idx + len(example['answers']['text'][a_idx])
answer_text_from_context = example['context'][a_st_idx:a_end_idx]
if answer_text != answer_text_from_context:
#print(example['id'])
return False
return True
dataset = datasets.load_dataset('squad_v2', split='train', keep_in_memory=True)
start_len = len(dataset)
dataset = dataset.filter(check_context_answer_alignment,
num_proc=1,
keep_in_memory=True)
end_len = len(dataset)
print('{} instances contain mis-alignment between the answer text and answer index.'.format(start_len - end_len))
```
## Expected results
This code should result in 0 rows being filtered out from the dataset.
## Actual results
This filter command results in 258 rows being flagged as containing a discrepancy between the text contained within answers['text'] and the text in example['context'] at the answers['answer_start'] location.
This code will reproduce the problem and produce the following count:
"258 instances contain mis-alignment between the answer text and answer index."
## Environment info
Steps to rebuilt the Conda environment:
```
# create a virtual environment to stuff all these packages into
conda create -n round8 python=3.8 -y
# activate the virtual environment
conda activate round8
# install pytorch (best done through conda to handle cuda dependencies)
conda install pytorch torchvision torchtext cudatoolkit=11.1 -c pytorch-lts -c nvidia
pip install jsonpickle transformers datasets matplotlib
```
OS: Ubuntu 20.04
Python 3.8
Result of `conda env export`:
```
name: round8
channels:
- pytorch-lts
- nvidia
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=4.5=1_gnu
- blas=1.0=mkl
- brotlipy=0.7.0=py38h27cfd23_1003
- bzip2=1.0.8=h7b6447c_0
- ca-certificates=2021.5.25=h06a4308_1
- certifi=2021.5.30=py38h06a4308_0
- cffi=1.14.5=py38h261ae71_0
- chardet=4.0.0=py38h06a4308_1003
- cryptography=3.4.7=py38hd23ed53_0
- cudatoolkit=11.1.74=h6bb024c_0
- ffmpeg=4.2.2=h20bf706_0
- freetype=2.10.4=h5ab3b9f_0
- gmp=6.2.1=h2531618_2
- gnutls=3.6.15=he1e5248_0
- idna=2.10=pyhd3eb1b0_0
- intel-openmp=2021.2.0=h06a4308_610
- jpeg=9b=h024ee3a_2
- lame=3.100=h7b6447c_0
- lcms2=2.12=h3be6417_0
- ld_impl_linux-64=2.35.1=h7274673_9
- libffi=3.3=he6710b0_2
- libgcc-ng=9.3.0=h5101ec6_17
- libgomp=9.3.0=h5101ec6_17
- libidn2=2.3.1=h27cfd23_0
- libopus=1.3.1=h7b6447c_0
- libpng=1.6.37=hbc83047_0
- libstdcxx-ng=9.3.0=hd4cf53a_17
- libtasn1=4.16.0=h27cfd23_0
- libtiff=4.2.0=h85742a9_0
- libunistring=0.9.10=h27cfd23_0
- libuv=1.40.0=h7b6447c_0
- libvpx=1.7.0=h439df22_0
- libwebp-base=1.2.0=h27cfd23_0
- lz4-c=1.9.3=h2531618_0
- mkl=2021.2.0=h06a4308_296
- mkl-service=2.3.0=py38h27cfd23_1
- mkl_fft=1.3.0=py38h42c9631_2
- mkl_random=1.2.1=py38ha9443f7_2
- ncurses=6.2=he6710b0_1
- nettle=3.7.3=hbbd107a_1
- ninja=1.10.2=hff7bd54_1
- numpy=1.20.2=py38h2d18471_0
- numpy-base=1.20.2=py38hfae3a4d_0
- olefile=0.46=py_0
- openh264=2.1.0=hd408876_0
- openssl=1.1.1k=h27cfd23_0
- pillow=8.2.0=py38he98fc37_0
- pip=21.1.2=py38h06a4308_0
- pycparser=2.20=py_2
- pyopenssl=20.0.1=pyhd3eb1b0_1
- pysocks=1.7.1=py38h06a4308_0
- python=3.8.10=h12debd9_8
- pytorch=1.8.1=py3.8_cuda11.1_cudnn8.0.5_0
- readline=8.1=h27cfd23_0
- requests=2.25.1=pyhd3eb1b0_0
- setuptools=52.0.0=py38h06a4308_0
- six=1.16.0=pyhd3eb1b0_0
- sqlite=3.35.4=hdfb4753_0
- tk=8.6.10=hbc83047_0
- torchtext=0.9.1=py38
- torchvision=0.9.1=py38_cu111
- typing_extensions=3.7.4.3=pyha847dfd_0
- urllib3=1.26.4=pyhd3eb1b0_0
- wheel=0.36.2=pyhd3eb1b0_0
- x264=1!157.20191217=h7b6447c_0
- xz=5.2.5=h7b6447c_0
- zlib=1.2.11=h7b6447c_3
- zstd=1.4.9=haebb681_0
- pip:
- click==8.0.1
- cycler==0.10.0
- datasets==1.8.0
- dill==0.3.4
- filelock==3.0.12
- fsspec==2021.6.0
- huggingface-hub==0.0.8
- joblib==1.0.1
- jsonpickle==2.0.0
- kiwisolver==1.3.1
- matplotlib==3.4.2
- multiprocess==0.70.12.2
- packaging==20.9
- pandas==1.2.4
- pyarrow==3.0.0
- pyparsing==2.4.7
- python-dateutil==2.8.1
- pytz==2021.1
- regex==2021.4.4
- sacremoses==0.0.45
- tokenizers==0.10.3
- tqdm==4.49.0
- transformers==4.6.1
- xxhash==2.0.2
prefix: /home/mmajurski/anaconda3/envs/round8
```
| 41 | sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index
## Describe the bug
The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start'].
For example:
id = '56d1f453e7d4791d009025bd'
answers = {'text': ['Pure Land'], 'answer_start': [146]}
However the actual text in context at location 146 is 'ure Land,'
Which is an off-by-one error from the correct answer.
## Steps to reproduce the bug
```python
import datasets
def check_context_answer_alignment(example):
for a_idx in range(len(example['answers']['text'])):
# check raw dataset for answer consistency between context and answer
answer_text = example['answers']['text'][a_idx]
a_st_idx = example['answers']['answer_start'][a_idx]
a_end_idx = a_st_idx + len(example['answers']['text'][a_idx])
answer_text_from_context = example['context'][a_st_idx:a_end_idx]
if answer_text != answer_text_from_context:
#print(example['id'])
return False
return True
dataset = datasets.load_dataset('squad_v2', split='train', keep_in_memory=True)
start_len = len(dataset)
dataset = dataset.filter(check_context_answer_alignment,
num_proc=1,
keep_in_memory=True)
end_len = len(dataset)
print('{} instances contain mis-alignment between the answer text and answer index.'.format(start_len - end_len))
```
## Expected results
This code should result in 0 rows being filtered out from the dataset.
## Actual results
This filter command results in 258 rows being flagged as containing a discrepancy between the text contained within answers['text'] and the text in example['context'] at the answers['answer_start'] location.
This code will reproduce the problem and produce the following count:
"258 instances contain mis-alignment between the answer text and answer index."
## Environment info
Steps to rebuilt the Conda environment:
```
# create a virtual environment to stuff all these packages into
conda create -n round8 python=3.8 -y
# activate the virtual environment
conda activate round8
# install pytorch (best done through conda to handle cuda dependencies)
conda install pytorch torchvision torchtext cudatoolkit=11.1 -c pytorch-lts -c nvidia
pip install jsonpickle transformers datasets matplotlib
```
OS: Ubuntu 20.04
Python 3.8
Result of `conda env export`:
```
name: round8
channels:
- pytorch-lts
- nvidia
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- _openmp_mutex=4.5=1_gnu
- blas=1.0=mkl
- brotlipy=0.7.0=py38h27cfd23_1003
- bzip2=1.0.8=h7b6447c_0
- ca-certificates=2021.5.25=h06a4308_1
- certifi=2021.5.30=py38h06a4308_0
- cffi=1.14.5=py38h261ae71_0
- chardet=4.0.0=py38h06a4308_1003
- cryptography=3.4.7=py38hd23ed53_0
- cudatoolkit=11.1.74=h6bb024c_0
- ffmpeg=4.2.2=h20bf706_0
- freetype=2.10.4=h5ab3b9f_0
- gmp=6.2.1=h2531618_2
- gnutls=3.6.15=he1e5248_0
- idna=2.10=pyhd3eb1b0_0
- intel-openmp=2021.2.0=h06a4308_610
- jpeg=9b=h024ee3a_2
- lame=3.100=h7b6447c_0
- lcms2=2.12=h3be6417_0
- ld_impl_linux-64=2.35.1=h7274673_9
- libffi=3.3=he6710b0_2
- libgcc-ng=9.3.0=h5101ec6_17
- libgomp=9.3.0=h5101ec6_17
- libidn2=2.3.1=h27cfd23_0
- libopus=1.3.1=h7b6447c_0
- libpng=1.6.37=hbc83047_0
- libstdcxx-ng=9.3.0=hd4cf53a_17
- libtasn1=4.16.0=h27cfd23_0
- libtiff=4.2.0=h85742a9_0
- libunistring=0.9.10=h27cfd23_0
- libuv=1.40.0=h7b6447c_0
- libvpx=1.7.0=h439df22_0
- libwebp-base=1.2.0=h27cfd23_0
- lz4-c=1.9.3=h2531618_0
- mkl=2021.2.0=h06a4308_296
- mkl-service=2.3.0=py38h27cfd23_1
- mkl_fft=1.3.0=py38h42c9631_2
- mkl_random=1.2.1=py38ha9443f7_2
- ncurses=6.2=he6710b0_1
- nettle=3.7.3=hbbd107a_1
- ninja=1.10.2=hff7bd54_1
- numpy=1.20.2=py38h2d18471_0
- numpy-base=1.20.2=py38hfae3a4d_0
- olefile=0.46=py_0
- openh264=2.1.0=hd408876_0
- openssl=1.1.1k=h27cfd23_0
- pillow=8.2.0=py38he98fc37_0
- pip=21.1.2=py38h06a4308_0
- pycparser=2.20=py_2
- pyopenssl=20.0.1=pyhd3eb1b0_1
- pysocks=1.7.1=py38h06a4308_0
- python=3.8.10=h12debd9_8
- pytorch=1.8.1=py3.8_cuda11.1_cudnn8.0.5_0
- readline=8.1=h27cfd23_0
- requests=2.25.1=pyhd3eb1b0_0
- setuptools=52.0.0=py38h06a4308_0
- six=1.16.0=pyhd3eb1b0_0
- sqlite=3.35.4=hdfb4753_0
- tk=8.6.10=hbc83047_0
- torchtext=0.9.1=py38
- torchvision=0.9.1=py38_cu111
- typing_extensions=3.7.4.3=pyha847dfd_0
- urllib3=1.26.4=pyhd3eb1b0_0
- wheel=0.36.2=pyhd3eb1b0_0
- x264=1!157.20191217=h7b6447c_0
- xz=5.2.5=h7b6447c_0
- zlib=1.2.11=h7b6447c_3
- zstd=1.4.9=haebb681_0
- pip:
- click==8.0.1
- cycler==0.10.0
- datasets==1.8.0
- dill==0.3.4
- filelock==3.0.12
- fsspec==2021.6.0
- huggingface-hub==0.0.8
- joblib==1.0.1
- jsonpickle==2.0.0
- kiwisolver==1.3.1
- matplotlib==3.4.2
- multiprocess==0.70.12.2
- packaging==20.9
- pandas==1.2.4
- pyarrow==3.0.0
- pyparsing==2.4.7
- python-dateutil==2.8.1
- pytz==2021.1
- regex==2021.4.4
- sacremoses==0.0.45
- tokenizers==0.10.3
- tqdm==4.49.0
- transformers==4.6.1
- xxhash==2.0.2
prefix: /home/mmajurski/anaconda3/envs/round8
```
If you are going to be altering the data cleaning from the source Squad dataset, here is one thing to consider.
There are occasional double spaces separating words which it might be nice to get rid of.
Either way, thank you. | [
-0.23303021490573883,
-0.3295382857322693,
-0.04410991072654724,
0.37493598461151123,
0.08782308548688889,
-0.07634179294109344,
0.10575704276561737,
0.2279033362865448,
-0.29274749755859375,
0.15778303146362305,
-0.0841631144285202,
0.045068420469760895,
0.32503601908683777,
0.06854517012834549,
-0.09260866045951843,
0.15236344933509827,
0.1756328046321869,
0.010424569249153137,
0.009945452213287354,
-0.17250403761863708,
-0.2248980700969696,
0.2991383969783783,
-0.298032283782959,
0.03003058210015297,
-0.3425646126270294,
-0.01024913601577282,
0.036424584686756134,
0.11318328976631165,
-0.11750801652669907,
-0.41593876481056213,
0.21250206232070923,
-0.09367899596691132,
0.007711175829172134,
0.26386380195617676,
-0.00011653103138087317,
-0.17062538862228394,
0.07283845543861389,
-0.09732869267463684,
-0.2682840824127197,
0.004192620515823364,
-0.0435587503015995,
-0.12169160693883896,
-0.12989014387130737,
-0.10584210604429245,
-0.2390316128730774,
0.2717561423778534,
-0.06732313334941864,
-0.2866249978542328,
0.6096702218055725,
0.24432191252708435,
0.14513729512691498,
0.2883637845516205,
0.010926466435194016,
-0.0647381842136383,
0.17868676781654358,
-0.1235736608505249,
0.07569437474012375,
0.11912710964679718,
0.14563286304473877,
0.10793610662221909,
-0.03469967097043991,
0.47138524055480957,
-0.13435210287570953,
-0.03189109265804291,
-0.006144441664218903,
0.29045018553733826,
0.206617534160614,
-0.12783154845237732,
0.09985699504613876,
0.13117533922195435,
0.2598813474178314,
-0.24844712018966675,
-0.4248088002204895,
-0.4569477438926697,
-0.03582785651087761,
-0.12240558117628098,
0.33175089955329895,
0.03945370763540268,
-0.031152458861470222,
0.3647889792919159,
-0.13653267920017242,
0.07102763652801514,
-0.0857497975230217,
0.12713977694511414,
-0.08769291639328003,
0.23834270238876343,
-0.12194915115833282,
0.14922162890434265,
-0.2677042782306671,
-0.13863469660282135,
-0.06311684101819992,
-0.13759884238243103,
-0.10523374378681183,
0.4171851873397827,
-0.5139371156692505,
-0.10134775936603546,
-0.16793811321258545,
0.09079284965991974,
0.23617810010910034,
0.06949438154697418,
-0.06991666555404663,
0.0015245284885168076,
0.26592040061950684,
0.06135197728872299,
0.3417302072048187,
0.27732986211776733,
-0.11805372685194016,
0.2556290328502655,
0.1020578071475029,
0.14744634926319122,
0.04146492853760719,
0.10346765071153641,
0.19961729645729065,
-0.1841568797826767,
-0.10824663937091827,
-0.15475383400917053,
0.16846658289432526,
-0.18874819576740265,
-0.5222856998443604,
0.43384379148483276,
-0.6319299936294556,
0.2756718397140503,
-0.021435528993606567,
0.348297119140625,
-0.22168484330177307,
0.2669171392917633,
0.3325076699256897,
0.2442840337753296,
-0.0650026723742485,
-0.18516822159290314,
-0.13308469951152802,
-0.09698037803173065,
-0.014406807720661163,
-0.03445900231599808,
0.007218457758426666,
-0.12937326729297638,
0.22713038325309753,
0.29610514640808105,
0.21281945705413818,
-0.22059252858161926,
-0.3132045865058899,
-0.16487351059913635,
0.14105817675590515,
0.03068540431559086,
0.027104642242193222,
0.18765482306480408,
0.18730035424232483,
-0.2884289026260376,
0.07319536060094833,
0.09300614893436432,
-0.23830559849739075,
0.07687364518642426,
-0.09920455515384674,
0.22451983392238617,
-0.1660037785768509,
-0.056426048278808594,
0.046599630266427994,
0.24566403031349182,
0.29665860533714294,
-0.2863130569458008,
0.2683808505535126,
-0.20382609963417053,
-0.33000731468200684,
-0.08812465518712997,
0.36502203345298767,
0.29203787446022034,
-0.1985459327697754,
-0.06592580676078796,
-0.05614061653614044,
0.1563178300857544,
0.026586905121803284,
0.23752641677856445,
0.2730124890804291,
0.2942619323730469,
-0.4212449789047241,
0.26740527153015137,
0.10373352468013763,
-0.8540107011795044,
-0.5590249300003052,
-0.17421992123126984,
-0.11635078489780426,
0.22511039674282074,
-0.10361561924219131,
0.07285980880260468,
0.43427789211273193,
0.1543436348438263,
0.27352824807167053,
0.5391800403594971,
0.06792476773262024,
0.11893754452466965,
-0.3740176260471344,
0.04329146444797516,
-0.09266792237758636,
0.12352564930915833,
-0.2477577179670334,
-0.17437702417373657,
0.05309787392616272,
-0.18347419798374176,
0.18451720476150513,
0.10490554571151733,
0.07000802457332611,
0.24240820109844208,
0.32924458384513855,
0.12075679004192352,
0.17954549193382263,
-0.502495288848877,
-0.4840291738510132,
0.09337510913610458,
-0.09920378774404526,
0.05972142145037651,
-0.06249596178531647,
-0.13606707751750946,
-0.3975331783294678,
-0.03617584705352783,
-0.3520280718803406,
-0.300771564245224,
0.09092997759580612,
0.008329153060913086,
0.17425593733787537,
0.11252391338348389,
-0.11054438352584839,
0.6274505853652954,
-0.2027086764574051,
0.25744274258613586,
-0.06485457718372345,
0.18380285799503326,
-0.03699161112308502,
0.01978781633079052,
0.02574385702610016,
0.4265460968017578,
-0.03663458675146103,
0.08658816665410995,
-0.2453000247478485,
0.5439855456352234,
0.23543034493923187,
0.19751834869384766,
-0.22653520107269287,
-0.08877508342266083,
0.22654515504837036,
-0.4291588068008423,
-0.2648877501487732,
0.29571130871772766,
0.15490561723709106,
0.11389199644327164,
-0.31173184514045715,
0.5959975123405457,
0.06861323863267899,
0.08495979011058807,
-0.22454452514648438,
-0.0018037129193544388,
0.2800174653530121,
-0.12427274882793427,
-0.11357659846544266,
-0.230899840593338,
0.2905324399471283,
0.14321190118789673,
0.5214199423789978,
0.10394501686096191,
-0.3891157805919647,
0.1001308336853981,
0.2672160267829895,
-0.16954751312732697,
0.07944522798061371,
0.11687686294317245,
0.04127568379044533,
-0.08224377036094666,
0.024764981120824814,
0.22095362842082977,
0.28996458649635315,
0.2044534683227539,
-0.340902179479599,
0.3199860453605652,
-0.0366533100605011,
0.14616532623767853,
0.2144387662410736,
-0.17298488318920135,
-0.040036749094724655,
0.4994862377643585,
0.37250691652297974,
0.24275808036327362,
-0.18430709838867188,
0.17241835594177246,
-0.39707931876182556,
0.15252380073070526,
-0.555044949054718,
-0.021352477371692657,
-0.14968439936637878,
-0.07358987629413605,
-0.19930097460746765,
-0.019214041531085968,
-0.2774997353553772,
-0.11243773251771927,
0.24843363463878632,
0.15590594708919525,
-0.05376319959759712,
0.2769264876842499,
0.0002652648836374283,
0.45941829681396484,
0.0978768914937973,
-0.19885379076004028,
-0.058624256402254105,
-0.06503917276859283,
-0.16240301728248596,
-0.009097833186388016,
0.01562664657831192,
0.19987745583057404,
0.14580614864826202,
-0.4826638400554657,
-0.3007999062538147,
-0.28545528650283813,
-0.34530651569366455,
0.2101685106754303,
-0.06863610446453094,
0.36132070422172546,
0.16641676425933838,
-0.018698662519454956,
-0.36205393075942993,
-0.2030518352985382,
0.16450205445289612,
-0.029134860262274742,
-0.4773872494697571,
-0.05247534438967705,
0.055692192167043686,
-0.20533159375190735,
-0.04128781333565712,
-0.45631739497184753,
-0.09893883019685745,
-0.27093660831451416,
0.01622861623764038,
-0.18172770738601685,
0.0823783203959465,
0.24365770816802979,
-0.13891072571277618,
0.03481096774339676,
-0.29185613989830017,
0.12605930864810944,
-0.5039398074150085,
-0.04728845879435539,
0.09391410648822784,
0.04301954805850983,
-0.34363341331481934,
-0.2887290120124817,
-0.23202410340309143,
-0.17490607500076294,
-0.03508765622973442,
-0.13758453726768494,
-0.22584182024002075,
-0.17938309907913208,
0.21666237711906433,
-0.22682693600654602,
0.24351924657821655,
0.22654640674591064,
-0.18087425827980042,
0.08801008015871048,
-0.22812381386756897,
-0.4454984664916992,
0.15238280594348907,
0.39715656638145447,
0.2353450059890747,
-0.11179662495851517,
0.33001264929771423,
-0.024653855711221695,
0.6546518802642822,
0.4053240716457367,
0.22661779820919037,
0.10226991772651672,
-0.21688547730445862,
0.3332635164260864,
-0.20545291900634766,
-0.21879446506500244,
0.31269046664237976,
0.12877336144447327,
-0.3271476626396179,
0.32847923040390015,
0.039797961711883545,
0.17491291463375092,
0.015510469675064087,
0.19428473711013794,
-0.5804229378700256,
-0.18751177191734314,
-0.2166321873664856,
0.04989294335246086,
0.16470596194267273,
0.09028786420822144,
-0.07233939319849014,
0.1494959443807602,
-0.10614439845085144,
-0.0524444542825222,
0.10693066567182541,
-0.044245339930057526,
0.2364695519208908,
-0.8369109034538269,
-0.2997891902923584,
0.04330746829509735,
0.2258635014295578,
0.39950650930404663,
0.3815813958644867,
-0.013444855809211731,
-0.09399344027042389,
0.19683685898780823,
0.09238223731517792,
0.7246233224868774,
0.015939239412546158,
0.08295270800590515,
-0.2899784445762634,
0.18532754480838776,
-0.4381764233112335,
-0.2349052131175995,
-0.19489462673664093,
0.13776947557926178,
0.281177818775177,
0.16984866559505463,
-0.22085058689117432,
-0.040870245546102524,
0.1911017894744873,
0.0646318569779396,
-0.098483145236969,
-0.009390277788043022,
-0.26534807682037354,
-0.14907316863536835,
-0.34381064772605896,
0.2851319909095764,
0.4409758448600769,
0.29318010807037354,
0.47854694724082947,
-0.060885727405548096,
0.1911560744047165,
0.15684032440185547,
-0.11838802695274353,
0.2444162517786026,
0.5145235657691956,
-0.13947388529777527,
0.02023199200630188,
0.20985417068004608,
-0.047285690903663635,
0.035084307193756104,
0.5318820476531982,
-0.09855523705482483,
-0.320965051651001,
-0.03559431433677673,
-0.042349543422460556,
0.3858829736709595,
0.3409576416015625,
0.027156155556440353,
0.0072178468108177185,
-0.042327627539634705,
0.17052266001701355,
-0.23947176337242126,
-0.1145949512720108,
0.38380715250968933,
0.5305992364883423,
-0.07233104854822159,
-0.24324645102024078,
0.22699514031410217,
-0.1459895372390747,
0.030438698828220367,
0.09295693039894104,
0.5290964841842651,
-0.2636905312538147,
0.4520531892776489,
-0.10958734899759293,
1.002031683921814,
0.32818883657455444,
0.11342597007751465,
0.49788516759872437,
-0.047201015055179596,
0.3578609824180603,
-0.0754106342792511,
0.27481359243392944,
-0.41394713521003723,
0.3110218048095703,
-0.03776470571756363,
-0.11987397074699402,
-0.11781514436006546,
-0.16986818611621857,
-0.22657017409801483,
0.28606241941452026,
-0.15264680981636047,
0.23116417229175568,
-0.06266158819198608,
-0.00852254405617714,
-0.20341427624225616,
-0.03353014215826988,
-0.4369696080684662,
0.09323082119226456,
0.014677658677101135,
0.270394504070282,
-0.1487715244293213,
0.1750008463859558,
-0.33909982442855835,
-0.374233603477478,
-0.6190102696418762,
-0.02997473254799843,
-0.476357102394104,
0.004796725697815418,
0.4499209225177765,
-0.08977605402469635,
-0.036416199058294296,
0.43316495418548584,
0.30170583724975586,
0.06793434917926788,
-0.03691083937883377,
0.18586236238479614,
-0.07654381543397903,
0.3762841522693634,
0.4295198917388916,
-0.05190739035606384,
0.1574101746082306,
-0.037489671260118484,
-0.3992098271846771,
-0.18646055459976196,
0.014257061295211315,
-0.21475431323051453,
0.0705936998128891,
0.11322376132011414,
0.011674869805574417,
-0.18065668642520905,
-0.37972304224967957,
-0.1218564510345459,
0.2888597249984741,
-0.21521422266960144,
0.12182250618934631,
-0.10446494817733765,
-0.18339160084724426,
0.16808876395225525,
0.23020890355110168,
-0.3828323185443878,
-0.02935587242245674,
0.459156334400177,
-0.2447422444820404,
0.044633783400058746,
0.43615928292274475,
0.01264890655875206,
-0.10209207236766815,
-0.12105519324541092,
0.18574422597885132,
-0.08986548334360123,
-0.11957936733961105,
0.020980611443519592,
-0.14428649842739105,
-0.3595219850540161,
-0.21373842656612396,
0.33839935064315796,
0.3839161992073059,
-0.11619237810373306,
-0.050292689353227615,
-0.6957359910011292,
-0.023552177473902702,
0.2530732750892639,
0.04387788847088814,
-0.04511839523911476,
0.3628294765949249,
0.08016423881053925,
-0.17540019750595093,
-0.07035750895738602,
-0.31658679246902466,
-0.06968441605567932,
-0.2544337213039398,
0.1378873884677887,
-0.0004852619022130966,
-0.054904915392398834,
0.22773723304271698,
-0.2508428394794464,
0.09738319367170334,
-0.0025258325040340424,
-0.12870557606220245,
-0.2157401442527771,
-0.10593602061271667,
0.15164814889431,
0.0958361104130745,
-0.2368226796388626,
-0.11058977991342545,
-0.07676571607589722,
0.152308389544487,
-0.19047704339027405,
0.12856528162956238,
0.49132001399993896,
0.1518167108297348,
0.19984954595565796,
-0.5185202360153198,
-0.1265324056148529,
0.030970431864261627,
0.02348356321454048,
-0.0831899344921112,
-0.346021831035614,
0.11455854028463364,
0.2857743799686432,
-0.2541632652282715,
-0.056822262704372406,
0.2504391372203827,
0.19712746143341064,
0.1563529670238495,
0.10799172520637512,
0.19159886240959167,
-0.09821932017803192,
-0.019018620252609253,
0.1833927035331726,
0.22719518840312958,
0.3787548840045929,
-0.40001431107521057,
-0.045251719653606415,
-0.03547455742955208,
0.1983865648508072,
-0.3783813416957855,
-0.03510396555066109,
0.21720559895038605,
-0.1882687509059906,
-0.020508592948317528,
0.2156236469745636,
0.13649143278598785,
-0.2648785710334778,
-0.06507201492786407,
0.23251602053642273,
0.5807167887687683,
-0.08882796764373779,
0.011357671581208706,
0.14765231311321259,
0.02740686759352684,
0.21495205163955688,
0.31767886877059937,
-0.11529560387134552,
0.20218375325202942,
0.18653835356235504,
-0.1520354151725769,
0.043982863426208496,
-0.2052266001701355,
0.15206262469291687,
0.14444562792778015,
0.04668571427464485,
0.3828476071357727,
0.34971821308135986,
-0.4396209120750427,
0.011120390146970749,
0.13172292709350586,
0.4576258063316345,
-0.11604826897382736,
-0.23841433227062225,
-0.2936195135116577,
-0.0883244127035141,
-0.2381865680217743,
-0.05786300078034401,
-0.0807034969329834,
-0.10523480176925659,
-0.1390683948993683,
-0.09896543622016907,
-0.06288129091262817,
-0.22114087641239166,
0.15798109769821167,
0.1681918352842331,
-0.21827293932437897,
-0.3492712378501892,
-0.27466264367103577,
0.24472609162330627,
0.18391788005828857,
-0.17134514451026917,
0.3410627245903015,
0.06640942394733429,
0.009408712387084961,
0.30501261353492737,
0.5498547554016113,
0.51114821434021,
0.2144201248884201,
-0.15680354833602905,
0.19623085856437683,
-0.17397594451904297,
-0.02778656594455242,
0.011248808354139328,
0.11021395772695541,
-0.29861193895339966,
-0.49480026960372925,
0.09193819761276245,
0.2147875726222992,
-0.1876729130744934,
0.013915196061134338,
0.061369623988866806,
0.11291633546352386,
-0.3813644349575043,
-0.22478294372558594,
-0.33111250400543213,
0.31511422991752625,
-0.1817767471075058,
0.10973422229290009,
-0.14958250522613525,
-0.025889702141284943,
0.14152757823467255,
-0.16162559390068054,
0.20255771279335022,
0.07868481427431107,
0.07156533747911453,
0.1909434199333191,
0.044528111815452576,
0.6243497133255005,
-0.20134100317955017,
-0.06819013506174088,
-0.057878632098436356,
-0.5805672407150269,
0.1312074363231659,
0.03104502335190773,
-0.11549673229455948,
0.20152364671230316,
0.21466410160064697,
-0.15989267826080322,
0.22095857560634613,
0.4334925413131714,
0.061708491295576096,
-0.19035254418849945,
0.011297762393951416,
-0.21445485949516296,
0.07673802971839905,
-0.20317496359348297,
0.11044441163539886,
-0.006817808374762535,
-0.2531498074531555,
0.20531830191612244,
0.14811396598815918,
-0.057772159576416016,
0.18853215873241425,
0.15271084010601044,
-0.08002672344446182,
-0.4327375292778015,
-0.12943485379219055,
0.3209773898124695,
0.22017928957939148,
-0.23549479246139526,
0.19693489372730255,
-0.06646494567394257,
-0.16120563447475433,
-0.5237135887145996,
0.14058798551559448,
-0.3926340639591217,
0.2938769459724426,
-0.04632273316383362,
-0.3050650954246521,
0.04753229022026062,
0.2376043051481247,
0.3541375398635864,
-0.2929813265800476,
-0.4807344675064087,
0.19372577965259552,
-0.15002980828285217,
0.23154793679714203,
-0.08737558871507645,
0.19338452816009521,
-0.08013893663883209,
0.4570729434490204,
-0.33873409032821655,
-0.35801073908805847,
0.3238229751586914,
-0.34903520345687866,
-0.1189630776643753,
0.014102415181696415,
0.3399590253829956,
0.28182539343833923,
-0.14852723479270935,
-0.505400538444519,
-0.15321756899356842,
0.2660462558269501,
-0.00043580494821071625,
-0.21644224226474762,
0.11160391569137573,
-0.05062990263104439,
-0.05873273313045502,
0.029929321259260178,
0.04772436246275902,
0.36811530590057373,
-0.10838669538497925,
0.28898894786834717,
-0.3507986068725586
] |
https://github.com/huggingface/datasets/issues/2583 | Error iteration over IterableDataset using Torch DataLoader | Hi ! This is because you first need to format the dataset for pytorch:
```python
>>> import torch
>>> from datasets import load_dataset
>>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True)
>>> torch_iterable_dataset = dataset.with_format("torch")
>>> assert isinstance(torch_iterable_dataset, torch.utils.data.IterableDataset)
>>> dataloader = torch.utils.data.DataLoader(torch_iterable_dataset, batch_size=4)
>>> next(iter(dataloader))
{'id': tensor([0, 1, 2, 3]), 'text': ['Mtendere Village was inspired...]}
```
This is because the pytorch dataloader expects a subclass of `torch.utils.data.IterableDataset`. Since you can't pass an arbitrary iterable to a pytorch dataloader, you first need to build an object that inherits from `torch.utils.data.IterableDataset` using `with_format("torch")` for example.
| ## Describe the bug
I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case when I look at the dataloader.sampler class I get torch.utils.data.sampler.SequentialSampler while the latter one gives torch.utils.data.dataloader._InfiniteConstantSampler.
I am not sure if this is how it is meant to be used, but that's what seemed reasonable to me.
## Steps to reproduce the bug
1. Does not work.
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True)
>>> dataloader = torch.utils.data.DataLoader(dataset, batch_size=4)
>>> dataloader.sampler
<torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208>
>>> for batch in dataloader:
... print(batch)
```
2. Works.
```python
import torch
from torch.utils.data import Dataset, IterableDataset, DataLoader
class CustomIterableDataset(IterableDataset):
'Characterizes a dataset for PyTorch'
def __init__(self, data):
'Initialization'
self.data = data
def __iter__(self):
return iter(self.data)
data = list(range(12))
dataset = CustomIterableDataset(data)
dataloader = DataLoader(dataset, batch_size=4)
print("dataloader: ", dataloader.sampler)
for batch in dataloader:
print(batch)
```
## Expected results
To get batches of data with the batch size as 4. Output from the latter one (2) though Datasource is different here so actual data is different.
dataloader: <torch.utils.data.dataloader._InfiniteConstantSampler object at 0x7f1cc29e2c50>
tensor([0, 1, 2, 3])
tensor([4, 5, 6, 7])
tensor([ 8, 9, 10, 11])
## Actual results
<torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208>
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in __next__
data = self._next_data()
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 474, in _next_data
index = self._next_index() # may raise StopIteration
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 427, in _next_index
return next(self._sampler_iter) # may raise StopIteration
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 227, in __iter__
for idx in self.sampler:
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 67, in __iter__
return iter(range(len(self.data_source)))
TypeError: object of type 'IterableDataset' has no len()
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: '1.8.1.dev0'
- Platform: Linux
- Python version: Python 3.6.8
- PyArrow version: '3.0.0'
| 93 | Error iteration over IterableDataset using Torch DataLoader
## Describe the bug
I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case when I look at the dataloader.sampler class I get torch.utils.data.sampler.SequentialSampler while the latter one gives torch.utils.data.dataloader._InfiniteConstantSampler.
I am not sure if this is how it is meant to be used, but that's what seemed reasonable to me.
## Steps to reproduce the bug
1. Does not work.
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True)
>>> dataloader = torch.utils.data.DataLoader(dataset, batch_size=4)
>>> dataloader.sampler
<torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208>
>>> for batch in dataloader:
... print(batch)
```
2. Works.
```python
import torch
from torch.utils.data import Dataset, IterableDataset, DataLoader
class CustomIterableDataset(IterableDataset):
'Characterizes a dataset for PyTorch'
def __init__(self, data):
'Initialization'
self.data = data
def __iter__(self):
return iter(self.data)
data = list(range(12))
dataset = CustomIterableDataset(data)
dataloader = DataLoader(dataset, batch_size=4)
print("dataloader: ", dataloader.sampler)
for batch in dataloader:
print(batch)
```
## Expected results
To get batches of data with the batch size as 4. Output from the latter one (2) though Datasource is different here so actual data is different.
dataloader: <torch.utils.data.dataloader._InfiniteConstantSampler object at 0x7f1cc29e2c50>
tensor([0, 1, 2, 3])
tensor([4, 5, 6, 7])
tensor([ 8, 9, 10, 11])
## Actual results
<torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208>
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in __next__
data = self._next_data()
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 474, in _next_data
index = self._next_index() # may raise StopIteration
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 427, in _next_index
return next(self._sampler_iter) # may raise StopIteration
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 227, in __iter__
for idx in self.sampler:
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 67, in __iter__
return iter(range(len(self.data_source)))
TypeError: object of type 'IterableDataset' has no len()
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: '1.8.1.dev0'
- Platform: Linux
- Python version: Python 3.6.8
- PyArrow version: '3.0.0'
Hi ! This is because you first need to format the dataset for pytorch:
```python
>>> import torch
>>> from datasets import load_dataset
>>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True)
>>> torch_iterable_dataset = dataset.with_format("torch")
>>> assert isinstance(torch_iterable_dataset, torch.utils.data.IterableDataset)
>>> dataloader = torch.utils.data.DataLoader(torch_iterable_dataset, batch_size=4)
>>> next(iter(dataloader))
{'id': tensor([0, 1, 2, 3]), 'text': ['Mtendere Village was inspired...]}
```
This is because the pytorch dataloader expects a subclass of `torch.utils.data.IterableDataset`. Since you can't pass an arbitrary iterable to a pytorch dataloader, you first need to build an object that inherits from `torch.utils.data.IterableDataset` using `with_format("torch")` for example.
| [
-0.17598846554756165,
-0.3325822949409485,
-0.012140855193138123,
0.23658478260040283,
0.1552754044532776,
0.020412318408489227,
0.43117403984069824,
0.0018048062920570374,
-0.16896086931228638,
0.24600960314273834,
0.09634534269571304,
0.24420873820781708,
-0.33548152446746826,
-0.4065966308116913,
-0.2495773732662201,
-0.21472737193107605,
0.08617991954088211,
-0.2172200083732605,
-0.22791844606399536,
-0.08439414203166962,
-0.1583956778049469,
-0.03149525076150894,
-0.238176167011261,
-0.033447034657001495,
-0.021350963041186333,
-0.024418575689196587,
-0.12059847265481949,
0.009427059441804886,
0.08263237029314041,
-0.5168218016624451,
0.41323748230934143,
0.07846711575984955,
0.5836471319198608,
0.5928798913955688,
-0.00012130139657529071,
0.08044087886810303,
0.5695526003837585,
-0.1488480418920517,
-0.34067606925964355,
0.03398285061120987,
0.18531054258346558,
0.12311199307441711,
0.18922927975654602,
-0.25030383467674255,
0.008563656359910965,
-0.13734573125839233,
0.04133252799510956,
-0.4429117441177368,
0.027745313942432404,
0.09113842248916626,
0.12735101580619812,
0.14044666290283203,
-0.21521003544330597,
-0.15519481897354126,
0.08733929693698883,
0.08384332805871964,
-0.06600607186555862,
0.3676382899284363,
0.6034713983535767,
0.1462019681930542,
-0.2805482745170593,
0.10235287249088287,
-0.051571980118751526,
0.14463283121585846,
0.20253390073776245,
-0.20651474595069885,
-0.15180709958076477,
-0.14113111793994904,
0.01658513769507408,
0.13772664964199066,
0.4296513497829437,
-0.36472266912460327,
-0.2566857635974884,
-0.21343392133712769,
-0.09083694964647293,
-0.008176235482096672,
-0.05156242102384567,
0.2455940693616867,
-0.25176048278808594,
-0.10191309452056885,
-0.10535228997468948,
0.29457569122314453,
-0.2935190498828888,
0.15060433745384216,
0.12089261412620544,
0.060755275189876556,
-0.060542233288288116,
0.4181460738182068,
-0.02580953761935234,
-0.04967731982469559,
0.41042742133140564,
-0.14660616219043732,
0.11397989094257355,
0.17912732064723969,
-0.4098127484321594,
0.12157391011714935,
-0.07459338754415512,
0.03438634052872658,
0.10905911773443222,
0.22854341566562653,
0.19129975140094757,
-0.07218106091022491,
0.21480605006217957,
-0.07588312774896622,
0.2809828817844391,
0.21040165424346924,
0.16070404648780823,
0.13090276718139648,
-0.04843607544898987,
0.12946318089962006,
0.12071536481380463,
-0.04315724968910217,
-0.013119574636220932,
-0.2782546281814575,
0.33151140809059143,
0.22974428534507751,
0.24273823201656342,
0.021872226148843765,
-0.26302996277809143,
-0.06715540587902069,
-0.37721529603004456,
-0.046476978808641434,
0.09215208888053894,
0.03120960295200348,
-0.0663541853427887,
-0.018238864839076996,
0.02603134512901306,
0.21941515803337097,
0.001960134133696556,
-0.1363486498594284,
-0.044967517256736755,
-0.06343169510364532,
-0.23698490858078003,
0.16531139612197876,
0.013812705874443054,
-0.5259132981300354,
0.21787652373313904,
0.07431986182928085,
0.12404252588748932,
0.09819091856479645,
0.14075712859630585,
-0.1538306027650833,
0.08765210211277008,
-0.18867814540863037,
0.10858340561389923,
0.2937152087688446,
0.09096641093492508,
0.3701990246772766,
0.17034772038459778,
0.3358135223388672,
-0.21395117044448853,
-0.4311695098876953,
-0.0041148122400045395,
0.13150577247142792,
-0.13494110107421875,
0.14840126037597656,
-0.16619214415550232,
0.013972869142889977,
0.35923025012016296,
-0.08629972487688065,
0.2563605308532715,
-0.33094584941864014,
0.08548974990844727,
-0.30740997195243835,
-0.15668341517448425,
0.3201511800289154,
-0.5023245811462402,
-0.009421765804290771,
0.09440980851650238,
-0.1242312490940094,
0.45208439230918884,
0.16446693241596222,
-0.3807598948478699,
0.35968533158302307,
-0.4563368558883667,
-0.002249583601951599,
0.0037128031253814697,
-0.44845959544181824,
-0.43538618087768555,
0.25472256541252136,
0.06006893515586853,
0.29165732860565186,
0.17571522295475006,
0.04435902461409569,
0.428160697221756,
-0.3241618573665619,
0.178884357213974,
0.01816081814467907,
-0.23640277981758118,
-0.17669349908828735,
-0.3059004545211792,
0.06542977690696716,
0.3222927451133728,
0.12153838574886322,
0.07876469194889069,
0.21131160855293274,
-0.001834191381931305,
0.036453720182180405,
0.25590208172798157,
-0.1622604876756668,
0.17332471907138824,
0.2712678015232086,
-0.02215244248509407,
0.1062512919306755,
0.18770718574523926,
-0.06390475481748581,
-0.38269272446632385,
0.19025418162345886,
-0.03414424881339073,
0.025288458913564682,
0.024826571345329285,
-0.03579750657081604,
0.07464250177145004,
0.151557058095932,
-0.40891578793525696,
-0.19567127525806427,
0.020700566470623016,
0.3267150819301605,
0.2401629090309143,
-0.34108689427375793,
0.05102573707699776,
0.17793235182762146,
-0.36791300773620605,
-0.09054189920425415,
-0.6530372500419617,
-0.01575515791773796,
0.1605357974767685,
-0.2572542130947113,
0.006690599024295807,
0.0078653022646904,
0.2089659571647644,
-0.20636732876300812,
-0.09491829574108124,
0.2147933840751648,
-0.12380625307559967,
-0.1281571239233017,
-0.17848804593086243,
-0.010511815547943115,
0.061333730816841125,
-0.2036590874195099,
-0.0033432599157094955,
0.3811854422092438,
0.22065600752830505,
-0.1643151044845581,
0.15714091062545776,
0.43301284313201904,
-0.13789795339107513,
0.4838739335536957,
-0.07346534729003906,
-0.0011852793395519257,
0.054713353514671326,
0.20821654796600342,
-0.4597419798374176,
0.1447855830192566,
0.250141441822052,
-0.06221415475010872,
0.42880749702453613,
-0.19781626760959625,
-0.36332157254219055,
0.0964464470744133,
-0.06512421369552612,
-0.0165037140250206,
-0.13323312997817993,
0.17621231079101562,
-0.2831246256828308,
0.0837613120675087,
0.1375371664762497,
-0.015924856066703796,
0.6980888843536377,
0.0048871226608753204,
0.02115549147129059,
-0.10675913840532303,
0.12121644616127014,
-0.06639941036701202,
0.01725137233734131,
0.23966416716575623,
0.08117949962615967,
0.1726079285144806,
0.09105014055967331,
-0.12290460616350174,
-0.050476886332035065,
-0.43839845061302185,
-0.13120488822460175,
0.19989009201526642,
-0.08025839179754257,
0.30072420835494995,
0.09545577317476273,
-0.1390553116798401,
-0.3806455135345459,
-0.5877687335014343,
0.018513254821300507,
-0.2711992859840393,
-0.232948437333107,
0.5140385627746582,
0.07633231580257416,
0.11004078388214111,
0.04380519315600395,
0.12408678978681564,
0.3323762118816376,
-0.10419774800539017,
-0.015929576009511948,
-0.03921148553490639,
-0.3659597933292389,
-0.03146061301231384,
-0.02366950362920761,
-0.6017321944236755,
0.3704043924808502,
0.13439148664474487,
0.040474727749824524,
-0.47920095920562744,
0.14236143231391907,
0.0473594143986702,
-0.06619200110435486,
0.07064653187990189,
0.4086326062679291,
-0.050462812185287476,
0.293843150138855,
-0.20238721370697021,
0.30721816420555115,
-0.09485258907079697,
0.0008257664740085602,
0.08534709364175797,
-0.09316708147525787,
-0.0026092813350260258,
0.14635777473449707,
-0.03688671439886093,
-0.23986946046352386,
-0.20745888352394104,
-0.08613358438014984,
0.0731799304485321,
-0.008196555078029633,
0.16518031060695648,
0.024237215518951416,
0.09530363976955414,
0.45525240898132324,
-0.15042491257190704,
-0.06395994871854782,
-0.41666385531425476,
0.19386941194534302,
-0.33354660868644714,
-0.28590890765190125,
-0.2267332524061203,
-0.22947955131530762,
0.24978125095367432,
0.37177491188049316,
-0.30562257766723633,
-0.19610603153705597,
-0.060211747884750366,
0.22527745366096497,
-0.08177085220813751,
-0.04250311106443405,
0.20502713322639465,
-0.12811166048049927,
0.08895240724086761,
-0.14572131633758545,
-0.1033765971660614,
0.06909658014774323,
-0.24257299304008484,
0.354399710893631,
0.2895647883415222,
0.5595618486404419,
0.1378503441810608,
0.9526206851005554,
0.4625445604324341,
-0.15118767321109772,
0.2041899859905243,
0.008010821416974068,
-0.1384083479642868,
-0.0857749953866005,
-0.38426414132118225,
0.21528291702270508,
-0.2100381851196289,
-0.3123049736022949,
0.16608025133609772,
-0.21496987342834473,
-0.10470371693372726,
0.08273191750049591,
0.09725388884544373,
-0.008991707116365433,
-0.1037503257393837,
0.17559745907783508,
-0.5570783615112305,
0.19041576981544495,
-0.1468602865934372,
0.2426726222038269,
-0.28692278265953064,
-0.12588286399841309,
-0.03696582838892937,
0.04244406148791313,
0.2459217607975006,
0.05157385766506195,
-0.18931080400943756,
0.019086694344878197,
-0.6127884984016418,
0.3754480481147766,
0.1767861396074295,
0.6406635642051697,
0.1874254047870636,
-0.11556415259838104,
0.1879221349954605,
0.004915801342576742,
0.7799481749534607,
-0.10748805850744247,
-0.239838644862175,
-0.0036271754652261734,
-0.1669648140668869,
-0.7163997292518616,
-0.4133671820163727,
-0.14694011211395264,
0.77519291639328,
0.1555386781692505,
-0.07514587044715881,
-0.13946300745010376,
-0.03318018093705177,
0.19412203133106232,
0.07339277863502502,
-0.2068856954574585,
-0.16901355981826782,
-0.11875489354133606,
-0.3793283700942993,
-0.0894913375377655,
-0.2840989828109741,
0.05170012265443802,
0.1906181126832962,
-0.08544157445430756,
0.061272915452718735,
-0.26140856742858887,
-0.014388804323971272,
0.05835496634244919,
-0.08949853479862213,
0.16433903574943542,
-0.21373054385185242,
0.21244372427463531,
-0.01221107691526413,
0.2840583920478821,
0.4879262149333954,
0.2832310199737549,
-0.003564361482858658,
-0.5100498795509338,
0.2887410819530487,
-0.18306869268417358,
0.037848375737667084,
0.206184983253479,
-0.18861037492752075,
0.08036136627197266,
-0.10132221132516861,
-0.021395914256572723,
-0.2109726220369339,
-0.09348899126052856,
0.30206289887428284,
0.05301246792078018,
-0.6308019757270813,
-0.5626428723335266,
0.17281195521354675,
0.26806068420410156,
0.05268029868602753,
0.6681538224220276,
-0.398509681224823,
-0.2715950012207031,
0.2777000665664673,
0.08388363569974899,
0.726750910282135,
0.14852535724639893,
-0.05574744567275047,
0.23261487483978271,
0.20901606976985931,
0.01867607980966568,
0.3115614652633667,
0.2369667887687683,
-0.3453316390514374,
-0.22724434733390808,
-0.02699163928627968,
-0.1897990107536316,
0.12217752635478973,
0.18264375627040863,
-0.06328204274177551,
0.33182409405708313,
-0.14365991950035095,
0.04598004370927811,
0.12700724601745605,
-0.12689277529716492,
-0.2129749208688736,
-0.13387902081012726,
0.09565151482820511,
0.08511894941329956,
0.0057659633457660675,
0.25649014115333557,
-0.17285260558128357,
-0.09265807271003723,
0.06687942147254944,
-0.15552449226379395,
-0.2618391513824463,
0.04439011216163635,
-0.22300012409687042,
0.0985845997929573,
0.24561847746372223,
-0.5232536792755127,
0.05012284591794014,
0.21589377522468567,
0.35222989320755005,
-0.36277255415916443,
-0.002662837505340576,
-0.029420074075460434,
0.11824321746826172,
-0.023342344909906387,
-0.20290380716323853,
-0.20772269368171692,
0.48709636926651,
0.040551066398620605,
0.09955159574747086,
0.3205989897251129,
0.07133407145738602,
-0.46810078620910645,
-0.2282387614250183,
0.2966572046279907,
0.4771985411643982,
-0.5392909049987793,
-0.23196983337402344,
-0.2508276700973511,
-0.2199193835258484,
-0.23634323477745056,
0.010444886051118374,
0.020688988268375397,
-0.28768229484558105,
0.1941114068031311,
-0.1743820309638977,
-0.12590765953063965,
0.0919264629483223,
0.5244767069816589,
0.3316210210323334,
-0.04920849949121475,
0.4610217213630676,
0.12727825343608856,
-0.0780189260840416,
0.017299767583608627,
-0.03379501402378082,
0.2742300033569336,
-0.6040000319480896,
0.3320976197719574,
-0.30196505784988403,
0.5657225251197815,
-0.04777506738901138,
0.32334020733833313,
0.01458127424120903,
0.06453468650579453,
-0.35752609372138977,
-0.25253164768218994,
-0.26160043478012085,
-0.10557249188423157,
0.018310174345970154,
0.2605783939361572,
0.05244320631027222,
0.12131454050540924,
0.07276538014411926,
-0.08296661823987961,
-0.1959933638572693,
-0.18018510937690735,
-0.020595338195562363,
0.16172830760478973,
0.15081731975078583,
0.062018342316150665,
-0.10457278043031693,
0.33127424120903015,
-0.05368247628211975,
0.406328022480011,
0.019925137981772423,
-0.15047305822372437,
-0.02763255126774311,
0.16993491351604462,
0.060521457344293594,
-0.1047077551484108,
-0.16922327876091003,
-0.20600128173828125,
0.0063541848212480545,
-0.06021177023649216,
0.28949958086013794,
0.24646034836769104,
0.03991056606173515,
0.14236153662204742,
0.3173554539680481,
0.04318352788686752,
-0.08609473705291748,
0.09589559584856033,
0.10156185925006866,
0.33742648363113403,
0.1774802803993225,
0.13566851615905762,
0.11205056309700012,
-0.1733807474374771,
-0.3201330602169037,
0.12381120026111603,
0.2855197787284851,
0.22080710530281067,
-0.06243341416120529,
-0.5807866454124451,
0.12318253517150879,
0.023672865703701973,
0.1875419318675995,
0.36308377981185913,
-0.36316990852355957,
-0.10949811339378357,
0.0990886241197586,
0.055639028549194336,
0.05120860040187836,
-0.07024826109409332,
-0.18324792385101318,
0.03339751064777374,
0.02265729382634163,
0.2685617506504059,
-0.08713935315608978,
-0.2271844893693924,
0.16491277515888214,
-0.01105725858360529,
0.3474285900592804,
-0.13776111602783203,
0.10774889588356018,
0.3673093616962433,
0.15318769216537476,
0.019503522664308548,
0.32878270745277405,
0.07383745908737183,
0.06217676028609276,
0.45361632108688354,
0.04338522627949715,
0.6263985633850098,
0.31339502334594727,
-0.26988524198532104,
0.10481724888086319,
-0.35972392559051514,
-0.13157635927200317,
-0.06444630026817322,
0.14289362728595734,
0.2984362542629242,
0.07192469388246536,
0.462848037481308,
-0.1762639880180359,
-0.3152387738227844,
0.04875849932432175,
-0.2423640936613083,
-0.08563856035470963,
-0.11423979699611664,
-0.39307844638824463,
-0.19821129739284515,
0.23661571741104126,
-0.027726858854293823,
-0.09085862338542938,
-0.012065522372722626,
0.18862023949623108,
-0.1014319360256195,
-0.20595736801624298,
-0.585743248462677,
-0.1734381914138794,
0.28391221165657043,
-0.06240227073431015,
-0.12223006784915924,
0.15278328955173492,
0.12455008924007416,
0.15628205239772797,
0.15071991086006165,
0.30550292134284973,
0.49859103560447693,
0.5325033664703369,
-0.10812878608703613,
0.10503102093935013,
-0.15050731599330902,
-0.06871170550584793,
-0.015781817957758904,
0.1756822168827057,
-0.1252216398715973,
-0.1440994143486023,
0.40513673424720764,
0.06611455976963043,
-0.06067273020744324,
0.39414605498313904,
0.32217732071876526,
0.0434572659432888,
-0.2341540902853012,
0.11431542783975601,
-0.12785907089710236,
0.06544721871614456,
-0.13820335268974304,
0.015658073127269745,
-0.3902929425239563,
-0.05954219400882721,
0.3030413091182709,
-0.3966253697872162,
0.11297603696584702,
-0.038932349532842636,
0.026305396109819412,
-0.4196701943874359,
0.37585869431495667,
0.3221396505832672,
0.17387855052947998,
-0.22130170464515686,
-0.14026804268360138,
-0.10099625587463379,
0.1792585551738739,
-0.24928808212280273,
0.11362747848033905,
-0.04608003422617912,
0.31027430295944214,
-0.10725928097963333,
0.13170018792152405,
0.19803005456924438,
0.0027528945356607437,
-0.06394947320222855,
0.7769203186035156,
-0.2023662030696869,
-0.40613994002342224,
0.004258468747138977,
0.08911857008934021,
0.06590470671653748,
-0.4869764447212219,
-0.0633901059627533,
-0.09672964364290237,
0.03900192677974701,
-0.10394339263439178,
-0.2570982575416565,
0.2701433598995209,
-0.010822951793670654,
0.32186323404312134,
0.1759914606809616,
0.08218245208263397,
0.04720458388328552,
-0.03934674337506294,
-0.47644108533859253,
-0.03581380471587181,
-0.09212102741003036,
0.11862216889858246,
0.09736473858356476,
0.29489797353744507,
0.013729291036725044,
-0.13386715948581696,
-0.259808212518692,
0.3552679121494293,
0.37222999334335327,
0.06365114450454712,
-0.34397512674331665,
0.29255765676498413,
-0.40092146396636963,
0.18285296857357025,
0.01691942662000656,
0.32568857073783875,
0.2241053730249405,
0.3691232204437256,
-0.289265900850296,
-0.32300350069999695,
0.5461326837539673,
-0.8041626214981079,
-0.3581659197807312,
0.01871519535779953,
-0.12052157521247864,
-0.007166504859924316,
-0.08189427852630615,
-0.370540589094162,
0.08378960937261581,
0.37559524178504944,
-0.10939643532037735,
0.031631674617528915,
0.0740496814250946,
0.08921746909618378,
0.1829015016555786,
-0.08855533599853516,
0.17104263603687286,
0.20660609006881714,
-0.08259209990501404,
0.28093746304512024,
-0.3231046199798584
] |
https://github.com/huggingface/datasets/issues/2583 | Error iteration over IterableDataset using Torch DataLoader | Thank you for that and the example!
What you said makes total sense; I just somehow missed that and assumed HF IterableDataset was a subclass of Torch IterableDataset. | ## Describe the bug
I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case when I look at the dataloader.sampler class I get torch.utils.data.sampler.SequentialSampler while the latter one gives torch.utils.data.dataloader._InfiniteConstantSampler.
I am not sure if this is how it is meant to be used, but that's what seemed reasonable to me.
## Steps to reproduce the bug
1. Does not work.
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True)
>>> dataloader = torch.utils.data.DataLoader(dataset, batch_size=4)
>>> dataloader.sampler
<torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208>
>>> for batch in dataloader:
... print(batch)
```
2. Works.
```python
import torch
from torch.utils.data import Dataset, IterableDataset, DataLoader
class CustomIterableDataset(IterableDataset):
'Characterizes a dataset for PyTorch'
def __init__(self, data):
'Initialization'
self.data = data
def __iter__(self):
return iter(self.data)
data = list(range(12))
dataset = CustomIterableDataset(data)
dataloader = DataLoader(dataset, batch_size=4)
print("dataloader: ", dataloader.sampler)
for batch in dataloader:
print(batch)
```
## Expected results
To get batches of data with the batch size as 4. Output from the latter one (2) though Datasource is different here so actual data is different.
dataloader: <torch.utils.data.dataloader._InfiniteConstantSampler object at 0x7f1cc29e2c50>
tensor([0, 1, 2, 3])
tensor([4, 5, 6, 7])
tensor([ 8, 9, 10, 11])
## Actual results
<torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208>
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in __next__
data = self._next_data()
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 474, in _next_data
index = self._next_index() # may raise StopIteration
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 427, in _next_index
return next(self._sampler_iter) # may raise StopIteration
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 227, in __iter__
for idx in self.sampler:
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 67, in __iter__
return iter(range(len(self.data_source)))
TypeError: object of type 'IterableDataset' has no len()
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: '1.8.1.dev0'
- Platform: Linux
- Python version: Python 3.6.8
- PyArrow version: '3.0.0'
| 28 | Error iteration over IterableDataset using Torch DataLoader
## Describe the bug
I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case when I look at the dataloader.sampler class I get torch.utils.data.sampler.SequentialSampler while the latter one gives torch.utils.data.dataloader._InfiniteConstantSampler.
I am not sure if this is how it is meant to be used, but that's what seemed reasonable to me.
## Steps to reproduce the bug
1. Does not work.
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True)
>>> dataloader = torch.utils.data.DataLoader(dataset, batch_size=4)
>>> dataloader.sampler
<torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208>
>>> for batch in dataloader:
... print(batch)
```
2. Works.
```python
import torch
from torch.utils.data import Dataset, IterableDataset, DataLoader
class CustomIterableDataset(IterableDataset):
'Characterizes a dataset for PyTorch'
def __init__(self, data):
'Initialization'
self.data = data
def __iter__(self):
return iter(self.data)
data = list(range(12))
dataset = CustomIterableDataset(data)
dataloader = DataLoader(dataset, batch_size=4)
print("dataloader: ", dataloader.sampler)
for batch in dataloader:
print(batch)
```
## Expected results
To get batches of data with the batch size as 4. Output from the latter one (2) though Datasource is different here so actual data is different.
dataloader: <torch.utils.data.dataloader._InfiniteConstantSampler object at 0x7f1cc29e2c50>
tensor([0, 1, 2, 3])
tensor([4, 5, 6, 7])
tensor([ 8, 9, 10, 11])
## Actual results
<torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208>
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in __next__
data = self._next_data()
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 474, in _next_data
index = self._next_index() # may raise StopIteration
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 427, in _next_index
return next(self._sampler_iter) # may raise StopIteration
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 227, in __iter__
for idx in self.sampler:
File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 67, in __iter__
return iter(range(len(self.data_source)))
TypeError: object of type 'IterableDataset' has no len()
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: '1.8.1.dev0'
- Platform: Linux
- Python version: Python 3.6.8
- PyArrow version: '3.0.0'
Thank you for that and the example!
What you said makes total sense; I just somehow missed that and assumed HF IterableDataset was a subclass of Torch IterableDataset. | [
-0.17598846554756165,
-0.3325822949409485,
-0.012140855193138123,
0.23658478260040283,
0.1552754044532776,
0.020412318408489227,
0.43117403984069824,
0.0018048062920570374,
-0.16896086931228638,
0.24600960314273834,
0.09634534269571304,
0.24420873820781708,
-0.33548152446746826,
-0.4065966308116913,
-0.2495773732662201,
-0.21472737193107605,
0.08617991954088211,
-0.2172200083732605,
-0.22791844606399536,
-0.08439414203166962,
-0.1583956778049469,
-0.03149525076150894,
-0.238176167011261,
-0.033447034657001495,
-0.021350963041186333,
-0.024418575689196587,
-0.12059847265481949,
0.009427059441804886,
0.08263237029314041,
-0.5168218016624451,
0.41323748230934143,
0.07846711575984955,
0.5836471319198608,
0.5928798913955688,
-0.00012130139657529071,
0.08044087886810303,
0.5695526003837585,
-0.1488480418920517,
-0.34067606925964355,
0.03398285061120987,
0.18531054258346558,
0.12311199307441711,
0.18922927975654602,
-0.25030383467674255,
0.008563656359910965,
-0.13734573125839233,
0.04133252799510956,
-0.4429117441177368,
0.027745313942432404,
0.09113842248916626,
0.12735101580619812,
0.14044666290283203,
-0.21521003544330597,
-0.15519481897354126,
0.08733929693698883,
0.08384332805871964,
-0.06600607186555862,
0.3676382899284363,
0.6034713983535767,
0.1462019681930542,
-0.2805482745170593,
0.10235287249088287,
-0.051571980118751526,
0.14463283121585846,
0.20253390073776245,
-0.20651474595069885,
-0.15180709958076477,
-0.14113111793994904,
0.01658513769507408,
0.13772664964199066,
0.4296513497829437,
-0.36472266912460327,
-0.2566857635974884,
-0.21343392133712769,
-0.09083694964647293,
-0.008176235482096672,
-0.05156242102384567,
0.2455940693616867,
-0.25176048278808594,
-0.10191309452056885,
-0.10535228997468948,
0.29457569122314453,
-0.2935190498828888,
0.15060433745384216,
0.12089261412620544,
0.060755275189876556,
-0.060542233288288116,
0.4181460738182068,
-0.02580953761935234,
-0.04967731982469559,
0.41042742133140564,
-0.14660616219043732,
0.11397989094257355,
0.17912732064723969,
-0.4098127484321594,
0.12157391011714935,
-0.07459338754415512,
0.03438634052872658,
0.10905911773443222,
0.22854341566562653,
0.19129975140094757,
-0.07218106091022491,
0.21480605006217957,
-0.07588312774896622,
0.2809828817844391,
0.21040165424346924,
0.16070404648780823,
0.13090276718139648,
-0.04843607544898987,
0.12946318089962006,
0.12071536481380463,
-0.04315724968910217,
-0.013119574636220932,
-0.2782546281814575,
0.33151140809059143,
0.22974428534507751,
0.24273823201656342,
0.021872226148843765,
-0.26302996277809143,
-0.06715540587902069,
-0.37721529603004456,
-0.046476978808641434,
0.09215208888053894,
0.03120960295200348,
-0.0663541853427887,
-0.018238864839076996,
0.02603134512901306,
0.21941515803337097,
0.001960134133696556,
-0.1363486498594284,
-0.044967517256736755,
-0.06343169510364532,
-0.23698490858078003,
0.16531139612197876,
0.013812705874443054,
-0.5259132981300354,
0.21787652373313904,
0.07431986182928085,
0.12404252588748932,
0.09819091856479645,
0.14075712859630585,
-0.1538306027650833,
0.08765210211277008,
-0.18867814540863037,
0.10858340561389923,
0.2937152087688446,
0.09096641093492508,
0.3701990246772766,
0.17034772038459778,
0.3358135223388672,
-0.21395117044448853,
-0.4311695098876953,
-0.0041148122400045395,
0.13150577247142792,
-0.13494110107421875,
0.14840126037597656,
-0.16619214415550232,
0.013972869142889977,
0.35923025012016296,
-0.08629972487688065,
0.2563605308532715,
-0.33094584941864014,
0.08548974990844727,
-0.30740997195243835,
-0.15668341517448425,
0.3201511800289154,
-0.5023245811462402,
-0.009421765804290771,
0.09440980851650238,
-0.1242312490940094,
0.45208439230918884,
0.16446693241596222,
-0.3807598948478699,
0.35968533158302307,
-0.4563368558883667,
-0.002249583601951599,
0.0037128031253814697,
-0.44845959544181824,
-0.43538618087768555,
0.25472256541252136,
0.06006893515586853,
0.29165732860565186,
0.17571522295475006,
0.04435902461409569,
0.428160697221756,
-0.3241618573665619,
0.178884357213974,
0.01816081814467907,
-0.23640277981758118,
-0.17669349908828735,
-0.3059004545211792,
0.06542977690696716,
0.3222927451133728,
0.12153838574886322,
0.07876469194889069,
0.21131160855293274,
-0.001834191381931305,
0.036453720182180405,
0.25590208172798157,
-0.1622604876756668,
0.17332471907138824,
0.2712678015232086,
-0.02215244248509407,
0.1062512919306755,
0.18770718574523926,
-0.06390475481748581,
-0.38269272446632385,
0.19025418162345886,
-0.03414424881339073,
0.025288458913564682,
0.024826571345329285,
-0.03579750657081604,
0.07464250177145004,
0.151557058095932,
-0.40891578793525696,
-0.19567127525806427,
0.020700566470623016,
0.3267150819301605,
0.2401629090309143,
-0.34108689427375793,
0.05102573707699776,
0.17793235182762146,
-0.36791300773620605,
-0.09054189920425415,
-0.6530372500419617,
-0.01575515791773796,
0.1605357974767685,
-0.2572542130947113,
0.006690599024295807,
0.0078653022646904,
0.2089659571647644,
-0.20636732876300812,
-0.09491829574108124,
0.2147933840751648,
-0.12380625307559967,
-0.1281571239233017,
-0.17848804593086243,
-0.010511815547943115,
0.061333730816841125,
-0.2036590874195099,
-0.0033432599157094955,
0.3811854422092438,
0.22065600752830505,
-0.1643151044845581,
0.15714091062545776,
0.43301284313201904,
-0.13789795339107513,
0.4838739335536957,
-0.07346534729003906,
-0.0011852793395519257,
0.054713353514671326,
0.20821654796600342,
-0.4597419798374176,
0.1447855830192566,
0.250141441822052,
-0.06221415475010872,
0.42880749702453613,
-0.19781626760959625,
-0.36332157254219055,
0.0964464470744133,
-0.06512421369552612,
-0.0165037140250206,
-0.13323312997817993,
0.17621231079101562,
-0.2831246256828308,
0.0837613120675087,
0.1375371664762497,
-0.015924856066703796,
0.6980888843536377,
0.0048871226608753204,
0.02115549147129059,
-0.10675913840532303,
0.12121644616127014,
-0.06639941036701202,
0.01725137233734131,
0.23966416716575623,
0.08117949962615967,
0.1726079285144806,
0.09105014055967331,
-0.12290460616350174,
-0.050476886332035065,
-0.43839845061302185,
-0.13120488822460175,
0.19989009201526642,
-0.08025839179754257,
0.30072420835494995,
0.09545577317476273,
-0.1390553116798401,
-0.3806455135345459,
-0.5877687335014343,
0.018513254821300507,
-0.2711992859840393,
-0.232948437333107,
0.5140385627746582,
0.07633231580257416,
0.11004078388214111,
0.04380519315600395,
0.12408678978681564,
0.3323762118816376,
-0.10419774800539017,
-0.015929576009511948,
-0.03921148553490639,
-0.3659597933292389,
-0.03146061301231384,
-0.02366950362920761,
-0.6017321944236755,
0.3704043924808502,
0.13439148664474487,
0.040474727749824524,
-0.47920095920562744,
0.14236143231391907,
0.0473594143986702,
-0.06619200110435486,
0.07064653187990189,
0.4086326062679291,
-0.050462812185287476,
0.293843150138855,
-0.20238721370697021,
0.30721816420555115,
-0.09485258907079697,
0.0008257664740085602,
0.08534709364175797,
-0.09316708147525787,
-0.0026092813350260258,
0.14635777473449707,
-0.03688671439886093,
-0.23986946046352386,
-0.20745888352394104,
-0.08613358438014984,
0.0731799304485321,
-0.008196555078029633,
0.16518031060695648,
0.024237215518951416,
0.09530363976955414,
0.45525240898132324,
-0.15042491257190704,
-0.06395994871854782,
-0.41666385531425476,
0.19386941194534302,
-0.33354660868644714,
-0.28590890765190125,
-0.2267332524061203,
-0.22947955131530762,
0.24978125095367432,
0.37177491188049316,
-0.30562257766723633,
-0.19610603153705597,
-0.060211747884750366,
0.22527745366096497,
-0.08177085220813751,
-0.04250311106443405,
0.20502713322639465,
-0.12811166048049927,
0.08895240724086761,
-0.14572131633758545,
-0.1033765971660614,
0.06909658014774323,
-0.24257299304008484,
0.354399710893631,
0.2895647883415222,
0.5595618486404419,
0.1378503441810608,
0.9526206851005554,
0.4625445604324341,
-0.15118767321109772,
0.2041899859905243,
0.008010821416974068,
-0.1384083479642868,
-0.0857749953866005,
-0.38426414132118225,
0.21528291702270508,
-0.2100381851196289,
-0.3123049736022949,
0.16608025133609772,
-0.21496987342834473,
-0.10470371693372726,
0.08273191750049591,
0.09725388884544373,
-0.008991707116365433,
-0.1037503257393837,
0.17559745907783508,
-0.5570783615112305,
0.19041576981544495,
-0.1468602865934372,
0.2426726222038269,
-0.28692278265953064,
-0.12588286399841309,
-0.03696582838892937,
0.04244406148791313,
0.2459217607975006,
0.05157385766506195,
-0.18931080400943756,
0.019086694344878197,
-0.6127884984016418,
0.3754480481147766,
0.1767861396074295,
0.6406635642051697,
0.1874254047870636,
-0.11556415259838104,
0.1879221349954605,
0.004915801342576742,
0.7799481749534607,
-0.10748805850744247,
-0.239838644862175,
-0.0036271754652261734,
-0.1669648140668869,
-0.7163997292518616,
-0.4133671820163727,
-0.14694011211395264,
0.77519291639328,
0.1555386781692505,
-0.07514587044715881,
-0.13946300745010376,
-0.03318018093705177,
0.19412203133106232,
0.07339277863502502,
-0.2068856954574585,
-0.16901355981826782,
-0.11875489354133606,
-0.3793283700942993,
-0.0894913375377655,
-0.2840989828109741,
0.05170012265443802,
0.1906181126832962,
-0.08544157445430756,
0.061272915452718735,
-0.26140856742858887,
-0.014388804323971272,
0.05835496634244919,
-0.08949853479862213,
0.16433903574943542,
-0.21373054385185242,
0.21244372427463531,
-0.01221107691526413,
0.2840583920478821,
0.4879262149333954,
0.2832310199737549,
-0.003564361482858658,
-0.5100498795509338,
0.2887410819530487,
-0.18306869268417358,
0.037848375737667084,
0.206184983253479,
-0.18861037492752075,
0.08036136627197266,
-0.10132221132516861,
-0.021395914256572723,
-0.2109726220369339,
-0.09348899126052856,
0.30206289887428284,
0.05301246792078018,
-0.6308019757270813,
-0.5626428723335266,
0.17281195521354675,
0.26806068420410156,
0.05268029868602753,
0.6681538224220276,
-0.398509681224823,
-0.2715950012207031,
0.2777000665664673,
0.08388363569974899,
0.726750910282135,
0.14852535724639893,
-0.05574744567275047,
0.23261487483978271,
0.20901606976985931,
0.01867607980966568,
0.3115614652633667,
0.2369667887687683,
-0.3453316390514374,
-0.22724434733390808,
-0.02699163928627968,
-0.1897990107536316,
0.12217752635478973,
0.18264375627040863,
-0.06328204274177551,
0.33182409405708313,
-0.14365991950035095,
0.04598004370927811,
0.12700724601745605,
-0.12689277529716492,
-0.2129749208688736,
-0.13387902081012726,
0.09565151482820511,
0.08511894941329956,
0.0057659633457660675,
0.25649014115333557,
-0.17285260558128357,
-0.09265807271003723,
0.06687942147254944,
-0.15552449226379395,
-0.2618391513824463,
0.04439011216163635,
-0.22300012409687042,
0.0985845997929573,
0.24561847746372223,
-0.5232536792755127,
0.05012284591794014,
0.21589377522468567,
0.35222989320755005,
-0.36277255415916443,
-0.002662837505340576,
-0.029420074075460434,
0.11824321746826172,
-0.023342344909906387,
-0.20290380716323853,
-0.20772269368171692,
0.48709636926651,
0.040551066398620605,
0.09955159574747086,
0.3205989897251129,
0.07133407145738602,
-0.46810078620910645,
-0.2282387614250183,
0.2966572046279907,
0.4771985411643982,
-0.5392909049987793,
-0.23196983337402344,
-0.2508276700973511,
-0.2199193835258484,
-0.23634323477745056,
0.010444886051118374,
0.020688988268375397,
-0.28768229484558105,
0.1941114068031311,
-0.1743820309638977,
-0.12590765953063965,
0.0919264629483223,
0.5244767069816589,
0.3316210210323334,
-0.04920849949121475,
0.4610217213630676,
0.12727825343608856,
-0.0780189260840416,
0.017299767583608627,
-0.03379501402378082,
0.2742300033569336,
-0.6040000319480896,
0.3320976197719574,
-0.30196505784988403,
0.5657225251197815,
-0.04777506738901138,
0.32334020733833313,
0.01458127424120903,
0.06453468650579453,
-0.35752609372138977,
-0.25253164768218994,
-0.26160043478012085,
-0.10557249188423157,
0.018310174345970154,
0.2605783939361572,
0.05244320631027222,
0.12131454050540924,
0.07276538014411926,
-0.08296661823987961,
-0.1959933638572693,
-0.18018510937690735,
-0.020595338195562363,
0.16172830760478973,
0.15081731975078583,
0.062018342316150665,
-0.10457278043031693,
0.33127424120903015,
-0.05368247628211975,
0.406328022480011,
0.019925137981772423,
-0.15047305822372437,
-0.02763255126774311,
0.16993491351604462,
0.060521457344293594,
-0.1047077551484108,
-0.16922327876091003,
-0.20600128173828125,
0.0063541848212480545,
-0.06021177023649216,
0.28949958086013794,
0.24646034836769104,
0.03991056606173515,
0.14236153662204742,
0.3173554539680481,
0.04318352788686752,
-0.08609473705291748,
0.09589559584856033,
0.10156185925006866,
0.33742648363113403,
0.1774802803993225,
0.13566851615905762,
0.11205056309700012,
-0.1733807474374771,
-0.3201330602169037,
0.12381120026111603,
0.2855197787284851,
0.22080710530281067,
-0.06243341416120529,
-0.5807866454124451,
0.12318253517150879,
0.023672865703701973,
0.1875419318675995,
0.36308377981185913,
-0.36316990852355957,
-0.10949811339378357,
0.0990886241197586,
0.055639028549194336,
0.05120860040187836,
-0.07024826109409332,
-0.18324792385101318,
0.03339751064777374,
0.02265729382634163,
0.2685617506504059,
-0.08713935315608978,
-0.2271844893693924,
0.16491277515888214,
-0.01105725858360529,
0.3474285900592804,
-0.13776111602783203,
0.10774889588356018,
0.3673093616962433,
0.15318769216537476,
0.019503522664308548,
0.32878270745277405,
0.07383745908737183,
0.06217676028609276,
0.45361632108688354,
0.04338522627949715,
0.6263985633850098,
0.31339502334594727,
-0.26988524198532104,
0.10481724888086319,
-0.35972392559051514,
-0.13157635927200317,
-0.06444630026817322,
0.14289362728595734,
0.2984362542629242,
0.07192469388246536,
0.462848037481308,
-0.1762639880180359,
-0.3152387738227844,
0.04875849932432175,
-0.2423640936613083,
-0.08563856035470963,
-0.11423979699611664,
-0.39307844638824463,
-0.19821129739284515,
0.23661571741104126,
-0.027726858854293823,
-0.09085862338542938,
-0.012065522372722626,
0.18862023949623108,
-0.1014319360256195,
-0.20595736801624298,
-0.585743248462677,
-0.1734381914138794,
0.28391221165657043,
-0.06240227073431015,
-0.12223006784915924,
0.15278328955173492,
0.12455008924007416,
0.15628205239772797,
0.15071991086006165,
0.30550292134284973,
0.49859103560447693,
0.5325033664703369,
-0.10812878608703613,
0.10503102093935013,
-0.15050731599330902,
-0.06871170550584793,
-0.015781817957758904,
0.1756822168827057,
-0.1252216398715973,
-0.1440994143486023,
0.40513673424720764,
0.06611455976963043,
-0.06067273020744324,
0.39414605498313904,
0.32217732071876526,
0.0434572659432888,
-0.2341540902853012,
0.11431542783975601,
-0.12785907089710236,
0.06544721871614456,
-0.13820335268974304,
0.015658073127269745,
-0.3902929425239563,
-0.05954219400882721,
0.3030413091182709,
-0.3966253697872162,
0.11297603696584702,
-0.038932349532842636,
0.026305396109819412,
-0.4196701943874359,
0.37585869431495667,
0.3221396505832672,
0.17387855052947998,
-0.22130170464515686,
-0.14026804268360138,
-0.10099625587463379,
0.1792585551738739,
-0.24928808212280273,
0.11362747848033905,
-0.04608003422617912,
0.31027430295944214,
-0.10725928097963333,
0.13170018792152405,
0.19803005456924438,
0.0027528945356607437,
-0.06394947320222855,
0.7769203186035156,
-0.2023662030696869,
-0.40613994002342224,
0.004258468747138977,
0.08911857008934021,
0.06590470671653748,
-0.4869764447212219,
-0.0633901059627533,
-0.09672964364290237,
0.03900192677974701,
-0.10394339263439178,
-0.2570982575416565,
0.2701433598995209,
-0.010822951793670654,
0.32186323404312134,
0.1759914606809616,
0.08218245208263397,
0.04720458388328552,
-0.03934674337506294,
-0.47644108533859253,
-0.03581380471587181,
-0.09212102741003036,
0.11862216889858246,
0.09736473858356476,
0.29489797353744507,
0.013729291036725044,
-0.13386715948581696,
-0.259808212518692,
0.3552679121494293,
0.37222999334335327,
0.06365114450454712,
-0.34397512674331665,
0.29255765676498413,
-0.40092146396636963,
0.18285296857357025,
0.01691942662000656,
0.32568857073783875,
0.2241053730249405,
0.3691232204437256,
-0.289265900850296,
-0.32300350069999695,
0.5461326837539673,
-0.8041626214981079,
-0.3581659197807312,
0.01871519535779953,
-0.12052157521247864,
-0.007166504859924316,
-0.08189427852630615,
-0.370540589094162,
0.08378960937261581,
0.37559524178504944,
-0.10939643532037735,
0.031631674617528915,
0.0740496814250946,
0.08921746909618378,
0.1829015016555786,
-0.08855533599853516,
0.17104263603687286,
0.20660609006881714,
-0.08259209990501404,
0.28093746304512024,
-0.3231046199798584
] |
https://github.com/huggingface/datasets/issues/2573 | Finding right block-size with JSON loading difficult for user | This was actually a second error arising from a too small block-size in the json reader.
Finding the right block size is difficult for the layman user | As reported by @thomwolf, while loading a JSON Lines file with "json" loading script, he gets
> json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 383)
| 27 | Finding right block-size with JSON loading difficult for user
As reported by @thomwolf, while loading a JSON Lines file with "json" loading script, he gets
> json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 383)
This was actually a second error arising from a too small block-size in the json reader.
Finding the right block size is difficult for the layman user | [
0.0956067144870758,
0.0020216554403305054,
-0.22474892437458038,
0.4068727493286133,
0.13413375616073608,
-0.08703847229480743,
0.35157832503318787,
0.39596956968307495,
0.5053708553314209,
0.4565081000328064,
0.2659343183040619,
-0.09846653044223785,
0.02246052958071232,
-0.06383895874023438,
-0.03797755762934685,
-0.25689345598220825,
-0.2618602216243744,
0.2319747656583786,
0.15688742697238922,
0.3039904236793518,
-0.19976168870925903,
0.26654252409935,
0.10622777044773102,
-0.160910502076149,
0.22362327575683594,
0.05875157564878464,
0.09143214672803879,
0.09598608314990997,
-0.07119335234165192,
-0.4359495937824249,
-0.04470950365066528,
-0.11516888439655304,
-0.07432761788368225,
0.4498322606086731,
-0.00009959172894014046,
0.02498946338891983,
0.34735411405563354,
-0.07285018265247345,
-0.44210419058799744,
-0.12001197040081024,
-0.06040021777153015,
-0.5030117630958557,
0.20351581275463104,
-0.19933679699897766,
-0.021843455731868744,
-0.13103166222572327,
-0.06684178113937378,
-0.10651157051324844,
0.4629110097885132,
0.12208787351846695,
0.3715202212333679,
-0.23770055174827576,
0.04564459249377251,
0.036153394728899,
0.23812147974967957,
0.06372145563364029,
0.041167519986629486,
0.3781582713127136,
0.35164183378219604,
0.5234598517417908,
0.10953327268362045,
0.06754343211650848,
-0.07116946578025818,
-0.02982204034924507,
0.08291525393724442,
-0.3186948597431183,
0.281724214553833,
-0.04850384593009949,
0.19416764378547668,
0.24298310279846191,
0.48659002780914307,
0.4166164696216583,
-0.04745642840862274,
-0.3242161273956299,
0.03228501230478287,
0.1813373863697052,
0.3077040910720825,
0.0795370563864708,
-0.2536924183368683,
-0.02264278754591942,
-0.26518920063972473,
-0.06480739265680313,
-0.026415757834911346,
-0.03692566603422165,
-0.048568245023489,
-0.09895145893096924,
-0.17258892953395844,
-0.034095026552677155,
0.1524479240179062,
-0.18617726862430573,
-0.02815278246998787,
-0.10803884267807007,
-0.3090914785861969,
-0.06386642158031464,
0.04730215668678284,
-0.17213284969329834,
0.17239320278167725,
-0.46169939637184143,
0.07376024127006531,
0.01646248809993267,
0.5296996831893921,
0.13096407055854797,
0.12423260509967804,
0.0838947594165802,
0.177636981010437,
-0.008172929286956787,
-0.03590920567512512,
-0.19537745416164398,
0.14943203330039978,
0.276327520608902,
0.17678718268871307,
-0.09238050132989883,
-0.27317601442337036,
-0.2625053822994232,
-0.23824670910835266,
0.04242948442697525,
-0.08535517752170563,
-0.13233007490634918,
-0.008692000061273575,
0.22002141177654266,
-0.42939746379852295,
-0.0551883690059185,
0.06492917984724045,
0.17276521027088165,
0.06872755289077759,
0.2640412151813507,
0.21099387109279633,
-0.03500770032405853,
-0.10697945207357407,
-0.07966692000627518,
-0.14545565843582153,
0.09867937862873077,
0.11205938458442688,
-0.19248466193675995,
0.2174406498670578,
0.14878356456756592,
0.14837120473384857,
-0.15160943567752838,
-0.3099972605705261,
-0.3423228859901428,
0.14623886346817017,
0.06353099644184113,
-0.13485848903656006,
0.26501402258872986,
0.1864119917154312,
-0.10658426582813263,
-0.2369069904088974,
-0.12289323657751083,
-0.18005681037902832,
0.2556235194206238,
-0.22079524397850037,
-0.12687745690345764,
0.02428019419312477,
0.34630295634269714,
0.02423413097858429,
0.14293146133422852,
-0.16648882627487183,
-0.06882171332836151,
0.002722613513469696,
-0.17324310541152954,
0.077659010887146,
-0.22820495069026947,
0.04481169208884239,
-0.20763751864433289,
-0.12216223776340485,
0.16344106197357178,
-0.37511491775512695,
-0.11200679838657379,
0.19691675901412964,
-0.05364779755473137,
0.05949919670820236,
0.30591654777526855,
-0.2070637345314026,
0.28041496872901917,
-0.08690167218446732,
-0.11960145831108093,
0.29146602749824524,
0.11734367907047272,
-0.2984393239021301,
0.5185743570327759,
-0.12997318804264069,
0.24125392735004425,
0.2093472182750702,
-0.029225407168269157,
0.1271212100982666,
0.005695583298802376,
0.3884541690349579,
0.2863803505897522,
0.14387992024421692,
0.25960394740104675,
-0.30904728174209595,
-0.11996501684188843,
0.0019173435866832733,
0.14288026094436646,
-0.024880025535821915,
-0.2754836976528168,
-0.09846340864896774,
-0.007682524621486664,
0.12415756285190582,
-0.22618988156318665,
-0.08081760257482529,
0.22298401594161987,
-0.0063506923615932465,
-0.19714690744876862,
0.18225164711475372,
0.2619440257549286,
-0.16770943999290466,
0.02420642226934433,
-0.05061137676239014,
-0.20763900876045227,
0.055760521441698074,
0.012183230370283127,
-0.07248062640428543,
-0.1452801525592804,
0.14707143604755402,
0.20623482763767242,
0.30159738659858704,
0.11803217232227325,
0.12322334945201874,
-0.21879887580871582,
0.10078363120555878,
0.06694795191287994,
0.07897986471652985,
0.04601769149303436,
-0.21729905903339386,
0.04093054682016373,
-0.056874871253967285,
-0.0933200940489769,
0.2606043219566345,
-0.08125900477170944,
-0.028413161635398865,
-0.3079862892627716,
-0.2069389522075653,
0.0034056827425956726,
0.14636008441448212,
-0.0012321323156356812,
-0.1660548448562622,
-0.17169509828090668,
-0.014264462515711784,
0.45215198397636414,
0.16409730911254883,
0.3425687253475189,
0.048832155764102936,
-0.10352719575166702,
-0.019207462668418884,
0.33293288946151733,
-0.1527852863073349,
0.09345564991235733,
-0.014550819993019104,
-0.299795001745224,
0.4019199311733246,
0.04138290509581566,
0.1222536489367485,
-0.03216301649808884,
0.3996908962726593,
0.5543022155761719,
-0.04446173086762428,
-0.02626371942460537,
-0.16007797420024872,
-0.04892679303884506,
0.45733872056007385,
-0.22589515149593353,
0.007173895835876465,
0.35647299885749817,
0.13435286283493042,
-0.1963520050048828,
-0.10522273182868958,
0.11822536587715149,
0.129902184009552,
0.18883070349693298,
-0.061068739742040634,
-0.14877258241176605,
0.40337803959846497,
-0.47651469707489014,
0.1759026199579239,
-0.05827866494655609,
0.19233031570911407,
0.22823694348335266,
0.16661714017391205,
-0.12964299321174622,
-0.17034056782722473,
-0.2919541597366333,
-0.1598019152879715,
0.14145970344543457,
-0.21601182222366333,
-0.03839121013879776,
-0.1749042421579361,
0.017143677920103073,
0.11600731313228607,
-0.19411586225032806,
0.06344692409038544,
-0.2764543294906616,
0.18648408353328705,
0.08579973876476288,
-0.38645604252815247,
-0.23146259784698486,
-0.13422465324401855,
0.46295905113220215,
-0.1204368993639946,
0.38890737295150757,
-0.2953087091445923,
-0.08413781970739365,
-0.22624966502189636,
0.2532868981361389,
0.4552178680896759,
-0.09191267937421799,
0.08161299675703049,
-0.27492082118988037,
0.0461801253259182,
0.34711217880249023,
-0.0816962942481041,
-0.010790430009365082,
0.022841252386569977,
-0.060049839317798615,
0.05603056401014328,
0.44968587160110474,
0.0836113765835762,
0.03022129088640213,
-0.1500125378370285,
-0.07448292523622513,
-0.29617199301719666,
0.26502254605293274,
-0.0021037717815488577,
-0.10489820688962936,
-0.3383948504924774,
-0.20610326528549194,
0.10786856710910797,
-0.3975124955177307,
0.4412335753440857,
0.2321576327085495,
0.21205200254917145,
-0.3862466514110565,
0.21985948085784912,
0.15081672370433807,
0.18895263969898224,
0.315915048122406,
-0.2085714191198349,
-0.4334498643875122,
0.11122356355190277,
-0.23296627402305603,
-0.42280474305152893,
0.13002732396125793,
0.13399025797843933,
0.04986106604337692,
-0.2667621374130249,
-0.4891364574432373,
0.30037546157836914,
-0.0521569699048996,
-0.276708722114563,
-0.18896158039569855,
-0.1978447288274765,
0.24480198323726654,
0.00817355141043663,
-0.1918315589427948,
0.015229396522045135,
-0.23566359281539917,
0.006149910390377045,
0.1423393338918686,
0.14802592992782593,
-0.18868395686149597,
0.6826390027999878,
-0.010387914255261421,
0.04462328925728798,
0.13030706346035004,
0.07064437121152878,
0.06574643403291702,
0.3156469464302063,
0.024076372385025024,
-0.285340279340744,
0.3214404881000519,
0.19704636931419373,
0.1434585452079773,
-0.0817008838057518,
0.28952786326408386,
0.037153251469135284,
-0.21428191661834717,
-0.1410541534423828,
-0.42892366647720337,
-0.2734736502170563,
-0.2403489351272583,
0.3684610426425934,
-0.05897917598485947,
-0.39681729674339294,
-0.21048910915851593,
0.20315179228782654,
-0.1731843501329422,
0.0008148802444338799,
-0.1152246743440628,
0.13869178295135498,
0.19254934787750244,
-0.005893797148019075,
-0.17098206281661987,
-0.07648857682943344,
-0.2906217575073242,
0.5571377277374268,
0.0853896513581276,
0.053354185074567795,
-0.01645919680595398,
-0.06851378828287125,
0.1735537201166153,
-0.31878361105918884,
0.35565733909606934,
0.057547882199287415,
-0.07625807076692581,
0.04245400056242943,
0.0448651984333992,
-0.2691236436367035,
-0.07342337816953659,
0.07145051658153534,
0.0639277920126915,
0.33731651306152344,
0.09444619715213776,
-0.3351975977420807,
0.043435920029878616,
0.0778740718960762,
0.03352087363600731,
-0.09207659959793091,
-0.43553707003593445,
-0.19809892773628235,
-0.33077698945999146,
-0.3583379089832306,
0.02883101999759674,
-0.11522697657346725,
0.1873101145029068,
0.0975572019815445,
-0.4058391749858856,
0.26246190071105957,
-0.19722452759742737,
-0.05974079668521881,
0.2077489197254181,
-0.09002737700939178,
-0.1461898684501648,
0.060645367950201035,
0.05566475912928581,
0.21915490925312042,
0.42329713702201843,
0.593758761882782,
0.36189234256744385,
0.14258718490600586,
0.3213862180709839,
-0.20365943014621735,
0.21215996146202087,
0.28896287083625793,
0.12376745045185089,
-0.05426105111837387,
-0.025347795337438583,
0.37096524238586426,
0.1296095997095108,
-0.2740955054759979,
0.08584941178560257,
-0.030942540615797043,
-0.11933691054582596,
-0.16538375616073608,
0.24414947628974915,
-0.26415887475013733,
0.18165718019008636,
0.19782042503356934,
-0.2616368532180786,
-0.13938008248806,
0.39201587438583374,
0.012142695486545563,
0.9516813158988953,
0.011781368404626846,
-0.04072440788149834,
0.2059565782546997,
-0.6339952945709229,
0.2703419625759125,
-0.5762808322906494,
0.09212050586938858,
-0.2677564322948456,
0.4031207263469696,
0.09431039541959763,
-0.10345518589019775,
0.044192202389240265,
0.05012907832860947,
-0.29258617758750916,
-0.09534016996622086,
-0.2573271095752716,
-0.19213925302028656,
-0.3197346329689026,
0.37545046210289,
-0.3018947243690491,
-0.09327340126037598,
-0.20339654386043549,
0.2914934754371643,
-0.13134276866912842,
0.005948040634393692,
-0.10167521238327026,
-0.09612972289323807,
-0.2755261957645416,
-0.30083537101745605,
-0.2541140913963318,
0.18009579181671143,
0.07812246680259705,
0.026045212522149086,
0.19262588024139404,
-0.07246154546737671,
-0.011843043379485607,
-0.33539578318595886,
-0.0861085057258606,
0.14241202175617218,
-0.07682902365922928,
0.2569776773452759,
-0.24752923846244812,
-0.10778692364692688,
0.0033485060557723045,
0.20063887536525726,
0.16158832609653473,
-0.32082781195640564,
-0.1810963898897171,
0.07098881155252457,
-0.11862428486347198,
-0.12176153808832169,
-0.14463315904140472,
-0.0039856284856796265,
-0.4416051506996155,
-0.3048276901245117,
-0.36904025077819824,
-0.14542312920093536,
-0.06766603887081146,
0.017794813960790634,
0.3172253370285034,
0.1601400226354599,
0.06667566299438477,
-0.23746734857559204,
0.17744775116443634,
-0.25496208667755127,
-0.2523486614227295,
-0.08094619959592819,
0.23650076985359192,
-0.0279068760573864,
0.36305925250053406,
0.013112392276525497,
-0.2868366837501526,
-0.30171698331832886,
0.05834867060184479,
0.3081488013267517,
-0.0034957975149154663,
0.14878274500370026,
-0.08472877740859985,
-0.16034114360809326,
0.09760420024394989,
0.09242509305477142,
0.13856388628482819,
0.06123949959874153,
0.21694667637348175,
-0.32123950123786926,
-0.24780182540416718,
0.20879100263118744,
0.01371680200099945,
0.21620716154575348,
0.007369153201580048,
-0.04637162387371063,
-0.09441903233528137,
0.211732417345047,
-0.41288623213768005,
-0.0015196488238871098,
-0.13172775506973267,
-0.05688878148794174,
-0.36764606833457947,
-0.0979963019490242,
-0.12116990983486176,
0.08545050024986267,
0.27585989236831665,
0.316331148147583,
-0.19313180446624756,
-0.34254851937294006,
-0.04585156589746475,
0.023578718304634094,
0.059858180582523346,
0.01991404965519905,
-0.08805694431066513,
0.004693014547228813,
-0.031283244490623474,
-0.0007756436243653297,
0.16499534249305725,
-0.20546779036521912,
-0.07883729040622711,
-0.07329712063074112,
0.0996498316526413,
0.016274340450763702,
-0.05115015059709549,
0.2448519617319107,
-0.13587415218353271,
0.6824114322662354,
-0.08615674823522568,
0.04785925894975662,
-0.06142633408308029,
0.12099213898181915,
-0.2335134893655777,
0.2943442761898041,
0.057389695197343826,
0.23902055621147156,
0.3425365686416626,
-0.08673490583896637,
0.2997989058494568,
-0.17942699790000916,
-0.13639508187770844,
0.35002487897872925,
-0.2331956923007965,
0.1883658617734909,
-0.14897897839546204,
0.3308045268058777,
0.03687778860330582,
-0.03386002033948898,
0.06003621593117714,
-0.004537519998848438,
-0.19606226682662964,
0.08690224587917328,
-0.046310581266880035,
-0.20426151156425476,
-0.038436368107795715,
0.15734824538230896,
0.11589552462100983,
-0.003534449264407158,
-0.24111713469028473,
0.03615940362215042,
-0.386270135641098,
-0.18311677873134613,
0.13989220559597015,
-0.08151127398014069,
0.37401726841926575,
0.05272930860519409,
-0.04174666851758957,
-0.14098791778087616,
0.16492876410484314,
0.34729182720184326,
-0.22075659036636353,
-0.33896389603614807,
0.3110888600349426,
0.3915055990219116,
-0.11169654130935669,
0.29048246145248413,
0.3967684507369995,
-0.26457175612449646,
0.005297868046909571,
0.30958810448646545,
-0.44202902913093567,
0.06611009687185287,
-0.2967107892036438,
-0.04673894867300987,
-0.3116157054901123,
-0.12246137112379074,
-0.2448618859052658,
0.16460923850536346,
-0.06350761651992798,
-0.026844553649425507,
-0.23675906658172607,
0.2867298424243927,
-0.2356090396642685,
0.08392252773046494,
0.0872335284948349,
-0.308682382106781,
0.0986693874001503,
-0.3815234899520874,
0.19713474810123444,
0.27082788944244385,
-0.11814706027507782,
0.2543818950653076,
-0.1871216744184494,
0.36448779702186584,
0.2129335254430771,
-0.019781477749347687,
-0.07838292419910431,
-0.07133747637271881,
-0.12702345848083496,
-0.17732767760753632,
0.47213903069496155,
0.4094125032424927,
0.0881335586309433,
0.12953133881092072,
0.3142966330051422,
-0.34902113676071167,
0.1909383237361908,
0.12903638184070587,
0.018768087029457092,
-0.1486462503671646,
0.05498524010181427,
-0.25352123379707336,
-0.15470251441001892,
-0.2582298517227173,
-0.3317994177341461,
-0.3616252541542053,
-0.3557005822658539,
-0.21504932641983032,
0.024076217785477638,
0.07568775862455368,
-0.05657019093632698,
0.15219466388225555,
-0.011786751449108124,
0.40910229086875916,
0.08521747589111328,
-0.11887290328741074,
0.19340090453624725,
-0.08156077563762665,
-0.04504837095737457,
0.17816303670406342,
-0.3505959212779999,
0.039382174611091614,
-0.014668000862002373,
0.11550253629684448,
0.17725563049316406,
-0.013780530542135239,
0.19609932601451874,
0.3159482181072235,
-0.058847904205322266,
-0.04660335183143616,
-0.23276343941688538,
0.002432834357023239,
0.4833304286003113,
-0.15353532135486603,
-0.051348574459552765,
-0.08875986933708191,
0.26282259821891785,
-0.28043505549430847,
0.27327248454093933,
-0.07505248486995697,
0.02090936154127121,
0.05706345662474632,
0.2809638977050781,
0.29371845722198486,
0.0545734167098999,
0.340873658657074,
-0.11816437542438507,
-0.20743155479431152,
0.014819607138633728,
-0.04825519025325775,
0.09121619910001755,
0.3455091118812561,
0.11855101585388184,
0.3530785143375397,
-0.011294212192296982,
0.09725461900234222,
-0.06529007107019424,
0.10413377732038498,
-0.5952878594398499,
0.07623161375522614,
-0.15693718194961548,
-0.10087268799543381,
-0.14793458580970764,
0.21448367834091187,
0.18926669657230377,
0.07806825637817383,
0.03988543525338173,
-0.22508123517036438,
-0.23691505193710327,
0.12933172285556793,
0.23316824436187744,
0.10529235005378723,
-0.18173691630363464,
0.2494729906320572,
0.016226276755332947,
-0.24580013751983643,
-0.007423983886837959,
-0.4358263909816742,
0.23348510265350342,
0.2724747061729431,
-0.07109076529741287,
0.031200218945741653,
0.25234079360961914,
0.03913246840238571,
-0.024858875200152397,
-0.1025630384683609,
0.32518818974494934,
0.10133771598339081,
0.033928126096725464,
-0.19108349084854126,
-0.18689510226249695
] |
https://github.com/huggingface/datasets/issues/2572 | Support Zstandard compressed files | I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
```
!pip install zstandard
from datasets import load_dataset
lds = load_dataset(
"json",
data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
split="train",
streaming=True,
)
WARNING:datasets.builder:Using custom data configuration default-a1d9e8eaedd958cd
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[<ipython-input-12-5b4fdcb8e6d5>](https://localhost:8080/#) in <module>
6 )
7
----> 8 next(iter(law_dataset_streamed))
17 frames
[/usr/local/lib/python3.8/dist-packages/fsspec/core.py](https://localhost:8080/#) in get_compression(urlpath, compression)
485 compression = infer_compression(urlpath)
486 if compression is not None and compression not in compr:
--> 487 raise ValueError("Compression type %s not supported" % compression)
488 return compression
489
ValueError: Compression type zstd not supported
``` | Add support for Zstandard compressed files: https://facebook.github.io/zstd/ | 115 | Support Zstandard compressed files
Add support for Zstandard compressed files: https://facebook.github.io/zstd/
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook.
```
!pip install zstandard
from datasets import load_dataset
lds = load_dataset(
"json",
data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
split="train",
streaming=True,
)
WARNING:datasets.builder:Using custom data configuration default-a1d9e8eaedd958cd
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[<ipython-input-12-5b4fdcb8e6d5>](https://localhost:8080/#) in <module>
6 )
7
----> 8 next(iter(law_dataset_streamed))
17 frames
[/usr/local/lib/python3.8/dist-packages/fsspec/core.py](https://localhost:8080/#) in get_compression(urlpath, compression)
485 compression = infer_compression(urlpath)
486 if compression is not None and compression not in compr:
--> 487 raise ValueError("Compression type %s not supported" % compression)
488 return compression
489
ValueError: Compression type zstd not supported
``` | [
-0.43376031517982483,
-0.4193226099014282,
-0.04824603721499443,
0.35144197940826416,
0.29220521450042725,
0.06123504787683487,
0.14015088975429535,
0.21787294745445251,
0.17336508631706238,
0.211317777633667,
-0.32797950506210327,
0.11098901927471161,
-0.1350102722644806,
0.3161154091358185,
-0.23404301702976227,
-0.022876441478729248,
-0.049460895359516144,
0.4081653952598572,
0.34538471698760986,
0.20574955642223358,
-0.14943015575408936,
0.4160933792591095,
-0.23012074828147888,
0.12992985546588898,
0.030648333951830864,
-0.05424777418375015,
0.1281740367412567,
0.1750299334526062,
-0.15255707502365112,
-0.3891962468624115,
0.34087371826171875,
0.04459130018949509,
0.52939772605896,
0.3957953453063965,
-0.00012410992349032313,
0.07366043329238892,
0.46404117345809937,
-0.18732565641403198,
-0.15422742068767548,
-0.38391196727752686,
0.33269232511520386,
-0.3785664737224579,
-0.12862421572208405,
-0.012816667556762695,
-0.4278493821620941,
-0.42960384488105774,
-0.12817193567752838,
-0.1343851089477539,
0.6177662014961243,
0.31713181734085083,
0.07736338675022125,
0.3089335858821869,
0.07456125319004059,
-0.17314353585243225,
0.14934149384498596,
-0.11702606081962585,
-0.040746234357357025,
0.3173011243343353,
0.3983163833618164,
0.15824855864048004,
0.29349061846733093,
-0.03831278532743454,
0.07771988213062286,
-0.29662975668907166,
0.16010582447052002,
0.02371060475707054,
0.3053559958934784,
-0.27765029668807983,
0.0653306394815445,
0.13839749991893768,
0.6147065758705139,
-0.03252162039279938,
-0.2400425523519516,
-0.20811793208122253,
0.02230193465948105,
-0.128434956073761,
0.0982554480433464,
0.32533809542655945,
-0.202985018491745,
0.33561721444129944,
-0.1829470694065094,
-0.11535274982452393,
-0.273215651512146,
0.08914694935083389,
0.06451009213924408,
-0.08805088698863983,
-0.34215790033340454,
0.1035248190164566,
0.50282883644104,
-0.1688208431005478,
0.06861047446727753,
-0.14158177375793457,
0.13047488033771515,
0.02658684551715851,
-0.23603157699108124,
-0.2524627447128296,
-0.29081350564956665,
-0.03746383637189865,
0.17225009202957153,
0.06565554440021515,
0.03258054703474045,
0.009606651961803436,
0.13070876896381378,
0.024090684950351715,
0.1965223252773285,
0.05883249267935753,
0.25299254059791565,
-0.43475738167762756,
0.17965659499168396,
0.24945609271526337,
0.4711844325065613,
-0.14796686172485352,
-0.2950601875782013,
-0.3504244387149811,
-0.10211685299873352,
-0.06290263682603836,
0.28098416328430176,
-0.11765222251415253,
-0.2795983552932739,
-0.09109867364168167,
-0.07802441716194153,
0.12090371549129486,
0.14711366593837738,
0.47152209281921387,
0.043357428163290024,
0.07052768766880035,
0.004393652081489563,
0.1576511710882187,
0.010305684059858322,
-0.3294791281223297,
0.008770868182182312,
0.03849012404680252,
0.06326928734779358,
-0.014648543670773506,
0.19305749237537384,
-0.5622583627700806,
0.13697174191474915,
0.129466250538826,
0.19801437854766846,
0.03673636168241501,
-0.010008323937654495,
-0.08390043675899506,
0.09701573103666306,
0.23558343946933746,
0.19644173979759216,
0.004241151735186577,
0.14951051771640778,
-0.3199571967124939,
-0.27562907338142395,
0.35129737854003906,
-0.532067596912384,
-0.41567331552505493,
-0.20480719208717346,
0.02193473093211651,
-0.1452021300792694,
0.15026162564754486,
-0.09271102398633957,
0.0752655491232872,
0.19502092897891998,
-0.19846683740615845,
0.022356152534484863,
-0.13702842593193054,
-0.3113113343715668,
-0.10828182846307755,
0.4233582615852356,
0.2091883271932602,
-0.6114504337310791,
-0.14982736110687256,
-0.25321492552757263,
-0.14283236861228943,
0.24367907643318176,
0.27912378311157227,
-0.3009501099586487,
-0.07395827025175095,
-0.2691168189048767,
-0.047149237245321274,
0.2702426016330719,
-0.4003370702266693,
-0.7423338294029236,
0.27785468101501465,
0.045386798679828644,
0.17530441284179688,
-0.13228827714920044,
0.10439928621053696,
-0.08039996027946472,
-0.15514838695526123,
0.09911045432090759,
0.15523475408554077,
-0.10730396211147308,
-0.1594160497188568,
-0.2505849301815033,
-0.23754827678203583,
0.6726005673408508,
0.3311721384525299,
-0.16816557943820953,
0.15610192716121674,
0.10376809537410736,
-0.17774923145771027,
0.08810275048017502,
-0.08185432851314545,
-0.005751143209636211,
0.22541265189647675,
0.2833166718482971,
0.11709774285554886,
-0.0628819540143013,
-0.11081350594758987,
-0.4833698272705078,
0.1166568174958229,
-0.23753757774829865,
0.13319340348243713,
-0.10413022339344025,
-0.05389947444200516,
-0.3368573784828186,
-0.1121552363038063,
-0.19013968110084534,
-0.15637505054473877,
0.019985202699899673,
0.15270394086837769,
0.09823539853096008,
-0.021603349596261978,
-0.15594688057899475,
0.3798285722732544,
-0.08873531222343445,
-0.018598217517137527,
-0.4359464943408966,
0.27959829568862915,
-0.22921912372112274,
-0.13025331497192383,
0.05107834190130234,
-0.13110816478729248,
0.12816375494003296,
-0.3422708511352539,
-0.09326544404029846,
0.4421950876712799,
-0.129906564950943,
0.10941445827484131,
-0.18856963515281677,
-0.23821620643138885,
0.2832903563976288,
-0.4176344871520996,
0.00033239834010601044,
0.15903040766716003,
0.11455163359642029,
0.010749980807304382,
0.16360008716583252,
0.43147504329681396,
-0.15408821403980255,
-0.21729329228401184,
-0.13011209666728973,
-0.012670801021158695,
0.2792719304561615,
0.06835725903511047,
-0.2859804928302765,
-0.24069181084632874,
-0.01931852474808693,
-0.10538774728775024,
0.19865475594997406,
0.06961054354906082,
-0.15680915117263794,
-0.30286508798599243,
0.37529459595680237,
-0.19560807943344116,
-0.03802558034658432,
0.5137231945991516,
0.14840762317180634,
-0.09643108397722244,
0.14063294231891632,
-0.0225101076066494,
0.4374023675918579,
0.1212470605969429,
-0.42587724328041077,
0.12193337082862854,
0.23553664982318878,
-0.017516199499368668,
0.12458731234073639,
-0.1271907240152359,
0.22960524260997772,
0.3221563994884491,
-0.0030173812992870808,
0.15301458537578583,
-0.3100281059741974,
-0.08015969395637512,
-0.04764113575220108,
0.010968834161758423,
-0.2677535116672516,
-0.13333719968795776,
-0.04649743437767029,
-0.14602869749069214,
0.09628335386514664,
-0.17944258451461792,
-0.3475263714790344,
0.21831770241260529,
-0.24863119423389435,
0.21072237193584442,
0.16436725854873657,
0.2670029103755951,
-0.029693633317947388,
0.7387213706970215,
0.2926640808582306,
-0.19758480787277222,
-0.4064686894416809,
0.0357128381729126,
-0.2898630201816559,
-0.07479654252529144,
-0.07028716057538986,
-0.30093419551849365,
0.12610244750976562,
-0.3589246869087219,
-0.027416784316301346,
-0.07688264548778534,
-0.14538180828094482,
0.15547627210617065,
-0.11844727396965027,
0.35214322805404663,
0.18127024173736572,
0.24639001488685608,
0.02081877365708351,
0.07381261885166168,
0.35029223561286926,
-0.4078950881958008,
-0.06520261615514755,
0.03429876267910004,
0.19216300547122955,
-0.03398189693689346,
-0.16171671450138092,
0.019898556172847748,
-0.6019319295883179,
-0.24296723306179047,
0.03560859337449074,
-0.06416693329811096,
0.01694319024682045,
0.3623676896095276,
0.16906525194644928,
0.016027342528104782,
0.34896689653396606,
0.12627434730529785,
-0.18989460170269012,
-0.5598288774490356,
0.4160509705543518,
-0.26424217224121094,
-0.45971977710723877,
-0.05002336949110031,
0.21978898346424103,
-0.1445634812116623,
0.05914429575204849,
-0.06054691970348358,
0.016095466911792755,
-0.4367450475692749,
0.13546758890151978,
-0.34216752648353577,
-0.20833976566791534,
0.2618120312690735,
0.05799783393740654,
0.1100459098815918,
-0.205800861120224,
-0.4043753445148468,
0.12696707248687744,
0.1585230529308319,
0.4437272548675537,
0.47432586550712585,
0.3428644835948944,
0.07615947723388672,
0.16995713114738464,
0.31602743268013,
-0.08347199857234955,
0.6564676761627197,
-0.033568255603313446,
0.3965592086315155,
-0.13529735803604126,
-0.42137259244918823,
-0.21351657807826996,
-0.0020527392625808716,
-0.018518565222620964,
0.1915290504693985,
-0.039126504212617874,
0.20702232420444489,
-0.32945480942726135,
-0.20277006924152374,
-0.24170026183128357,
0.05673469975590706,
-0.11897531151771545,
0.19532589614391327,
0.08207443356513977,
-0.25077372789382935,
-0.2722075581550598,
0.015282254666090012,
-0.06639836728572845,
0.30407148599624634,
0.37617725133895874,
0.113968126475811,
0.13295499980449677,
-0.008325591683387756,
0.23210205137729645,
-0.507149338722229,
0.3420615792274475,
0.23831991851329803,
0.2994953393936157,
-0.2824936509132385,
0.26761820912361145,
-0.07275736331939697,
-0.1394251137971878,
0.867405354976654,
0.04795973002910614,
0.4655250310897827,
0.041862163692712784,
-0.2299458235502243,
-0.48161569237709045,
-0.0035402141511440277,
-0.24100634455680847,
-0.10738660395145416,
-0.053764473646879196,
0.6661068797111511,
-0.053537607192993164,
-0.23781681060791016,
-0.042587339878082275,
-0.05020787566900253,
-0.09753195196390152,
-0.16697469353675842,
-0.11472798883914948,
-0.35496753454208374,
-0.2800271511077881,
-0.22949913144111633,
0.2052704244852066,
0.46670329570770264,
0.021797049790620804,
-0.05966828763484955,
0.19700641930103302,
-0.1644318401813507,
0.1945631504058838,
0.060283783823251724,
0.3125319182872772,
-0.09843085706233978,
-0.17480583488941193,
-0.14201506972312927,
-0.014025270938873291,
0.4736454486846924,
0.5652278065681458,
0.24277682602405548,
-0.6379157900810242,
0.0626474916934967,
0.08930474519729614,
0.12820960581302643,
0.08798494935035706,
-0.2891235053539276,
-0.31036239862442017,
-0.2440427541732788,
0.36886531114578247,
-0.38456958532333374,
0.24816326797008514,
0.5098159313201904,
-0.03923928365111351,
-0.38055309653282166,
-0.07464148849248886,
0.25378653407096863,
-0.13276377320289612,
0.10269701480865479,
0.061467915773391724,
0.48443835973739624,
-0.31639981269836426,
0.21584433317184448,
0.24203461408615112,
0.9867237210273743,
-0.030387289822101593,
0.021593155339360237,
-0.009160112589597702,
-0.20273245871067047,
0.3084869682788849,
-0.2026500403881073,
-0.056883446872234344,
0.01664440706372261,
-0.3726937770843506,
-0.17183798551559448,
0.026277799159288406,
0.5384988188743591,
0.2533183693885803,
-0.41007792949676514,
0.10964500159025192,
0.1204369068145752,
0.04051660746335983,
0.1399766057729721,
0.26298460364341736,
-0.3010338246822357,
-0.11039598286151886,
-0.3731433153152466,
0.049854107201099396,
-0.17286467552185059,
0.19332006573677063,
-0.024491749703884125,
-0.2191563844680786,
-0.19312764704227448,
-0.0745486170053482,
-0.17076876759529114,
0.15184703469276428,
-0.06309529393911362,
0.07338535785675049,
0.043985068798065186,
-0.3285057246685028,
0.34997931122779846,
0.36760926246643066,
0.18565088510513306,
-0.09199395775794983,
-0.32691434025764465,
-0.03550853952765465,
-0.3078000545501709,
0.028854846954345703,
-0.20409412682056427,
-0.02103375270962715,
0.22198531031608582,
-0.08684293925762177,
-0.17784461379051208,
0.03754802048206329,
0.018328554928302765,
-0.18112102150917053,
0.08786612749099731,
-0.20330668985843658,
-0.14228835701942444,
-0.34687960147857666,
-0.41581451892852783,
-0.4796767830848694,
0.08563472330570221,
-0.03389380872249603,
0.04049677401781082,
-0.031092554330825806,
-0.16280150413513184,
-0.3428260385990143,
0.07942134141921997,
-0.28636959195137024,
0.017690418288111687,
0.42197248339653015,
-0.27449631690979004,
0.33567965030670166,
0.4154700040817261,
-0.042099568992853165,
-0.02153274044394493,
-0.027379721403121948,
0.0896906927227974,
0.1921158730983734,
-0.1338365077972412,
0.2591325342655182,
-0.024551251903176308,
-0.12519562244415283,
-0.056168943643569946,
0.544991135597229,
0.4626431465148926,
-0.08054446429014206,
0.04341142252087593,
-0.5079516172409058,
-0.2412799596786499,
-0.2225140482187271,
0.1169358491897583,
0.32327190041542053,
0.5369758009910583,
0.06307671964168549,
0.17060384154319763,
-0.22968149185180664,
-0.18423449993133545,
0.10679477453231812,
-0.07554963231086731,
0.1331964135169983,
-0.006342735141515732,
-0.08118680864572525,
0.0681367889046669,
-0.027209635823965073,
-0.05192261189222336,
0.23728395998477936,
-0.06242312490940094,
-0.1122925654053688,
-0.013335166499018669,
0.20481763780117035,
0.13848456740379333,
-0.25333985686302185,
-0.10681222379207611,
-0.0440509095788002,
-0.2376042604446411,
-0.12444567680358887,
0.12375925481319427,
0.16665753722190857,
0.06353545933961868,
0.6872041821479797,
0.02756427973508835,
-0.024090223014354706,
-0.2157180905342102,
0.2653740644454956,
-0.11279161274433136,
0.3737448453903198,
0.07950188964605331,
0.1669316291809082,
-0.04259470850229263,
-0.0632137805223465,
-0.40691685676574707,
0.18812483549118042,
0.31205618381500244,
-0.1562921702861786,
0.345008909702301,
-0.2696664333343506,
0.1357596516609192,
0.0953228622674942,
0.6142154932022095,
0.169512540102005,
-0.4465829133987427,
-0.0698993131518364,
0.1705511212348938,
0.036277685314416885,
-0.3244500756263733,
-0.2308535873889923,
0.18717031180858612,
0.07691584527492523,
-0.20539511740207672,
0.18383899331092834,
0.007953178137540817,
0.22530189156532288,
-0.08256208896636963,
-0.11671819537878036,
1.046662449836731,
0.07796955108642578,
0.17623752355575562,
0.463238388299942,
-0.09025944769382477,
0.28036460280418396,
0.08805371075868607,
0.3006206750869751,
0.2056310772895813,
0.2755514681339264,
-0.2875252366065979,
0.11061379313468933,
-0.14235249161720276,
0.3759545385837555,
0.010056927800178528,
-0.5083128809928894,
0.28940287232398987,
0.5395700931549072,
-0.14155960083007812,
0.08764916658401489,
0.026470981538295746,
0.47764939069747925,
-0.09271889925003052,
-0.43146824836730957,
-0.28108805418014526,
0.2329838126897812,
-0.17282012104988098,
-0.06972382962703705,
0.0029552802443504333,
-0.03655824437737465,
-0.13194918632507324,
0.30190879106521606,
0.15280719101428986,
-0.1708473265171051,
-0.08783179521560669,
0.29123616218566895,
-0.13174603879451752,
-0.10881631076335907,
-0.12639552354812622,
0.2940540909767151,
0.1549885869026184,
-0.25193214416503906,
0.2692842185497284,
0.22771550714969635,
-0.12460051476955414,
0.21058884263038635,
0.1046488955616951,
0.453096479177475,
0.3520086109638214,
0.08856303989887238,
0.17463919520378113,
0.01532294973731041,
-0.05010569840669632,
0.13841278851032257,
0.19680853188037872,
0.1397925466299057,
0.3085990250110626,
0.29004529118537903,
0.08786288648843765,
-0.010288350284099579,
-0.04594657942652702,
0.014007430523633957,
0.16151532530784607,
-0.49935680627822876,
-0.12921079993247986,
-0.16285502910614014,
-0.026922427117824554,
-0.09551286697387695,
-0.14660924673080444,
-0.14700305461883545,
-0.3044383227825165,
0.13315729796886444,
-0.1875912994146347,
0.26057812571525574,
0.06154699996113777,
0.03332868590950966,
-0.15693898499011993,
0.36340999603271484,
0.15142150223255157,
-0.14555490016937256,
-0.04903603345155716,
-0.11071350425481796,
-0.51539146900177,
0.042240314185619354,
0.4322090446949005,
-0.08313609659671783,
0.152657151222229,
-0.1743825376033783,
-0.05693661421537399,
0.17221304774284363,
0.06963889300823212,
0.1848037838935852,
0.12293720990419388,
-0.03946378827095032,
0.09444461762905121,
-0.034430842846632004,
0.022042468190193176,
0.2506445050239563,
0.026940729469060898,
-0.16139188408851624,
0.15773603320121765,
-0.03693559393286705,
-0.13541564345359802,
-0.14025646448135376,
-0.03095097467303276,
-0.24968144297599792,
-0.1552000492811203,
0.2957523465156555,
0.16423235833644867,
0.3521465063095093,
-0.28686121106147766,
0.24821162223815918,
0.3219086527824402,
0.3332645297050476,
-0.1543959230184555,
0.14617249369621277,
0.08114233613014221,
0.03898809105157852,
-0.2650136351585388,
0.2041439712047577,
-0.498409628868103,
0.248891681432724,
0.18403023481369019,
-0.11427775025367737,
-0.45381802320480347,
-0.08305098116397858,
0.009014628827571869,
-0.37363797426223755,
0.2564712166786194,
-0.03930538147687912,
-0.029072336852550507,
0.19249758124351501,
-0.23195531964302063,
-0.19692593812942505,
0.5523985028266907,
-0.15670211613178253,
-0.19253265857696533,
0.36011838912963867,
-0.14166200160980225,
0.0610322579741478,
-0.17689597606658936,
-0.2336665689945221,
0.05204860121011734,
0.24964527785778046,
0.09452950209379196,
-0.1349901556968689,
0.24386942386627197,
-0.12673111259937286,
-0.034928977489471436,
-0.009770046919584274,
0.5105921030044556,
0.31647932529449463,
0.011990634724497795,
0.09689313173294067,
-0.2528928518295288
] |
https://github.com/huggingface/datasets/issues/2572 | Support Zstandard compressed files | I just tried on google colab and this works:
```python
!pip install zstandard
!pip install datasets
from datasets import load_dataset
lds = load_dataset(
"json",
data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
split="train",
streaming=True,
)
next(iter(lds))
```
Can you check that you have a correct installation of `zstandard` ? | Add support for Zstandard compressed files: https://facebook.github.io/zstd/ | 42 | Support Zstandard compressed files
Add support for Zstandard compressed files: https://facebook.github.io/zstd/
I just tried on google colab and this works:
```python
!pip install zstandard
!pip install datasets
from datasets import load_dataset
lds = load_dataset(
"json",
data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
split="train",
streaming=True,
)
next(iter(lds))
```
Can you check that you have a correct installation of `zstandard` ? | [
-0.3480064272880554,
-0.1493166834115982,
-0.07931508123874664,
0.010822590440511703,
0.15576115250587463,
-0.032591402530670166,
-0.008292410522699356,
0.5053691864013672,
0.06540808081626892,
0.15173807740211487,
-0.1540279984474182,
0.28775620460510254,
-0.10321161150932312,
0.31333503127098083,
-0.17133931815624237,
0.1234079971909523,
-0.07420047372579575,
0.5137828588485718,
0.23731328547000885,
0.17290040850639343,
0.07570106536149979,
0.3015698492527008,
-0.17463940382003784,
-0.04025433957576752,
0.09964818507432938,
0.10718666762113571,
0.014812303707003593,
-0.007789142429828644,
-0.29602912068367004,
-0.3677898943424225,
0.2609541714191437,
0.12824499607086182,
0.4346585273742676,
0.49048715829849243,
-0.00011029336019419134,
0.08694839477539062,
0.32333970069885254,
-0.13429854810237885,
-0.1542767733335495,
-0.31860727071762085,
0.29649999737739563,
-0.6536368727684021,
-0.02687079645693302,
-0.0814814567565918,
-0.5147435665130615,
-0.5985851883888245,
0.06412085890769958,
0.003582242876291275,
0.5962913632392883,
0.3936368227005005,
0.2121848165988922,
0.18243283033370972,
0.10922664403915405,
-0.2798093259334564,
0.08858348429203033,
-0.17982979118824005,
-0.2736395597457886,
-0.01391163282096386,
0.3421013057231903,
0.29509398341178894,
0.2843954563140869,
0.05128762498497963,
0.03021453134715557,
-0.09854987263679504,
-0.11341413110494614,
-0.11152332276105881,
0.32616403698921204,
-0.3270037770271301,
-0.10968679934740067,
0.30473101139068604,
0.6658666729927063,
-0.173953115940094,
-0.41559654474258423,
-0.07801918685436249,
0.16297480463981628,
0.014780407771468163,
-0.014675632119178772,
0.43120208382606506,
-0.23289687931537628,
0.1883048266172409,
0.1957394927740097,
-0.2414480596780777,
-0.2839291989803314,
0.112319216132164,
0.12275373935699463,
0.2887304425239563,
-0.17223986983299255,
-0.18881767988204956,
0.4082733988761902,
-0.08453989773988724,
0.29040589928627014,
-0.10920862853527069,
0.04228759929537773,
-0.01810753345489502,
-0.05557763949036598,
-0.4358442425727844,
-0.305081307888031,
-0.21085256338119507,
0.12742263078689575,
0.041461165994405746,
0.02934262901544571,
0.2184678614139557,
0.03184887394309044,
-0.05846679210662842,
0.13856585323810577,
0.10632376372814178,
-0.026969723403453827,
-0.12539178133010864,
0.3876415491104126,
0.19482818245887756,
0.14209887385368347,
-0.04230066388845444,
-0.41316157579421997,
-0.09358534961938858,
-0.4032241106033325,
-0.03399552404880524,
0.11048945784568787,
-0.08481092751026154,
-0.03885236755013466,
-0.1923363357782364,
-0.1654411107301712,
0.11837076395750046,
-0.12127739936113358,
0.4028320610523224,
-0.1386866420507431,
0.130050390958786,
-0.11897395551204681,
0.12164580076932907,
-0.02004740759730339,
-0.2624078094959259,
-0.01765509322285652,
0.12210871279239655,
0.09219896793365479,
-0.12008152157068253,
0.23026300966739655,
-0.26811808347702026,
0.17915455996990204,
-0.0016774153336882591,
0.17124009132385254,
0.2022649645805359,
0.246368408203125,
-0.0019121430814266205,
0.13081246614456177,
0.22634002566337585,
0.515504777431488,
0.08302359282970428,
0.07397489249706268,
-0.24062775075435638,
-0.39160066843032837,
0.2787840962409973,
-0.5007520318031311,
-0.32169777154922485,
-0.4457769989967346,
0.16573961079120636,
-0.4327133893966675,
0.0528850182890892,
0.15642844140529633,
-0.028118837624788284,
-0.07067129760980606,
-0.4763724207878113,
-0.15160948038101196,
-0.24686403572559357,
-0.02865813858807087,
-0.15214106440544128,
0.31811651587486267,
0.023052863776683807,
-0.6264662742614746,
-0.04598890244960785,
-0.42808568477630615,
0.0689811259508133,
0.5652238726615906,
0.2372984141111374,
-0.2411077916622162,
-0.14031147956848145,
-0.29885947704315186,
0.20823590457439423,
0.5377718806266785,
-0.45892950892448425,
-0.6370989084243774,
0.18018878996372223,
-0.07933815568685532,
0.2605934739112854,
-0.016423076391220093,
0.1381387710571289,
0.06638140976428986,
-0.03049711138010025,
-0.027212701737880707,
0.3065081834793091,
0.039706334471702576,
-0.014349935576319695,
-0.3167254626750946,
-0.3514004647731781,
0.3767935633659363,
0.29243001341819763,
-0.06137026473879814,
0.04644424840807915,
0.03451716899871826,
-0.011394184082746506,
0.2621101140975952,
-0.24259355664253235,
0.08380837738513947,
0.06516335904598236,
0.44958335161209106,
0.05743076279759407,
0.1290542483329773,
-0.12646445631980896,
-0.03909242898225784,
0.013636961579322815,
-0.027391009032726288,
0.2601233720779419,
-0.125595360994339,
-0.1438208967447281,
-0.13287663459777832,
-0.315356969833374,
-0.25324440002441406,
-0.09959393739700317,
0.28211405873298645,
0.12245836853981018,
0.20777931809425354,
0.015622969716787338,
-0.16699062287807465,
0.19902579486370087,
-0.032830338925123215,
0.03811676800251007,
-0.19171728193759918,
0.35909414291381836,
-0.2709149718284607,
-0.31346026062965393,
0.22148770093917847,
-0.13579794764518738,
-0.1891530156135559,
-0.3110255002975464,
0.042465321719646454,
0.2035045027732849,
-0.11939023435115814,
0.015869587659835815,
0.07318712770938873,
-0.06706403195858002,
0.23971709609031677,
-0.33264389634132385,
0.12787435948848724,
0.39308226108551025,
-0.060460448265075684,
0.1380085051059723,
-0.21188724040985107,
0.3495497703552246,
0.07515858113765717,
-0.03437470644712448,
0.06106823682785034,
0.043150894343853,
0.5116952061653137,
0.07282741367816925,
-0.322281152009964,
-0.1274915635585785,
0.010572284460067749,
0.018284088000655174,
0.012158393859863281,
-0.06370656192302704,
0.061181724071502686,
-0.0241558700799942,
0.6626573204994202,
-0.08309602737426758,
0.048965804278850555,
0.47601571679115295,
-0.1371746063232422,
-0.03362910822033882,
0.13681960105895996,
0.08555293083190918,
0.19829389452934265,
0.30174386501312256,
-0.023415956646203995,
-0.07339241355657578,
0.13392329216003418,
-0.09871343523263931,
0.1406286507844925,
-0.08074641227722168,
0.20090578496456146,
0.34345149993896484,
0.18884386122226715,
0.0882759541273117,
-0.4181857109069824,
-0.2109525054693222,
-0.1300497055053711,
-0.044467464089393616,
0.08603465557098389,
-0.11662818491458893,
-0.31085437536239624,
-0.2703988552093506,
0.1521986573934555,
-0.195057213306427,
-0.10459160804748535,
0.04375069588422775,
0.08171673119068146,
0.2523733675479889,
0.05731702223420143,
0.3593551814556122,
-0.08091830462217331,
0.4500422179698944,
0.26155659556388855,
-0.07834425568580627,
-0.2122402936220169,
-0.06009696051478386,
-0.19796618819236755,
0.17239072918891907,
0.04157082363963127,
-0.26110684871673584,
0.020226716995239258,
-0.2979660928249359,
-0.0676688402891159,
-0.08057210594415665,
-0.1746726781129837,
0.33210137486457825,
-0.11175255477428436,
0.35514208674430847,
0.12438300251960754,
0.2716517746448517,
0.054154232144355774,
0.018490277230739594,
0.32387176156044006,
-0.36661043763160706,
-0.10112494975328445,
0.06124243140220642,
0.045921001583337784,
0.05941567197442055,
-0.2933337986469269,
-0.1307232677936554,
-0.5717185139656067,
-0.4073595404624939,
0.06738676130771637,
0.16554459929466248,
0.13078594207763672,
0.07012953609228134,
0.3306318521499634,
-0.02034590393304825,
0.4596726596355438,
0.09289825707674026,
-0.057840049266815186,
-0.488227903842926,
0.7006708383560181,
-0.3188379406929016,
-0.5383867621421814,
0.007636111229658127,
0.1129608154296875,
-0.1366628110408783,
0.02050958201289177,
-0.07007378339767456,
-0.25309500098228455,
-0.40167930722236633,
0.04854115471243858,
-0.12549908459186554,
-0.04803164303302765,
0.3743560016155243,
0.05799217149615288,
-0.11036502569913864,
-0.20446842908859253,
-0.0897168219089508,
-0.042359285056591034,
0.24265986680984497,
0.37183982133865356,
0.1705678403377533,
0.295197457075119,
0.24648162722587585,
0.3194735646247864,
0.12346839904785156,
-0.02704397216439247,
0.4988638162612915,
-0.03530034422874451,
0.30250075459480286,
-0.04494599252939224,
0.018388064578175545,
-0.11447709798812866,
-0.1449945867061615,
-0.0016798190772533417,
0.26171010732650757,
0.11711480468511581,
0.08187778294086456,
-0.14897572994232178,
0.03330292925238609,
-0.39795738458633423,
-0.009175535291433334,
-0.0334312841296196,
0.119451142847538,
-0.14489802718162537,
-0.18897664546966553,
-0.20782402157783508,
-0.0644926056265831,
-0.12573745846748352,
0.3582310676574707,
0.2600060701370239,
0.13667446374893188,
0.14882385730743408,
-0.11513365805149078,
-0.19756056368350983,
-0.420842707157135,
0.14699827134609222,
0.07004909217357635,
0.21297577023506165,
-0.08580311387777328,
-0.11365789920091629,
-0.005749963223934174,
-0.33459681272506714,
0.7387810945510864,
-0.16798032820224762,
0.19594553112983704,
0.07523269951343536,
0.14452922344207764,
-0.40959054231643677,
-0.04624878242611885,
-0.39749276638031006,
0.027943171560764313,
0.3193042576313019,
0.21479277312755585,
-0.04416302591562271,
-0.18721842765808105,
-0.19959190487861633,
-0.01756579801440239,
-0.08426331728696823,
-0.009609143249690533,
-0.20861054956912994,
-0.33589327335357666,
-0.3950864374637604,
-0.10248079150915146,
0.13602590560913086,
0.11561452597379684,
-0.18258234858512878,
-0.29689016938209534,
0.20752505958080292,
-0.3390504717826843,
0.25588637590408325,
0.14834237098693848,
0.4273974895477295,
-0.06883268803358078,
-0.213826984167099,
-0.20315957069396973,
-0.06266438215970993,
0.3899836540222168,
0.5272383689880371,
0.2919400632381439,
-0.5823026895523071,
0.15485882759094238,
-0.17669230699539185,
0.0368913859128952,
0.013638079166412354,
-0.03962228074669838,
-0.13973799347877502,
-0.2982388138771057,
0.3117823898792267,
-0.2782152593135834,
0.4846893846988678,
0.3977002799510956,
-0.22528915107250214,
-0.22935819625854492,
-0.16345521807670593,
0.05359248071908951,
0.21760956943035126,
0.18181951344013214,
0.24678866565227509,
0.1708737313747406,
-0.21541111171245575,
0.4107024073600769,
0.0961742177605629,
0.8347508907318115,
0.0029695890843868256,
0.09073121845722198,
0.034224461764097214,
-0.12590032815933228,
0.4221683144569397,
-0.5505043864250183,
0.14151640236377716,
0.1266130805015564,
-0.3498452603816986,
-0.06480102986097336,
0.043265391141176224,
0.13832691311836243,
0.12227032333612442,
-0.5535209774971008,
0.10105837881565094,
0.23194991052150726,
-0.027045216411352158,
0.19039039313793182,
0.32476335763931274,
-0.23100604116916656,
-0.10598312318325043,
-0.44370391964912415,
0.22011107206344604,
-0.1097927987575531,
0.13598595559597015,
0.1007782518863678,
-0.3935142755508423,
-0.13910357654094696,
-0.04434734582901001,
-0.09955824166536331,
0.4545045793056488,
0.21074549853801727,
-0.06615272909402847,
-0.27727338671684265,
-0.33805954456329346,
0.06403324007987976,
0.18443500995635986,
0.10669395327568054,
0.06462730467319489,
-0.22043047845363617,
0.09593162685632706,
0.022077877074480057,
0.022546274587512016,
-0.16127489507198334,
-0.0305350162088871,
0.2215910255908966,
-0.2540383040904999,
-0.037529356777668,
0.21545353531837463,
0.0414399690926075,
-0.32449662685394287,
0.1968674659729004,
-0.2516803741455078,
-0.007982753217220306,
0.024819817394018173,
-0.07718536257743835,
-0.18939736485481262,
-0.17767733335494995,
-0.11529667675495148,
0.189769446849823,
-0.11916880309581757,
-0.15561074018478394,
-0.03905697166919708,
0.07789111882448196,
-0.20468926429748535,
-0.06466349959373474,
0.40125158429145813,
0.14460206031799316,
0.45529523491859436,
0.33225134015083313,
0.03509583696722984,
-0.12424642592668533,
-0.1822965145111084,
-0.12492462992668152,
-0.16483868658542633,
0.05551227182149887,
0.26091399788856506,
-0.19552281498908997,
-0.22807133197784424,
0.009793959558010101,
0.4671842157840729,
0.2576930522918701,
-0.15464892983436584,
-0.1970101296901703,
-0.3582635223865509,
-0.19724060595035553,
-0.09322409331798553,
0.13461941480636597,
0.29113730788230896,
0.36396071314811707,
0.2486523985862732,
0.0851830244064331,
-0.2874058187007904,
-0.3450142741203308,
0.07081802934408188,
-0.029949314892292023,
0.120669424533844,
-0.44472506642341614,
0.033261142671108246,
0.11009019613265991,
0.00044532306492328644,
0.06976060569286346,
0.22822481393814087,
-0.09347432106733322,
-0.2744385004043579,
0.07079654932022095,
0.108464315533638,
0.15038681030273438,
-0.19170932471752167,
-0.20894183218479156,
0.03138665109872818,
-0.12390188872814178,
-0.15947018563747406,
0.13664191961288452,
-0.12075639516115189,
-0.01513582468032837,
0.4166906177997589,
0.1770646721124649,
0.012774571776390076,
-0.018791750073432922,
-0.028105944395065308,
0.04159894213080406,
0.3274044990539551,
0.34128642082214355,
0.28332334756851196,
0.0753447413444519,
0.03785222768783569,
-0.17217576503753662,
-0.002539493143558502,
0.40992313623428345,
0.04555400088429451,
0.4399370551109314,
-0.2756296396255493,
0.030541133135557175,
0.09533362090587616,
0.45052364468574524,
0.4492522180080414,
-0.3264131546020508,
-0.09826572984457016,
0.30517005920410156,
0.25600868463516235,
-0.36076927185058594,
-0.252804696559906,
0.1652311533689499,
-0.02427491918206215,
-0.07752759009599686,
0.04189258813858032,
0.15518200397491455,
0.05282944440841675,
0.13344652950763702,
0.11775658279657364,
0.7162268757820129,
0.08736144751310349,
0.33600977063179016,
0.29009997844696045,
-0.06878923624753952,
0.04770871251821518,
-0.19683615863323212,
-0.14312678575515747,
0.12183857709169388,
0.2751418352127075,
0.029579173773527145,
0.21944205462932587,
-0.028712131083011627,
0.09313943982124329,
-0.1166834905743599,
-0.12142130732536316,
0.2087545245885849,
0.42956671118736267,
0.22661995887756348,
0.21246743202209473,
0.16006608307361603,
0.2727946639060974,
-0.09765855967998505,
-0.33416301012039185,
-0.4759235084056854,
0.032126229256391525,
0.015464363619685173,
-0.05455085635185242,
-0.0630602240562439,
-0.10439164936542511,
0.05368240177631378,
0.19893553853034973,
0.23497040569782257,
0.06902176141738892,
-0.29622355103492737,
0.20161449909210205,
-0.007259465754032135,
-0.09742347151041031,
-0.06777159124612808,
0.053350530564785004,
0.28172972798347473,
-0.26807311177253723,
0.2639070451259613,
0.1658542901277542,
-0.21148723363876343,
-0.10844172537326813,
-0.16118694841861725,
0.41228437423706055,
0.11927655339241028,
-0.16478563845157623,
-0.013921328820288181,
-0.05116083100438118,
-0.17867718636989594,
-0.05960387364029884,
0.1999361515045166,
0.35535961389541626,
0.055311281234025955,
0.15294748544692993,
0.2804585099220276,
-0.20573344826698303,
0.03271874785423279,
-0.15785180032253265,
-0.09720920026302338,
-0.14874008297920227,
-0.18517109751701355,
0.03276459127664566,
-0.015757277607917786,
-0.0017971433699131012,
-0.4941352903842926,
-0.33127596974372864,
-0.29631051421165466,
-0.06251111626625061,
-0.2614167034626007,
0.10358782857656479,
-0.19251440465450287,
0.12922342121601105,
-0.13844992220401764,
0.2534540295600891,
0.19022336602210999,
-0.2505355179309845,
0.13714924454689026,
-0.30189478397369385,
-0.2958347797393799,
0.33038678765296936,
-0.12930987775325775,
-0.04512053728103638,
-0.1659674197435379,
0.14220722019672394,
0.054989494383335114,
0.058972254395484924,
-0.08441004157066345,
-0.030577201396226883,
-0.06517301499843597,
0.054371628910303116,
-0.19483518600463867,
0.1057075560092926,
0.004875414073467255,
0.3382108807563782,
0.11368665099143982,
-0.21964913606643677,
-0.07816219329833984,
-0.29579395055770874,
0.04975803941488266,
-0.053054824471473694,
-0.23045501112937927,
-0.07488454878330231,
-0.1049220860004425,
0.5985663533210754,
0.11469918489456177,
0.35248619318008423,
-0.43481549620628357,
-0.046664364635944366,
0.049464575946331024,
0.26141080260276794,
-0.15734967589378357,
0.06924089044332504,
0.06873144209384918,
0.07308319956064224,
-0.2451075166463852,
0.46256494522094727,
-0.41073310375213623,
0.1573268622159958,
0.08519092202186584,
-0.13570518791675568,
-0.2659936249256134,
-0.12260272353887558,
-0.07706335932016373,
-0.15320070087909698,
0.02332235872745514,
0.004880066961050034,
-0.045134350657463074,
0.0549435093998909,
-0.295421302318573,
-0.2606571614742279,
0.49681928753852844,
-0.004528877791017294,
-0.13287842273712158,
0.1368115097284317,
-0.21023422479629517,
-0.0408065989613533,
0.10620655119419098,
-0.18830013275146484,
0.08332818001508713,
0.21631364524364471,
0.2731083929538727,
-0.012566015124320984,
0.27330300211906433,
0.056018032133579254,
-0.05361593887209892,
-0.15793684124946594,
0.4886934459209442,
0.17021459341049194,
-0.22049638628959656,
-0.0747186690568924,
-0.329617977142334
] |
https://github.com/huggingface/datasets/issues/2572 | Support Zstandard compressed files | > I just tried on google colab and this works:
>
> ```python
> !pip install zstandard
> !pip install datasets
> from datasets import load_dataset
>
> lds = load_dataset(
> "json",
> data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
> split="train",
> streaming=True,
> )
> next(iter(lds))
> ```
>
> Can you check that you have a correct installation of `zstandard` ?
I was downloading datasets first then was doing zstandard installation and that was causing the issue. This was highlighted by the Hugging Face staff and that helped. Now the issue is resolved. Thank you. | Add support for Zstandard compressed files: https://facebook.github.io/zstd/ | 93 | Support Zstandard compressed files
Add support for Zstandard compressed files: https://facebook.github.io/zstd/
> I just tried on google colab and this works:
>
> ```python
> !pip install zstandard
> !pip install datasets
> from datasets import load_dataset
>
> lds = load_dataset(
> "json",
> data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst",
> split="train",
> streaming=True,
> )
> next(iter(lds))
> ```
>
> Can you check that you have a correct installation of `zstandard` ?
I was downloading datasets first then was doing zstandard installation and that was causing the issue. This was highlighted by the Hugging Face staff and that helped. Now the issue is resolved. Thank you. | [
-0.2836226522922516,
-0.2137247622013092,
-0.07408933341503143,
0.08305953443050385,
0.3093840479850769,
-0.08704519271850586,
0.15055853128433228,
0.48618459701538086,
0.007772982120513916,
0.28307396173477173,
-0.09433198720216751,
0.21766333281993866,
0.06526421755552292,
0.2882145345211029,
-0.16983145475387573,
0.06334257125854492,
-0.12833666801452637,
0.47774121165275574,
0.1710471659898758,
0.05013667047023773,
0.13542871177196503,
0.1680362969636917,
-0.11430199444293976,
0.05146375298500061,
-0.03580877557396889,
-0.007770014926791191,
0.03643733263015747,
0.027249246835708618,
-0.3297242224216461,
-0.2468581646680832,
0.02259030006825924,
-0.0707879364490509,
0.15559564530849457,
0.4539855122566223,
-0.00010425997606944293,
0.10058940947055817,
0.3518450856208801,
-0.08492673188447952,
-0.1838373839855194,
-0.25459158420562744,
0.3222808539867401,
-0.5177860260009766,
0.027965307235717773,
-0.08372733741998672,
-0.448882520198822,
-0.501044750213623,
0.14875398576259613,
0.06056969612836838,
0.6317905187606812,
0.40219351649284363,
0.28080663084983826,
0.2528589367866516,
0.05691483989357948,
-0.25937312841415405,
0.07647182792425156,
-0.16485434770584106,
-0.24097129702568054,
-0.023753345012664795,
0.13239586353302002,
0.17071159183979034,
0.06686286628246307,
0.2011340856552124,
0.14872623980045319,
-0.11674010753631592,
-0.12074898928403854,
-0.09624619781970978,
0.25047001242637634,
-0.33234116435050964,
-0.002312932163476944,
0.21155104041099548,
0.5228263735771179,
-0.08437462896108627,
-0.3232261538505554,
-0.09402893483638763,
0.21391209959983826,
0.0043699126690626144,
0.10192815214395523,
0.4128386974334717,
-0.1695822775363922,
0.13743668794631958,
0.12001602351665497,
-0.08871198445558548,
-0.29035723209381104,
0.0755707398056984,
0.03351863473653793,
0.16358697414398193,
-0.15891465544700623,
-0.16445598006248474,
0.40847519040107727,
-0.2229137271642685,
0.2316291779279709,
-0.02066326141357422,
0.017309514805674553,
-0.08242352306842804,
-0.1906760185956955,
-0.25102296471595764,
-0.130700021982193,
-0.15350359678268433,
0.06536277383565903,
-0.033737704157829285,
0.07842142879962921,
0.2479398250579834,
0.09082943201065063,
-0.025426924228668213,
0.16795532405376434,
0.15307201445102692,
-0.05590682476758957,
-0.10124845057725906,
0.40666836500167847,
0.2593720853328705,
0.02357783541083336,
-0.019772492349147797,
-0.3095955550670624,
-0.13987578451633453,
-0.316178560256958,
-0.10670248419046402,
0.03072340041399002,
-0.05032946914434433,
-0.13857275247573853,
-0.06512120366096497,
-0.14412198960781097,
0.27350765466690063,
-0.11851274222135544,
0.47159209847450256,
-0.11722246557474136,
0.09480094909667969,
0.028248168528079987,
0.12141261994838715,
-0.12699180841445923,
-0.1868857741355896,
-0.1090376004576683,
0.07688359916210175,
-0.1028694212436676,
-0.110221266746521,
0.25136569142341614,
-0.13096654415130615,
0.2867257595062256,
0.07236974686384201,
0.23473092913627625,
0.14721724390983582,
0.13967187702655792,
0.0039697857573628426,
0.14912712574005127,
0.2967081069946289,
0.4569965898990631,
0.05155698210000992,
0.045213621109724045,
-0.13956016302108765,
-0.10751692950725555,
0.22122284770011902,
-0.2842676639556885,
-0.26348403096199036,
-0.39655253291130066,
0.2612302303314209,
-0.28758537769317627,
0.11912804841995239,
0.19918857514858246,
-0.03756332024931908,
0.004675053060054779,
-0.24342364072799683,
-0.16124007105827332,
-0.2536395192146301,
-0.04771805182099342,
-0.09035924822092056,
0.2700926959514618,
0.13358643651008606,
-0.4996418058872223,
-0.0784006267786026,
-0.3208291232585907,
-0.026949461549520493,
0.4766017198562622,
0.39847540855407715,
-0.2881077527999878,
-0.15985068678855896,
-0.28864601254463196,
0.2206239253282547,
0.34649857878685,
-0.4250200092792511,
-0.660736083984375,
0.19879880547523499,
-0.2180786430835724,
0.18721383810043335,
-0.003895491361618042,
0.16333326697349548,
0.04844453185796738,
0.17711569368839264,
-0.025537773966789246,
0.29343777894973755,
0.043800607323646545,
0.11059162765741348,
-0.4451097548007965,
-0.2520331144332886,
0.3268011808395386,
0.3255084753036499,
-0.031312886625528336,
-0.03618895262479782,
-0.025216050446033478,
0.00777717400342226,
0.34673020243644714,
-0.20720568299293518,
0.13006284832954407,
0.1418449580669403,
0.3752686083316803,
0.07389888167381287,
0.15633328258991241,
-0.0516221821308136,
-0.12917202711105347,
-0.0040372200310230255,
-0.08071692287921906,
0.35704320669174194,
-0.18294687569141388,
-0.21182113885879517,
-0.23468101024627686,
-0.2921823561191559,
-0.3374512791633606,
-0.12348361313343048,
0.3387294113636017,
0.10939706116914749,
0.077816903591156,
0.04061157628893852,
-0.10180339217185974,
0.29192230105400085,
-0.08498139679431915,
0.002097638323903084,
-0.22136618196964264,
0.3295307755470276,
-0.3425666093826294,
-0.288356214761734,
0.209638774394989,
-0.18787932395935059,
-0.07801824063062668,
-0.13609598577022552,
-0.044359322637319565,
0.20379477739334106,
-0.12116445600986481,
0.11998350918292999,
0.070977583527565,
-0.026492297649383545,
0.21738140285015106,
-0.3481753468513489,
0.09196929633617401,
0.3957854211330414,
-0.0139255840331316,
0.09030281752347946,
-0.16009733080863953,
0.3036985397338867,
0.11180475354194641,
-0.0530533567070961,
0.11974471807479858,
-0.01305487472563982,
0.4860346019268036,
-0.08499882370233536,
-0.28217053413391113,
-0.16866004467010498,
0.08822737634181976,
0.04871828109025955,
0.022657621651887894,
-0.03418630361557007,
-0.15146450698375702,
0.07738901674747467,
0.760827362537384,
0.05527975782752037,
0.05634386092424393,
0.47081470489501953,
-0.09179002791643143,
-0.1564980149269104,
0.04728394374251366,
0.08669011294841766,
0.13577575981616974,
0.2414332926273346,
-0.012948665767908096,
0.04269450902938843,
0.09432388842105865,
-0.20107905566692352,
0.17907783389091492,
-0.08311782777309418,
0.20671071112155914,
0.33988064527511597,
0.24666354060173035,
0.013349032960832119,
-0.574674665927887,
-0.12483841180801392,
-0.07839115709066391,
0.029957108199596405,
-0.06448748707771301,
-0.17068985104560852,
-0.28574132919311523,
-0.30608609318733215,
0.15686377882957458,
-0.13522548973560333,
-0.1738322377204895,
-0.041374433785676956,
0.18975524604320526,
0.25426772236824036,
-0.13026247918605804,
0.36220163106918335,
-0.005530882626771927,
0.4429164528846741,
0.31103697419166565,
0.07936794310808182,
-0.21858002245426178,
-0.0987248346209526,
-0.2350533902645111,
0.21513240039348602,
-0.014123314060270786,
-0.1089116707444191,
-0.011410130187869072,
-0.2829427719116211,
-0.03365175426006317,
-0.16688616573810577,
-0.3101995885372162,
0.32674330472946167,
-0.04272010177373886,
0.39391738176345825,
0.05897018313407898,
0.43192166090011597,
-0.05874224007129669,
-0.10289746522903442,
0.3117924928665161,
-0.4160776734352112,
-0.2000589519739151,
0.03083129972219467,
0.014444715343415737,
-0.016728991642594337,
-0.3865792453289032,
-0.21334412693977356,
-0.4199172556400299,
-0.4951780438423157,
0.1746455729007721,
-0.03459729999303818,
0.1383437216281891,
0.14509278535842896,
0.2621837854385376,
0.015796199440956116,
0.27033910155296326,
0.07127955555915833,
-0.18285031616687775,
-0.40978679060935974,
0.6139638423919678,
-0.40868034958839417,
-0.6256029605865479,
0.013316456228494644,
0.21733978390693665,
-0.06936123967170715,
-0.10776786506175995,
-0.22770579159259796,
-0.2196849286556244,
-0.4207286536693573,
0.06387273967266083,
-0.14931964874267578,
-0.13493964076042175,
0.2579161524772644,
0.039810825139284134,
-0.20953911542892456,
-0.26485374569892883,
-0.164078488945961,
0.09558379650115967,
0.15277570486068726,
0.3099135458469391,
-0.037231676280498505,
0.3099573850631714,
0.26869693398475647,
0.3179703950881958,
0.0637349933385849,
-0.018357526510953903,
0.4351377487182617,
-0.06676507741212845,
0.2696220874786377,
-0.16637569665908813,
-0.09514165669679642,
-0.06054793298244476,
-0.08438926935195923,
-0.002987738698720932,
0.3304208517074585,
0.050032421946525574,
-0.006727511063218117,
-0.13895300030708313,
0.0474325530230999,
-0.35966819524765015,
-0.10387527942657471,
0.03387335687875748,
0.11604084819555283,
-0.08430998772382736,
-0.019290879368782043,
-0.1021655723452568,
-0.048556383699178696,
-0.14961111545562744,
0.3071322739124298,
0.23776103556156158,
0.09246690571308136,
0.05658748745918274,
-0.18882539868354797,
-0.11679171025753021,
-0.3098873198032379,
0.056636251509189606,
0.08528322726488113,
0.26689544320106506,
-0.28013914823532104,
-0.13428418338298798,
0.11630512773990631,
-0.2643299102783203,
0.7718411087989807,
-0.014181694015860558,
0.28153371810913086,
0.059849727898836136,
0.09332071244716644,
-0.36076170206069946,
-0.017470622435212135,
-0.33504489064216614,
-0.03461761400103569,
0.29134508967399597,
0.24175843596458435,
-0.1317434310913086,
-0.11452137678861618,
-0.1636362224817276,
-0.010973372496664524,
-0.10544878244400024,
0.04952919855713844,
-0.18717049062252045,
-0.30476489663124084,
-0.3448513448238373,
0.019376225769519806,
0.19046129286289215,
0.1426943689584732,
-0.24321624636650085,
-0.31017419695854187,
0.19999389350414276,
-0.2565997242927551,
0.08783090114593506,
0.22628362476825714,
0.46741628646850586,
0.00011188184726051986,
-0.0002987869083881378,
-0.1428476721048355,
-0.00601564347743988,
0.3935372829437256,
0.539596438407898,
0.24431079626083374,
-0.5221287608146667,
0.15101563930511475,
-0.21845810115337372,
-0.013720177114009857,
0.16920515894889832,
0.04849591478705406,
-0.08567673712968826,
-0.22136926651000977,
0.3601835370063782,
-0.08640944212675095,
0.43642979860305786,
0.413877010345459,
-0.1983860433101654,
-0.07948718219995499,
-0.088079072535038,
-0.002727024257183075,
0.042418088763952255,
0.14255788922309875,
0.17940089106559753,
0.16838373243808746,
-0.1593218296766281,
0.37314796447753906,
-0.02955484390258789,
0.954491376876831,
0.0476093664765358,
0.10294182598590851,
0.12163495272397995,
-0.1660533845424652,
0.23779340088367462,
-0.318822979927063,
0.16565608978271484,
-0.042236123234033585,
-0.3988263010978699,
0.05633871257305145,
0.05986732617020607,
0.12613067030906677,
0.13988149166107178,
-0.4173335134983063,
-0.039268314838409424,
0.13909633457660675,
-0.05937906727194786,
0.10412746667861938,
0.31279218196868896,
-0.1960199475288391,
-0.14872407913208008,
-0.47826889157295227,
0.25039640069007874,
-0.04327481985092163,
0.13779164850711823,
0.14083215594291687,
-0.4293056130409241,
-0.18112334609031677,
-0.08150357007980347,
-0.008563831448554993,
0.4933531582355499,
0.12751606106758118,
0.00916018895804882,
-0.2572329044342041,
-0.29733675718307495,
0.05439544841647148,
0.1554030478000641,
-0.01817803829908371,
0.10637438297271729,
-0.22711700201034546,
0.37542933225631714,
0.11550697684288025,
0.013047046959400177,
-0.19954663515090942,
0.04828297346830368,
0.199125736951828,
-0.30793383717536926,
-0.22612188756465912,
0.0994245857000351,
-0.028862830251455307,
-0.1565711498260498,
0.1405470371246338,
-0.1536225974559784,
0.023919977247714996,
-0.08029939979314804,
-0.003855147399008274,
-0.271196573972702,
-0.11215248703956604,
-0.17366553843021393,
0.2383178472518921,
-0.23286597430706024,
-0.1786082684993744,
-0.11571752279996872,
0.24659143388271332,
-0.22681528329849243,
-0.07013015449047089,
0.41912856698036194,
-0.001685652881860733,
0.39567050337791443,
0.42449066042900085,
0.09895728528499603,
-0.22035104036331177,
-0.23633137345314026,
-0.17356884479522705,
-0.10814398527145386,
-0.1488351821899414,
0.23627512156963348,
-0.135489359498024,
-0.22821424901485443,
0.07362861931324005,
0.4205828905105591,
0.1222056895494461,
-0.10647916048765182,
-0.1875535100698471,
-0.3032611012458801,
-0.24295580387115479,
-0.13034936785697937,
0.02085617557168007,
0.2521992027759552,
0.264384001493454,
0.22029681503772736,
0.12097415328025818,
-0.2314385175704956,
-0.4311390519142151,
0.12618501484394073,
-0.19881537556648254,
0.2151327133178711,
-0.39469319581985474,
-0.1959301233291626,
0.15442690253257751,
-0.004818951711058617,
0.1617431640625,
0.275394082069397,
-0.12380926311016083,
-0.3422974944114685,
0.050692107528448105,
0.07554351538419724,
0.11188558489084244,
-0.15448115766048431,
-0.08510293811559677,
-0.010109340772032738,
-0.16272889077663422,
-0.061340272426605225,
0.25420454144477844,
-0.0769754946231842,
0.012192964553833008,
0.32190459966659546,
0.07196652144193649,
0.05084945634007454,
0.19259779155254364,
-0.07847017049789429,
-0.0429251492023468,
0.3713526129722595,
0.2670905888080597,
0.11829780787229538,
-0.08206779509782791,
-0.0013045594096183777,
-0.14913828670978546,
-0.027020633220672607,
0.28355661034584045,
0.16698312759399414,
0.36225828528404236,
-0.33609461784362793,
0.07172912359237671,
0.06387323886156082,
0.43178874254226685,
0.3709024488925934,
-0.35857588052749634,
-0.13711674511432648,
0.2595216929912567,
0.34703317284584045,
-0.4250274896621704,
-0.18640758097171783,
0.07654664665460587,
-0.18298685550689697,
-0.025019340217113495,
-0.049655281007289886,
0.14395155012607574,
-0.0016938075423240662,
0.04506779834628105,
0.20446372032165527,
0.6088539958000183,
0.015079270116984844,
0.24979232251644135,
0.2880736291408539,
-0.2128773182630539,
0.023969776928424835,
-0.08412721753120422,
-0.1503198891878128,
0.06452374160289764,
0.3681944012641907,
-0.05125265568494797,
0.13112756609916687,
-0.004918452352285385,
0.1978672742843628,
-0.06271057575941086,
-0.08580353856086731,
0.0960574671626091,
0.3235939145088196,
0.08724721521139145,
0.17799359560012817,
0.14002308249473572,
0.2679002583026886,
-0.06857801973819733,
-0.3707073926925659,
-0.3054954707622528,
0.07910355925559998,
-0.17549628019332886,
0.007998393848538399,
-0.11470606923103333,
-0.10935920476913452,
-0.06646795570850372,
0.29778575897216797,
0.213060200214386,
0.1783226877450943,
-0.09832015633583069,
0.224608913064003,
-0.06549657881259918,
-0.18099071085453033,
-0.18403586745262146,
0.11833593249320984,
0.360840380191803,
-0.31379520893096924,
0.28867307305336,
0.16946852207183838,
-0.1872885823249817,
-0.037443216890096664,
-0.04575435072183609,
0.41428133845329285,
0.21582210063934326,
-0.11346299946308136,
0.06311899423599243,
0.023587623611092567,
-0.2039737105369568,
-0.07468555867671967,
0.16654138267040253,
0.4535657465457916,
0.14724276959896088,
0.19779880344867706,
0.28841105103492737,
-0.3417860269546509,
0.0562606006860733,
-0.19487954676151276,
0.036186039447784424,
-0.1333961933851242,
-0.1825110912322998,
-0.0568491667509079,
-0.036263734102249146,
-0.23531126976013184,
-0.5598236322402954,
-0.359152227640152,
-0.31543487310409546,
0.033880963921546936,
-0.23088876903057098,
0.14373305439949036,
-0.2984124422073364,
0.17398373782634735,
-0.19142989814281464,
0.44825655221939087,
0.16227304935455322,
-0.2534044682979584,
0.0664057582616806,
-0.2661813199520111,
-0.36154910922050476,
0.4018760919570923,
-0.09138396382331848,
-0.005895694717764854,
-0.1552397459745407,
0.1946258544921875,
-0.14473354816436768,
-0.08766695857048035,
0.045283786952495575,
-0.06918547302484512,
-0.0590706542134285,
0.0525243803858757,
-0.28013351559638977,
0.22160473465919495,
-0.0388314351439476,
0.247144415974617,
0.18428947031497955,
-0.280670166015625,
0.01186416670680046,
-0.18829816579818726,
0.15712609887123108,
0.06737545132637024,
-0.2063688337802887,
-0.17452938854694366,
-0.10447867214679718,
0.5325448513031006,
0.10710699111223221,
0.3274455964565277,
-0.3567841649055481,
-0.19546696543693542,
-0.026754293590784073,
0.0416988804936409,
-0.15005755424499512,
0.20563983917236328,
0.21125610172748566,
0.21977348625659943,
-0.014343693852424622,
0.3616296947002411,
-0.3602008521556854,
0.12286647409200668,
0.09845604002475739,
-0.11464396119117737,
-0.21662724018096924,
-0.014015787281095982,
0.0587507039308548,
0.007036310620605946,
-0.015820268541574478,
0.07993650436401367,
-0.01205281913280487,
-0.12517765164375305,
-0.351077139377594,
-0.5047991275787354,
0.5183653235435486,
-0.06527091562747955,
-0.15860052406787872,
0.19547168910503387,
-0.07087856531143188,
-0.01333705335855484,
0.016739660874009132,
-0.3755112886428833,
0.11124641448259354,
0.11184032261371613,
0.1291784644126892,
-0.10626344382762909,
0.23552246391773224,
-0.06026753410696983,
-0.062336355447769165,
-0.127742737531662,
0.49291983246803284,
0.3210945725440979,
-0.1965787559747696,
0.09247316420078278,
-0.2372557371854782
] |
https://github.com/huggingface/datasets/issues/2569 | Weights of model checkpoint not initialized for RobertaModel for Bertscore | Hi @suzyahyah, thanks for reporting.
The message you get is indeed not an error message, but a warning coming from Hugging Face `transformers`. The complete warning message is:
```
Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.dense.weight', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.bias', 'lm_head.layer_norm.weight']
- This IS expected if you are initializing RobertaModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
- This IS NOT expected if you are initializing RobertaModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
```
In this case, this behavior IS expected and you can safely ignore the warning message.
The reason is that you are just using RoBERTa to get the contextual embeddings of the input sentences/tokens, thus leaving away its head layer, whose weights are ignored.
Feel free to reopen this issue if you need further explanations. | When applying bertscore out of the box,
```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']```
Following the typical usage from https://huggingface.co/docs/datasets/loading_metrics.html
```
from datasets import load_metric
metric = load_metric('bertscore')
# Example of typical usage
for batch in dataset:
inputs, references = batch
predictions = model(inputs)
metric.add_batch(predictions=predictions, references=references)
score = metric.compute(lang="en")
#score = metric.compute(model_type="roberta-large") # gives the same error
```
I am concerned about this because my usage shouldn't require any further fine-tuning and most people would expect to use BertScore out of the box? I realised the huggingface code is a wrapper around https://github.com/Tiiiger/bert_score, but I think this repo is anyway relying on the model code and weights from huggingface repo....
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.4.0-1041-aws-x86_64-with-glibc2.27
- Python version: 3.9.5
- PyArrow version: 3.0.0
| 167 | Weights of model checkpoint not initialized for RobertaModel for Bertscore
When applying bertscore out of the box,
```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']```
Following the typical usage from https://huggingface.co/docs/datasets/loading_metrics.html
```
from datasets import load_metric
metric = load_metric('bertscore')
# Example of typical usage
for batch in dataset:
inputs, references = batch
predictions = model(inputs)
metric.add_batch(predictions=predictions, references=references)
score = metric.compute(lang="en")
#score = metric.compute(model_type="roberta-large") # gives the same error
```
I am concerned about this because my usage shouldn't require any further fine-tuning and most people would expect to use BertScore out of the box? I realised the huggingface code is a wrapper around https://github.com/Tiiiger/bert_score, but I think this repo is anyway relying on the model code and weights from huggingface repo....
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.4.0-1041-aws-x86_64-with-glibc2.27
- Python version: 3.9.5
- PyArrow version: 3.0.0
Hi @suzyahyah, thanks for reporting.
The message you get is indeed not an error message, but a warning coming from Hugging Face `transformers`. The complete warning message is:
```
Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.dense.weight', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.bias', 'lm_head.layer_norm.weight']
- This IS expected if you are initializing RobertaModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
- This IS NOT expected if you are initializing RobertaModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
```
In this case, this behavior IS expected and you can safely ignore the warning message.
The reason is that you are just using RoBERTa to get the contextual embeddings of the input sentences/tokens, thus leaving away its head layer, whose weights are ignored.
Feel free to reopen this issue if you need further explanations. | [
-0.05955009534955025,
-0.36452993750572205,
0.09010979533195496,
0.12896977365016937,
0.42737650871276855,
0.07482706755399704,
0.27182042598724365,
0.12423485517501831,
0.12511010468006134,
0.13339757919311523,
-0.14913862943649292,
0.21721357107162476,
-0.14552895724773407,
-0.06434883177280426,
-0.07166079431772232,
-0.21964877843856812,
0.14321888983249664,
-0.04994399845600128,
-0.20941641926765442,
-0.17641249299049377,
-0.1302690953016281,
0.1864648312330246,
-0.2054327428340912,
0.12439875304698944,
-0.3585759401321411,
0.17077268660068512,
0.028424544259905815,
0.39523375034332275,
0.0566757395863533,
-0.4421781599521637,
0.42528170347213745,
-0.07058906555175781,
0.18297278881072998,
0.4877987802028656,
-0.00012287143908906728,
0.0064607784152030945,
0.22131876647472382,
-0.05408717691898346,
-0.03130991756916046,
-0.17735959589481354,
0.0916285291314125,
-0.24075452983379364,
0.12993787229061127,
-0.0846751481294632,
0.08507289737462997,
0.10984956473112106,
-0.09713134169578552,
-0.09177705645561218,
0.44311439990997314,
-0.020382216200232506,
0.07553419470787048,
0.6024700403213501,
0.07637275755405426,
-0.14947251975536346,
0.04606613889336586,
-0.13142819702625275,
0.031353190541267395,
0.7358229160308838,
-0.1531437337398529,
-0.020854726433753967,
-0.09856804460287094,
0.312739759683609,
0.10292781889438629,
0.32584866881370544,
0.24333149194717407,
-0.005074656568467617,
0.08904853463172913,
-0.02166815474629402,
-0.3173089921474457,
0.34720540046691895,
-0.09817139059305191,
-0.1046690121293068,
-0.2188250869512558,
-0.22436365485191345,
0.08870142698287964,
-0.24746981263160706,
0.12574583292007446,
-0.024698695167899132,
0.03812650591135025,
0.17200404405593872,
-0.2667013108730316,
-0.06690722703933716,
0.06769515573978424,
-0.084952712059021,
0.1294219195842743,
-0.1038847416639328,
-0.33123674988746643,
0.04944941774010658,
0.5595442056655884,
0.019406333565711975,
-0.49460989236831665,
-0.03328150510787964,
0.00935211032629013,
0.12921468913555145,
-0.19817401468753815,
0.02522268146276474,
0.25621297955513,
0.30807897448539734,
0.20156070590019226,
-0.04416949301958084,
0.09022060036659241,
0.0475662536919117,
-0.16662706434726715,
0.02274077758193016,
0.06567803025245667,
0.37088289856910706,
-0.10950813442468643,
-0.042444951832294464,
0.19510892033576965,
0.452181339263916,
0.2514280080795288,
-0.1259821355342865,
-0.20472252368927002,
-0.12008621543645859,
0.07826502621173859,
-0.1153675839304924,
0.06222037225961685,
-0.1527000218629837,
-0.4366087317466736,
-0.024324312806129456,
-0.047973208129405975,
-0.27469873428344727,
0.4581756293773651,
0.24768692255020142,
-0.0364999957382679,
0.20261049270629883,
-0.1451326310634613,
0.32586348056793213,
-0.19851648807525635,
0.0236695297062397,
-0.19167029857635498,
0.03599180653691292,
-0.5499860048294067,
0.11294052749872208,
0.15254034101963043,
-0.5149906277656555,
0.3871523439884186,
0.012197709642350674,
0.4898635745048523,
0.04773172736167908,
-0.13632549345493317,
-0.06477616727352142,
0.07563897222280502,
0.30327725410461426,
-0.05558238551020622,
0.3049115538597107,
0.3483037054538727,
0.24838010966777802,
-0.14361773431301117,
-0.11274268478155136,
-0.3222932517528534,
-0.4240386486053467,
0.3303534984588623,
-0.024922411888837814,
-0.2013016939163208,
-0.0021150074899196625,
-0.6301628947257996,
0.14431051909923553,
0.06164083257317543,
0.03863370046019554,
-0.08295045047998428,
0.13722839951515198,
-0.1097317636013031,
0.033897798508405685,
0.4619480073451996,
0.591277003288269,
-0.4559362530708313,
-0.3831551671028137,
0.017558550462126732,
-0.03730553761124611,
0.26249316334724426,
0.5404407382011414,
-0.26629650592803955,
0.24907666444778442,
-0.11831575632095337,
-0.13417015969753265,
-0.09093470126390457,
-0.2990625202655792,
-0.198713019490242,
-0.11494598537683487,
0.18600015342235565,
0.03293781727552414,
0.10318829864263535,
-0.38802632689476013,
-0.5773236751556396,
-0.1748378723859787,
0.07779376953840256,
-0.1614886224269867,
0.0580868162214756,
0.03551848232746124,
-0.2055668830871582,
-0.23086629807949066,
0.026876654475927353,
0.28113049268722534,
-0.14028485119342804,
0.09050990641117096,
-0.21362406015396118,
0.13753855228424072,
-0.08840832859277725,
-0.15370577573776245,
-0.04066222161054611,
-0.043706104159355164,
0.12335604429244995,
-0.14139814674854279,
0.05598379671573639,
0.19834020733833313,
-0.07951047271490097,
0.21824154257774353,
0.08722800761461258,
0.03309039771556854,
0.1745312362909317,
0.08005625754594803,
-0.27939045429229736,
-0.09997104853391647,
-0.05069611594080925,
-0.08245359361171722,
-0.08761826157569885,
0.07344695925712585,
0.043582815676927567,
-0.032528553158044815,
-0.45977652072906494,
-0.15592442452907562,
-0.36098712682724,
0.1635398268699646,
-0.16091962158679962,
0.051407165825366974,
-0.036112844944000244,
0.04686369746923447,
0.02990344911813736,
0.3188655972480774,
-0.0681624487042427,
-0.23375333845615387,
-0.006347319111227989,
0.3686247169971466,
0.03997812420129776,
-0.0959598571062088,
0.27410605549812317,
-0.003535449504852295,
0.17286191880702972,
-0.17399479448795319,
-0.11879240721464157,
-0.11496546864509583,
0.047663554549217224,
0.007863037288188934,
-0.1623605489730835,
0.3741195797920227,
-0.039869751781225204,
0.12987679243087769,
0.1223524808883667,
-0.08403144031763077,
0.1379922479391098,
0.042022403329610825,
-0.09507988393306732,
-0.21517598628997803,
0.12944887578487396,
0.12834252417087555,
0.5055891275405884,
-0.149333655834198,
-0.10570347309112549,
-0.5590139031410217,
-0.010148998349905014,
0.023932259529829025,
-0.02594970166683197,
0.222036212682724,
-0.2602643370628357,
0.07511502504348755,
-0.16238053143024445,
-0.3754824101924896,
0.39700502157211304,
0.04896446689963341,
0.044765084981918335,
-0.06419045478105545,
0.09653866291046143,
-0.16623085737228394,
-0.13417619466781616,
0.4033738970756531,
-0.13831518590450287,
0.05579839646816254,
-0.04708608612418175,
0.0068544019013643265,
-0.23365458846092224,
0.057776983827352524,
-0.010369537398219109,
0.04811609163880348,
-0.500684916973114,
0.24514387547969818,
0.09582270681858063,
0.21314814686775208,
-0.2310563623905182,
-0.6032776236534119,
-0.21742776036262512,
-0.12178794294595718,
0.0403483547270298,
-0.07381308078765869,
0.07247182726860046,
0.27598610520362854,
0.3919828534126282,
0.6198572516441345,
-0.05383538827300072,
0.16589640080928802,
-0.35069867968559265,
0.03073991648852825,
-0.08417357504367828,
0.0006195176392793655,
0.028195828199386597,
-0.2045600712299347,
-0.10483317077159882,
-0.3925684988498688,
-0.03182387351989746,
0.1536330282688141,
-0.34455177187919617,
0.18958759307861328,
-0.3401433229446411,
0.3981795907020569,
0.31738388538360596,
-0.06080421805381775,
-0.14565591514110565,
-0.2803341746330261,
0.37739136815071106,
-0.1592201590538025,
-0.001757623627781868,
-0.018113143742084503,
-0.13464044034481049,
-0.021919239312410355,
-0.03611818328499794,
0.0024109333753585815,
-0.04666275531053543,
-0.12000513076782227,
0.24882297217845917,
0.27807316184043884,
-0.13491439819335938,
-0.008102812804281712,
0.18773293495178223,
0.30907365679740906,
-0.29706475138664246,
-0.10219956934452057,
-0.1530171036720276,
-0.6735309362411499,
0.4321504831314087,
-0.10062616318464279,
-0.26235103607177734,
-0.16792449355125427,
0.031828153878450394,
0.3910508155822754,
-0.427337646484375,
-0.27766671776771545,
-0.3598842918872833,
-0.14452089369297028,
-0.06784040480852127,
0.13984502851963043,
0.39709895849227905,
-0.07788306474685669,
-0.14324843883514404,
0.02239971049129963,
-0.09999966621398926,
-0.1330256313085556,
0.09726011008024216,
-0.19076037406921387,
0.3079788088798523,
-0.33129554986953735,
0.23096808791160583,
-0.32568347454071045,
0.9833402633666992,
0.20836862921714783,
-0.23818056285381317,
0.5505977869033813,
0.1054871678352356,
0.37765270471572876,
-0.17890134453773499,
-0.16993612051010132,
0.025700481608510017,
-0.0011685043573379517,
0.2771575450897217,
0.18564295768737793,
0.11748374253511429,
0.25268709659576416,
-0.15811322629451752,
-0.22270537912845612,
-0.05870004743337631,
-0.18458999693393707,
-0.09227469563484192,
0.17440831661224365,
0.04045206308364868,
0.04340687021613121,
-0.10813941806554794,
-0.10121256113052368,
-0.060181137174367905,
0.26146844029426575,
0.3391655385494232,
0.21639424562454224,
-0.15307311713695526,
-0.15003487467765808,
0.0009450626093894243,
-0.5353899598121643,
0.23430675268173218,
-0.1653897613286972,
-0.10559729486703873,
0.2081575244665146,
-0.3411153256893158,
0.14828675985336304,
0.11747647821903229,
0.41497737169265747,
0.2935398817062378,
0.000463828444480896,
-0.23370769619941711,
-0.07403390109539032,
-0.25775423645973206,
-0.024577639997005463,
-0.29152917861938477,
-0.16116556525230408,
0.525793731212616,
0.47309061884880066,
-0.43165314197540283,
-0.08333129435777664,
0.15074996650218964,
-0.011031950823962688,
-0.0640360489487648,
-0.19303789734840393,
-0.5834458470344543,
0.024098604917526245,
-0.1810365915298462,
0.16330358386039734,
-0.010339383035898209,
0.14439260959625244,
-0.05863376706838608,
0.324463427066803,
-0.03693041205406189,
-0.20634183287620544,
0.25308746099472046,
0.368259996175766,
0.18761971592903137,
0.07788953930139542,
0.20665772259235382,
0.5539935827255249,
-0.00008802860975265503,
0.5046097040176392,
0.665799081325531,
-0.16011415421962738,
-0.37936609983444214,
0.17520958185195923,
0.26136377453804016,
0.17795687913894653,
0.24542155861854553,
-0.07183658331632614,
-0.14522495865821838,
0.21862947940826416,
0.38470959663391113,
-0.41839343309402466,
0.24986733496189117,
0.35491129755973816,
0.15096057951450348,
-0.19044625759124756,
-0.17206475138664246,
0.4522170424461365,
0.04339474067091942,
-0.011008486151695251,
-0.05590426176786423,
0.3944801688194275,
0.025047026574611664,
0.19341304898262024,
0.13150537014007568,
0.9412796497344971,
-0.14044523239135742,
0.28943386673927307,
0.2644694447517395,
0.3819970488548279,
0.43472981452941895,
0.07802647352218628,
-0.04741807281970978,
-0.11103027313947678,
0.009981455281376839,
0.003927191719412804,
-0.08043172210454941,
0.1772284209728241,
0.03300324082374573,
-0.14410486817359924,
0.30685120820999146,
-0.1944562941789627,
0.0006029121577739716,
-0.296668142080307,
-0.022542789578437805,
-0.05082930624485016,
-0.2607230544090271,
-0.30465078353881836,
-0.03994343429803848,
0.20541411638259888,
0.4303843080997467,
-0.04038199037313461,
-0.05318528413772583,
0.033614616841077805,
-0.3173627257347107,
-0.042304642498493195,
0.10695313662290573,
-0.023502007126808167,
-0.1178589016199112,
0.4349120855331421,
0.00377625972032547,
0.2492847740650177,
0.06360471993684769,
0.6500433683395386,
0.05484246090054512,
-0.2759638726711273,
0.3410850167274475,
-0.026058293879032135,
-0.027199361473321915,
-0.15030677616596222,
0.0005938084796071053,
0.21956360340118408,
0.09232167154550552,
-0.16725419461727142,
-0.0031070858240127563,
-0.07321719825267792,
-0.003442388027906418,
-0.26016634702682495,
0.01994653418660164,
0.1987617462873459,
-0.36437079310417175,
0.08521337807178497,
0.16905346512794495,
0.12562361359596252,
-0.09792932868003845,
0.01587856188416481,
0.0073380544781684875,
-0.08042198419570923,
0.08515411615371704,
0.14134497940540314,
-0.2557504177093506,
-0.1532669961452484,
0.4424971342086792,
-0.35055363178253174,
0.07702602446079254,
0.4665473699569702,
-0.15390238165855408,
-0.12734529376029968,
0.09904547780752182,
-0.27186650037765503,
0.7606894373893738,
-0.8098625540733337,
-0.006164790131151676,
0.44670164585113525,
0.16769935190677643,
0.1587516963481903,
0.48199981451034546,
0.4868231415748596,
-0.17040014266967773,
-0.09273228794336319,
-0.13184754550457,
-0.28671327233314514,
0.13729840517044067,
-0.13103875517845154,
0.00912356749176979,
-0.0741153210401535,
0.15044143795967102,
0.07577498257160187,
0.3769184947013855,
-0.16603098809719086,
0.13142314553260803,
0.04327297955751419,
-0.10043714940547943,
-0.06263532489538193,
-0.024275757372379303,
0.5027925968170166,
0.07487063109874725,
-0.02758919447660446,
0.02371261641383171,
-0.21352000534534454,
-0.051927097141742706,
-0.3896523118019104,
0.16085407137870789,
0.014339872635900974,
-0.24315153062343597,
0.03143393620848656,
0.09870046377182007,
-0.029940031468868256,
-0.2585274577140808,
-0.015945525839924812,
-0.07647739350795746,
0.09711868315935135,
-0.11209546774625778,
0.5111290216445923,
0.008967753499746323,
-0.0662013590335846,
-0.14083363115787506,
0.14277276396751404,
0.0031546205282211304,
0.23349404335021973,
-0.17554716765880585,
-0.1201866865158081,
-0.04540780186653137,
0.11871584504842758,
0.05547112971544266,
0.37732481956481934,
0.0398186556994915,
-0.004697225987911224,
0.047022659331560135,
-0.01088966429233551,
-0.11050000786781311,
0.35589587688446045,
0.3031350374221802,
-0.08427810668945312,
-0.20951785147190094,
0.22649499773979187,
0.04457523673772812,
-0.23690742254257202,
-0.09327035397291183,
-0.16198280453681946,
0.26364782452583313,
-0.008569058030843735,
0.2554134726524353,
0.17255374789237976,
0.30137747526168823,
0.09278024733066559,
-0.03704623878002167,
0.05614664405584335,
0.03793381154537201,
-0.06547293066978455,
0.20983530580997467,
-0.1669711023569107,
0.2181403785943985,
0.7928685545921326,
0.20758874714374542,
0.2908722460269928,
0.18033677339553833,
-0.16503393650054932,
0.4212489128112793,
-0.43395447731018066,
0.14944839477539062,
-0.24490946531295776,
-0.5602256655693054,
-0.09037886559963226,
0.1666412055492401,
0.1425827145576477,
-0.1524409055709839,
-0.19337156414985657,
0.7876695990562439,
-0.0848463922739029,
0.050920821726322174,
-0.18169502913951874,
0.20015203952789307,
0.07819216698408127,
-0.5429595708847046,
-0.06517194956541061,
-0.12709397077560425,
0.023090384900569916,
-0.05504776909947395,
0.025203179568052292,
-0.11963300406932831,
0.3264281749725342,
-0.05051289498806,
-0.05696393549442291,
-0.17904144525527954,
-0.6971859931945801,
0.23219093680381775,
0.22785159945487976,
-0.05209147930145264,
0.0736197680234909,
0.3492473363876343,
-0.14551545679569244,
0.2686408758163452,
0.4473620653152466,
0.4319785237312317,
0.12885898351669312,
0.22525852918624878,
-0.057014379650354385,
0.050385650247335434,
0.18688693642616272,
-0.1474187970161438,
0.43919119238853455,
0.23233471810817719,
0.1657160371541977,
0.04753584787249565,
0.052257053554058075,
-0.17268991470336914,
0.1441650092601776,
-0.362040638923645,
0.4175055921077728,
-0.26809337735176086,
0.47268927097320557,
-0.27227696776390076,
0.13673809170722961,
-0.35823941230773926,
0.15176056325435638,
-0.35639187693595886,
0.6355636715888977,
0.15263164043426514,
-0.0697697326540947,
-0.09933896362781525,
-0.1545821577310562,
-0.014133918099105358,
0.15269078314304352,
0.5158995985984802,
0.3221861720085144,
-0.12461981922388077,
-0.5601332187652588,
-0.06785713881254196,
-0.5862093567848206,
0.10262210667133331,
-0.03933997079730034,
0.3152082562446594,
-0.040728408843278885,
0.028272895142436028,
-0.07195983082056046,
0.15203642845153809,
-0.016885459423065186,
-0.390032559633255,
-0.2657375931739807,
-0.15659815073013306,
-0.12699536979198456,
0.08411233872175217,
-0.5294063091278076,
-0.0348447784781456,
-0.005897648632526398,
0.06179489940404892,
0.09427618235349655,
0.04563872143626213,
-0.15669167041778564,
-0.0166817344725132,
-0.06487387418746948,
-0.07052437961101532,
0.35788866877555847,
0.18269307911396027,
0.008710377849638462,
0.31800025701522827,
0.014899145811796188,
-0.03702108561992645,
-0.11539563536643982,
-0.24762491881847382,
-0.14007726311683655,
-0.08103413134813309,
-0.18066705763339996,
0.0882505550980568,
-0.3646002411842346,
-0.2100066989660263,
-0.4426751136779785,
0.0865498036146164,
0.25469106435775757,
-0.2744082808494568,
-0.3757108151912689,
0.010778263211250305,
-0.02953205443918705,
-0.13683269917964935,
0.09297046810388565,
0.370993435382843,
0.04070959612727165,
0.3060777187347412,
-0.27776575088500977,
0.0099568460136652,
0.744199275970459,
-0.5834290981292725,
0.09641805291175842,
-0.1124396100640297,
0.048806458711624146,
0.27388623356819153,
-0.4745759069919586,
-0.9858579635620117,
0.23803511261940002,
0.2644088864326477,
0.1279473900794983,
-0.440033495426178,
0.1439383625984192,
-0.2524222731590271,
0.0990390032529831,
-0.16261157393455505,
0.23195423185825348,
-0.017027191817760468,
-0.2271023392677307,
0.031043197959661484,
-0.19647029042243958
] |
https://github.com/huggingface/datasets/issues/2569 | Weights of model checkpoint not initialized for RobertaModel for Bertscore | Hi @suzyahyah, I have created a Pull Request to filter out that warning message in this specific case, since the behavior is as expected and the warning message can only cause confusion for users (as in your case). | When applying bertscore out of the box,
```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']```
Following the typical usage from https://huggingface.co/docs/datasets/loading_metrics.html
```
from datasets import load_metric
metric = load_metric('bertscore')
# Example of typical usage
for batch in dataset:
inputs, references = batch
predictions = model(inputs)
metric.add_batch(predictions=predictions, references=references)
score = metric.compute(lang="en")
#score = metric.compute(model_type="roberta-large") # gives the same error
```
I am concerned about this because my usage shouldn't require any further fine-tuning and most people would expect to use BertScore out of the box? I realised the huggingface code is a wrapper around https://github.com/Tiiiger/bert_score, but I think this repo is anyway relying on the model code and weights from huggingface repo....
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.4.0-1041-aws-x86_64-with-glibc2.27
- Python version: 3.9.5
- PyArrow version: 3.0.0
| 38 | Weights of model checkpoint not initialized for RobertaModel for Bertscore
When applying bertscore out of the box,
```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']```
Following the typical usage from https://huggingface.co/docs/datasets/loading_metrics.html
```
from datasets import load_metric
metric = load_metric('bertscore')
# Example of typical usage
for batch in dataset:
inputs, references = batch
predictions = model(inputs)
metric.add_batch(predictions=predictions, references=references)
score = metric.compute(lang="en")
#score = metric.compute(model_type="roberta-large") # gives the same error
```
I am concerned about this because my usage shouldn't require any further fine-tuning and most people would expect to use BertScore out of the box? I realised the huggingface code is a wrapper around https://github.com/Tiiiger/bert_score, but I think this repo is anyway relying on the model code and weights from huggingface repo....
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.4.0-1041-aws-x86_64-with-glibc2.27
- Python version: 3.9.5
- PyArrow version: 3.0.0
Hi @suzyahyah, I have created a Pull Request to filter out that warning message in this specific case, since the behavior is as expected and the warning message can only cause confusion for users (as in your case). | [
-0.1506304144859314,
-0.2975347638130188,
0.07905328273773193,
0.051351793110370636,
0.4647553563117981,
0.04057660698890686,
0.19793552160263062,
0.19078654050827026,
0.13858544826507568,
0.2084493488073349,
-0.13037703931331635,
0.28699204325675964,
-0.12756797671318054,
-0.08662132173776627,
-0.12382152676582336,
-0.19499894976615906,
0.11293138563632965,
-0.09181928634643555,
-0.20666217803955078,
-0.17726220190525055,
-0.16807273030281067,
0.10757791250944138,
-0.22707699239253998,
0.08774691075086594,
-0.2647552490234375,
0.11802393943071365,
0.11581739783287048,
0.39998680353164673,
-0.0279445368796587,
-0.5496959686279297,
0.4129523038864136,
-0.10248075425624847,
0.18323208391666412,
0.4321978986263275,
-0.0001184049979201518,
-0.03506194427609444,
0.2312023937702179,
-0.06429605931043625,
-0.027250196784734726,
-0.17994289100170135,
0.07141532003879547,
-0.21532638370990753,
0.19079013168811798,
-0.0851062685251236,
0.09625103324651718,
0.11065223067998886,
-0.0638517364859581,
-0.09772800654172897,
0.29698771238327026,
0.01470035407692194,
0.10609616339206696,
0.5801308155059814,
0.09152461588382721,
-0.2033587396144867,
0.05621415376663208,
-0.2434060126543045,
-0.010716995224356651,
0.7996897101402283,
-0.11941248178482056,
0.02111387811601162,
-0.17554906010627747,
0.3603537082672119,
0.04699987918138504,
0.413155734539032,
0.2314978539943695,
-0.04505538567900658,
0.14585986733436584,
-0.014075923711061478,
-0.28619104623794556,
0.36335083842277527,
-0.04959309846162796,
-0.09925452619791031,
-0.14347758889198303,
-0.17046132683753967,
0.17011141777038574,
-0.3235531449317932,
0.1518206000328064,
-0.02073810063302517,
-0.004940706305205822,
0.17676705121994019,
-0.1856810301542282,
-0.009638583287596703,
0.03920675814151764,
-0.02558550238609314,
0.11223393678665161,
-0.10806556046009064,
-0.30888238549232483,
0.07157949358224869,
0.5233258605003357,
0.021914683282375336,
-0.5161138772964478,
0.044251956045627594,
-0.01583881303668022,
0.10502494871616364,
-0.22155560553073883,
0.037188008427619934,
0.2768486738204956,
0.35564103722572327,
0.29213589429855347,
-0.051609523594379425,
0.13288277387619019,
0.04957990348339081,
-0.16774846613407135,
0.07359690219163895,
0.061930447816848755,
0.32985761761665344,
-0.09365791827440262,
-0.15041865408420563,
0.18545101583003998,
0.4818689227104187,
0.2026163786649704,
-0.14685773849487305,
-0.15227146446704865,
-0.15163566172122955,
0.1331290602684021,
-0.013411097228527069,
0.05158616602420807,
-0.15035724639892578,
-0.48848241567611694,
0.02939838543534279,
-0.08619635552167892,
-0.2325773686170578,
0.45408710837364197,
0.2400120496749878,
-0.028796929866075516,
0.1914059817790985,
-0.2195286750793457,
0.3667713403701782,
-0.16752447187900543,
-0.0024106455966830254,
-0.21218308806419373,
0.020095156505703926,
-0.5994923114776611,
0.045191556215286255,
0.16704079508781433,
-0.5211149454116821,
0.4407985508441925,
0.08610238134860992,
0.4616363048553467,
0.04390527307987213,
-0.11341220140457153,
-0.12419053912162781,
0.10503306239843369,
0.3450675904750824,
0.027523059397935867,
0.29160505533218384,
0.33216431736946106,
0.2506282925605774,
-0.1550833284854889,
-0.08651270717382431,
-0.3208601176738739,
-0.44427239894866943,
0.3166169226169586,
0.012765171006321907,
-0.12097352743148804,
-0.05385696887969971,
-0.6307350397109985,
0.16847681999206543,
0.06122622638940811,
0.05871041491627693,
-0.06801324337720871,
0.11154124140739441,
-0.18671593070030212,
-0.014588206075131893,
0.3714066743850708,
0.5238420367240906,
-0.523571252822876,
-0.29534029960632324,
0.022486619651317596,
-0.05665777996182442,
0.3146733045578003,
0.4856603443622589,
-0.2403755933046341,
0.22530779242515564,
-0.11065556854009628,
-0.1308024525642395,
-0.005189098417758942,
-0.3240642845630646,
-0.19947881996631622,
-0.055203042924404144,
0.1629430055618286,
0.002975326031446457,
0.1301804780960083,
-0.4134737551212311,
-0.558442234992981,
-0.1973026990890503,
0.1586219221353531,
-0.1974613219499588,
0.07872282713651657,
0.0256363432854414,
-0.23314279317855835,
-0.2044692188501358,
0.014170348644256592,
0.24078737199306488,
-0.11708767712116241,
0.034644655883312225,
-0.15646356344223022,
0.04613104462623596,
-0.05783277004957199,
-0.11703941226005554,
-0.01203263271600008,
-0.10535551607608795,
0.13017509877681732,
-0.16963407397270203,
0.015213722363114357,
0.12394396215677261,
-0.06218796223402023,
0.2335907220840454,
0.1463433802127838,
0.08461324870586395,
0.2386510670185089,
0.06924750655889511,
-0.29491403698921204,
-0.08956439793109894,
-0.05793565884232521,
-0.0117453932762146,
-0.04916560649871826,
0.009605973958969116,
0.014750208705663681,
0.04315857216715813,
-0.42498961091041565,
-0.2600962519645691,
-0.4469790458679199,
0.1492612659931183,
-0.061876218765974045,
-0.05074344947934151,
-0.05950614809989929,
0.024960722774267197,
0.06140443682670593,
0.27704986929893494,
-0.02010492980480194,
-0.11347242444753647,
-0.01629476062953472,
0.3425475060939789,
0.07042555510997772,
-0.12815414369106293,
0.28771448135375977,
-0.004189655184745789,
0.1435239166021347,
-0.07786058634519577,
-0.08908890187740326,
-0.15505290031433105,
0.05745045840740204,
0.016623355448246002,
-0.11317118257284164,
0.37347346544265747,
0.020065005868673325,
0.09969915449619293,
0.07357299327850342,
-0.06869849562644958,
0.18849925696849823,
0.03055543825030327,
0.009034564718604088,
-0.2739720046520233,
0.155257448554039,
0.13753151893615723,
0.43465089797973633,
-0.16440218687057495,
-0.14818118512630463,
-0.48366743326187134,
0.009009681642055511,
0.0718986839056015,
0.03095419332385063,
0.20669934153556824,
-0.21378591656684875,
0.03227899968624115,
-0.1540059745311737,
-0.3394290506839752,
0.441845178604126,
0.07573879510164261,
0.13170775771141052,
-0.06684727221727371,
0.05659033730626106,
-0.22837357223033905,
-0.09160063415765762,
0.36430734395980835,
-0.08371002227067947,
0.12232290953397751,
-0.014459941536188126,
0.005025404505431652,
-0.2743751108646393,
0.11039911210536957,
0.053331390023231506,
0.11160143464803696,
-0.48862847685813904,
0.211194708943367,
0.016063963994383812,
0.20750638842582703,
-0.22774305939674377,
-0.5473068952560425,
-0.1978655606508255,
-0.1674133986234665,
0.11088760197162628,
0.003550667315721512,
0.015551600605249405,
0.2458345890045166,
0.3519868850708008,
0.5763665437698364,
-0.010539306327700615,
0.18207938969135284,
-0.3252362608909607,
0.037951815873384476,
-0.08243539929389954,
0.03481533005833626,
0.021281402558088303,
-0.13955271244049072,
-0.03698606789112091,
-0.2842591106891632,
-0.06856922805309296,
0.1353873759508133,
-0.31678256392478943,
0.16295158863067627,
-0.32255005836486816,
0.4349205791950226,
0.3414086699485779,
-0.07392671704292297,
-0.13793060183525085,
-0.24127799272537231,
0.35525718331336975,
-0.17376695573329926,
-0.014219831675291061,
-0.04596732556819916,
-0.1685473769903183,
-0.0038150136824697256,
-0.04159710183739662,
-0.05529167503118515,
-0.04870673269033432,
-0.15754957497119904,
0.18592530488967896,
0.2891164720058441,
-0.10520736873149872,
-0.11520379036664963,
0.1889694482088089,
0.2362825870513916,
-0.3005894720554352,
-0.10017246752977371,
-0.2634638845920563,
-0.7119252681732178,
0.3826668858528137,
-0.13973036408424377,
-0.2567562460899353,
-0.10221084952354431,
0.089885413646698,
0.41234567761421204,
-0.40592819452285767,
-0.3205481171607971,
-0.41461336612701416,
-0.08388224244117737,
-0.010427221655845642,
0.11211194843053818,
0.3206903338432312,
-0.1259181797504425,
-0.16577313840389252,
-0.04244336858391762,
-0.16631647944450378,
-0.05978087708353996,
0.08706342428922653,
-0.28373387455940247,
0.3143172562122345,
-0.33726632595062256,
0.22765982151031494,
-0.2759475111961365,
0.9847341775894165,
0.288479745388031,
-0.23260952532291412,
0.6071634292602539,
0.12879504263401031,
0.3356272578239441,
-0.24866744875907898,
-0.16450417041778564,
0.08057181537151337,
-0.006294846534729004,
0.30269569158554077,
0.2106640338897705,
0.03295695036649704,
0.2064100205898285,
-0.12477526068687439,
-0.2830566465854645,
-0.01794903166592121,
-0.21005038917064667,
-0.051495812833309174,
0.11634077876806259,
-0.040766023099422455,
0.04948851093649864,
-0.11923083662986755,
-0.08300171792507172,
-0.09481246769428253,
0.24191683530807495,
0.38547027111053467,
0.1510196030139923,
-0.15350446105003357,
-0.17041867971420288,
0.04129674285650253,
-0.6059452295303345,
0.23025062680244446,
-0.14673221111297607,
-0.06992378830909729,
0.18003785610198975,
-0.29582634568214417,
0.16276949644088745,
0.15405850112438202,
0.3248283863067627,
0.14942696690559387,
0.043197691440582275,
-0.22968247532844543,
0.043907009065151215,
-0.19998757541179657,
-0.009032610803842545,
-0.2797450125217438,
-0.09043261408805847,
0.5518621206283569,
0.35483691096305847,
-0.4318069815635681,
-0.12618643045425415,
0.15287216007709503,
-0.06108567491173744,
-0.021894101053476334,
-0.21798181533813477,
-0.5934866070747375,
0.027804724872112274,
-0.1854325234889984,
0.20328980684280396,
0.03515724092721939,
0.18934425711631775,
-0.09607136994600296,
0.2732440233230591,
-0.018780121579766273,
-0.1408814787864685,
0.2616775929927826,
0.29278528690338135,
0.1352369487285614,
0.14937451481819153,
0.24913769960403442,
0.4505406618118286,
0.08211512118577957,
0.5949647426605225,
0.6329044699668884,
-0.14012578129768372,
-0.31485188007354736,
0.1595425307750702,
0.2627011835575104,
0.17856347560882568,
0.23281744122505188,
-0.073076032102108,
-0.056422896683216095,
0.142825648188591,
0.366260290145874,
-0.3818342387676239,
0.23719805479049683,
0.3204716444015503,
0.12419296056032181,
-0.16494549810886383,
-0.15844818949699402,
0.47489216923713684,
0.04544680193066597,
-0.06170372664928436,
0.00830155611038208,
0.3129751682281494,
-0.008951593190431595,
0.18397115170955658,
0.14597663283348083,
0.8244405388832092,
-0.06994226574897766,
0.23991568386554718,
0.3293840289115906,
0.4202502965927124,
0.33644890785217285,
0.056055933237075806,
-0.058870524168014526,
-0.12747153639793396,
0.02777356281876564,
0.01963808201253414,
-0.0679951012134552,
0.17381897568702698,
0.0013344548642635345,
-0.1454504430294037,
0.3617592453956604,
-0.21765591204166412,
-0.05773664638400078,
-0.2969801425933838,
-0.031265582889318466,
-0.17563386261463165,
-0.27348634600639343,
-0.32899239659309387,
-0.010720539838075638,
0.19909876585006714,
0.40059325098991394,
-0.030547164380550385,
-0.052618905901908875,
0.08237840235233307,
-0.29891669750213623,
-0.0793270394206047,
0.05630168318748474,
-0.04626079276204109,
-0.11336800456047058,
0.35033753514289856,
0.004677578806877136,
0.2855457663536072,
0.020818546414375305,
0.6671972274780273,
0.09813752770423889,
-0.2601710855960846,
0.3924075663089752,
0.051179856061935425,
-0.045767150819301605,
-0.1384093314409256,
-0.04499749094247818,
0.2247893065214157,
0.027337200939655304,
-0.1969129741191864,
-0.028254903852939606,
-0.0863884761929512,
0.0070140063762664795,
-0.22059310972690582,
-0.030705615878105164,
0.21827207505702972,
-0.4100443720817566,
0.03995880112051964,
0.18024572730064392,
0.2025475800037384,
-0.11378581821918488,
0.038015611469745636,
0.07324033975601196,
-0.05057450011372566,
0.12691634893417358,
0.1035781130194664,
-0.2443874627351761,
-0.14628741145133972,
0.46751224994659424,
-0.32120606303215027,
0.054471373558044434,
0.49012771248817444,
-0.17038047313690186,
-0.13748255372047424,
0.05774157494306564,
-0.21695730090141296,
0.758575975894928,
-0.7254887223243713,
-0.00979392509907484,
0.4498123526573181,
0.17673589289188385,
0.20234854519367218,
0.47363731265068054,
0.44591224193573,
-0.14228779077529907,
-0.0326177142560482,
-0.22696232795715332,
-0.26660916209220886,
0.12686236202716827,
-0.175266832113266,
-0.022427614778280258,
-0.10893752425909042,
0.1597597748041153,
0.057791322469711304,
0.3241814970970154,
-0.20593872666358948,
0.17099151015281677,
0.046371906995773315,
-0.08932231366634369,
-0.1259392350912094,
-0.015322424471378326,
0.5025226473808289,
0.13864506781101227,
0.0006158165633678436,
0.028989752754569054,
-0.2684347927570343,
-0.08923406898975372,
-0.4054858386516571,
0.15715669095516205,
-0.0036494433879852295,
-0.20235198736190796,
0.025734398514032364,
0.038717277348041534,
-0.0907377153635025,
-0.2082267850637436,
-0.02701694145798683,
-0.11161735653877258,
0.07859206199645996,
-0.12361966818571091,
0.5146753191947937,
0.06233013793826103,
0.008663520216941833,
-0.14307165145874023,
0.09945166110992432,
0.009099774062633514,
0.13244584202766418,
-0.24533292651176453,
-0.13301052153110504,
-0.08140000700950623,
0.11605212092399597,
0.03455652669072151,
0.27903151512145996,
0.08901429176330566,
-0.04147350788116455,
0.0757664367556572,
-0.042821820825338364,
-0.11399709433317184,
0.33178475499153137,
0.27642786502838135,
-0.11337950825691223,
-0.2586683928966522,
0.2536018490791321,
0.09402862191200256,
-0.26956576108932495,
-0.09590373188257217,
-0.16076108813285828,
0.3303247392177582,
0.007853053510189056,
0.18316194415092468,
0.1774292290210724,
0.27016115188598633,
0.07475150376558304,
-0.03773505240678787,
-0.07858168333768845,
-0.0005337931215763092,
-0.08521713316440582,
0.14700846374034882,
-0.16242796182632446,
0.19458621740341187,
0.7594563961029053,
0.2029120922088623,
0.3006827235221863,
0.27626702189445496,
-0.14810889959335327,
0.47548195719718933,
-0.3361106216907501,
0.07573426514863968,
-0.2649816870689392,
-0.6027317643165588,
-0.09621930122375488,
0.20042763650417328,
0.04495863616466522,
-0.15123677253723145,
-0.09511324763298035,
0.794179379940033,
-0.1164683923125267,
0.009147738106548786,
-0.21643398702144623,
0.16907058656215668,
0.02327844873070717,
-0.5665180087089539,
-0.19219940900802612,
-0.14654463529586792,
0.098166823387146,
-0.026695000007748604,
0.033682677894830704,
-0.035432279109954834,
0.3262619972229004,
-0.032540954649448395,
-0.07000869512557983,
-0.25722256302833557,
-0.6853576302528381,
0.24403142929077148,
0.24126651883125305,
-0.041725438088178635,
0.06308597326278687,
0.3763274550437927,
-0.1548975706100464,
0.2460983246564865,
0.4070383608341217,
0.46069276332855225,
0.15351781249046326,
0.21554945409297943,
-0.1659936159849167,
0.0658780038356781,
0.15386717021465302,
-0.1654476672410965,
0.42611604928970337,
0.3403889536857605,
0.18151220679283142,
0.1295982003211975,
0.051161766052246094,
-0.19312533736228943,
0.1973881721496582,
-0.2678561210632324,
0.44262945652008057,
-0.21310149133205414,
0.4483053684234619,
-0.24371850490570068,
0.19489768147468567,
-0.36820393800735474,
0.1679106205701828,
-0.34695136547088623,
0.688755989074707,
0.199506938457489,
-0.031715624034404755,
-0.04576012119650841,
-0.2536661922931671,
0.015308037400245667,
0.1602555364370346,
0.5332733988761902,
0.2655242681503296,
-0.19024312496185303,
-0.6655279397964478,
-0.028383933007717133,
-0.6237761974334717,
0.1466342806816101,
-0.08071623742580414,
0.3106873631477356,
-0.06881136447191238,
0.07194020599126816,
-0.07494846731424332,
0.20025509595870972,
0.0032364577054977417,
-0.4071143567562103,
-0.19277241826057434,
-0.08978034555912018,
-0.20409303903579712,
0.05719635263085365,
-0.5257986187934875,
-0.08846253901720047,
0.010854590684175491,
0.007926583290100098,
0.12539909780025482,
-0.056890033185482025,
-0.09773486852645874,
-0.05926906317472458,
-0.05063983425498009,
-0.024636564776301384,
0.41306206583976746,
0.25290408730506897,
0.03342265635728836,
0.3423548936843872,
0.004593789577484131,
-0.021417146548628807,
-0.12098616361618042,
-0.2568950355052948,
-0.14870356023311615,
-0.059331364929676056,
-0.15645863115787506,
0.09707485884428024,
-0.2969246506690979,
-0.14128868281841278,
-0.4015670120716095,
0.10559947043657303,
0.17893609404563904,
-0.2523505389690399,
-0.36883217096328735,
0.05236139893531799,
0.04182751476764679,
-0.09569509327411652,
0.03657384589314461,
0.36071181297302246,
0.06723438203334808,
0.3435562252998352,
-0.3030104339122772,
-0.09119349718093872,
0.757011890411377,
-0.5725844502449036,
0.0790632963180542,
-0.13140983879566193,
0.07408410310745239,
0.28225427865982056,
-0.46766576170921326,
-1.083158016204834,
0.27197253704071045,
0.2745969295501709,
0.12630203366279602,
-0.4521116614341736,
0.16268499195575714,
-0.2787550091743469,
0.1043330579996109,
-0.14924179017543793,
0.2096952646970749,
-0.009847082197666168,
-0.35212406516075134,
0.024411123245954514,
-0.2266327142715454
] |
https://github.com/huggingface/datasets/issues/2564 | concatenate_datasets for iterable datasets | It is probably worth noting here that the [documentation](https://huggingface.co/docs/datasets/process#concatenate) is misleading (indicating that it does work for IterableDatasets):
> You can also mix several datasets together by taking alternating examples from each one to create a new dataset. This is known as interleaving, and you can use it with [interleave_datasets()](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.interleave_datasets). **Both [interleave_datasets()](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.interleave_datasets) and [concatenate_datasets()](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.concatenate_datasets) will work with regular [Dataset](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.Dataset) and [IterableDataset](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.IterableDataset) objects**. Refer to the [Stream](https://huggingface.co/docs/datasets/stream#interleave) section for an example of how it’s used. | Currently `concatenate_datasets` only works for map-style `Dataset`.
It would be nice to have it work for `IterableDataset` objects as well.
It would simply chain the iterables of the iterable datasets. | 74 | concatenate_datasets for iterable datasets
Currently `concatenate_datasets` only works for map-style `Dataset`.
It would be nice to have it work for `IterableDataset` objects as well.
It would simply chain the iterables of the iterable datasets.
It is probably worth noting here that the [documentation](https://huggingface.co/docs/datasets/process#concatenate) is misleading (indicating that it does work for IterableDatasets):
> You can also mix several datasets together by taking alternating examples from each one to create a new dataset. This is known as interleaving, and you can use it with [interleave_datasets()](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.interleave_datasets). **Both [interleave_datasets()](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.interleave_datasets) and [concatenate_datasets()](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.concatenate_datasets) will work with regular [Dataset](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.Dataset) and [IterableDataset](https://huggingface.co/docs/datasets/v2.2.1/en/package_reference/main_classes#datasets.IterableDataset) objects**. Refer to the [Stream](https://huggingface.co/docs/datasets/stream#interleave) section for an example of how it’s used. | [
-0.42505478858947754,
-0.45875322818756104,
-0.0037403125315904617,
0.14795123040676117,
0.11199157685041428,
0.22480997443199158,
0.049238406121730804,
0.08958259224891663,
-0.25724759697914124,
0.09672267735004425,
-0.33242371678352356,
0.24816831946372986,
-0.0842214971780777,
0.333571195602417,
-0.04174598306417465,
-0.05276170372962952,
0.08255079388618469,
0.01395127922296524,
-0.30067014694213867,
0.18189120292663574,
-0.3041509985923767,
0.4369633197784424,
-0.16429825127124786,
-0.14171504974365234,
-0.04174097627401352,
0.22142106294631958,
-0.294037789106369,
0.2091507613658905,
0.08757578581571579,
-0.32778531312942505,
0.405121386051178,
0.5679689049720764,
0.10944059491157532,
0.15705183148384094,
-0.0001053329324349761,
-0.01296095922589302,
0.13426244258880615,
-0.12942610681056976,
-0.3778243064880371,
-0.20560862123966217,
-0.22878342866897583,
-0.17307305335998535,
0.07869923859834671,
0.00995790958404541,
-0.11181475222110748,
-0.40739452838897705,
0.164213165640831,
-0.19216112792491913,
0.25518572330474854,
-0.19109416007995605,
0.20537321269512177,
0.0782024934887886,
0.2880301773548126,
-0.26754873991012573,
-0.23107022047042847,
0.17377471923828125,
-0.050648391246795654,
0.2725774049758911,
0.1486334502696991,
0.26788097620010376,
0.19524817168712616,
0.1394374668598175,
0.0865897685289383,
0.052595555782318115,
0.22959110140800476,
0.14529594779014587,
-0.28810542821884155,
-0.20000028610229492,
-0.024918556213378906,
0.3809199631214142,
0.2317306399345398,
-0.3121037483215332,
-0.2705966830253601,
-0.5106921195983887,
0.06639716774225235,
-0.23526659607887268,
0.003431849181652069,
0.06732387840747833,
0.19727398455142975,
0.08333273977041245,
-0.3181665539741516,
0.05514867976307869,
-0.16392236948013306,
0.1935681253671646,
0.2660333812236786,
0.18066443502902985,
-0.28627777099609375,
0.169538214802742,
0.43955785036087036,
-0.35000133514404297,
0.02179769054055214,
-0.22610346972942352,
-0.31325069069862366,
0.08450597524642944,
-0.31012362241744995,
-0.08205632865428925,
-0.006477363407611847,
0.22897139191627502,
0.5943498611450195,
0.1714998334646225,
0.04750969633460045,
0.1654144823551178,
0.0324600450694561,
0.07536980509757996,
0.30979305505752563,
-0.06488880515098572,
0.10907936096191406,
0.06889909505844116,
0.07067503035068512,
0.21790577471256256,
0.1877109706401825,
-0.16831985116004944,
0.08175219595432281,
-0.10517694801092148,
-0.24744299054145813,
-0.2522073984146118,
0.17597420513629913,
0.21431556344032288,
-0.0028781313449144363,
-0.35644766688346863,
-0.13957200944423676,
-0.13321980834007263,
0.09604115784168243,
0.05209701880812645,
0.14389126002788544,
0.07480880618095398,
0.0908164232969284,
0.20313265919685364,
0.287224680185318,
-0.011752720922231674,
-0.14901618659496307,
-0.19360369443893433,
0.06680700182914734,
0.248641699552536,
0.05879950150847435,
-0.5358595252037048,
0.1449301391839981,
0.15311172604560852,
0.23276425898075104,
0.1339746117591858,
-0.03554112836718559,
0.09820511937141418,
0.4007395803928375,
-0.017107460647821426,
0.04972635582089424,
-0.09120352566242218,
0.03285692259669304,
-0.17334863543510437,
-0.1775553971529007,
-0.33656084537506104,
-0.24153867363929749,
-0.2618074417114258,
-0.348205029964447,
0.17510144412517548,
-0.12839113175868988,
0.024184316396713257,
-0.1711033284664154,
0.6662048101425171,
-0.01861405372619629,
-0.053237184882164,
-0.09303555637598038,
0.02844376489520073,
-0.0991889014840126,
-0.1696724146604538,
0.2662080228328705,
0.26200634241104126,
0.08016303181648254,
-0.18147605657577515,
-0.022771982476115227,
-0.23420846462249756,
-0.09302455931901932,
0.2327680140733719,
-0.1963830292224884,
0.10944359004497528,
-0.45377159118652344,
0.06150318682193756,
-0.07196661084890366,
-0.15955860912799835,
0.041575558483600616,
0.16488227248191833,
0.08712545037269592,
0.3501571714878082,
0.05322705954313278,
-0.09763557463884354,
-0.06842643767595291,
-0.043644584715366364,
0.15542817115783691,
0.1411319375038147,
-0.2444189488887787,
-0.2368086576461792,
0.16029198467731476,
0.004467843100428581,
0.018676187843084335,
-0.03854259103536606,
-0.3661321699619293,
0.2761932909488678,
-0.07661312073469162,
-0.08773916214704514,
0.39594364166259766,
-0.35335224866867065,
0.126102477312088,
0.23368069529533386,
0.030369076877832413,
0.09396039694547653,
0.08357126265764236,
-0.17246761918067932,
-0.6763482689857483,
0.023007720708847046,
0.29624658823013306,
-0.0315905436873436,
-0.06930023431777954,
-0.2588147819042206,
0.13893023133277893,
-0.005403177812695503,
-0.26804473996162415,
-0.21850097179412842,
0.1837661862373352,
0.25792214274406433,
0.29863300919532776,
-0.16437409818172455,
-0.4457951486110687,
0.48724448680877686,
-0.0686725378036499,
-0.08360502123832703,
-0.5347611308097839,
0.04831014573574066,
0.293520450592041,
0.031880058348178864,
0.15999016165733337,
0.2874335050582886,
-0.10011526197195053,
-0.25046783685684204,
0.15741124749183655,
0.5930002927780151,
-0.327707439661026,
0.027129776775836945,
0.10032227635383606,
0.2959311008453369,
0.2276620864868164,
0.06961871683597565,
-0.30156731605529785,
-0.28920236229896545,
-0.06021751090884209,
-0.07117114961147308,
-0.1429229974746704,
0.46095824241638184,
-0.12242163717746735,
0.4071657955646515,
0.23165647685527802,
0.05234730988740921,
0.2946130931377411,
0.0005045458674430847,
-0.4765563905239105,
-0.28690189123153687,
0.0135871060192585,
-0.1875355988740921,
0.35034555196762085,
0.0773506835103035,
-0.47151169180870056,
0.2520870566368103,
0.5417571663856506,
0.13702543079853058,
-0.2101907730102539,
0.14570161700248718,
-0.2704857289791107,
0.04976833611726761,
0.10393491387367249,
0.14997166395187378,
0.37520065903663635,
0.20148269832134247,
0.15665455162525177,
0.13549110293388367,
0.023484129458665848,
-0.11951352655887604,
0.05723728984594345,
0.1604899764060974,
0.1812034398317337,
0.18584641814231873,
0.15311658382415771,
-0.1858452409505844,
-0.40398097038269043,
-0.22896718978881836,
-0.2297770231962204,
-0.23426932096481323,
-0.12673774361610413,
0.13433843851089478,
-0.2863864302635193,
-0.20859834551811218,
-0.14569057524204254,
-0.33241671323776245,
-0.28887420892715454,
-0.3947732746601105,
-0.16008087992668152,
0.44725656509399414,
-0.12282054126262665,
0.19473636150360107,
0.1786433756351471,
0.1659485101699829,
0.021038690581917763,
-0.06412971764802933,
-0.3969578742980957,
0.05681595206260681,
-0.009646650403738022,
0.08817681670188904,
-0.020220115780830383,
-0.45148807764053345,
0.27849528193473816,
-0.13552570343017578,
-0.029555436223745346,
-0.39615386724472046,
-0.17851169407367706,
0.2864110469818115,
-0.2870606780052185,
-0.14219427108764648,
0.4535919427871704,
-0.11452434957027435,
0.001939583569765091,
-0.45179733633995056,
0.37926074862480164,
0.12057219445705414,
-0.17973968386650085,
0.09097850322723389,
-0.04931357502937317,
-0.08577512204647064,
-0.14025795459747314,
-0.04506739228963852,
-0.058714233338832855,
-0.4019130766391754,
0.6525771617889404,
0.00415404886007309,
0.03438487648963928,
0.33536502718925476,
0.029445648193359375,
0.14844916760921478,
-0.32187941670417786,
0.0032228361815214157,
-0.2417253851890564,
-0.3879876732826233,
0.1936391144990921,
-0.38347959518432617,
-0.22277553379535675,
-0.12585629522800446,
-0.0829552710056305,
0.22226226329803467,
0.033831387758255005,
-0.012093529105186462,
-0.2324102371931076,
-0.11020839214324951,
0.12825123965740204,
-0.06636230647563934,
0.09654873609542847,
0.2804363965988159,
0.10341626405715942,
-0.07034429162740707,
-0.12715022265911102,
-0.11935098469257355,
0.33412352204322815,
-0.11830458790063858,
0.1821143925189972,
0.16781839728355408,
0.21131205558776855,
0.03940152749419212,
0.307405948638916,
0.630241870880127,
-0.03287430480122566,
0.27254587411880493,
-0.19350603222846985,
0.44764214754104614,
-0.14459779858589172,
-0.40520739555358887,
-0.011605627834796906,
-0.06065121293067932,
0.15718097984790802,
0.20258651673793793,
-0.0435170978307724,
0.17784486711025238,
-0.1657152771949768,
0.24958720803260803,
0.10777675360441208,
-0.32913264632225037,
-0.12495364248752594,
-0.006653670221567154,
0.24179494380950928,
-0.07559740543365479,
-0.21396195888519287,
0.008040457963943481,
0.01145629957318306,
-0.13974927365779877,
0.1534026861190796,
0.22391587495803833,
0.06606557220220566,
-0.44560936093330383,
-0.16618360579013824,
-0.623669445514679,
0.3927766680717468,
0.14124678075313568,
0.2123555839061737,
0.02964920923113823,
-0.2742924988269806,
-0.20839504897594452,
-0.09246300160884857,
0.7543283104896545,
0.14955177903175354,
-0.6210519075393677,
0.22341695427894592,
-0.2757663130760193,
-0.22053024172782898,
-0.010451074689626694,
0.05833137407898903,
0.3112054169178009,
0.23947231471538544,
0.5132403373718262,
-0.5446913242340088,
-0.30604088306427,
0.24825404584407806,
0.10455787181854248,
0.012720685452222824,
-0.044712863862514496,
-0.1789616197347641,
-0.2626511752605438,
-0.30855342745780945,
-0.3695901036262512,
0.0649014264345169,
0.39229366183280945,
-0.0629543587565422,
-0.16450953483581543,
-0.17957746982574463,
-0.3449660539627075,
0.11208425462245941,
0.12463138997554779,
0.2696200907230377,
0.23086771368980408,
0.3378266394138336,
0.3773864805698395,
0.30569779872894287,
0.32869452238082886,
0.43831902742385864,
0.07963037490844727,
-0.5523238778114319,
0.01960689015686512,
-0.028893090784549713,
0.4318166971206665,
-0.049106255173683167,
-0.2043168842792511,
0.20746752619743347,
0.13503539562225342,
0.13840968906879425,
-0.3745957911014557,
0.08597416430711746,
0.29021233320236206,
0.05633115768432617,
-0.5372613668441772,
-0.24783384799957275,
0.3442540764808655,
0.21089580655097961,
0.05210717022418976,
0.3537308871746063,
0.06825603544712067,
-0.3120250701904297,
-0.1454543173313141,
-0.05008929222822189,
0.5342773199081421,
-0.029517896473407745,
0.21988733112812042,
0.04102955013513565,
0.08512318134307861,
0.4530555307865143,
0.06785228848457336,
0.1576595902442932,
-0.13556475937366486,
-0.28919029235839844,
-0.011795928701758385,
-0.1266496479511261,
0.11205078661441803,
0.16408109664916992,
-0.2880556285381317,
0.08495126664638519,
0.04725988209247589,
0.15076960623264313,
-0.29084014892578125,
0.16156090795993805,
-0.3148781359195709,
-0.42232316732406616,
-0.34645822644233704,
0.18349197506904602,
0.13067425787448883,
-0.1093018501996994,
-0.09516631066799164,
-0.2327842116355896,
0.33470067381858826,
0.028795771300792694,
-0.15025290846824646,
0.03083541989326477,
-0.1660590022802353,
0.08241233229637146,
0.23114673793315887,
-0.18549677729606628,
-0.10434463620185852,
0.20390895009040833,
0.43542081117630005,
-0.19029957056045532,
-0.20104296505451202,
0.05809605121612549,
-0.13368546962738037,
-0.18719887733459473,
-0.44182074069976807,
-0.13814471662044525,
0.20989423990249634,
0.12118154019117355,
0.1601565182209015,
-0.07202481478452682,
0.3256038725376129,
-0.3764570355415344,
-0.0873648151755333,
0.09250566363334656,
-0.16073445975780487,
-0.28216123580932617,
0.023677388206124306,
0.32111209630966187,
0.023019958287477493,
-0.12850354611873627,
0.08780701458454132,
0.10955791175365448,
-0.08100523054599762,
0.01363229751586914,
-0.1658942550420761,
-0.13403330743312836,
-0.08584271371364594,
0.3242073357105255,
-0.10106033831834793,
-0.03362874314188957,
0.23575420677661896,
0.05728726461529732,
0.0455944761633873,
0.006548367440700531,
-0.12106795608997345,
0.14981871843338013,
-0.25722095370292664,
0.3661845326423645,
0.2140914350748062,
0.15992052853107452,
-0.23179450631141663,
0.4550009071826935,
-0.013290788978338242,
-0.043820299208164215,
0.06259442865848541,
-0.040685225278139114,
-0.37473350763320923,
0.25993263721466064,
-0.170469731092453,
0.4372112452983856,
-0.0006619244813919067,
0.31749391555786133,
0.031938664615154266,
0.13059979677200317,
-0.3638373017311096,
-0.3201533257961273,
-0.12698066234588623,
-0.11965504288673401,
0.28779342770576477,
-0.011567585170269012,
0.28191128373146057,
0.09242923557758331,
0.15010307729244232,
0.34039604663848877,
-0.11107829958200455,
-0.24548786878585815,
-0.07940120249986649,
0.09949533641338348,
0.28933125734329224,
-0.04253359138965607,
-0.031824372708797455,
-0.03815675526857376,
-0.19192881882190704,
-0.4756172001361847,
0.2197791188955307,
0.0347384512424469,
-0.040671929717063904,
0.13763560354709625,
-0.015321251004934311,
-0.03386466205120087,
0.20138365030288696,
-0.13205936551094055,
0.3046545386314392,
0.05123346671462059,
-0.09500537067651749,
0.04447804391384125,
-0.47954973578453064,
-0.15404435992240906,
0.10511457920074463,
0.20182552933692932,
0.4781543016433716,
-0.20399725437164307,
0.09882907569408417,
0.10632915794849396,
-0.4139326512813568,
0.009624958038330078,
0.4982074797153473,
0.47084301710128784,
-0.03217441961169243,
0.1892472505569458,
-0.004069923423230648,
0.14882083237171173,
-0.1609857827425003,
-0.08422467112541199,
0.012021038681268692,
0.06247679516673088,
0.07746335864067078,
0.12481420487165451,
0.10632176697254181,
0.06717406213283539,
0.12661941349506378,
-0.043400123715400696,
0.06820326298475266,
-0.16797888278961182,
0.2918475568294525,
-0.03653998300433159,
0.09927035868167877,
0.12024000287055969,
0.32354772090911865,
0.31170448660850525,
0.38015034794807434,
0.10588611662387848,
-0.2877020537853241,
0.17099058628082275,
-0.021560639142990112,
-0.05664706602692604,
0.5483412146568298,
-0.16539143025875092,
-0.05578063800930977,
0.01373697817325592,
0.2765046954154968,
0.16063818335533142,
-0.07139354944229126,
0.22438916563987732,
-0.17849236726760864,
-0.295402854681015,
-0.07238346338272095,
0.24457526206970215,
0.10498955845832825,
-0.3202238976955414,
0.15504640340805054,
-0.0840715765953064,
-0.17248117923736572,
-0.010988099500536919,
0.20228752493858337,
-0.33802640438079834,
0.5198162198066711,
-0.2014256864786148,
0.38167905807495117,
-0.6344044804573059,
0.18522757291793823,
0.3549754023551941,
0.2520521581172943,
-0.0882188230752945,
-0.024298733100295067,
0.38464999198913574,
-0.18073946237564087,
0.1908617913722992,
0.4598034620285034,
0.3098011314868927,
0.03451720252633095,
0.21982845664024353,
0.2426021248102188,
-0.22740021347999573,
0.0013723019510507584,
-0.08695918321609497,
0.12236742675304413,
-0.08372458815574646,
-0.26872751116752625,
0.40710073709487915,
0.15286372601985931,
-0.04401899129152298,
0.05685414373874664,
-0.17280375957489014,
0.2676033079624176,
-0.6079140901565552,
0.08463054895401001,
-0.19408154487609863,
0.08075843006372452,
0.0645240843296051,
0.03396366909146309,
-0.19810673594474792,
-0.12960264086723328,
0.18601204454898834,
-0.1225707083940506,
0.11580472439527512,
-0.13722941279411316,
0.13357771933078766,
0.2570471465587616,
0.3889266550540924,
0.20908181369304657,
0.19764283299446106,
-0.13446053862571716,
-0.44615989923477173,
-0.2142186313867569,
-0.19263291358947754,
0.15952183306217194,
0.1832496076822281,
-0.06729573011398315,
0.31371983885765076,
0.10121031105518341,
0.03827038034796715,
-0.03874526917934418,
-0.2187807857990265,
-0.06534439325332642,
-0.02422487735748291,
-0.10032612830400467,
-0.30891087651252747,
-0.047282323241233826,
-0.15307295322418213,
0.22463420033454895,
0.03556719422340393,
0.06915051490068436,
-0.08676325529813766,
0.00306122750043869,
-0.1317833662033081,
0.3283913731575012,
0.0897570550441742,
-0.22440794110298157,
0.048442162573337555,
0.424540251493454,
-0.07122091948986053,
-0.3285081088542938,
-0.041985757648944855,
-0.14340806007385254,
-0.36373886466026306,
-0.3668460547924042,
0.3173927366733551,
-0.12322993576526642,
0.07555551081895828,
-0.28709354996681213,
-0.12365934252738953,
-0.1076202243566513,
0.1284487247467041,
0.3929787278175354,
-0.04062610864639282,
-0.24014781415462494,
0.3487783670425415,
-0.10756423324346542,
0.0461132638156414,
0.06641143560409546,
0.5461515188217163,
-0.044247694313526154,
0.2735852003097534,
-0.02164483815431595,
-0.2961589992046356,
0.4435727298259735,
-0.28995901346206665,
-0.24447444081306458,
0.2374325841665268,
-0.08405528962612152,
0.3786969482898712,
-0.29563620686531067,
-0.43965232372283936,
0.003996551036834717,
0.4131309390068054,
-0.09021463245153427,
-0.10765048861503601,
0.339915931224823,
0.016334272921085358,
-0.15476365387439728,
-0.19115422666072845,
0.4178207218647003,
0.4390197992324829,
-0.42479610443115234,
0.2570459544658661,
-0.128114715218544
] |
https://github.com/huggingface/datasets/issues/2561 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` | Hi ! I just tried to reproduce what you said:
- create a local builder class
- use `load_dataset`
- update the builder class code
- use `load_dataset` again (with or without `ignore_verifications=True`)
And it creates a new cache, as expected.
What modifications did you do to your builder's code ? | ## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce the bug
- Create a local dataset builder class
- load the local builder class file using `load_dataset` and let the cache build
- update the file's content
- The cache should rebuilt.
## Expected results
With `ignore_verifications=True`, `load_dataset` should pick up existing cache.
## Actual results
Creates new cache.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
| 51 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce the bug
- Create a local dataset builder class
- load the local builder class file using `load_dataset` and let the cache build
- update the file's content
- The cache should rebuilt.
## Expected results
With `ignore_verifications=True`, `load_dataset` should pick up existing cache.
## Actual results
Creates new cache.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
Hi ! I just tried to reproduce what you said:
- create a local builder class
- use `load_dataset`
- update the builder class code
- use `load_dataset` again (with or without `ignore_verifications=True`)
And it creates a new cache, as expected.
What modifications did you do to your builder's code ? | [
-0.3804818391799927,
0.4886569380760193,
0.03263239935040474,
0.19356423616409302,
0.14466361701488495,
0.15072596073150635,
0.31927040219306946,
0.37488484382629395,
0.12904894351959229,
0.21833206713199615,
0.21496064960956573,
0.3630368411540985,
0.11989094316959381,
-0.2817022502422333,
0.051092397421598434,
0.27900582551956177,
0.11634331941604614,
0.1434955596923828,
0.21445336937904358,
-0.07715649902820587,
-0.028279336169362068,
-0.08005962520837784,
-0.04013815149664879,
-0.2102087289094925,
-0.45055437088012695,
0.1976117491722107,
0.052869074046611786,
0.08538272231817245,
-0.04055146872997284,
-0.4662293493747711,
0.3908793330192566,
0.2441876232624054,
-0.0562269426882267,
0.2653217911720276,
-0.00010906613169936463,
0.17606519162654877,
0.3208662271499634,
0.05264358967542648,
-0.39786919951438904,
0.13890857994556427,
-0.34742408990859985,
-0.4606624245643616,
0.022390227764844894,
-0.08848986774682999,
-0.21647211909294128,
-0.24908418953418732,
-0.14072616398334503,
-0.1915908306837082,
0.3035663962364197,
0.05648544803261757,
0.2780434191226959,
0.07508642971515656,
-0.10234006494283676,
-0.016868311911821365,
0.11995503306388855,
-0.05077548325061798,
-0.05361543968319893,
0.16099290549755096,
0.22537121176719666,
0.03616613149642944,
-0.43048322200775146,
0.3174597918987274,
-0.18966716527938843,
0.22037652134895325,
0.4303050637245178,
-0.097328782081604,
0.161103293299675,
-0.009329374879598618,
0.37734824419021606,
0.04149852693080902,
0.5871433615684509,
-0.32999157905578613,
-0.2986130714416504,
-0.2611529231071472,
-0.19443701207637787,
-0.015570548363029957,
0.23211956024169922,
-0.18326959013938904,
-0.2992415130138397,
0.17350420355796814,
-0.41386857628822327,
-0.27074065804481506,
0.06783303618431091,
-0.15597055852413177,
0.052880704402923584,
-0.25111904740333557,
0.09921517223119736,
-0.09261157363653183,
-0.08937783539295197,
0.16885130107402802,
0.4349324703216553,
-0.46860891580581665,
-0.07397298514842987,
0.2702968120574951,
-0.49891579151153564,
0.021963275969028473,
0.384590208530426,
0.3972643315792084,
0.23841014504432678,
0.30228984355926514,
-0.18992599844932556,
0.24092787504196167,
0.1860506683588028,
0.09683883935213089,
-0.0826026201248169,
0.3067304491996765,
0.041007958352565765,
-0.010967002250254154,
0.2831624150276184,
0.20312035083770752,
-0.5477036237716675,
-0.013798389583826065,
0.0638633668422699,
-0.2574615478515625,
0.5983974933624268,
-0.08989547938108444,
0.06806717813014984,
-0.3288724422454834,
-0.03164935111999512,
0.18898090720176697,
-0.0006035752594470978,
-0.1473221480846405,
0.22394722700119019,
0.2570383548736572,
-0.12948495149612427,
0.08504606783390045,
-0.25001150369644165,
-0.2127596139907837,
-0.34650763869285583,
-0.3544662594795227,
-0.398896187543869,
-0.2386137694120407,
0.02013969048857689,
0.367938369512558,
0.4855266511440277,
-0.5491027235984802,
0.3118242025375366,
0.24011312425136566,
-0.06151138246059418,
0.0796845555305481,
0.17534863948822021,
-0.13617122173309326,
0.17918942868709564,
0.2202349752187729,
-0.28894469141960144,
0.06605955213308334,
-0.02499847486615181,
-0.1994284689426422,
-0.07210634648799896,
0.3408290147781372,
-0.11442764848470688,
-0.7981072068214417,
0.009357776492834091,
0.17451085150241852,
-0.234095498919487,
0.05183003097772598,
0.2836398780345917,
0.11555548012256622,
0.4194813668727875,
-0.3065299689769745,
-0.13026443123817444,
-0.04790816456079483,
-0.2993509769439697,
-0.12702035903930664,
0.48682382702827454,
0.6713590025901794,
-0.43007686734199524,
0.09464164078235626,
-0.1242254301905632,
0.08808109164237976,
0.004568465054035187,
0.15418849885463715,
-0.3215014636516571,
0.41640380024909973,
-0.28502634167671204,
-0.44847410917282104,
0.20192314684391022,
-0.2974613606929779,
-0.8293768763542175,
0.27521422505378723,
0.178665429353714,
0.21410655975341797,
0.1349741667509079,
0.039904337376356125,
-0.08562135696411133,
-0.16016043722629547,
0.09799095243215561,
0.2460227608680725,
-0.20044194161891937,
0.0236592385917902,
-0.4308619797229767,
-0.19392728805541992,
0.06404860317707062,
0.07403282821178436,
0.008976604789495468,
0.24230891466140747,
0.055084340274333954,
0.11324327439069748,
0.028503574430942535,
0.008790172636508942,
0.1342497020959854,
0.38346683979034424,
0.14008422195911407,
-0.1290518194437027,
0.205185204744339,
-0.11185956746339798,
-0.45442652702331543,
0.41900208592414856,
-0.2235322743654251,
-0.1305980682373047,
0.04984848573803902,
-0.2996346354484558,
-0.1256820559501648,
-0.08230908215045929,
-0.41730985045433044,
-0.22513842582702637,
0.1377795934677124,
0.1733631193637848,
0.4545212686061859,
-0.06848160177469254,
-0.13432136178016663,
0.2744276225566864,
-0.17148315906524658,
0.15988518297672272,
-0.022832222282886505,
-0.06998277455568314,
-0.0787651389837265,
-0.06929609924554825,
-0.31382665038108826,
0.04108664393424988,
0.11417539417743683,
-0.059282224625349045,
-0.22257289290428162,
0.27926725149154663,
0.017024217173457146,
0.0943571925163269,
0.0013857558369636536,
0.1983228176832199,
0.04601440951228142,
0.16521330177783966,
0.12887504696846008,
-0.1250753551721573,
0.07814673334360123,
-0.09837780892848969,
-0.052702538669109344,
0.0726587101817131,
0.202135369181633,
0.17243042588233948,
-0.22499801218509674,
-0.31495532393455505,
0.2511094808578491,
-0.147652268409729,
0.08710093051195145,
-0.08845224976539612,
-0.04267481341958046,
0.06562668085098267,
0.47673630714416504,
0.22853600978851318,
-0.016481641680002213,
0.16827081143856049,
0.4884272813796997,
0.20007134974002838,
-0.2914838194847107,
0.022124283015727997,
-0.13314786553382874,
-0.21338391304016113,
0.17117111384868622,
0.3344316780567169,
0.3634786903858185,
0.1734696328639984,
0.20993223786354065,
0.06610901653766632,
-0.03271239995956421,
-0.16340743005275726,
0.06135738641023636,
-0.11185848712921143,
-0.1488318145275116,
0.4112388789653778,
0.32441580295562744,
0.15361593663692474,
-0.37775254249572754,
0.29127630591392517,
0.1497383713722229,
0.15186269581317902,
-0.013389430940151215,
0.1734289824962616,
-0.4750731289386749,
-0.11180773377418518,
-0.15495528280735016,
0.15575172007083893,
-0.3087695837020874,
-0.1850282847881317,
0.14129112660884857,
0.10243436694145203,
-0.00446198508143425,
0.22996890544891357,
-0.05963154137134552,
0.3149351477622986,
0.006020689383149147,
-0.5304802060127258,
-0.30739229917526245,
-0.0541430227458477,
-0.47077327966690063,
-0.01234598271548748,
0.4609989821910858,
-0.24269850552082062,
0.29196682572364807,
-0.2242351621389389,
-0.08389900624752045,
-0.20262564718723297,
-0.21203210949897766,
0.0953064113855362,
0.10663717985153198,
0.41238337755203247,
-0.17880845069885254,
-0.008273027837276459,
-0.04381660744547844,
0.029702048748731613,
0.2912225127220154,
-0.17169034481048584,
-0.17859084904193878,
-0.11132999509572983,
-0.08835219591856003,
0.14945067465305328,
-0.2810606062412262,
-0.20274803042411804,
0.011469416320323944,
-0.3783387839794159,
-0.12076954543590546,
0.14151141047477722,
0.06318645924329758,
0.19678539037704468,
-0.05823340639472008,
0.17488519847393036,
0.020582694560289383,
0.1483393758535385,
-0.26693835854530334,
-0.6465247869491577,
0.22831110656261444,
-0.24305500090122223,
-0.06688815355300903,
0.03841012343764305,
-0.30158716440200806,
0.11779125034809113,
-0.0815824344754219,
-0.49134379625320435,
-0.010552853345870972,
-0.4558912217617035,
0.30862435698509216,
-0.0715980976819992,
0.04447527602314949,
0.4206600487232208,
-0.0024625882506370544,
-0.03360056132078171,
-0.19086268544197083,
-0.31503060460090637,
0.12387707084417343,
-0.15814003348350525,
0.32997170090675354,
0.054192863404750824,
-0.042786553502082825,
0.13222478330135345,
0.5684077739715576,
0.1453552544116974,
-0.08034178614616394,
0.31595999002456665,
0.11882942169904709,
0.40343430638313293,
-0.3024224638938904,
-0.20682795345783234,
0.05617981404066086,
-0.048051849007606506,
-0.25863218307495117,
0.017970331013202667,
0.0922229066491127,
0.015353815630078316,
-0.1323775351047516,
-0.02414046600461006,
0.022135742008686066,
-0.2735553979873657,
0.0025213193148374557,
-0.3864325284957886,
0.20150667428970337,
0.44155076146125793,
0.176592618227005,
-0.18885576725006104,
-0.14169973134994507,
0.14989204704761505,
0.22547703981399536,
0.1601373851299286,
-0.045687783509492874,
0.06595617532730103,
0.23514676094055176,
-0.37018507719039917,
0.10267826914787292,
0.09848128259181976,
-0.06827514618635178,
0.07201460003852844,
0.0008161477744579315,
0.27459830045700073,
-0.07707929611206055,
0.2790733575820923,
-0.4338412880897522,
0.023402592167258263,
0.20773139595985413,
-0.04490203037858009,
0.04469391703605652,
-0.2526712715625763,
0.20969808101654053,
0.2986280024051666,
-0.15040166676044464,
0.27864179015159607,
-0.04007129743695259,
-0.25902146100997925,
0.06440918147563934,
0.3787700831890106,
-0.15122731029987335,
-0.40953782200813293,
-0.2608661651611328,
0.008099466562271118,
-0.1622660607099533,
0.09337573498487473,
-0.18087249994277954,
0.2914334833621979,
-0.009764202870428562,
-0.0358072966337204,
-0.10100731253623962,
0.3268049657344818,
-0.17036335170269012,
0.01095922477543354,
0.28110384941101074,
-0.14580373466014862,
0.3419138789176941,
0.06042656674981117,
0.0640217736363411,
0.17099113762378693,
0.4756256341934204,
-0.08768488466739655,
-0.20817351341247559,
-0.16588526964187622,
-0.025296004489064217,
-0.08273664861917496,
0.2340683937072754,
-0.08051754534244537,
-0.16071191430091858,
0.2102658748626709,
-0.08688543736934662,
-0.09371650218963623,
-0.08704164624214172,
0.012891476973891258,
-0.02368704229593277,
0.08386436849832535,
-0.47132763266563416,
0.16764335334300995,
0.124203622341156,
-0.051805127412080765,
0.3790419399738312,
-0.21872909367084503,
0.027523811906576157,
0.2006242573261261,
0.11424867808818817,
0.6171654462814331,
0.12211591005325317,
-0.0726751983165741,
0.0029369909316301346,
-0.2452915906906128,
0.34150466322898865,
-0.3462284207344055,
0.2468888759613037,
-0.2816809415817261,
-0.280345618724823,
0.17270614206790924,
-0.19245819747447968,
0.23646393418312073,
0.08977384865283966,
-0.0701666921377182,
0.13362157344818115,
-0.08850762248039246,
0.28170862793922424,
-0.010707315057516098,
0.22855225205421448,
-0.11761903017759323,
-0.14447924494743347,
-0.019570961594581604,
0.21384695172309875,
0.01248558983206749,
0.3353182375431061,
-0.05826006084680557,
0.01590093970298767,
0.1801535040140152,
-0.08082239329814911,
-0.1948031485080719,
-0.1231331154704094,
-0.11868314445018768,
0.0012877751141786575,
0.28404027223587036,
-0.20372453331947327,
0.015156731009483337,
0.06492608785629272,
0.22967423498630524,
0.11147405207157135,
-0.18713325262069702,
0.16029669344425201,
0.13677026331424713,
0.3419645428657532,
-0.1230107918381691,
-0.29722335934638977,
0.35277730226516724,
-0.0682598203420639,
-0.16472822427749634,
-0.19539427757263184,
-0.5220223069190979,
-0.4138992428779602,
0.2600608170032501,
0.1896180808544159,
0.3121991753578186,
0.07803250849246979,
0.10040841996669769,
-0.014092981815338135,
0.28694289922714233,
-0.20698711276054382,
0.21226578950881958,
0.10766938328742981,
-0.16703715920448303,
0.14764609932899475,
-0.33990275859832764,
-0.23505021631717682,
-0.05206682160496712,
0.31693214178085327,
0.22469699382781982,
-0.13402657210826874,
0.4436529576778412,
-0.24589085578918457,
-0.0958603173494339,
-0.13396041095256805,
-0.028145775198936462,
0.15622565150260925,
-0.2629674971103668,
-0.035755760967731476,
0.042579565197229385,
0.06248684227466583,
0.16572605073451996,
-0.04006582871079445,
0.060091160237789154,
0.05448776111006737,
-0.32692191004753113,
-0.15266068279743195,
-0.3810039758682251,
-0.2966793179512024,
-0.10818694531917572,
0.033530160784721375,
0.004141643643379211,
-0.013323850929737091,
0.29013893008232117,
0.3709743916988373,
-0.3479485809803009,
-0.07775543630123138,
-0.2537517845630646,
0.10065939277410507,
-0.3202539384365082,
0.16991671919822693,
0.07372356206178665,
-0.058310117572546005,
-0.016535770148038864,
0.09428215026855469,
-0.30262213945388794,
-0.2772940397262573,
-0.012970090843737125,
0.1127234399318695,
0.05480758845806122,
0.2695973813533783,
-0.10764903575181961,
0.04047377407550812,
0.023292919620871544,
-0.04819740355014801,
0.21926383674144745,
-0.13497966527938843,
-0.13807284832000732,
0.22050738334655762,
0.1599506437778473,
0.3212195038795471,
-0.09972622245550156,
-0.08776998519897461,
-0.11915682256221771,
0.23506470024585724,
0.033585432916879654,
0.023946546018123627,
0.03686252608895302,
-0.01751004159450531,
0.1461343616247177,
-0.029881127178668976,
-0.15135271847248077,
0.15052802860736847,
0.2623201310634613,
-0.2599431276321411,
0.007040116935968399,
0.3197336494922638,
0.22336924076080322,
0.10864953696727753,
0.0006462245946750045,
-0.13641828298568726,
0.3405468463897705,
0.25842514634132385,
-0.19667313992977142,
-0.23782633244991302,
0.38854727149009705,
-0.05080660432577133,
0.08533628284931183,
-0.014569304883480072,
0.43740853667259216,
-0.21116584539413452,
0.22430720925331116,
0.14987137913703918,
0.29368144273757935,
-0.43186265230178833,
0.01274388749152422,
0.3747749924659729,
0.1390734165906906,
0.062183182686567307,
0.2875870168209076,
0.0014003198593854904,
0.0061591193079948425,
0.5597169995307922,
-0.07446982711553574,
0.1425115168094635,
0.004276093095541,
0.2571493685245514,
-0.18129873275756836,
-0.5544180870056152,
0.43941110372543335,
0.12599368393421173,
-0.11689156293869019,
-0.19938087463378906,
-0.23023498058319092,
0.27912065386772156,
0.14579853415489197,
-0.23195897042751312,
-0.19670899212360382,
0.18304045498371124,
-0.3216516673564911,
0.07360555231571198,
0.0673253983259201,
-0.06098933517932892,
0.1429518312215805,
0.11177214980125427,
0.16911004483699799,
0.16479289531707764,
0.2556160092353821,
-0.14886125922203064,
-0.1340918093919754,
-0.24879132211208344,
0.12850815057754517,
-0.015501882880926132,
0.01614469289779663,
-0.0873766615986824,
0.2900003492832184,
0.0014364942908287048,
-0.19047755002975464,
0.017770137637853622,
0.40183159708976746,
0.24719443917274475,
0.29093730449676514,
-0.05285632982850075,
0.12295444309711456,
-0.20086735486984253,
0.01747172512114048,
-0.42872169613838196,
0.3778693974018097,
-0.2583733797073364,
-0.29163169860839844,
0.2562728524208069,
0.06820087879896164,
-0.18241354823112488,
-0.007356453686952591,
-0.14214742183685303,
0.14147207140922546,
-0.503520131111145,
0.3143910765647888,
0.32482120394706726,
-0.03797367215156555,
-0.003062371164560318,
0.17792269587516785,
-0.16509412229061127,
-0.1860365867614746,
0.4572034478187561,
-0.07097221910953522,
0.02094591036438942,
-0.3190406858921051,
0.11923618614673615,
-0.22459526360034943,
0.5049148201942444,
0.26606041193008423,
0.06460538506507874,
-0.2951209843158722,
-0.1944383978843689,
-0.7159310579299927,
0.21835985779762268,
-0.08524869382381439,
0.285800963640213,
0.1396155059337616,
0.23237638175487518,
-0.19371983408927917,
0.16791823506355286,
0.003575548529624939,
-0.05424344539642334,
0.24181067943572998,
0.04083435982465744,
-0.26264795660972595,
0.1586986482143402,
-0.09823650121688843,
-0.2893233597278595,
-0.012039024382829666,
-0.38661953806877136,
0.41662102937698364,
-0.17469841241836548,
0.12203099578619003,
0.23819491267204285,
-0.1944960355758667,
0.4156765341758728,
0.27635475993156433,
0.3132995367050171,
0.2699011266231537,
0.083380326628685,
0.14883938431739807,
0.07221804559230804,
-0.18366190791130066,
0.2596636712551117,
-0.28950873017311096,
0.14028403162956238,
-0.2510017454624176,
0.09630578756332397,
-0.4065721035003662,
-0.18255576491355896,
-0.31553635001182556,
0.34081000089645386,
0.09819427132606506,
-0.0447469986975193,
-0.0821550115942955,
-0.15061919391155243,
-0.2725714445114136,
0.39561811089515686,
0.2849608361721039,
0.04117106273770332,
0.07600449025630951,
0.09994914382696152,
-0.4842991828918457,
-0.04231259971857071,
0.36319634318351746,
-0.32088392972946167,
-0.2423740029335022,
-0.2733331322669983,
0.3320651054382324,
-0.02759159356355667,
-0.32130253314971924,
-0.14974907040596008,
0.014291934669017792,
0.36614733934402466,
-0.04420202225446701,
0.0851755142211914,
0.2846248745918274,
-0.10384833812713623,
0.4637129008769989,
-0.0950283408164978,
-0.17614823579788208,
0.04146619141101837,
0.12915028631687164,
-0.09967521578073502,
-0.14629340171813965
] |
https://github.com/huggingface/datasets/issues/2561 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` | Hi @lhoestq. Thanks for your reply. I just did minor modifications for which it should not regenerate cache (for e.g. Adding a print statement). Overall, regardless of cache miss, there should be an explicit option to allow reuse of existing cache if author knows cache shouldn't be affected. | ## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce the bug
- Create a local dataset builder class
- load the local builder class file using `load_dataset` and let the cache build
- update the file's content
- The cache should rebuilt.
## Expected results
With `ignore_verifications=True`, `load_dataset` should pick up existing cache.
## Actual results
Creates new cache.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
| 48 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce the bug
- Create a local dataset builder class
- load the local builder class file using `load_dataset` and let the cache build
- update the file's content
- The cache should rebuilt.
## Expected results
With `ignore_verifications=True`, `load_dataset` should pick up existing cache.
## Actual results
Creates new cache.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
Hi @lhoestq. Thanks for your reply. I just did minor modifications for which it should not regenerate cache (for e.g. Adding a print statement). Overall, regardless of cache miss, there should be an explicit option to allow reuse of existing cache if author knows cache shouldn't be affected. | [
-0.2966098189353943,
0.48456043004989624,
0.049707550555467606,
0.18488600850105286,
0.08039255440235138,
0.21865513920783997,
0.28246134519577026,
0.37450718879699707,
0.19491265714168549,
0.1779462993144989,
0.2753894627094269,
0.3544701337814331,
0.08640959858894348,
-0.25142109394073486,
-0.0044407593086361885,
0.2905791997909546,
0.058053284883499146,
0.14535236358642578,
0.18567204475402832,
-0.00638958066701889,
-0.06189585477113724,
-0.059082239866256714,
-0.04725091904401779,
-0.2655094861984253,
-0.4217758774757385,
0.18862992525100708,
0.08113046735525131,
-0.0028487667441368103,
-0.039753109216690063,
-0.49427714943885803,
0.4173814356327057,
0.2595972418785095,
0.04101043939590454,
0.17198345065116882,
-0.00010974199540214613,
0.17757336795330048,
0.2939720153808594,
0.020425306633114815,
-0.3915855884552002,
0.12808620929718018,
-0.3183545768260956,
-0.3609195351600647,
-0.015063940547406673,
-0.11680814623832703,
-0.1470683217048645,
-0.20581433176994324,
-0.07596464455127716,
-0.31381499767303467,
0.34387636184692383,
0.03396753594279289,
0.25794661045074463,
0.07272931188344955,
-0.17778940498828888,
0.0051543330773711205,
0.06328193843364716,
-0.060098350048065186,
-0.031800709664821625,
0.15500706434249878,
0.3051301836967468,
0.046208396553993225,
-0.39100706577301025,
0.4045751392841339,
-0.20282763242721558,
0.10222336649894714,
0.42069584131240845,
-0.23426629602909088,
0.12391668558120728,
-0.03263732045888901,
0.351498544216156,
0.08830925822257996,
0.6280643939971924,
-0.361594557762146,
-0.29067742824554443,
-0.28044435381889343,
-0.1889221966266632,
0.008940020576119423,
0.17074993252754211,
-0.24702590703964233,
-0.16977182030677795,
0.2825201153755188,
-0.4102948307991028,
-0.39945948123931885,
0.020543217658996582,
-0.16175919771194458,
0.20467644929885864,
-0.27363303303718567,
0.08416374027729034,
-0.09003471583127975,
-0.17392918467521667,
0.2221592664718628,
0.45344942808151245,
-0.456678181886673,
-0.05712021514773369,
0.24589745700359344,
-0.48981624841690063,
0.041476503014564514,
0.32807281613349915,
0.3956191837787628,
0.2704198956489563,
0.3395017981529236,
-0.08733773976564407,
0.23068305850028992,
0.14289286732673645,
0.13237202167510986,
-0.0760938823223114,
0.34610608220100403,
0.04492878168821335,
-0.00478521129116416,
0.2342403531074524,
0.2124476432800293,
-0.46094048023223877,
-0.036311447620391846,
0.09727658331394196,
-0.21084243059158325,
0.5844722986221313,
-0.055359289050102234,
0.01816488802433014,
-0.32037055492401123,
-0.06439277529716492,
0.23629175126552582,
-0.03523517772555351,
-0.15522725880146027,
0.1838333010673523,
0.1808868944644928,
-0.027825728058815002,
0.21972548961639404,
-0.15851394832134247,
-0.18719717860221863,
-0.23853905498981476,
-0.41749924421310425,
-0.38151824474334717,
-0.2056737244129181,
0.025520171970129013,
0.3334382474422455,
0.46312859654426575,
-0.49868154525756836,
0.3289690911769867,
0.2453932911157608,
-0.08094573020935059,
0.038273297250270844,
0.20303107798099518,
-0.06756540387868881,
0.19071990251541138,
0.2264154702425003,
-0.32423844933509827,
0.04666783660650253,
0.013849791139364243,
-0.14220741391181946,
-0.06838851422071457,
0.3774852752685547,
-0.10553999990224838,
-0.7720667123794556,
0.05772130936384201,
0.1467432826757431,
-0.23083065450191498,
0.05977713316679001,
0.29506829380989075,
0.09414230287075043,
0.43548819422721863,
-0.30471259355545044,
-0.071497343480587,
-0.03992888331413269,
-0.2986984848976135,
-0.17110764980316162,
0.4547199606895447,
0.7276175618171692,
-0.42518073320388794,
0.058019787073135376,
-0.09661900252103806,
0.09036985039710999,
-0.004741095006465912,
0.18978148698806763,
-0.2760145664215088,
0.35975217819213867,
-0.3368421792984009,
-0.4499468207359314,
0.19377854466438293,
-0.3304954767227173,
-0.7936922907829285,
0.23643656075000763,
0.23611633479595184,
0.26838254928588867,
0.1507764309644699,
0.0912846177816391,
-0.13035720586776733,
-0.1721944361925125,
0.07605420053005219,
0.20313304662704468,
-0.21563759446144104,
-0.06704463809728622,
-0.4511629045009613,
-0.2889776825904846,
0.05357891321182251,
0.013158552348613739,
0.08855319023132324,
0.3096220791339874,
0.05859515443444252,
0.11829344183206558,
0.05370071530342102,
-0.0029380321502685547,
0.1418863832950592,
0.29219895601272583,
0.14242792129516602,
-0.18628503382205963,
0.18636910617351532,
-0.1150951012969017,
-0.49012744426727295,
0.4268350601196289,
-0.25122982263565063,
-0.23528560996055603,
0.04205232113599777,
-0.3022159934043884,
-0.10987144708633423,
-0.1406944841146469,
-0.38295120000839233,
-0.203412726521492,
0.12350796163082123,
0.20318295061588287,
0.4170442223548889,
-0.04609847813844681,
-0.18303826451301575,
0.3019634783267975,
-0.2747032344341278,
0.1761453002691269,
-0.0656103789806366,
-0.1344090849161148,
-0.09138470888137817,
0.005771193653345108,
-0.3230374753475189,
0.03963566944003105,
0.1474548876285553,
-0.0976058840751648,
-0.17095905542373657,
0.2789711356163025,
0.008625667542219162,
0.13685108721256256,
-0.012912660837173462,
0.24771767854690552,
0.048123862594366074,
0.1332276165485382,
0.08038236945867538,
-0.1950083076953888,
0.0764138475060463,
-0.07524843513965607,
-0.02219010889530182,
0.055542975664138794,
0.10952362418174744,
0.05198432505130768,
-0.2265177220106125,
-0.32051730155944824,
0.21705476939678192,
-0.20789043605327606,
0.062280990183353424,
-0.14898835122585297,
-0.07197973132133484,
0.08992812037467957,
0.4432956874370575,
0.1769191175699234,
-0.02881160005927086,
0.15144026279449463,
0.3761354386806488,
0.2306365668773651,
-0.2651819884777069,
-0.058428145945072174,
-0.032497793436050415,
-0.20066729187965393,
0.20520281791687012,
0.4338604807853699,
0.26647037267684937,
0.17730498313903809,
0.23734267055988312,
0.05737456679344177,
0.002419781405478716,
-0.1575552523136139,
0.04317308962345123,
-0.17919333279132843,
-0.1714888960123062,
0.4472448229789734,
0.2646681070327759,
0.2256844937801361,
-0.36574581265449524,
0.36048904061317444,
0.19178153574466705,
0.1741560697555542,
0.006833069026470184,
0.1442461609840393,
-0.4783361554145813,
-0.11799830198287964,
-0.17821525037288666,
0.23909302055835724,
-0.2455628216266632,
-0.20180325210094452,
0.13038678467273712,
0.11227203905582428,
-0.06414613872766495,
0.1965550035238266,
-0.168637216091156,
0.3677162826061249,
-0.08147988468408585,
-0.558373212814331,
-0.34593984484672546,
0.0020717319566756487,
-0.4155193865299225,
0.004474237561225891,
0.47927355766296387,
-0.3283116817474365,
0.3057936131954193,
-0.26840099692344666,
-0.10867413133382797,
-0.23059478402137756,
-0.24363180994987488,
0.0833076685667038,
0.18052127957344055,
0.3112432658672333,
-0.26693570613861084,
-0.05699285864830017,
-0.07042025029659271,
0.107566699385643,
0.11304498463869095,
-0.17875248193740845,
-0.15012256801128387,
-0.18280228972434998,
-0.06436299532651901,
0.15325306355953217,
-0.35326093435287476,
-0.2649862766265869,
0.020895114168524742,
-0.34031176567077637,
-0.053864821791648865,
0.05466170236468315,
0.01288209855556488,
0.2154659479856491,
-0.13870590925216675,
0.12859633564949036,
0.02746950462460518,
0.17157131433486938,
-0.3066544532775879,
-0.6944125890731812,
0.21792161464691162,
-0.17042969167232513,
-0.026471633464097977,
0.07311427593231201,
-0.2889465093612671,
0.14353087544441223,
0.01994895562529564,
-0.5505858063697815,
-0.030402131378650665,
-0.37967154383659363,
0.28391608595848083,
-0.13020358979701996,
-0.0076428744941949844,
0.44336697459220886,
0.002188429469242692,
0.013910824432969093,
-0.22556665539741516,
-0.23004601895809174,
0.15805268287658691,
-0.17090719938278198,
0.33431220054626465,
0.09296542406082153,
-0.1266644299030304,
0.25861039757728577,
0.5497052073478699,
0.2341136932373047,
-0.018924664705991745,
0.3620266318321228,
0.20535264909267426,
0.5025877952575684,
-0.24352508783340454,
-0.11638575792312622,
0.0630783960223198,
-0.1085820198059082,
-0.2857516407966614,
-0.06777529418468475,
0.08947990834712982,
0.05600491166114807,
-0.13636724650859833,
0.01046769693493843,
-0.01875893771648407,
-0.29341554641723633,
-0.06427234411239624,
-0.44097989797592163,
0.26867714524269104,
0.45635902881622314,
0.1301659345626831,
-0.10317963361740112,
-0.10591541230678558,
0.17893314361572266,
0.3160364031791687,
0.27493220567703247,
0.05546214431524277,
0.04497823491692543,
0.2654494047164917,
-0.37047871947288513,
0.13032810389995575,
0.09830723702907562,
0.060028716921806335,
0.08491146564483643,
0.03113199770450592,
0.1852438747882843,
-0.003304611425846815,
0.2500496804714203,
-0.5590528845787048,
0.023562392219901085,
0.1375410258769989,
0.004395637661218643,
0.18346010148525238,
-0.22399461269378662,
0.26304891705513,
0.23458251357078552,
-0.12395153939723969,
0.22703337669372559,
0.052904896438121796,
-0.19900654256343842,
0.018714554607868195,
0.38928747177124023,
-0.11646907031536102,
-0.40543437004089355,
-0.18742091953754425,
0.04910726845264435,
-0.17122851312160492,
0.07847119867801666,
-0.05900084227323532,
0.15182606875896454,
-0.0021441110875457525,
0.022861335426568985,
-0.14532212913036346,
0.36001789569854736,
-0.15977154672145844,
-0.019976314157247543,
0.26208561658859253,
-0.0905332863330841,
0.3267650008201599,
0.07064187526702881,
0.030549798160791397,
0.20733001828193665,
0.5026638507843018,
-0.20050549507141113,
-0.1789027452468872,
-0.18217089772224426,
-0.03255819156765938,
-0.08924411982297897,
0.2249559909105301,
-0.09737586230039597,
-0.1954542100429535,
0.22671829164028168,
-0.17405642569065094,
-0.0846359133720398,
-0.11701714247465134,
-0.044593967497348785,
-0.028484337031841278,
0.04231051355600357,
-0.47396379709243774,
0.11511259526014328,
0.1791703701019287,
-0.056235961616039276,
0.348811537027359,
-0.2945680022239685,
-0.019916681572794914,
0.18366342782974243,
0.045803170651197433,
0.5849218964576721,
0.0938151553273201,
-0.1063084602355957,
-0.1129327341914177,
-0.2617773413658142,
0.3956882655620575,
-0.3350905776023865,
0.26829802989959717,
-0.24488995969295502,
-0.27297499775886536,
0.15062087774276733,
-0.16872791945934296,
0.2396332323551178,
0.10266311466693878,
-0.06055388227105141,
0.20226138830184937,
-0.07453610002994537,
0.26399385929107666,
0.03824152052402496,
0.22787576913833618,
-0.13517418503761292,
-0.06604747474193573,
0.09564980864524841,
0.16952204704284668,
-0.004630293697118759,
0.3136819899082184,
-0.1343437284231186,
0.026059025898575783,
0.274004191160202,
-0.09832264482975006,
-0.2454521805047989,
-0.13507789373397827,
-0.1414002925157547,
0.010864166542887688,
0.1976470798254013,
-0.1424390971660614,
0.08259288966655731,
0.11559692025184631,
0.2736484408378601,
0.10745437443256378,
-0.1614094078540802,
0.12614694237709045,
0.12745727598667145,
0.28212714195251465,
-0.17284923791885376,
-0.22045978903770447,
0.39942091703414917,
-0.004800751805305481,
-0.12511034309864044,
-0.21569019556045532,
-0.5188757181167603,
-0.4346005320549011,
0.23535943031311035,
0.18762123584747314,
0.3133315443992615,
0.08224353194236755,
0.04463907331228256,
0.050664253532886505,
0.2856608033180237,
-0.22073350846767426,
0.18870824575424194,
0.12948575615882874,
-0.11029163748025894,
0.18521930277347565,
-0.40931156277656555,
-0.251207172870636,
-0.058250535279512405,
0.28181982040405273,
0.25501182675361633,
-0.23354144394397736,
0.33604297041893005,
-0.2673620581626892,
-0.07267075777053833,
-0.11859651654958725,
-0.05669022351503372,
0.06481217592954636,
-0.21454071998596191,
-0.036552514880895615,
0.03502597287297249,
0.06481894850730896,
0.13717307150363922,
-0.08903409540653229,
0.1072419285774231,
0.06262453645467758,
-0.30286523699760437,
-0.199423685669899,
-0.36945533752441406,
-0.27321749925613403,
-0.11600425839424133,
0.11177054047584534,
0.015584465116262436,
-0.044219132512807846,
0.22396326065063477,
0.2931734323501587,
-0.3268522322177887,
-0.03563965857028961,
-0.20118699967861176,
0.07786272466182709,
-0.3165005147457123,
0.21159109473228455,
0.07819053530693054,
-0.12657715380191803,
-0.0621049702167511,
0.12340788543224335,
-0.32848885655403137,
-0.23652854561805725,
-0.004544386640191078,
0.12967954576015472,
0.10192741453647614,
0.2676270306110382,
-0.1630534529685974,
-0.03431715816259384,
0.050656482577323914,
0.01709108240902424,
0.17996898293495178,
-0.03156528249382973,
-0.08698152005672455,
0.3448064923286438,
0.0950804129242897,
0.3468886613845825,
-0.08900105953216553,
-0.07349647581577301,
-0.12033015489578247,
0.19327139854431152,
0.02150437980890274,
0.09285974502563477,
0.02242084965109825,
0.015367090702056885,
0.10913324356079102,
-0.054668642580509186,
-0.13895004987716675,
0.1786765456199646,
0.1755830943584442,
-0.21139787137508392,
-0.007110316306352615,
0.3065177798271179,
0.18432824313640594,
0.07514142245054245,
-0.014477523975074291,
-0.15491455793380737,
0.36586928367614746,
0.23364853858947754,
-0.2562912106513977,
-0.24566538631916046,
0.38175055384635925,
0.04604342579841614,
0.058105748146772385,
0.0672457367181778,
0.5152274370193481,
-0.29259610176086426,
0.3185656666755676,
0.13486942648887634,
0.2733687460422516,
-0.4803122282028198,
0.11807778477668762,
0.3190514147281647,
0.17847326397895813,
0.014569144695997238,
0.2404753714799881,
0.07970856130123138,
0.05315463989973068,
0.48554015159606934,
-0.08296994119882584,
0.14100195467472076,
-0.01019151508808136,
0.31594210863113403,
-0.18351739645004272,
-0.5806640982627869,
0.4861353933811188,
0.13877038657665253,
-0.15313833951950073,
-0.0575711652636528,
-0.20671692490577698,
0.2538539171218872,
0.17924335598945618,
-0.2217085212469101,
-0.16570718586444855,
0.11093896627426147,
-0.3387537896633148,
0.06919841468334198,
0.14418449997901917,
-0.13346637785434723,
0.13948217034339905,
0.08604539930820465,
0.19330522418022156,
0.19970348477363586,
0.3072158694267273,
-0.1525803506374359,
-0.17209090292453766,
-0.17579151690006256,
0.13467071950435638,
0.02324860729277134,
0.07330039888620377,
-0.11885027587413788,
0.23485055565834045,
-0.03035689890384674,
-0.22721096873283386,
0.002851966768503189,
0.41541311144828796,
0.19968418776988983,
0.19920001924037933,
0.012223531492054462,
0.13011735677719116,
-0.20287951827049255,
0.10176369547843933,
-0.4308282434940338,
0.43208733201026917,
-0.2502796947956085,
-0.3689309358596802,
0.2801717519760132,
0.026697834953665733,
-0.11334473639726639,
0.09111703932285309,
-0.16850388050079346,
0.11270728707313538,
-0.5603569149971008,
0.3034971058368683,
0.3499678373336792,
-0.012325093150138855,
0.04878528416156769,
0.2230321168899536,
-0.14272582530975342,
-0.1782529205083847,
0.4750252664089203,
-0.11033884435892105,
0.026491153985261917,
-0.27791205048561096,
0.1259625107049942,
-0.1848771572113037,
0.37839314341545105,
0.31776246428489685,
-0.060367971658706665,
-0.2719246447086334,
-0.1675000786781311,
-0.7562371492385864,
0.21221092343330383,
-0.04883786663413048,
0.3328856825828552,
0.2007850557565689,
0.15938875079154968,
-0.19599121809005737,
0.14066071808338165,
-0.0518370121717453,
-0.037998806685209274,
0.2316824197769165,
0.011109013110399246,
-0.20351029932498932,
0.10858070850372314,
-0.06873571872711182,
-0.3280588984489441,
0.03589745610952377,
-0.39658716320991516,
0.34462711215019226,
-0.13651590049266815,
0.08435646444559097,
0.2075682282447815,
-0.19354413449764252,
0.3796265125274658,
0.2734094560146332,
0.33786001801490784,
0.35908499360084534,
0.0153127983212471,
0.130350261926651,
0.01884664036333561,
-0.14755672216415405,
0.21753811836242676,
-0.25286370515823364,
0.14264309406280518,
-0.2502274215221405,
0.05008220672607422,
-0.5288492441177368,
-0.20591720938682556,
-0.31604886054992676,
0.30232805013656616,
0.13042055070400238,
-0.056755632162094116,
-0.13215312361717224,
-0.12842456996440887,
-0.3266020715236664,
0.4613104462623596,
0.29880383610725403,
0.07991767674684525,
0.0740530863404274,
0.1341235190629959,
-0.4689100384712219,
-0.040112365037202835,
0.34173890948295593,
-0.31549111008644104,
-0.1534041464328766,
-0.30659210681915283,
0.3315875828266144,
-0.06307897716760635,
-0.32817432284355164,
-0.23686650395393372,
0.010854899883270264,
0.37375760078430176,
-0.06342490762472153,
0.12177810072898865,
0.303576797246933,
-0.17612800002098083,
0.47008195519447327,
-0.05235195904970169,
-0.07079759240150452,
0.11523064225912094,
0.09131965786218643,
-0.055448826402425766,
-0.18460409343242645
] |
https://github.com/huggingface/datasets/issues/2561 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` | The cache is based on the hash of the dataset builder's code, so changing the code makes it recompute the cache.
You could still rename the cache directory of your previous computation to the new expected cache directory if you want to avoid having to recompute it and if you're sure that it would generate the exact same result.
The verifications are data integrity verifications: it checks the checksums of the downloaded files, as well as the size of the generated splits. | ## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce the bug
- Create a local dataset builder class
- load the local builder class file using `load_dataset` and let the cache build
- update the file's content
- The cache should rebuilt.
## Expected results
With `ignore_verifications=True`, `load_dataset` should pick up existing cache.
## Actual results
Creates new cache.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
| 82 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce the bug
- Create a local dataset builder class
- load the local builder class file using `load_dataset` and let the cache build
- update the file's content
- The cache should rebuilt.
## Expected results
With `ignore_verifications=True`, `load_dataset` should pick up existing cache.
## Actual results
Creates new cache.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
The cache is based on the hash of the dataset builder's code, so changing the code makes it recompute the cache.
You could still rename the cache directory of your previous computation to the new expected cache directory if you want to avoid having to recompute it and if you're sure that it would generate the exact same result.
The verifications are data integrity verifications: it checks the checksums of the downloaded files, as well as the size of the generated splits. | [
-0.3809877634048462,
0.4386589527130127,
-0.003196176141500473,
0.1750701367855072,
0.09502054750919342,
0.15524199604988098,
0.23175176978111267,
0.4199694097042084,
0.15906153619289398,
0.3092048168182373,
0.16211552917957306,
0.28301170468330383,
0.11000063270330429,
-0.20820748805999756,
-0.032141756266355515,
0.22181232273578644,
0.06826566159725189,
0.184893399477005,
0.15041854977607727,
-0.01821952685713768,
-0.10427553951740265,
-0.03407017141580582,
-0.009553417563438416,
-0.24195440113544464,
-0.42949461936950684,
0.08296042680740356,
0.06355651468038559,
0.16019609570503235,
-0.0879584401845932,
-0.4699017405509949,
0.30210211873054504,
0.24755704402923584,
-0.15265674889087677,
0.2725532352924347,
-0.00010499652125872672,
0.17802822589874268,
0.35623449087142944,
0.056850895285606384,
-0.4711803197860718,
0.24163207411766052,
-0.3674045503139496,
-0.44357356429100037,
-0.15491652488708496,
-0.15375356376171112,
-0.018380098044872284,
-0.19410116970539093,
-0.11457216739654541,
-0.281876802444458,
0.35089313983917236,
0.07161050289869308,
0.2827041447162628,
0.14059433341026306,
-0.20494861900806427,
-0.015573937445878983,
0.19997051358222961,
-0.014821521937847137,
-0.028133450075984,
0.15250666439533234,
0.18520689010620117,
0.09824010729789734,
-0.4011556804180145,
0.35402074456214905,
-0.20523430407047272,
0.16693115234375,
0.35239529609680176,
-0.19471213221549988,
0.047333408147096634,
-0.09367208182811737,
0.3847609758377075,
0.12607410550117493,
0.5368217825889587,
-0.25877150893211365,
-0.3534720838069916,
-0.24964341521263123,
-0.28848209977149963,
-0.014980996958911419,
0.283867746591568,
-0.12217353284358978,
-0.19459781050682068,
0.15720832347869873,
-0.4552614092826843,
-0.23259471356868744,
0.08083420991897583,
-0.2229066640138626,
0.06297500431537628,
-0.22960078716278076,
0.14359150826931,
-0.0874812975525856,
0.04411759227514267,
0.22348803281784058,
0.34535273909568787,
-0.472461074590683,
-0.04029981419444084,
0.2510859966278076,
-0.4561106562614441,
-0.07664935290813446,
0.25874122977256775,
0.3883616030216217,
0.2604283392429352,
0.38861095905303955,
-0.19325584173202515,
0.2456342577934265,
0.18019026517868042,
0.09846208989620209,
-0.12473946809768677,
0.3354094922542572,
-0.04901009052991867,
0.004754228517413139,
0.3091167211532593,
0.2427244335412979,
-0.38845914602279663,
0.006637305021286011,
0.12575045228004456,
-0.2951217591762543,
0.4921705722808838,
0.02605222724378109,
-0.057826049625873566,
-0.3234984278678894,
-0.08047661185264587,
0.18067874014377594,
0.023398391902446747,
-0.12738724052906036,
0.16676928102970123,
0.19578459858894348,
-0.08267334848642349,
0.13654270768165588,
-0.33650875091552734,
-0.24016065895557404,
-0.34186792373657227,
-0.33353734016418457,
-0.3955495357513428,
-0.15280675888061523,
0.025593500584363937,
0.32716646790504456,
0.4925564229488373,
-0.5260608792304993,
0.34804660081863403,
0.15416738390922546,
-0.05435381829738617,
0.09984876215457916,
0.22373045980930328,
-0.22497737407684326,
0.20718318223953247,
0.35389792919158936,
-0.26376253366470337,
-0.026921512559056282,
-0.008456412702798843,
-0.09124714136123657,
-0.10133562982082367,
0.25894853472709656,
-0.12300512939691544,
-0.7289394736289978,
0.11847120523452759,
0.21284623444080353,
-0.2772570252418518,
0.08543316274881363,
0.27860137820243835,
0.07544179260730743,
0.34076404571533203,
-0.3217761516571045,
-0.055651940405368805,
-0.08204999566078186,
-0.27803584933280945,
-0.12905485928058624,
0.4463101625442505,
0.7053083181381226,
-0.45580989122390747,
0.133119136095047,
-0.16719332337379456,
-0.05536174401640892,
0.009220600128173828,
0.22760385274887085,
-0.23566076159477234,
0.3070388436317444,
-0.3199964761734009,
-0.2536694407463074,
0.18785429000854492,
-0.22496706247329712,
-0.8255179524421692,
0.26866665482521057,
0.1492612659931183,
0.19010058045387268,
0.21136116981506348,
0.04490553215146065,
0.025355234742164612,
-0.22500905394554138,
0.00020942091941833496,
0.24080929160118103,
-0.20487311482429504,
0.07763412594795227,
-0.4715498685836792,
-0.23089171946048737,
0.04945002496242523,
0.030416712164878845,
0.0650150328874588,
0.13325873017311096,
0.12750887870788574,
0.14798331260681152,
0.0028199851512908936,
-0.028234798461198807,
0.1279255896806717,
0.289725124835968,
0.07259930670261383,
-0.16065526008605957,
0.2341434210538864,
-0.12995567917823792,
-0.4772048592567444,
0.4268704652786255,
-0.2430206537246704,
-0.16127163171768188,
-0.003357633948326111,
-0.36787551641464233,
-0.13158497214317322,
-0.0959358662366867,
-0.32273662090301514,
-0.1761830449104309,
0.16269971430301666,
0.22173741459846497,
0.49726206064224243,
-0.08636650443077087,
-0.09216141700744629,
0.23643383383750916,
-0.23258958756923676,
0.15639084577560425,
-0.04374748840928078,
-0.06195344775915146,
-0.09655315428972244,
-0.0037321820855140686,
-0.26725178956985474,
0.06371346116065979,
0.06128299608826637,
-0.1438024640083313,
-0.2119123935699463,
0.38130983710289,
0.1824183315038681,
0.14830666780471802,
0.10388178378343582,
0.20735995471477509,
0.04543544352054596,
0.09153488278388977,
0.2094065248966217,
-0.13869932293891907,
0.08829353004693985,
-0.06921976804733276,
-0.10168489068746567,
0.09413465857505798,
-0.0026222579181194305,
0.11503580212593079,
-0.09741153568029404,
-0.32730036973953247,
0.24369028210639954,
-0.09792270511388779,
0.04821769893169403,
-0.15211287140846252,
-0.022417183965444565,
0.10892471671104431,
0.4705239534378052,
0.24945975840091705,
0.0959344208240509,
0.13081401586532593,
0.5666046738624573,
0.09511226415634155,
-0.3063998818397522,
0.008478425443172455,
-0.09208818525075912,
-0.26525506377220154,
0.08583530783653259,
0.4567347466945648,
0.3705621361732483,
0.18728460371494293,
0.29713693261146545,
0.04337678104639053,
0.02506856620311737,
-0.1981804072856903,
0.08526146411895752,
-0.04986417293548584,
-0.20390290021896362,
0.3712654411792755,
0.22855399549007416,
0.16485407948493958,
-0.4026491045951843,
0.2453194558620453,
0.18850062787532806,
0.1817786991596222,
0.007611922919750214,
0.21014930307865143,
-0.4117991328239441,
-0.13937771320343018,
-0.1930423080921173,
0.15589377284049988,
-0.3065182566642761,
-0.29439979791641235,
0.17033813893795013,
-0.0018874481320381165,
-0.11349178850650787,
0.216365784406662,
-0.04385431483387947,
0.3727191090583801,
-0.014459094032645226,
-0.5106041431427002,
-0.3518974483013153,
-0.020488739013671875,
-0.42195382714271545,
0.06384755671024323,
0.47550398111343384,
-0.24971093237400055,
0.36437463760375977,
-0.33015844225883484,
-0.1467278152704239,
-0.17759063839912415,
-0.2530393898487091,
0.05717643350362778,
0.0023789256811141968,
0.24410346150398254,
-0.11946126818656921,
0.00949464738368988,
0.09017272293567657,
0.07311315834522247,
0.13421039283275604,
-0.19665993750095367,
-0.21621611714363098,
-0.12328583002090454,
0.0012073469115421176,
0.16173993051052094,
-0.40550321340560913,
-0.2719634473323822,
0.003430786542594433,
-0.35676074028015137,
0.0014951974153518677,
0.10710166394710541,
0.05387331545352936,
0.15467125177383423,
-0.1395678073167801,
0.20752204954624176,
0.035873543471097946,
0.09462947398424149,
-0.33719754219055176,
-0.5732307434082031,
0.19859960675239563,
-0.17972972989082336,
-0.08404320478439331,
0.08579766750335693,
-0.2623574733734131,
0.09238259494304657,
0.024669764563441277,
-0.529371440410614,
0.008980969898402691,
-0.5315983891487122,
0.28788620233535767,
-0.12230892479419708,
0.013754558749496937,
0.44148412346839905,
0.01980467513203621,
-0.10300438851118088,
-0.2068893015384674,
-0.2004307210445404,
0.08415690064430237,
-0.27014100551605225,
0.21289274096488953,
-0.061431750655174255,
-0.09049462527036667,
0.19221659004688263,
0.6441380381584167,
0.17057044804096222,
-0.02612396702170372,
0.2631523609161377,
0.2355026751756668,
0.5081674456596375,
-0.30464082956314087,
-0.15366356074810028,
0.1751740276813507,
-0.11243358254432678,
-0.28074198961257935,
0.09429075568914413,
0.003202378749847412,
-0.07605727016925812,
-0.10717874765396118,
0.005423597991466522,
0.07173620909452438,
-0.21134452521800995,
0.017479753121733665,
-0.377081960439682,
0.1748265027999878,
0.38059595227241516,
0.2162797749042511,
-0.14430293440818787,
-0.11608237028121948,
0.1850566416978836,
0.29572969675064087,
0.1747502088546753,
0.018110807985067368,
0.013210874050855637,
0.20206494629383087,
-0.31035158038139343,
0.12603828310966492,
0.18751928210258484,
-0.04210769012570381,
0.03420337662100792,
-0.07160507142543793,
0.23431141674518585,
-0.050252243876457214,
0.3109574317932129,
-0.4699048101902008,
0.039634913206100464,
0.13168451189994812,
0.00030000507831573486,
0.19482329487800598,
-0.26030445098876953,
0.09652547538280487,
0.21915702521800995,
-0.017805013805627823,
0.3281489312648773,
-0.061431072652339935,
-0.17609186470508575,
0.09454601258039474,
0.39845654368400574,
-0.08204352110624313,
-0.3254147469997406,
-0.323505699634552,
0.03693094849586487,
-0.19154660403728485,
0.1425374150276184,
-0.10919233411550522,
0.1812097579240799,
-0.1364021599292755,
-0.001845475286245346,
-0.08896783739328384,
0.2300604283809662,
-0.1454864889383316,
0.03936846926808357,
0.23797607421875,
-0.12252342700958252,
0.22648468613624573,
0.0666913092136383,
0.0999515950679779,
0.2287294864654541,
0.4857914447784424,
-0.19692659378051758,
-0.15247111022472382,
-0.1413661241531372,
-0.05938396230340004,
-0.13902059197425842,
0.28553012013435364,
-0.06803862750530243,
-0.26391884684562683,
0.217598095536232,
-0.0047128647565841675,
-0.1272703856229782,
-0.013720892369747162,
0.04221240058541298,
-0.025455906987190247,
0.034945596009492874,
-0.44420143961906433,
0.16181060671806335,
0.18684706091880798,
-0.033510033041238785,
0.27810734510421753,
-0.15211161971092224,
0.07958315312862396,
0.13301149010658264,
0.12495353072881699,
0.6822170615196228,
0.13621139526367188,
-0.1145956814289093,
0.0002068541944026947,
-0.2710431218147278,
0.37847426533699036,
-0.3629116415977478,
0.24405619502067566,
-0.19738970696926117,
-0.349534273147583,
0.13364630937576294,
-0.16394998133182526,
0.2852558493614197,
0.0307863000780344,
-0.14365744590759277,
0.1867620050907135,
-0.028796132653951645,
0.19450481235980988,
0.009616440162062645,
0.30095943808555603,
-0.1734447479248047,
-0.1199178695678711,
0.10387429594993591,
0.2350699007511139,
0.02058929204940796,
0.2723824679851532,
-0.07776966691017151,
0.03245330601930618,
0.16453160345554352,
-0.06915930658578873,
-0.28809159994125366,
-0.15450403094291687,
-0.08715847134590149,
0.04424159601330757,
0.11702752113342285,
-0.10488931834697723,
-0.02773226425051689,
0.03294825553894043,
0.27324092388153076,
0.1882365643978119,
-0.16955019533634186,
0.19028528034687042,
0.10607391595840454,
0.3167858421802521,
-0.059757597744464874,
-0.24416503310203552,
0.4073328673839569,
-0.08082788437604904,
-0.11480247974395752,
-0.26141902804374695,
-0.5250527262687683,
-0.3327232599258423,
0.3132184147834778,
0.10880808532238007,
0.2869957685470581,
0.043614793568849564,
0.14057743549346924,
-0.043886199593544006,
0.15773990750312805,
-0.2174311727285385,
0.2091279774904251,
0.04274635761976242,
-0.10724519193172455,
0.14308708906173706,
-0.32176172733306885,
-0.327884703874588,
-0.11947333812713623,
0.2778666615486145,
0.17663440108299255,
-0.12319065630435944,
0.3894486129283905,
-0.29333293437957764,
-0.1793527454137802,
-0.1765354573726654,
-0.0402747318148613,
-0.04116247594356537,
-0.2697422504425049,
0.007538197562098503,
-0.040174391120672226,
0.005067557096481323,
0.10451804846525192,
-0.07125495374202728,
0.1229315847158432,
0.14393731951713562,
-0.3369545638561249,
-0.24676746129989624,
-0.35376161336898804,
-0.26539021730422974,
-0.14808572828769684,
0.13091737031936646,
-0.03454853594303131,
-0.012209255248308182,
0.22499129176139832,
0.38297489285469055,
-0.3870071768760681,
-0.04686741530895233,
-0.2649412453174591,
0.08123273402452469,
-0.3280066251754761,
0.050665490329265594,
0.09093058109283447,
-0.07474656403064728,
0.009003160521388054,
0.1508878916501999,
-0.3463102877140045,
-0.29398682713508606,
0.0540275014936924,
0.10594365000724792,
-0.04690629988908768,
0.1963614970445633,
-0.1199759766459465,
0.11902391910552979,
-0.0014979224652051926,
-0.04913463070988655,
0.21239528059959412,
-0.21606352925300598,
-0.15637293457984924,
0.2548011839389801,
0.1707797795534134,
0.3533981144428253,
-0.07993374764919281,
-0.027465850114822388,
-0.18303778767585754,
0.19361385703086853,
-0.04375762864947319,
0.13206622004508972,
-0.045085977762937546,
-0.08736015856266022,
0.11323070526123047,
-0.03149815648794174,
-0.03363889455795288,
0.13848543167114258,
0.24543797969818115,
-0.16365168988704681,
-0.003688085824251175,
0.22537508606910706,
0.22107592225074768,
0.1636662483215332,
0.07177821546792984,
-0.2607775628566742,
0.31724846363067627,
0.2696538269519806,
-0.18204860389232635,
-0.20110175013542175,
0.33719196915626526,
-0.02472512423992157,
0.13180091977119446,
0.03419919312000275,
0.44320976734161377,
-0.1671997308731079,
0.22551459074020386,
0.15444442629814148,
0.34341591596603394,
-0.35366612672805786,
0.041747476905584335,
0.4806293547153473,
0.14291928708553314,
0.09763570129871368,
0.21863529086112976,
-0.03597063198685646,
0.05621529370546341,
0.4986136555671692,
-0.1254052221775055,
0.3106616139411926,
-0.06867875158786774,
0.28362950682640076,
-0.20625647902488708,
-0.5564460754394531,
0.4018729329109192,
0.169321209192276,
-0.1316090226173401,
-0.1121613010764122,
-0.1634995937347412,
0.28802958130836487,
0.029241375625133514,
-0.21761377155780792,
-0.25864553451538086,
0.1524282991886139,
-0.2848617732524872,
0.07627071440219879,
0.08214277774095535,
-0.08519820868968964,
0.05541779100894928,
0.13261687755584717,
0.19948652386665344,
0.22656238079071045,
0.3473983407020569,
-0.09897437691688538,
-0.14297354221343994,
-0.0877811387181282,
0.12336041033267975,
-0.09859628230333328,
0.07120537757873535,
-0.14799721539020538,
0.1824074536561966,
0.09585781395435333,
-0.15354137122631073,
0.06405879557132721,
0.3616478145122528,
0.2506944239139557,
0.21237745881080627,
-0.09893503785133362,
0.025960076600313187,
-0.1711534857749939,
0.018798133358359337,
-0.3725169897079468,
0.43133971095085144,
-0.2985081374645233,
-0.2817282974720001,
0.34235766530036926,
0.08575599640607834,
-0.1949164718389511,
0.0019100494682788849,
-0.22042621672153473,
0.027449533343315125,
-0.4845621585845947,
0.31012147665023804,
0.3515855073928833,
-0.03093159943819046,
-0.09049534052610397,
0.20668914914131165,
-0.2065313160419464,
-0.20101113617420197,
0.2995292544364929,
-0.11960373818874359,
0.07175137847661972,
-0.25090548396110535,
0.13034497201442719,
-0.20799151062965393,
0.626110851764679,
0.3518136739730835,
0.02819686010479927,
-0.23921537399291992,
-0.17702093720436096,
-0.6708556413650513,
0.2010459303855896,
-0.0954008400440216,
0.18959705531597137,
0.08600617945194244,
0.20775365829467773,
-0.14472243189811707,
0.15909597277641296,
-0.003762662410736084,
0.0648978129029274,
0.21737757325172424,
-0.00500483438372612,
-0.2826893925666809,
0.19560536742210388,
-0.14736762642860413,
-0.3527967929840088,
0.00552188977599144,
-0.4427981376647949,
0.43738290667533875,
-0.15149879455566406,
0.1282617151737213,
0.333102285861969,
-0.17160210013389587,
0.4262591302394867,
0.27266794443130493,
0.25247353315353394,
0.3181021213531494,
0.12002439796924591,
0.08992627263069153,
0.021540941670536995,
-0.1689338982105255,
0.3327593505382538,
-0.29008790850639343,
0.14658549427986145,
-0.20024916529655457,
0.06940245628356934,
-0.35555604100227356,
-0.0972994714975357,
-0.25971463322639465,
0.47064390778541565,
0.16529221832752228,
0.05769379436969757,
-0.09768243879079819,
-0.2062506079673767,
-0.278698593378067,
0.40573999285697937,
0.35903432965278625,
0.08325633406639099,
0.1341121792793274,
0.06535572558641434,
-0.4515414237976074,
-0.10348882526159286,
0.3416603207588196,
-0.23799459636211395,
-0.18308025598526,
-0.3390709161758423,
0.39013606309890747,
0.06578998267650604,
-0.29849040508270264,
-0.19494211673736572,
0.03997506946325302,
0.33117106556892395,
-0.06268429756164551,
0.006986804306507111,
0.31127816438674927,
-0.14243066310882568,
0.38587096333503723,
-0.09996794909238815,
-0.11952975392341614,
0.007081139832735062,
0.09740142524242401,
-0.01771187037229538,
-0.1525210589170456
] |
https://github.com/huggingface/datasets/issues/2561 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` | Hi @apsdehal,
If you decide to follow @lhoestq's suggestion to rename the cache directory of your previous computation to the new expected cache directory, you can do the following to get the name of the new expected cache directory once #2500 is merged:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("path/to/your/dataset")
print(dataset_builder.cache_dir)
```
This way, you don't have to recompute the hash of the dataset script yourself each time you modify the script. | ## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce the bug
- Create a local dataset builder class
- load the local builder class file using `load_dataset` and let the cache build
- update the file's content
- The cache should rebuilt.
## Expected results
With `ignore_verifications=True`, `load_dataset` should pick up existing cache.
## Actual results
Creates new cache.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
| 73 | Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug
If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets.
## Steps to reproduce the bug
- Create a local dataset builder class
- load the local builder class file using `load_dataset` and let the cache build
- update the file's content
- The cache should rebuilt.
## Expected results
With `ignore_verifications=True`, `load_dataset` should pick up existing cache.
## Actual results
Creates new cache.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
Hi @apsdehal,
If you decide to follow @lhoestq's suggestion to rename the cache directory of your previous computation to the new expected cache directory, you can do the following to get the name of the new expected cache directory once #2500 is merged:
```python
from datasets import load_dataset_builder
dataset_builder = load_dataset_builder("path/to/your/dataset")
print(dataset_builder.cache_dir)
```
This way, you don't have to recompute the hash of the dataset script yourself each time you modify the script. | [
-0.4378628134727478,
0.47821420431137085,
-0.0076683927327394485,
0.11805301159620285,
0.15692728757858276,
0.1881316602230072,
0.29603198170661926,
0.4827199876308441,
0.17503753304481506,
0.3437817096710205,
0.22528554499149323,
0.3112470209598541,
0.06439542025327682,
-0.19516761600971222,
0.026697831228375435,
0.3226766884326935,
0.04570741206407547,
0.16623550653457642,
0.09507015347480774,
0.005609758198261261,
-0.15772539377212524,
-0.04805406183004379,
-0.043275412172079086,
-0.2891952395439148,
-0.37796664237976074,
0.1461428999900818,
0.12889888882637024,
0.10294226557016373,
0.04186014458537102,
-0.500503659248352,
0.3477988541126251,
0.25453606247901917,
-0.07903530448675156,
0.3221059739589691,
-0.00010390514216851443,
0.14509372413158417,
0.3499031662940979,
0.029226334765553474,
-0.4508459270000458,
0.1350850909948349,
-0.3023417592048645,
-0.39227935671806335,
-0.044512271881103516,
-0.15201950073242188,
-0.1497521549463272,
-0.1942986249923706,
-0.09285613149404526,
-0.33356043696403503,
0.2368958294391632,
0.0695875808596611,
0.30093449354171753,
0.11463616788387299,
-0.1748265027999878,
-0.055850718170404434,
0.1333581656217575,
-0.07269136607646942,
-0.03390464186668396,
0.15258419513702393,
0.17158478498458862,
-0.02666643261909485,
-0.3792465627193451,
0.4052734076976776,
-0.2034498155117035,
0.13348889350891113,
0.39966681599617004,
-0.14778923988342285,
0.08123190701007843,
-0.030795805156230927,
0.38420143723487854,
0.00889519602060318,
0.5154069066047668,
-0.3620007336139679,
-0.3648877441883087,
-0.21129104495048523,
-0.2311091274023056,
-0.10447803884744644,
0.22093570232391357,
-0.1983426958322525,
-0.23475158214569092,
0.1736159324645996,
-0.3927205502986908,
-0.22764724493026733,
0.04179546236991882,
-0.1809525191783905,
0.08807630836963654,
-0.2250024378299713,
0.10536481440067291,
-0.1372445523738861,
-0.12547647953033447,
0.14522063732147217,
0.36747801303863525,
-0.39485490322113037,
-0.021528203040361404,
0.22896912693977356,
-0.46126991510391235,
-0.0239969901740551,
0.394435316324234,
0.3140069544315338,
0.23737600445747375,
0.3474125266075134,
-0.10953208059072495,
0.2829093635082245,
0.1750384122133255,
0.09151024371385574,
-0.13570496439933777,
0.35067054629325867,
-0.03406837582588196,
-0.052787452936172485,
0.37685853242874146,
0.2751897871494293,
-0.4690759778022766,
0.0056924279779195786,
0.1060253381729126,
-0.3259637653827667,
0.5800096988677979,
0.07204669713973999,
0.05242464691400528,
-0.3129972517490387,
-0.0475727841258049,
0.24539458751678467,
0.0636422336101532,
-0.0961804986000061,
0.21225932240486145,
0.26109594106674194,
-0.105435311794281,
0.23114094138145447,
-0.17333538830280304,
-0.21530166268348694,
-0.3223363757133484,
-0.28026282787323,
-0.4096827507019043,
-0.15373148024082184,
0.01192568987607956,
0.30561721324920654,
0.4829463064670563,
-0.4689618945121765,
0.31612351536750793,
0.16185717284679413,
0.01189379021525383,
0.10071277618408203,
0.1903783082962036,
-0.1322103589773178,
0.2143111377954483,
0.2632398307323456,
-0.21326828002929688,
0.010252101346850395,
0.03131110966205597,
-0.11755562573671341,
-0.10584145039319992,
0.22312161326408386,
-0.031761378049850464,
-0.7341607809066772,
0.08890827745199203,
0.23304395377635956,
-0.23815637826919556,
0.04748854041099548,
0.2636314034461975,
0.03360627964138985,
0.38297560811042786,
-0.25035712122917175,
-0.12225881963968277,
-0.09429490566253662,
-0.35736116766929626,
-0.1759210079908371,
0.4980240762233734,
0.7052148580551147,
-0.399689257144928,
0.15282823145389557,
-0.11566295474767685,
0.07751556485891342,
-0.06655346602201462,
0.15918409824371338,
-0.2795013189315796,
0.33397766947746277,
-0.29767119884490967,
-0.42894572019577026,
0.17984677851200104,
-0.38471344113349915,
-0.788780152797699,
0.22515885531902313,
0.1457596868276596,
0.14913809299468994,
0.18185138702392578,
0.039610717445611954,
-0.016945980489253998,
-0.21841658651828766,
0.1615029275417328,
0.23126080632209778,
-0.1634502112865448,
0.09834767132997513,
-0.4349820911884308,
-0.2086121290922165,
0.008962547406554222,
0.06883373856544495,
0.0870123878121376,
0.1695849597454071,
0.0568152479827404,
0.0829613208770752,
0.026786908507347107,
-0.04965389892458916,
0.1402309089899063,
0.37368589639663696,
0.11329500377178192,
-0.11593478918075562,
0.22034181654453278,
-0.16550669074058533,
-0.49900567531585693,
0.41169965267181396,
-0.18209677934646606,
-0.14473164081573486,
-0.05311523377895355,
-0.32271283864974976,
-0.13382866978645325,
-0.08751532435417175,
-0.3375994563102722,
-0.1391991227865219,
0.18845640122890472,
0.24964484572410583,
0.4460930824279785,
-0.07711245119571686,
-0.1581670343875885,
0.28385400772094727,
-0.1640731692314148,
0.0899735763669014,
-0.13269896805286407,
-0.14094796776771545,
-0.0700131356716156,
-0.09916415810585022,
-0.1954043209552765,
0.05743355304002762,
0.1353018879890442,
-0.0667102113366127,
-0.2608095407485962,
0.3024926483631134,
0.07936594635248184,
0.11478418111801147,
0.0711163654923439,
0.27902907133102417,
-0.03507526218891144,
0.18580833077430725,
0.17453479766845703,
-0.07905755937099457,
0.14262214303016663,
-0.038448765873909,
-0.0413476899266243,
0.13542896509170532,
0.046398717910051346,
0.11259147524833679,
-0.138884499669075,
-0.3127247095108032,
0.295370876789093,
-0.12457141280174255,
0.06334573030471802,
-0.14818358421325684,
-0.005783833563327789,
0.07488426566123962,
0.456646591424942,
0.17716778814792633,
0.0018897280097007751,
0.21239995956420898,
0.4804147481918335,
0.16495494544506073,
-0.24868637323379517,
-0.011734221130609512,
-0.0944046601653099,
-0.209872305393219,
0.07300803065299988,
0.39722344279289246,
0.3072851598262787,
0.22163507342338562,
0.21928830444812775,
0.05724190175533295,
-0.006848772056400776,
-0.15892086923122406,
0.09115105122327805,
-0.07537519931793213,
-0.15504997968673706,
0.3534369468688965,
0.28965067863464355,
0.16202524304389954,
-0.34028252959251404,
0.1717141568660736,
0.10149066895246506,
0.17742115259170532,
-0.01994149759411812,
0.14800851047039032,
-0.43742507696151733,
-0.1086440458893776,
-0.17473402619361877,
0.2059914916753769,
-0.18123877048492432,
-0.2643585205078125,
0.09966137260198593,
0.10138256847858429,
-0.11854241788387299,
0.21668016910552979,
-0.12253016233444214,
0.30181407928466797,
0.022989707067608833,
-0.49562638998031616,
-0.2863650321960449,
-0.036214958876371384,
-0.3606925904750824,
0.03165844827890396,
0.4571745991706848,
-0.2570877969264984,
0.3414332866668701,
-0.275306761264801,
-0.11610423028469086,
-0.20355989038944244,
-0.22706109285354614,
0.000994715839624405,
0.031138313934206963,
0.3004498779773712,
-0.12477421760559082,
0.004838787019252777,
0.05451569706201553,
0.06162213534116745,
0.19664393365383148,
-0.21015918254852295,
-0.16139747202396393,
-0.09595285356044769,
-0.0007322716992348433,
0.0984199121594429,
-0.3548963963985443,
-0.31408271193504333,
0.01663462072610855,
-0.4324188232421875,
-0.08865803480148315,
0.12477777898311615,
0.016799595206975937,
0.18204544484615326,
-0.11769001930952072,
0.14047497510910034,
0.04369194433093071,
0.16501489281654358,
-0.27817055583000183,
-0.6232031583786011,
0.27099689841270447,
-0.2506582736968994,
-0.09444718062877655,
0.06155432388186455,
-0.3288155198097229,
0.1137562245130539,
-0.02101431041955948,
-0.47727179527282715,
-0.08005915582180023,
-0.5147485136985779,
0.2753628194332123,
-0.16549910604953766,
0.03156758472323418,
0.4313964247703552,
0.07924667000770569,
-0.11370808631181717,
-0.23643937706947327,
-0.2883405387401581,
0.07907581329345703,
-0.28120627999305725,
0.19446006417274475,
0.0056791845709085464,
0.014072239398956299,
0.18723304569721222,
0.536739706993103,
0.19505569338798523,
-0.09024949371814728,
0.2941385507583618,
0.16394206881523132,
0.4542674720287323,
-0.3149475157260895,
-0.20426593720912933,
0.053016580641269684,
-0.07575953006744385,
-0.2786771059036255,
0.048986513167619705,
0.00713207945227623,
0.00001483224332332611,
-0.1413308084011078,
-0.041351981461048126,
-0.04630139842629433,
-0.305707186460495,
0.059057220816612244,
-0.45346301794052124,
0.19547796249389648,
0.3803461194038391,
0.17413675785064697,
-0.23211076855659485,
-0.10065324604511261,
0.16467972099781036,
0.2463066726922989,
0.16826443374156952,
-0.045725151896476746,
0.035135816782712936,
0.2795373499393463,
-0.40367841720581055,
0.16203776001930237,
0.12889793515205383,
-0.008364601992070675,
0.0930648148059845,
-0.057227972894907,
0.11773548275232315,
-0.09113229811191559,
0.28254348039627075,
-0.5072572827339172,
0.09113270044326782,
0.20383453369140625,
-0.11256889998912811,
0.06277560442686081,
-0.19892609119415283,
0.15047389268875122,
0.2622155249118805,
-0.08798284828662872,
0.25075018405914307,
-0.0011112689971923828,
-0.23511315882205963,
0.12535309791564941,
0.3870459794998169,
-0.11976365745067596,
-0.3344692587852478,
-0.26235225796699524,
-0.027738241478800774,
-0.1591908186674118,
0.056585296988487244,
-0.08125445246696472,
0.24006429314613342,
-0.030811266973614693,
-0.027898073196411133,
-0.13523070514202118,
0.2370300590991974,
-0.1084022969007492,
0.018076691776514053,
0.26286715269088745,
-0.0844259262084961,
0.380377858877182,
0.02520248293876648,
0.030218543484807014,
0.23651261627674103,
0.46476370096206665,
-0.12505903840065002,
-0.23266416788101196,
-0.1947993040084839,
0.053039904683828354,
-0.044909559190273285,
0.251813143491745,
-0.11614891141653061,
-0.2082093358039856,
0.14608988165855408,
-0.01029091328382492,
-0.14743871986865997,
-0.030477412045001984,
-0.02057008258998394,
-0.0034657102078199387,
0.0006028859643265605,
-0.49130979180336,
0.20415809750556946,
0.18955877423286438,
-0.044984180480241776,
0.31988272070884705,
-0.2744067311286926,
-0.028131013736128807,
0.25543731451034546,
0.10068770498037338,
0.6605775952339172,
0.09649372100830078,
-0.03535014018416405,
-0.0036204569041728973,
-0.23167167603969574,
0.32598233222961426,
-0.3080953359603882,
0.24570408463478088,
-0.27950432896614075,
-0.30748969316482544,
0.17358021438121796,
-0.19253484904766083,
0.18910092115402222,
0.03482886776328087,
-0.12405726313591003,
0.22530873119831085,
-0.11510392278432846,
0.1912563145160675,
-0.0458405539393425,
0.31504830718040466,
-0.18686267733573914,
-0.17457859218120575,
-0.02745123580098152,
0.25397223234176636,
0.04697855934500694,
0.24615642428398132,
-0.08152692019939423,
0.01877647452056408,
0.15058265626430511,
-0.08085188269615173,
-0.2379862517118454,
-0.06659828126430511,
-0.10748183727264404,
0.06020263954997063,
0.12139025330543518,
-0.10677006840705872,
-0.04361189901828766,
0.05763407051563263,
0.3026903569698334,
0.2505253255367279,
-0.15882685780525208,
0.1485436111688614,
0.0560753270983696,
0.31961435079574585,
-0.06584343314170837,
-0.21281342208385468,
0.40555939078330994,
-0.06176290661096573,
-0.15896844863891602,
-0.2594930827617645,
-0.42736902832984924,
-0.3726552128791809,
0.268047958612442,
0.14602041244506836,
0.2779167890548706,
0.053310684859752655,
0.07710394263267517,
-0.0018373280763626099,
0.17348609864711761,
-0.2306041270494461,
0.2520277202129364,
0.13480272889137268,
-0.151569202542305,
0.18913228809833527,
-0.33632907271385193,
-0.29912689328193665,
-0.06736941635608673,
0.3114565312862396,
0.15954691171646118,
-0.1517665535211563,
0.4051167070865631,
-0.2084004431962967,
-0.14193184673786163,
-0.18530058860778809,
-0.04755234718322754,
0.07671929150819778,
-0.23267552256584167,
0.0687841922044754,
0.040499620139598846,
0.043103426694869995,
0.15820728242397308,
-0.060867663472890854,
0.039564646780490875,
0.02453315258026123,
-0.31338462233543396,
-0.2225445806980133,
-0.4285656809806824,
-0.21933187544345856,
-0.06328529119491577,
0.12238499522209167,
-0.0012285895645618439,
-0.026729684323072433,
0.15031301975250244,
0.27602121233940125,
-0.4142198860645294,
-0.05660103261470795,
-0.27916762232780457,
0.102412648499012,
-0.28814736008644104,
0.09848728775978088,
0.11464675515890121,
-0.07665534317493439,
0.06322962045669556,
0.13050200045108795,
-0.3284517824649811,
-0.32287728786468506,
0.02420131117105484,
0.0945783406496048,
-0.01660708710551262,
0.2232036292552948,
-0.1147041916847229,
0.07946715503931046,
0.018437135964632034,
-0.0887315571308136,
0.20977389812469482,
-0.017842838540673256,
-0.11041434109210968,
0.2679867446422577,
0.12212219834327698,
0.32237669825553894,
-0.009901506826281548,
-0.043062418699264526,
-0.15509185194969177,
0.21931986510753632,
-0.04333687573671341,
0.1086946576833725,
-0.05448690429329872,
-0.07055750489234924,
0.1329292356967926,
-0.05702377110719681,
-0.1508285254240036,
0.19239702820777893,
0.2223357856273651,
-0.18649278581142426,
-0.060229942202568054,
0.32183554768562317,
0.24001935124397278,
0.0907401591539383,
-0.00544792041182518,
-0.1957659274339676,
0.30035629868507385,
0.28325846791267395,
-0.21940790116786957,
-0.17066004872322083,
0.28014808893203735,
-0.013226798735558987,
0.15952841937541962,
0.06501216441392899,
0.35554397106170654,
-0.19909490644931793,
0.23371091485023499,
0.13219943642616272,
0.32321697473526,
-0.4168415069580078,
0.08627036213874817,
0.28539755940437317,
0.16575314104557037,
0.008256576955318451,
0.20531539618968964,
0.06719492375850677,
0.0971907451748848,
0.614358127117157,
-0.0283520445227623,
0.21895530819892883,
-0.02856530249118805,
0.2101491540670395,
-0.22618088126182556,
-0.5105990767478943,
0.4365904927253723,
0.15501978993415833,
-0.11809530854225159,
-0.10576247423887253,
-0.1610126942396164,
0.22955146431922913,
0.10730539262294769,
-0.129293292760849,
-0.1949426233768463,
0.14979177713394165,
-0.28434738516807556,
0.03437726944684982,
0.1221884936094284,
-0.02414393052458763,
0.13868118822574615,
0.10233661532402039,
0.21879364550113678,
0.17567825317382812,
0.28151005506515503,
-0.05672924220561981,
-0.10321559011936188,
-0.0950155109167099,
0.19167181849479675,
-0.04509185999631882,
0.11945667117834091,
-0.1141229122877121,
0.18233825266361237,
0.10998419672250748,
-0.1482103317975998,
-0.00761612132191658,
0.3853505849838257,
0.3195371627807617,
0.27899330854415894,
-0.07871954143047333,
0.12486151605844498,
-0.174956277012825,
-0.008357753977179527,
-0.42221593856811523,
0.33394655585289,
-0.34016236662864685,
-0.22747661173343658,
0.3249015212059021,
0.12725573778152466,
-0.20514605939388275,
0.01823432371020317,
-0.14528730511665344,
0.06907375156879425,
-0.40517765283584595,
0.336097776889801,
0.35964685678482056,
-0.01559508591890335,
-0.10136494040489197,
0.2376699447631836,
-0.23261752724647522,
-0.25243282318115234,
0.4349990487098694,
-0.060438428074121475,
0.08783785253763199,
-0.30280202627182007,
0.14567512273788452,
-0.1554863005876541,
0.48444998264312744,
0.27880921959877014,
-0.0002207532525062561,
-0.24523109197616577,
-0.1420566290616989,
-0.6544241309165955,
0.21141281723976135,
-0.05189451202750206,
0.21119284629821777,
0.04969947412610054,
0.2326924055814743,
-0.1671118140220642,
0.11673721671104431,
0.05904509872198105,
-0.016742456704378128,
0.17963062226772308,
0.032886818051338196,
-0.2991631329059601,
0.1567019373178482,
-0.1595657914876938,
-0.3394169807434082,
0.08945382386445999,
-0.4561433792114258,
0.3197132349014282,
-0.21778225898742676,
0.1850193738937378,
0.21906040608882904,
-0.15686076879501343,
0.3673102855682373,
0.23137547075748444,
0.3429592549800873,
0.2560585141181946,
0.10626932233572006,
0.029454253613948822,
-0.016391512006521225,
-0.20159396529197693,
0.21785598993301392,
-0.3097851872444153,
0.19812679290771484,
-0.22019228339195251,
0.09758781641721725,
-0.4092787206172943,
-0.17605748772621155,
-0.28285402059555054,
0.3462899327278137,
0.08793884515762329,
-0.005146913230419159,
-0.06528602540493011,
-0.0974266529083252,
-0.22847828269004822,
0.40503665804862976,
0.27156320214271545,
0.07124562561511993,
0.05810174345970154,
0.18293385207653046,
-0.4816669225692749,
-0.17423653602600098,
0.41951674222946167,
-0.22154274582862854,
-0.2811938524246216,
-0.26820334792137146,
0.37211108207702637,
-0.09363669902086258,
-0.2679523527622223,
-0.222182959318161,
0.09803038090467453,
0.31290823221206665,
-0.003539472818374634,
0.00035081058740615845,
0.33778634667396545,
-0.15323656797409058,
0.3676835000514984,
-0.06706596165895462,
-0.13772915303707123,
0.05994008481502533,
0.1395837515592575,
-0.10613037645816803,
-0.15507099032402039
] |
https://github.com/huggingface/datasets/issues/2559 | Memory usage consistently increases when processing a dataset with `.map` | Hi ! Can you share the function you pass to `map` ?
I know you mentioned it would be hard to share some code but this would really help to understand what happened | ## Describe the bug
I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch size but that doesn't seem to help.
## Steps to reproduce the bug
Providing code as it is would be hard. I can provide a MVP if that helps.
## Expected results
Memory usage should become consistent after some time following the launch of processing.
## Actual results
Memory usage keeps on increasing.
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0 | 33 | Memory usage consistently increases when processing a dataset with `.map`
## Describe the bug
I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch size but that doesn't seem to help.
## Steps to reproduce the bug
Providing code as it is would be hard. I can provide a MVP if that helps.
## Expected results
Memory usage should become consistent after some time following the launch of processing.
## Actual results
Memory usage keeps on increasing.
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
Hi ! Can you share the function you pass to `map` ?
I know you mentioned it would be hard to share some code but this would really help to understand what happened | [
-0.15703518688678741,
-0.12911401689052582,
0.007089350372552872,
0.4211387038230896,
0.1809350699186325,
-0.006408222019672394,
0.05896906927227974,
0.1185612678527832,
0.2151496857404709,
0.13143692910671234,
0.40360963344573975,
0.517960250377655,
-0.18737541139125824,
-0.034299228340387344,
-0.07754787057638168,
0.07395215332508087,
0.10070940852165222,
0.06218547374010086,
-0.0024833232164382935,
0.08143240213394165,
-0.2891271114349365,
0.14853689074516296,
-0.26389172673225403,
-0.016958288848400116,
-0.3848561942577362,
-0.23752957582473755,
0.02835947833955288,
0.15951001644134521,
0.27121782302856445,
-0.4738774597644806,
-0.12402169406414032,
-0.005695369094610214,
0.10056529194116592,
0.5225366353988647,
-0.00012555293506011367,
-0.030560649931430817,
0.4019310474395752,
-0.011966588906943798,
-0.014850582927465439,
0.12461725622415543,
-0.34125077724456787,
-0.14958330988883972,
0.0193181112408638,
-0.09838522225618362,
0.23450341820716858,
-0.02821766585111618,
-0.01444266177713871,
-0.40912994742393494,
0.2877306342124939,
0.07451047748327255,
0.10728605091571808,
-0.04050063341856003,
0.04021361842751503,
0.2015884518623352,
0.3487721383571625,
0.38777148723602295,
0.07708214223384857,
0.11276143789291382,
0.04784993827342987,
-0.262783944606781,
-0.4136321544647217,
0.2883908748626709,
-0.023698752745985985,
0.1897915154695511,
0.5099974870681763,
-0.01349185872823,
0.3311569094657898,
-0.38165175914764404,
0.45296019315719604,
-0.10678622871637344,
0.14171776175498962,
-0.2396409511566162,
0.23092587292194366,
-0.2007996141910553,
-0.3240596652030945,
-0.0723850354552269,
0.25776875019073486,
0.1840461641550064,
-0.33460289239883423,
-0.09821464121341705,
-0.269187331199646,
-0.23709924519062042,
-0.13937443494796753,
0.17063555121421814,
0.1292567104101181,
-0.31418508291244507,
-0.020100384950637817,
0.25195905566215515,
0.38427841663360596,
-0.14384791254997253,
0.045506592839956284,
-0.390264630317688,
-0.06031345948576927,
0.2051590383052826,
-0.21770359575748444,
0.36166292428970337,
0.1598580777645111,
-0.13904303312301636,
0.18601566553115845,
-0.47997182607650757,
0.04711676761507988,
0.049390122294425964,
-0.07072699815034866,
0.3078663647174835,
0.5049359798431396,
0.007135570049285889,
0.03394065052270889,
0.3567735254764557,
0.14456045627593994,
0.07390180975198746,
-0.4335690140724182,
-0.0968736931681633,
-0.0254753977060318,
-0.15042173862457275,
0.5621680617332458,
-0.43410611152648926,
-0.008952267467975616,
-0.016201946884393692,
0.08388588577508926,
0.14404074847698212,
-0.2474452555179596,
-0.1192665621638298,
-0.10693205893039703,
0.277306467294693,
0.16082897782325745,
0.21248960494995117,
0.07982508838176727,
-0.12002621591091156,
-0.2981455326080322,
0.10349762439727783,
-0.061795614659786224,
-0.22472593188285828,
-0.47266465425491333,
0.28193357586860657,
-0.11379383504390717,
-0.023724190890789032,
0.07998491078615189,
0.08393252640962601,
-0.18095386028289795,
-0.4311407506465912,
0.21903175115585327,
-0.30979108810424805,
0.30813342332839966,
0.13379338383674622,
-0.2712440490722656,
0.1661079078912735,
-0.25650709867477417,
0.24149636924266815,
0.0015335828065872192,
0.6213240027427673,
-0.4938790202140808,
-0.24637465178966522,
0.06669766455888748,
-0.05544741824269295,
0.16100402176380157,
0.23729930818080902,
-0.2890390455722809,
0.0802730917930603,
0.4135132133960724,
-0.12287870049476624,
-0.05412743240594864,
-0.15087024867534637,
-0.3637877106666565,
-0.35680091381073,
0.07448957860469818,
0.5120198130607605,
-0.24211561679840088,
-0.057094912976026535,
-0.06980228424072266,
0.1361999362707138,
0.39402690529823303,
0.339407742023468,
-0.14521948993206024,
0.21797052025794983,
-0.2710812985897064,
-0.009268753230571747,
0.05358084291219711,
-0.13539929687976837,
-0.46031510829925537,
0.16261962056159973,
0.03542470932006836,
0.04411713778972626,
-0.16762739419937134,
0.09172384440898895,
0.11362140625715256,
-0.02061203122138977,
0.08106745034456253,
0.23995469510555267,
0.067284494638443,
0.21780726313591003,
-0.3566509485244751,
-0.330613911151886,
-0.16026809811592102,
-0.0686362087726593,
0.01617356762290001,
-0.15257596969604492,
0.09987759590148926,
-0.33163222670555115,
0.4156738221645355,
-0.1726183444261551,
0.1996030956506729,
0.38734596967697144,
0.3280889689922333,
0.07157087326049805,
0.08201416581869125,
-0.03711996227502823,
0.02182413637638092,
0.06859235465526581,
-0.5524810552597046,
-0.46972841024398804,
-0.08928711712360382,
0.05952892452478409,
0.17691421508789062,
0.20536398887634277,
-0.09544555842876434,
-0.08835554122924805,
-0.07365614175796509,
-0.11792874336242676,
-0.30363038182258606,
-0.0247291661798954,
0.14441201090812683,
0.15267370641231537,
0.06563576310873032,
-0.04426044970750809,
0.027166258543729782,
0.23997046053409576,
0.07523670047521591,
-0.20474329590797424,
-0.2014557272195816,
0.06568549573421478,
0.06613370031118393,
0.06542033702135086,
-0.2618906795978546,
0.15133529901504517,
0.2842338979244232,
0.10639649629592896,
-0.07418321818113327,
0.07390288263559341,
0.38493794202804565,
-0.14978860318660736,
0.2134181559085846,
-0.06418012082576752,
0.10574743151664734,
-0.06672132015228271,
0.12133106589317322,
-0.2330109030008316,
0.3269649147987366,
0.35125216841697693,
-0.058207109570503235,
-0.1533297449350357,
-0.021070770919322968,
-0.019961487501859665,
0.43869122862815857,
-0.1539628803730011,
-0.14737755060195923,
0.08735847473144531,
0.26505300402641296,
0.28843608498573303,
0.05703708529472351,
0.0676862820982933,
0.4835437834262848,
0.18636225163936615,
-0.09078579396009445,
0.42159685492515564,
-0.48088908195495605,
-0.13821560144424438,
0.24034008383750916,
-0.014124024659395218,
0.19930124282836914,
0.03444197028875351,
-0.17491918802261353,
0.05505380779504776,
0.0971425473690033,
-0.012740802951157093,
0.10647338628768921,
0.20500144362449646,
0.5473659038543701,
0.11843476444482803,
0.26934292912483215,
-0.01061257068067789,
-0.10872206091880798,
-0.06343959271907806,
0.02049398235976696,
0.022230952978134155,
-0.2989659905433655,
0.20887234807014465,
-0.24584241211414337,
0.16147097945213318,
-0.11524851620197296,
0.16598042845726013,
-0.2664538323879242,
-0.08651179820299149,
-0.19479963183403015,
0.25224563479423523,
-0.023851890116930008,
0.052924059331417084,
0.03733871504664421,
0.13349613547325134,
0.24251823127269745,
-0.2201695293188095,
-0.1335165649652481,
-0.2635025382041931,
-0.37343427538871765,
-0.18667741119861603,
0.3813977837562561,
-0.18527409434318542,
0.3777766525745392,
0.1496836543083191,
0.11761553585529327,
-0.2089557945728302,
-0.12447240948677063,
-0.0028926171362400055,
0.30832934379577637,
0.21730142831802368,
-0.09699170291423798,
0.1768709123134613,
-0.1049770638346672,
0.09705813229084015,
0.18644744157791138,
-0.47873732447624207,
0.0666566789150238,
0.1396717131137848,
-0.11923634260892868,
-0.20645380020141602,
-0.01728403940796852,
0.06377820670604706,
0.049852050840854645,
-0.220995232462883,
0.23917917907238007,
0.08815379440784454,
0.3557164669036865,
0.23300525546073914,
0.4234001040458679,
0.22553424537181854,
-0.22169457376003265,
-0.24988850951194763,
-0.13886044919490814,
-0.05413614958524704,
0.03147289156913757,
-0.08526768535375595,
-0.023558765649795532,
0.0020438358187675476,
-0.04981061443686485,
0.12985888123512268,
0.3587280511856079,
-0.698262631893158,
0.030165813863277435,
-0.2623221278190613,
0.287271112203598,
-0.1540241241455078,
0.23278729617595673,
0.19004932045936584,
0.2522500157356262,
0.006876280531287193,
-0.11991467326879501,
-0.34126532077789307,
0.22694599628448486,
0.1021324023604393,
0.26220256090164185,
0.4573037028312683,
0.23408472537994385,
0.17237989604473114,
0.6430392265319824,
0.3681112825870514,
-0.12705959379673004,
0.5097684860229492,
-0.10937126725912094,
0.1468431055545807,
-0.18530812859535217,
-0.08029485493898392,
-0.14675001800060272,
-0.3551235496997833,
-0.10134627670049667,
0.056473370641469955,
0.15981319546699524,
-0.3769489824771881,
0.3007534146308899,
-0.23857195675373077,
-0.014685174450278282,
-0.3792765438556671,
0.33193907141685486,
-0.08863683044910431,
0.4131891429424286,
0.03187254071235657,
-0.0961550772190094,
-0.4214276671409607,
-0.4405424892902374,
0.1351609230041504,
-0.40026724338531494,
0.1780538707971573,
-0.03969921916723251,
-0.04011622071266174,
-0.013843371532857418,
-0.5272114872932434,
0.3067459464073181,
0.03904616832733154,
0.26212742924690247,
-0.02972494810819626,
0.049197882413864136,
0.2986947298049927,
-0.07603089511394501,
0.5504163503646851,
-0.03471340984106064,
0.05231660231947899,
-0.08927825093269348,
0.021284397691488266,
-0.475646436214447,
0.05521706864237785,
-0.0031108520925045013,
0.38081321120262146,
0.09405036270618439,
0.3508795499801636,
0.06972476094961166,
-0.18757875263690948,
0.013251855969429016,
0.04215768352150917,
-0.23547260463237762,
-0.49618062376976013,
-0.1325453519821167,
-0.18410912156105042,
-0.43044421076774597,
0.010923005640506744,
-0.046567901968955994,
0.033602338284254074,
0.31650784611701965,
-0.3026171922683716,
0.12140148878097534,
0.13581126928329468,
0.001741252839565277,
-0.23510552942752838,
0.5520073175430298,
-0.02325129508972168,
0.0332287959754467,
0.3382866084575653,
-0.19803857803344727,
0.2834864556789398,
0.40857964754104614,
-0.20609673857688904,
0.11846602708101273,
-0.1302347183227539,
-0.19769316911697388,
0.2686096429824829,
0.27232909202575684,
0.05603410303592682,
-0.027152925729751587,
-0.04408200830221176,
0.24031206965446472,
-0.3981294631958008,
0.02366209402680397,
0.4464378356933594,
0.15398645401000977,
-0.15112215280532837,
-0.40742701292037964,
0.3398567736148834,
0.3760685622692108,
-0.1697612851858139,
0.8557538390159607,
-0.31922096014022827,
-0.2748616635799408,
0.44500869512557983,
0.4598816931247711,
0.7785282731056213,
-0.3535764217376709,
0.35092389583587646,
-0.11296933144330978,
-0.4027540683746338,
-0.345840185880661,
-0.19956548511981964,
0.08182284981012344,
-0.48454514145851135,
0.03334228694438934,
0.09101228415966034,
-0.24878887832164764,
0.21007388830184937,
0.3734506368637085,
-0.025713995099067688,
0.049720752984285355,
-0.12066192179918289,
0.19247806072235107,
0.04933542758226395,
0.0023937560617923737,
0.21569962799549103,
-0.2018442153930664,
0.12367462366819382,
0.01533472165465355,
0.06751227378845215,
-0.18633770942687988,
-0.03636198490858078,
0.05344253405928612,
0.2349960207939148,
-0.169999361038208,
-0.23454298079013824,
-0.11184652894735336,
-0.5601989030838013,
0.2767539620399475,
-0.039671335369348526,
0.2962334156036377,
0.027737747877836227,
0.055903103202581406,
-0.4646375775337219,
0.1299651712179184,
0.043567344546318054,
0.08328171074390411,
0.46696388721466064,
0.2642526924610138,
0.15064668655395508,
0.013683375902473927,
0.0841357484459877,
-0.018543390557169914,
-0.313071608543396,
0.10033565759658813,
-0.23818325996398926,
-0.23659682273864746,
-0.43852174282073975,
0.3223329484462738,
0.2301785945892334,
0.0799805149435997,
-0.28597334027290344,
-0.08775852620601654,
-0.1497965008020401,
0.14726541936397552,
0.02547380141913891,
0.163495272397995,
0.010422066785395145,
0.7786633372306824,
-0.21519918739795685,
-0.34802013635635376,
0.04236992821097374,
0.1496228277683258,
-0.027684517204761505,
0.13804872334003448,
0.26218441128730774,
0.026845786720514297,
-0.1049383357167244,
-0.037830084562301636,
0.242471843957901,
0.07396615296602249,
-0.27942126989364624,
0.1698550581932068,
0.042032934725284576,
-0.16161823272705078,
-0.09632862359285355,
-0.16692030429840088,
-0.12375541031360626,
-0.2514387369155884,
-0.23424886167049408,
-0.11395515501499176,
-0.5196937322616577,
-0.16515791416168213,
-0.26434606313705444,
0.24413658678531647,
0.05326635390520096,
-0.4230465292930603,
0.11318619549274445,
0.4644659757614136,
-0.11002668738365173,
0.1683983951807022,
0.13391950726509094,
0.18941597640514374,
-0.024443868547677994,
0.09713523834943771,
0.19883650541305542,
-0.18795146048069,
-0.10958954691886902,
0.2368975728750229,
-0.25324729084968567,
-0.08616015315055847,
-0.21980592608451843,
0.2332850992679596,
-0.19534704089164734,
-0.21726186573505402,
0.04408466815948486,
-0.29313957691192627,
0.13562504947185516,
-0.3491417467594147,
0.25788065791130066,
0.08388977497816086,
-0.2328198105096817,
0.037301648408174515,
0.238815575838089,
-0.3311466574668884,
0.2201017290353775,
0.45457547903060913,
-0.04256133735179901,
0.4388764500617981,
0.1643189787864685,
0.17440687119960785,
0.1810053288936615,
-0.083299420773983,
-0.1607128083705902,
-0.05588041990995407,
0.14910002052783966,
0.003074854612350464,
0.23419040441513062,
-0.2745850086212158,
0.013263683766126633,
0.08008108288049698,
0.0003390926867723465,
0.18821166455745697,
-0.2667373716831207,
-0.14756299555301666,
0.049292661249637604,
0.07828063517808914,
0.01344355195760727,
-0.25281357765197754,
0.48698532581329346,
0.11273238807916641,
-0.2317194640636444,
0.13654369115829468,
0.2346695363521576,
-0.12237833440303802,
-0.20933450758457184,
0.20053783059120178,
0.0721568614244461,
-0.5397239327430725,
0.028127826750278473,
0.16198945045471191,
0.014795001596212387,
0.021054532378911972,
0.2359560877084732,
0.20582732558250427,
0.21016375720500946,
0.5615079402923584,
0.30886316299438477,
0.09746691584587097,
0.3279835283756256,
0.08735696971416473,
-0.1292038857936859,
-0.5117126703262329,
-0.0755152553319931,
0.6525538563728333,
-0.29396334290504456,
0.37012383341789246,
0.05294148251414299,
0.39673912525177,
0.3359198570251465,
-0.5242994427680969,
-0.0725555568933487,
0.3195095956325531,
-0.1616053581237793,
-0.16438241302967072,
0.24009820818901062,
0.0061773136258125305,
-0.10969998687505722,
0.1531413495540619,
0.12169893085956573,
-0.12378893792629242,
0.7778658866882324,
0.28353986144065857,
-0.08757540583610535,
-0.18898487091064453,
-0.12796595692634583,
0.24201369285583496,
0.3362991511821747,
-0.26567694544792175,
0.23355074226856232,
-0.2037665992975235,
0.06243370845913887,
-0.10593684017658234,
-0.05292477458715439,
0.4486577808856964,
0.44293665885925293,
-0.2017534077167511,
0.133696049451828,
-0.04504379257559776,
0.15854838490486145,
-0.1356237828731537,
0.23301482200622559,
-0.03457460552453995,
0.1134566068649292,
-0.039414942264556885,
-0.08562850207090378,
0.024861011654138565,
-0.25275930762290955,
0.23645076155662537,
0.44645488262176514,
-0.1928066611289978,
0.29656466841697693,
0.0010081790387630463,
-0.2750469446182251,
0.13025614619255066,
-0.2166997492313385,
-0.17029665410518646,
-0.025326035916805267,
0.6866878271102905,
-0.6103773713111877,
0.17354846000671387,
-0.24397286772727966,
-0.019574075937271118,
-0.2057759314775467,
0.5154131054878235,
0.02126358076930046,
0.11832167208194733,
-0.27500268816947937,
-0.09613621979951859,
-0.4455815851688385,
0.03837260603904724,
-0.4475419521331787,
0.024119583889842033,
0.22090891003608704,
-0.02058371528983116,
-0.411844938993454,
-0.1685488522052765,
0.4470587372779846,
-0.15555015206336975,
0.10676077753305435,
0.20955315232276917,
-0.4646932780742645,
0.10162118077278137,
-0.10603344440460205,
0.06459816545248032,
0.04892487823963165,
-0.5800876021385193,
0.3102748394012451,
-0.2063923180103302,
-0.07242894172668457,
-0.21616491675376892,
-0.12797507643699646,
0.08319519460201263,
0.1493740677833557,
0.7480971813201904,
0.1544765681028366,
0.09335789829492569,
-0.10137174278497696,
-0.1662064492702484,
-0.23866644501686096,
-0.009287413209676743,
-0.10826577246189117,
-0.30076321959495544,
0.04824036359786987,
0.2131527066230774,
-0.41867074370384216,
-0.31624457240104675,
-0.09584670513868332,
-0.09732599556446075,
-0.012664373964071274,
-0.10179080814123154,
-0.03130467236042023,
-0.0376611202955246,
-0.07186050713062286,
0.25852540135383606,
-0.04725890979170799,
0.4419742226600647,
0.006575103849172592,
0.12750452756881714,
-0.2060886025428772,
-0.17019520699977875,
0.3051474690437317,
-0.5047956109046936,
-0.5666653513908386,
0.24868445098400116,
0.222200408577919,
-0.2913552522659302,
-0.4132837951183319,
-0.4088243842124939,
-0.30573421716690063,
0.3120824992656708,
0.11087657511234283,
-0.309855192899704,
0.09576088190078735,
-0.2816905975341797,
0.09548434615135193,
-0.05517866462469101,
0.3852955996990204,
0.05106782168149948,
-0.16659998893737793,
0.221966952085495,
-0.13969683647155762
] |
https://github.com/huggingface/datasets/issues/2559 | Memory usage consistently increases when processing a dataset with `.map` | This is the same behavior as in #4883, so I'm closing this issue as a duplicate. | ## Describe the bug
I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch size but that doesn't seem to help.
## Steps to reproduce the bug
Providing code as it is would be hard. I can provide a MVP if that helps.
## Expected results
Memory usage should become consistent after some time following the launch of processing.
## Actual results
Memory usage keeps on increasing.
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0 | 16 | Memory usage consistently increases when processing a dataset with `.map`
## Describe the bug
I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch size but that doesn't seem to help.
## Steps to reproduce the bug
Providing code as it is would be hard. I can provide a MVP if that helps.
## Expected results
Memory usage should become consistent after some time following the launch of processing.
## Actual results
Memory usage keeps on increasing.
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid
- Python version: 3.7.7
- PyArrow version: 3.0.0
This is the same behavior as in #4883, so I'm closing this issue as a duplicate. | [
-0.19101159274578094,
-0.0638248398900032,
0.03221680223941803,
0.39272981882095337,
0.16019807755947113,
0.016504555940628052,
0.08988499641418457,
0.13279522955417633,
0.1827591061592102,
0.11710865050554276,
0.4064229130744934,
0.47829845547676086,
-0.17476202547550201,
-0.024102643132209778,
-0.05594661086797714,
0.0729127824306488,
0.09528706967830658,
0.06559017300605774,
0.011079631745815277,
0.10777239501476288,
-0.29734429717063904,
0.13115961849689484,
-0.2842734158039093,
-0.054635003209114075,
-0.42994508147239685,
-0.25475165247917175,
0.05147024989128113,
0.1480104625225067,
0.2630215287208557,
-0.5179470181465149,
-0.13822820782661438,
0.054247621446847916,
0.14288251101970673,
0.4999629855155945,
-0.0001274287496926263,
-0.02294744923710823,
0.4043484926223755,
0.013030240312218666,
-0.058231234550476074,
0.19761045277118683,
-0.3148818910121918,
-0.15645162761211395,
0.06522467732429504,
-0.05123729258775711,
0.24456384778022766,
-0.03322579711675644,
0.008403889834880829,
-0.389567494392395,
0.25656914710998535,
0.03738684207201004,
0.0798235833644867,
0.0314054973423481,
0.017120223492383957,
0.22047404944896698,
0.3357766568660736,
0.4060143232345581,
0.06121700257062912,
0.10488493740558624,
0.04165002703666687,
-0.23392759263515472,
-0.41252797842025757,
0.3038341999053955,
0.010077869519591331,
0.19182191789150238,
0.47732749581336975,
-0.026702098548412323,
0.32722941040992737,
-0.30428797006607056,
0.48239022493362427,
-0.053822241723537445,
0.16149894893169403,
-0.21224188804626465,
0.18856202065944672,
-0.27698618173599243,
-0.3110410273075104,
-0.08890452980995178,
0.28310075402259827,
0.22304502129554749,
-0.29363659024238586,
-0.0961543470621109,
-0.25769492983818054,
-0.24544672667980194,
-0.140319362282753,
0.1541007161140442,
0.12283256649971008,
-0.3083227872848511,
0.006311381701380014,
0.2498718798160553,
0.406536340713501,
-0.14745348691940308,
0.09695598483085632,
-0.3630259335041046,
-0.09768155217170715,
0.17469754815101624,
-0.2224855273962021,
0.3777609169483185,
0.13628393411636353,
-0.15655028820037842,
0.1746644377708435,
-0.4820888042449951,
0.10120484977960587,
0.08997882902622223,
-0.044562842696905136,
0.3002125322818756,
0.5395973324775696,
-0.02307720109820366,
0.0449189692735672,
0.32589203119277954,
0.20478184521198273,
0.07288089394569397,
-0.42791274189949036,
-0.07279253751039505,
-0.024036359041929245,
-0.17848140001296997,
0.5019626617431641,
-0.4415147304534912,
-0.06314818561077118,
0.0013130605220794678,
0.06679667532444,
0.15198133885860443,
-0.23978906869888306,
-0.11392554640769958,
-0.12489273399114609,
0.21524456143379211,
0.22236303985118866,
0.23495885729789734,
0.05156506597995758,
-0.05654995143413544,
-0.33198872208595276,
0.08466070145368576,
-0.06867540627717972,
-0.24985067546367645,
-0.4458213746547699,
0.27642250061035156,
-0.0817788764834404,
0.024350125342607498,
0.07635335624217987,
0.07275895029306412,
-0.19877119362354279,
-0.4263138175010681,
0.2398800551891327,
-0.29655721783638,
0.3328152000904083,
0.17005282640457153,
-0.2682592272758484,
0.15105101466178894,
-0.269120454788208,
0.19321350753307343,
0.015095129609107971,
0.6197162866592407,
-0.40778836607933044,
-0.2205655425786972,
0.12768042087554932,
-0.07599611580371857,
0.11946667730808258,
0.16907437145709991,
-0.30455282330513,
0.09276032447814941,
0.42848989367485046,
-0.07566273212432861,
-0.08977217227220535,
-0.1709567904472351,
-0.345030277967453,
-0.299757719039917,
-0.003410613164305687,
0.5275294780731201,
-0.296957790851593,
-0.03870970383286476,
-0.04196469485759735,
0.14290885627269745,
0.3403746783733368,
0.3383494019508362,
-0.13926124572753906,
0.20846998691558838,
-0.2645399868488312,
-0.018615655601024628,
-0.017242945730686188,
-0.10509232431650162,
-0.4119712710380554,
0.16469979286193848,
0.080538809299469,
0.056813858449459076,
-0.15119260549545288,
0.10975581407546997,
0.09857892990112305,
-0.01755407266318798,
0.04568762704730034,
0.18043942749500275,
0.08253232389688492,
0.19853004813194275,
-0.375746488571167,
-0.3455924689769745,
-0.18143054842948914,
-0.09871524572372437,
0.039212070405483246,
-0.17658784985542297,
0.04452655091881752,
-0.32931089401245117,
0.4268757700920105,
-0.1881493180990219,
0.2169245481491089,
0.39718741178512573,
0.3321460485458374,
0.03770395740866661,
0.04824946075677872,
-0.045199617743492126,
0.013525094836950302,
0.074791818857193,
-0.5554376840591431,
-0.43428876996040344,
-0.08610373735427856,
0.0542331337928772,
0.2523542046546936,
0.1935425102710724,
-0.09011702239513397,
-0.09423297643661499,
-0.09732996672391891,
-0.14122620224952698,
-0.3465823829174042,
-0.042752400040626526,
0.11755843460559845,
0.15836162865161896,
0.09346401691436768,
-0.009642166085541248,
0.03171246498823166,
0.22907550632953644,
0.09946238249540329,
-0.18898095190525055,
-0.2127266526222229,
0.05173218250274658,
0.020261414349079132,
0.025876017287373543,
-0.23373904824256897,
0.1299770325422287,
0.2821219563484192,
0.08256478607654572,
-0.027725927531719208,
0.11399195343255997,
0.40488508343696594,
-0.11916575580835342,
0.18162766098976135,
-0.1063046008348465,
0.07928548753261566,
-0.05213698372244835,
0.11819286644458771,
-0.1993710845708847,
0.34139925241470337,
0.3609149158000946,
-0.02101965993642807,
-0.18754693865776062,
0.02265739254653454,
-0.01086210086941719,
0.4545658230781555,
-0.16711917519569397,
-0.2107502669095993,
0.14214321970939636,
0.2631492018699646,
0.2933392822742462,
0.047951266169548035,
0.0936644971370697,
0.42865437269210815,
0.2054990977048874,
-0.13426914811134338,
0.39281347393989563,
-0.5097230672836304,
-0.14262917637825012,
0.21151450276374817,
0.010752018541097641,
0.18844109773635864,
0.05841086432337761,
-0.13711963593959808,
0.05462215095758438,
0.08666762709617615,
-0.07323823124170303,
0.12056814879179001,
0.22488680481910706,
0.5567168593406677,
0.1548309624195099,
0.2647065818309784,
-0.07801489531993866,
-0.12902605533599854,
0.021782688796520233,
0.06934811174869537,
0.01774146780371666,
-0.30710968375205994,
0.21595533192157745,
-0.2672271430492401,
0.1722264289855957,
-0.12320633232593536,
0.18960897624492645,
-0.27715933322906494,
-0.11064407229423523,
-0.13242878019809723,
0.27370309829711914,
-0.08164145052433014,
0.04995354264974594,
-0.0007751602679491043,
0.10826228559017181,
0.264201283454895,
-0.24559031426906586,
-0.10855460911989212,
-0.26933014392852783,
-0.3808373808860779,
-0.18286357820034027,
0.39206385612487793,
-0.21983419358730316,
0.33804652094841003,
0.1403232216835022,
0.1283027082681656,
-0.26099511981010437,
-0.14180400967597961,
0.0032826364040374756,
0.3233012557029724,
0.21785219013690948,
-0.12319467961788177,
0.13750596344470978,
-0.07871580123901367,
0.10520453006029129,
0.18169334530830383,
-0.4803503453731537,
0.09283160418272018,
0.13957639038562775,
-0.0897771567106247,
-0.21877004206180573,
-0.005963267758488655,
0.06839434057474136,
0.10777677595615387,
-0.19760864973068237,
0.2485198676586151,
0.07523305714130402,
0.32669806480407715,
0.2522350549697876,
0.4185715615749359,
0.20030899345874786,
-0.23697508871555328,
-0.31588292121887207,
-0.11560813337564468,
-0.06152975931763649,
0.007511690258979797,
-0.05340634286403656,
-0.012933611869812012,
0.02195659652352333,
-0.09245522320270538,
0.1585565060377121,
0.40919291973114014,
-0.7000615000724792,
0.0873517245054245,
-0.27117273211479187,
0.30778318643569946,
-0.11090746521949768,
0.2377455234527588,
0.1799241006374359,
0.23674574494361877,
0.0022590868175029755,
-0.11452313512563705,
-0.2924466133117676,
0.31024855375289917,
0.07821696996688843,
0.24123862385749817,
0.3912543058395386,
0.20233044028282166,
0.20009687542915344,
0.6192964315414429,
0.3302431106567383,
-0.14265398681163788,
0.5026583671569824,
-0.0862390547990799,
0.1424705535173416,
-0.21178710460662842,
-0.03400731831789017,
-0.14246344566345215,
-0.3778201639652252,
-0.08412696421146393,
0.10668741911649704,
0.20085877180099487,
-0.3840979039669037,
0.3067290782928467,
-0.18960542976856232,
0.04989360272884369,
-0.39502570033073425,
0.34976866841316223,
-0.10401812195777893,
0.4426945447921753,
0.10977140069007874,
-0.07150911539793015,
-0.3941449522972107,
-0.4800077974796295,
0.07307566702365875,
-0.39214152097702026,
0.19605059921741486,
-0.025951838120818138,
-0.07520054280757904,
-0.01738421991467476,
-0.542723536491394,
0.2953742742538452,
0.02724156156182289,
0.315516859292984,
-0.004359185695648193,
-0.00648919865489006,
0.2800123989582062,
-0.05900673195719719,
0.5425844192504883,
-0.008622618392109871,
0.03135157376527786,
-0.10008662939071655,
-0.005995679646730423,
-0.5010560750961304,
0.013136770576238632,
0.0030742399394512177,
0.3476412296295166,
0.09608662128448486,
0.35918572545051575,
0.06415777653455734,
-0.2048552930355072,
0.022182298824191093,
0.058314625173807144,
-0.2136775255203247,
-0.5205228924751282,
-0.16499266028404236,
-0.13925546407699585,
-0.4262562692165375,
0.021959684789180756,
-0.04430127888917923,
-0.008725103922188282,
0.3057437241077423,
-0.30367183685302734,
0.10235025733709335,
0.0913432314991951,
0.017335884273052216,
-0.25185900926589966,
0.5151786208152771,
-0.014682355336844921,
0.0335046611726284,
0.32802045345306396,
-0.1543729156255722,
0.3333420157432556,
0.39737436175346375,
-0.22455918788909912,
0.11086157709360123,
-0.14146143198013306,
-0.2403242588043213,
0.269247829914093,
0.30111920833587646,
0.02906942367553711,
-0.006250210106372833,
-0.023313287645578384,
0.21608898043632507,
-0.41135045886039734,
0.06280835717916489,
0.4429623782634735,
0.20322971045970917,
-0.1560659557580948,
-0.37915727496147156,
0.3638327121734619,
0.3577549457550049,
-0.16735124588012695,
0.774075448513031,
-0.2722582221031189,
-0.27899056673049927,
0.4004935622215271,
0.44522809982299805,
0.7086805105209351,
-0.3873063325881958,
0.3932664394378662,
-0.10151731222867966,
-0.43757492303848267,
-0.33316534757614136,
-0.2139122188091278,
0.1441584825515747,
-0.4837309420108795,
0.04691687598824501,
0.08924517780542374,
-0.2423417717218399,
0.22257643938064575,
0.43135613203048706,
0.019053060561418533,
0.06099272891879082,
-0.11363418400287628,
0.1839885711669922,
0.05707630515098572,
0.047224633395671844,
0.19091367721557617,
-0.16541661322116852,
0.21439264714717865,
-0.00027168914675712585,
0.06244157627224922,
-0.20478831231594086,
-0.03576802834868431,
0.05654274672269821,
0.20276987552642822,
-0.17247946560382843,
-0.20664098858833313,
-0.11918869614601135,
-0.4841300845146179,
0.2999640107154846,
-0.045658256858587265,
0.2824673652648926,
0.03227538987994194,
0.007492005825042725,
-0.4408864378929138,
0.11944258213043213,
0.055938441306352615,
0.0852472335100174,
0.43522557616233826,
0.23569205403327942,
0.20549872517585754,
0.03952750191092491,
0.12130595743656158,
-0.0038263797760009766,
-0.3130439817905426,
0.031838636845350266,
-0.2154024988412857,
-0.2520255446434021,
-0.4472683072090149,
0.3400503993034363,
0.2159377485513687,
0.04280141741037369,
-0.27441778779029846,
-0.07085813581943512,
-0.17793728411197662,
0.1306549608707428,
0.007776292972266674,
0.18068115413188934,
0.022765660658478737,
0.7612730860710144,
-0.2397831827402115,
-0.3591420650482178,
0.016476310789585114,
0.1461295485496521,
-0.051444850862026215,
0.10122616589069366,
0.2960987389087677,
0.08189210295677185,
-0.11131623387336731,
-0.04262755811214447,
0.24415889382362366,
0.0700211152434349,
-0.2549493610858917,
0.20236168801784515,
0.05666115880012512,
-0.210210382938385,
-0.09060029685497284,
-0.225685715675354,
-0.1442253142595291,
-0.31403738260269165,
-0.22410744428634644,
-0.08406217396259308,
-0.5471296906471252,
-0.19660614430904388,
-0.2741582989692688,
0.2519926428794861,
0.039922818541526794,
-0.3586173951625824,
0.1110001653432846,
0.4400196969509125,
-0.08218248933553696,
0.18710334599018097,
0.20365191996097565,
0.19823390245437622,
-0.07379885017871857,
0.057858191430568695,
0.19377198815345764,
-0.19385218620300293,
-0.11465587466955185,
0.19230422377586365,
-0.27796700596809387,
-0.06876063346862793,
-0.22346131503582,
0.2419196218252182,
-0.18808811902999878,
-0.25847411155700684,
0.08893802016973495,
-0.2555241584777832,
0.12685193121433258,
-0.37294802069664,
0.28958916664123535,
0.07197980582714081,
-0.25600433349609375,
0.0526864118874073,
0.22533105313777924,
-0.30621665716171265,
0.28032928705215454,
0.45757007598876953,
-0.03798772394657135,
0.44522619247436523,
0.18083539605140686,
0.17963950335979462,
0.15926969051361084,
-0.07705692946910858,
-0.16237209737300873,
-0.06898873299360275,
0.13369965553283691,
-0.017083220183849335,
0.2123396098613739,
-0.33026987314224243,
-0.03865374997258186,
0.05826626718044281,
0.036307428032159805,
0.2134488970041275,
-0.18513143062591553,
-0.22168760001659393,
0.04867727681994438,
0.05977502465248108,
0.004666302353143692,
-0.23012889921665192,
0.4991145730018616,
0.16949576139450073,
-0.19883523881435394,
0.12112636864185333,
0.2658410966396332,
-0.13451291620731354,
-0.21377865970134735,
0.2101096510887146,
0.1017390564084053,
-0.5216113924980164,
0.03191395103931427,
0.14087249338626862,
0.012000534683465958,
0.012803301215171814,
0.22218625247478485,
0.20848187804222107,
0.22547361254692078,
0.5627738237380981,
0.29643791913986206,
0.06361497193574905,
0.3547184467315674,
0.09500085562467575,
-0.1375965178012848,
-0.49801936745643616,
-0.15608346462249756,
0.6600277423858643,
-0.2603346109390259,
0.34862759709358215,
0.07445643842220306,
0.4544522166252136,
0.3693895637989044,
-0.5365659594535828,
-0.10389333963394165,
0.32435712218284607,
-0.18190154433250427,
-0.2328939288854599,
0.2619978189468384,
-0.014137022197246552,
-0.0741644874215126,
0.19237853586673737,
0.09614886343479156,
-0.12545658648014069,
0.7243061065673828,
0.2860630750656128,
-0.04366603493690491,
-0.20848320424556732,
-0.04267928749322891,
0.22137287259101868,
0.2934771478176117,
-0.23573946952819824,
0.2550540268421173,
-0.1720443218946457,
0.027465246617794037,
-0.06607761979103088,
-0.07805579900741577,
0.41114577651023865,
0.4340469241142273,
-0.18329037725925446,
0.1376192569732666,
-0.12266495823860168,
0.1844661682844162,
-0.14841334521770477,
0.2336145043373108,
-0.04682917892932892,
0.152861088514328,
-0.0026497291401028633,
-0.1167101263999939,
0.05544652044773102,
-0.2685490846633911,
0.22376731038093567,
0.45036306977272034,
-0.1819693148136139,
0.25947365164756775,
0.016923977062106133,
-0.27547988295555115,
0.1493474245071411,
-0.2246100902557373,
-0.1635798215866089,
-0.007877116091549397,
0.6958229541778564,
-0.6527014374732971,
0.1666298806667328,
-0.24444088339805603,
-0.04041898250579834,
-0.24058613181114197,
0.5598315000534058,
0.033915601670742035,
0.12621483206748962,
-0.25881198048591614,
-0.05307578667998314,
-0.42939895391464233,
0.022530362010002136,
-0.4742744565010071,
0.03132415562868118,
0.1946888267993927,
0.005373900756239891,
-0.3757128417491913,
-0.1868264228105545,
0.4307284355163574,
-0.17480503022670746,
0.10568393021821976,
0.1743837594985962,
-0.49830326437950134,
0.10636711120605469,
-0.10762646794319153,
0.055250152945518494,
0.0296471007168293,
-0.5614288449287415,
0.28375130891799927,
-0.15805163979530334,
-0.09995347261428833,
-0.1805100440979004,
-0.10235786437988281,
0.0876750499010086,
0.16231977939605713,
0.7331104874610901,
0.19954919815063477,
0.12855054438114166,
-0.08431479334831238,
-0.13385985791683197,
-0.28017520904541016,
-0.031272150576114655,
-0.14516425132751465,
-0.32476118206977844,
0.05563266575336456,
0.21271026134490967,
-0.46655359864234924,
-0.2658894956111908,
-0.06349675357341766,
-0.10383784025907516,
-0.01988980546593666,
-0.11930012702941895,
-0.06314390152692795,
-0.04118002951145172,
-0.076204314827919,
0.2789430618286133,
-0.05641334131360054,
0.46046510338783264,
0.014939267188310623,
0.0964953675866127,
-0.1969783902168274,
-0.19023500382900238,
0.31793493032455444,
-0.5084928274154663,
-0.5748698711395264,
0.2768915593624115,
0.1862356960773468,
-0.20387870073318481,
-0.4099856913089752,
-0.40307727456092834,
-0.3135802447795868,
0.29589274525642395,
0.10996786504983902,
-0.32355397939682007,
0.0805402398109436,
-0.2555507719516754,
0.028297867625951767,
-0.08439362794160843,
0.37955859303474426,
0.08328652381896973,
-0.20248185098171234,
0.13514219224452972,
-0.14979562163352966
] |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | excuse me, my `datasets` version is `2.2.2`, but I also just see the error info like
```
DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 0
Keys should be unique and deterministic in nature
``` | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
``` | 36 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
```
excuse me, my `datasets` version is `2.2.2`, but I also just see the error info like
```
DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 0
Keys should be unique and deterministic in nature
``` | [
-0.04579811170697212,
-0.18270662426948547,
0.026427648961544037,
0.26547330617904663,
0.11763186752796173,
0.1879231333732605,
0.21435485780239105,
0.2438584417104721,
-0.11862130463123322,
0.14037710428237915,
0.30744996666908264,
0.17654573917388916,
-0.16614890098571777,
0.30250245332717896,
0.1066356673836708,
-0.2043207883834839,
-0.0897260382771492,
0.08640393614768982,
-0.06141267716884613,
0.1340082436800003,
-0.15854203701019287,
0.2666182816028595,
-0.151016503572464,
0.1761477291584015,
-0.2722678780555725,
-0.019561806693673134,
-0.2398523986339569,
0.18590261042118073,
0.01062309741973877,
-0.5982236266136169,
0.1971423625946045,
0.1420416682958603,
-0.1233896017074585,
0.4249703288078308,
-0.00011629718937911093,
-0.07794121652841568,
0.46090930700302124,
0.09938444942235947,
-0.2518974840641022,
-0.09242548048496246,
-0.06946410983800888,
-0.2628919184207916,
0.006685388740152121,
-0.037280403077602386,
-0.04846902936697006,
-0.277608722448349,
0.03166896849870682,
-0.12996631860733032,
0.641400158405304,
-0.07454457879066467,
0.14636550843715668,
0.14033378660678864,
0.4234579801559448,
0.0522230826318264,
-0.0965009555220604,
0.46730732917785645,
-0.2911358177661896,
0.20603647828102112,
0.23760820925235748,
-0.14812752604484558,
0.23727822303771973,
0.3183595836162567,
0.1308545470237732,
0.08882096409797668,
0.2629556357860565,
-0.03824757784605026,
0.04124506935477257,
-0.25481775403022766,
0.12368248403072357,
0.4907390773296356,
0.5004650950431824,
-0.44214752316474915,
-0.508311927318573,
-0.4908638298511505,
0.27902984619140625,
0.005125662311911583,
0.0722656324505806,
-0.01906108483672142,
-0.1781640201807022,
0.07515183836221695,
-0.22346341609954834,
-0.19131693243980408,
-0.24484272301197052,
-0.09576466679573059,
0.26756247878074646,
-0.2791982591152191,
0.025785453617572784,
0.09423103928565979,
0.10017119348049164,
-0.26321732997894287,
-0.15300120413303375,
-0.06075943261384964,
0.01447579637169838,
0.08111101388931274,
-0.2551291584968567,
-0.24160562455654144,
0.10806189477443695,
0.05793073773384094,
0.3677087128162384,
-0.1476719081401825,
0.25068017840385437,
0.1465224027633667,
0.026217129081487656,
-0.025402992963790894,
0.18430696427822113,
-0.009258221834897995,
0.33193376660346985,
0.029878977686166763,
0.257036030292511,
-0.025664066895842552,
-0.06038813292980194,
0.053286515176296234,
0.026634756475687027,
-0.2980648875236511,
0.6430712938308716,
0.3275171220302582,
0.48599863052368164,
-0.17096179723739624,
-0.08816083520650864,
0.3096056282520294,
-0.2915571928024292,
-0.2010509967803955,
-0.050026584416627884,
-0.025418654084205627,
0.022994786500930786,
-0.1466597616672516,
-0.04563472792506218,
0.11613696068525314,
-0.03444773703813553,
-0.19555439054965973,
-0.06768245995044708,
-0.004862342029809952,
-0.04595121741294861,
0.03340382128953934,
0.060749102383852005,
-0.30991360545158386,
0.2166910618543625,
0.25621795654296875,
0.0403558611869812,
-0.14019137620925903,
0.2323739379644394,
0.24275954067707062,
-0.2607574760913849,
0.05949283391237259,
-0.09175886958837509,
0.13605564832687378,
-0.05020347610116005,
-0.09514576196670532,
0.032310254871845245,
-0.12480887025594711,
-0.10689083486795425,
-0.3395725190639496,
-0.20818278193473816,
0.1540871262550354,
-0.15932035446166992,
0.12041043490171432,
-0.20610374212265015,
0.20705436170101166,
-0.09778954833745956,
0.05989043787121773,
-0.23545753955841064,
0.09959813952445984,
-0.09531904757022858,
-0.27563169598579407,
0.21804460883140564,
0.7589617967605591,
-0.17097894847393036,
0.043894797563552856,
-0.22785493731498718,
0.08147399872541428,
-0.059375979006290436,
0.20330023765563965,
-0.0850168764591217,
0.49194028973579407,
-0.22360245883464813,
0.02329544723033905,
0.18949724733829498,
-0.25027260184288025,
-0.20866243541240692,
0.5676732063293457,
-0.08411718904972076,
0.17957596480846405,
0.16615521907806396,
0.01061150711029768,
0.15002375841140747,
-0.11468059569597244,
-0.0048902928829193115,
-0.28176718950271606,
-0.08903098106384277,
-0.09414073824882507,
-0.28224292397499084,
-0.31363150477409363,
-0.06747475266456604,
-0.1322804093360901,
-0.087636798620224,
-0.1863553524017334,
0.0946606993675232,
0.08160971105098724,
0.3984746038913727,
-0.18935517966747284,
-0.23091311752796173,
0.06846823543310165,
0.5022203922271729,
-0.21172891557216644,
0.050093505531549454,
-0.1572672724723816,
-0.5286466479301453,
0.3729792833328247,
-0.13169988989830017,
0.03296373039484024,
-0.1846603900194168,
-0.276748389005661,
-0.19936761260032654,
0.09001144021749496,
-0.35324031114578247,
0.024254735559225082,
0.1342305690050125,
-0.16870558261871338,
0.1291050910949707,
-0.005802670493721962,
0.03822167590260506,
0.33769264817237854,
0.07138156145811081,
0.17912667989730835,
-0.3414915204048157,
0.18299485743045807,
-0.20489202439785004,
0.011170709505677223,
0.25545892119407654,
0.2416604459285736,
0.30961352586746216,
-0.21303215622901917,
-0.01863408274948597,
0.33948183059692383,
-0.07043899595737457,
0.34305983781814575,
0.06088610738515854,
-0.03964535892009735,
0.22956585884094238,
-0.005511805415153503,
-0.005727926269173622,
0.2719905972480774,
-0.11994164437055588,
0.03862038254737854,
-0.22052177786827087,
0.25217366218566895,
0.11554762721061707,
-0.05598702281713486,
-0.10079368948936462,
0.0255828145891428,
-0.10186198353767395,
-0.01472838968038559,
0.0357963889837265,
-0.2558842897415161,
0.2723902463912964,
-0.20020084083080292,
0.0795690268278122,
0.14258354902267456,
-0.40583333373069763,
0.2549038827419281,
0.0988711267709732,
-0.2426302134990692,
0.23865219950675964,
0.14964495599269867,
0.05744119733572006,
-0.13541680574417114,
0.11272842437028885,
0.43478924036026,
0.06856179237365723,
0.16939258575439453,
-0.22142353653907776,
0.20072439312934875,
-0.3397921621799469,
0.054618850350379944,
0.11905943602323532,
-0.23937000334262848,
-0.11535768210887909,
0.27231380343437195,
-0.2499634325504303,
0.20888854563236237,
-0.42400479316711426,
-0.2105122059583664,
0.032331787049770355,
0.4439278244972229,
-0.31477925181388855,
-0.26860514283180237,
-0.35858064889907837,
-0.0716814249753952,
-0.2594000995159149,
0.30760282278060913,
-0.007406257092952728,
-0.36065399646759033,
0.22102738916873932,
0.20029328763484955,
-0.08151233196258545,
-0.009301282465457916,
0.2704460620880127,
0.05542002618312836,
-0.17119815945625305,
0.1500401794910431,
-0.16921910643577576,
-0.13856631517410278,
-0.17777618765830994,
0.059771578758955,
0.23037022352218628,
0.17707213759422302,
0.37655919790267944,
-0.4009401202201843,
-0.05104878917336464,
-0.6170579195022583,
-0.4479075074195862,
0.0923900306224823,
-0.02772456407546997,
0.3714211881160736,
0.43075159192085266,
0.23618927597999573,
-0.02396813966333866,
-0.33973702788352966,
0.20491944253444672,
-0.18495380878448486,
-0.19177883863449097,
0.049105413258075714,
-0.013231977820396423,
-0.047564320266246796,
-0.05172562226653099,
-0.3859559893608093,
0.04195734113454819,
-0.08065737783908844,
0.3837350606918335,
-0.36949241161346436,
0.08840693533420563,
0.05014452338218689,
0.17348966002464294,
-0.0037651185411959887,
-0.09508857876062393,
0.06092512607574463,
-0.20134976506233215,
-0.3775724470615387,
0.06227286905050278,
-0.14185768365859985,
-0.2250639945268631,
-0.15534232556819916,
-0.05226324871182442,
0.19916832447052002,
-0.29329222440719604,
-0.45824646949768066,
-0.44819220900535583,
-0.28485092520713806,
0.12181437015533447,
0.017272820696234703,
0.23561091721057892,
0.0786266103386879,
0.27201277017593384,
-0.08628351986408234,
-0.03314053639769554,
-0.3717327415943146,
0.004749715328216553,
0.033529289066791534,
0.30513229966163635,
0.06374382227659225,
0.5197216868400574,
-0.22009029984474182,
0.5306822061538696,
0.5065864324569702,
-0.09902863204479218,
0.10632787644863129,
-0.04382164776325226,
0.4014832675457001,
0.07235077768564224,
-0.38095641136169434,
0.028108621016144753,
0.00943458080291748,
0.10082726180553436,
0.002242259681224823,
0.15104404091835022,
0.29296496510505676,
0.24922308325767517,
-0.23161981999874115,
-0.46470052003860474,
-0.4217471778392792,
-0.28453758358955383,
-0.2253691554069519,
-0.060496918857097626,
0.011158343404531479,
0.092829130589962,
-0.058377549052238464,
0.2901810109615326,
0.21720866858959198,
0.24662631750106812,
0.32579246163368225,
-0.06891927868127823,
-0.14448414742946625,
-0.2120245397090912,
-0.5519835948944092,
0.28731587529182434,
-0.03764153644442558,
0.23858456313610077,
-0.11684870719909668,
0.35357460379600525,
-0.016601048409938812,
0.04798917472362518,
0.4680898189544678,
-0.6501284241676331,
-0.012184813618659973,
-0.23268413543701172,
-0.17874197661876678,
-0.23883822560310364,
0.005404222756624222,
0.21709269285202026,
0.4607805013656616,
-0.04155183956027031,
0.31257176399230957,
-0.4430209994316101,
0.1349964290857315,
0.22730611264705658,
0.5388076305389404,
-0.20035916566848755,
-0.3779849112033844,
-0.07030536979436874,
-0.24972480535507202,
-0.5717356204986572,
0.025441765785217285,
0.08399050682783127,
-0.07620365917682648,
0.2212744653224945,
-0.11910364031791687,
-0.06427829712629318,
-0.0822315514087677,
0.27259817719459534,
0.35320669412612915,
0.2858147919178009,
0.00202095415443182,
0.47860008478164673,
0.2429324835538864,
-0.17219781875610352,
0.32291388511657715,
0.4003220200538635,
-0.16342146694660187,
-0.1491589993238449,
-0.27589088678359985,
-0.3241864740848541,
-0.0038065314292907715,
0.1709902435541153,
-0.04826262220740318,
0.131725013256073,
0.03532576933503151,
0.16712723672389984,
-0.07677321135997772,
-0.2572785019874573,
0.47497648000717163,
0.26916220784187317,
-0.3633321225643158,
-0.2730567157268524,
0.14238984882831573,
0.16121530532836914,
-0.1884818822145462,
0.35399675369262695,
0.422763466835022,
-0.08818697929382324,
0.15272223949432373,
-0.0010961219668388367,
0.7032264471054077,
-0.28449302911758423,
-0.0550803504884243,
-0.19597184658050537,
-0.2836415767669678,
0.4738709628582001,
0.2130751758813858,
-0.21368497610092163,
-0.38784903287887573,
-0.005742463283240795,
0.07618281245231628,
0.11224047839641571,
0.13901744782924652,
0.11408580839633942,
-0.2991664409637451,
0.33974823355674744,
0.017338335514068604,
0.07709450274705887,
-0.14742879569530487,
0.5210536122322083,
-0.18376624584197998,
0.14561350643634796,
-0.1674729585647583,
0.09030090272426605,
0.20442236959934235,
0.13637211918830872,
-0.05216553062200546,
-0.21560370922088623,
0.35738110542297363,
-0.48993855714797974,
-0.7663116455078125,
-0.21787214279174805,
-0.21921491622924805,
0.06176188960671425,
0.12044103443622589,
-0.44481927156448364,
0.45529407262802124,
0.24587903916835785,
0.6594836711883545,
0.45868992805480957,
-0.24603018164634705,
-0.051137108355760574,
-0.007790982723236084,
0.04196753352880478,
-0.29515576362609863,
-0.26857712864875793,
0.001171240583062172,
-0.10616394877433777,
-0.49900856614112854,
-0.027903184294700623,
0.09969210624694824,
-0.1639939844608307,
-0.20032715797424316,
-0.20988719165325165,
-0.4205282926559448,
-0.08624954521656036,
0.05002116784453392,
-0.08066600561141968,
-0.2041928917169571,
-0.3967089056968689,
0.10161319375038147,
0.3506571054458618,
-0.1324782818555832,
0.25150981545448303,
-0.020369436591863632,
-0.22141870856285095,
-0.055011648684740067,
-0.06255870312452316,
0.030644822865724564,
-0.02936401590704918,
0.3578334152698517,
-0.03918680548667908,
0.09157490730285645,
-0.29753586649894714,
0.2506074607372284,
0.4769423007965088,
-0.3940476179122925,
0.02658718079328537,
0.006245793774724007,
0.1428438276052475,
0.2320929318666458,
0.12410041689872742,
0.2496456354856491,
0.17563092708587646,
0.018512289971113205,
0.014265388250350952,
-0.3935801684856415,
0.1434440165758133,
-0.025652777403593063,
0.43223097920417786,
-0.11016129702329636,
0.04941742494702339,
0.0480806902050972,
0.13333232700824738,
-0.27535146474838257,
0.10472714155912399,
0.02547258324921131,
-0.19074486196041107,
0.30600908398628235,
0.12074488401412964,
-0.04287101700901985,
-0.19659511744976044,
0.08000371605157852,
0.14765827357769012,
-0.08390983939170837,
-0.09196065366268158,
-0.114601731300354,
0.12271813303232193,
-0.17418146133422852,
0.13595940172672272,
0.19149015843868256,
0.03320908173918724,
0.27440840005874634,
-0.08270642906427383,
0.29688507318496704,
0.2409529983997345,
0.22280536592006683,
0.2802773118019104,
0.21321648359298706,
-0.031892359256744385,
-0.27916425466537476,
0.06284008175134659,
-0.2363511025905609,
0.295629620552063,
0.13322821259498596,
-0.05679129809141159,
0.07322975248098373,
-0.09538646787405014,
-0.020504696294665337,
0.034941114485263824,
-0.2507553696632385,
0.01684657856822014,
0.18787312507629395,
0.03525736182928085,
-0.22124141454696655,
0.31282398104667664,
0.44135433435440063,
-0.011533133685588837,
0.04376295208930969,
-0.07081642001867294,
0.007857345044612885,
0.12263591587543488,
-0.3189501166343689,
-0.3746654689311981,
0.07363208383321762,
-0.14150789380073547,
0.06474301218986511,
0.37144625186920166,
0.14162702858448029,
0.04591773450374603,
-0.06529918313026428,
-0.06975750625133514,
0.1532568484544754,
-0.17908956110477448,
0.3390374481678009,
0.3994115889072418,
-0.061700448393821716,
-0.17331111431121826,
0.08442315459251404,
-0.2206350862979889,
0.12190060317516327,
0.05576807260513306,
-0.4368656873703003,
0.14205393195152283,
-0.027074530720710754,
0.1917271763086319,
0.3604705035686493,
0.09068252146244049,
0.46561935544013977,
0.165228471159935,
-0.23835864663124084,
0.07127788662910461,
0.2323203980922699,
0.3183131217956543,
-0.244608536362648,
-0.11681506782770157,
-0.2509360611438751,
0.04064444825053215,
0.0014773719012737274,
-0.21381597220897675,
0.132055401802063,
-0.12849391996860504,
-0.12283849716186523,
-0.047411732375621796,
-0.0037542209029197693,
-0.19439269602298737,
0.32834815979003906,
-0.0831916481256485,
-0.06497691571712494,
-0.4281553626060486,
0.040722765028476715,
0.09362954646348953,
0.39385735988616943,
-0.13418108224868774,
-0.02671125717461109,
0.3401899039745331,
-0.3757942020893097,
-0.003872048109769821,
0.5672956109046936,
0.7376534342765808,
0.10857309401035309,
-0.02052449807524681,
0.20455366373062134,
-0.09213626384735107,
0.18161679804325104,
0.08004987984895706,
0.07833608239889145,
-0.33793842792510986,
-0.3343617022037506,
0.11760075390338898,
0.10955610871315002,
-0.03633853793144226,
0.05327293649315834,
0.15238377451896667,
-0.09202492237091064,
-0.1603831797838211,
0.31196486949920654,
-0.18770360946655273,
-0.0087965689599514,
-0.018238354474306107,
0.29933449625968933,
-0.18968504667282104,
-0.4280184507369995,
0.41251373291015625,
0.16859734058380127,
-0.1629408597946167,
-0.3856865465641022,
0.10125323385000229,
-0.244148850440979,
0.5052752494812012,
0.6234200596809387,
0.06017506122589111,
-0.34103843569755554,
0.18445898592472076,
-1.0497103929519653,
-0.04739063233137131,
-0.42336755990982056,
-0.09171140938997269,
0.2781909108161926,
0.17363783717155457,
-0.10454199463129044,
0.18408367037773132,
0.5722065567970276,
0.09932440519332886,
-0.24565482139587402,
0.1661343276500702,
-0.4416731297969818,
0.11452816426753998,
0.30915701389312744,
-0.11556006968021393,
0.12753452360630035,
-0.23557382822036743,
0.35733577609062195,
-0.05142708867788315,
-0.038446106016635895,
-0.15770180523395538,
0.25608745217323303,
-0.02515980787575245,
-0.29737958312034607,
0.1417001485824585,
0.199922114610672,
0.17942684888839722,
-0.03492071107029915,
-0.4029403030872345,
-0.13851352035999298,
-0.11032026261091232,
-0.0823066234588623,
0.42103111743927,
0.2978372871875763,
0.3055151700973511,
0.07606342434883118,
-0.2722093164920807,
-0.15286922454833984,
0.03679569065570831,
0.21372197568416595,
0.04195069894194603,
-0.2660793364048004,
0.3832612931728363,
0.0707511380314827,
-0.029830308631062508,
-0.11232711374759674,
0.14500808715820312,
-0.11175619065761566,
0.24315886199474335,
-0.05487316846847534,
-0.5676931738853455,
0.35152190923690796,
-0.10713639110326767,
0.1115848571062088,
-0.42487043142318726,
0.17266587913036346,
0.051871784031391144,
-0.025352468714118004,
-0.6050338745117188,
0.10592008382081985,
0.3152962028980255,
0.08444373309612274,
-0.04586058855056763,
0.13155825436115265,
-0.0994480550289154,
-0.01012345403432846,
0.13748645782470703,
0.24120864272117615,
0.06935468316078186,
-0.21475060284137726,
0.5815936923027039,
-0.167558491230011
] |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | Hi ! for which dataset do you have this error ?
Also note that this issue is just about improving the error message, which is not very friendly x) | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
``` | 29 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
```
Hi ! for which dataset do you have this error ?
Also note that this issue is just about improving the error message, which is not very friendly x) | [
-0.04011964797973633,
-0.2837756872177124,
0.01658409833908081,
0.2825002372264862,
0.16967187821865082,
0.17682069540023804,
0.18356375396251678,
0.24649418890476227,
-0.05150405317544937,
0.1738487333059311,
0.31363314390182495,
0.1790681779384613,
-0.13977749645709991,
0.34099453687667847,
0.13197340071201324,
-0.24144655466079712,
-0.10823927074670792,
0.1211351752281189,
-0.034418925642967224,
0.09465408325195312,
-0.1743258535861969,
0.23873163759708405,
-0.10347821563482285,
0.20305240154266357,
-0.31256741285324097,
-0.0516592413187027,
-0.2095596194267273,
0.1988714635372162,
-0.054592519998550415,
-0.5766157507896423,
0.1772991567850113,
0.12039025127887726,
-0.13482734560966492,
0.3904779851436615,
-0.00011396617628633976,
-0.06689132750034332,
0.41372525691986084,
0.07121865451335907,
-0.22873170673847198,
-0.1095510870218277,
-0.0652073472738266,
-0.24003362655639648,
0.009103682823479176,
-0.07742275297641754,
-0.10015648603439331,
-0.24902711808681488,
0.007474737241864204,
-0.13201983273029327,
0.7048277258872986,
-0.0783853828907013,
0.16880545020103455,
0.21669460833072662,
0.3657229542732239,
0.028114253655076027,
-0.07399503141641617,
0.45556706190109253,
-0.27312570810317993,
0.21231591701507568,
0.21152330935001373,
-0.16424408555030823,
0.2693168520927429,
0.3554023802280426,
0.12659020721912384,
0.0866365134716034,
0.27291375398635864,
-0.02163996547460556,
0.07911904901266098,
-0.30584168434143066,
0.12620428204536438,
0.48637455701828003,
0.4639383554458618,
-0.3750404417514801,
-0.49501070380210876,
-0.4776414930820465,
0.26161351799964905,
-0.014525840990245342,
0.06725671142339706,
0.02709665149450302,
-0.1781538426876068,
0.08281709253787994,
-0.19452323019504547,
-0.15535974502563477,
-0.20639590919017792,
-0.09975883364677429,
0.2707643508911133,
-0.222467303276062,
0.01880776509642601,
0.08344054967164993,
0.0885019600391388,
-0.28127336502075195,
-0.19552673399448395,
-0.02828466147184372,
0.01380515843629837,
0.09818317741155624,
-0.23067136108875275,
-0.2293475866317749,
0.10327357053756714,
0.06761138141155243,
0.3632681667804718,
-0.17333197593688965,
0.27207887172698975,
0.14601168036460876,
-0.000010293908417224884,
-0.011804722249507904,
0.1562214493751526,
-0.009020695462822914,
0.3227033317089081,
0.036606013774871826,
0.24344602227210999,
-0.028412092477083206,
-0.08487219363451004,
0.04306671395897865,
0.024128414690494537,
-0.2988135814666748,
0.6136322021484375,
0.32509535551071167,
0.47604405879974365,
-0.1709347516298294,
-0.11350124329328537,
0.3269091248512268,
-0.255997896194458,
-0.20870062708854675,
-0.09227465093135834,
0.0036091357469558716,
0.034028276801109314,
-0.14952406287193298,
-0.03118094429373741,
0.13190628588199615,
-0.05711005628108978,
-0.1795366406440735,
-0.08152445405721664,
0.010681306943297386,
-0.06590327620506287,
0.03645845875144005,
0.05554908886551857,
-0.271922767162323,
0.220175102353096,
0.2660503387451172,
0.02744279056787491,
-0.16697770357131958,
0.24104633927345276,
0.26202404499053955,
-0.23236563801765442,
0.08950730413198471,
-0.1105743795633316,
0.13820195198059082,
0.019418977200984955,
-0.09875521063804626,
-0.014700233936309814,
-0.11792803555727005,
-0.10856326669454575,
-0.3737773299217224,
-0.1951923817396164,
0.1805332750082016,
-0.10481228679418564,
0.09575013816356659,
-0.20924276113510132,
0.16698196530342102,
-0.1130170151591301,
0.07418212294578552,
-0.16384494304656982,
0.07654868066310883,
-0.06260514259338379,
-0.2455110400915146,
0.1956193596124649,
0.760586678981781,
-0.1579667627811432,
-0.0025881826877593994,
-0.17291024327278137,
0.037560753524303436,
-0.05435185879468918,
0.2636359632015228,
-0.1204056441783905,
0.4552633762359619,
-0.2207019180059433,
0.06317862868309021,
0.1875850111246109,
-0.23777028918266296,
-0.22222591936588287,
0.5221664309501648,
-0.11238700151443481,
0.15062987804412842,
0.16329416632652283,
0.012933638878166676,
0.14766846597194672,
-0.1090717613697052,
0.05037899315357208,
-0.2695109248161316,
-0.06950638443231583,
-0.06153591722249985,
-0.29623833298683167,
-0.3166469633579254,
-0.07922658324241638,
-0.13574427366256714,
-0.0904591977596283,
-0.1629430055618286,
0.0898156389594078,
0.03847300633788109,
0.40579843521118164,
-0.21293574571609497,
-0.24880090355873108,
0.07481315732002258,
0.5325260758399963,
-0.1955360323190689,
0.024191463366150856,
-0.13197481632232666,
-0.48293983936309814,
0.36555367708206177,
-0.14845217764377594,
0.06712853908538818,
-0.17191199958324432,
-0.31388115882873535,
-0.230339914560318,
0.10168161988258362,
-0.34949254989624023,
-0.004212930798530579,
0.14931151270866394,
-0.1946924328804016,
0.10428424179553986,
-0.01176256313920021,
0.007349707186222076,
0.325879842042923,
0.057436756789684296,
0.16938526928424835,
-0.3102159798145294,
0.1716974973678589,
-0.20671571791172028,
0.015713438391685486,
0.26917552947998047,
0.21592465043067932,
0.3301946222782135,
-0.19274021685123444,
-0.03892025351524353,
0.33392664790153503,
-0.10360570251941681,
0.3690468668937683,
0.012982353568077087,
-0.001915469765663147,
0.23330235481262207,
-0.02876446582376957,
0.02722059190273285,
0.26909518241882324,
-0.10405808687210083,
0.033755429089069366,
-0.22319278120994568,
0.29300978779792786,
0.12103410065174103,
-0.06557571142911911,
-0.08271491527557373,
0.012329882010817528,
-0.08369752764701843,
-0.008292391896247864,
0.01977687142789364,
-0.25738683342933655,
0.2814532220363617,
-0.1743973195552826,
0.10847540199756622,
0.13983599841594696,
-0.4205951988697052,
0.23140084743499756,
0.13826332986354828,
-0.2504034638404846,
0.2390170693397522,
0.1812012791633606,
0.04624003916978836,
-0.1018211767077446,
0.09623275697231293,
0.4139699935913086,
0.05016332119703293,
0.18360261619091034,
-0.23785719275474548,
0.18922379612922668,
-0.30937910079956055,
0.0057402197271585464,
0.1443815678358078,
-0.2612912058830261,
-0.07964659482240677,
0.2775208652019501,
-0.21441470086574554,
0.23721915483474731,
-0.43324896693229675,
-0.16706834733486176,
0.013353226706385612,
0.39011046290397644,
-0.3208202123641968,
-0.24198642373085022,
-0.31615331768989563,
-0.06376621872186661,
-0.28971201181411743,
0.27535802125930786,
-0.056123826652765274,
-0.37034329771995544,
0.25799861550331116,
0.16323594748973846,
-0.1195814460515976,
-0.002623750828206539,
0.27250832319259644,
0.05168530344963074,
-0.1762022227048874,
0.1554539054632187,
-0.1679604947566986,
-0.1474623829126358,
-0.1435273289680481,
0.07105337083339691,
0.19319505989551544,
0.18526652455329895,
0.39775416254997253,
-0.4412798285484314,
-0.050706032663583755,
-0.6461913585662842,
-0.4255363345146179,
0.12624633312225342,
-0.05384185165166855,
0.3672448396682739,
0.4165273606777191,
0.29715287685394287,
-0.032381847500801086,
-0.3577961027622223,
0.2633971571922302,
-0.20220966637134552,
-0.18646632134914398,
0.025373399257659912,
-0.022476203739643097,
-0.031457170844078064,
-0.05552266538143158,
-0.3866058588027954,
0.01395481824874878,
-0.0913931205868721,
0.38973307609558105,
-0.3463805317878723,
0.09335480630397797,
0.07467082887887955,
0.1654137372970581,
-0.029788784682750702,
-0.09284605085849762,
0.05093817412853241,
-0.2354642003774643,
-0.41142380237579346,
0.08626404404640198,
-0.14295391738414764,
-0.24381642043590546,
-0.12653231620788574,
-0.04184381663799286,
0.23035745322704315,
-0.3299664258956909,
-0.43471527099609375,
-0.44982030987739563,
-0.31140223145484924,
0.15428195893764496,
-0.004325076937675476,
0.2715795338153839,
0.11496278643608093,
0.2141132354736328,
-0.12748445570468903,
-0.053655363619327545,
-0.3966197073459625,
0.008793093264102936,
0.06551913917064667,
0.2813837230205536,
0.02201848104596138,
0.5605629086494446,
-0.2545877993106842,
0.5809736847877502,
0.4596952795982361,
-0.08963270485401154,
0.127771258354187,
-0.07172178477048874,
0.34740471839904785,
0.029317624866962433,
-0.3498455286026001,
0.01948765106499195,
-0.018089592456817627,
0.09052210301160812,
0.010224975645542145,
0.1450406312942505,
0.28522995114326477,
0.23273155093193054,
-0.2591423988342285,
-0.4877146780490875,
-0.467917263507843,
-0.23030178248882294,
-0.16053985059261322,
-0.044687651097774506,
0.02861698716878891,
0.07687874883413315,
-0.07793620228767395,
0.31417497992515564,
0.22737672924995422,
0.2418389916419983,
0.3298717737197876,
-0.08150103688240051,
-0.1774318665266037,
-0.19310030341148376,
-0.5332393646240234,
0.28726255893707275,
-0.040869537740945816,
0.20437991619110107,
-0.10276935994625092,
0.2875630557537079,
-0.005589239299297333,
0.032624851912260056,
0.5048129558563232,
-0.5820497870445251,
-0.01218123733997345,
-0.25234612822532654,
-0.17579437792301178,
-0.2571857273578644,
0.008439779281616211,
0.1822797656059265,
0.45573103427886963,
-0.04602619633078575,
0.28646528720855713,
-0.4675234258174896,
0.10232359170913696,
0.1947469413280487,
0.5174824595451355,
-0.22587259113788605,
-0.35451599955558777,
-0.11069435626268387,
-0.2540070116519928,
-0.6113338470458984,
0.05200977250933647,
0.09340431541204453,
-0.09444494545459747,
0.19839271903038025,
-0.08043307065963745,
-0.05697222054004669,
-0.07774941623210907,
0.28231969475746155,
0.32874810695648193,
0.28370967507362366,
0.032493941485881805,
0.4153100550174713,
0.24118003249168396,
-0.12430690228939056,
0.24440455436706543,
0.44288167357444763,
-0.18495532870292664,
-0.11600753664970398,
-0.2649765908718109,
-0.32859015464782715,
-0.008416637778282166,
0.23875197768211365,
0.019610803574323654,
0.13939836621284485,
0.09017757326364517,
0.2222965955734253,
-0.07787999510765076,
-0.25161680579185486,
0.4739854633808136,
0.2548496127128601,
-0.3884868323802948,
-0.2758868932723999,
0.17480292916297913,
0.1475946307182312,
-0.1989772468805313,
0.29292166233062744,
0.4758201241493225,
-0.07569121569395065,
0.16489969193935394,
0.050364378839731216,
0.7967994213104248,
-0.3120728135108948,
0.02002592198550701,
-0.18925344944000244,
-0.2192893773317337,
0.4670564532279968,
0.18890480697155,
-0.1971684843301773,
-0.39891913533210754,
-0.008907645009458065,
0.07700412720441818,
0.12416508793830872,
0.1161581352353096,
0.09766973555088043,
-0.3004940450191498,
0.32433170080184937,
0.0008914396166801453,
0.06522946059703827,
-0.17597246170043945,
0.5124581456184387,
-0.2580462098121643,
0.10403807461261749,
-0.23848727345466614,
0.10537213087081909,
0.20451129972934723,
0.17974385619163513,
-0.06587468087673187,
-0.21131454408168793,
0.368206262588501,
-0.5560506582260132,
-0.707722544670105,
-0.20969828963279724,
-0.2593471109867096,
0.039047494530677795,
0.11294251680374146,
-0.4304581880569458,
0.40574952960014343,
0.19569113850593567,
0.6646115779876709,
0.46651726961135864,
-0.2733587622642517,
-0.03830048814415932,
0.0005563125014305115,
0.03908228129148483,
-0.3220662474632263,
-0.25051480531692505,
0.02258741669356823,
-0.1268923282623291,
-0.5271909832954407,
-0.03061749041080475,
0.10230860859155655,
-0.15977025032043457,
-0.23039762675762177,
-0.2060634046792984,
-0.40330231189727783,
-0.11344999819993973,
-0.0032605528831481934,
-0.09715333580970764,
-0.214360773563385,
-0.3783573508262634,
0.11923304200172424,
0.3185828924179077,
-0.12485159933567047,
0.2073456048965454,
0.03999927639961243,
-0.22153273224830627,
-0.06391076743602753,
-0.05104745179414749,
0.02143096551299095,
-0.040531497448682785,
0.37742945551872253,
-0.0014303326606750488,
0.0915762186050415,
-0.34255266189575195,
0.22830897569656372,
0.46107009053230286,
-0.40918949246406555,
0.030007999390363693,
0.03186046704649925,
0.1253216713666916,
0.21483735740184784,
0.22429852187633514,
0.281349778175354,
0.17116880416870117,
0.04647338017821312,
0.03436499089002609,
-0.3986101448535919,
0.13842140138149261,
-0.010561812669038773,
0.4336498975753784,
-0.11067318916320801,
0.07996159791946411,
0.07100112736225128,
0.14139795303344727,
-0.3129548728466034,
0.14934183657169342,
0.014943914487957954,
-0.15397335588932037,
0.3463476002216339,
0.1504759043455124,
-0.058010246604681015,
-0.1810566633939743,
0.11031202971935272,
0.17540407180786133,
-0.15111827850341797,
-0.12392904609441757,
-0.14872126281261444,
0.13012388348579407,
-0.1605488359928131,
0.10520236194133759,
0.2332039475440979,
0.06859952211380005,
0.2961416244506836,
-0.0758638009428978,
0.28900018334388733,
0.24743199348449707,
0.21291133761405945,
0.2775390148162842,
0.20656633377075195,
0.02324264869093895,
-0.26759350299835205,
0.03403820842504501,
-0.18988251686096191,
0.2810269296169281,
0.14440126717090607,
-0.09357517957687378,
0.05575704574584961,
-0.0701751857995987,
0.028987659141421318,
0.02567843347787857,
-0.20312829315662384,
0.10244014859199524,
0.15415409207344055,
0.03150410205125809,
-0.23266318440437317,
0.2911989390850067,
0.4267072379589081,
-0.02289208024740219,
0.0053705438040196896,
-0.032781340181827545,
0.044099610298871994,
0.16821670532226562,
-0.32644668221473694,
-0.35361671447753906,
0.07690486311912537,
-0.16425639390945435,
0.07693548500537872,
0.3909089267253876,
0.16723687946796417,
0.10377788543701172,
-0.05175502598285675,
-0.07128468155860901,
0.14393466711044312,
-0.20201656222343445,
0.3289080560207367,
0.3840152621269226,
-0.07515019923448563,
-0.16784603893756866,
0.08313285559415817,
-0.19987082481384277,
0.11483076214790344,
0.03308982029557228,
-0.47057396173477173,
0.13783685863018036,
-0.057497426867485046,
0.17658086121082306,
0.3646555542945862,
0.09579816460609436,
0.4585534334182739,
0.13037145137786865,
-0.26932621002197266,
0.08841918408870697,
0.2369924932718277,
0.3277946412563324,
-0.25595948100090027,
-0.11504259705543518,
-0.27369412779808044,
0.09613451361656189,
-0.00645698606967926,
-0.20157158374786377,
0.12565878033638,
-0.15015330910682678,
-0.12908926606178284,
-0.053949303925037384,
-0.05282199755311012,
-0.15330050885677338,
0.3601591885089874,
-0.07418191432952881,
-0.03057873249053955,
-0.4033445715904236,
0.013280995190143585,
0.10299094021320343,
0.38184231519699097,
-0.1631699651479721,
-0.030245812609791756,
0.35393795371055603,
-0.40999701619148254,
-0.012466192245483398,
0.5540352463722229,
0.7223300933837891,
0.11360909044742584,
-0.02570999786257744,
0.24632249772548676,
-0.09303507208824158,
0.16563276946544647,
0.09689531475305557,
0.031129635870456696,
-0.28108876943588257,
-0.30338993668556213,
0.123964324593544,
0.1390581727027893,
-0.06932838261127472,
0.04066188260912895,
0.11783160269260406,
-0.046479787677526474,
-0.18527743220329285,
0.258579283952713,
-0.18255677819252014,
-0.034953054040670395,
-0.09232504665851593,
0.2891806662082672,
-0.23718655109405518,
-0.3631616234779358,
0.37893033027648926,
0.19688594341278076,
-0.11474534869194031,
-0.3894541263580322,
0.1107008308172226,
-0.24156522750854492,
0.5499886870384216,
0.6084449887275696,
0.04767727851867676,
-0.31158682703971863,
0.19110186398029327,
-1.0544381141662598,
-0.04711585491895676,
-0.40889793634414673,
-0.12201828509569168,
0.26550230383872986,
0.12525860965251923,
-0.05121583491563797,
0.20281170308589935,
0.5592057108879089,
0.07970689982175827,
-0.27432042360305786,
0.110465407371521,
-0.427113801240921,
0.11327901482582092,
0.3018054962158203,
-0.08502988517284393,
0.12415680289268494,
-0.22583025693893433,
0.34193506836891174,
-0.06616371124982834,
-0.004204876720905304,
-0.21574069559574127,
0.2667858898639679,
-0.05490672588348389,
-0.2659914493560791,
0.16753429174423218,
0.25572991371154785,
0.16877326369285583,
-0.06764519214630127,
-0.43105146288871765,
-0.11372131109237671,
-0.10742499679327011,
-0.10280818492174149,
0.3807062804698944,
0.29796144366264343,
0.3675400912761688,
0.11203323304653168,
-0.27085861563682556,
-0.20421819388866425,
0.027430860325694084,
0.21809779107570648,
-0.007186308968812227,
-0.2762787640094757,
0.3823314905166626,
0.08228284865617752,
-0.09699050337076187,
-0.1110260859131813,
0.17495134472846985,
-0.05993132293224335,
0.21742792427539825,
-0.06520505994558334,
-0.534552812576294,
0.39534005522727966,
-0.13132762908935547,
0.04585270211100578,
-0.415291428565979,
0.19390049576759338,
0.044575098901987076,
-0.01071356050670147,
-0.5980973243713379,
0.1349550485610962,
0.27949777245521545,
0.09897389262914658,
-0.07873353362083435,
0.1506710946559906,
-0.06651139259338379,
-0.050704143941402435,
0.11711588501930237,
0.27436065673828125,
0.0669146180152893,
-0.2445065677165985,
0.49074462056159973,
-0.2105858325958252
] |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | @lhoestq I would like to take a hit at improving the error message. Will open a draft PR and will reach out to you for review
| As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
``` | 26 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
```
@lhoestq I would like to take a hit at improving the error message. Will open a draft PR and will reach out to you for review
| [
0.0004938952624797821,
-0.248665913939476,
0.02145395427942276,
0.2456120401620865,
0.17437797784805298,
0.17658928036689758,
0.20674574375152588,
0.2276933193206787,
-0.07359085977077484,
0.1310092955827713,
0.29601696133613586,
0.1726599633693695,
-0.12909337878227234,
0.33794429898262024,
0.1227337047457695,
-0.20365577936172485,
-0.10627717524766922,
0.09992941468954086,
-0.06824609637260437,
0.10083910822868347,
-0.1532803326845169,
0.2727903127670288,
-0.102035291492939,
0.20750638842582703,
-0.33235713839530945,
-0.027644319459795952,
-0.19759589433670044,
0.239456444978714,
-0.03601209819316864,
-0.5734444856643677,
0.1910444051027298,
0.12406925857067108,
-0.16023874282836914,
0.4322611689567566,
-0.00011400340008549392,
-0.0793730691075325,
0.38167262077331543,
0.07610616832971573,
-0.23424406349658966,
-0.09339636564254761,
-0.04475300759077072,
-0.22309593856334686,
0.016606684774160385,
-0.02943367511034012,
-0.11311143636703491,
-0.2327483743429184,
-0.02659543789923191,
-0.15746095776557922,
0.7214579582214355,
-0.08282559365034103,
0.1602609008550644,
0.21077319979667664,
0.3893352448940277,
0.023967618122696877,
-0.12600260972976685,
0.4517333507537842,
-0.2766512930393219,
0.23553858697414398,
0.24930916726589203,
-0.20201146602630615,
0.24610480666160583,
0.33169084787368774,
0.13923637568950653,
0.0645187497138977,
0.295566588640213,
-0.02419811114668846,
0.051746249198913574,
-0.29723060131073,
0.13734468817710876,
0.4697113633155823,
0.47673511505126953,
-0.41784393787384033,
-0.49037063121795654,
-0.48879608511924744,
0.26462826132774353,
-0.011413434520363808,
0.08091378957033157,
0.022359292954206467,
-0.1842757910490036,
0.08571241796016693,
-0.214839905500412,
-0.17298255860805511,
-0.2286982536315918,
-0.1192375123500824,
0.25217223167419434,
-0.2800194323062897,
0.0217893123626709,
0.0794355571269989,
0.05523458123207092,
-0.2782297134399414,
-0.19673845171928406,
-0.057041965425014496,
0.03227175399661064,
0.09521317481994629,
-0.22279123961925507,
-0.24447079002857208,
0.12503372132778168,
0.06650034338235855,
0.3508710265159607,
-0.16735857725143433,
0.27941417694091797,
0.14711253345012665,
-0.0017579803243279457,
-0.03125470131635666,
0.17770254611968994,
0.026831969618797302,
0.31895869970321655,
0.009180841036140919,
0.2060927450656891,
-0.021848317235708237,
-0.0909225344657898,
0.048170801252126694,
0.044751688838005066,
-0.27314427495002747,
0.5922691226005554,
0.3078708350658417,
0.44465047121047974,
-0.18879471719264984,
-0.10621058940887451,
0.33779069781303406,
-0.25881367921829224,
-0.20005574822425842,
-0.08110855519771576,
-0.017459191381931305,
0.031095396727323532,
-0.14976683259010315,
0.0018867626786231995,
0.1662163883447647,
-0.040720731019973755,
-0.19765867292881012,
-0.08721429109573364,
0.015255797654390335,
-0.08289887011051178,
0.024565964937210083,
0.06470862030982971,
-0.281108021736145,
0.20746847987174988,
0.26118361949920654,
0.05404418706893921,
-0.13822227716445923,
0.21797458827495575,
0.2769722640514374,
-0.22080644965171814,
0.07388043403625488,
-0.09545422345399857,
0.14528140425682068,
0.014636550098657608,
-0.11008451879024506,
0.026583820581436157,
-0.12723425030708313,
-0.06450959295034409,
-0.3684171438217163,
-0.19418799877166748,
0.1760423332452774,
-0.1599237024784088,
0.10177308320999146,
-0.19795483350753784,
0.19989116489887238,
-0.09249157458543777,
0.06275255978107452,
-0.2029443085193634,
0.08959375321865082,
-0.07443233579397202,
-0.26822367310523987,
0.19347228109836578,
0.7540366053581238,
-0.19962380826473236,
0.033113814890384674,
-0.15350787341594696,
0.0517755001783371,
-0.06476981192827225,
0.2763851284980774,
-0.1253194510936737,
0.45548126101493835,
-0.21860195696353912,
0.07710862159729004,
0.1697310507297516,
-0.23889297246932983,
-0.20366939902305603,
0.5487210154533386,
-0.11970013380050659,
0.17984721064567566,
0.15878213942050934,
-0.016049806028604507,
0.15347769856452942,
-0.1561247557401657,
0.05012555420398712,
-0.26241767406463623,
-0.09464330226182938,
-0.055726729333400726,
-0.3125685751438141,
-0.32150498032569885,
-0.07452955842018127,
-0.13577072322368622,
-0.11475396156311035,
-0.16196727752685547,
0.08175962418317795,
0.021331176161766052,
0.4275150001049042,
-0.21818023920059204,
-0.22587516903877258,
0.0929618775844574,
0.5137152075767517,
-0.16529463231563568,
0.007147002499550581,
-0.12273507565259933,
-0.5017937421798706,
0.3637678027153015,
-0.12415221333503723,
0.07736480981111526,
-0.18033556640148163,
-0.2790140211582184,
-0.24247261881828308,
0.10932693630456924,
-0.3378954529762268,
0.020593740046024323,
0.14421787858009338,
-0.20248016715049744,
0.10157579183578491,
-0.011749407276511192,
0.044344786554574966,
0.34471964836120605,
0.04912880063056946,
0.17448106408119202,
-0.34367457032203674,
0.17532378435134888,
-0.18901513516902924,
0.0006350884214043617,
0.26025617122650146,
0.2409321665763855,
0.31689658761024475,
-0.18592259287834167,
-0.04095951095223427,
0.322889506816864,
-0.11223843693733215,
0.3513292670249939,
0.052389368414878845,
-0.00883471965789795,
0.2432977259159088,
-0.011079244315624237,
0.07119124382734299,
0.25238022208213806,
-0.08737067133188248,
0.007243119180202484,
-0.2699931263923645,
0.30164000391960144,
0.0874151736497879,
-0.0968494638800621,
-0.07528786361217499,
0.019115613773465157,
-0.0927920937538147,
-0.005777016282081604,
0.032448649406433105,
-0.22980667650699615,
0.2761576771736145,
-0.193882018327713,
0.07177950441837311,
0.1498570591211319,
-0.42319124937057495,
0.26287004351615906,
0.08274295926094055,
-0.25037050247192383,
0.21038112044334412,
0.15577027201652527,
0.05401744320988655,
-0.12934111058712006,
0.11086330562829971,
0.4167397916316986,
0.09113503992557526,
0.17812933027744293,
-0.22295424342155457,
0.17421458661556244,
-0.30562394857406616,
0.013432607054710388,
0.13375063240528107,
-0.25496453046798706,
-0.11485662311315536,
0.2726137936115265,
-0.21152330935001373,
0.2515285015106201,
-0.4246058166027069,
-0.13701976835727692,
0.0467478409409523,
0.3720472753047943,
-0.3390723466873169,
-0.25071167945861816,
-0.2916001081466675,
-0.054927099496126175,
-0.28304561972618103,
0.2735156714916229,
-0.05807657167315483,
-0.3693831264972687,
0.25300589203834534,
0.19643183052539825,
-0.10108248889446259,
-0.012922599911689758,
0.2882896065711975,
0.05503404140472412,
-0.1901879757642746,
0.14246103167533875,
-0.143223375082016,
-0.1426267921924591,
-0.1305466592311859,
0.07873448729515076,
0.21402257680892944,
0.2061711996793747,
0.39196527004241943,
-0.38558024168014526,
-0.07225971668958664,
-0.6224530339241028,
-0.4301535189151764,
0.12052058428525925,
-0.08661386370658875,
0.38263407349586487,
0.4122607707977295,
0.2837805151939392,
-0.0387781485915184,
-0.3239705562591553,
0.25815361738204956,
-0.2060401439666748,
-0.17637285590171814,
0.028677701950073242,
-0.012705451808869839,
-0.05401349440217018,
-0.07491356134414673,
-0.38508230447769165,
0.029222317039966583,
-0.06993141770362854,
0.40922796726226807,
-0.35990583896636963,
0.07893092930316925,
0.047561876475811005,
0.17960748076438904,
-0.0597565695643425,
-0.08282531052827835,
0.015060154721140862,
-0.2445361614227295,
-0.3888952136039734,
0.06071583926677704,
-0.14598049223423004,
-0.2555619776248932,
-0.11947548389434814,
-0.02387363836169243,
0.22162844240665436,
-0.34100180864334106,
-0.41002410650253296,
-0.46190181374549866,
-0.2929082214832306,
0.13478480279445648,
-0.02486218512058258,
0.24737554788589478,
0.1044810563325882,
0.20778624713420868,
-0.11953067034482956,
-0.06804763525724411,
-0.4031442701816559,
0.02797503024339676,
0.047499846667051315,
0.2797584533691406,
0.03226787596940994,
0.543005645275116,
-0.2470879852771759,
0.5793848633766174,
0.4846961498260498,
-0.07560431957244873,
0.10514326393604279,
-0.03365468233823776,
0.35300374031066895,
0.048005491495132446,
-0.34207162261009216,
0.016897765919566154,
-0.03031972050666809,
0.0987180769443512,
-0.0028064921498298645,
0.15606018900871277,
0.3088310956954956,
0.2605747580528259,
-0.22550015151500702,
-0.47194379568099976,
-0.47012367844581604,
-0.21973340213298798,
-0.15637163817882538,
-0.07511606067419052,
0.04770541563630104,
0.05729909986257553,
-0.0938011109828949,
0.29538553953170776,
0.19678759574890137,
0.22274987399578094,
0.3298237919807434,
-0.084798164665699,
-0.16457369923591614,
-0.1666315197944641,
-0.5637004971504211,
0.2672380805015564,
-0.050686050206422806,
0.1954623907804489,
-0.10367731750011444,
0.29692167043685913,
-0.008539050817489624,
0.039634425193071365,
0.5005151629447937,
-0.6065917611122131,
0.008935850113630295,
-0.24832943081855774,
-0.20126916468143463,
-0.2740778923034668,
0.034075189381837845,
0.18805207312107086,
0.4618150591850281,
-0.028767500072717667,
0.25558435916900635,
-0.45711687207221985,
0.06711138784885406,
0.17321927845478058,
0.5065743327140808,
-0.19914785027503967,
-0.36511150002479553,
-0.07599519193172455,
-0.2433670461177826,
-0.6181196570396423,
0.029845841228961945,
0.13848571479320526,
-0.12095016986131668,
0.1915571242570877,
-0.08392366766929626,
-0.023262517526745796,
-0.04577535018324852,
0.28013259172439575,
0.32354968786239624,
0.2969464361667633,
0.010850930586457253,
0.45998507738113403,
0.23281192779541016,
-0.13203801214694977,
0.278897225856781,
0.4442102611064911,
-0.17064169049263,
-0.1134849339723587,
-0.26556435227394104,
-0.32401159405708313,
-0.000598907470703125,
0.28307580947875977,
0.01915012300014496,
0.12708602845668793,
0.06054474040865898,
0.19255730509757996,
-0.05631811544299126,
-0.27056485414505005,
0.4682101607322693,
0.24429529905319214,
-0.34671542048454285,
-0.25699952244758606,
0.15739870071411133,
0.1295751929283142,
-0.19728508591651917,
0.2911267578601837,
0.47705936431884766,
-0.09930083155632019,
0.17600305378437042,
0.021744847297668457,
0.7791213393211365,
-0.29089146852493286,
0.02490800805389881,
-0.16601136326789856,
-0.22587330639362335,
0.4510931074619293,
0.19049568474292755,
-0.20688855648040771,
-0.4272106885910034,
-0.009604043327271938,
0.0789191722869873,
0.13784261047840118,
0.089867003262043,
0.10896849632263184,
-0.2849254608154297,
0.307733952999115,
-0.002559959888458252,
0.07401984930038452,
-0.15705445408821106,
0.5047349333763123,
-0.26187968254089355,
0.12051433324813843,
-0.23112797737121582,
0.09909433126449585,
0.21397705376148224,
0.14998117089271545,
-0.06030966341495514,
-0.2553653120994568,
0.3300859332084656,
-0.5080673098564148,
-0.7193319201469421,
-0.19930216670036316,
-0.2497054785490036,
0.02554033324122429,
0.12573961913585663,
-0.4279901385307312,
0.4629549980163574,
0.19403961300849915,
0.6609544157981873,
0.4349396228790283,
-0.280212938785553,
-0.05376126989722252,
-0.0028734952211380005,
0.026282569393515587,
-0.3033345341682434,
-0.24214661121368408,
0.03571974113583565,
-0.13069337606430054,
-0.535302460193634,
-0.054251499474048615,
0.08668384701013565,
-0.15165066719055176,
-0.20448912680149078,
-0.20959772169589996,
-0.3883976340293884,
-0.16270866990089417,
-0.00615734001621604,
-0.08029915392398834,
-0.20525528490543365,
-0.37159913778305054,
0.12061372399330139,
0.3419038653373718,
-0.14153312146663666,
0.24263879656791687,
0.022024575620889664,
-0.2031630277633667,
-0.07039304077625275,
-0.03467031568288803,
0.013837838545441628,
-0.048546694219112396,
0.388203501701355,
0.029506515711545944,
0.09259334206581116,
-0.3447836935520172,
0.20088201761245728,
0.47342821955680847,
-0.43350785970687866,
0.022023290395736694,
0.038348808884620667,
0.1178242415189743,
0.24071095883846283,
0.22812464833259583,
0.3079022765159607,
0.20491662621498108,
0.04728654399514198,
0.029955945909023285,
-0.3724408447742462,
0.13511891663074493,
-0.008680246770381927,
0.4223214387893677,
-0.14100584387779236,
0.09062972664833069,
0.08767398446798325,
0.16123603284358978,
-0.3180360198020935,
0.1656981259584427,
0.03262897580862045,
-0.17918644845485687,
0.36088094115257263,
0.11142352968454361,
-0.02294766902923584,
-0.19250120222568512,
0.10220371186733246,
0.1732531189918518,
-0.17720013856887817,
-0.12186135351657867,
-0.1104651391506195,
0.12558867037296295,
-0.1442601978778839,
0.08159954100847244,
0.2295282781124115,
0.05213546007871628,
0.26028189063072205,
-0.06442223489284515,
0.28657200932502747,
0.23856523633003235,
0.22208526730537415,
0.24752523005008698,
0.2261020988225937,
0.02050185576081276,
-0.27336233854293823,
0.03633614256978035,
-0.19177278876304626,
0.26531922817230225,
0.14193680882453918,
-0.11937360465526581,
0.017189454287290573,
-0.08507783710956573,
0.046235304325819016,
0.05259242281317711,
-0.22240398824214935,
0.12125739455223083,
0.16615335643291473,
0.004092786461114883,
-0.24931520223617554,
0.3029603362083435,
0.45944562554359436,
-0.015803270041942596,
0.013586513698101044,
-0.08016650378704071,
0.024304740130901337,
0.1575886756181717,
-0.31486791372299194,
-0.3572622239589691,
0.09298107028007507,
-0.16067980229854584,
0.06188570335507393,
0.404276579618454,
0.20205840468406677,
0.09056508541107178,
-0.05024555325508118,
-0.04991065710783005,
0.19616134464740753,
-0.19923144578933716,
0.3003979027271271,
0.35989558696746826,
-0.08213743567466736,
-0.1448175609111786,
0.0643685981631279,
-0.17515788972377777,
0.10275541245937347,
0.011180024594068527,
-0.4453573226928711,
0.09667512029409409,
-0.10532746464014053,
0.1827506572008133,
0.33383598923683167,
0.06626540422439575,
0.48310476541519165,
0.1711268424987793,
-0.2533411383628845,
0.0606687031686306,
0.23453308641910553,
0.3452407121658325,
-0.2622390389442444,
-0.11932437866926193,
-0.25121647119522095,
0.0847444087266922,
-0.024497531354427338,
-0.1531926393508911,
0.1434391587972641,
-0.14678557217121124,
-0.12666764855384827,
-0.058159902691841125,
-0.0636795163154602,
-0.16380545496940613,
0.36540868878364563,
-0.10035550594329834,
-0.00982484221458435,
-0.40164217352867126,
-0.015887342393398285,
0.08690063655376434,
0.3627246618270874,
-0.13568498194217682,
-0.0353260338306427,
0.34726768732070923,
-0.4045613408088684,
0.013747040182352066,
0.5401197075843811,
0.7480985522270203,
0.1006808653473854,
-0.031421586871147156,
0.2432461529970169,
-0.10367231070995331,
0.16363617777824402,
0.1397334486246109,
0.038708191365003586,
-0.2806659936904907,
-0.33932071924209595,
0.13263756036758423,
0.1345287561416626,
-0.0644780769944191,
0.030567944049835205,
0.15008945763111115,
-0.05514857545495033,
-0.18855729699134827,
0.26992034912109375,
-0.17937691509723663,
-0.04336387664079666,
-0.10914970934391022,
0.258998841047287,
-0.23198702931404114,
-0.3667307496070862,
0.3973073959350586,
0.1701563596725464,
-0.12547779083251953,
-0.373203843832016,
0.11315108835697174,
-0.23120903968811035,
0.5304340124130249,
0.6014939546585083,
0.03572311997413635,
-0.3414868414402008,
0.18356125056743622,
-1.048972487449646,
-0.04613596946001053,
-0.39921408891677856,
-0.1361127644777298,
0.26936107873916626,
0.15534386038780212,
-0.03473123162984848,
0.18098951876163483,
0.5352773666381836,
0.1118304431438446,
-0.27938395738601685,
0.10934373736381531,
-0.4301014840602875,
0.1408088356256485,
0.3048829436302185,
-0.08343306183815002,
0.13012483716011047,
-0.20115286111831665,
0.34599950909614563,
-0.047177813947200775,
-0.01008598878979683,
-0.19687390327453613,
0.26982036232948303,
-0.06495407968759537,
-0.2431599199771881,
0.12607493996620178,
0.22673532366752625,
0.19211485981941223,
-0.048203058540821075,
-0.4436846673488617,
-0.09689633548259735,
-0.10878929495811462,
-0.11344968527555466,
0.40806010365486145,
0.3250892162322998,
0.3595389127731323,
0.09857270866632462,
-0.27399715781211853,
-0.16792826354503632,
0.011996053159236908,
0.21590100228786469,
0.013748538680374622,
-0.2930248975753784,
0.39644238352775574,
0.08029281347990036,
-0.03701549023389816,
-0.10434991866350174,
0.1763674020767212,
-0.0743710845708847,
0.253622442483902,
-0.09414175152778625,
-0.530322253704071,
0.4056937098503113,
-0.10874669998884201,
0.05443570390343666,
-0.41551899909973145,
0.19692081212997437,
0.018143031746149063,
-0.03876756131649017,
-0.6201362013816833,
0.12823453545570374,
0.2593625485897064,
0.10115887969732285,
-0.06678660213947296,
0.15664993226528168,
-0.09789648652076721,
-0.05575825273990631,
0.13296352326869965,
0.26586467027664185,
0.07545650005340576,
-0.22948460280895233,
0.4999273121356964,
-0.1950782835483551
] |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | > DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
@lhoestq when you mention 42th and 1337th in the above case , are these values the examples' "id" or are they the examples' index ? | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
``` | 37 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
```
> DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
@lhoestq when you mention 42th and 1337th in the above case , are these values the examples' "id" or are they the examples' index ? | [
-0.02034047804772854,
-0.2239266037940979,
0.025477774441242218,
0.3514035940170288,
0.10506153851747513,
0.21221894025802612,
0.24172315001487732,
0.2712758183479309,
-0.016108280047774315,
0.1710687279701233,
0.25376299023628235,
0.1604771912097931,
-0.08901943266391754,
0.2841187119483948,
0.09392253309488297,
-0.19629067182540894,
-0.15128794312477112,
0.09217636287212372,
-0.004024043679237366,
0.09066802263259888,
-0.23038381338119507,
0.2841751277446747,
-0.11753242462873459,
0.21772949397563934,
-0.2820727527141571,
-0.0627642571926117,
-0.23932048678398132,
0.2049693465232849,
-0.022274548187851906,
-0.624992311000824,
0.20339402556419373,
0.11289846897125244,
-0.14827537536621094,
0.3852671682834625,
-0.00011311593698337674,
-0.053078293800354004,
0.3986726999282837,
0.052452608942985535,
-0.2914595901966095,
-0.092620849609375,
-0.06164366751909256,
-0.24026688933372498,
-0.013797588646411896,
-0.1077975332736969,
-0.11445830762386322,
-0.24826966226100922,
-0.0005054641515016556,
-0.05228520929813385,
0.6505042910575867,
-0.05049031972885132,
0.1556490957736969,
0.24038660526275635,
0.4198155701160431,
0.052870649844408035,
0.012063376605510712,
0.41523152589797974,
-0.27157062292099,
0.2226925939321518,
0.20523537695407867,
-0.09061340242624283,
0.24121692776679993,
0.35341012477874756,
0.16606079041957855,
0.12846097350120544,
0.2346937656402588,
0.02060561254620552,
0.04888615012168884,
-0.24803438782691956,
0.1093369871377945,
0.493620365858078,
0.4500439763069153,
-0.35984763503074646,
-0.5183649063110352,
-0.5043164491653442,
0.22977633774280548,
-0.07459786534309387,
0.05726461112499237,
0.02203006111085415,
-0.12854354083538055,
0.12522394955158234,
-0.18024420738220215,
-0.07202641665935516,
-0.20448899269104004,
-0.09735947847366333,
0.23586425185203552,
-0.2415727972984314,
0.014228664338588715,
0.07295200228691101,
0.04777870699763298,
-0.31868016719818115,
-0.21249093115329742,
-0.02465086057782173,
0.02887086197733879,
0.08984525501728058,
-0.20108281075954437,
-0.24503181874752045,
0.15591633319854736,
0.08303171396255493,
0.3851410150527954,
-0.19343522191047668,
0.28775960206985474,
0.15849998593330383,
0.047415368258953094,
-0.008084364235401154,
0.17972907423973083,
0.020222246646881104,
0.3338521122932434,
0.025272298604249954,
0.23909975588321686,
0.009054567664861679,
-0.09041303396224976,
0.05909489840269089,
0.04549586772918701,
-0.24440523982048035,
0.5811075568199158,
0.27339276671409607,
0.4368214011192322,
-0.16010455787181854,
-0.21008695662021637,
0.37408629059791565,
-0.32273706793785095,
-0.18944896757602692,
-0.0645875483751297,
0.028552569448947906,
0.04760003462433815,
-0.16107860207557678,
-0.016977565363049507,
0.16371513903141022,
-0.09321411699056625,
-0.15148989856243134,
-0.10028824210166931,
0.025923585519194603,
0.004109710454940796,
0.014799760654568672,
0.08976632356643677,
-0.2536013126373291,
0.24792328476905823,
0.23293273150920868,
0.032032206654548645,
-0.12771672010421753,
0.284576952457428,
0.24303697049617767,
-0.12567222118377686,
0.1185634434223175,
-0.10862858593463898,
0.14015886187553406,
0.009645752608776093,
-0.14040684700012207,
-0.029370848089456558,
-0.17389625310897827,
-0.09715358167886734,
-0.37591442465782166,
-0.07232288271188736,
0.18992075324058533,
-0.1608390361070633,
0.11223556846380234,
-0.1468978226184845,
0.2556155323982239,
-0.10479763895273209,
0.03678647801280022,
-0.16560322046279907,
0.0685424655675888,
-0.07854775339365005,
-0.2429601550102234,
0.1706702709197998,
0.7505463361740112,
-0.11980819702148438,
-0.04529185965657234,
-0.12546344101428986,
0.0886845588684082,
-0.15239334106445312,
0.2682952880859375,
-0.13551120460033417,
0.44751444458961487,
-0.25838369131088257,
0.10131330788135529,
0.14679273962974548,
-0.2809654474258423,
-0.21240991353988647,
0.513296902179718,
-0.08416798710823059,
0.1559305042028427,
0.17564789950847626,
0.009848515503108501,
0.20893961191177368,
-0.16312521696090698,
0.04244617745280266,
-0.2732698917388916,
-0.0961700826883316,
-0.10697248578071594,
-0.2989543378353119,
-0.3071845769882202,
-0.07141629606485367,
-0.15333890914916992,
-0.12726962566375732,
-0.1738196611404419,
0.08719875663518906,
0.006764757446944714,
0.37460803985595703,
-0.21129778027534485,
-0.24747413396835327,
0.06507907807826996,
0.4900771677494049,
-0.19784890115261078,
0.03518408536911011,
-0.08482518792152405,
-0.5368135571479797,
0.39132219552993774,
-0.12030524015426636,
0.05657918006181717,
-0.1573827713727951,
-0.3221261501312256,
-0.2264862060546875,
0.06340913474559784,
-0.3370540142059326,
-0.020652130246162415,
0.15168513357639313,
-0.20325130224227905,
0.145636186003685,
-0.05763336271047592,
-0.025122158229351044,
0.2637085020542145,
-0.02118009328842163,
0.1680559366941452,
-0.3679499924182892,
0.17373089492321014,
-0.17961741983890533,
-0.0058887070044875145,
0.2766636908054352,
0.21688640117645264,
0.35157695412635803,
-0.23268769681453705,
-0.01668986864387989,
0.35425814986228943,
-0.04414229467511177,
0.3115609884262085,
0.07064002007246017,
0.026978790760040283,
0.2655104696750641,
-0.009029366075992584,
0.012279398739337921,
0.254419207572937,
-0.06853383034467697,
-0.009815763682126999,
-0.2852802574634552,
0.36638665199279785,
0.07395763695240021,
-0.062075190246105194,
-0.0067587196826934814,
-0.026816105470061302,
-0.03205925598740578,
-0.04182840883731842,
-0.004319826140999794,
-0.28256410360336304,
0.24465987086296082,
-0.15872769057750702,
0.07409022748470306,
0.1607745736837387,
-0.47815510630607605,
0.2776018977165222,
0.059998296201229095,
-0.29259228706359863,
0.22708436846733093,
0.1704958975315094,
0.05854782462120056,
-0.11291617155075073,
0.0858897715806961,
0.3956507742404938,
0.10035359114408493,
0.18454864621162415,
-0.1707206517457962,
0.12536688148975372,
-0.32237595319747925,
-0.015657270327210426,
0.14492355287075043,
-0.21831534802913666,
-0.16496244072914124,
0.2836035192012787,
-0.21802514791488647,
0.22414109110832214,
-0.420184463262558,
-0.13367746770381927,
0.04263557493686676,
0.34552422165870667,
-0.3822883069515228,
-0.23554541170597076,
-0.23830068111419678,
-0.052499257028102875,
-0.2961843013763428,
0.21716445684432983,
-0.0060204677283763885,
-0.4239366352558136,
0.2641691267490387,
0.1952545940876007,
-0.14633892476558685,
-0.0014702752232551575,
0.23698103427886963,
0.08224263787269592,
-0.17591822147369385,
0.1560106724500656,
-0.15098822116851807,
-0.18431136012077332,
-0.1780255138874054,
0.07926583290100098,
0.1676512509584427,
0.303026020526886,
0.36975112557411194,
-0.47196218371391296,
-0.07198408246040344,
-0.6167241930961609,
-0.4302765429019928,
0.151011124253273,
-0.06155814975500107,
0.39698487520217896,
0.4404074549674988,
0.3116723895072937,
-0.07959592342376709,
-0.3527508080005646,
0.2784096598625183,
-0.21157896518707275,
-0.21386754512786865,
0.03189338743686676,
0.003972286358475685,
-0.022588582709431648,
-0.028654631227254868,
-0.4407305419445038,
0.008505516685545444,
-0.11698010563850403,
0.35780882835388184,
-0.30564776062965393,
0.08055005967617035,
0.10245542228221893,
0.13319002091884613,
-0.017442282289266586,
0.005202740430831909,
0.0533999428153038,
-0.27785244584083557,
-0.40460869669914246,
0.10026624798774719,
-0.19414542615413666,
-0.25384554266929626,
-0.17060516774654388,
-0.08607886731624603,
0.19453972578048706,
-0.2815518379211426,
-0.42249542474746704,
-0.4813271462917328,
-0.3115425109863281,
0.16734381020069122,
0.03422990068793297,
0.3224900960922241,
0.12355922162532806,
0.16281935572624207,
-0.12669241428375244,
-0.10090121626853943,
-0.39606615900993347,
0.0758449137210846,
0.07789087295532227,
0.23231670260429382,
0.03475087881088257,
0.5249531865119934,
-0.23132625222206116,
0.6735978722572327,
0.4931904673576355,
-0.13248157501220703,
0.13899028301239014,
-0.043489970266819,
0.3782667815685272,
0.023580484092235565,
-0.3256470263004303,
0.013799787499010563,
0.001911446452140808,
0.026702716946601868,
0.02338968962430954,
0.14300528168678284,
0.26405251026153564,
0.23103079199790955,
-0.18400174379348755,
-0.4914572536945343,
-0.48717591166496277,
-0.2226944863796234,
-0.06656032800674438,
0.007024116814136505,
0.037782687693834305,
0.08543487638235092,
-0.07799458503723145,
0.3002925217151642,
0.2397344410419464,
0.2294066697359085,
0.3336649239063263,
-0.06845654547214508,
-0.17677058279514313,
-0.19831547141075134,
-0.5043824315071106,
0.27732977271080017,
0.011669103987514973,
0.19644029438495636,
-0.07618249207735062,
0.16822901368141174,
-0.03601117432117462,
0.02618613839149475,
0.4611473083496094,
-0.5421816110610962,
-0.002448752522468567,
-0.1810653805732727,
-0.20405156910419464,
-0.2601218521595001,
0.026787269860506058,
0.13727349042892456,
0.4262046813964844,
0.031350646167993546,
0.3146933317184448,
-0.5624656677246094,
0.10017618536949158,
0.2043994963169098,
0.507027804851532,
-0.21603696048259735,
-0.3346860408782959,
-0.08993299305438995,
-0.24884137511253357,
-0.6182551383972168,
0.07745891809463501,
0.13279421627521515,
-0.13937097787857056,
0.17043273150920868,
-0.07250626385211945,
-0.08480249345302582,
-0.08235624432563782,
0.2734748125076294,
0.38019564747810364,
0.3078804314136505,
0.07357598841190338,
0.4937693476676941,
0.29522642493247986,
-0.1504092514514923,
0.30411016941070557,
0.49948158860206604,
-0.16479486227035522,
-0.03425620496273041,
-0.2638193666934967,
-0.321935772895813,
-0.06609896570444107,
0.2892414927482605,
0.029846686869859695,
0.07695946097373962,
-0.005003487691283226,
0.1664605587720871,
-0.08461172878742218,
-0.26460710167884827,
0.442355751991272,
0.233381986618042,
-0.32094046473503113,
-0.2466920018196106,
0.19023120403289795,
0.13120651245117188,
-0.2517499625682831,
0.2816073000431061,
0.5725430250167847,
-0.08989101648330688,
0.18660786747932434,
0.047431010752916336,
0.7815694808959961,
-0.2686675190925598,
-0.01246098056435585,
-0.14237850904464722,
-0.2332787960767746,
0.4048641622066498,
0.2453346997499466,
-0.19634485244750977,
-0.3963763117790222,
-0.0709313154220581,
0.08608312159776688,
0.1000279039144516,
0.11825277656316757,
0.11936615407466888,
-0.27974772453308105,
0.31225746870040894,
0.007973730564117432,
0.06282094866037369,
-0.24584589898586273,
0.5246068835258484,
-0.3054179549217224,
0.13430653512477875,
-0.24385562539100647,
0.09574878215789795,
0.23764276504516602,
0.17145010828971863,
-0.061495520174503326,
-0.22921709716320038,
0.30358558893203735,
-0.511597216129303,
-0.6469369530677795,
-0.26053526997566223,
-0.23342470824718475,
0.09205836802721024,
0.11788071691989899,
-0.46874016523361206,
0.31031283736228943,
0.18346823751926422,
0.6476356983184814,
0.3441516160964966,
-0.2564144730567932,
-0.01721024513244629,
0.016014911234378815,
0.06082427501678467,
-0.26408398151397705,
-0.23945485055446625,
0.07541586458683014,
-0.09847123920917511,
-0.4495258629322052,
-0.04300292581319809,
0.09250408411026001,
-0.11889302730560303,
-0.1825653314590454,
-0.22587059438228607,
-0.4796612858772278,
-0.18496404588222504,
0.014377759769558907,
-0.06922079622745514,
-0.2439383864402771,
-0.36184003949165344,
0.11126165091991425,
0.32685983180999756,
-0.1323397308588028,
0.17826464772224426,
0.04012266546487808,
-0.197300523519516,
-0.09144210815429688,
-0.035362549126148224,
-0.05259794741868973,
-0.003155600279569626,
0.37510430812835693,
0.0028496943414211273,
0.06548642367124557,
-0.3208721876144409,
0.24148482084274292,
0.4979442358016968,
-0.3766877353191376,
0.07687296718358994,
0.0057851155288517475,
0.1281755417585373,
0.20977884531021118,
0.29887712001800537,
0.29369214177131653,
0.1746748834848404,
0.030962001532316208,
0.03440099209547043,
-0.38780704140663147,
0.18383042514324188,
0.05262000858783722,
0.46060246229171753,
-0.18842652440071106,
-0.01665647327899933,
0.05336683243513107,
0.1281420886516571,
-0.3251793384552002,
0.15989696979522705,
-0.027831073850393295,
-0.10520461201667786,
0.2958207428455353,
0.13115504384040833,
-0.024761244654655457,
-0.15744149684906006,
0.10143052041530609,
0.1261739879846573,
-0.18184083700180054,
-0.13199281692504883,
-0.1447027623653412,
0.12791095674037933,
-0.14671552181243896,
0.07731568813323975,
0.18148978054523468,
0.040203653275966644,
0.30089882016181946,
-0.12051399052143097,
0.2886122465133667,
0.250230997800827,
0.1866234838962555,
0.30872341990470886,
0.1832452416419983,
0.014343123883008957,
-0.1820860505104065,
0.04226958379149437,
-0.18153110146522522,
0.30281633138656616,
0.13948117196559906,
-0.12474709749221802,
-0.008486269041895866,
-0.0822463110089302,
0.07645893841981888,
0.067759208381176,
-0.2577739357948303,
0.052275385707616806,
0.1718171238899231,
0.044161356985569,
-0.25794273614883423,
0.35598137974739075,
0.4078930616378784,
0.0863729864358902,
0.019396314397454262,
-0.029849912971258163,
0.014593558385968208,
0.16857419908046722,
-0.2984302043914795,
-0.35782861709594727,
0.10853759944438934,
-0.13375972211360931,
0.1066455990076065,
0.4232843518257141,
0.23850339651107788,
0.08044154942035675,
-0.10576581954956055,
-0.06083197891712189,
0.160757377743721,
-0.15125542879104614,
0.2682728171348572,
0.36351484060287476,
-0.08630692213773727,
-0.14707675576210022,
0.06955064088106155,
-0.19313980638980865,
0.18804000318050385,
-0.02984379231929779,
-0.44587695598602295,
0.21134880185127258,
-0.04621855169534683,
0.21111731231212616,
0.40160566568374634,
0.09258565306663513,
0.47104188799858093,
0.09714075177907944,
-0.2246241271495819,
0.08091907948255539,
0.30296051502227783,
0.34020087122917175,
-0.2620004117488861,
-0.1403750628232956,
-0.28319865465164185,
0.08619241416454315,
-0.02572232484817505,
-0.20899997651576996,
0.11258065700531006,
-0.17144173383712769,
-0.13392554223537445,
-0.02955002337694168,
-0.07136769592761993,
-0.1780286729335785,
0.34436100721359253,
-0.09143130481243134,
-0.012234516441822052,
-0.4795137047767639,
0.0050955768674612045,
0.09519022703170776,
0.43588364124298096,
-0.16116443276405334,
-0.04866962134838104,
0.3762456774711609,
-0.42433464527130127,
0.060627467930316925,
0.5793841481208801,
0.6963661909103394,
0.036238592118024826,
-0.043551988899707794,
0.24444840848445892,
-0.09732833504676819,
0.11763593554496765,
0.041605979204177856,
0.02312149479985237,
-0.37082186341285706,
-0.3630446493625641,
0.15764811635017395,
0.14265793561935425,
-0.08488652110099792,
0.008174452930688858,
0.11987736821174622,
-0.0669146329164505,
-0.21939831972122192,
0.19888931512832642,
-0.25316479802131653,
-0.025201234966516495,
-0.07520092278718948,
0.2464417815208435,
-0.22500169277191162,
-0.32667267322540283,
0.32811784744262695,
0.163673534989357,
-0.05428126081824303,
-0.3097008764743805,
0.11337639391422272,
-0.22895091772079468,
0.5068771839141846,
0.620982825756073,
-0.006739102303981781,
-0.35035771131515503,
0.17769946157932281,
-1.0635645389556885,
-0.06248927861452103,
-0.4057052731513977,
-0.10450094193220139,
0.32144731283187866,
0.17988452315330505,
-0.0770469680428505,
0.19782903790473938,
0.5149039626121521,
0.08354885131120682,
-0.2327103465795517,
0.16497120261192322,
-0.44179898500442505,
0.0836009830236435,
0.23716199398040771,
-0.09821639955043793,
0.10719755291938782,
-0.19600889086723328,
0.32542744278907776,
-0.08942259848117828,
-0.004788544028997421,
-0.19049619138240814,
0.24066480994224548,
-0.06392759084701538,
-0.23572498559951782,
0.1739778369665146,
0.2560777962207794,
0.18054452538490295,
-0.06314800679683685,
-0.38152849674224854,
-0.11736908555030823,
-0.11115796864032745,
-0.08052343875169754,
0.3744574785232544,
0.24922674894332886,
0.3548126816749573,
0.09176221489906311,
-0.27037420868873596,
-0.11735749989748001,
-0.025987545028328896,
0.23345310986042023,
-0.018432216718792915,
-0.29197603464126587,
0.3894514739513397,
-0.00830569863319397,
-0.0693516880273819,
-0.09561953693628311,
0.28923743963241577,
-0.04878901690244675,
0.2010451853275299,
-0.05885529890656471,
-0.5806036591529846,
0.3805220127105713,
-0.214188814163208,
0.09156082570552826,
-0.39219754934310913,
0.1744627207517624,
0.08664079755544662,
-0.026658670976758003,
-0.6067790985107422,
0.1372765600681305,
0.2720303237438202,
0.04186917841434479,
-0.13687090575695038,
0.08734804391860962,
-0.02351447567343712,
-0.07322214543819427,
0.10985156893730164,
0.2613494098186493,
0.1183626651763916,
-0.2426406294107437,
0.49233874678611755,
-0.15213093161582947
] |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | Hi ! Thanks @VijayKalmath :)
In the general case, examples don't have an "id" field, so I think it should correspond to the index | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
``` | 24 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
```
Hi ! Thanks @VijayKalmath :)
In the general case, examples don't have an "id" field, so I think it should correspond to the index | [
-0.04555780813097954,
-0.19828003644943237,
0.02066761627793312,
0.31138989329338074,
0.11798311024904251,
0.19987532496452332,
0.23079444468021393,
0.2535218298435211,
-0.02563805691897869,
0.19732722640037537,
0.3366694450378418,
0.17300119996070862,
-0.12255821377038956,
0.35561126470565796,
0.08557236939668655,
-0.21797814965248108,
-0.11577165871858597,
0.1167333722114563,
-0.014058016240596771,
0.11771456897258759,
-0.1921345442533493,
0.2673620879650116,
-0.10974925756454468,
0.24267587065696716,
-0.3032604157924652,
-0.10037102550268173,
-0.2355787307024002,
0.18037717044353485,
-0.020531026646494865,
-0.5835404992103577,
0.18832945823669434,
0.0985913872718811,
-0.15205267071723938,
0.35325300693511963,
-0.00011400879884604365,
-0.0416502021253109,
0.3940756320953369,
0.03460169583559036,
-0.23944373428821564,
-0.14143164455890656,
-0.08066020905971527,
-0.21214227378368378,
0.03401584178209305,
-0.09882155805826187,
-0.10125742107629776,
-0.20924519002437592,
0.02451263554394245,
-0.05746455863118172,
0.6424339413642883,
-0.0480278842151165,
0.1541808396577835,
0.24125683307647705,
0.37731921672821045,
0.024768376722931862,
0.033497463911771774,
0.4373365640640259,
-0.2884111702442169,
0.16090023517608643,
0.2050306349992752,
-0.1443558633327484,
0.2336103320121765,
0.38156890869140625,
0.15117408335208893,
0.08776196837425232,
0.23758941888809204,
0.005337059032171965,
-0.02378111332654953,
-0.26423659920692444,
0.10729580372571945,
0.5169690251350403,
0.4756753146648407,
-0.3342869281768799,
-0.5118040442466736,
-0.4990098774433136,
0.23969437181949615,
-0.059574954211711884,
0.041758645325899124,
0.030937455594539642,
-0.122923344373703,
0.12775036692619324,
-0.20071789622306824,
-0.061254698783159256,
-0.23012550175189972,
-0.07848428189754486,
0.24054884910583496,
-0.2477218508720398,
0.015146139077842236,
0.06985914707183838,
0.06058880686759949,
-0.33866167068481445,
-0.24284380674362183,
0.011632807552814484,
0.01962839812040329,
0.06806793808937073,
-0.16157463192939758,
-0.24477626383304596,
0.15239070355892181,
0.05271461606025696,
0.3949376940727234,
-0.186155766248703,
0.2631877064704895,
0.18074634671211243,
0.049581848084926605,
0.014557909220457077,
0.1886306256055832,
-0.009823871776461601,
0.3457975387573242,
0.01977211982011795,
0.27749764919281006,
0.014455940574407578,
-0.09197479486465454,
0.04474765434861183,
0.031839024275541306,
-0.20804530382156372,
0.5749621987342834,
0.2685273587703705,
0.4403854012489319,
-0.15252839028835297,
-0.18511047959327698,
0.39001211524009705,
-0.2899025082588196,
-0.162080317735672,
-0.08088698238134384,
0.047110091894865036,
0.019359689205884933,
-0.21353939175605774,
-0.030795235186815262,
0.15984433889389038,
-0.034095801413059235,
-0.18806979060173035,
-0.08933199942111969,
-0.013662785291671753,
-0.03761482983827591,
0.0215750802308321,
0.07784456014633179,
-0.27232784032821655,
0.2737070620059967,
0.2145439237356186,
0.028384868055582047,
-0.106923907995224,
0.31046822667121887,
0.248635932803154,
-0.1450084149837494,
0.14880982041358948,
-0.10841161012649536,
0.12289474159479141,
0.0478762686252594,
-0.1272221803665161,
-0.02786378189921379,
-0.12886810302734375,
-0.0963556095957756,
-0.420033723115921,
-0.12758424878120422,
0.1734662652015686,
-0.1663905680179596,
0.07868865132331848,
-0.1723829209804535,
0.26105648279190063,
-0.12515726685523987,
0.03300483897328377,
-0.15880551934242249,
0.11329419910907745,
-0.07925267517566681,
-0.21298635005950928,
0.16845934092998505,
0.7631043195724487,
-0.11674144864082336,
-0.022572480142116547,
-0.15344661474227905,
0.0584457628428936,
-0.16547590494155884,
0.23604558408260345,
-0.09046405553817749,
0.45043277740478516,
-0.23478661477565765,
0.09276404976844788,
0.14454983174800873,
-0.25564098358154297,
-0.20665402710437775,
0.5067751407623291,
-0.08438354730606079,
0.11845595389604568,
0.16400232911109924,
0.009461021050810814,
0.19388464093208313,
-0.13526348769664764,
0.046964678913354874,
-0.2597343325614929,
-0.1102990061044693,
-0.059451960027217865,
-0.2706003189086914,
-0.33313673734664917,
-0.05554533004760742,
-0.1116742193698883,
-0.10371091961860657,
-0.18491250276565552,
0.07865753769874573,
0.031505294144153595,
0.35159119963645935,
-0.19831103086471558,
-0.2745712101459503,
0.06487792730331421,
0.5330643057823181,
-0.2444203644990921,
0.020468173548579216,
-0.13102799654006958,
-0.5045876502990723,
0.390569806098938,
-0.09665174037218094,
0.04332350194454193,
-0.17317892611026764,
-0.35824745893478394,
-0.22509628534317017,
0.09728283435106277,
-0.3384906053543091,
-0.02362804487347603,
0.1453905701637268,
-0.24165236949920654,
0.11644473671913147,
-0.03489311411976814,
-0.027859747409820557,
0.25804299116134644,
-0.01815754920244217,
0.16332405805587769,
-0.3586154282093048,
0.12350426614284515,
-0.19047854840755463,
-0.03141547739505768,
0.2594801187515259,
0.2194133698940277,
0.33164042234420776,
-0.2314748615026474,
-0.022001348435878754,
0.3627230226993561,
-0.02558930404484272,
0.356040894985199,
0.06790010631084442,
0.00997316837310791,
0.23223407566547394,
-0.009740099310874939,
-0.0033796336501836777,
0.2950482964515686,
-0.10986906290054321,
0.012873135507106781,
-0.3440985083580017,
0.3586435914039612,
0.09979243576526642,
-0.0705781951546669,
0.0030976086854934692,
-0.010806825011968613,
-0.029413597658276558,
0.011178631335496902,
-0.010789628140628338,
-0.2933812141418457,
0.22465011477470398,
-0.17674508690834045,
0.06068168953061104,
0.16625969111919403,
-0.5143985748291016,
0.2677711546421051,
0.07721778750419617,
-0.26068082451820374,
0.24982380867004395,
0.20367655158042908,
0.052856944501399994,
-0.12601712346076965,
0.1313246786594391,
0.3922930657863617,
0.0706721842288971,
0.19683654606342316,
-0.19368737936019897,
0.12690255045890808,
-0.32248684763908386,
-0.0013453923165798187,
0.16524246335029602,
-0.21768461167812347,
-0.1365203857421875,
0.2611721456050873,
-0.22278791666030884,
0.24273407459259033,
-0.44345197081565857,
-0.1850283443927765,
0.044003844261169434,
0.38071778416633606,
-0.37344881892204285,
-0.22442494332790375,
-0.2667136788368225,
-0.08905825763940811,
-0.22534723579883575,
0.21069230139255524,
-0.025129303336143494,
-0.37869513034820557,
0.2910236716270447,
0.2289491593837738,
-0.1613619476556778,
-0.023249736055731773,
0.24777576327323914,
0.11455857753753662,
-0.16412177681922913,
0.11666092276573181,
-0.1570553481578827,
-0.1830979287624359,
-0.17711186408996582,
0.08179971575737,
0.2051759958267212,
0.2521284818649292,
0.38126593828201294,
-0.44040215015411377,
-0.048391375690698624,
-0.6194145083427429,
-0.4481467306613922,
0.1397252380847931,
-0.055095382034778595,
0.36968761682510376,
0.46078014373779297,
0.29212021827697754,
-0.1134454756975174,
-0.39284953474998474,
0.26671987771987915,
-0.22532513737678528,
-0.22186949849128723,
0.0766325294971466,
-0.035437121987342834,
-0.01176901813596487,
-0.02611856907606125,
-0.4154033362865448,
-0.017938142642378807,
-0.11877286434173584,
0.39656496047973633,
-0.324301153421402,
0.10103799402713776,
0.15608066320419312,
0.1545962244272232,
0.009624418802559376,
-0.02000930719077587,
0.00968413706868887,
-0.24709291756153107,
-0.4344320595264435,
0.1121610477566719,
-0.19774603843688965,
-0.2670762836933136,
-0.13683860003948212,
-0.06780436635017395,
0.15854386985301971,
-0.26119667291641235,
-0.41860055923461914,
-0.4545400142669678,
-0.2922320067882538,
0.18669043481349945,
0.052537258714437485,
0.26697811484336853,
0.13496507704257965,
0.18461531400680542,
-0.13951565325260162,
-0.08449852466583252,
-0.3949669301509857,
0.057076871395111084,
0.07705440372228622,
0.2582995891571045,
-0.02182091400027275,
0.5268754363059998,
-0.21782399713993073,
0.6497437953948975,
0.48027998208999634,
-0.11750076711177826,
0.15264330804347992,
-0.06258414685726166,
0.3505629301071167,
0.03510459512472153,
-0.31518739461898804,
0.01558599341660738,
-0.009871423244476318,
0.01804046705365181,
0.027271904051303864,
0.15904220938682556,
0.25698283314704895,
0.2375752031803131,
-0.20605246722698212,
-0.48095715045928955,
-0.47660526633262634,
-0.19775165617465973,
-0.12108749151229858,
-0.012447729706764221,
0.03321046382188797,
0.06625718623399734,
-0.08668169379234314,
0.28539448976516724,
0.20923684537410736,
0.2489844411611557,
0.29185375571250916,
-0.07860022783279419,
-0.15586388111114502,
-0.23998333513736725,
-0.47359830141067505,
0.2559071183204651,
-0.010825563222169876,
0.18748462200164795,
-0.10085456073284149,
0.19199079275131226,
-0.037112101912498474,
0.04969644546508789,
0.5210387110710144,
-0.59511399269104,
-0.01743115484714508,
-0.21595709025859833,
-0.18521973490715027,
-0.2720498740673065,
-0.005685847252607346,
0.1327774077653885,
0.4346384108066559,
-0.035766515880823135,
0.36314210295677185,
-0.48009806871414185,
0.10286179929971695,
0.24392957985401154,
0.4829666316509247,
-0.20130541920661926,
-0.29352813959121704,
-0.11982977390289307,
-0.2508784532546997,
-0.6078977584838867,
0.12478502094745636,
0.13916774094104767,
-0.16745609045028687,
0.2042648196220398,
-0.1425955593585968,
-0.10481491684913635,
-0.04881071299314499,
0.2683244049549103,
0.39714953303337097,
0.3045043349266052,
0.06398703902959824,
0.477316677570343,
0.26191961765289307,
-0.15094806253910065,
0.2992345988750458,
0.4509216248989105,
-0.15444496273994446,
-0.02655218541622162,
-0.24849656224250793,
-0.33695122599601746,
-0.01573973149061203,
0.2609526813030243,
0.02287815883755684,
0.11048319190740585,
0.003774218261241913,
0.2073742151260376,
-0.054686617106199265,
-0.23026706278324127,
0.45624327659606934,
0.2411946952342987,
-0.288639098405838,
-0.23724128305912018,
0.23797893524169922,
0.1484619379043579,
-0.23794040083885193,
0.30850374698638916,
0.5339725613594055,
-0.07136818766593933,
0.2074280083179474,
0.06453320384025574,
0.749482274055481,
-0.2957180142402649,
-0.031359244138002396,
-0.1453198790550232,
-0.21849679946899414,
0.4686959981918335,
0.2279518097639084,
-0.23403750360012054,
-0.36829015612602234,
-0.10681310296058655,
0.07356235384941101,
0.11760364472866058,
0.12776893377304077,
0.13527460396289825,
-0.32675960659980774,
0.3167872130870819,
-0.006797082722187042,
0.07764948904514313,
-0.21055056154727936,
0.5087467432022095,
-0.3016377389431,
0.10969193279743195,
-0.27568554878234863,
0.09512639790773392,
0.2516944408416748,
0.16034691035747528,
-0.07959815114736557,
-0.2166462540626526,
0.32012853026390076,
-0.5135107040405273,
-0.6553857326507568,
-0.24298608303070068,
-0.22968457639217377,
0.0500141941010952,
0.1315835863351822,
-0.43228548765182495,
0.3287360668182373,
0.2188861221075058,
0.6372218132019043,
0.3832930624485016,
-0.27788686752319336,
-0.02861391380429268,
-0.035592757165431976,
0.04740677401423454,
-0.2938680052757263,
-0.25903961062431335,
0.09754984825849533,
-0.1335831582546234,
-0.47331511974334717,
-0.05335354059934616,
0.08321177214384079,
-0.09374339878559113,
-0.14159207046031952,
-0.22048820555210114,
-0.4525255560874939,
-0.1545286923646927,
-0.02028842642903328,
-0.11103615164756775,
-0.2546875774860382,
-0.3767034113407135,
0.10510316491127014,
0.3131922781467438,
-0.14289776980876923,
0.20900827646255493,
0.051961079239845276,
-0.17967617511749268,
-0.0736689567565918,
-0.03114508092403412,
-0.08580007404088974,
0.007329195737838745,
0.34184136986732483,
0.004637714475393295,
0.08340470492839813,
-0.3391684293746948,
0.28496506810188293,
0.5308830738067627,
-0.34744879603385925,
0.07260406017303467,
-0.0006103960331529379,
0.08664105832576752,
0.22097651660442352,
0.29571107029914856,
0.31520140171051025,
0.1592482626438141,
0.020438116043806076,
0.022509299218654633,
-0.41035550832748413,
0.1937912404537201,
0.04727093130350113,
0.42821523547172546,
-0.17787715792655945,
-0.034234628081321716,
0.08048593252897263,
0.10912696272134781,
-0.31075650453567505,
0.14577937126159668,
-0.07161889970302582,
-0.11423987150192261,
0.3143051862716675,
0.160964697599411,
0.002872954588383436,
-0.22949157655239105,
0.07978115230798721,
0.14426186680793762,
-0.13644520938396454,
-0.13654030859470367,
-0.15286016464233398,
0.13268102705478668,
-0.12194294482469559,
0.10897404700517654,
0.24097678065299988,
0.05863940715789795,
0.2788968086242676,
-0.09269653260707855,
0.302755206823349,
0.21397757530212402,
0.17227765917778015,
0.31388193368911743,
0.14134010672569275,
0.05562538281083107,
-0.24248038232326508,
-0.014166265726089478,
-0.16488023102283478,
0.2854183316230774,
0.13943630456924438,
-0.13741156458854675,
0.01076414342969656,
-0.08539868891239166,
0.11482293158769608,
0.07413537055253983,
-0.25678497552871704,
0.041319839656353,
0.18727704882621765,
0.055479031056165695,
-0.2493901252746582,
0.33759820461273193,
0.4208582639694214,
0.04163523018360138,
0.037946026772260666,
-0.03556245565414429,
0.0655508041381836,
0.1658635139465332,
-0.34945762157440186,
-0.36865749955177307,
0.06778009235858917,
-0.15814495086669922,
0.11561119556427002,
0.3949820101261139,
0.22123822569847107,
0.09355437755584717,
-0.07863526046276093,
-0.06460972130298615,
0.18407200276851654,
-0.14499817788600922,
0.3193168044090271,
0.39660608768463135,
-0.11442831158638,
-0.13184575736522675,
0.051067933440208435,
-0.17620185017585754,
0.18374298512935638,
-0.030536413192749023,
-0.40541014075279236,
0.2318808138370514,
-0.03754695504903793,
0.1830402910709381,
0.38642916083335876,
0.0726533830165863,
0.5110909938812256,
0.11708120256662369,
-0.18857493996620178,
0.08050776273012161,
0.3060392141342163,
0.34671780467033386,
-0.28764674067497253,
-0.14901231229305267,
-0.2783659100532532,
0.057087481021881104,
0.02593628317117691,
-0.1883874237537384,
0.1152154952287674,
-0.16029731929302216,
-0.13296638429164886,
-0.045923762023448944,
-0.04348894581198692,
-0.18299616873264313,
0.3415011465549469,
-0.08018597960472107,
0.0003016069531440735,
-0.47390568256378174,
-0.016281023621559143,
0.07891413569450378,
0.4616899788379669,
-0.18683084845542908,
-0.05814465880393982,
0.35155099630355835,
-0.443210631608963,
0.027258140966296196,
0.5776475667953491,
0.6824632287025452,
0.043901652097702026,
-0.054844822734594345,
0.31051650643348694,
-0.12459427118301392,
0.10139034688472748,
0.06830333918333054,
0.01771598309278488,
-0.33381396532058716,
-0.34431466460227966,
0.13249528408050537,
0.12683729827404022,
-0.08075490593910217,
0.033997900784015656,
0.13900305330753326,
-0.056274350732564926,
-0.18752428889274597,
0.18738605082035065,
-0.20667685568332672,
-0.0460057407617569,
-0.0680396780371666,
0.21220695972442627,
-0.20060846209526062,
-0.31114697456359863,
0.3830724060535431,
0.13570821285247803,
-0.0537768118083477,
-0.3132944405078888,
0.106082484126091,
-0.206285759806633,
0.5269055962562561,
0.5916087627410889,
0.03189530223608017,
-0.3162496089935303,
0.1850377768278122,
-1.0878098011016846,
-0.044760845601558685,
-0.4137497544288635,
-0.08373488485813141,
0.3745179772377014,
0.1368025690317154,
-0.0798226073384285,
0.21250885725021362,
0.502361536026001,
0.08716385066509247,
-0.2542067766189575,
0.16440001130104065,
-0.45710089802742004,
0.07405584305524826,
0.20202387869358063,
-0.07500223070383072,
0.10471683740615845,
-0.19939088821411133,
0.3298085033893585,
-0.09482120722532272,
-0.018599070608615875,
-0.22003361582756042,
0.226939857006073,
-0.08006903529167175,
-0.2238190472126007,
0.1655360758304596,
0.20833733677864075,
0.16958566009998322,
-0.060040026903152466,
-0.3792591691017151,
-0.07565672695636749,
-0.08479798585176468,
-0.11685057729482651,
0.37918803095817566,
0.29021644592285156,
0.32731324434280396,
0.12797601521015167,
-0.2833389341831207,
-0.13031147420406342,
-0.015783220529556274,
0.24448858201503754,
-0.03168344125151634,
-0.3348778188228607,
0.3980368375778198,
0.024265922605991364,
-0.06361307948827744,
-0.1062249168753624,
0.2564127743244171,
-0.08115756511688232,
0.17608706653118134,
-0.05653692036867142,
-0.5806974172592163,
0.3726973533630371,
-0.19343072175979614,
0.07690991461277008,
-0.42067641019821167,
0.19992324709892273,
0.06064257025718689,
-0.03825584799051285,
-0.5982564091682434,
0.157438725233078,
0.2539461553096771,
0.029889827594161034,
-0.11539293825626373,
0.09390430152416229,
0.004988354630768299,
-0.06055256724357605,
0.10105226933956146,
0.2858659029006958,
0.0902281254529953,
-0.24120639264583588,
0.5137776732444763,
-0.19452013075351715
] |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | @lhoestq , I have opened a draft PR for this Issue.
I wanted to check with you if there is a way to get `<path/to/the/dataset/script>` currently or do I need to add extra code to find that.
If I need to find the script , I can assume that the generator function will always be in `datasets/{dataset_name}/{dataset_name}.py`. | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
``` | 57 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
```
@lhoestq , I have opened a draft PR for this Issue.
I wanted to check with you if there is a way to get `<path/to/the/dataset/script>` currently or do I need to add extra code to find that.
If I need to find the script , I can assume that the generator function will always be in `datasets/{dataset_name}/{dataset_name}.py`. | [
-0.0673377588391304,
-0.17039503157138824,
0.05833863094449043,
0.2929465174674988,
0.2067863941192627,
0.12031847983598709,
0.20834530889987946,
0.24666540324687958,
-0.06788782775402069,
0.17661136388778687,
0.40773388743400574,
0.23443588614463806,
-0.1626642942428589,
0.328441321849823,
0.30737343430519104,
-0.11442399024963379,
-0.10409320145845413,
0.0763593539595604,
-0.07905440032482147,
0.1720234602689743,
-0.2064356952905655,
0.2761441171169281,
-0.10237576067447662,
0.3405844569206238,
-0.2575324475765228,
0.008697986602783203,
-0.17971496284008026,
0.24448636174201965,
0.060074664652347565,
-0.649152934551239,
0.20571394264698029,
0.10474906861782074,
-0.11811850219964981,
0.37717464566230774,
-0.0001184193606604822,
-0.01483764499425888,
0.41384321451187134,
0.025535037741065025,
-0.2807806432247162,
-0.20403943955898285,
-0.0866977870464325,
-0.19341042637825012,
-0.018137477338314056,
-0.056846875697374344,
-0.10554628074169159,
-0.21826250851154327,
0.14801225066184998,
-0.22107882797718048,
0.5544703602790833,
-0.0413399301469326,
0.11900362372398376,
0.2241431027650833,
0.35318413376808167,
0.05398609861731529,
-0.06700245290994644,
0.5212588906288147,
-0.17782168090343475,
0.19345958530902863,
0.20777899026870728,
-0.2837873697280884,
0.21922901272773743,
0.3215005099773407,
0.14071539044380188,
0.028154190629720688,
0.34356507658958435,
0.05399935692548752,
-0.013555675745010376,
-0.2949925661087036,
0.1139494776725769,
0.45653343200683594,
0.4861561357975006,
-0.4961577355861664,
-0.5298295617103577,
-0.5033305287361145,
0.23865988850593567,
0.02097434736788273,
0.10990947484970093,
-0.00877620093524456,
-0.3016508221626282,
0.10294350981712341,
-0.17821845412254333,
-0.19146089255809784,
-0.21528679132461548,
-0.1328059434890747,
0.2765412926673889,
-0.27548718452453613,
0.08187849074602127,
0.06734197586774826,
0.10755541175603867,
-0.1640520989894867,
-0.0846392959356308,
-0.010797258466482162,
0.06066570058465004,
0.12796556949615479,
-0.18654140830039978,
-0.17889273166656494,
0.234186053276062,
0.06483772397041321,
0.4159223139286041,
-0.0638614222407341,
0.31824609637260437,
0.09457933902740479,
-0.02408790960907936,
0.0031145550310611725,
0.14818787574768066,
-0.04574054479598999,
0.32667914032936096,
0.003952989354729652,
0.26295363903045654,
0.08401890844106674,
-0.02425808273255825,
-0.03285457193851471,
-0.02952861413359642,
-0.3021020293235779,
0.5803746581077576,
0.390816330909729,
0.4650244116783142,
-0.12390579283237457,
-0.08620532602071762,
0.21270082890987396,
-0.14465051889419556,
-0.24167487025260925,
0.006517733447253704,
0.05244270712137222,
0.10419062525033951,
-0.02018110454082489,
-0.039751965552568436,
0.09543199837207794,
-0.022711114957928658,
-0.20122148096561432,
-0.07138083875179291,
0.057143453508615494,
-0.056262388825416565,
0.060470618307590485,
0.029663685709238052,
-0.25001490116119385,
0.3024025559425354,
0.15670494735240936,
-0.018029920756816864,
-0.1453866958618164,
0.13781553506851196,
0.29250863194465637,
-0.1685042381286621,
0.12519949674606323,
-0.09516024589538574,
0.11700264364480972,
-0.02980588749051094,
-0.07321157306432724,
-0.021685518324375153,
-0.1525254249572754,
-0.060895271599292755,
-0.49011868238449097,
-0.11762453615665436,
0.11402944475412369,
-0.11244174093008041,
0.13182497024536133,
-0.27631181478500366,
0.11315375566482544,
-0.06453675776720047,
0.02124139294028282,
-0.17410898208618164,
0.07497746497392654,
-0.1002049371600151,
-0.2746722102165222,
0.27686065435409546,
0.8700512051582336,
-0.1898079663515091,
0.005484938621520996,
-0.19478556513786316,
0.06976353377103806,
-0.08105858415365219,
0.18415860831737518,
-0.15861091017723083,
0.567103385925293,
-0.33741259574890137,
-0.047877632081508636,
0.23737843334674835,
-0.31826072931289673,
-0.18664398789405823,
0.4556204080581665,
-0.1997576653957367,
0.1432618349790573,
0.33737465739250183,
0.006678846664726734,
0.07003626972436905,
-0.15729843080043793,
0.01782037317752838,
-0.27432864904403687,
-0.06623665243387222,
-0.12439898401498795,
-0.1692729890346527,
-0.2937275469303131,
-0.1012813150882721,
-0.1711222231388092,
-0.07008332014083862,
-0.15712898969650269,
0.06279420852661133,
0.015173674561083317,
0.44351232051849365,
-0.20102018117904663,
-0.2763417959213257,
0.10006403177976608,
0.4690472185611725,
-0.1354423314332962,
0.05680399015545845,
-0.18277809023857117,
-0.4936477541923523,
0.3798399865627289,
-0.1579912006855011,
-0.06430419534444809,
-0.28582799434661865,
-0.3052358031272888,
-0.20468628406524658,
0.1731790453195572,
-0.35313278436660767,
-0.0031191445887088776,
0.06376519054174423,
-0.06279529631137848,
0.15366479754447937,
-0.04432167857885361,
-0.0974392369389534,
0.26027074456214905,
0.005055813118815422,
0.20789958536624908,
-0.44589343667030334,
0.19535909593105316,
-0.12099256366491318,
0.03957138583064079,
0.28106188774108887,
0.20929929614067078,
0.30460408329963684,
-0.2090400606393814,
-0.014890570193529129,
0.3581688702106476,
-0.019294848665595055,
0.42241793870925903,
0.026292406022548676,
-0.012370899319648743,
0.1863267719745636,
-0.052496861666440964,
-0.005163488909602165,
0.2758603096008301,
-0.08174169808626175,
0.13745278120040894,
-0.23259320855140686,
0.21115602552890778,
0.05875729024410248,
0.021628059446811676,
0.012193195521831512,
0.01725819893181324,
-0.05428719520568848,
-0.003552839159965515,
0.03133682906627655,
-0.24559606611728668,
0.27134546637535095,
-0.16584284603595734,
0.1493794322013855,
0.11964995414018631,
-0.4637731909751892,
0.35145509243011475,
0.20458215475082397,
-0.3242737650871277,
0.2247163951396942,
0.17033515870571136,
0.03144688159227371,
-0.1463896930217743,
0.045815519988536835,
0.4783051311969757,
0.054181963205337524,
0.1628141552209854,
-0.2477114200592041,
0.15705831348896027,
-0.27632880210876465,
-0.029599472880363464,
0.2169119417667389,
-0.2095382660627365,
-0.09934940189123154,
0.215641051530838,
-0.25855135917663574,
0.14812742173671722,
-0.38158413767814636,
-0.22000308334827423,
-0.0679594948887825,
0.3850659430027008,
-0.39235231280326843,
-0.19093537330627441,
-0.3652520477771759,
-0.09354911744594574,
-0.3771646320819855,
0.34890857338905334,
0.05952755734324455,
-0.3821636736392975,
0.17852766811847687,
0.13759949803352356,
-0.10297264158725739,
0.0017295237630605698,
0.21322642266750336,
0.04489956796169281,
-0.19632336497306824,
0.12285540252923965,
-0.14617983996868134,
-0.19591261446475983,
-0.11757912486791611,
-0.003274768590927124,
0.22610162198543549,
0.16152280569076538,
0.3471142053604126,
-0.4517354369163513,
-0.0430951789021492,
-0.6267073154449463,
-0.3999362289905548,
0.1632116734981537,
0.018093673512339592,
0.35350584983825684,
0.5075546503067017,
0.3323259949684143,
0.1091705858707428,
-0.31296637654304504,
0.19106750190258026,
-0.22609396278858185,
-0.19608443975448608,
0.09753521531820297,
0.011835546232759953,
-0.009607719257473946,
-0.02246748097240925,
-0.4262077510356903,
0.0005169231444597244,
-0.05959741026163101,
0.3371986150741577,
-0.32275041937828064,
0.16510257124900818,
0.04546584561467171,
0.14871251583099365,
-0.046279069036245346,
-0.15464377403259277,
0.08707557618618011,
-0.14196300506591797,
-0.4977158010005951,
0.1094546765089035,
-0.10027056932449341,
-0.1929691731929779,
-0.18352892994880676,
-0.10419996827840805,
0.23637519776821136,
-0.3106722831726074,
-0.42208331823349,
-0.44982320070266724,
-0.23646225035190582,
0.20864135026931763,
0.03739403933286667,
0.268982857465744,
0.17853888869285583,
0.3117826282978058,
-0.0989484190940857,
-0.02603156678378582,
-0.34000644087791443,
0.014891520142555237,
-0.05082258582115173,
0.26376184821128845,
0.20381921529769897,
0.6253445744514465,
-0.22621771693229675,
0.6016175746917725,
0.39888185262680054,
-0.10998514294624329,
0.02767176553606987,
-0.18953439593315125,
0.43546393513679504,
0.06353618949651718,
-0.3717513382434845,
-0.026764681562781334,
0.05130089074373245,
0.06968892365694046,
-0.08488814532756805,
0.07653437554836273,
0.3453044891357422,
0.23275688290596008,
-0.2435728907585144,
-0.4907500445842743,
-0.39561209082603455,
-0.2296014279127121,
-0.21595656871795654,
-0.044161684811115265,
0.004789412021636963,
0.16832321882247925,
-0.1540713608264923,
0.27322790026664734,
0.27142804861068726,
0.265281617641449,
0.44684839248657227,
-0.09545262157917023,
-0.15690810978412628,
-0.2668870985507965,
-0.5541839003562927,
0.20810669660568237,
-0.050401125103235245,
0.18821969628334045,
-0.102801114320755,
0.27322790026664734,
-0.03772415220737457,
-0.04346165433526039,
0.5011392831802368,
-0.5335128903388977,
0.06434217840433121,
-0.2939179241657257,
-0.16931286454200745,
-0.25924861431121826,
0.09729784727096558,
0.2971801459789276,
0.48032718896865845,
-0.09543435275554657,
0.20866729319095612,
-0.43198710680007935,
0.09833034127950668,
0.29454341530799866,
0.5299171209335327,
-0.2691512703895569,
-0.3075098395347595,
-0.08752472698688507,
-0.3250598907470703,
-0.5415468215942383,
0.04171444848179817,
0.06871213018894196,
-0.08000403642654419,
0.21635547280311584,
-0.08664626628160477,
0.020539065822958946,
-0.1359817087650299,
0.21502786874771118,
0.3235269784927368,
0.28628748655319214,
-0.06447179615497589,
0.4015795886516571,
0.33417317271232605,
-0.2303285002708435,
0.3297903835773468,
0.4093318581581116,
-0.15880107879638672,
-0.17256489396095276,
-0.34132108092308044,
-0.24866579473018646,
0.10113374888896942,
0.27918845415115356,
-0.15385648608207703,
0.11854051053524017,
0.12400072067975998,
0.11112631112337112,
-0.16781920194625854,
-0.31231898069381714,
0.48020029067993164,
0.24634382128715515,
-0.28540584444999695,
-0.4184991419315338,
0.14660000801086426,
0.14397813379764557,
-0.2015138417482376,
0.34028685092926025,
0.3779796361923218,
-0.1644263118505478,
0.15416061878204346,
-0.030378766357898712,
0.7691218256950378,
-0.28488731384277344,
0.008343145251274109,
-0.13529732823371887,
-0.26586008071899414,
0.4329327642917633,
0.15931501984596252,
-0.18545334041118622,
-0.44372791051864624,
-0.03248171508312225,
0.018468188121914864,
0.060855064541101456,
0.08190511167049408,
0.17659206688404083,
-0.16167087852954865,
0.44726330041885376,
-0.04540182650089264,
0.16668833792209625,
-0.09754304587841034,
0.5145916938781738,
-0.23033295571804047,
0.1039564311504364,
-0.21935796737670898,
0.013032753020524979,
0.1385372281074524,
0.21587224304676056,
-0.013520639389753342,
-0.20824061334133148,
0.3621542155742645,
-0.5010827779769897,
-0.7847052812576294,
-0.17696982622146606,
-0.3000161349773407,
0.012179756537079811,
0.14265133440494537,
-0.45580965280532837,
0.32409191131591797,
0.3084535300731659,
0.6567310690879822,
0.47748902440071106,
-0.21088363230228424,
0.010985339060425758,
0.02399555966258049,
0.006588533986359835,
-0.2260781079530716,
-0.17554818093776703,
-0.022314975038170815,
-0.06116187572479248,
-0.48841047286987305,
0.012464150786399841,
0.08731860667467117,
-0.19470025599002838,
-0.1899838000535965,
-0.3045452833175659,
-0.29622650146484375,
-0.05684502422809601,
-0.017027193680405617,
-0.14276158809661865,
-0.1864374577999115,
-0.4065767824649811,
0.07726970314979553,
0.34451788663864136,
-0.15167398750782013,
0.15486393868923187,
-0.10930012166500092,
-0.13627780973911285,
-0.049498964101076126,
-0.06183270364999771,
-0.04958169162273407,
0.007205955684185028,
0.4131283462047577,
0.00804966315627098,
0.06450190395116806,
-0.26628321409225464,
0.2417253851890564,
0.4845789074897766,
-0.4514380991458893,
0.06016051769256592,
0.1013232171535492,
0.1730666607618332,
0.2189311385154724,
0.08831800520420074,
0.1807471066713333,
0.12462087720632553,
-0.10109786689281464,
-0.057421375066041946,
-0.4241504669189453,
0.15708956122398376,
0.056680336594581604,
0.4391293227672577,
-0.03705602511763573,
0.0005942462012171745,
0.032390229403972626,
0.07855931669473648,
-0.26904958486557007,
0.05635771155357361,
0.08745276182889938,
-0.19975332915782928,
0.4249359965324402,
0.1849518120288849,
-0.014307339675724506,
-0.17650757730007172,
0.08295214921236038,
0.09094558656215668,
-0.018977642059326172,
-0.056474730372428894,
-0.10092943906784058,
0.15393145382404327,
-0.24591723084449768,
0.14244826138019562,
0.21724684536457062,
0.002599857747554779,
0.2665245831012726,
-0.08983541280031204,
0.2820396423339844,
0.28873997926712036,
0.26062315702438354,
0.2633626163005829,
0.16573753952980042,
-0.09737526625394821,
-0.2914960980415344,
0.14177462458610535,
-0.2777625620365143,
0.41844654083251953,
0.17348827421665192,
0.000248931348323822,
-0.033396657556295395,
-0.15189731121063232,
-0.028130842372775078,
0.08768586814403534,
-0.282068133354187,
0.14616329967975616,
0.2533348500728607,
0.023894771933555603,
-0.2442314475774765,
0.2736856937408447,
0.3654532730579376,
0.02594052255153656,
0.02337353676557541,
-0.0320386178791523,
0.01212353352457285,
0.06715260446071625,
-0.34528684616088867,
-0.38858020305633545,
0.006376400589942932,
-0.1986730545759201,
0.03394106402993202,
0.4786143898963928,
0.16383971273899078,
0.01080968976020813,
0.02044091373682022,
-0.06979019939899445,
0.2421513944864273,
-0.18125739693641663,
0.29576990008354187,
0.4093741178512573,
0.03820168599486351,
-0.1648712307214737,
0.01346510648727417,
-0.14934439957141876,
0.19939078390598297,
0.05146181583404541,
-0.454917311668396,
0.11869953572750092,
-0.018304437398910522,
0.13072723150253296,
0.3687664270401001,
0.021775852888822556,
0.40141561627388,
0.14618434011936188,
-0.2668285667896271,
0.07375524938106537,
0.18934199213981628,
0.3717595338821411,
-0.23024329543113708,
0.021924102678894997,
-0.21272516250610352,
0.21573063731193542,
0.016993211582303047,
-0.2486940175294876,
0.012129846960306168,
-0.11037985980510712,
-0.08426118642091751,
0.002606436610221863,
0.0023135431110858917,
-0.15542073547840118,
0.2741069197654724,
-0.12375161051750183,
-0.07647576928138733,
-0.284036785364151,
0.11265064775943756,
0.038020193576812744,
0.36705631017684937,
-0.15120507776737213,
0.032581839710474014,
0.3701969385147095,
-0.3613038659095764,
0.07296018302440643,
0.5454449653625488,
0.7429302930831909,
0.07904619723558426,
0.004384269937872887,
0.1818091720342636,
-0.08544087409973145,
0.12373045086860657,
0.0715222880244255,
0.028787992894649506,
-0.43245038390159607,
-0.27548232674598694,
0.13569295406341553,
0.10319428890943527,
0.005304568447172642,
0.02717801183462143,
0.24919486045837402,
-0.04744671657681465,
-0.120199054479599,
0.32430019974708557,
-0.10671396553516388,
-0.0797993391752243,
-0.12742598354816437,
0.3256652057170868,
-0.2549301087856293,
-0.42731013894081116,
0.4318501353263855,
0.2657088041305542,
-0.18294325470924377,
-0.3620360791683197,
0.10199959576129913,
-0.17612694203853607,
0.4362850785255432,
0.6165394186973572,
0.03621349111199379,
-0.3572929799556732,
0.15012744069099426,
-0.9946228861808777,
-0.08531863242387772,
-0.37864166498184204,
-0.21381987631320953,
0.2712956964969635,
0.03761381655931473,
-0.11293069273233414,
0.0876297652721405,
0.6428497433662415,
0.10836625099182129,
-0.2840540409088135,
0.21567268669605255,
-0.3437965512275696,
0.03607204183936119,
0.21786652505397797,
-0.012286791577935219,
0.0375717431306839,
-0.25122275948524475,
0.3237321674823761,
-0.10444160550832748,
-0.06176277622580528,
-0.16865286231040955,
0.328458696603775,
-0.04046214371919632,
-0.31468427181243896,
0.14248940348625183,
0.11230061948299408,
0.09037106484174728,
-0.06151871383190155,
-0.36330461502075195,
-0.10048827528953552,
-0.07976093143224716,
-0.10260166972875595,
0.47953876852989197,
0.2436237931251526,
0.3027586340904236,
0.05174817144870758,
-0.32481589913368225,
-0.32758432626724243,
-0.007388432510197163,
0.2305021733045578,
0.005143061745911837,
-0.21893858909606934,
0.37406614422798157,
-0.021739143878221512,
-0.053129907697439194,
0.05685659870505333,
0.10959415137767792,
-0.1276828795671463,
0.20777495205402374,
-0.054738834500312805,
-0.5281249284744263,
0.3863120973110199,
-0.1636173129081726,
0.0606013648211956,
-0.3646872639656067,
0.266584575176239,
-0.06142950803041458,
0.031175991520285606,
-0.5583775043487549,
0.17937538027763367,
0.3005320727825165,
0.12209875136613846,
-0.023926157504320145,
0.09828841686248779,
-0.12102298438549042,
0.06840696930885315,
0.0945798009634018,
0.2276124805212021,
0.06301315128803253,
-0.23326466977596283,
0.4352096915245056,
-0.16543781757354736
] |
https://github.com/huggingface/datasets/issues/2556 | Better DuplicateKeysError error to help the user debug the issue | Thanks !
> I wanted to check with you if there is a way to get <path/to/the/dataset/script> currently or do I need to add extra code to find that.
You don't have access to this info inside the ArrowWriter unfortunately. This info is available in builder.py in the DatasetBuilder code that uses the ArrowWriter though, maybe a try-catch there can do the job | As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
``` | 63 | Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys.
The current one is
```python
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
and we could have something that guides the user to debugging the issue:
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
```
Thanks !
> I wanted to check with you if there is a way to get <path/to/the/dataset/script> currently or do I need to add extra code to find that.
You don't have access to this info inside the ArrowWriter unfortunately. This info is available in builder.py in the DatasetBuilder code that uses the ArrowWriter though, maybe a try-catch there can do the job | [
-0.11280734837055206,
-0.10157608985900879,
0.06124358996748924,
0.34673500061035156,
0.1354447901248932,
0.13531023263931274,
0.22799929976463318,
0.2160508930683136,
-0.11058896780014038,
0.11117379367351532,
0.39882007241249084,
0.3010410964488983,
-0.13962486386299133,
0.21024593710899353,
0.17617356777191162,
-0.10232509672641754,
-0.16842490434646606,
0.1330331712961197,
-0.06312158703804016,
0.10724474489688873,
-0.09087801724672318,
0.28848758339881897,
-0.1154613047838211,
0.4242445230484009,
-0.3049863278865814,
-0.03741178661584854,
-0.09272103011608124,
0.12611502408981323,
-0.06825032830238342,
-0.681414783000946,
0.23153923451900482,
0.08342493325471878,
-0.10098055005073547,
0.3139718770980835,
-0.00012083093315595761,
0.09675571322441101,
0.48987072706222534,
0.08627748489379883,
-0.3829699754714966,
-0.1270148605108261,
-0.027746496722102165,
-0.132948637008667,
0.23640280961990356,
-0.061310261487960815,
-0.03876057639718056,
-0.30707526206970215,
0.10716056823730469,
-0.19931839406490326,
0.5944371223449707,
0.030032698065042496,
0.12894298136234283,
0.2891739308834076,
0.3845473527908325,
0.1390085071325302,
0.038980282843112946,
0.5254180431365967,
-0.25920236110687256,
0.1305713653564453,
0.144452765583992,
-0.16821536421775818,
0.023058973252773285,
0.4150334894657135,
0.1838715374469757,
0.1108216643333435,
0.35844263434410095,
0.10855592042207718,
0.0016919448971748352,
-0.1508176475763321,
0.09206574410200119,
0.49053895473480225,
0.5441994667053223,
-0.5055908560752869,
-0.4906708896160126,
-0.564927875995636,
0.201888769865036,
0.05819867551326752,
0.16772764921188354,
-0.009805802255868912,
-0.3170948922634125,
0.010837232694029808,
-0.0866740345954895,
-0.22062960267066956,
-0.2712175250053406,
-0.18296517431735992,
0.27632150053977966,
-0.13652139902114868,
0.017554353922605515,
0.1501719057559967,
0.08627329021692276,
-0.17484968900680542,
0.11108442395925522,
-0.1255304217338562,
-0.0968237966299057,
0.1584271341562271,
-0.16513827443122864,
-0.1495131254196167,
0.11127780377864838,
0.0360361784696579,
0.2774181663990021,
-0.0648183822631836,
0.5295913219451904,
0.10839114338159561,
0.004012477584183216,
-0.05415951460599899,
0.23118267953395844,
-0.010921718552708626,
0.3428865373134613,
0.08093463629484177,
0.21846862137317657,
0.08465468883514404,
-0.07818707078695297,
-0.06988449394702911,
0.0015351297333836555,
-0.36236852407455444,
0.5947301983833313,
0.27356281876564026,
0.49040693044662476,
-0.1804804652929306,
-0.13798373937606812,
0.20146657526493073,
-0.12919306755065918,
-0.2829417586326599,
0.04692685231566429,
0.06844425201416016,
0.08871221542358398,
-0.06382754445075989,
0.019178077578544617,
0.07007317245006561,
-0.05940517783164978,
-0.1207483783364296,
-0.03477827459573746,
-0.034752268344163895,
-0.07736850529909134,
-0.02568395994603634,
0.083747997879982,
-0.2423992156982422,
0.23884595930576324,
0.1630491316318512,
-0.03342915326356888,
-0.183073952794075,
0.20731225609779358,
0.27364563941955566,
-0.09999293833971024,
0.07615721225738525,
-0.15845069289207458,
0.17617599666118622,
-0.01735857129096985,
-0.13949894905090332,
-0.0515054352581501,
-0.09505730122327805,
-0.16396760940551758,
-0.4468998908996582,
-0.13676103949546814,
0.10651040822267532,
-0.08528011292219162,
0.03976444900035858,
-0.3209417462348938,
0.09523500502109528,
-0.04735507816076279,
0.0491921491920948,
-0.042808897793293,
0.03450195863842964,
-0.025572340935468674,
-0.2373008131980896,
0.1955980509519577,
0.7518315315246582,
-0.2776610553264618,
-0.0793696716427803,
-0.2981160581111908,
-0.09361109137535095,
-0.17588353157043457,
0.15124449133872986,
-0.22665494680404663,
0.5857952833175659,
-0.3016609847545624,
0.03539186716079712,
0.40786388516426086,
-0.2630220353603363,
-0.2152615189552307,
0.40434369444847107,
-0.17142897844314575,
0.06441885232925415,
0.20385688543319702,
0.008694352582097054,
0.07247497886419296,
-0.054378584027290344,
-0.006505407392978668,
-0.24159537255764008,
-0.047843143343925476,
-0.09675632417201996,
-0.1328880339860916,
-0.33393287658691406,
-0.19650861620903015,
-0.08836542069911957,
-0.1214979737997055,
-0.3477332890033722,
0.06057530641555786,
-0.12681861221790314,
0.47699257731437683,
-0.23313769698143005,
-0.1404174268245697,
0.1622726023197174,
0.3772909939289093,
-0.1545053869485855,
0.11246035993099213,
-0.15083596110343933,
-0.5554104447364807,
0.3645842671394348,
-0.17720888555049896,
-0.19112959504127502,
-0.301585853099823,
-0.2777409553527832,
-0.1635141670703888,
0.27841973304748535,
-0.4530835449695587,
0.036798086017370224,
0.07685723900794983,
-0.13496701419353485,
0.055910754948854446,
-0.07228897511959076,
-0.09340256452560425,
0.18123693764209747,
-0.05073557794094086,
0.3011106550693512,
-0.3577514886856079,
0.15508785843849182,
-0.042073845863342285,
-0.016453664749860764,
0.20758271217346191,
0.21818774938583374,
0.21116235852241516,
-0.11059319227933884,
-0.0851123034954071,
0.33513909578323364,
-0.062420863658189774,
0.44205182790756226,
0.002260640263557434,
-0.06389303505420685,
0.12068655341863632,
-0.18848703801631927,
0.04761120304465294,
0.32881516218185425,
-0.02951332926750183,
0.07286912947893143,
-0.2614022195339203,
0.33305951952934265,
0.029700487852096558,
0.15250104665756226,
0.009641937911510468,
0.05963132530450821,
-0.15907526016235352,
-0.009192083030939102,
0.023719700053334236,
-0.27922508120536804,
0.2533375918865204,
-0.15256749093532562,
0.19410577416419983,
0.1369059979915619,
-0.3389233350753784,
0.2700709104537964,
0.19466020166873932,
-0.18462620675563812,
0.1839170753955841,
0.21278437972068787,
-0.15167486667633057,
-0.008881255984306335,
0.134405255317688,
0.49572238326072693,
0.016072869300842285,
0.16770628094673157,
-0.22875088453292847,
0.15987707674503326,
-0.26698383688926697,
-0.014470767229795456,
0.2804763615131378,
-0.1510411947965622,
0.02581658586859703,
0.21194064617156982,
-0.20821532607078552,
0.049911510199308395,
-0.47416365146636963,
-0.19284048676490784,
-0.10711756348609924,
0.2832128703594208,
-0.3711089789867401,
-0.1919204741716385,
-0.2915532886981964,
-0.004567272961139679,
-0.4494573175907135,
0.20210395753383636,
0.009918706491589546,
-0.37619978189468384,
0.16503432393074036,
0.0495106503367424,
-0.19919374585151672,
-0.10692767053842545,
0.01770675554871559,
0.04034547507762909,
-0.1837019920349121,
0.05172399431467056,
-0.10747985541820526,
-0.25884056091308594,
-0.1334724724292755,
0.017477747052907944,
0.24401511251926422,
0.2221830189228058,
0.27056074142456055,
-0.2651701867580414,
0.05418642610311508,
-0.6412249207496643,
-0.34447839856147766,
0.16375264525413513,
0.020705929026007652,
0.2013753354549408,
0.46329572796821594,
0.18083444237709045,
0.10427618026733398,
-0.34609267115592957,
0.1629467010498047,
-0.13736169040203094,
-0.22775855660438538,
0.1378883719444275,
-0.02791864052414894,
-0.002324400469660759,
0.04086886718869209,
-0.36413145065307617,
0.029418187215924263,
-0.0775044858455658,
0.4201285243034363,
-0.1839509755373001,
0.2161998599767685,
0.06560877710580826,
0.1755647361278534,
0.09099165350198746,
-0.25035178661346436,
0.10461077094078064,
-0.03353770449757576,
-0.2959860563278198,
0.11206530779600143,
-0.09812351316213608,
-0.148344486951828,
-0.116248220205307,
-0.10774160921573639,
0.17414209246635437,
-0.3242179751396179,
-0.47057420015335083,
-0.2107497900724411,
-0.3807121217250824,
0.18940071761608124,
-0.02831670641899109,
0.31725478172302246,
0.2324662208557129,
0.3972174823284149,
-0.09017222374677658,
-0.07931157946586609,
-0.31327882409095764,
0.0849994570016861,
-0.08688396215438843,
0.23162266612052917,
0.09633838385343552,
0.5566518902778625,
-0.29494258761405945,
0.6740782260894775,
0.4220922291278839,
-0.09041143953800201,
0.08937288820743561,
-0.16433194279670715,
0.3319660425186157,
0.03998946398496628,
-0.24634338915348053,
-0.04327937588095665,
-0.059482187032699585,
0.11207571625709534,
-0.07225389778614044,
0.10841844230890274,
0.283994197845459,
0.2814759910106659,
-0.20541594922542572,
-0.39776375889778137,
-0.476796954870224,
-0.09355946630239487,
-0.27739447355270386,
-0.10464657098054886,
-0.03581580892205238,
0.09665434807538986,
-0.13936081528663635,
0.23024576902389526,
0.31539908051490784,
0.12571799755096436,
0.26919934153556824,
-0.18390490114688873,
-0.06126648187637329,
-0.19884084165096283,
-0.4758991003036499,
0.24111893773078918,
-0.09665866941213608,
0.08064012974500656,
-0.01763647049665451,
0.15561145544052124,
0.05129200965166092,
-0.0951249748468399,
0.35281139612197876,
-0.4323772192001343,
0.001784004271030426,
-0.23984643816947937,
-0.04438234120607376,
-0.4536595642566681,
0.06085960194468498,
0.154750794172287,
0.5778856873512268,
-0.25694867968559265,
0.19108816981315613,
-0.39378342032432556,
0.018846632912755013,
0.29748234152793884,
0.49495425820350647,
-0.2456223964691162,
-0.23250290751457214,
-0.12138336896896362,
-0.20466026663780212,
-0.48206204175949097,
0.1476415991783142,
0.05399590730667114,
-0.0664442628622055,
0.2345934957265854,
-0.05690038949251175,
-0.12591123580932617,
-0.13004624843597412,
0.12604349851608276,
0.2771012485027313,
0.41115236282348633,
-0.17217515408992767,
0.4006862938404083,
0.36797386407852173,
-0.11841350793838501,
0.29023420810699463,
0.6189463138580322,
-0.09001307189464569,
-0.134657084941864,
-0.31363457441329956,
-0.304294228553772,
0.18242862820625305,
0.32811078429222107,
-0.12560203671455383,
0.27082812786102295,
0.17133276164531708,
0.12144991755485535,
-0.13877536356449127,
-0.2881857752799988,
0.3720458745956421,
0.2948671877384186,
-0.24480615556240082,
-0.2149999439716339,
0.2932778596878052,
0.12805365025997162,
-0.24389135837554932,
0.5203737020492554,
0.5819288492202759,
-0.2357756644487381,
0.2535398602485657,
0.06355145573616028,
0.7657674551010132,
-0.14348644018173218,
0.10046960413455963,
-0.13623633980751038,
-0.4509832262992859,
0.2503727674484253,
0.24011407792568207,
-0.2548014521598816,
-0.46498435735702515,
0.04532090201973915,
0.03754161298274994,
0.0408952422440052,
0.06570953130722046,
0.1270851194858551,
-0.18029241263866425,
0.27454233169555664,
-0.015363171696662903,
0.17217816412448883,
-0.17203640937805176,
0.47993701696395874,
-0.3501277565956116,
0.0006904881447553635,
-0.1464139074087143,
0.004057630896568298,
0.16216182708740234,
0.13823504745960236,
-0.0025114770978689194,
-0.20090648531913757,
0.298873633146286,
-0.5687811374664307,
-0.7279977202415466,
-0.165359228849411,
-0.3692760765552521,
0.004525843076407909,
0.2666870951652527,
-0.5025225281715393,
0.42077338695526123,
0.1958729326725006,
0.6210614442825317,
0.3306671977043152,
-0.24432724714279175,
0.07242947071790695,
0.0702485591173172,
0.09480186551809311,
-0.3047836422920227,
-0.23877587914466858,
0.039015114307403564,
-0.04227876663208008,
-0.41326087713241577,
-0.01959540694952011,
0.028831902891397476,
-0.2526193857192993,
0.035595476627349854,
-0.15751682221889496,
-0.27179187536239624,
-0.123891681432724,
-0.02246532216668129,
-0.14194169640541077,
-0.2570320665836334,
-0.3198939561843872,
0.0670337900519371,
0.2982310652732849,
-0.11284289509057999,
0.15126410126686096,
0.013851691037416458,
-0.16200755536556244,
0.03154924139380455,
-0.09368207305669785,
-0.014957107603549957,
0.0826704129576683,
0.5461879968643188,
0.027171459048986435,
0.04051319509744644,
-0.26593005657196045,
0.29742011427879333,
0.7384321689605713,
-0.6000871062278748,
0.08001190423965454,
0.07071881741285324,
0.09223432838916779,
0.21004611253738403,
0.26795902848243713,
0.18572242558002472,
0.20190942287445068,
-0.26578524708747864,
0.016942903399467468,
-0.5298370122909546,
0.2504328489303589,
-0.021769050508737564,
0.4440693259239197,
-0.17775747179985046,
-0.08869527280330658,
0.11533328890800476,
0.06119309365749359,
-0.26341456174850464,
0.13575512170791626,
0.08698218315839767,
-0.1357957422733307,
0.27223026752471924,
0.13964736461639404,
0.018575195223093033,
-0.1463543027639389,
0.057436175644397736,
0.09397401660680771,
-0.05337584763765335,
-0.0825592428445816,
-0.10543420910835266,
0.1550939977169037,
-0.1980282962322235,
0.11631904542446136,
0.1303214728832245,
-0.041731610894203186,
0.319517582654953,
-0.0936741903424263,
0.22501493990421295,
0.18601086735725403,
0.20814058184623718,
0.21042393147945404,
0.268849641084671,
-0.11691001802682877,
-0.35484325885772705,
0.09067894518375397,
-0.296956866979599,
0.4045584201812744,
0.13867393136024475,
-0.014753434807062149,
-0.060960568487644196,
-0.0888410285115242,
0.1684821993112564,
0.17338141798973083,
-0.22378550469875336,
0.07543635368347168,
0.09239868819713593,
-0.03010600060224533,
-0.3002420663833618,
0.17161765694618225,
0.41807612776756287,
0.13070982694625854,
0.009028654545545578,
-0.09357183426618576,
-0.03586212173104286,
0.09086976945400238,
-0.32672157883644104,
-0.3399278223514557,
-0.02675587311387062,
-0.2537747323513031,
0.09262631833553314,
0.4026513695716858,
0.07423906028270721,
0.036889709532260895,
0.005505889654159546,
0.03615676239132881,
0.1012522354722023,
-0.24551497399806976,
0.21383529901504517,
0.37930727005004883,
-0.007534284144639969,
-0.1985500007867813,
0.17832256853580475,
-0.21222198009490967,
0.3023286461830139,
0.06985936313867569,
-0.4422528147697449,
0.08534075319766998,
0.08932878077030182,
0.10821487009525299,
0.36958470940589905,
0.014236167073249817,
0.42379921674728394,
0.03991939127445221,
-0.1289096623659134,
0.06080324947834015,
0.31479403376579285,
0.442766010761261,
-0.04859580099582672,
-0.01582663133740425,
-0.2531997859477997,
0.10558594763278961,
-0.054370783269405365,
-0.34732556343078613,
-0.07094696164131165,
-0.14274518191814423,
-0.07168707996606827,
0.03861205652356148,
-0.10293669998645782,
-0.09054630994796753,
0.29535216093063354,
-0.11688651144504547,
-0.009258627891540527,
-0.4224739372730255,
0.15827614068984985,
0.18147507309913635,
0.3880574703216553,
-0.1456299126148224,
0.054575346410274506,
0.3556904196739197,
-0.2976456880569458,
-0.061255890876054764,
0.6045544743537903,
0.6866920590400696,
0.018862761557102203,
-0.1339813619852066,
0.26630401611328125,
-0.025470729917287827,
0.06628743559122086,
0.07140267640352249,
-0.021000936627388,
-0.34955599904060364,
-0.27196377515792847,
0.21274803578853607,
0.12190760672092438,
-0.025609081611037254,
0.0317927747964859,
0.17197765409946442,
-0.036277055740356445,
-0.11424089968204498,
0.22822770476341248,
-0.05207517743110657,
-0.18861055374145508,
-0.11732769012451172,
0.2539125978946686,
-0.23649165034294128,
-0.3822084665298462,
0.5265174508094788,
0.12199413031339645,
-0.21482059359550476,
-0.3755606710910797,
0.08175645768642426,
-0.10295853018760681,
0.5648584365844727,
0.5641189813613892,
0.1486559808254242,
-0.3516237437725067,
0.11273008584976196,
-0.9872823357582092,
-0.14266741275787354,
-0.44884583353996277,
-0.17514939606189728,
0.36388733983039856,
0.08095172792673111,
-0.07897225767374039,
0.11005081981420517,
0.7646617293357849,
0.2572687268257141,
-0.19039006531238556,
0.13036984205245972,
-0.38161373138427734,
0.02030194364488125,
0.43800002336502075,
-0.08238997310400009,
0.04837016016244888,
-0.32569587230682373,
0.3045816421508789,
-0.03721437230706215,
-0.07714008539915085,
-0.11933837831020355,
0.24577105045318604,
0.053113918751478195,
-0.306790828704834,
0.22902213037014008,
0.05946385860443115,
0.037472859025001526,
-0.004433281719684601,
-0.3035394549369812,
-0.1653781533241272,
-0.10528478771448135,
-0.1734854131937027,
0.4004944860935211,
0.26669517159461975,
0.3902684152126312,
0.007831625640392303,
-0.2843717336654663,
-0.238683819770813,
-0.10579532384872437,
0.18756705522537231,
0.0253034308552742,
-0.20246551930904388,
0.45194339752197266,
-0.06460428982973099,
0.03651651740074158,
-0.021160081028938293,
0.12450273334980011,
-0.037592776119709015,
0.15035219490528107,
-0.1035262942314148,
-0.6174843907356262,
0.4079124629497528,
-0.14705964922904968,
0.046059269458055496,
-0.16859553754329681,
0.2808789610862732,
0.07851369678974152,
-0.022022543475031853,
-0.6968880295753479,
0.12498772889375687,
0.2760905921459198,
0.02757805772125721,
-0.04445283114910126,
0.01960800029337406,
-0.0035634012892842293,
0.14842040836811066,
0.016966942697763443,
0.42179083824157715,
0.0681130588054657,
-0.1560194343328476,
0.19857795536518097,
-0.2806357741355896
] |
https://github.com/huggingface/datasets/issues/2554 | Multilabel metrics not supported | Hi @GuillemGSubies, thanks for reporting.
I have made a PR to fix this issue and allow metrics to be computed also for multilabel classification problems. | When I try to use a metric like F1 macro I get the following error:
```
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
```
There is an explicit casting here:
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L274
And looks like this is because here
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/metrics/f1/f1.py#L88
the features can only be integers, so we cannot use that F1 for multilabel. Instead, if I create the following F1 (ints replaced with sequence of ints), it will work:
```python
class F1(datasets.Metric):
def _info(self):
return datasets.MetricInfo(
description=_DESCRIPTION,
citation=_CITATION,
inputs_description=_KWARGS_DESCRIPTION,
features=datasets.Features(
{
"predictions": datasets.Sequence(datasets.Value("int32")),
"references": datasets.Sequence(datasets.Value("int32")),
}
),
reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html"],
)
def _compute(self, predictions, references, labels=None, pos_label=1, average="binary", sample_weight=None):
return {
"f1": f1_score(
references,
predictions,
labels=labels,
pos_label=pos_label,
average=average,
sample_weight=sample_weight,
),
}
```
| 25 | Multilabel metrics not supported
When I try to use a metric like F1 macro I get the following error:
```
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
```
There is an explicit casting here:
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L274
And looks like this is because here
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/metrics/f1/f1.py#L88
the features can only be integers, so we cannot use that F1 for multilabel. Instead, if I create the following F1 (ints replaced with sequence of ints), it will work:
```python
class F1(datasets.Metric):
def _info(self):
return datasets.MetricInfo(
description=_DESCRIPTION,
citation=_CITATION,
inputs_description=_KWARGS_DESCRIPTION,
features=datasets.Features(
{
"predictions": datasets.Sequence(datasets.Value("int32")),
"references": datasets.Sequence(datasets.Value("int32")),
}
),
reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html"],
)
def _compute(self, predictions, references, labels=None, pos_label=1, average="binary", sample_weight=None):
return {
"f1": f1_score(
references,
predictions,
labels=labels,
pos_label=pos_label,
average=average,
sample_weight=sample_weight,
),
}
```
Hi @GuillemGSubies, thanks for reporting.
I have made a PR to fix this issue and allow metrics to be computed also for multilabel classification problems. | [
-0.22126498818397522,
-0.17884759604930878,
0.0044772811233997345,
0.30089908838272095,
0.6725276708602905,
-0.13599063456058502,
0.4806855618953705,
-0.10233516991138458,
0.22830796241760254,
0.3166796565055847,
-0.12407443672418594,
0.29819273948669434,
-0.28085029125213623,
0.40463367104530334,
-0.2508816421031952,
-0.17612114548683167,
-0.2169736623764038,
-0.3327274024486542,
-0.05999034643173218,
0.10591883957386017,
-0.42455995082855225,
0.03595555201172829,
-0.3928986191749573,
-0.04741719365119934,
-0.20538277924060822,
0.06821601092815399,
0.11611567437648773,
-0.11355521529912949,
-0.2787647247314453,
-0.3295215368270874,
0.03608642518520355,
-0.018557798117399216,
-0.006459247320890427,
0.433856725692749,
-0.0001161838517873548,
-0.11235715448856354,
0.23134641349315643,
0.0006337296217679977,
-0.12151084840297699,
-0.23886699974536896,
0.10068761557340622,
-0.12417613714933395,
0.03922291845083237,
-0.24910026788711548,
0.015184588730335236,
0.06347883492708206,
-0.3937758803367615,
-0.11045892536640167,
-0.029123932123184204,
0.3288373351097107,
0.12586504220962524,
-0.06296219676733017,
0.42942941188812256,
-0.09712168574333191,
-0.15652057528495789,
-0.01515141874551773,
-0.2259766161441803,
0.2436191588640213,
0.006711967289447784,
0.18932799994945526,
0.19932490587234497,
0.36789870262145996,
0.05517277121543884,
0.0967109203338623,
0.3370929956436157,
-0.09449490904808044,
0.15959793329238892,
-0.16806678473949432,
-0.16020849347114563,
0.22098520398139954,
-0.06162337213754654,
-0.06681881844997406,
-0.5924575328826904,
-0.07293915748596191,
0.09925482422113419,
-0.8592530488967896,
0.10269243270158768,
-0.14334112405776978,
-0.005415735766291618,
-0.19437147676944733,
-0.45832788944244385,
-0.12448251247406006,
-0.11096331477165222,
0.20195272564888,
-0.18106430768966675,
0.44061556458473206,
-0.15842661261558533,
0.23743560910224915,
0.3454504907131195,
-0.15185481309890747,
-0.20528431236743927,
0.008173679932951927,
0.058326058089733124,
0.20561085641384125,
-0.3568539023399353,
0.10931092500686646,
-0.17682909965515137,
0.0013985112309455872,
0.184287428855896,
-0.16339479386806488,
-0.23855815827846527,
0.14221137762069702,
-0.3320729732513428,
0.06417959183454514,
0.12255318462848663,
0.3998175263404846,
0.2546086311340332,
0.1608307659626007,
0.07207931578159332,
0.14232245087623596,
-0.1401437222957611,
-0.15678176283836365,
-0.06989306211471558,
-0.36560431122779846,
0.2567163109779358,
0.34897667169570923,
-0.20150797069072723,
0.013522569090127945,
-0.3946034014225006,
-0.04481762275099754,
-0.0712452381849289,
0.008279331028461456,
0.689638614654541,
0.0917188748717308,
-0.031808335334062576,
0.2214341163635254,
0.11534765362739563,
0.443676233291626,
0.06879657506942749,
-0.2091449499130249,
-0.021412339061498642,
0.04797988384962082,
-0.33398282527923584,
0.04826845973730087,
0.18069081008434296,
-0.0014862902462482452,
0.05395510047674179,
0.138774111866951,
0.4493703246116638,
-0.22767511010169983,
-0.1483098566532135,
-0.2939903140068054,
-0.20853546261787415,
0.1655089557170868,
-0.019041674211621284,
0.1512504369020462,
0.3160665035247803,
-0.23029577732086182,
0.035770587623119354,
0.06692366302013397,
-0.4116388261318207,
0.038243699818849564,
-0.06661911308765411,
0.07122816890478134,
0.048375844955444336,
0.1025642678141594,
-0.254299521446228,
0.2213602215051651,
-0.13259729743003845,
-0.06657632440328598,
-0.0036144480109214783,
-0.40388810634613037,
-0.2503189444541931,
-0.11253813654184341,
0.2882920801639557,
-0.11036601662635803,
0.20296727120876312,
-0.14162135124206543,
0.005730163771659136,
0.18879634141921997,
0.06681038439273834,
0.11957937479019165,
-0.06409729272127151,
0.035941269248723984,
0.05204390734434128,
-0.0502256341278553,
0.557849645614624,
-0.7724623680114746,
0.02215491607785225,
-0.11105410754680634,
0.16226011514663696,
-0.19108571112155914,
0.17725318670272827,
0.05778741464018822,
-0.040419772267341614,
-0.2197522073984146,
0.4865660071372986,
0.07276716828346252,
0.061668939888477325,
-0.1428971290588379,
-0.08956699073314667,
-0.15691246092319489,
-0.04443288594484329,
0.03779861703515053,
0.37607619166374207,
-0.05719646066427231,
0.10411473363637924,
0.3804464638233185,
-0.11731290072202682,
-0.21535107493400574,
0.021781573072075844,
0.23938870429992676,
-0.10842873156070709,
-0.2037585824728012,
-0.021731283515691757,
-0.5195291042327881,
-0.27286669611930847,
0.20561647415161133,
0.013041596859693527,
0.1000807136297226,
0.3230245113372803,
-0.10542607307434082,
-0.22578531503677368,
0.1438709795475006,
0.0650472417473793,
0.1493528187274933,
0.0401068851351738,
-0.0796520859003067,
-0.09361715614795685,
-0.005691861733794212,
-0.13184326887130737,
-0.06274639815092087,
0.1535240113735199,
0.1577184945344925,
0.35164037346839905,
-0.0704769566655159,
-0.008762741461396217,
-0.08259810507297516,
0.09730364382266998,
0.35178980231285095,
0.4347660541534424,
0.14074134826660156,
-0.030635666102170944,
0.39471757411956787,
0.29707467555999756,
-0.5094217658042908,
0.18060839176177979,
0.3879393935203552,
0.36073634028434753,
-0.07303358614444733,
-0.15067090094089508,
-0.05046569183468819,
0.25038906931877136,
-0.21855083107948303,
-0.14619258046150208,
0.3504962921142578,
-0.3115260601043701,
0.30242258310317993,
0.14302091300487518,
0.35088762640953064,
0.296101450920105,
0.1546093076467514,
-0.2565426230430603,
-0.31380194425582886,
0.16299353539943695,
-0.29915934801101685,
-0.10053607821464539,
-0.10967585444450378,
-0.34352776408195496,
-0.0732400193810463,
0.449171245098114,
0.2249610424041748,
0.3339299261569977,
0.13072478771209717,
-0.04566878080368042,
0.10115798562765121,
-0.2851281762123108,
-0.4623360335826874,
0.3690943717956543,
0.03253251314163208,
-0.03240424022078514,
-0.00589473731815815,
-0.27009931206703186,
-0.12679070234298706,
0.32150107622146606,
0.024024609476327896,
0.020160261541604996,
0.05836863070726395,
0.07774047553539276,
0.01275583729147911,
0.04874943196773529,
-0.07387508451938629,
0.15376219153404236,
0.014945587143301964,
-0.36297711730003357,
0.05829057842493057,
-0.24534885585308075,
-0.046333298087120056,
-0.09350819140672684,
-0.7585229277610779,
-0.17618246376514435,
-0.33468931913375854,
-0.040306247770786285,
0.23866140842437744,
0.22906973958015442,
0.2197217345237732,
0.15513987839221954,
0.2061389535665512,
0.12413239479064941,
0.13012170791625977,
-0.03681053966283798,
-0.14144903421401978,
-0.10461070388555527,
-0.03050226904451847,
0.12732820212841034,
-0.07237978279590607,
0.0829005017876625,
0.18744172155857086,
0.2402455359697342,
-0.2738407552242279,
-0.5661292672157288,
-0.03166835755109787,
-0.045072466135025024,
0.6306038498878479,
0.24905163049697876,
-0.359347403049469,
-0.3242051601409912,
0.2313191294670105,
0.5897343158721924,
-0.042717136442661285,
0.2254866659641266,
0.3594716489315033,
-0.08597338199615479,
-0.22067193686962128,
-0.36161747574806213,
0.309379518032074,
-0.0327620655298233,
-0.20784349739551544,
0.241056427359581,
0.21468164026737213,
-0.103807732462883,
0.33232221007347107,
0.063773974776268,
0.15969523787498474,
0.3333355486392975,
-0.05838273465633392,
-0.22033801674842834,
0.11703480780124664,
0.1210966482758522,
-0.258145272731781,
-0.23531045019626617,
-0.06850753724575043,
0.21084710955619812,
0.1027471125125885,
0.08350034803152084,
-0.08771167695522308,
-0.6157519817352295,
0.0433085635304451,
-0.10995198786258698,
0.09626127779483795,
0.353251576423645,
-0.023695088922977448,
-0.023614395409822464,
-0.00503113679587841,
-0.295424222946167,
-0.2439957857131958,
0.13757669925689697,
-0.21491378545761108,
0.15143002569675446,
-0.005148526281118393,
0.12474782764911652,
0.17198584973812103,
0.1946258842945099,
0.3539058566093445,
0.09507892280817032,
0.4159371554851532,
0.017634620890021324,
0.20281556248664856,
-0.12274112552404404,
-0.4960140585899353,
0.2217463254928589,
-0.09357492625713348,
0.07301782071590424,
0.06442390382289886,
0.024882130324840546,
0.2972833514213562,
-0.2300756424665451,
0.40531304478645325,
-0.4326806962490082,
-0.2399405539035797,
-0.12160472571849823,
-0.06792113929986954,
-0.059962041676044464,
0.006851419806480408,
-0.0686790868639946,
-0.4538889527320862,
-0.01749918796122074,
-0.019770415499806404,
0.06182052195072174,
-0.06521999090909958,
-0.06905161589384079,
-0.19122496247291565,
-0.502027153968811,
-0.0877896174788475,
0.30134880542755127,
0.10332273691892624,
0.3473801016807556,
-0.013906620442867279,
0.46032285690307617,
-0.09228198230266571,
0.06990338116884232,
0.4486808180809021,
-0.3780311942100525,
-0.16489309072494507,
0.4228249192237854,
0.01288987323641777,
-0.37649041414260864,
-0.049226708710193634,
-0.34814751148223877,
0.15043143928050995,
0.21734833717346191,
0.5315401554107666,
-0.354280024766922,
-0.10138623416423798,
0.2975426912307739,
0.06512008607387543,
-0.07052235305309296,
0.041090574115514755,
-0.1671096831560135,
-0.2446783185005188,
-0.06936422735452652,
-0.10139528661966324,
0.15437254309654236,
0.437783420085907,
0.11572515964508057,
0.2029923051595688,
-0.4573975205421448,
-0.18739303946495056,
0.18590271472930908,
-0.19368822872638702,
0.01049445103853941,
0.10937576740980148,
0.042996253818273544,
-0.14653368294239044,
-0.24787014722824097,
-0.015292594209313393,
0.3211362659931183,
-0.038448724895715714,
-0.6306090354919434,
0.03580449894070625,
-0.2560366690158844,
0.32252252101898193,
0.052694253623485565,
-0.2152552604675293,
0.05281706899404526,
-0.3137717843055725,
0.4578755497932434,
-0.07798805087804794,
0.07488863915205002,
0.4235396087169647,
0.06541623920202255,
-0.1905529499053955,
-0.11974622309207916,
0.424530953168869,
0.2586815357208252,
-0.11115194857120514,
0.5211778879165649,
0.04305121302604675,
-0.3598250150680542,
-0.07596664130687714,
0.5890721678733826,
0.6975985169410706,
-0.22261150181293488,
-0.2586008608341217,
0.16720044612884521,
0.08235324919223785,
0.5033919811248779,
0.19303835928440094,
0.12688899040222168,
-0.04749898239970207,
-0.14266283810138702,
-0.011538980528712273,
0.017642561346292496,
0.029198210686445236,
-0.0812455415725708,
-0.27213194966316223,
0.4355117082595825,
-0.32331156730651855,
-0.11926019191741943,
-0.050902530550956726,
0.02129524201154709,
0.10173562169075012,
-0.33183813095092773,
0.08440563827753067,
0.10857786238193512,
-0.052318550646305084,
-0.09023451805114746,
-0.12921257317066193,
-0.044477224349975586,
0.08807234466075897,
-0.07835014164447784,
-0.39157694578170776,
-0.22250986099243164,
-0.23791301250457764,
-0.02298802137374878,
0.173751100897789,
0.2766945958137512,
-0.046166807413101196,
0.37172308564186096,
0.883309006690979,
-0.08970192074775696,
-0.26776453852653503,
0.0498955212533474,
-0.418976366519928,
0.1067228689789772,
-0.16139103472232819,
-0.05617460608482361,
0.3169289827346802,
0.04741497337818146,
0.11929915100336075,
0.13141602277755737,
0.18532799184322357,
-0.09219934046268463,
0.00020423531532287598,
0.009137824177742004,
-0.15285344421863556,
-0.0397045873105526,
0.13441582024097443,
-0.14658251404762268,
0.16961349546909332,
-0.27019575238227844,
0.030994798988103867,
-0.042093344032764435,
0.014613695442676544,
0.33567896485328674,
-0.1573173850774765,
0.013188071548938751,
0.12775754928588867,
0.05601034685969353,
-0.013466570526361465,
-0.11976148188114166,
-0.0039820484817028046,
0.11321619153022766,
-0.009625537320971489,
-0.055326227098703384,
0.006684929132461548,
-0.1056755855679512,
-0.2056485414505005,
0.446666419506073,
0.2419062703847885,
-0.12883435189723969,
0.21511292457580566,
0.7306455969810486,
0.017122836783528328,
0.1984633505344391,
0.008393574506044388,
-0.4410925507545471,
0.0696253851056099,
0.27995437383651733,
-0.3629096448421478,
-0.2672879695892334,
-0.3785531222820282,
0.26722612977027893,
0.06350788474082947,
0.08191899210214615,
-0.22874975204467773,
-0.05125249922275543,
-0.35221579670906067,
-0.01207219809293747,
0.06626008450984955,
-0.12351305037736893,
-0.08766163140535355,
0.24277858436107635,
0.023447928950190544,
-0.05900982767343521,
-0.11831746995449066,
-0.06451922655105591,
-0.3597302734851837,
0.1503220647573471,
0.19567108154296875,
0.08650022000074387,
-0.06123684346675873,
-0.18525782227516174,
-0.26486819982528687,
-0.2953038513660431,
-0.24208107590675354,
0.31741753220558167,
-0.1273350715637207,
0.13425853848457336,
-0.20866762101650238,
0.4146336615085602,
0.20629699528217316,
0.010060990229249,
0.27347660064697266,
0.2579463720321655,
-0.1087881475687027,
0.17875821888446808,
0.20474649965763092,
0.032422393560409546,
-0.3954748213291168,
-0.05991856008768082,
-0.012458741664886475,
-0.09959813207387924,
0.2261800765991211,
-0.15810464322566986,
0.2550153136253357,
0.30323517322540283,
0.298762708902359,
0.09897059202194214,
-0.14194460213184357,
0.037780217826366425,
-0.04529084265232086,
0.08280322700738907,
-0.0907507836818695,
-0.3420126140117645,
-0.1665187031030655,
0.11570275574922562,
0.10419699549674988,
0.4284948408603668,
0.2192297875881195,
0.1410692036151886,
0.18902894854545593,
-0.295319139957428,
0.20037154853343964,
-0.1582850068807602,
-0.15351760387420654,
0.2303374707698822,
0.21609695255756378,
0.11021442711353302,
0.5138720870018005,
0.09700599312782288,
0.33115628361701965,
0.5222989320755005,
-0.2508506774902344,
0.18690815567970276,
-0.08416085690259933,
0.07252877205610275,
0.030388887971639633,
0.09473103284835815,
0.1601167619228363,
0.0957949161529541,
-0.20197144150733948,
-0.021473810076713562,
-0.4733527898788452,
0.07676516473293304,
-0.7301231622695923,
-0.20375633239746094,
-0.3301914930343628,
0.4148746132850647,
0.09141062200069427,
-0.22771234810352325,
-0.39521196484565735,
-0.16491246223449707,
-0.11751701682806015,
-0.1400972157716751,
-0.17647753655910492,
0.2861175537109375,
0.33232545852661133,
-0.0380241796374321,
0.17974716424942017,
-0.23770590126514435,
-0.7110543251037598,
0.4802883267402649,
0.2804577052593231,
-0.16381146013736725,
0.23551145195960999,
0.2511017918586731,
0.1285535991191864,
0.1014566719532013,
0.6210411787033081,
0.4934695065021515,
0.3399621844291687,
-0.12551142275333405,
-0.21917051076889038,
-0.2566690444946289,
-0.18119321763515472,
-0.09690473973751068,
0.19628797471523285,
0.4486639201641083,
0.07679276913404465,
0.1382710188627243,
0.04151199012994766,
-0.1604163944721222,
0.32341432571411133,
-0.31066983938217163,
0.1860601156949997,
-0.2885333299636841,
0.2526656985282898,
-0.09160920232534409,
0.018187426030635834,
0.06827861070632935,
-0.12381836026906967,
-0.37584537267684937,
-0.06212066859006882,
0.2017790526151657,
-0.04914719611406326,
0.24223294854164124,
-0.06143613159656525,
0.03707585111260414,
0.2704457938671112,
0.29748451709747314,
0.013661317527294159,
-0.01638268679380417,
-0.20509976148605347,
0.07529617846012115,
-0.5276010036468506,
-0.15790385007858276,
0.18761591613292694,
-0.04030587524175644,
0.2682582139968872,
0.03561729937791824,
-0.0518558993935585,
0.27874836325645447,
0.253631055355072,
-0.09347731620073318,
0.3922416865825653,
0.11862525343894958,
-0.3982807397842407,
0.16055928170681,
0.17943856120109558,
-0.11331908404827118,
0.06049686670303345,
-0.23995935916900635,
0.18222816288471222,
-0.35012030601501465,
0.021892137825489044,
-0.22423194348812103,
0.21882319450378418,
0.08377744257450104,
0.2790902853012085,
0.24344795942306519,
0.2892828583717346,
0.46004584431648254,
0.1918538510799408,
-0.027339495718479156,
0.043367184698581696,
0.07583450525999069,
0.11638283729553223,
0.09131485968828201,
-0.17473718523979187,
0.3008781373500824,
-0.3320212662220001,
0.007399003952741623,
-0.19842426478862762,
0.0825691744685173,
0.06646429747343063,
-0.17217789590358734,
-0.24621303379535675,
0.2692374885082245,
-0.3208702504634857,
-0.09518951922655106,
0.33455517888069153,
0.4876786768436432,
-0.035236991941928864,
0.4263414442539215,
0.030074134469032288,
-0.3520088195800781,
0.3873305320739746,
-0.20401914417743683,
-0.3546735346317291,
-0.1390378326177597,
0.25847774744033813,
0.06701004505157471,
-0.10505711287260056,
-0.6502360105514526,
-0.12259305268526077,
0.26044961810112,
0.2896445691585541,
-0.5856114625930786,
0.2949886620044708,
-0.1904970407485962,
-0.1474585384130478,
0.013612572103738785,
-0.3887822926044464,
-0.0953044518828392,
0.031690098345279694,
0.13350658118724823,
0.2647956609725952
] |
https://github.com/huggingface/datasets/issues/2554 | Multilabel metrics not supported | Sorry for reopening but I just noticed that the `_compute` method for the F1 metric is still not good enough for multilabel problems:
https://github.com/huggingface/datasets/blob/92a3ee549705aa0a107c9fa5caf463b3b3da2616/metrics/f1/f1.py#L115
Somehow we should be able to change the parameter `average` at least | When I try to use a metric like F1 macro I get the following error:
```
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
```
There is an explicit casting here:
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L274
And looks like this is because here
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/metrics/f1/f1.py#L88
the features can only be integers, so we cannot use that F1 for multilabel. Instead, if I create the following F1 (ints replaced with sequence of ints), it will work:
```python
class F1(datasets.Metric):
def _info(self):
return datasets.MetricInfo(
description=_DESCRIPTION,
citation=_CITATION,
inputs_description=_KWARGS_DESCRIPTION,
features=datasets.Features(
{
"predictions": datasets.Sequence(datasets.Value("int32")),
"references": datasets.Sequence(datasets.Value("int32")),
}
),
reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html"],
)
def _compute(self, predictions, references, labels=None, pos_label=1, average="binary", sample_weight=None):
return {
"f1": f1_score(
references,
predictions,
labels=labels,
pos_label=pos_label,
average=average,
sample_weight=sample_weight,
),
}
```
| 36 | Multilabel metrics not supported
When I try to use a metric like F1 macro I get the following error:
```
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
```
There is an explicit casting here:
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L274
And looks like this is because here
https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/metrics/f1/f1.py#L88
the features can only be integers, so we cannot use that F1 for multilabel. Instead, if I create the following F1 (ints replaced with sequence of ints), it will work:
```python
class F1(datasets.Metric):
def _info(self):
return datasets.MetricInfo(
description=_DESCRIPTION,
citation=_CITATION,
inputs_description=_KWARGS_DESCRIPTION,
features=datasets.Features(
{
"predictions": datasets.Sequence(datasets.Value("int32")),
"references": datasets.Sequence(datasets.Value("int32")),
}
),
reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html"],
)
def _compute(self, predictions, references, labels=None, pos_label=1, average="binary", sample_weight=None):
return {
"f1": f1_score(
references,
predictions,
labels=labels,
pos_label=pos_label,
average=average,
sample_weight=sample_weight,
),
}
```
Sorry for reopening but I just noticed that the `_compute` method for the F1 metric is still not good enough for multilabel problems:
https://github.com/huggingface/datasets/blob/92a3ee549705aa0a107c9fa5caf463b3b3da2616/metrics/f1/f1.py#L115
Somehow we should be able to change the parameter `average` at least | [
-0.3035677373409271,
-0.139424130320549,
-0.011591678485274315,
0.2726672887802124,
0.5279554724693298,
-0.1952754110097885,
0.5079543590545654,
-0.06288637220859528,
0.20763683319091797,
0.38869696855545044,
-0.04871102422475815,
0.2973475456237793,
-0.22173528373241425,
0.4341043531894684,
-0.23414136469364166,
-0.0707549974322319,
-0.20079448819160461,
-0.3434455394744873,
0.02834155783057213,
0.09051883220672607,
-0.507716715335846,
-0.010184263810515404,
-0.3638967275619507,
-0.11567257344722748,
-0.22700561583042145,
-0.018249714747071266,
0.09797655045986176,
-0.17548319697380066,
-0.22970007359981537,
-0.23781724274158478,
-0.01703333854675293,
0.04965801537036896,
-0.06396184861660004,
0.45050469040870667,
-0.00011817125778179616,
-0.1012786328792572,
0.24599270522594452,
0.03017404116690159,
-0.1078457236289978,
-0.18414367735385895,
0.1185203567147255,
-0.1648152470588684,
0.008675266057252884,
-0.22049486637115479,
0.06982608884572983,
0.06881080567836761,
-0.3488447964191437,
-0.1419551521539688,
-0.07205000519752502,
0.18737755715847015,
0.1253160834312439,
-0.032413188368082047,
0.4248095750808716,
-0.06078867241740227,
-0.14719483256340027,
-0.05823938548564911,
-0.26669755578041077,
0.19497357308864594,
0.04349568486213684,
0.18685829639434814,
0.20328038930892944,
0.42201030254364014,
0.037662506103515625,
0.16512449085712433,
0.30035480856895447,
-0.07066112756729126,
0.14551638066768646,
-0.15109673142433167,
-0.16035261750221252,
0.3080408573150635,
-0.056450255215168,
0.015803270041942596,
-0.6358951330184937,
-0.048069871962070465,
0.07320459932088852,
-0.9119994640350342,
0.050368212163448334,
-0.18113304674625397,
-0.058024585247039795,
-0.23352164030075073,
-0.4666311740875244,
-0.2487322837114334,
-0.0932469516992569,
0.17115196585655212,
-0.26525789499282837,
0.48437783122062683,
-0.17632538080215454,
0.2777331471443176,
0.4350232481956482,
-0.11220097541809082,
-0.17165960371494293,
0.02546508051455021,
0.07705600559711456,
0.1215125098824501,
-0.3768211901187897,
0.14037412405014038,
-0.11672203987836838,
-0.024823464453220367,
0.13023295998573303,
-0.09114967286586761,
-0.13822369277477264,
0.2172362208366394,
-0.30931875109672546,
0.045519523322582245,
0.07910670340061188,
0.4002372920513153,
0.18604540824890137,
0.06810516119003296,
0.1556663066148758,
0.13171714544296265,
-0.23327480256557465,
-0.15043729543685913,
-0.06713634729385376,
-0.4312772750854492,
0.2790435254573822,
0.2907593846321106,
-0.18087144196033478,
0.01845533773303032,
-0.39576321840286255,
-0.06911081820726395,
-0.1570843905210495,
-0.10499918460845947,
0.6134381890296936,
0.0020762309432029724,
0.002414677757769823,
0.2750539481639862,
0.10134536027908325,
0.37780117988586426,
0.10150543600320816,
-0.16804681718349457,
-0.051876772195100784,
0.04016712307929993,
-0.26716727018356323,
0.11578110605478287,
0.1327092945575714,
-0.07296228408813477,
0.019962236285209656,
0.05903242528438568,
0.5086396932601929,
-0.2617494463920593,
-0.14353139698505402,
-0.29257237911224365,
-0.17980578541755676,
0.14683373272418976,
0.007984191179275513,
0.1366332620382309,
0.2490801215171814,
-0.24598631262779236,
0.05375797301530838,
0.027527209371328354,
-0.39239412546157837,
-0.02302847057580948,
-0.01818845234811306,
0.06328634917736053,
0.06526912748813629,
0.16280293464660645,
-0.23350965976715088,
0.2275536060333252,
-0.09982220083475113,
-0.012299396097660065,
-0.041727714240550995,
-0.37837231159210205,
-0.240263432264328,
-0.14653851091861725,
0.2956339418888092,
-0.08261208236217499,
0.1374736875295639,
-0.04331080615520477,
-0.09837256371974945,
0.24372299015522003,
0.06205681338906288,
0.14779649674892426,
-0.03561900556087494,
0.14940962195396423,
0.05787276476621628,
-0.12488387525081635,
0.569858968257904,
-0.8263213634490967,
-0.05434321612119675,
-0.06536947190761566,
0.1196310818195343,
-0.18388265371322632,
0.2207295000553131,
0.12360557913780212,
-0.06225680559873581,
-0.2049984484910965,
0.529237687587738,
0.02876373566687107,
0.07669205218553543,
-0.1654118299484253,
-0.04520316794514656,
-0.18147990107536316,
0.0025855116546154022,
0.03232754394412041,
0.3556845784187317,
-0.06629400700330734,
0.0673360750079155,
0.38430970907211304,
-0.12886396050453186,
-0.16627827286720276,
-0.03720411658287048,
0.23794756829738617,
-0.07563386857509613,
-0.294078528881073,
-0.03743983805179596,
-0.4888572692871094,
-0.27485495805740356,
0.1924366056919098,
0.006663281470537186,
0.11043793708086014,
0.35446667671203613,
-0.12455855309963226,
-0.13991686701774597,
0.16334696114063263,
0.05188309773802757,
0.13663914799690247,
0.029861588031053543,
-0.012900762259960175,
-0.12855984270572662,
-0.04765498638153076,
-0.11873044073581696,
-0.06930600851774216,
0.15100598335266113,
0.10822969675064087,
0.35693809390068054,
-0.10201352834701538,
0.056927748024463654,
-0.09412246197462082,
0.10311084985733032,
0.3198626935482025,
0.44242602586746216,
0.10300107300281525,
-0.01481153815984726,
0.36445924639701843,
0.27070876955986023,
-0.4229555130004883,
0.16994521021842957,
0.3826810121536255,
0.3953564763069153,
-0.07457233220338821,
-0.1939988136291504,
-0.06922617554664612,
0.24635133147239685,
-0.22687557339668274,
-0.14674976468086243,
0.28756219148635864,
-0.31854382157325745,
0.32269686460494995,
0.14684061706066132,
0.32171183824539185,
0.25665950775146484,
0.20150476694107056,
-0.24838079512119293,
-0.3016519844532013,
0.1658363938331604,
-0.20038029551506042,
-0.015854937955737114,
-0.14552652835845947,
-0.28806930780410767,
0.014693990349769592,
0.5453440546989441,
0.18952803313732147,
0.33734071254730225,
0.1228359267115593,
0.002285197377204895,
0.03695452958345413,
-0.2580644190311432,
-0.49485039710998535,
0.333432137966156,
0.041572097688913345,
0.02843835949897766,
-0.04267001897096634,
-0.25531116127967834,
-0.1827678382396698,
0.35112032294273376,
0.04075965657830238,
0.041734229773283005,
0.04863691329956055,
0.07927548885345459,
0.0071958862245082855,
0.06337247043848038,
-0.057391829788684845,
0.13338442146778107,
0.08257359266281128,
-0.3026278018951416,
0.08388056606054306,
-0.28614941239356995,
0.07159777730703354,
-0.06229546666145325,
-0.6351694464683533,
-0.21060316264629364,
-0.4214543402194977,
-0.052299708127975464,
0.289997398853302,
0.21633079648017883,
0.21770702302455902,
0.22161389887332916,
0.2261158525943756,
0.11862695217132568,
0.07263591885566711,
-0.011789612472057343,
-0.1280401349067688,
-0.11571759730577469,
-0.033857107162475586,
0.11829078197479248,
-0.038968827575445175,
0.06463760882616043,
0.11849301308393478,
0.25963830947875977,
-0.327449232339859,
-0.5238173007965088,
0.009646851569414139,
-0.002318263053894043,
0.6806579232215881,
0.23966901004314423,
-0.39111053943634033,
-0.2965577244758606,
0.2758677303791046,
0.4702560603618622,
-0.04457956552505493,
0.1978142410516739,
0.3061755895614624,
-0.1598011553287506,
-0.20401635766029358,
-0.31545206904411316,
0.2829877734184265,
-0.035180360078811646,
-0.22989724576473236,
0.3096044063568115,
0.20338600873947144,
-0.10843011736869812,
0.2454039752483368,
0.037137940526008606,
0.1479741781949997,
0.3892919719219208,
-0.10505092144012451,
-0.2885061204433441,
0.08498814702033997,
0.13213789463043213,
-0.21231703460216522,
-0.20194455981254578,
-0.17210733890533447,
0.22342966496944427,
0.11494427919387817,
0.202972874045372,
-0.08866825699806213,
-0.5342196822166443,
0.0833125039935112,
-0.08714432269334793,
0.11085085570812225,
0.4103129208087921,
0.06057830899953842,
-0.018337063491344452,
0.003228669986128807,
-0.27540838718414307,
-0.22224785387516022,
0.1004616990685463,
-0.15345817804336548,
0.06519626080989838,
0.10348040610551834,
0.031586091965436935,
0.1391020268201828,
0.23558151721954346,
0.31621041893959045,
0.08077315241098404,
0.40983983874320984,
-0.07185414433479309,
0.21876071393489838,
-0.13537493348121643,
-0.4852561950683594,
0.23665665090084076,
-0.029311105608940125,
0.06374524533748627,
0.00034274905920028687,
-0.037308454513549805,
0.332139253616333,
-0.24684204161167145,
0.4416350722312927,
-0.4530459940433502,
-0.28022488951683044,
-0.12628711760044098,
-0.10862666368484497,
0.012206703424453735,
0.05570181831717491,
-0.022697050124406815,
-0.4287647604942322,
-0.013281771913170815,
0.013598904013633728,
-0.010416395962238312,
-0.00042907893657684326,
-0.18521007895469666,
-0.2084757685661316,
-0.48321107029914856,
-0.12647590041160583,
0.40246790647506714,
0.13010360300540924,
0.3374905288219452,
0.028780270367860794,
0.43505623936653137,
-0.1390092968940735,
-0.04037374630570412,
0.5147570371627808,
-0.45906201004981995,
-0.14129385352134705,
0.4476599395275116,
0.0197136327624321,
-0.3938908576965332,
0.02781783416867256,
-0.3830912411212921,
0.21226660907268524,
0.16239617764949799,
0.623637855052948,
-0.36822909116744995,
-0.08166775107383728,
0.2887709438800812,
0.133958637714386,
-0.09786534309387207,
0.08381988853216171,
-0.21461080014705658,
-0.28418177366256714,
0.010529579594731331,
-0.08594489842653275,
0.07259461283683777,
0.40628498792648315,
0.13679754734039307,
0.16368211805820465,
-0.4812282621860504,
-0.19368776679039001,
0.16329754889011383,
-0.09839467704296112,
-0.02219628356397152,
0.08832721412181854,
0.043575551360845566,
-0.024098776280879974,
-0.31226733326911926,
-0.003353409469127655,
0.23796837031841278,
-0.05799048766493797,
-0.5607478618621826,
0.08776286989450455,
-0.24563394486904144,
0.35446494817733765,
0.09050892293453217,
-0.1839892864227295,
0.06104119122028351,
-0.2522740066051483,
0.4479469060897827,
-0.08033988624811172,
0.09649045020341873,
0.42011111974716187,
0.05718957632780075,
-0.1538921296596527,
-0.15544402599334717,
0.41552624106407166,
0.2977340519428253,
-0.17249876260757446,
0.6108790040016174,
0.02165353298187256,
-0.34726038575172424,
-0.17069146037101746,
0.6161465048789978,
0.6639277338981628,
-0.2066730111837387,
-0.2987068295478821,
0.20211955904960632,
0.04444272071123123,
0.5409149527549744,
0.10051165521144867,
0.14691290259361267,
-0.053845345973968506,
-0.17642705142498016,
0.01714758761227131,
-0.016647521406412125,
0.07151671499013901,
-0.08811329305171967,
-0.21822364628314972,
0.5575034618377686,
-0.30761802196502686,
-0.1142057329416275,
0.0021899454295635223,
0.032471559941768646,
0.07544063031673431,
-0.39792945981025696,
0.16226641833782196,
0.08053377270698547,
-0.05801589787006378,
-0.07549938559532166,
-0.18553060293197632,
0.011605463922023773,
0.17165812849998474,
-0.09154433012008667,
-0.3708478808403015,
-0.2656002938747406,
-0.27178776264190674,
-0.04765741527080536,
0.17623566091060638,
0.27044516801834106,
-0.08460025489330292,
0.29914334416389465,
0.8558817505836487,
-0.01163807138800621,
-0.23482143878936768,
0.058985501527786255,
-0.3892521262168884,
0.189602330327034,
-0.13050471246242523,
-0.07720854878425598,
0.29422423243522644,
0.06288225948810577,
0.011022962629795074,
0.09266193211078644,
0.1704237461090088,
-0.11777997016906738,
0.025741487741470337,
-0.0066216737031936646,
-0.16535983979701996,
0.07602932304143906,
0.12009292840957642,
-0.011334046721458435,
0.11253726482391357,
-0.3949175477027893,
0.005317843519151211,
-0.07224960625171661,
-0.004494745284318924,
0.37812650203704834,
-0.1756124198436737,
0.006261847913265228,
0.17067402601242065,
0.004889294505119324,
-0.005119606852531433,
-0.14033177495002747,
-0.05766357481479645,
0.02867967262864113,
0.03922523558139801,
-0.0969320684671402,
0.08093536645174026,
-0.10645253956317902,
-0.15923789143562317,
0.45626571774482727,
0.14357365667819977,
-0.1438356190919876,
0.14808833599090576,
0.7533921003341675,
-0.00048806890845298767,
0.1591460108757019,
-0.047555841505527496,
-0.3646162450313568,
0.11167161911725998,
0.35771554708480835,
-0.27848076820373535,
-0.2859058976173401,
-0.3850753605365753,
0.21390153467655182,
0.029076283797621727,
0.09673216193914413,
-0.21313416957855225,
-0.010873059742152691,
-0.28432226181030273,
-0.06354587525129318,
0.027125539258122444,
-0.050209902226924896,
-0.027704419568181038,
0.2214491218328476,
0.04479452222585678,
0.005257617682218552,
-0.1235499233007431,
-0.0783798098564148,
-0.4102925956249237,
0.1488693356513977,
0.1323849856853485,
0.054143957793712616,
0.07508256286382675,
-0.21412760019302368,
-0.28966397047042847,
-0.3037726879119873,
-0.23427480459213257,
0.279323548078537,
-0.10534512996673584,
0.035490211099386215,
-0.20973415672779083,
0.4091102182865143,
0.1177297830581665,
0.03893086314201355,
0.2927904725074768,
0.3148609399795532,
-0.10849711298942566,
0.24240705370903015,
0.2830348610877991,
0.0008611232042312622,
-0.3876786231994629,
-0.11589428037405014,
0.005472913384437561,
-0.11150612682104111,
0.18110263347625732,
-0.12128859758377075,
0.13862194120883942,
0.233993262052536,
0.323785662651062,
0.16170567274093628,
-0.06642615795135498,
-0.012316128239035606,
-0.014244519174098969,
0.0712423324584961,
-0.10790988802909851,
-0.36832690238952637,
-0.13113513588905334,
0.08472557365894318,
0.14175750315189362,
0.512697160243988,
0.2507161796092987,
0.2212902307510376,
0.09498592466115952,
-0.3263396620750427,
0.20634157955646515,
-0.22769735753536224,
-0.16028784215450287,
0.14306549727916718,
0.15903215110301971,
0.14700977504253387,
0.5661742091178894,
0.06098156422376633,
0.34265193343162537,
0.5054738521575928,
-0.1822483241558075,
0.21032695472240448,
-0.02723870426416397,
0.10943526029586792,
0.046215057373046875,
0.14968623220920563,
0.14076586067676544,
0.0750284343957901,
-0.26745903491973877,
0.05391060560941696,
-0.4678499102592468,
0.023933958262205124,
-0.7974928617477417,
-0.1844596266746521,
-0.2857258915901184,
0.4195897579193115,
0.0965256541967392,
-0.2490946501493454,
-0.3619532585144043,
-0.2362872064113617,
-0.08180690556764603,
-0.06468462198972702,
-0.07262291014194489,
0.2890297770500183,
0.3497768044471741,
-0.0253404900431633,
0.2504759430885315,
-0.20981721580028534,
-0.6478797197341919,
0.36522558331489563,
0.3385472297668457,
-0.1728704869747162,
0.2750796377658844,
0.2544649839401245,
0.13274601101875305,
0.02004246599972248,
0.7073169350624084,
0.44934001564979553,
0.24583487212657928,
-0.17125116288661957,
-0.2525147795677185,
-0.2522232234477997,
-0.1348087340593338,
-0.17725470662117004,
0.16723716259002686,
0.42697426676750183,
0.07649435102939606,
0.12272121012210846,
0.04928421229124069,
-0.16830386221408844,
0.37674984335899353,
-0.2033344954252243,
0.21213479340076447,
-0.34965816140174866,
0.2615739405155182,
-0.12492650747299194,
-0.026244476437568665,
0.14271004498004913,
-0.07106664031744003,
-0.29824090003967285,
-0.021323762834072113,
0.22214604914188385,
-0.07198292762041092,
0.19989490509033203,
-0.021662063896656036,
0.03896402195096016,
0.30839115381240845,
0.360653817653656,
-0.02305324748158455,
0.023148734122514725,
-0.23520034551620483,
0.05431574583053589,
-0.6244335770606995,
-0.12824741005897522,
0.1995547115802765,
-0.03308410942554474,
0.25624948740005493,
0.07414176315069199,
-0.007819212973117828,
0.30907994508743286,
0.3250446021556854,
-0.19783970713615417,
0.4320259690284729,
0.04049956798553467,
-0.4154110252857208,
0.1098870038986206,
0.2035486400127411,
-0.11843611299991608,
0.025622688233852386,
-0.3724910020828247,
0.15306490659713745,
-0.33717331290245056,
0.03451894223690033,
-0.23553960025310516,
0.19781377911567688,
0.13287673890590668,
0.2812320291996002,
0.3255493938922882,
0.2910907566547394,
0.3564448356628418,
0.1634206473827362,
-0.10856126248836517,
0.11139842122793198,
0.1001247763633728,
0.1437690556049347,
0.07454974204301834,
-0.2126619815826416,
0.28668174147605896,
-0.3150634467601776,
0.029842445626854897,
-0.27749454975128174,
0.062209874391555786,
0.07305628061294556,
-0.11227458715438843,
-0.2861880660057068,
0.2706141173839569,
-0.2592400312423706,
-0.15197278559207916,
0.3597264289855957,
0.5490157604217529,
-0.10069562494754791,
0.3713228106498718,
-0.01608400046825409,
-0.21339166164398193,
0.331341415643692,
-0.14476938545703888,
-0.40601831674575806,
-0.14744196832180023,
0.316901832818985,
0.1300828754901886,
-0.09067881107330322,
-0.5937151908874512,
-0.16602185368537903,
0.35272860527038574,
0.2629031240940094,
-0.5617900490760803,
0.2547891139984131,
-0.23645620048046112,
-0.23036867380142212,
0.011693261563777924,
-0.4590011537075043,
-0.10154601186513901,
-0.06127405911684036,
0.13274116814136505,
0.2433956414461136
] |
https://github.com/huggingface/datasets/issues/2553 | load_dataset("web_nlg") NonMatchingChecksumError | Hi ! Thanks for reporting. This is due to the WebNLG repository that got updated today.
I just pushed a fix at #2558 - this shouldn't happen anymore in the future. | Hi! It seems the WebNLG dataset gives a NonMatchingChecksumError.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('web_nlg', name="release_v3.0_en", split="dev")
```
Gives
```
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://gitlab.com/shimorina/webnlg-dataset/-/archive/master/webnlg-dataset-master.zip']
```
## Environment info
- `datasets` version: 1.8.0
- Platform: macOS-11.3.1-x86_64-i386-64bit
- Python version: 3.9.4
- PyArrow version: 3.0.0
Also tested on Linux, with python 3.6.8 | 31 | load_dataset("web_nlg") NonMatchingChecksumError
Hi! It seems the WebNLG dataset gives a NonMatchingChecksumError.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset('web_nlg', name="release_v3.0_en", split="dev")
```
Gives
```
NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://gitlab.com/shimorina/webnlg-dataset/-/archive/master/webnlg-dataset-master.zip']
```
## Environment info
- `datasets` version: 1.8.0
- Platform: macOS-11.3.1-x86_64-i386-64bit
- Python version: 3.9.4
- PyArrow version: 3.0.0
Also tested on Linux, with python 3.6.8
Hi ! Thanks for reporting. This is due to the WebNLG repository that got updated today.
I just pushed a fix at #2558 - this shouldn't happen anymore in the future. | [
-0.19279488921165466,
0.12983962893486023,
-0.13637618720531464,
0.04064231365919113,
0.26515719294548035,
0.008678719401359558,
0.13199776411056519,
0.4511449337005615,
0.29637283086776733,
0.08619610965251923,
-0.06551375240087509,
0.2723959684371948,
0.02208835259079933,
-0.025522081181406975,
-0.21546581387519836,
0.5214453935623169,
0.0755513459444046,
0.01624460518360138,
-0.10936981439590454,
-0.14617887139320374,
-0.20667146146297455,
0.1184711903333664,
-0.07337384670972824,
-0.10032148659229279,
0.06361518800258636,
0.22365500032901764,
0.24991768598556519,
0.21342316269874573,
-0.12483220547437668,
-0.2628318965435028,
0.32328087091445923,
-0.04954691603779793,
-0.08511142432689667,
0.22110432386398315,
-0.00010712481162045151,
0.15157632529735565,
0.3256530165672302,
-0.02564426138997078,
-0.4283013939857483,
0.06415311247110367,
-0.5148389935493469,
-0.5065798759460449,
-0.018827414140105247,
-0.20065456628799438,
-0.0035353004932403564,
0.24381457269191742,
0.09486738592386246,
-0.1746029555797577,
0.1221940740942955,
0.15834034979343414,
0.28393682837486267,
0.5558198690414429,
-0.005537860095500946,
0.1301897168159485,
0.039026375859975815,
-0.11251527070999146,
-0.1401672661304474,
0.21859079599380493,
0.08098243921995163,
-0.13056865334510803,
-0.3386833369731903,
0.1725434958934784,
-0.25408318638801575,
0.2696693539619446,
0.11475696414709091,
-0.0982419028878212,
0.2315460443496704,
-0.08170031011104584,
0.16343903541564941,
0.38822129368782043,
0.16148269176483154,
-0.21116110682487488,
-0.2111988216638565,
-0.14158184826374054,
-0.09774115681648254,
-0.06480813026428223,
0.23982304334640503,
0.37237581610679626,
-0.2639216482639313,
-0.08066028356552124,
-0.3824215531349182,
0.24063609540462494,
0.13032394647598267,
0.1618119478225708,
0.09316910803318024,
0.2458067387342453,
0.05263986438512802,
-0.01703432947397232,
-0.011707838624715805,
-0.20155087113380432,
0.17082270979881287,
-0.41769078373908997,
-0.16169944405555725,
0.0688042938709259,
-0.5657452940940857,
-0.12346582114696503,
0.24199795722961426,
0.5164675116539001,
0.39479586482048035,
0.4451563358306885,
0.2517748177051544,
0.24481970071792603,
-0.20924584567546844,
0.12714853882789612,
-0.04403295740485191,
0.14949388802051544,
0.21719470620155334,
-0.0837603285908699,
0.32541537284851074,
0.0024214638397097588,
0.02633567526936531,
0.23408779501914978,
0.16020113229751587,
-0.14985576272010803,
0.5749768614768982,
0.0011795219033956528,
0.18589335680007935,
-0.1588832288980484,
-0.2398219257593155,
0.22972692549228668,
0.11528555303812027,
-0.16118642687797546,
0.0508989617228508,
0.36723634600639343,
-0.15734601020812988,
0.20449116826057434,
-0.08393555879592896,
0.17328591644763947,
-0.1468553990125656,
-0.2998722493648529,
-0.2878328561782837,
-0.2022194117307663,
-0.059631362557411194,
-0.029689492657780647,
0.20521429181098938,
-0.0602191723883152,
0.32273778319358826,
0.126093327999115,
0.015207566320896149,
-0.03983776271343231,
0.17059874534606934,
0.10354526340961456,
-0.08059012144804001,
0.29385629296302795,
0.04895699396729469,
0.1108824834227562,
0.23251502215862274,
0.08429199457168579,
-0.15139225125312805,
0.07216432690620422,
-0.11991726607084274,
-0.21067029237747192,
0.05816865339875221,
0.27757033705711365,
-0.38275402784347534,
-0.14130739867687225,
-0.019572779536247253,
-0.4089508354663849,
0.28659534454345703,
-0.09168611466884613,
0.06419138610363007,
-0.2404453307390213,
-0.14413228631019592,
-0.2984170615673065,
-0.10503069311380386,
0.16966883838176727,
0.2377004325389862,
-0.029622245579957962,
-0.17844738066196442,
-0.1316380798816681,
0.3148428201675415,
0.37826910614967346,
-0.10697785019874573,
-0.15479007363319397,
-0.23937703669071198,
0.1331309974193573,
0.5495227575302124,
-0.14879335463047028,
-0.4355502128601074,
0.14574693143367767,
-0.01228272169828415,
0.27301469445228577,
-0.10011602193117142,
0.24682393670082092,
-0.42841213941574097,
0.02067195251584053,
-0.2852044701576233,
0.28632569313049316,
0.012360701337456703,
0.29562148451805115,
-0.24429863691329956,
-0.2357427030801773,
0.5397993326187134,
0.07658776640892029,
-0.041094180196523666,
-0.012747950851917267,
0.14153476059436798,
-0.24479863047599792,
0.32843878865242004,
-0.28727924823760986,
-0.061706699430942535,
0.07392086088657379,
0.23718903958797455,
0.020666036754846573,
0.0100722536444664,
-0.012223754078149796,
-0.524913489818573,
0.264413058757782,
-0.10441634804010391,
0.042752139270305634,
-0.0249287411570549,
-0.07072053104639053,
-0.15820205211639404,
0.03002234362065792,
-0.14339801669120789,
0.034607406705617905,
0.17069357633590698,
0.5151422023773193,
0.2642630934715271,
0.04455916956067085,
0.024048645049333572,
0.2835572063922882,
-0.3699108958244324,
0.000020416046027094126,
-0.5306885838508606,
0.27238309383392334,
-0.0884009525179863,
-0.09013108909130096,
0.08434715867042542,
-0.04414884001016617,
-0.05752943456172943,
0.10413586348295212,
-0.22342684864997864,
0.3572005331516266,
0.052774056792259216,
-0.03788676857948303,
0.07283440232276917,
0.32917535305023193,
-0.11578574031591415,
-0.26377183198928833,
-0.07209431380033493,
0.6472374796867371,
0.1213916689157486,
-0.10788872838020325,
-0.168426513671875,
0.5147510170936584,
-0.12856550514698029,
0.16891711950302124,
-0.017598159611225128,
0.13985559344291687,
0.26366880536079407,
-0.16206291317939758,
-0.20841477811336517,
-0.11597979068756104,
0.2796032726764679,
-0.18193411827087402,
0.20425467193126678,
0.13519026339054108,
-0.23311690986156464,
0.014667071402072906,
0.40841320157051086,
-0.16457296907901764,
0.22195127606391907,
0.1339523196220398,
0.2364460527896881,
-0.24542909860610962,
-0.009846800938248634,
0.19512109458446503,
0.3664533793926239,
0.15310250222682953,
0.042347535490989685,
0.05991338938474655,
-0.28928807377815247,
-0.23282022774219513,
0.03000050038099289,
0.02167534828186035,
0.2292785495519638,
0.29692772030830383,
0.290549635887146,
-0.2966410517692566,
-0.4513899087905884,
-0.10664141178131104,
-0.08665724843740463,
0.2381998747587204,
-0.3005841076374054,
-0.06912405043840408,
-0.31293997168540955,
-0.2774084806442261,
-0.293386846780777,
-0.3166303336620331,
-0.4951162338256836,
-0.5132742524147034,
-0.009108655154705048,
0.05630665645003319,
-0.18291248381137848,
0.3383723795413971,
-0.4450572729110718,
0.03773093223571777,
0.18503813445568085,
0.08694372326135635,
-0.03774595260620117,
-0.12096209824085236,
-0.08764076977968216,
0.0553462915122509,
0.3775409162044525,
0.011562906205654144,
0.3231649100780487,
-0.31493034958839417,
-0.07581151276826859,
-0.33809587359428406,
-0.22872692346572876,
0.026402808725833893,
-0.09509120881557465,
0.09998954087495804,
0.2130424678325653,
0.23595952987670898,
-0.006554365158081055,
-0.19095680117607117,
0.34537094831466675,
-0.23210276663303375,
-0.4061722159385681,
0.33268171548843384,
-0.024583695456385612,
-0.0256826039403677,
0.012629590928554535,
-0.08882787078619003,
-0.09776195883750916,
-0.2715514302253723,
-0.05558902025222778,
0.17483766376972198,
0.21740350127220154,
0.29240521788597107,
-0.0828535184264183,
-0.07497934997081757,
0.11266598850488663,
0.4408074617385864,
-0.3611866533756256,
-0.5223003625869751,
0.424441933631897,
0.046634551137685776,
-0.35147643089294434,
-0.1904102861881256,
-0.06771307438611984,
0.2386675775051117,
-0.008747013285756111,
-0.4237614870071411,
-0.15798412263393402,
-0.37700366973876953,
0.22113746404647827,
0.18551214039325714,
-0.031765930354595184,
0.1636945605278015,
0.058596834540367126,
-0.12098177522420883,
-0.30271288752555847,
-0.07903186231851578,
0.18297924101352692,
-0.2658410966396332,
0.2607695460319519,
-0.13615939021110535,
0.2820146977901459,
-0.0035263076424598694,
0.20517957210540771,
0.4078880548477173,
0.013267498463392258,
0.012966662645339966,
-0.003606121987104416,
0.3086511492729187,
-0.04454139620065689,
-0.2472737580537796,
-0.13899806141853333,
0.02742219716310501,
0.0640772208571434,
0.2704850435256958,
-0.013738352805376053,
-0.13996390998363495,
-0.05765400826931,
0.07027839124202728,
-0.13782727718353271,
-0.2034449726343155,
0.06696870177984238,
-0.06159380078315735,
0.12629520893096924,
0.18689848482608795,
0.11679824441671371,
-0.2275162935256958,
-0.3898291289806366,
0.027228232473134995,
0.2789313495159149,
-0.2099253237247467,
-0.050867460668087006,
-0.37763506174087524,
0.07200607657432556,
-0.09770683199167252,
0.3176909387111664,
0.14396235346794128,
0.48314669728279114,
0.2175760418176651,
-0.41040992736816406,
-0.009488068521022797,
-0.16123266518115997,
0.12950828671455383,
-0.4809761047363281,
0.393915057182312,
0.01829572767019272,
0.12029868364334106,
-0.46626347303390503,
-0.12577229738235474,
0.024008821696043015,
-0.23703394830226898,
0.543012261390686,
0.003122858703136444,
-0.15673936903476715,
0.006920164451003075,
0.0016439296305179596,
0.3630622923374176,
-0.19510656595230103,
-0.2624644637107849,
-0.45722439885139465,
-0.04251835495233536,
-0.3031868636608124,
-0.08496256917715073,
-0.29188400506973267,
0.11517077684402466,
-0.09525057673454285,
0.15475581586360931,
-0.036361515522003174,
-0.05993163585662842,
0.2803002893924713,
0.11408783495426178,
0.0919065847992897,
0.06815415620803833,
0.2160036265850067,
-0.3673734664916992,
0.1742975115776062,
-0.09506749361753464,
0.6290804743766785,
-0.09041076898574829,
-0.405077189207077,
-0.02007995918393135,
-0.11386770009994507,
-0.2192770540714264,
0.10241930186748505,
0.07123371213674545,
-0.021134361624717712,
0.3180248439311981,
-0.029225148260593414,
-0.13213784992694855,
-0.052964720875024796,
-0.06548454612493515,
0.05684392899274826,
-0.3134825825691223,
-0.23225261270999908,
0.24389392137527466,
0.024927865713834763,
-0.09232790768146515,
0.30969488620758057,
-0.31698334217071533,
0.0038184593431651592,
0.19917331635951996,
0.2315116822719574,
0.855177104473114,
0.09462980926036835,
0.052402760833501816,
0.260397732257843,
-0.23810933530330658,
0.04610695317387581,
-0.22183820605278015,
0.12226248532533646,
-0.3847217261791229,
-0.1620907038450241,
0.02962891198694706,
-0.23975467681884766,
0.11046814918518066,
0.1308327317237854,
0.04565810039639473,
0.3157448470592499,
0.08244499564170837,
0.2654358744621277,
0.026785865426063538,
0.26266995072364807,
-0.19821716845035553,
-0.007739828899502754,
-0.17839591205120087,
0.2799907326698303,
-0.10963380336761475,
0.28391003608703613,
-0.024587925523519516,
-0.0027105379849672318,
-0.06802713871002197,
-0.12033919245004654,
-0.30877307057380676,
0.35784950852394104,
0.29868069291114807,
0.3499225974082947,
0.31097617745399475,
-0.030148319900035858,
-0.44353339076042175,
0.23089104890823364,
0.32045650482177734,
0.17092163860797882,
-0.2796057462692261,
0.10427454113960266,
0.3298262655735016,
0.32115647196769714,
-0.05692989379167557,
0.036034565418958664,
0.2986282706260681,
-0.03425167500972748,
-0.16731727123260498,
-0.011326730251312256,
-0.0020908620208501816,
-0.49328362941741943,
-0.04640990495681763,
-0.04548221081495285,
-0.30583882331848145,
-0.2540881931781769,
0.060503039509058,
0.01960451900959015,
0.16033059358596802,
-0.20267511904239655,
0.1930447667837143,
0.27114689350128174,
-0.15881380438804626,
0.25498372316360474,
0.06089726462960243,
-0.3740060031414032,
-0.20733746886253357,
0.5218608975410461,
0.14861392974853516,
0.06977374106645584,
0.30763742327690125,
0.06543141603469849,
-0.22386567294597626,
-0.2767477035522461,
0.010303251445293427,
0.0817592442035675,
-0.2700173258781433,
0.08665245771408081,
-0.2723056972026825,
0.1638423055410385,
0.017519714310765266,
0.4179403483867645,
0.19809332489967346,
0.28341144323349,
0.1301138699054718,
-0.46196043491363525,
-0.1199914813041687,
-0.19624032080173492,
0.22074772417545319,
0.23354144394397736,
-0.31029805541038513,
0.029103251174092293,
-0.0688462108373642,
-0.06427425146102905,
-0.40178027749061584,
-0.11796014755964279,
-0.3063410222530365,
0.04543812945485115,
-0.037814557552337646,
-0.08232124894857407,
0.014070145785808563,
0.01977204717695713,
0.20366822183132172,
-0.1700207144021988,
-0.3156556785106659,
-0.2876890003681183,
0.008588660508394241,
0.08341220766305923,
0.05856257304549217,
-0.18697507679462433,
0.06151493266224861,
-0.050439272075891495,
-0.03727732598781586,
-0.1653626710176468,
-0.006281306967139244,
0.05598107725381851,
-0.12455496191978455,
0.23158666491508484,
0.030283980071544647,
-0.05458647757768631,
0.1691436916589737,
-0.17043140530586243,
-0.48532965779304504,
0.09378882497549057,
0.026177555322647095,
0.01885952055454254,
0.16634537279605865,
0.041622526943683624,
0.22095680236816406,
0.13706377148628235,
-0.04573190212249756,
-0.07300710678100586,
0.3050607144832611,
-0.30602097511291504,
-0.09133729338645935,
0.3514893352985382,
0.28903016448020935,
0.24220165610313416,
-0.33098241686820984,
-0.09745462238788605,
0.11712458729743958,
0.31087857484817505,
-0.3707125782966614,
-0.04340392351150513,
0.26258227229118347,
0.1552300900220871,
0.13602124154567719,
0.09857824444770813,
0.07001027464866638,
-0.36903294920921326,
0.5197039246559143,
0.025308940559625626,
0.16972209513187408,
-0.4504549503326416,
0.1651877760887146,
0.37775853276252747,
-0.07523941993713379,
-0.11581116914749146,
0.1755262166261673,
-0.2276335060596466,
-0.0030608326196670532,
-0.022471606731414795,
-0.046796105802059174,
0.322611004114151,
-0.19822102785110474,
0.15862858295440674,
-0.28861314058303833,
-0.42043256759643555,
0.46018892526626587,
0.21647170186042786,
-0.1307116448879242,
0.021112821996212006,
0.3001401424407959,
0.240668386220932,
0.0003141481429338455,
0.23376646637916565,
-0.5237202644348145,
0.2197766900062561,
-0.16609510779380798,
-0.12398406863212585,
-0.17668764293193817,
-0.13082297146320343,
0.022597186267375946,
0.3250638544559479,
-0.03984193131327629,
0.09516210108995438,
0.008148416876792908,
0.17559373378753662,
-0.1504281908273697,
-0.6300576329231262,
0.0377608947455883,
-0.0301663801074028,
-0.07507046312093735,
-0.2521839737892151,
0.1274862140417099,
0.30729180574417114,
-0.17018048465251923,
0.0424116887152195,
0.3488602042198181,
0.3462335169315338,
0.34896528720855713,
0.24658815562725067,
0.012970793060958385,
-0.023269452154636383,
-0.02987695299088955,
-0.3037691116333008,
0.7039053440093994,
0.05581063777208328,
0.016437409445643425,
0.3652208745479584,
0.18725721538066864,
-0.18582406640052795,
0.05697763338685036,
-0.12071193754673004,
-0.19570282101631165,
-0.028100598603487015,
0.5019019842147827,
0.02377140149474144,
0.14742428064346313,
-0.33371368050575256,
0.20366650819778442,
-0.3072112202644348,
0.08721134066581726,
0.10411395132541656,
0.21707279980182648,
0.16621503233909607,
-0.2520652711391449,
0.12901386618614197,
-0.12721951305866241,
0.46572715044021606,
0.13481219112873077,
-0.09193453937768936,
-0.04465271532535553,
-0.38442885875701904,
-0.597916841506958,
0.27050676941871643,
-0.2651815712451935,
-0.04662870988249779,
-0.0824073851108551,
0.2728164494037628,
-0.051435403525829315,
0.19507169723510742,
0.17346814274787903,
-0.046184465289115906,
-0.1869150698184967,
0.06279995292425156,
-0.2228790521621704,
0.022134670987725258,
0.08496306836605072,
-0.20451676845550537,
-0.045315828174352646,
-0.29674819111824036,
0.2486700415611267,
0.03419751301407814,
0.2029132843017578,
-0.09038844704627991,
-0.043453797698020935,
-0.050929851830005646,
0.2771994173526764,
0.23989947140216827,
0.31353849172592163,
0.5241895914077759,
-0.08096259832382202,
-0.15977269411087036,
-0.24264046549797058,
-0.19349876046180725,
-0.12480191141366959,
0.34274372458457947,
-0.13327303528785706,
0.2896219491958618,
-0.04877118021249771,
-0.16103819012641907,
-0.2663971483707428,
0.27887991070747375,
0.1420765370130539,
-0.2243940234184265,
-0.12599590420722961,
0.07907938957214355,
-0.238790363073349,
0.09935196489095688,
-0.20770524442195892,
-0.08647125214338303,
0.17357796430587769,
0.44445154070854187,
-0.13182708621025085,
-0.22260552644729614,
0.43845134973526,
-0.09634179621934891,
-0.22031061351299286,
-0.28802838921546936,
0.19758103787899017,
-0.1742267608642578,
-0.2328074872493744,
-0.6331066489219666,
0.0692526325583458,
0.34894493222236633,
0.14092092216014862,
-0.09394263476133347,
0.20526450872421265,
-0.17683719098567963,
0.22152163088321686,
-0.05070709437131882,
0.2084628939628601,
0.10359756648540497,
-0.33445999026298523,
0.05407720431685448,
-0.16850546002388
] |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | Two questions:
- with `datasets-cli env` we don't have any information on the dataset script version used. Should we give access to this somehow? Either as a note in the Error message or as an argument with the name of the dataset to `datasets-cli env`?
- I don't really understand why the id is duplicated in the code of `code_search_net`, how can I debug this actually? | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
| 66 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
Two questions:
- with `datasets-cli env` we don't have any information on the dataset script version used. Should we give access to this somehow? Either as a note in the Error message or as an argument with the name of the dataset to `datasets-cli env`?
- I don't really understand why the id is duplicated in the code of `code_search_net`, how can I debug this actually? | [
-0.009492114186286926,
0.004908770322799683,
-0.10378046333789825,
0.3735044598579407,
0.046931058168411255,
-0.05958117917180061,
0.2355329394340515,
0.23767659068107605,
0.05807117745280266,
0.042098745703697205,
-0.08941300958395004,
0.4072089195251465,
-0.1577007919549942,
0.10433890670537949,
0.16285893321037292,
0.06703052669763565,
0.014338254928588867,
0.15045127272605896,
0.12020227313041687,
-0.12889888882637024,
-0.32790812849998474,
0.22176681458950043,
-0.24978968501091003,
0.05055004730820656,
-0.23360982537269592,
-0.13893309235572815,
-0.21910978853702545,
0.29460904002189636,
-0.17181290686130524,
-0.6023653745651245,
0.23651449382305145,
0.2469085454940796,
-0.30475470423698425,
0.34852662682533264,
-0.00011295882723061368,
0.14549864828586578,
0.3868986964225769,
-0.011275144293904305,
-0.24606797099113464,
-0.19642625749111176,
-0.10868215560913086,
-0.1141102984547615,
0.09371685236692429,
-0.31640011072158813,
0.0184592567384243,
-0.15017011761665344,
-0.1131839007139206,
-0.5023269653320312,
0.876992404460907,
0.21019770205020905,
0.2571643590927124,
0.230317160487175,
0.31212544441223145,
-0.22142715752124786,
0.285780668258667,
-0.14498057961463928,
-0.04080813378095627,
0.4033096432685852,
0.17806753516197205,
-0.050453245639801025,
-0.0015694200992584229,
0.253557950258255,
0.14914530515670776,
-0.09222827851772308,
0.48892131447792053,
0.004278950858861208,
0.052360814064741135,
-0.3802723288536072,
0.18330416083335876,
0.08421800285577774,
0.13998627662658691,
-0.2937673032283783,
-0.25340786576271057,
-0.2852417826652527,
-0.000602091196924448,
-0.23831146955490112,
0.35818013548851013,
0.11302818357944489,
-0.18320928514003754,
0.10096905380487442,
-0.023433005437254906,
-0.24438801407814026,
-0.020939849317073822,
-0.0669795423746109,
-0.002475842833518982,
0.0001438632607460022,
-0.04068030044436455,
0.17414845526218414,
0.14366388320922852,
-0.030949808657169342,
0.29420724511146545,
-0.13356921076774597,
0.10886189341545105,
0.21964268386363983,
-0.48743075132369995,
0.10885265469551086,
-0.04173775762319565,
-0.0666244849562645,
0.2526281177997589,
0.05010636895895004,
0.1586541384458542,
-0.13832378387451172,
0.058277588337659836,
0.03654562309384346,
0.13621166348457336,
0.11763900518417358,
0.02473853901028633,
0.23959174752235413,
0.19721828401088715,
-0.2188268005847931,
-0.2711264491081238,
-0.05646713823080063,
-0.17859137058258057,
-0.15166321396827698,
0.4401805102825165,
0.08090847730636597,
0.5045520067214966,
0.05163651332259178,
-0.19577305018901825,
0.1798708587884903,
-0.18087831139564514,
-0.17192591726779938,
0.07397186756134033,
0.33158329129219055,
0.18269260227680206,
-0.3608224093914032,
0.08121492713689804,
0.23049552738666534,
-0.1570224165916443,
-0.20117448270320892,
-0.31563761830329895,
-0.14958766102790833,
-0.0772535502910614,
-0.1267658770084381,
0.2154259830713272,
-0.575531542301178,
0.2917329967021942,
0.2776087820529938,
-0.07649004459381104,
-0.4185137450695038,
-0.010602288879454136,
0.06612792611122131,
-0.21158462762832642,
0.10408017039299011,
-0.03969692438840866,
0.09296474605798721,
-0.08532482385635376,
-0.23814313113689423,
-0.08661974966526031,
0.2018008530139923,
-0.21553438901901245,
-0.38415858149528503,
-0.01138092391192913,
0.270018607378006,
0.04605846107006073,
0.12732452154159546,
0.01726706326007843,
0.034430574625730515,
0.22378231585025787,
0.19118811190128326,
0.03742250055074692,
-0.03368957340717316,
-0.02447427809238434,
-0.3202984631061554,
0.23071369528770447,
0.6258888840675354,
-0.1388693004846573,
-0.0994994193315506,
-0.16616058349609375,
-0.03379132226109505,
0.08669615536928177,
0.39924490451812744,
-0.23786047101020813,
0.42698755860328674,
-0.3161391317844391,
0.2103261500597,
0.7067997455596924,
-0.2062661349773407,
-0.32505378127098083,
0.13620594143867493,
-0.2523130774497986,
-0.14976976811885834,
0.10353537648916245,
0.026996774598956108,
0.1862991750240326,
0.09564616531133652,
0.15199361741542816,
-0.07510075718164444,
0.0733930766582489,
-0.09793579578399658,
-0.38469114899635315,
-0.31824126839637756,
0.13996878266334534,
-0.07881215214729309,
0.1862506866455078,
-0.1908336877822876,
0.26999592781066895,
-0.15566855669021606,
0.0582115575671196,
-0.13123531639575958,
-0.12056028842926025,
0.002675289288163185,
0.27146005630493164,
0.04080456495285034,
0.08875120431184769,
-0.008644912391901016,
-0.4823824167251587,
0.37476420402526855,
-0.33603060245513916,
-0.2697572112083435,
-0.1959288865327835,
-0.3034653067588806,
-0.35152918100357056,
0.14388178288936615,
-0.5467947125434875,
0.014295749366283417,
0.2060530185699463,
-0.06631478667259216,
0.21715565025806427,
0.10206335783004761,
-0.17694002389907837,
0.15948128700256348,
0.05423819273710251,
0.11003502458333969,
-0.2068200409412384,
0.25098738074302673,
-0.4732958674430847,
-0.042825326323509216,
0.05889187008142471,
0.23044422268867493,
0.348660409450531,
-0.12667056918144226,
-0.16886761784553528,
0.44401970505714417,
-0.2193268984556198,
0.0511581189930439,
-0.01633448153734207,
-0.08884985744953156,
0.13984209299087524,
-0.3815077841281891,
0.21653631329536438,
0.25002700090408325,
0.1734207272529602,
-0.17316240072250366,
-0.07871893793344498,
0.3603442311286926,
-0.111679807305336,
0.09486416727304459,
-0.04136683791875839,
-0.08704642206430435,
0.07926733791828156,
-0.11977925896644592,
0.16312119364738464,
-0.10418485105037689,
0.27822145819664,
-0.31069332361221313,
0.389061838388443,
0.17473988234996796,
-0.2443798929452896,
0.12069572508335114,
0.2313813716173172,
-0.04080631956458092,
0.1052943617105484,
0.012035898864269257,
0.03238475322723389,
-0.19120267033576965,
-0.28774312138557434,
0.2358517199754715,
0.3477754592895508,
0.15417708456516266,
-0.05847484990954399,
0.2757799029350281,
-0.01130319107323885,
-0.23523803055286407,
0.39303165674209595,
-0.12189379334449768,
-0.14291848242282867,
0.39764440059661865,
0.10854222625494003,
0.04897722974419594,
-0.38792499899864197,
-0.12170158326625824,
0.17144685983657837,
0.07672037184238434,
-0.282978892326355,
0.01257350854575634,
-0.12977996468544006,
-0.08319457620382309,
-0.456539124250412,
0.5397936105728149,
-0.11587387323379517,
-0.11273794621229172,
0.25203460454940796,
0.017056668177247047,
0.09759184718132019,
0.12043929100036621,
-0.23072512447834015,
0.18067818880081177,
-0.014884930104017258,
0.11465328186750412,
-0.23557408154010773,
-0.11242653429508209,
-0.07719054073095322,
0.03742798790335655,
0.393697053194046,
-0.06055140867829323,
0.5720287561416626,
-0.18892750144004822,
0.10648362338542938,
-0.17756575345993042,
-0.34767937660217285,
-0.013159416615962982,
-0.004104208201169968,
0.16645851731300354,
0.05053143948316574,
-0.1058802455663681,
-0.035334840416908264,
-0.37891823053359985,
0.29001253843307495,
-0.3102481961250305,
-0.4068108797073364,
-0.05429662764072418,
0.039876896888017654,
-0.06463714689016342,
-0.21492493152618408,
-0.5273550748825073,
-0.26504647731781006,
-0.24305382370948792,
0.31698065996170044,
-0.09621559828519821,
0.12793144583702087,
0.3379574418067932,
-0.12277185171842575,
-0.010192176327109337,
-0.005926030222326517,
0.2016517072916031,
-0.35942375659942627,
0.04805746302008629,
0.08746540546417236,
-0.050900399684906006,
-0.3533073663711548,
-0.0688934326171875,
-0.1448614001274109,
0.1514543741941452,
-0.09055016189813614,
-0.3825456500053406,
0.2584376931190491,
-0.23108018934726715,
0.45607131719589233,
-0.1607942432165146,
0.33051472902297974,
0.22429659962654114,
0.25995591282844543,
-0.15050482749938965,
-0.18581947684288025,
-0.05317271500825882,
0.11411359906196594,
-0.12539976835250854,
0.06859354674816132,
0.14049255847930908,
0.2881911098957062,
-0.30009332299232483,
0.8568350076675415,
0.6044374704360962,
0.002475593239068985,
0.20318731665611267,
-0.17341437935829163,
0.35417741537094116,
-0.23690259456634521,
-0.4189775884151459,
-0.2487497329711914,
0.07403158396482468,
0.024823948740959167,
0.11660341173410416,
-0.07401400059461594,
-0.09495667368173599,
0.1337454468011856,
-0.16915839910507202,
-0.6246012449264526,
-0.3106158375740051,
0.05089534819126129,
-0.22327563166618347,
0.15039300918579102,
0.055200252681970596,
0.007976286113262177,
0.052907560020685196,
0.06543875485658646,
-0.024786613881587982,
0.23863478004932404,
0.027817092835903168,
0.03209695965051651,
-0.18559807538986206,
-0.1713017076253891,
-0.394845575094223,
0.10872906446456909,
-0.14188644289970398,
0.1687641441822052,
-0.007477529346942902,
0.14032205939292908,
0.4162753224372864,
-0.19483233988285065,
0.65537428855896,
-0.08205433189868927,
0.11870139837265015,
0.11391927301883698,
0.1600475013256073,
-0.09184113889932632,
-0.12160596251487732,
-0.00048326700925827026,
0.4200722575187683,
0.12143038213253021,
0.08286794275045395,
-0.28634995222091675,
0.03288574516773224,
-0.061846084892749786,
0.29357293248176575,
-0.3494209051132202,
-0.4181870222091675,
-0.10620898008346558,
-0.32859107851982117,
-0.512342631816864,
-0.00037123262882232666,
-0.03325493261218071,
0.20048047602176666,
-0.063897505402565,
-0.037394024431705475,
-0.18627403676509857,
-0.2158709466457367,
0.045035723596811295,
0.21355298161506653,
0.27689269185066223,
0.05401662737131119,
0.5974947214126587,
0.43902719020843506,
-0.15270815789699554,
0.013894499279558659,
0.7316988110542297,
-0.03127199038863182,
0.00883544236421585,
-0.36022886633872986,
-0.2145642787218094,
-0.15163227915763855,
0.3003155589103699,
-0.17225080728530884,
0.14545637369155884,
0.06430980563163757,
-0.005578622221946716,
0.044281911104917526,
-0.22983980178833008,
0.16673265397548676,
-0.20308171212673187,
-0.19674307107925415,
-0.39538103342056274,
0.2921687066555023,
-0.1211480051279068,
-0.3467523455619812,
0.2700577974319458,
0.1420125961303711,
-0.19104573130607605,
0.3929697871208191,
-0.29618942737579346,
0.9225984811782837,
-0.27705293893814087,
-0.03541811928153038,
-0.12047939747571945,
-0.347320020198822,
0.2588883340358734,
-0.08521173894405365,
-0.06641867011785507,
-0.5006070733070374,
0.09528839588165283,
0.1400974541902542,
-0.09750749170780182,
-0.07516173273324966,
-0.00891198217868805,
-0.3079707622528076,
0.17834444344043732,
-0.05324873700737953,
0.03159373626112938,
-0.14958429336547852,
0.3273097276687622,
-0.0030508488416671753,
0.2265327125787735,
-0.04216935858130455,
0.10008968412876129,
0.18198846280574799,
0.2940022945404053,
-0.06903528422117233,
-0.014677142724394798,
0.14855073392391205,
-0.578879714012146,
-0.2620586156845093,
0.04558560252189636,
-0.3623946011066437,
0.49108582735061646,
0.020407719537615776,
-0.2879946231842041,
0.2039719671010971,
0.025668228045105934,
0.2825470566749573,
0.15512706339359283,
-0.033033423125743866,
0.0975014716386795,
0.3119632601737976,
0.1528390645980835,
-0.19077228009700775,
-0.05418551340699196,
-0.06687946617603302,
-0.019111955538392067,
-0.3339545428752899,
-0.06384953111410141,
-0.09815295040607452,
-0.38549280166625977,
-0.18964630365371704,
0.22951294481754303,
-0.20252011716365814,
-0.02923487313091755,
0.18317529559135437,
-0.0261085107922554,
-0.11397884786128998,
-0.2872943878173828,
0.15066532790660858,
0.1937769204378128,
0.028157483786344528,
0.1674932837486267,
-0.12792819738388062,
-0.15945911407470703,
0.04277174174785614,
0.15847823023796082,
0.377970427274704,
0.06918007880449295,
0.4716701805591583,
-0.2742198705673218,
-0.05766952782869339,
-0.22294768691062927,
0.09077266603708267,
0.07511883974075317,
-0.6839034557342529,
0.22684934735298157,
-0.33026063442230225,
0.22168104350566864,
0.049240924417972565,
0.4456793963909149,
0.3728163242340088,
0.2641696333885193,
0.04471032693982124,
-0.18844632804393768,
-0.12315378338098526,
-0.0249406099319458,
0.05570227652788162,
0.2507339417934418,
0.032763443887233734,
0.1545564830303192,
-0.05789969116449356,
0.22854861617088318,
-0.3535398244857788,
0.2854169011116028,
-0.06280560046434402,
0.11876486986875534,
-0.004162631928920746,
-0.11939213424921036,
-0.1067291647195816,
-0.05843326821923256,
0.1639813482761383,
0.07692498713731766,
-0.2023906409740448,
-0.24687358736991882,
-0.05158153548836708,
0.1313583254814148,
-0.005642974749207497,
0.0820990800857544,
-0.23496176302433014,
-0.22091591358184814,
0.2747098505496979,
-0.015355639159679413,
0.20102906227111816,
-0.12150748819112778,
0.1296388804912567,
0.03714509308338165,
0.13333675265312195,
0.1274617612361908,
-0.28565841913223267,
0.22581949830055237,
-0.271121621131897,
0.3647978901863098,
-0.02042444609105587,
0.18129712343215942,
-0.055941324681043625,
-0.08420811593532562,
-0.3009379804134369,
0.06596444547176361,
-0.19194255769252777,
0.12324883043766022,
0.17861154675483704,
-0.20079971849918365,
-0.1515878289937973,
0.37359583377838135,
0.18952520191669464,
0.5776076912879944,
-0.37478041648864746,
0.12332130968570709,
0.001604422926902771,
0.2342487871646881,
-0.327057421207428,
-0.12329762428998947,
0.014103461988270283,
0.021993417292833328,
0.24655118584632874,
0.40261292457580566,
0.3325187563896179,
-0.20412510633468628,
-0.100059375166893,
0.07733243703842163,
0.4145541191101074,
0.04319529980421066,
0.36922791600227356,
0.42157354950904846,
0.22497306764125824,
-0.14583779871463776,
0.3178177773952484,
-0.008856970816850662,
0.05325483903288841,
0.5327889919281006,
-0.5467885732650757,
0.13358791172504425,
0.007311291992664337,
0.2482733428478241,
0.2667936384677887,
-0.10069037973880768,
0.4065021276473999,
0.06374446302652359,
-0.06161554157733917,
0.023222077637910843,
0.05910370498895645,
0.16418227553367615,
-0.15358522534370422,
-0.09861716628074646,
-0.06751196086406708,
0.09404098987579346,
-0.14254209399223328,
-0.11540450155735016,
-0.12213706970214844,
-0.2859402596950531,
-0.23999767005443573,
0.11653260886669159,
-0.0442255400121212,
0.030431032180786133,
0.18573835492134094,
-0.00557071715593338,
-0.3209536075592041,
-0.3959382474422455,
0.24868106842041016,
0.2477923035621643,
0.3603605628013611,
-0.3663314878940582,
0.3189527690410614,
0.5262144804000854,
-0.09187538921833038,
0.18580876290798187,
0.5166122317314148,
0.6797177791595459,
0.2297297865152359,
-0.18708141148090363,
0.2632655203342438,
0.10307711362838745,
-0.14979395270347595,
-0.1714252382516861,
0.10479973256587982,
-0.09495837986469269,
0.15284569561481476,
0.14194843173027039,
0.09637580811977386,
-0.12545326352119446,
-0.05556393042206764,
0.22385428845882416,
0.0978107750415802,
-0.099917933344841,
0.2334599792957306,
-0.1785319745540619,
-0.1811482310295105,
0.09593069553375244,
0.1979932188987732,
-0.35874179005622864,
-0.0058029936626553535,
0.31785428524017334,
0.2464195042848587,
0.13596007227897644,
-0.19891376793384552,
0.13014096021652222,
0.050427570939064026,
0.33556869626045227,
0.20148412883281708,
0.09953285753726959,
-0.2653712332248688,
-0.02994612604379654,
-0.7278296947479248,
0.05788252130150795,
-0.44354918599128723,
-0.030902016907930374,
0.20305456221103668,
0.36284905672073364,
-0.2993820905685425,
0.04978180304169655,
0.37168434262275696,
0.04440360888838768,
0.014872767962515354,
0.21856406331062317,
-0.170569509267807,
-0.0004784800112247467,
0.4338771104812622,
-0.23299139738082886,
0.09710131585597992,
-0.3571491539478302,
0.36738574504852295,
-0.3747149109840393,
0.022320084273815155,
-0.1711810678243637,
0.06421834230422974,
0.1893087923526764,
-0.26246193051338196,
0.4224393367767334,
0.12649162113666534,
0.35076338052749634,
0.0014030039310455322,
-0.17009463906288147,
-0.20353445410728455,
-0.1124192401766777,
-0.22470077872276306,
0.2866606116294861,
0.4753935635089874,
0.10727593302726746,
-0.014148627407848835,
-0.4560542702674866,
-0.13254983723163605,
0.23713959753513336,
0.057124070823192596,
-0.09285155683755875,
-0.07322117686271667,
0.05777431279420853,
-0.1940237283706665,
0.11423143744468689,
0.033092644065618515,
0.2063196897506714,
-0.10235540568828583,
0.1780998706817627,
-0.2683040499687195,
-0.6693450808525085,
0.41637590527534485,
-0.1604197472333908,
-0.06921020150184631,
-0.15805409848690033,
0.3268052637577057,
0.25503870844841003,
0.11887615919113159,
-0.6650731563568115,
0.18001890182495117,
0.5570535063743591,
-0.271878719329834,
-0.03802819550037384,
0.15058596432209015,
-0.1034703254699707,
-0.023336753249168396,
-0.008342970162630081,
-0.038936346769332886,
-0.01697060838341713,
-0.295686811208725,
0.21664077043533325,
-0.31605756282806396
] |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | Thanks for reporting. There was indeed an issue with the keys. The key was the addition of the file id and row id, which resulted in collisions. I just opened a PR to fix this at https://github.com/huggingface/datasets/pull/2555
To help users debug this kind of errors we could try to show a message like this
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
```
This way users who what to look for if they want to debug this issue. I opened an issue to track this: https://github.com/huggingface/datasets/issues/2556 | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
| 97 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
Thanks for reporting. There was indeed an issue with the keys. The key was the addition of the file id and row id, which resulted in collisions. I just opened a PR to fix this at https://github.com/huggingface/datasets/pull/2555
To help users debug this kind of errors we could try to show a message like this
```python
DuplicateKeysError: both 42th and 1337th examples have the same keys `48`.
Please fix the dataset script at <path/to/the/dataset/script>
```
This way users who what to look for if they want to debug this issue. I opened an issue to track this: https://github.com/huggingface/datasets/issues/2556 | [
-0.039389438927173615,
-0.014791809022426605,
-0.09282343089580536,
0.33669793605804443,
0.08732002228498459,
-0.01393970474600792,
0.2003903090953827,
0.27122047543525696,
0.08827376365661621,
0.06673939526081085,
-0.08619938790798187,
0.3934497535228729,
-0.16239216923713684,
0.13293904066085815,
0.13472780585289001,
0.09150584787130356,
-0.04289286583662033,
0.18986907601356506,
0.11818854510784149,
-0.05612057074904442,
-0.3183745741844177,
0.2934965491294861,
-0.2228160947561264,
0.03282853215932846,
-0.20740465819835663,
-0.12978965044021606,
-0.18502835929393768,
0.23940229415893555,
-0.1695125252008438,
-0.6275758743286133,
0.25064656138420105,
0.22042438387870789,
-0.3045647144317627,
0.3702608048915863,
-0.00011187339259777218,
0.17764350771903992,
0.389007031917572,
-0.011912926100194454,
-0.26314860582351685,
-0.189460888504982,
-0.09327425062656403,
-0.0726647898554802,
0.098674476146698,
-0.25973349809646606,
-0.061249490827322006,
-0.14250227808952332,
-0.10621415078639984,
-0.5259363651275635,
0.8551867008209229,
0.22494268417358398,
0.2614647448062897,
0.1924869418144226,
0.34303155541419983,
-0.25819680094718933,
0.2435847520828247,
-0.17720390856266022,
-0.056781105697155,
0.3766365945339203,
0.20654010772705078,
-0.052830107510089874,
0.014835953712463379,
0.2883767783641815,
0.15086640417575836,
-0.10998393595218658,
0.45509859919548035,
-0.04613206163048744,
0.05629521235823631,
-0.3445611000061035,
0.20294180512428284,
0.08504338562488556,
0.09339381009340286,
-0.29722779989242554,
-0.2118210345506668,
-0.2630237638950348,
0.04365263134241104,
-0.24514809250831604,
0.34211307764053345,
0.1394784301519394,
-0.21775130927562714,
0.16495078802108765,
-0.017371322959661484,
-0.2581018805503845,
0.004423491656780243,
-0.04699055850505829,
-0.012423515319824219,
-0.01742621511220932,
-0.04727160558104515,
0.1445004642009735,
0.19043050706386566,
-0.029454320669174194,
0.26125240325927734,
-0.07703680545091629,
0.03196953609585762,
0.18670502305030823,
-0.5232824683189392,
0.10693450272083282,
-0.05280158668756485,
-0.1080395057797432,
0.22106772661209106,
0.04155830293893814,
0.1781444549560547,
-0.09878943115472794,
0.06307711452245712,
0.004616003483533859,
0.11861167848110199,
0.11133185029029846,
0.05107239633798599,
0.24794669449329376,
0.2089865654706955,
-0.1799352914094925,
-0.25216221809387207,
-0.04653302580118179,
-0.20121724903583527,
-0.16858553886413574,
0.37034595012664795,
0.058428164571523666,
0.5287953019142151,
0.07757274806499481,
-0.23168233036994934,
0.12419843673706055,
-0.14559347927570343,
-0.10063911974430084,
0.06109734997153282,
0.3620430529117584,
0.1859445869922638,
-0.3567805886268616,
0.10967233777046204,
0.22568254172801971,
-0.14237584173679352,
-0.19412590563297272,
-0.3171713054180145,
-0.10635924339294434,
-0.0811324417591095,
-0.1568123996257782,
0.24193452298641205,
-0.6133792996406555,
0.2899112403392792,
0.24165533483028412,
-0.10925373435020447,
-0.48363152146339417,
0.023033400997519493,
0.12351404130458832,
-0.19886669516563416,
0.0956890732049942,
0.010164834558963776,
0.07785410434007645,
-0.020328205078840256,
-0.23866483569145203,
-0.05125121399760246,
0.1840786337852478,
-0.25368669629096985,
-0.36331433057785034,
-0.0695420354604721,
0.2863246500492096,
0.06703025847673416,
0.08970654010772705,
0.0178215429186821,
0.03697652369737625,
0.20470094680786133,
0.1793242245912552,
0.002222210168838501,
-0.0245710127055645,
-0.07925675064325333,
-0.2655108571052551,
0.2568250298500061,
0.6351639032363892,
-0.0922880694270134,
-0.10679566115140915,
-0.17371588945388794,
-0.0022583045065402985,
0.08134425431489944,
0.3821578919887543,
-0.24293337762355804,
0.3917118012905121,
-0.35137826204299927,
0.17836283147335052,
0.7134474515914917,
-0.19588802754878998,
-0.35439199209213257,
0.18667832016944885,
-0.2593115568161011,
-0.21829459071159363,
0.0873141810297966,
0.02512064017355442,
0.17830829322338104,
0.11538928747177124,
0.15744321048259735,
-0.07603088021278381,
0.05861707031726837,
-0.05195273086428642,
-0.35514146089553833,
-0.35312241315841675,
0.10548985004425049,
-0.07883760333061218,
0.17293140292167664,
-0.15934902429580688,
0.27098968625068665,
-0.15264156460762024,
0.11806883662939072,
-0.12138654291629791,
-0.08495958149433136,
0.08233265578746796,
0.23901152610778809,
0.04968743026256561,
0.08244842290878296,
-0.0632927417755127,
-0.44615638256073,
0.3696318566799164,
-0.2972278594970703,
-0.26685845851898193,
-0.23902498185634613,
-0.25052037835121155,
-0.4130321443080902,
0.1440364271402359,
-0.5862922668457031,
-0.018084701150655746,
0.20478220283985138,
-0.03461545705795288,
0.20921742916107178,
0.103408083319664,
-0.1269439309835434,
0.1520022600889206,
0.059399060904979706,
0.08343379199504852,
-0.19859126210212708,
0.25220611691474915,
-0.4453633427619934,
-0.055045150220394135,
0.09480717778205872,
0.22529658675193787,
0.32521966099739075,
-0.09946693480014801,
-0.16273105144500732,
0.41750985383987427,
-0.24109019339084625,
0.01801447570323944,
-0.0007238239049911499,
-0.12094651162624359,
0.07873298972845078,
-0.393057256937027,
0.19474086165428162,
0.2712777256965637,
0.17837724089622498,
-0.16656480729579926,
-0.057337164878845215,
0.3320145606994629,
-0.08910435438156128,
0.09553848952054977,
-0.05274562910199165,
-0.031574077904224396,
0.11177770793437958,
-0.12019699811935425,
0.22024396061897278,
-0.1167670339345932,
0.2911607623100281,
-0.3164445459842682,
0.36563625931739807,
0.13195504248142242,
-0.23566067218780518,
0.13142943382263184,
0.3060257136821747,
0.02208765596151352,
0.18824361264705658,
0.01406078040599823,
0.008779555559158325,
-0.15509936213493347,
-0.31610921025276184,
0.24433396756649017,
0.30742019414901733,
0.1628214716911316,
-0.104836106300354,
0.27129778265953064,
0.02897653728723526,
-0.20051464438438416,
0.3751119375228882,
-0.17696551978588104,
-0.10466796904802322,
0.38296282291412354,
0.10481851547956467,
0.020004834979772568,
-0.4195501506328583,
-0.10607731342315674,
0.16659043729305267,
0.09044790267944336,
-0.24326582252979279,
0.024589737877249718,
-0.15732285380363464,
-0.055003490298986435,
-0.49268031120300293,
0.5171210765838623,
-0.11036145687103271,
-0.14315734803676605,
0.2413245290517807,
0.07236219197511673,
0.13623566925525665,
0.12447219341993332,
-0.23155155777931213,
0.14433126151561737,
0.04025676101446152,
0.09334387630224228,
-0.20830827951431274,
-0.11389385908842087,
-0.0725758895277977,
0.033853836357593536,
0.37839001417160034,
-0.07708556950092316,
0.5647822022438049,
-0.1624940186738968,
0.11646360158920288,
-0.2422075867652893,
-0.3452757000923157,
-0.01788516342639923,
0.007263990119099617,
0.1485370546579361,
0.08054855465888977,
-0.03759865462779999,
-0.021428359672427177,
-0.3726309537887573,
0.2817125618457794,
-0.3179253041744232,
-0.41350460052490234,
-0.0009354464709758759,
0.01580107770860195,
-0.03573315590620041,
-0.21294209361076355,
-0.5386605262756348,
-0.24696306884288788,
-0.26654574275016785,
0.31766873598098755,
-0.10624223947525024,
0.08213566243648529,
0.36337733268737793,
-0.05938832834362984,
-0.01683049649000168,
-0.04933834820985794,
0.17033924162387848,
-0.3394085764884949,
0.04502524808049202,
0.046049945056438446,
-0.0631040632724762,
-0.33258312940597534,
-0.04303213953971863,
-0.12315404415130615,
0.15626223385334015,
-0.11822637915611267,
-0.3490813970565796,
0.28301429748535156,
-0.2649714946746826,
0.41670313477516174,
-0.21162810921669006,
0.2905673682689667,
0.20584119856357574,
0.2561262845993042,
-0.14821909368038177,
-0.17120906710624695,
-0.029091211035847664,
0.10586023330688477,
-0.1715940237045288,
0.0603615902364254,
0.09474316239356995,
0.2958514988422394,
-0.2571828365325928,
0.818213701248169,
0.573610246181488,
-0.00000476837158203125,
0.19712898135185242,
-0.23205474019050598,
0.3561854064464569,
-0.25973576307296753,
-0.44004762172698975,
-0.2620584964752197,
0.1012614369392395,
0.08239691704511642,
0.1012614294886589,
-0.08907036483287811,
-0.10511071234941483,
0.14807242155075073,
-0.15352952480316162,
-0.587897002696991,
-0.3327074944972992,
0.06774981319904327,
-0.21549099683761597,
0.12114129960536957,
0.0649840235710144,
0.023683562874794006,
0.023672740906476974,
0.015650369226932526,
-0.011440429836511612,
0.22440575063228607,
-0.04299699515104294,
0.09034178406000137,
-0.14269734919071198,
-0.16010740399360657,
-0.39272287487983704,
0.12695927917957306,
-0.14554165303707123,
0.18795345723628998,
-0.004616744816303253,
0.18190807104110718,
0.389911949634552,
-0.20392100512981415,
0.6486157774925232,
-0.08424277603626251,
0.14716124534606934,
0.11631585657596588,
0.15495923161506653,
-0.10546716302633286,
-0.10310578346252441,
0.04343985393643379,
0.43346458673477173,
0.11045341193675995,
0.11018103361129761,
-0.2643681466579437,
0.012088675983250141,
-0.04174190014600754,
0.2710542678833008,
-0.35629498958587646,
-0.3989879786968231,
-0.1732005923986435,
-0.33623039722442627,
-0.5221701264381409,
0.007048659026622772,
0.013236084952950478,
0.2334468811750412,
-0.056603096425533295,
-0.09641186892986298,
-0.22303779423236847,
-0.20345744490623474,
0.008227698504924774,
0.20193322002887726,
0.2648085355758667,
0.11556064337491989,
0.5737646222114563,
0.3952612280845642,
-0.12763425707817078,
-0.0011030305176973343,
0.7134285569190979,
0.0046012308448553085,
-0.014134734869003296,
-0.3018507957458496,
-0.2454431802034378,
-0.17198798060417175,
0.2688557505607605,
-0.18160749971866608,
0.16813978552818298,
0.07850894331932068,
0.021937105804681778,
0.029203861951828003,
-0.19474062323570251,
0.18297788500785828,
-0.17914679646492004,
-0.21841925382614136,
-0.3810112178325653,
0.28493475914001465,
-0.14032240211963654,
-0.2812670171260834,
0.2780407667160034,
0.159003347158432,
-0.14472031593322754,
0.3344264030456543,
-0.34546780586242676,
0.8578020930290222,
-0.3358391523361206,
-0.054901834577322006,
-0.14180824160575867,
-0.3329256772994995,
0.24242892861366272,
-0.05552324280142784,
0.020100142806768417,
-0.5142740607261658,
0.04491120204329491,
0.17043547332286835,
-0.05521870404481888,
-0.08480840176343918,
-0.017753921449184418,
-0.31040188670158386,
0.17205077409744263,
-0.0476490817964077,
0.024828851222991943,
-0.1602254956960678,
0.34588760137557983,
-0.0029214080423116684,
0.24510203301906586,
-0.023507069796323776,
0.12506504356861115,
0.15157702565193176,
0.28199467062950134,
-0.03667524829506874,
-0.04485854133963585,
0.1928786337375641,
-0.5627148151397705,
-0.27462565898895264,
0.12140700966119766,
-0.3507399559020996,
0.5328583121299744,
0.012690020725131035,
-0.25848808884620667,
0.245496928691864,
0.02613064832985401,
0.2486751526594162,
0.1919756978750229,
-0.06569650769233704,
0.11848217248916626,
0.28669142723083496,
0.07375863939523697,
-0.22133515775203705,
-0.015550745651125908,
-0.0890037789940834,
-0.02792629599571228,
-0.3782755732536316,
-0.052739500999450684,
-0.05179310590028763,
-0.41211771965026855,
-0.14505335688591003,
0.25732606649398804,
-0.18298205733299255,
-0.039404161274433136,
0.1902218461036682,
-0.051570042967796326,
-0.10651257634162903,
-0.31052935123443604,
0.15818160772323608,
0.17548564076423645,
0.04202958568930626,
0.09818679094314575,
-0.04941478744149208,
-0.1876266598701477,
0.07878682017326355,
0.1677098274230957,
0.36557742953300476,
0.0784645602107048,
0.5398334264755249,
-0.24159470200538635,
-0.011098291724920273,
-0.2637150287628174,
0.07083595544099808,
0.09149174392223358,
-0.6893435120582581,
0.23056133091449738,
-0.26922354102134705,
0.22638021409511566,
0.13490170240402222,
0.45426011085510254,
0.3118371367454529,
0.20742300152778625,
0.06820929050445557,
-0.18998564779758453,
-0.08340319246053696,
-0.0749872475862503,
0.007905840873718262,
0.23835667967796326,
0.017030421644449234,
0.18543501198291779,
-0.0320165753364563,
0.21380603313446045,
-0.3605461120605469,
0.2981468141078949,
-0.0902470201253891,
0.08792054653167725,
-0.02354312688112259,
-0.13064277172088623,
-0.035133246332407,
-0.014416171237826347,
0.16856925189495087,
0.10066846758127213,
-0.20773710310459137,
-0.2502121031284332,
-0.06400653719902039,
0.12447154521942139,
-0.04244238883256912,
0.15019188821315765,
-0.22437570989131927,
-0.20867690443992615,
0.23107068240642548,
-0.04126941040158272,
0.22023719549179077,
-0.11250234395265579,
0.14271962642669678,
0.060799356549978256,
0.14830400049686432,
0.10306179523468018,
-0.24119478464126587,
0.1918826550245285,
-0.2597799599170685,
0.32322898507118225,
-0.06088327616453171,
0.1569918841123581,
-0.029761098325252533,
-0.07014615088701248,
-0.3087398111820221,
0.08462051302194595,
-0.16822217404842377,
0.09435607492923737,
0.154928058385849,
-0.25694483518600464,
-0.1614757776260376,
0.41191887855529785,
0.17230351269245148,
0.5156674385070801,
-0.3425483703613281,
0.12201310694217682,
-0.03145824372768402,
0.24934569001197815,
-0.3464595377445221,
-0.14096896350383759,
0.021881001070141792,
0.02302217110991478,
0.25206559896469116,
0.34629154205322266,
0.28954577445983887,
-0.20672038197517395,
-0.08918823301792145,
0.08854840695858002,
0.40307310223579407,
-0.009805489331483841,
0.3582564890384674,
0.3623289465904236,
0.2651088535785675,
-0.21787117421627045,
0.32886016368865967,
-0.02768930047750473,
0.05731276795268059,
0.5360884070396423,
-0.5569239854812622,
0.10199184715747833,
-0.019768647849559784,
0.22918355464935303,
0.21444833278656006,
-0.13211551308631897,
0.3921254873275757,
0.05363732576370239,
-0.10716117918491364,
-0.01699329912662506,
-0.0008156374096870422,
0.1937875598669052,
-0.1850806176662445,
-0.04185293987393379,
-0.10781595855951309,
0.0945618599653244,
-0.17130035161972046,
-0.09540189802646637,
-0.10709711909294128,
-0.22833538055419922,
-0.2598009705543518,
0.1113857626914978,
0.008882246911525726,
0.06507877260446548,
0.18446654081344604,
0.0013827979564666748,
-0.32700955867767334,
-0.39651405811309814,
0.20181724429130554,
0.28696849942207336,
0.3742627501487732,
-0.41095417737960815,
0.2661155164241791,
0.4641638398170471,
-0.09210605919361115,
0.17961572110652924,
0.5124382972717285,
0.62773197889328,
0.21433454751968384,
-0.15460123121738434,
0.24716199934482574,
0.07468880712985992,
-0.16644877195358276,
-0.17760099470615387,
0.07899654656648636,
-0.09692531824111938,
0.1750379502773285,
0.1689576804637909,
0.10145905613899231,
-0.13538257777690887,
-0.10176701843738556,
0.2639497220516205,
0.14370150864124298,
-0.1057983785867691,
0.19990001618862152,
-0.1909976750612259,
-0.13769611716270447,
-0.006362952291965485,
0.2526305913925171,
-0.3743945062160492,
0.023256581276655197,
0.3362027704715729,
0.21529582142829895,
0.1036926656961441,
-0.23920029401779175,
0.13877947628498077,
0.046993084251880646,
0.3233957886695862,
0.17460493743419647,
0.05726043879985809,
-0.22748605906963348,
-0.04849161207675934,
-0.6852203011512756,
0.11179050803184509,
-0.4422992467880249,
-0.020672012120485306,
0.18456922471523285,
0.3831758201122284,
-0.31316155195236206,
0.018934184685349464,
0.35426419973373413,
0.06768487393856049,
0.00869124848395586,
0.22287052869796753,
-0.21599730849266052,
0.008205682039260864,
0.4384152293205261,
-0.2551460266113281,
0.13033786416053772,
-0.40261319279670715,
0.35380318760871887,
-0.3760162889957428,
0.05282527953386307,
-0.12282596528530121,
0.051592230796813965,
0.12469944357872009,
-0.28924381732940674,
0.4157179594039917,
0.09776471555233002,
0.3264961540699005,
-0.01353420875966549,
-0.20336692035198212,
-0.22985920310020447,
-0.184199720621109,
-0.22369325160980225,
0.2773222327232361,
0.5202603936195374,
0.12674228847026825,
-0.017320886254310608,
-0.4276804029941559,
-0.1936791092157364,
0.24201816320419312,
0.04354630410671234,
-0.05918976292014122,
-0.06660846620798111,
0.06370345503091812,
-0.16879785060882568,
0.15290164947509766,
0.03105805069208145,
0.20292901992797852,
-0.08353887498378754,
0.1606072038412094,
-0.24916063249111176,
-0.676770031452179,
0.39497023820877075,
-0.15889231860637665,
-0.11281958222389221,
-0.10741446167230606,
0.35771048069000244,
0.2368585765361786,
0.08309263736009598,
-0.6305254697799683,
0.2515725791454315,
0.542817234992981,
-0.20587840676307678,
-0.020153388381004333,
0.14896123111248016,
-0.1389392614364624,
0.03234586492180824,
0.03188784047961235,
-0.04709307849407196,
0.038237735629081726,
-0.2773483693599701,
0.24150508642196655,
-0.3176979422569275
] |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | and are we sure there are not a lot of datasets which are now broken with this change? | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
| 18 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
and are we sure there are not a lot of datasets which are now broken with this change? | [
-0.046908412128686905,
-0.027153022587299347,
-0.1106116771697998,
0.3490990400314331,
0.08127715438604355,
-0.01561938226222992,
0.18118071556091309,
0.27708396315574646,
0.08159121870994568,
0.05441858619451523,
-0.05990682542324066,
0.391693115234375,
-0.18466106057167053,
0.1166161373257637,
0.15640462934970856,
0.07851558923721313,
-0.03128484636545181,
0.17281875014305115,
0.11068256199359894,
-0.054245784878730774,
-0.3256243169307709,
0.28873780369758606,
-0.23283101618289948,
0.03895236551761627,
-0.1848246157169342,
-0.1620793342590332,
-0.19118660688400269,
0.2588774561882019,
-0.18450985848903656,
-0.6111865043640137,
0.24181504547595978,
0.21374863386154175,
-0.30185800790786743,
0.3558101952075958,
-0.00011124828597530723,
0.17829473316669464,
0.39633071422576904,
-0.018304795026779175,
-0.24289856851100922,
-0.17859338223934174,
-0.09768401086330414,
-0.0869022086262703,
0.07829035818576813,
-0.29273149371147156,
-0.052299100905656815,
-0.13119389116764069,
-0.10200075805187225,
-0.5351579189300537,
0.8553098440170288,
0.23242680728435516,
0.2680366039276123,
0.19502116739749908,
0.33775705099105835,
-0.23569142818450928,
0.25380927324295044,
-0.18405328691005707,
-0.04789353162050247,
0.39113137125968933,
0.21762926876544952,
-0.0469379648566246,
-0.0018590167164802551,
0.3106984496116638,
0.15077871084213257,
-0.12269437313079834,
0.4385913908481598,
-0.037784185260534286,
0.05617344379425049,
-0.3310020864009857,
0.18063488602638245,
0.07259556651115417,
0.10407699644565582,
-0.3062257468700409,
-0.2338501214981079,
-0.2663581967353821,
0.03906554728746414,
-0.2513282001018524,
0.3439498543739319,
0.1335710883140564,
-0.22201216220855713,
0.16398224234580994,
-0.011153963394463062,
-0.26481693983078003,
0.011564679443836212,
-0.04753018915653229,
-0.015427988022565842,
0.017886430025100708,
-0.05898895859718323,
0.13689768314361572,
0.16079339385032654,
-0.046682536602020264,
0.27249929308891296,
-0.08961183577775955,
0.046729762107133865,
0.19412368535995483,
-0.5073846578598022,
0.11134184896945953,
-0.026300765573978424,
-0.08700557798147202,
0.23045951128005981,
0.026933621615171432,
0.1648995280265808,
-0.10911338776350021,
0.05962248519062996,
0.006026457995176315,
0.12558449804782867,
0.1220988929271698,
0.022441372275352478,
0.2442169040441513,
0.20857520401477814,
-0.15912416577339172,
-0.24336935579776764,
-0.035092271864414215,
-0.1751270890235901,
-0.19181270897388458,
0.3740758001804352,
0.08374515175819397,
0.5239517688751221,
0.08179411292076111,
-0.23966945707798004,
0.1370774805545807,
-0.12990257143974304,
-0.10126461088657379,
0.07003200799226761,
0.36654117703437805,
0.16080908477306366,
-0.3450779914855957,
0.11607378721237183,
0.18533849716186523,
-0.1395106017589569,
-0.1890878677368164,
-0.3252246379852295,
-0.08167856931686401,
-0.08586141467094421,
-0.16789285838603973,
0.2184513956308365,
-0.5809809565544128,
0.28657832741737366,
0.23056405782699585,
-0.09795129299163818,
-0.4757302701473236,
0.00766584649682045,
0.10496766865253448,
-0.20801439881324768,
0.08405467867851257,
0.001177668571472168,
0.05926341563463211,
-0.023182954639196396,
-0.22309844195842743,
-0.06815937906503677,
0.17335595190525055,
-0.25612500309944153,
-0.3439771234989166,
-0.08128461986780167,
0.29830116033554077,
0.06877666711807251,
0.09403899312019348,
0.01888018101453781,
0.03600490838289261,
0.2115163803100586,
0.16895408928394318,
0.019319526851177216,
-0.02014802023768425,
-0.06893996149301529,
-0.2622360289096832,
0.2715478241443634,
0.6408420205116272,
-0.085200235247612,
-0.11437078565359116,
-0.16305722296237946,
-0.011972494423389435,
0.08202201873064041,
0.37357038259506226,
-0.2195253074169159,
0.40989652276039124,
-0.3701930046081543,
0.17024822533130646,
0.7158523201942444,
-0.20983242988586426,
-0.3514035642147064,
0.176858589053154,
-0.2566373944282532,
-0.19277562201023102,
0.10628531873226166,
0.01774510182440281,
0.17177240550518036,
0.12715348601341248,
0.19199520349502563,
-0.07450046390295029,
0.04964154213666916,
-0.050587233155965805,
-0.3718303143978119,
-0.35305413603782654,
0.10300113260746002,
-0.08655974268913269,
0.19556662440299988,
-0.17175433039665222,
0.26262661814689636,
-0.13025574386119843,
0.11709241569042206,
-0.11451494693756104,
-0.09609084576368332,
0.08498038351535797,
0.24913804233074188,
0.02793356031179428,
0.08144979178905487,
-0.07258795201778412,
-0.45116114616394043,
0.36149099469184875,
-0.29946810007095337,
-0.2637132704257965,
-0.22083573043346405,
-0.2707114815711975,
-0.3951716125011444,
0.14444556832313538,
-0.5617755055427551,
-0.021909423172473907,
0.22653290629386902,
-0.03358643501996994,
0.20180559158325195,
0.08936241269111633,
-0.15094323456287384,
0.17156168818473816,
0.049031227827072144,
0.07803742587566376,
-0.21007773280143738,
0.2596827745437622,
-0.4771119952201843,
-0.06322593986988068,
0.09326016902923584,
0.2274797260761261,
0.31998977065086365,
-0.11606482416391373,
-0.1683143675327301,
0.4271499216556549,
-0.23299340903759003,
0.015818677842617035,
-0.0029287189245224,
-0.13001061975955963,
0.08715030550956726,
-0.39343661069869995,
0.17250218987464905,
0.2751098871231079,
0.16739080846309662,
-0.13462525606155396,
-0.06980032473802567,
0.3326275944709778,
-0.09888079762458801,
0.08166035264730453,
-0.03424229472875595,
-0.05346732586622238,
0.10309651494026184,
-0.11208559572696686,
0.20920167863368988,
-0.12173627316951752,
0.28082704544067383,
-0.3323272168636322,
0.39568811655044556,
0.11942175030708313,
-0.2414899319410324,
0.10921338200569153,
0.29245248436927795,
0.0013841651380062103,
0.19751578569412231,
0.00970553234219551,
0.028896953910589218,
-0.17847397923469543,
-0.2953670620918274,
0.23251451551914215,
0.29916107654571533,
0.1731816977262497,
-0.10863468050956726,
0.2740418314933777,
0.03667385131120682,
-0.17995157837867737,
0.38115862011909485,
-0.16498491168022156,
-0.10444004088640213,
0.39415425062179565,
0.08182321488857269,
0.03420906886458397,
-0.40606534481048584,
-0.14422965049743652,
0.1447809934616089,
0.10745606571435928,
-0.2714001536369324,
0.0040041133761405945,
-0.14407745003700256,
-0.08165361732244492,
-0.48553910851478577,
0.5519651174545288,
-0.09673289954662323,
-0.13400627672672272,
0.23366761207580566,
0.04173680394887924,
0.12607590854167938,
0.11397328227758408,
-0.23598574101924896,
0.14882807433605194,
0.04324918985366821,
0.10606236010789871,
-0.2104988396167755,
-0.10438117384910583,
-0.07206510752439499,
0.04476449266076088,
0.3772629201412201,
-0.09303005784749985,
0.5541759133338928,
-0.19863322377204895,
0.09969119727611542,
-0.21648277342319489,
-0.3579094409942627,
-0.004037570208311081,
0.020813602954149246,
0.14988403022289276,
0.11007042974233627,
-0.0402446985244751,
-0.025681380182504654,
-0.3755350410938263,
0.2560065984725952,
-0.30440428853034973,
-0.4428148567676544,
-0.022543374449014664,
0.018756939098238945,
-0.03953344374895096,
-0.20743170380592346,
-0.5418492555618286,
-0.2662753760814667,
-0.27667492628097534,
0.292663037776947,
-0.09817741811275482,
0.0814603716135025,
0.37255796790122986,
-0.06791754812002182,
0.003849209286272526,
-0.026974251493811607,
0.19743716716766357,
-0.32670286297798157,
0.031248580664396286,
0.03535464406013489,
-0.052933841943740845,
-0.32461297512054443,
-0.05783487856388092,
-0.14751601219177246,
0.17372585833072662,
-0.12598851323127747,
-0.36201488971710205,
0.2623092234134674,
-0.23891298472881317,
0.42669984698295593,
-0.20367805659770966,
0.3028889298439026,
0.21294724941253662,
0.2573757469654083,
-0.15960480272769928,
-0.16986191272735596,
-0.03147223964333534,
0.08927460014820099,
-0.16778871417045593,
0.055672675371170044,
0.1018412858247757,
0.30433645844459534,
-0.26197507977485657,
0.8216825723648071,
0.5829087495803833,
-0.00596962496638298,
0.20165182650089264,
-0.21184410154819489,
0.37335994839668274,
-0.24405166506767273,
-0.4355396032333374,
-0.24598519504070282,
0.1285448968410492,
0.04078492522239685,
0.09705010801553726,
-0.09210531413555145,
-0.09746584296226501,
0.13967077434062958,
-0.1615273803472519,
-0.6219163537025452,
-0.3212405741214752,
0.050933822989463806,
-0.22732868790626526,
0.11793158948421478,
0.05085878446698189,
0.00897708535194397,
0.03357154503464699,
0.044479258358478546,
0.002521255984902382,
0.23452697694301605,
-0.011463075876235962,
0.07592996954917908,
-0.1530284285545349,
-0.15338590741157532,
-0.3725159764289856,
0.11759122461080551,
-0.13971740007400513,
0.19310389459133148,
-0.01052398607134819,
0.19137167930603027,
0.3669935464859009,
-0.22813168168067932,
0.6453691720962524,
-0.08401379734277725,
0.1381121575832367,
0.11381369829177856,
0.15911120176315308,
-0.08305057883262634,
-0.10504302382469177,
0.038818832486867905,
0.4268300533294678,
0.12690384685993195,
0.12945903837680817,
-0.2729390561580658,
0.02426477149128914,
-0.023201294243335724,
0.2627454996109009,
-0.357333242893219,
-0.3812645375728607,
-0.16628128290176392,
-0.3246184289455414,
-0.498902827501297,
0.029086068272590637,
0.006489569321274757,
0.23114131391048431,
-0.021721022203564644,
-0.08895831555128098,
-0.22712120413780212,
-0.21128997206687927,
0.011182747781276703,
0.20086924731731415,
0.28380778431892395,
0.0930747464299202,
0.5682289600372314,
0.37452423572540283,
-0.1244233101606369,
-0.014536133036017418,
0.7123063206672668,
-0.010346848517656326,
-0.009231999516487122,
-0.30111172795295715,
-0.20466330647468567,
-0.18429282307624817,
0.2573677599430084,
-0.19497117400169373,
0.15131217241287231,
0.08696361631155014,
0.02187502011656761,
0.04571683332324028,
-0.18836668133735657,
0.16706763207912445,
-0.16285906732082367,
-0.21596218645572662,
-0.38046199083328247,
0.28824859857559204,
-0.11842837929725647,
-0.2861641049385071,
0.2685067653656006,
0.15819773077964783,
-0.17775169014930725,
0.3684619069099426,
-0.31768345832824707,
0.8326915502548218,
-0.3146330714225769,
-0.05234580114483833,
-0.12637203931808472,
-0.32595378160476685,
0.2553510367870331,
-0.08594758808612823,
0.0067327870056033134,
-0.49390751123428345,
0.046463798731565475,
0.1598237305879593,
-0.03805611655116081,
-0.07470221072435379,
-0.02627202868461609,
-0.32916250824928284,
0.19051334261894226,
-0.059229929000139236,
0.026452764868736267,
-0.16300779581069946,
0.3300623595714569,
-0.0007657483220100403,
0.24717430770397186,
-0.04779527336359024,
0.1346665769815445,
0.1436002254486084,
0.2798325717449188,
-0.05141564831137657,
-0.030750341713428497,
0.17943112552165985,
-0.5663870573043823,
-0.2774443030357361,
0.10919127613306046,
-0.3608015477657318,
0.5221951007843018,
0.018358660861849785,
-0.2535381317138672,
0.21146662533283234,
0.03144161403179169,
0.23289938271045685,
0.20517218112945557,
-0.04958588629961014,
0.1088978499174118,
0.28940868377685547,
0.09928439557552338,
-0.20451630651950836,
-0.010202694684267044,
-0.05196303874254227,
-0.029665052890777588,
-0.3613169193267822,
-0.04709475487470627,
-0.06225686892867088,
-0.40157198905944824,
-0.15019753575325012,
0.24813035130500793,
-0.1729176938533783,
-0.03501154109835625,
0.1649695783853531,
-0.027037575840950012,
-0.10760185122489929,
-0.31312304735183716,
0.16624440252780914,
0.18623007833957672,
0.02985934168100357,
0.11240236461162567,
-0.05461687222123146,
-0.1692594587802887,
0.07501926273107529,
0.16945882141590118,
0.36652320623397827,
0.06965537369251251,
0.5085344314575195,
-0.2613408863544464,
-0.033756423741579056,
-0.2612471580505371,
0.0800454393029213,
0.1148148626089096,
-0.6623126864433289,
0.21919432282447815,
-0.2941146492958069,
0.22009871900081635,
0.1073094978928566,
0.4256068766117096,
0.332191526889801,
0.21347644925117493,
0.055926885455846786,
-0.2056265026330948,
-0.11261113733053207,
-0.048178598284721375,
0.027910485863685608,
0.2362506091594696,
0.03930177539587021,
0.1607014685869217,
-0.042615704238414764,
0.1991032510995865,
-0.3712840676307678,
0.2617737054824829,
-0.11103041470050812,
0.0789097249507904,
-0.01568237692117691,
-0.10596180707216263,
-0.06607115268707275,
-0.029073765501379967,
0.18582278490066528,
0.09874951094388962,
-0.18611930310726166,
-0.2591014802455902,
-0.054543375968933105,
0.11989614367485046,
-0.03584454581141472,
0.14154061675071716,
-0.21573087573051453,
-0.19562478363513947,
0.23092135787010193,
-0.0465359203517437,
0.18756675720214844,
-0.11732710152864456,
0.14641030132770538,
0.060463037341833115,
0.11590760946273804,
0.10601843893527985,
-0.2493310123682022,
0.19738730788230896,
-0.24695494771003723,
0.31110772490501404,
-0.05727759003639221,
0.18151956796646118,
-0.029876410961151123,
-0.07985274493694305,
-0.3063938617706299,
0.08472379297018051,
-0.18227891623973846,
0.10954082012176514,
0.15552356839179993,
-0.24792321026325226,
-0.16758570075035095,
0.4212435185909271,
0.168254092335701,
0.514501690864563,
-0.3406200706958771,
0.1270991414785385,
-0.021948538720607758,
0.2609175145626068,
-0.3668575584888458,
-0.12344040721654892,
0.0033126259222626686,
0.025348924100399017,
0.262259840965271,
0.3413488566875458,
0.26930519938468933,
-0.19102022051811218,
-0.08152790367603302,
0.09181308001279831,
0.40022361278533936,
0.0021995045244693756,
0.3656623661518097,
0.3726804554462433,
0.26540976762771606,
-0.20721279084682465,
0.2973615527153015,
-0.04092416539788246,
0.06240711733698845,
0.5390815734863281,
-0.5399001836776733,
0.128463014960289,
-0.020505979657173157,
0.2541928291320801,
0.22578191757202148,
-0.12000492215156555,
0.3996994197368622,
0.05802655220031738,
-0.09984692931175232,
0.009759567677974701,
0.013767577707767487,
0.16290245950222015,
-0.1720845103263855,
-0.05549481883645058,
-0.07197009027004242,
0.08462801575660706,
-0.17271408438682556,
-0.10104767978191376,
-0.10957740247249603,
-0.22724974155426025,
-0.25415492057800293,
0.09666424989700317,
0.013863768428564072,
0.05995650961995125,
0.16498693823814392,
0.00046218186616897583,
-0.3333247900009155,
-0.36643001437187195,
0.201564222574234,
0.29780077934265137,
0.37390565872192383,
-0.40815433859825134,
0.30005818605422974,
0.4755455255508423,
-0.0917496532201767,
0.15092775225639343,
0.5318713784217834,
0.6291664242744446,
0.22879938781261444,
-0.15575963258743286,
0.22674649953842163,
0.11051858961582184,
-0.16116133332252502,
-0.19540731608867645,
0.061420246958732605,
-0.1154329776763916,
0.1707046777009964,
0.16170631349086761,
0.1147134006023407,
-0.13986258208751678,
-0.07473111152648926,
0.2652660310268402,
0.10534876585006714,
-0.0900576114654541,
0.20067156851291656,
-0.18583285808563232,
-0.13964387774467468,
0.015624526888132095,
0.25023606419563293,
-0.39260485768318176,
0.0097743459045887,
0.3296544551849365,
0.216401144862175,
0.12182091921567917,
-0.22424830496311188,
0.14256490767002106,
0.06736938655376434,
0.3181639611721039,
0.19361229240894318,
0.0830998420715332,
-0.24433553218841553,
-0.03215867653489113,
-0.6895321607589722,
0.09274670481681824,
-0.4029485583305359,
-0.05544203892350197,
0.18591713905334473,
0.3722105026245117,
-0.3159904479980469,
0.011731481179594994,
0.35093915462493896,
0.06108058616518974,
0.0317477211356163,
0.21966053545475006,
-0.23211753368377686,
-0.00937965139746666,
0.426052451133728,
-0.2580842077732086,
0.14161688089370728,
-0.40729981660842896,
0.34203773736953735,
-0.37570223212242126,
0.05647674947977066,
-0.14721643924713135,
0.042216189205646515,
0.13156557083129883,
-0.2852277159690857,
0.4117785096168518,
0.09779030084609985,
0.3219892680644989,
-0.0438525527715683,
-0.2032981663942337,
-0.2257695198059082,
-0.16988146305084229,
-0.23655612766742706,
0.2747158408164978,
0.5092766880989075,
0.1163095086812973,
-0.004694574512541294,
-0.43737661838531494,
-0.19293183088302612,
0.23205508291721344,
0.061686813831329346,
-0.07858899980783463,
-0.0752979964017868,
0.0722678154706955,
-0.18344473838806152,
0.12286261469125748,
0.05182225629687309,
0.20251023769378662,
-0.09104578197002411,
0.17573270201683044,
-0.2520786225795746,
-0.6924309730529785,
0.393286794424057,
-0.1511266529560089,
-0.07832717895507812,
-0.1192813515663147,
0.3561948537826538,
0.24671244621276855,
0.0758875235915184,
-0.6449912190437317,
0.24169385433197021,
0.5567663908004761,
-0.19927239418029785,
-0.0071394182741642,
0.15071947872638702,
-0.12365595996379852,
0.037336740642786026,
0.026022788137197495,
-0.04160606861114502,
0.03419072553515434,
-0.2745583653450012,
0.25243937969207764,
-0.32362258434295654
] |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | Thanks to the dummy data, we know for sure that most of them work as expected.
`code_search_net` wasn't caught because the dummy data only have one dummy data file while the dataset script can actually load several of them using `os.listdir`. Let me take a look at all the other datasets that use `os.listdir` to see if the keys are alright | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
| 61 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
Thanks to the dummy data, we know for sure that most of them work as expected.
`code_search_net` wasn't caught because the dummy data only have one dummy data file while the dataset script can actually load several of them using `os.listdir`. Let me take a look at all the other datasets that use `os.listdir` to see if the keys are alright | [
-0.03642664849758148,
-0.020195260643959045,
-0.09643828868865967,
0.3276668190956116,
0.07617687433958054,
-0.013212360441684723,
0.208099827170372,
0.29120177030563354,
0.09849964082241058,
0.07118474692106247,
-0.0670371726155281,
0.38355904817581177,
-0.17116574943065643,
0.13640013337135315,
0.1288101077079773,
0.08379987627267838,
-0.043801821768283844,
0.17808790504932404,
0.11996634304523468,
-0.05948205292224884,
-0.31798774003982544,
0.28566309809684753,
-0.2349061220884323,
0.01655774563550949,
-0.20905201137065887,
-0.13764645159244537,
-0.176006481051445,
0.2507341206073761,
-0.18241149187088013,
-0.5908306241035461,
0.2711942493915558,
0.209339439868927,
-0.2992361783981323,
0.35086631774902344,
-0.00011079187243012711,
0.19000564515590668,
0.39819037914276123,
-0.025601612403988838,
-0.2827828824520111,
-0.1791193038225174,
-0.0728081464767456,
-0.06121840327978134,
0.08318197727203369,
-0.24825897812843323,
-0.0818559005856514,
-0.12249753624200821,
-0.10497543215751648,
-0.539764940738678,
0.8384169936180115,
0.24601805210113525,
0.27267131209373474,
0.21126681566238403,
0.3223753869533539,
-0.25987568497657776,
0.24202793836593628,
-0.16143308579921722,
-0.06399127095937729,
0.3828732967376709,
0.183322012424469,
-0.04799097776412964,
0.005722470581531525,
0.29819655418395996,
0.14044424891471863,
-0.0875043123960495,
0.4186810255050659,
-0.032304421067237854,
0.046877432614564896,
-0.3087764382362366,
0.21462643146514893,
0.10282379388809204,
0.08842727541923523,
-0.31282663345336914,
-0.2070397287607193,
-0.2669892907142639,
0.036255355924367905,
-0.24074482917785645,
0.3180388808250427,
0.13132748007774353,
-0.20281477272510529,
0.16847586631774902,
0.008735996671020985,
-0.23333901166915894,
0.016873054206371307,
-0.03568289428949356,
-0.012058578431606293,
0.007563352584838867,
-0.04777710512280464,
0.14422175288200378,
0.18704770505428314,
-0.030187085270881653,
0.26582252979278564,
-0.10939392447471619,
0.019527781754732132,
0.17904512584209442,
-0.5136681795120239,
0.12302008271217346,
-0.05185684561729431,
-0.09847281128168106,
0.2277050018310547,
0.028717758134007454,
0.1698818802833557,
-0.06871377676725388,
0.06249252334237099,
0.005372669547796249,
0.09051597118377686,
0.1125335693359375,
0.026970528066158295,
0.28097590804100037,
0.20357103645801544,
-0.15020187199115753,
-0.24114662408828735,
-0.03582591563463211,
-0.18146401643753052,
-0.15676933526992798,
0.33824050426483154,
0.07081502676010132,
0.532991886138916,
0.07598486542701721,
-0.24769291281700134,
0.1277485489845276,
-0.12357757240533829,
-0.0753638744354248,
0.056991949677467346,
0.3604094088077545,
0.15865156054496765,
-0.33822447061538696,
0.11390697956085205,
0.22571073472499847,
-0.159073606133461,
-0.2025013566017151,
-0.3317083418369293,
-0.11995042860507965,
-0.07043235003948212,
-0.1687154918909073,
0.25537747144699097,
-0.5790086388587952,
0.31429263949394226,
0.24576731026172638,
-0.11949051916599274,
-0.4515373706817627,
0.07836014032363892,
0.1040029525756836,
-0.1953115463256836,
0.08905842155218124,
0.020836248993873596,
0.058303698897361755,
0.0076980553567409515,
-0.23695653676986694,
-0.0453375019133091,
0.16775086522102356,
-0.2531954050064087,
-0.35579347610473633,
-0.09430581331253052,
0.30074888467788696,
0.0646655261516571,
0.08033047616481781,
0.016925744712352753,
0.05540018528699875,
0.19945783913135529,
0.15688051283359528,
-0.012706562876701355,
-0.03325562924146652,
-0.10192258656024933,
-0.2483242005109787,
0.27353593707084656,
0.6290332674980164,
-0.11597354710102081,
-0.09790065884590149,
-0.1622074544429779,
-0.0023757927119731903,
0.07972940802574158,
0.34628918766975403,
-0.24124257266521454,
0.39027050137519836,
-0.36548760533332825,
0.165993332862854,
0.6817964315414429,
-0.2055111825466156,
-0.355248361825943,
0.1524267941713333,
-0.24773335456848145,
-0.17102554440498352,
0.0933937281370163,
0.03155370429158211,
0.16267678141593933,
0.15226002037525177,
0.15575209259986877,
-0.06676293909549713,
0.05703228339552879,
-0.05156302452087402,
-0.355473130941391,
-0.34718263149261475,
0.11304796487092972,
-0.06709573417901993,
0.16612952947616577,
-0.1674627959728241,
0.24174726009368896,
-0.1381935477256775,
0.12545615434646606,
-0.11240628361701965,
-0.08025689423084259,
0.09073396027088165,
0.21459095180034637,
0.027268633246421814,
0.0985969603061676,
-0.06436774134635925,
-0.47261327505111694,
0.36781737208366394,
-0.2958662807941437,
-0.2371387779712677,
-0.21571873128414154,
-0.28407853841781616,
-0.4142509996891022,
0.11498730629682541,
-0.5730292201042175,
-0.03259396180510521,
0.22007206082344055,
-0.026793643832206726,
0.219390869140625,
0.08806449174880981,
-0.12073196470737457,
0.15893563628196716,
0.049718983471393585,
0.08768390119075775,
-0.24321810901165009,
0.2517296373844147,
-0.45837128162384033,
-0.06324659287929535,
0.10950426757335663,
0.22771602869033813,
0.3038509488105774,
-0.1221485510468483,
-0.17016178369522095,
0.42194974422454834,
-0.22273042798042297,
0.002072565257549286,
-0.0018697604537010193,
-0.14872466027736664,
0.06749795377254486,
-0.38300877809524536,
0.18450690805912018,
0.29937002062797546,
0.1757296323776245,
-0.15666700899600983,
-0.09868999570608139,
0.3583340048789978,
-0.07402397692203522,
0.09074889868497849,
-0.051071666181087494,
-0.03688088059425354,
0.12252998352050781,
-0.10880331695079803,
0.21264781057834625,
-0.12718185782432556,
0.283067911863327,
-0.3175022006034851,
0.4024388790130615,
0.13296005129814148,
-0.2321518212556839,
0.12115263938903809,
0.29462456703186035,
0.016362003982067108,
0.18838852643966675,
-0.0024342723190784454,
-0.0214984193444252,
-0.1830296814441681,
-0.2807164192199707,
0.23426707088947296,
0.2953341603279114,
0.17817066609859467,
-0.11184164881706238,
0.2570245862007141,
0.004000617191195488,
-0.1871972680091858,
0.3797665536403656,
-0.19415484368801117,
-0.13407079875469208,
0.38468649983406067,
0.08995833992958069,
-0.008661667816340923,
-0.44472065567970276,
-0.1110008955001831,
0.16506534814834595,
0.12234766036272049,
-0.24939359724521637,
0.00036601722240448,
-0.16399337351322174,
-0.06364709138870239,
-0.4797677993774414,
0.5345812439918518,
-0.09949034452438354,
-0.1488792598247528,
0.2435329109430313,
0.08119473606348038,
0.11936613917350769,
0.12789763510227203,
-0.24043302237987518,
0.14990077912807465,
0.057675428688526154,
0.08186544477939606,
-0.22388282418251038,
-0.11080798506736755,
-0.09239891916513443,
0.056167956441640854,
0.3637707829475403,
-0.06526554375886917,
0.5341529846191406,
-0.1901935636997223,
0.09057527780532837,
-0.2226315289735794,
-0.35748863220214844,
-0.012997038662433624,
0.0026212073862552643,
0.158030703663826,
0.11136913299560547,
-0.034703195095062256,
-0.011829614639282227,
-0.3635373115539551,
0.2709295153617859,
-0.31525546312332153,
-0.427921861410141,
0.014069341123104095,
0.007503015920519829,
-0.03093346394598484,
-0.22946539521217346,
-0.5562413930892944,
-0.25205591320991516,
-0.2643297016620636,
0.2726474404335022,
-0.0757414847612381,
0.07023461163043976,
0.38597655296325684,
-0.032932840287685394,
-0.009322579950094223,
-0.028511205688118935,
0.1671646535396576,
-0.3440156877040863,
0.01091935858130455,
0.05264105275273323,
-0.058412790298461914,
-0.3240553140640259,
-0.044094886630773544,
-0.1682160496711731,
0.16076938807964325,
-0.13155998289585114,
-0.362471342086792,
0.2376156598329544,
-0.24489803612232208,
0.41996362805366516,
-0.21500417590141296,
0.276287704706192,
0.21946361660957336,
0.2579506039619446,
-0.15461112558841705,
-0.19461753964424133,
-0.04310838133096695,
0.11911869049072266,
-0.17727267742156982,
0.057953525334596634,
0.07518856227397919,
0.2850070297718048,
-0.24568070471286774,
0.8134363889694214,
0.5724948048591614,
-0.007752776145935059,
0.1956249326467514,
-0.23842647671699524,
0.37819424271583557,
-0.25809571146965027,
-0.43434762954711914,
-0.27182522416114807,
0.12006177008152008,
0.07931700348854065,
0.10621516406536102,
-0.08880016207695007,
-0.07257912307977676,
0.16934825479984283,
-0.13287965953350067,
-0.5772479772567749,
-0.32209593057632446,
0.05161590129137039,
-0.21950140595436096,
0.09358550608158112,
0.08431479334831238,
0.03027496486902237,
0.0016910601407289505,
0.029722176492214203,
-0.005610153079032898,
0.19695837795734406,
-0.04018377512693405,
0.08711236715316772,
-0.16457244753837585,
-0.1121445968747139,
-0.39149436354637146,
0.14287805557250977,
-0.1441076695919037,
0.18394893407821655,
0.01625640317797661,
0.18465757369995117,
0.36109286546707153,
-0.1915576159954071,
0.6522552967071533,
-0.09729032963514328,
0.13873541355133057,
0.11521093547344208,
0.1727873682975769,
-0.1377708464860916,
-0.10880029201507568,
0.03325921669602394,
0.4142429530620575,
0.11149057745933533,
0.13761264085769653,
-0.2753405272960663,
0.01314176432788372,
-0.0005721114575862885,
0.27700304985046387,
-0.3481085002422333,
-0.3533656895160675,
-0.19787752628326416,
-0.3296109139919281,
-0.5215118527412415,
0.004342876374721527,
-0.002225523814558983,
0.23394833505153656,
-0.031041612848639488,
-0.09864401817321777,
-0.2354491502046585,
-0.22892311215400696,
0.020345978438854218,
0.20964160561561584,
0.28506922721862793,
0.1258576512336731,
0.5712018013000488,
0.39080262184143066,
-0.10342392325401306,
-0.013242499902844429,
0.7329350113868713,
0.007224639877676964,
-0.014144249260425568,
-0.3090284764766693,
-0.22627003490924835,
-0.19219747185707092,
0.25388333201408386,
-0.17472290992736816,
0.17612695693969727,
0.06522922217845917,
0.020186569541692734,
0.03494247794151306,
-0.14363372325897217,
0.1644269824028015,
-0.1691853106021881,
-0.2057054489850998,
-0.3801513612270355,
0.27291616797447205,
-0.12599819898605347,
-0.27615296840667725,
0.2663392126560211,
0.13119949400424957,
-0.16926056146621704,
0.37032824754714966,
-0.33845749497413635,
0.8030842542648315,
-0.32222187519073486,
-0.032364558428525925,
-0.11754005402326584,
-0.3198092579841614,
0.23897697031497955,
-0.07109387218952179,
0.01645735837519169,
-0.49272724986076355,
0.05297933518886566,
0.16507522761821747,
-0.03804171085357666,
-0.07720791548490524,
-0.018832527101039886,
-0.3268420398235321,
0.19430957734584808,
-0.04452163726091385,
0.055132005363702774,
-0.1772858202457428,
0.3472311794757843,
-0.014133712276816368,
0.2519332468509674,
0.007993402890861034,
0.1487937718629837,
0.15919798612594604,
0.26232293248176575,
-0.023143278434872627,
-0.03138437867164612,
0.16241343319416046,
-0.5612019300460815,
-0.24269764125347137,
0.11930932849645615,
-0.38168784976005554,
0.5089935064315796,
-0.011308185756206512,
-0.2430344521999359,
0.1899627149105072,
0.024727514013648033,
0.23850485682487488,
0.21759340167045593,
-0.05999332666397095,
0.12292475998401642,
0.2727580964565277,
0.08999129384756088,
-0.2118242383003235,
-0.02779509872198105,
-0.09245243668556213,
-0.005021963268518448,
-0.3614400625228882,
-0.04881756752729416,
-0.059945009648799896,
-0.41076260805130005,
-0.14648360013961792,
0.23628182709217072,
-0.15620088577270508,
-0.062380675226449966,
0.15882721543312073,
-0.04258248209953308,
-0.1080779880285263,
-0.32813599705696106,
0.1703135371208191,
0.15569080412387848,
0.03443613275885582,
0.09368656575679779,
-0.058718081563711166,
-0.20661994814872742,
0.057510606944561005,
0.1759091019630432,
0.3556891083717346,
0.0973455011844635,
0.5280076861381531,
-0.2695707380771637,
-0.002580557018518448,
-0.26921045780181885,
0.06591030210256577,
0.13009434938430786,
-0.6779009699821472,
0.240431010723114,
-0.2633766233921051,
0.1785435825586319,
0.11935588717460632,
0.4354134500026703,
0.3073657751083374,
0.20084059238433838,
0.055755365639925,
-0.1955750584602356,
-0.12817877531051636,
-0.08453097939491272,
0.043170806020498276,
0.2558164596557617,
0.03044760972261429,
0.17191393673419952,
-0.05925976485013962,
0.22003251314163208,
-0.3742519021034241,
0.287640780210495,
-0.09201738983392715,
0.11508581042289734,
-0.036030977964401245,
-0.13653430342674255,
-0.043934471905231476,
-0.021716106683015823,
0.19145992398262024,
0.10170058161020279,
-0.2023000717163086,
-0.27177760004997253,
-0.0802878588438034,
0.11368230730295181,
-0.03903564065694809,
0.11213387548923492,
-0.21611778438091278,
-0.19729608297348022,
0.1972084939479828,
-0.0550847202539444,
0.20462411642074585,
-0.11754604429006577,
0.1393636167049408,
0.0641288235783577,
0.11854097247123718,
0.10533066093921661,
-0.23492886126041412,
0.16448712348937988,
-0.26304370164871216,
0.30482572317123413,
-0.06655189394950867,
0.15409043431282043,
-0.03244085609912872,
-0.06917328387498856,
-0.28176984190940857,
0.08593729883432388,
-0.15320990979671478,
0.0907229334115982,
0.14758369326591492,
-0.24262292683124542,
-0.17069882154464722,
0.41718316078186035,
0.1768941730260849,
0.4963459074497223,
-0.3218606412410736,
0.12139680981636047,
-0.022258706390857697,
0.26405069231987,
-0.37191033363342285,
-0.13722020387649536,
0.045455098152160645,
0.007801680359989405,
0.2777579128742218,
0.3237069845199585,
0.29088571667671204,
-0.17210350930690765,
-0.07587219774723053,
0.07583747059106827,
0.382635235786438,
0.007085593417286873,
0.36281949281692505,
0.35714584589004517,
0.24452008306980133,
-0.22205530107021332,
0.30685028433799744,
-0.053951721638441086,
0.0639205127954483,
0.5503354072570801,
-0.5318272113800049,
0.13650329411029816,
-0.034736908972263336,
0.23053701221942902,
0.2037724107503891,
-0.12577906250953674,
0.4079795777797699,
0.07306226342916489,
-0.1164209246635437,
0.01589871570467949,
0.035226356238126755,
0.1720740646123886,
-0.217819944024086,
-0.05574800819158554,
-0.11234939843416214,
0.07308469712734222,
-0.17552602291107178,
-0.11908814311027527,
-0.11768084764480591,
-0.20505160093307495,
-0.2649654150009155,
0.11121104657649994,
0.034449342638254166,
0.06203792989253998,
0.16560792922973633,
0.00118149071931839,
-0.33562934398651123,
-0.38867148756980896,
0.18870952725410461,
0.31145793199539185,
0.35057222843170166,
-0.3815401494503021,
0.27760693430900574,
0.4696754813194275,
-0.10249058902263641,
0.17448541522026062,
0.5233426094055176,
0.604681134223938,
0.2045617252588272,
-0.16108497977256775,
0.23072978854179382,
0.08594784140586853,
-0.1587415486574173,
-0.21432426571846008,
0.08598816394805908,
-0.11255981028079987,
0.1508619487285614,
0.18639250099658966,
0.11926531791687012,
-0.15238523483276367,
-0.12435084581375122,
0.257066935300827,
0.08923439681529999,
-0.11577905714511871,
0.20965701341629028,
-0.19346167147159576,
-0.1191292554140091,
-0.010668382048606873,
0.25776275992393494,
-0.37031054496765137,
0.00877140462398529,
0.33823078870773315,
0.1999279111623764,
0.12144235521554947,
-0.25324901938438416,
0.14326277375221252,
0.036246344447135925,
0.32064440846443176,
0.16745266318321228,
0.07082251459360123,
-0.2496790885925293,
-0.034495919942855835,
-0.690797746181488,
0.11374649405479431,
-0.4348584711551666,
-0.050248127430677414,
0.17793478071689606,
0.3789180815219879,
-0.2952190935611725,
0.02498173527419567,
0.33206963539123535,
0.07119570672512054,
0.06783853471279144,
0.2166433483362198,
-0.215578094124794,
0.008859649300575256,
0.40264278650283813,
-0.26356014609336853,
0.14919555187225342,
-0.45074787735939026,
0.3349408507347107,
-0.3472176790237427,
0.06708011031150818,
-0.13218343257904053,
0.043704062700271606,
0.14638115465641022,
-0.2922668159008026,
0.43222981691360474,
0.09938670694828033,
0.324154794216156,
-0.03178097680211067,
-0.1804347187280655,
-0.21886718273162842,
-0.1486956626176834,
-0.2408018261194229,
0.2581406533718109,
0.5101234912872314,
0.13968072831630707,
-0.0000909809023141861,
-0.41571950912475586,
-0.18756121397018433,
0.24628573656082153,
0.08920489251613617,
-0.03880617767572403,
-0.09257456660270691,
0.09676697105169296,
-0.22002100944519043,
0.15125131607055664,
0.026862964034080505,
0.226027250289917,
-0.08238539099693298,
0.1834840327501297,
-0.22126150131225586,
-0.6726043820381165,
0.3810141384601593,
-0.15736015141010284,
-0.09516790509223938,
-0.12553195655345917,
0.35822683572769165,
0.24553582072257996,
0.07023531943559647,
-0.6323143243789673,
0.2581470310688019,
0.5377962589263916,
-0.2006968855857849,
-0.0005390401929616928,
0.16082289814949036,
-0.10720501840114594,
0.051450151950120926,
0.022812847048044205,
0.0017282068729400635,
0.05541533976793289,
-0.2744816541671753,
0.26202425360679626,
-0.3209923505783081
] |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | I found one issue on `fever` (PR here: https://github.com/huggingface/datasets/pull/2557)
All the other ones seem fine :) | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
| 16 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
I found one issue on `fever` (PR here: https://github.com/huggingface/datasets/pull/2557)
All the other ones seem fine :) | [
-0.020208342000842094,
0.0007684975862503052,
-0.09075641632080078,
0.3496328592300415,
0.08513709902763367,
-0.024871956557035446,
0.19917990267276764,
0.25810664892196655,
0.09322987496852875,
0.07367491722106934,
-0.09278638660907745,
0.38461223244667053,
-0.1742849498987198,
0.11450885981321335,
0.1579979956150055,
0.09787142276763916,
-0.03220497816801071,
0.1860351413488388,
0.11466363072395325,
-0.0663524866104126,
-0.3220595717430115,
0.2716599106788635,
-0.24977891147136688,
0.005793318152427673,
-0.21985311806201935,
-0.12779398262500763,
-0.18146082758903503,
0.2327200472354889,
-0.15828226506710052,
-0.6227067112922668,
0.28305745124816895,
0.23677903413772583,
-0.3231884837150574,
0.3545229434967041,
-0.00011388854181859642,
0.18496553599834442,
0.3915024995803833,
-0.008243931457400322,
-0.27204397320747375,
-0.1919543594121933,
-0.09738638997077942,
-0.08764566481113434,
0.12209666520357132,
-0.2598312795162201,
-0.04034137353301048,
-0.12674574553966522,
-0.10032476484775543,
-0.5317754745483398,
0.8246197700500488,
0.19364263117313385,
0.24873176217079163,
0.18870195746421814,
0.3378746211528778,
-0.23723071813583374,
0.24390748143196106,
-0.1666712760925293,
-0.05522779002785683,
0.3877444267272949,
0.19859543442726135,
-0.05049081891775131,
0.012191690504550934,
0.28585493564605713,
0.15495607256889343,
-0.1102307140827179,
0.46213817596435547,
-0.05258592963218689,
0.07631408423185349,
-0.37107428908348083,
0.20499983429908752,
0.08927859365940094,
0.09743703156709671,
-0.27615830302238464,
-0.23243877291679382,
-0.2789846360683441,
0.056045159697532654,
-0.21321147680282593,
0.3593422770500183,
0.12219367921352386,
-0.20762409269809723,
0.1624031811952591,
-0.01725703664124012,
-0.25775304436683655,
0.012682169675827026,
-0.04407554864883423,
0.007985666394233704,
-0.030200235545635223,
-0.04910849407315254,
0.15414007008075714,
0.16627255082130432,
-0.032053396105766296,
0.27967357635498047,
-0.09967932850122452,
0.04115542769432068,
0.22037763893604279,
-0.5572587847709656,
0.1509341597557068,
-0.0677144005894661,
-0.09797944873571396,
0.21286460757255554,
0.029022889211773872,
0.1994994431734085,
-0.084877148270607,
0.06507425755262375,
0.016166456043720245,
0.10343973338603973,
0.09653961658477783,
0.03424086421728134,
0.23270662128925323,
0.21909071505069733,
-0.18356497585773468,
-0.25172683596611023,
-0.03572230786085129,
-0.2129186987876892,
-0.17372512817382812,
0.40170639753341675,
0.06111031770706177,
0.5241870880126953,
0.06799238920211792,
-0.22717279195785522,
0.13217249512672424,
-0.15341371297836304,
-0.10085496306419373,
0.0860636755824089,
0.3410007953643799,
0.19492077827453613,
-0.33739790320396423,
0.1137651652097702,
0.22903278470039368,
-0.13877664506435394,
-0.20064391195774078,
-0.3102107346057892,
-0.1213836669921875,
-0.055254511535167694,
-0.1454881876707077,
0.2526145875453949,
-0.6270564794540405,
0.26425284147262573,
0.260543555021286,
-0.10207624733448029,
-0.49128490686416626,
0.003811052069067955,
0.1023699939250946,
-0.2192969024181366,
0.09431305527687073,
0.015966255217790604,
0.07957254350185394,
-0.04762652888894081,
-0.233537495136261,
-0.054443106055259705,
0.17800047993659973,
-0.2537405490875244,
-0.35255733132362366,
-0.02270497940480709,
0.2670415937900543,
0.059039533138275146,
0.12520435452461243,
-0.0038165971636772156,
0.03867815434932709,
0.23063048720359802,
0.1851242631673813,
-0.012323208153247833,
-0.03141937404870987,
-0.08888877928256989,
-0.25522395968437195,
0.2687968909740448,
0.6540948152542114,
-0.09658542275428772,
-0.11061540991067886,
-0.17602276802062988,
-0.0000572744756937027,
0.10631293058395386,
0.3705931603908539,
-0.22211207449436188,
0.41600126028060913,
-0.3452949523925781,
0.1597890704870224,
0.710504412651062,
-0.19338399171829224,
-0.38739991188049316,
0.18393360078334808,
-0.24762903153896332,
-0.18241451680660248,
0.10658755153417587,
0.014433921314775944,
0.18483519554138184,
0.12239472568035126,
0.16344444453716278,
-0.07338783890008926,
0.08130823820829391,
-0.05352454632520676,
-0.3427560031414032,
-0.347059041261673,
0.12123765051364899,
-0.06390074640512466,
0.18306834995746613,
-0.15793713927268982,
0.27260667085647583,
-0.13734374940395355,
0.08965139836072922,
-0.11776559054851532,
-0.06316039711236954,
0.0818893238902092,
0.21991431713104248,
0.0230339877307415,
0.10415273159742355,
-0.057609230279922485,
-0.4630143642425537,
0.3818473815917969,
-0.29599571228027344,
-0.27303799986839294,
-0.24989990890026093,
-0.24667297303676605,
-0.36709892749786377,
0.1595122069120407,
-0.5803840756416321,
0.02873631939291954,
0.1856028288602829,
-0.04434338957071304,
0.2221624255180359,
0.10191211104393005,
-0.10632837563753128,
0.1741611808538437,
0.060968026518821716,
0.0783877819776535,
-0.2048068344593048,
0.2609230875968933,
-0.42553043365478516,
-0.05611337721347809,
0.10251590609550476,
0.23941925168037415,
0.33669984340667725,
-0.11119521409273148,
-0.1904090940952301,
0.40789562463760376,
-0.23928867280483246,
0.02210693061351776,
-0.03482445329427719,
-0.13013558089733124,
0.07923787087202072,
-0.38706210255622864,
0.16358442604541779,
0.2781241834163666,
0.18031051754951477,
-0.15507769584655762,
-0.04121831804513931,
0.31616663932800293,
-0.11222851276397705,
0.11763815581798553,
-0.06732780486345291,
-0.04628429934382439,
0.10961456596851349,
-0.10859169065952301,
0.21488741040229797,
-0.1273217797279358,
0.3092459440231323,
-0.32209450006484985,
0.4101286232471466,
0.14560739696025848,
-0.22843807935714722,
0.11481547355651855,
0.28856325149536133,
0.01296251267194748,
0.1708480417728424,
0.014239374548196793,
0.02312343195080757,
-0.18527495861053467,
-0.309905469417572,
0.250382661819458,
0.30743926763534546,
0.13689377903938293,
-0.11005373299121857,
0.25771552324295044,
0.027205049991607666,
-0.2018006294965744,
0.36943984031677246,
-0.1471649408340454,
-0.1145041286945343,
0.40940919518470764,
0.1236056461930275,
0.04180672764778137,
-0.43954697251319885,
-0.1031290739774704,
0.20668303966522217,
0.09791750460863113,
-0.2481192797422409,
0.014545029029250145,
-0.16568130254745483,
-0.034690942615270615,
-0.4692336320877075,
0.5736933946609497,
-0.10258780419826508,
-0.11791468411684036,
0.2339109480381012,
0.06879852712154388,
0.1535281389951706,
0.11818491667509079,
-0.223868265748024,
0.147970050573349,
0.04001891613006592,
0.09138834476470947,
-0.23323625326156616,
-0.09147635847330093,
-0.08541952073574066,
0.004380311816930771,
0.40140849351882935,
-0.10104813426733017,
0.5399113297462463,
-0.18143340945243835,
0.07940854132175446,
-0.21309858560562134,
-0.33611536026000977,
-0.02375478297472,
0.03869755193591118,
0.16656631231307983,
0.06583982706069946,
-0.06527109444141388,
-0.028721515089273453,
-0.3721292018890381,
0.2697654962539673,
-0.3284951150417328,
-0.41694584488868713,
0.010150805115699768,
0.005570887587964535,
-0.041372768580913544,
-0.24175219237804413,
-0.5230995416641235,
-0.24583791196346283,
-0.245734304189682,
0.32626432180404663,
-0.12527085840702057,
0.08618402481079102,
0.32654568552970886,
-0.08735716342926025,
-0.03417610749602318,
-0.03758029639720917,
0.17869429290294647,
-0.34570538997650146,
0.04664188250899315,
0.05059563368558884,
-0.03771206736564636,
-0.3421710133552551,
-0.05824233591556549,
-0.12461916357278824,
0.1684560477733612,
-0.09011976420879364,
-0.36496520042419434,
0.30404993891716003,
-0.2496059685945511,
0.4348331689834595,
-0.21696409583091736,
0.29219162464141846,
0.1888550966978073,
0.25234881043434143,
-0.1235341876745224,
-0.1784009337425232,
-0.018536239862442017,
0.11483773589134216,
-0.17241960763931274,
0.04445115849375725,
0.11567135155200958,
0.2916897237300873,
-0.2708285450935364,
0.8078581094741821,
0.5670901536941528,
0.010567307472229004,
0.2099635750055313,
-0.21433597803115845,
0.35730817914009094,
-0.24757787585258484,
-0.43305179476737976,
-0.2656175494194031,
0.10709310322999954,
0.08138372004032135,
0.09569286555051804,
-0.07953810691833496,
-0.08078943192958832,
0.16575314104557037,
-0.18090075254440308,
-0.5866478681564331,
-0.31680306792259216,
0.05581553280353546,
-0.24452605843544006,
0.1324729174375534,
0.08510105311870575,
0.026822827756404877,
0.02931317314505577,
-0.009579411707818508,
-0.02658982388675213,
0.23579034209251404,
-0.005633652210235596,
0.07948174327611923,
-0.1579553186893463,
-0.1649991273880005,
-0.3975367844104767,
0.11815007030963898,
-0.12731106579303741,
0.22699646651744843,
0.0055992938578128815,
0.23170340061187744,
0.4163597822189331,
-0.2022300809621811,
0.6757405996322632,
-0.06797949969768524,
0.1560726761817932,
0.09368693828582764,
0.1393202841281891,
-0.12316890060901642,
-0.12032017111778259,
0.07331858575344086,
0.4453854262828827,
0.1178605705499649,
0.12181384861469269,
-0.2651014029979706,
0.01254432462155819,
-0.0674537718296051,
0.2935519814491272,
-0.37997597455978394,
-0.40988507866859436,
-0.14482517540454865,
-0.31875622272491455,
-0.5102406144142151,
-0.019287317991256714,
-0.014501583762466908,
0.2496223896741867,
-0.06267291307449341,
-0.08093127608299255,
-0.2437487095594406,
-0.21549493074417114,
0.014572001993656158,
0.21086320281028748,
0.27314212918281555,
0.1007198765873909,
0.6041334271430969,
0.4393438696861267,
-0.14138932526111603,
-0.0042284149676561356,
0.7062291502952576,
-0.006803605705499649,
-0.021242693066596985,
-0.2818034291267395,
-0.23563431203365326,
-0.19199103116989136,
0.2679483890533447,
-0.2039373815059662,
0.17773711681365967,
0.07932202517986298,
-0.001913219690322876,
0.03309882804751396,
-0.1960715651512146,
0.17029401659965515,
-0.18827848136425018,
-0.23669390380382538,
-0.387738972902298,
0.302728533744812,
-0.1271832287311554,
-0.28448596596717834,
0.26390621066093445,
0.13047726452350616,
-0.1688390076160431,
0.3598025441169739,
-0.34388822317123413,
0.8287069797515869,
-0.3545684218406677,
-0.05250696465373039,
-0.15254130959510803,
-0.3235083818435669,
0.25012755393981934,
-0.06685201823711395,
0.02280379831790924,
-0.5010049343109131,
0.0630507692694664,
0.1640278846025467,
-0.06110529229044914,
-0.11040513962507248,
0.0001883469521999359,
-0.29423439502716064,
0.17399311065673828,
-0.05446000024676323,
0.020480066537857056,
-0.1534421592950821,
0.3549317717552185,
0.009145889431238174,
0.21883265674114227,
-0.024584300816059113,
0.10504816472530365,
0.15875381231307983,
0.2887305021286011,
-0.03258870169520378,
-0.03559495881199837,
0.18337830901145935,
-0.5770733952522278,
-0.27923256158828735,
0.1072816327214241,
-0.3708568811416626,
0.5369709134101868,
0.019554996863007545,
-0.2575699985027313,
0.24254268407821655,
0.013071995228528976,
0.23272700607776642,
0.20163023471832275,
-0.05268688499927521,
0.12248998880386353,
0.30050283670425415,
0.10070647299289703,
-0.22532573342323303,
-0.02109198272228241,
-0.10397309064865112,
-0.0016896240413188934,
-0.34438857436180115,
-0.07735230773687363,
-0.07948081940412521,
-0.40058577060699463,
-0.16589629650115967,
0.2631053626537323,
-0.17360788583755493,
-0.010528119280934334,
0.17670325934886932,
-0.05212199687957764,
-0.08903788030147552,
-0.3136580288410187,
0.149751216173172,
0.18000087141990662,
0.040967024862766266,
0.11198662966489792,
-0.07747428119182587,
-0.17475105822086334,
0.08596835285425186,
0.18168750405311584,
0.37234076857566833,
0.08331708610057831,
0.5415465831756592,
-0.2741079032421112,
-0.010432146489620209,
-0.2523804306983948,
0.08366825431585312,
0.09185966849327087,
-0.7165340185165405,
0.2361985296010971,
-0.30144035816192627,
0.2387855499982834,
0.10115925222635269,
0.4325397312641144,
0.30516672134399414,
0.213666170835495,
0.04068781062960625,
-0.21698635816574097,
-0.08582444489002228,
-0.09690706431865692,
0.03045140951871872,
0.22586697340011597,
0.007245149463415146,
0.16768550872802734,
-0.08454357087612152,
0.2230575531721115,
-0.32885998487472534,
0.27063485980033875,
-0.08113589137792587,
0.08412584662437439,
-0.004769332706928253,
-0.11927134543657303,
-0.05203764885663986,
-0.04612395912408829,
0.15941843390464783,
0.09487906098365784,
-0.1736588180065155,
-0.23261591792106628,
-0.08967722952365875,
0.13318899273872375,
-0.040018633008003235,
0.1329050213098526,
-0.23253785073757172,
-0.20186328887939453,
0.22113552689552307,
-0.06188661605119705,
0.19287726283073425,
-0.12437880039215088,
0.13668081164360046,
0.03726830706000328,
0.15354108810424805,
0.09993819892406464,
-0.2555319666862488,
0.20247812569141388,
-0.2809893786907196,
0.32469308376312256,
-0.04340437427163124,
0.16911101341247559,
-0.01953415758907795,
-0.04079284146428108,
-0.3310750722885132,
0.045702606439590454,
-0.2060306817293167,
0.08934243768453598,
0.1524745523929596,
-0.2731485366821289,
-0.15863502025604248,
0.4062790274620056,
0.15895336866378784,
0.5390264391899109,
-0.3238697052001953,
0.1248406171798706,
-0.03246687352657318,
0.22078412771224976,
-0.3509299159049988,
-0.15090131759643555,
0.04210907220840454,
0.009914175607264042,
0.23707315325737,
0.34536805748939514,
0.31186726689338684,
-0.22164210677146912,
-0.10294412076473236,
0.066070556640625,
0.40315714478492737,
0.012986855581402779,
0.37647417187690735,
0.38099658489227295,
0.29306355118751526,
-0.20264019072055817,
0.29370179772377014,
-0.040577035397291183,
0.026859179139137268,
0.5647312998771667,
-0.5716760754585266,
0.09701690822839737,
-0.010052680969238281,
0.25846460461616516,
0.20961296558380127,
-0.13181190192699432,
0.3875594139099121,
0.0626455619931221,
-0.11366914212703705,
0.025414597243070602,
-0.0024646446108818054,
0.16818831861019135,
-0.20091459155082703,
-0.055332258343696594,
-0.08879844099283218,
0.09492357075214386,
-0.18221518397331238,
-0.11947053670883179,
-0.109476238489151,
-0.2381826937198639,
-0.24145646393299103,
0.12669846415519714,
0.020760344341397285,
0.06687340885400772,
0.1796785444021225,
0.024395816028118134,
-0.32661718130111694,
-0.39246562123298645,
0.21195483207702637,
0.3055468499660492,
0.38217300176620483,
-0.40208709239959717,
0.2971867322921753,
0.4687804579734802,
-0.10851892828941345,
0.18106193840503693,
0.49460795521736145,
0.6445353031158447,
0.23672311007976532,
-0.1513957381248474,
0.21442925930023193,
0.09081374108791351,
-0.15453767776489258,
-0.19456055760383606,
0.10614639520645142,
-0.10233666002750397,
0.18144793808460236,
0.1494653820991516,
0.07850342243909836,
-0.11494787782430649,
-0.10567770898342133,
0.27710413932800293,
0.14482061564922333,
-0.0929141491651535,
0.21856535971164703,
-0.19765175879001617,
-0.1344170719385147,
0.021139374002814293,
0.25088047981262207,
-0.345834344625473,
0.008822198025882244,
0.34924349188804626,
0.24176828563213348,
0.11992096155881882,
-0.2315482497215271,
0.12837935984134674,
0.034570563584566116,
0.3339751064777374,
0.17538879811763763,
0.05148914456367493,
-0.24770411849021912,
-0.03247431293129921,
-0.6966258883476257,
0.09627106040716171,
-0.4398218095302582,
-0.024714268743991852,
0.2195524126291275,
0.3855263292789459,
-0.3456200659275055,
-0.009113091975450516,
0.37299060821533203,
0.07274400442838669,
0.027559097856283188,
0.23961056768894196,
-0.22255182266235352,
-0.0010231435298919678,
0.43841707706451416,
-0.25543829798698425,
0.11879055202007294,
-0.42891621589660645,
0.3651637136936188,
-0.3669343590736389,
0.028713390231132507,
-0.15102913975715637,
0.06782516837120056,
0.10201308131217957,
-0.27574655413627625,
0.41586628556251526,
0.08896931260824203,
0.33409836888313293,
-0.005750695243477821,
-0.20173926651477814,
-0.23668643832206726,
-0.1630808264017105,
-0.21888144314289093,
0.2959429919719696,
0.500656008720398,
0.11525671184062958,
-0.02089414745569229,
-0.42211851477622986,
-0.1788979321718216,
0.22491340339183807,
0.03899586200714111,
-0.07184117287397385,
-0.07915578037500381,
0.05787745118141174,
-0.20155233144760132,
0.16071604192256927,
0.02403884008526802,
0.20760467648506165,
-0.0899779200553894,
0.1652422398328781,
-0.23897849023342133,
-0.655559778213501,
0.39394497871398926,
-0.17947886884212494,
-0.09075834602117538,
-0.13619422912597656,
0.3525642454624176,
0.2518315613269806,
0.07717859745025635,
-0.6191429495811462,
0.23891782760620117,
0.5750243067741394,
-0.22884970903396606,
-0.009729404002428055,
0.15335308015346527,
-0.12989819049835205,
0.047292377799749374,
0.017555534839630127,
-0.07612006366252899,
0.030506037175655365,
-0.29468801617622375,
0.2548619508743286,
-0.3082234859466553
] |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | Hi! Got same error when loading other dataset:
```python3
load_dataset('wikicorpus', 'raw_en')
```
tb:
```pytb
---------------------------------------------------------------------------
DuplicatedKeysError Traceback (most recent call last)
/opt/conda/lib/python3.8/site-packages/datasets/builder.py in _prepare_split(self, split_generator)
1109 example = self.info.features.encode_example(record)
-> 1110 writer.write(example, key)
1111 finally:
/opt/conda/lib/python3.8/site-packages/datasets/arrow_writer.py in write(self, example, key, writer_batch_size)
341 if self._check_duplicates:
--> 342 self.check_duplicate_keys()
343 # Re-intializing to empty list for next batch
/opt/conda/lib/python3.8/site-packages/datasets/arrow_writer.py in check_duplicate_keys(self)
352 if hash in tmp_record:
--> 353 raise DuplicatedKeysError(key)
354 else:
DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 519
Keys should be unique and deterministic in nature
```
Version: datasets==1.11.0 | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
| 91 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
Hi! Got same error when loading other dataset:
```python3
load_dataset('wikicorpus', 'raw_en')
```
tb:
```pytb
---------------------------------------------------------------------------
DuplicatedKeysError Traceback (most recent call last)
/opt/conda/lib/python3.8/site-packages/datasets/builder.py in _prepare_split(self, split_generator)
1109 example = self.info.features.encode_example(record)
-> 1110 writer.write(example, key)
1111 finally:
/opt/conda/lib/python3.8/site-packages/datasets/arrow_writer.py in write(self, example, key, writer_batch_size)
341 if self._check_duplicates:
--> 342 self.check_duplicate_keys()
343 # Re-intializing to empty list for next batch
/opt/conda/lib/python3.8/site-packages/datasets/arrow_writer.py in check_duplicate_keys(self)
352 if hash in tmp_record:
--> 353 raise DuplicatedKeysError(key)
354 else:
DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 519
Keys should be unique and deterministic in nature
```
Version: datasets==1.11.0 | [
-0.0506565235555172,
-0.02653065323829651,
-0.0967085063457489,
0.33766692876815796,
0.09382720291614532,
-0.005184784531593323,
0.20963692665100098,
0.27232253551483154,
0.097866952419281,
0.0846780389547348,
-0.0767664834856987,
0.37975847721099854,
-0.18557727336883545,
0.13125024735927582,
0.13767682015895844,
0.07047873735427856,
-0.04517389088869095,
0.183259516954422,
0.13118790090084076,
-0.034216560423374176,
-0.3247791528701782,
0.2772045135498047,
-0.22566162049770355,
0.010591134428977966,
-0.21625100076198578,
-0.14123882353305817,
-0.18521329760551453,
0.23770979046821594,
-0.17053914070129395,
-0.6306683421134949,
0.2620755434036255,
0.20496736466884613,
-0.29320263862609863,
0.349494606256485,
-0.00011318139877403155,
0.1847906857728958,
0.3866310715675354,
-0.022092366591095924,
-0.2522616684436798,
-0.19846375286579132,
-0.09951531887054443,
-0.09471765905618668,
0.08449263870716095,
-0.2655922472476959,
-0.06161142885684967,
-0.12183188647031784,
-0.09808412194252014,
-0.5638545751571655,
0.8383656740188599,
0.21868957579135895,
0.24880290031433105,
0.17807252705097198,
0.35651662945747375,
-0.2654961943626404,
0.23334333300590515,
-0.177057147026062,
-0.05736380070447922,
0.39108628034591675,
0.21378891170024872,
-0.046180009841918945,
0.01890077441930771,
0.2944652736186981,
0.1549510955810547,
-0.0945589542388916,
0.44342219829559326,
-0.05743324011564255,
0.0748630166053772,
-0.3529263138771057,
0.21761205792427063,
0.08297450095415115,
0.10211294889450073,
-0.2907670736312866,
-0.22445179522037506,
-0.28230851888656616,
0.0506773516535759,
-0.23369954526424408,
0.32890403270721436,
0.1434265673160553,
-0.2258559912443161,
0.16563200950622559,
-0.00857507809996605,
-0.25142738223075867,
0.011715248227119446,
-0.057937487959861755,
0.02188538759946823,
-0.026317469775676727,
-0.05222097411751747,
0.1410631239414215,
0.18785451352596283,
-0.051487766206264496,
0.27468329668045044,
-0.06660281866788864,
0.03523409366607666,
0.1945718675851822,
-0.5258195996284485,
0.12675736844539642,
-0.04443741589784622,
-0.1213003620505333,
0.2348860502243042,
0.0344492644071579,
0.18185965716838837,
-0.1160668358206749,
0.07464192062616348,
0.0022265352308750153,
0.09573270380496979,
0.13079194724559784,
0.014150485396385193,
0.24627460539340973,
0.18251456320285797,
-0.1548224836587906,
-0.2489558309316635,
-0.05596847087144852,
-0.1899845451116562,
-0.19462506473064423,
0.3649502396583557,
0.08283354341983795,
0.5289832353591919,
0.08616095781326294,
-0.23619471490383148,
0.13379007577896118,
-0.13450191915035248,
-0.09757985174655914,
0.06428609788417816,
0.3334588408470154,
0.19801340997219086,
-0.32918021082878113,
0.11612671613693237,
0.22787083685398102,
-0.12730857729911804,
-0.19554129242897034,
-0.30808666348457336,
-0.08577296137809753,
-0.0730137899518013,
-0.1487099975347519,
0.23540125787258148,
-0.615136981010437,
0.29060325026512146,
0.24765722453594208,
-0.11066527664661407,
-0.5036481022834778,
0.017825504764914513,
0.10398119688034058,
-0.24194443225860596,
0.07849588990211487,
0.023220688104629517,
0.06665549427270889,
-0.022296149283647537,
-0.2303779572248459,
-0.059893008321523666,
0.16670271754264832,
-0.2588889002799988,
-0.37546372413635254,
-0.06665867567062378,
0.27563440799713135,
0.09911486506462097,
0.10026082396507263,
0.024197779595851898,
0.043533939868211746,
0.2254660427570343,
0.17646613717079163,
-0.019403494894504547,
-0.03149140626192093,
-0.08474019914865494,
-0.25604763627052307,
0.2619623839855194,
0.6545102596282959,
-0.09670120477676392,
-0.09103439003229141,
-0.17273472249507904,
0.016248108819127083,
0.09784397482872009,
0.3790159225463867,
-0.22284160554409027,
0.42252251505851746,
-0.351739764213562,
0.1507118046283722,
0.7040379047393799,
-0.19038346409797668,
-0.36904990673065186,
0.1839613914489746,
-0.2506260275840759,
-0.2029004842042923,
0.11253584921360016,
0.011254372075200081,
0.16693131625652313,
0.14609409868717194,
0.17363908886909485,
-0.08322183787822723,
0.043769050389528275,
-0.04668682813644409,
-0.33965829014778137,
-0.3785652220249176,
0.11581363528966904,
-0.08098691701889038,
0.19277070462703705,
-0.13967564702033997,
0.28206756711006165,
-0.10088956356048584,
0.10651890933513641,
-0.1311347335577011,
-0.08408830314874649,
0.08526074886322021,
0.23587025701999664,
0.037979643791913986,
0.06104353070259094,
-0.09419162571430206,
-0.44922149181365967,
0.37519505620002747,
-0.29696524143218994,
-0.26010188460350037,
-0.2236413210630417,
-0.2457149177789688,
-0.4040378928184509,
0.13048158586025238,
-0.5598600506782532,
-0.012333355844020844,
0.1953624188899994,
-0.026378199458122253,
0.2334783673286438,
0.0946783721446991,
-0.13282746076583862,
0.18248751759529114,
0.06210856884717941,
0.07866090536117554,
-0.21759751439094543,
0.24315519630908966,
-0.45920801162719727,
-0.06291159242391586,
0.09952807426452637,
0.2300843596458435,
0.3229331076145172,
-0.0937633067369461,
-0.17576748132705688,
0.41196995973587036,
-0.22773641347885132,
-0.0013415142893791199,
-0.000053394585847854614,
-0.13392339646816254,
0.06968828290700912,
-0.37738215923309326,
0.18818138539791107,
0.28734123706817627,
0.17587873339653015,
-0.14630037546157837,
-0.0467563197016716,
0.3089578151702881,
-0.0962028056383133,
0.0982416570186615,
-0.05539455637335777,
-0.037956397980451584,
0.10371151566505432,
-0.11514148116111755,
0.2339859902858734,
-0.12828239798545837,
0.3135378062725067,
-0.3360983431339264,
0.39280474185943604,
0.12523022294044495,
-0.2248098999261856,
0.10922157019376755,
0.28420695662498474,
0.022660087794065475,
0.18944835662841797,
0.0273581575602293,
0.04803795740008354,
-0.17088356614112854,
-0.3229435682296753,
0.25535768270492554,
0.3024671971797943,
0.14639082551002502,
-0.1326412558555603,
0.26532870531082153,
0.021453872323036194,
-0.18303212523460388,
0.3622652292251587,
-0.17404787242412567,
-0.10034594684839249,
0.40411749482154846,
0.09082519263029099,
0.027112921699881554,
-0.4047193229198456,
-0.13920274376869202,
0.17156168818473816,
0.11385028064250946,
-0.23784655332565308,
0.0071047209203243256,
-0.1528921127319336,
-0.0564408004283905,
-0.49251824617385864,
0.5608201622962952,
-0.10723064839839935,
-0.12463892251253128,
0.2069615125656128,
0.0719938799738884,
0.15259991586208344,
0.10050761699676514,
-0.2353830635547638,
0.15931017696857452,
0.05512683838605881,
0.10801311582326889,
-0.19707848131656647,
-0.08667102456092834,
-0.06144703924655914,
0.021470677107572556,
0.3701877295970917,
-0.10351623594760895,
0.5540131330490112,
-0.18825742602348328,
0.10394225269556046,
-0.23969766497612,
-0.31827446818351746,
-0.038376301527023315,
0.03010193631052971,
0.16027404367923737,
0.08712124824523926,
-0.027178816497325897,
-0.023796364665031433,
-0.3870372474193573,
0.2663695514202118,
-0.28965258598327637,
-0.4052238464355469,
-0.007430761121213436,
-0.0020917237270623446,
-0.0275115929543972,
-0.21066957712173462,
-0.537936806678772,
-0.26093941926956177,
-0.2703043520450592,
0.3129996657371521,
-0.11990562081336975,
0.08808281272649765,
0.35698601603507996,
-0.048092447221279144,
-0.017287584021687508,
-0.02123677171766758,
0.1838795244693756,
-0.3261016607284546,
0.019795764237642288,
0.0338793620467186,
-0.058575864881277084,
-0.31703826785087585,
-0.07422676682472229,
-0.1409897655248642,
0.17567332088947296,
-0.10759605467319489,
-0.3542789816856384,
0.286362886428833,
-0.2775953710079193,
0.4044704735279083,
-0.2260816991329193,
0.30474451184272766,
0.1968454271554947,
0.2564007639884949,
-0.13573206961154938,
-0.1624036282300949,
-0.02878432348370552,
0.10438764095306396,
-0.1742863953113556,
0.07444783300161362,
0.1234034076333046,
0.3143497705459595,
-0.24399417638778687,
0.8015073537826538,
0.6011497378349304,
0.0021507851779460907,
0.21924427151679993,
-0.21711525321006775,
0.3666773736476898,
-0.27027642726898193,
-0.4478715658187866,
-0.2633078992366791,
0.10359852015972137,
0.06864254921674728,
0.0786144807934761,
-0.09019673615694046,
-0.0777263268828392,
0.1561601310968399,
-0.17077822983264923,
-0.5983707308769226,
-0.3052639365196228,
0.06305968761444092,
-0.2540404498577118,
0.1322246640920639,
0.059292566031217575,
0.009505875408649445,
0.014797285199165344,
0.019925229251384735,
-0.024745427072048187,
0.24369755387306213,
-0.016087740659713745,
0.09680801630020142,
-0.1489839255809784,
-0.161886066198349,
-0.39316171407699585,
0.13127562403678894,
-0.12905533611774445,
0.21168622374534607,
-0.003911152482032776,
0.23569262027740479,
0.3793327212333679,
-0.20404571294784546,
0.6450527310371399,
-0.07904839515686035,
0.14704495668411255,
0.10921633243560791,
0.14356552064418793,
-0.09409907460212708,
-0.10587923973798752,
0.06800726056098938,
0.433117151260376,
0.11259441077709198,
0.10720451921224594,
-0.2608775496482849,
0.043325457721948624,
-0.04421351104974747,
0.2962646484375,
-0.3561614751815796,
-0.37498506903648376,
-0.15645085275173187,
-0.3320353031158447,
-0.5376148223876953,
-0.011380277574062347,
0.005925338715314865,
0.25770673155784607,
-0.012277578935027122,
-0.08733280003070831,
-0.24341486394405365,
-0.2121431529521942,
0.018421515822410583,
0.19750475883483887,
0.2777833640575409,
0.12205816805362701,
0.5724916458129883,
0.4022457003593445,
-0.14940844476222992,
0.003983885049819946,
0.7032377123832703,
-0.018190372735261917,
-0.026868872344493866,
-0.300982266664505,
-0.21836118400096893,
-0.18410071730613708,
0.2520710825920105,
-0.18203683197498322,
0.16879239678382874,
0.08916644752025604,
0.025671370327472687,
0.02156701125204563,
-0.18311911821365356,
0.17120306193828583,
-0.17534589767456055,
-0.22596892714500427,
-0.4079320728778839,
0.28266891837120056,
-0.12923941016197205,
-0.25152459740638733,
0.27989643812179565,
0.1300748884677887,
-0.15422311425209045,
0.3632351756095886,
-0.33521249890327454,
0.8218473196029663,
-0.3532816171646118,
-0.06764534115791321,
-0.1762683391571045,
-0.3206605315208435,
0.2579028606414795,
-0.07196100056171417,
0.02930709347128868,
-0.49594050645828247,
0.05418781191110611,
0.1736234873533249,
-0.05994098260998726,
-0.07638903707265854,
-0.010447315871715546,
-0.3085426092147827,
0.19034112989902496,
-0.0599965900182724,
0.0012935735285282135,
-0.16727861762046814,
0.3595797121524811,
-0.012312892824411392,
0.23994876444339752,
-0.013555876910686493,
0.11528363823890686,
0.13412651419639587,
0.2973424196243286,
-0.050401873886585236,
-0.028444472700357437,
0.19192445278167725,
-0.5713018178939819,
-0.305001437664032,
0.11072988063097,
-0.36812636256217957,
0.5553811192512512,
-0.008170198649168015,
-0.25084787607192993,
0.2377803921699524,
0.03250354900956154,
0.2473180592060089,
0.22809045016765594,
-0.05053306370973587,
0.1029120534658432,
0.2869988977909088,
0.07142696529626846,
-0.24142424762248993,
-0.013944130390882492,
-0.08041863143444061,
-0.012586966156959534,
-0.3690926432609558,
-0.062040217220783234,
-0.07039182633161545,
-0.4344574213027954,
-0.16714170575141907,
0.24648445844650269,
-0.16945064067840576,
-0.03647885471582413,
0.17225296795368195,
-0.05514611303806305,
-0.09886245429515839,
-0.31190794706344604,
0.14641772210597992,
0.17965620756149292,
0.06238885596394539,
0.10580582171678543,
-0.06828218698501587,
-0.18665209412574768,
0.08057202398777008,
0.15473949909210205,
0.3759063482284546,
0.06330226361751556,
0.5445219278335571,
-0.26286575198173523,
-0.007223280146718025,
-0.24901506304740906,
0.08115025609731674,
0.08625061810016632,
-0.6860793828964233,
0.2478182166814804,
-0.2962576746940613,
0.2240409106016159,
0.10877207666635513,
0.4142886996269226,
0.3356962203979492,
0.22327902913093567,
0.08195966482162476,
-0.21509434282779694,
-0.12095029652118683,
-0.07531668245792389,
0.012726973742246628,
0.2521207332611084,
0.005137454718351364,
0.18771228194236755,
-0.049714844673871994,
0.21160472929477692,
-0.33932074904441833,
0.2870151698589325,
-0.09369957447052002,
0.07923360913991928,
-0.011899087578058243,
-0.1192265972495079,
-0.060576364398002625,
-0.013703052885830402,
0.15991166234016418,
0.12080953270196915,
-0.1890535056591034,
-0.23173874616622925,
-0.08219192922115326,
0.12983177602291107,
-0.027275901287794113,
0.14835892617702484,
-0.2258436232805252,
-0.2204289585351944,
0.22166167199611664,
-0.05747130513191223,
0.192847341299057,
-0.0927041620016098,
0.14921870827674866,
0.04309694468975067,
0.1456860452890396,
0.09884390234947205,
-0.2510826885700226,
0.1975170522928238,
-0.2540413439273834,
0.31947964429855347,
-0.05786614865064621,
0.17434018850326538,
0.0008011526660993695,
-0.05304109677672386,
-0.3475048542022705,
0.0611162930727005,
-0.16159118711948395,
0.0822995975613594,
0.13227975368499756,
-0.2498299926519394,
-0.1537819653749466,
0.4204135239124298,
0.1611456573009491,
0.5025948286056519,
-0.3153916299343109,
0.14377938210964203,
-0.023763149976730347,
0.23356671631336212,
-0.3553118407726288,
-0.13314437866210938,
0.0018795114010572433,
0.01349756307899952,
0.2440268099308014,
0.3504207730293274,
0.2872251272201538,
-0.18267762660980225,
-0.10384845733642578,
0.0704805999994278,
0.40046703815460205,
0.007783509790897369,
0.38447123765945435,
0.3722212612628937,
0.27842414379119873,
-0.23352234065532684,
0.28747573494911194,
-0.04316135123372078,
0.050026800483465195,
0.5659118890762329,
-0.5653171539306641,
0.10772821307182312,
-0.03380514681339264,
0.2446526139974594,
0.20793583989143372,
-0.11937983334064484,
0.38596194982528687,
0.05764027684926987,
-0.12049630284309387,
0.007329974323511124,
-0.0034065768122673035,
0.16657721996307373,
-0.20716531574726105,
-0.05674294754862785,
-0.09290662407875061,
0.08416213095188141,
-0.17666062712669373,
-0.10678929090499878,
-0.08232244849205017,
-0.23169073462486267,
-0.2621315121650696,
0.1127241998910904,
0.030534720048308372,
0.07362941652536392,
0.17963968217372894,
-0.0074669718742370605,
-0.34811341762542725,
-0.37859106063842773,
0.2002185881137848,
0.3214319050312042,
0.36712828278541565,
-0.41374751925468445,
0.2705954611301422,
0.4744778275489807,
-0.11668920516967773,
0.17050880193710327,
0.5382393598556519,
0.6460696458816528,
0.23550081253051758,
-0.15614432096481323,
0.23389966785907745,
0.0935707539319992,
-0.1518334150314331,
-0.17700976133346558,
0.07927018404006958,
-0.10903330147266388,
0.17498882114887238,
0.16330675780773163,
0.08514034748077393,
-0.12436231225728989,
-0.11418318748474121,
0.2625713348388672,
0.13800355792045593,
-0.10964365303516388,
0.22173723578453064,
-0.19395606219768524,
-0.10941337049007416,
0.02328791469335556,
0.265350878238678,
-0.3807305693626404,
0.005583634600043297,
0.3437035381793976,
0.21793469786643982,
0.10090586543083191,
-0.22970442473888397,
0.13101044297218323,
0.04474475607275963,
0.3138364851474762,
0.18473654985427856,
0.045094311237335205,
-0.2534659504890442,
-0.03942924365401268,
-0.702153742313385,
0.08850749582052231,
-0.43661099672317505,
-0.0163163673132658,
0.1816157102584839,
0.3796531558036804,
-0.33871185779571533,
0.010820958763360977,
0.3618086874485016,
0.07118221372365952,
0.023916631937026978,
0.24039135873317719,
-0.21538035571575165,
-0.008412927389144897,
0.42158716917037964,
-0.2574011981487274,
0.14079852402210236,
-0.42497631907463074,
0.34163230657577515,
-0.3546767830848694,
0.04054361581802368,
-0.14331504702568054,
0.058568283915519714,
0.1231762170791626,
-0.3012670874595642,
0.39875978231430054,
0.10309404879808426,
0.3309638798236847,
-0.017795410007238388,
-0.2310415506362915,
-0.23941659927368164,
-0.17231415212154388,
-0.21470937132835388,
0.28920894861221313,
0.5318419933319092,
0.14685051143169403,
-0.025586385279893875,
-0.43068647384643555,
-0.2093372792005539,
0.2462717443704605,
0.04954860359430313,
-0.05833030864596367,
-0.0740986093878746,
0.06394702941179276,
-0.183903306722641,
0.1469750553369522,
0.05750501528382301,
0.2097407877445221,
-0.09274882078170776,
0.1925729662179947,
-0.23319382965564728,
-0.6767182946205139,
0.3900073170661926,
-0.13943760097026825,
-0.10639046132564545,
-0.11984966695308685,
0.34685516357421875,
0.24570232629776,
0.0856785997748375,
-0.6321535110473633,
0.25256243348121643,
0.5547977685928345,
-0.20413491129875183,
-0.0026269685477018356,
0.142616406083107,
-0.13998591899871826,
0.024154361337423325,
0.03144014999270439,
-0.05704003572463989,
0.03546864539384842,
-0.27953898906707764,
0.272445946931839,
-0.30171018838882446
] |
https://github.com/huggingface/datasets/issues/2552 | Keys should be unique error on code_search_net | The wikicorpus issue has been fixed by https://github.com/huggingface/datasets/pull/2844
We'll do a new release of `datasets` soon :) | ## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
| 17 | Keys should be unique error on code_search_net
## Describe the bug
Loading `code_search_net` seems not possible at the moment.
## Steps to reproduce the bug
```python
>>> load_dataset('code_search_net')
Downloading: 8.50kB [00:00, 3.09MB/s]
Downloading: 19.1kB [00:00, 10.1MB/s]
No config specified, defaulting to: code_search_net/all
Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a...
Traceback (most recent call last):
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split
writer.write(example, key)
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write
self.check_duplicate_keys()
File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 48
Keys should be unique and deterministic in nature
```
## Environment info
- `datasets` version: 1.8.1.dev0
- Platform: macOS-10.15.7-x86_64-i386-64bit
- Python version: 3.8.5
- PyArrow version: 2.0.0
The wikicorpus issue has been fixed by https://github.com/huggingface/datasets/pull/2844
We'll do a new release of `datasets` soon :) | [
-0.07428081333637238,
-0.035179831087589264,
-0.08668236434459686,
0.35816043615341187,
0.06232611462473869,
-0.03549334779381752,
0.16847482323646545,
0.26390165090560913,
0.09276586771011353,
0.12361413985490799,
-0.04451386630535126,
0.3784416913986206,
-0.1519160121679306,
0.1347227245569229,
0.11378256231546402,
0.03938262164592743,
-0.0278351828455925,
0.19986556470394135,
0.10080993175506592,
-0.03489585965871811,
-0.3487110733985901,
0.3278388977050781,
-0.2847044765949249,
0.06205477938055992,
-0.2731282413005829,
-0.17734700441360474,
-0.1778879016637802,
0.20071956515312195,
-0.21402837336063385,
-0.6042184829711914,
0.26841163635253906,
0.20270635187625885,
-0.2295342981815338,
0.3793151378631592,
-0.00011121763236587867,
0.18493719398975372,
0.3967280387878418,
-0.009995480999350548,
-0.2528955638408661,
-0.13522101938724518,
-0.05936058238148689,
-0.0799274891614914,
0.11422596126794815,
-0.3115123212337494,
-0.05528289079666138,
-0.10503536462783813,
-0.06629389524459839,
-0.48703518509864807,
0.8415838479995728,
0.24766805768013,
0.26323968172073364,
0.22911740839481354,
0.3477334976196289,
-0.2014206349849701,
0.2588488459587097,
-0.290458083152771,
-0.08240503072738647,
0.307355672121048,
0.18800312280654907,
-0.07121940702199936,
-0.025993235409259796,
0.3081960678100586,
0.13076959550380707,
-0.07336308062076569,
0.3915862441062927,
-0.015497597865760326,
0.05701804906129837,
-0.32799795269966125,
0.2298201322555542,
0.10040830820798874,
0.10760068893432617,
-0.275733083486557,
-0.18306781351566315,
-0.23529934883117676,
0.04565137252211571,
-0.25532078742980957,
0.37907660007476807,
0.10813739150762558,
-0.18496213853359222,
0.16183657944202423,
0.018458353355526924,
-0.149959996342659,
0.04371405392885208,
-0.0016605034470558167,
-0.05117582529783249,
0.17371341586112976,
-0.03230651840567589,
0.14440885186195374,
0.19394007325172424,
-0.05478733032941818,
0.30418822169303894,
-0.08993175625801086,
0.0066322460770606995,
0.18313847482204437,
-0.5206642150878906,
0.1190481185913086,
-0.05583537369966507,
-0.02976912260055542,
0.18824335932731628,
-0.020924735814332962,
0.16257146000862122,
-0.09580176323652267,
0.09990917146205902,
0.01813867688179016,
0.15904399752616882,
0.09955181181430817,
0.05601266771554947,
0.26264819502830505,
0.20377680659294128,
-0.14407134056091309,
-0.2874125838279724,
-0.04675741493701935,
-0.15676076710224152,
-0.17447295784950256,
0.3424733281135559,
0.020964935421943665,
0.49842798709869385,
0.0877818912267685,
-0.17726744711399078,
0.08519615232944489,
-0.14820900559425354,
-0.12401298433542252,
0.04194815456867218,
0.3618212640285492,
0.17236006259918213,
-0.23168787360191345,
0.13410601019859314,
0.22108660638332367,
-0.16488893330097198,
-0.07922794669866562,
-0.32584720849990845,
-0.07711043953895569,
-0.044864147901535034,
-0.15089291334152222,
0.2584308981895447,
-0.5565130710601807,
0.3257266879081726,
0.21642781794071198,
-0.05759426951408386,
-0.5052255392074585,
0.06626392900943756,
0.14264258742332458,
-0.25436800718307495,
0.11147499084472656,
0.014556221663951874,
0.09538447856903076,
-0.06990297138690948,
-0.26886874437332153,
-0.033452108502388,
0.18932664394378662,
-0.2687193751335144,
-0.33438369631767273,
-0.12010757625102997,
0.2900272309780121,
0.09643244743347168,
0.09092837572097778,
-0.0038086846470832825,
-0.006024394184350967,
0.19286909699440002,
0.12178279459476471,
0.005276314914226532,
-0.05634371191263199,
-0.09655582904815674,
-0.24772235751152039,
0.2557831406593323,
0.5845032334327698,
-0.03469284996390343,
-0.10735024511814117,
-0.14534541964530945,
-0.04712286964058876,
0.09786064177751541,
0.3257712423801422,
-0.25675538182258606,
0.44727224111557007,
-0.35280850529670715,
0.26333141326904297,
0.6881003379821777,
-0.24462036788463593,
-0.3804999887943268,
0.09337501972913742,
-0.2463255375623703,
-0.18345341086387634,
0.07955735921859741,
0.052354346960783005,
0.18286721408367157,
0.14908838272094727,
0.11435790359973907,
-0.04427817463874817,
0.10398084670305252,
-0.0017022620886564255,
-0.3555276691913605,
-0.40460139513015747,
0.12093742191791534,
-0.06097375974059105,
0.1574057638645172,
-0.1855025589466095,
0.29230043292045593,
-0.07624679058790207,
0.1631138026714325,
-0.13231055438518524,
-0.11666983366012573,
0.04975662752985954,
0.17577822506427765,
0.006018057465553284,
0.06919354945421219,
-0.053720876574516296,
-0.4638301730155945,
0.3711788058280945,
-0.31740108132362366,
-0.2441737949848175,
-0.21985919773578644,
-0.25430023670196533,
-0.4006927013397217,
0.16879583895206451,
-0.571016252040863,
-0.08225515484809875,
0.23777756094932556,
-0.014065869152545929,
0.19303034245967865,
0.07216660678386688,
-0.13650314509868622,
0.13150347769260406,
0.036936670541763306,
0.055039048194885254,
-0.2035367637872696,
0.2733279764652252,
-0.4755396246910095,
-0.09012290090322495,
0.10201206803321838,
0.24868524074554443,
0.37095966935157776,
-0.07316478341817856,
-0.1867816150188446,
0.3989814817905426,
-0.19458122551441193,
0.02006526291370392,
0.020924942567944527,
-0.12162421643733978,
0.05859494209289551,
-0.3596249222755432,
0.15983857214450836,
0.262494832277298,
0.18729911744594574,
-0.20889225602149963,
-0.054027244448661804,
0.3151099681854248,
-0.06891557574272156,
0.12123194336891174,
-0.07566963136196136,
-0.02452392876148224,
0.1108408123254776,
-0.13426214456558228,
0.2704889476299286,
-0.12265057116746902,
0.2525312304496765,
-0.3048858046531677,
0.29555270075798035,
0.1302853375673294,
-0.16170158982276917,
0.12040093541145325,
0.2963663637638092,
-0.0164513997733593,
0.1959627866744995,
-0.013848274946212769,
0.0177931971848011,
-0.18330836296081543,
-0.2783834934234619,
0.26255369186401367,
0.2929568886756897,
0.13898825645446777,
-0.08986791968345642,
0.24674370884895325,
0.05805034935474396,
-0.17755278944969177,
0.3787800669670105,
-0.16103960573673248,
-0.13129112124443054,
0.37109896540641785,
0.09661593288183212,
-0.001082015223801136,
-0.3934863805770874,
-0.08888959884643555,
0.12214549630880356,
0.11923389881849289,
-0.18380652368068695,
-0.04783111810684204,
-0.14797909557819366,
-0.014187568798661232,
-0.4854322671890259,
0.5594304800033569,
-0.11746911704540253,
-0.209107905626297,
0.24760329723358154,
0.11389961838722229,
0.14755897223949432,
0.13453054428100586,
-0.2055598944425583,
0.1488524079322815,
0.030920645222067833,
0.07778089493513107,
-0.24337570369243622,
-0.14216098189353943,
-0.08067835122346878,
0.043435703963041306,
0.3722386360168457,
-0.005975313950330019,
0.5033735036849976,
-0.17265857756137848,
0.11105649173259735,
-0.2709142565727234,
-0.36227235198020935,
-0.011248461902141571,
0.0630454570055008,
0.1775151789188385,
0.1069364920258522,
0.02993643283843994,
-0.04999595135450363,
-0.47204509377479553,
0.24903538823127747,
-0.323165625333786,
-0.4180161952972412,
-0.047935038805007935,
0.007552803494036198,
-0.042072001844644547,
-0.20852765440940857,
-0.5222281217575073,
-0.2750415802001953,
-0.2573626637458801,
0.2600231170654297,
-0.02068828046321869,
0.08904976397752762,
0.2367379367351532,
-0.024525435641407967,
0.03946971520781517,
-0.07203725725412369,
0.13147026300430298,
-0.3177741467952728,
0.014497298747301102,
0.08669794350862503,
-0.061150696128606796,
-0.32459476590156555,
-0.03705573454499245,
-0.1435472071170807,
0.20854708552360535,
-0.1518791913986206,
-0.40389662981033325,
0.22152146697044373,
-0.26998844742774963,
0.4851069450378418,
-0.17688988149166107,
0.36833861470222473,
0.23995038866996765,
0.28666824102401733,
-0.1356307715177536,
-0.18803948163986206,
-0.08898818492889404,
0.08795595169067383,
-0.21253785490989685,
0.09454663097858429,
0.09323573857545853,
0.21514275670051575,
-0.3133167624473572,
0.8754818439483643,
0.5419552326202393,
0.010315299034118652,
0.1690267026424408,
-0.24947994947433472,
0.3023972511291504,
-0.26389452815055847,
-0.40150925517082214,
-0.17328085005283356,
0.09191913157701492,
0.10003979504108429,
0.16287867724895477,
-0.0817173570394516,
-0.11434390395879745,
0.12915723025798798,
-0.1651420146226883,
-0.6445284485816956,
-0.34703919291496277,
0.045732710510492325,
-0.08951696753501892,
0.05438840389251709,
0.05521779879927635,
0.034783899784088135,
-0.017738139256834984,
-0.008458265103399754,
0.014849493280053139,
0.19849465787410736,
-0.09897290915250778,
0.08162227272987366,
-0.11834706366062164,
-0.07730896770954132,
-0.4334523677825928,
0.14881475269794464,
-0.11072481423616409,
0.20573796331882477,
0.06694681942462921,
0.19185173511505127,
0.3870507478713989,
-0.2534906566143036,
0.5979358553886414,
-0.09488344192504883,
0.1620703935623169,
0.1102636456489563,
0.1533287614583969,
-0.019609637558460236,
-0.0942651778459549,
0.024172838777303696,
0.32040488719940186,
0.15085725486278534,
0.0656290054321289,
-0.2999214231967926,
0.008090570569038391,
-0.007952641695737839,
0.27043646574020386,
-0.3470430374145508,
-0.3830888867378235,
-0.18175294995307922,
-0.3612961173057556,
-0.5679566264152527,
-0.03889522701501846,
-0.018003610894083977,
0.29088643193244934,
-0.03977947682142258,
-0.09195555001497269,
-0.2838909327983856,
-0.20850417017936707,
-0.023390933871269226,
0.2433037906885147,
0.2719501554965973,
0.13032829761505127,
0.5048877596855164,
0.37543416023254395,
-0.13174429535865784,
-0.12153728306293488,
0.6549910306930542,
0.013013605028390884,
0.07370702177286148,
-0.31995487213134766,
-0.2183624655008316,
-0.17773982882499695,
0.2366466224193573,
-0.20965003967285156,
0.21164897084236145,
0.05967928096652031,
0.035430487245321274,
0.052526116371154785,
-0.13548912107944489,
0.20418193936347961,
-0.1521792858839035,
-0.1811763346195221,
-0.31688371300697327,
0.3276798725128174,
-0.07978634536266327,
-0.29358184337615967,
0.3204473555088043,
0.1830194592475891,
-0.13615207374095917,
0.345461905002594,
-0.2941663861274719,
0.8646494746208191,
-0.3622954487800598,
-0.011259764432907104,
-0.09502945095300674,
-0.36146843433380127,
0.2783358693122864,
-0.08596144616603851,
0.023505792021751404,
-0.47011977434158325,
0.08905792981386185,
0.15475134551525116,
-0.006572730839252472,
-0.07367309182882309,
-0.01907242089509964,
-0.34055373072624207,
0.16037848591804504,
-0.012533344328403473,
0.06283121556043625,
-0.18613606691360474,
0.339665949344635,
0.021042784675955772,
0.20697270333766937,
-0.07832297682762146,
0.12335318326950073,
0.1063627302646637,
0.2603188753128052,
-0.06110445037484169,
-0.02623831108212471,
0.2197212278842926,
-0.6053758859634399,
-0.25624406337738037,
0.14159011840820312,
-0.43170565366744995,
0.5209044218063354,
-0.03542293980717659,
-0.19005648791790009,
0.18607406318187714,
0.10642930865287781,
0.20525939762592316,
0.21764250099658966,
-0.07292904704809189,
0.14931119978427887,
0.22589465975761414,
0.047284405678510666,
-0.2381494641304016,
0.0004402678459882736,
-0.13662168383598328,
-0.04975289851427078,
-0.3872922956943512,
-0.07264920324087143,
-0.05932014063000679,
-0.43909335136413574,
-0.0948915034532547,
0.32355374097824097,
-0.13238230347633362,
-0.026305558159947395,
0.1509139984846115,
0.020866259932518005,
-0.15813764929771423,
-0.32818928360939026,
0.1640159785747528,
0.14396050572395325,
-0.0019016803707927465,
0.10280230641365051,
-0.05737142637372017,
-0.1600799560546875,
0.039942849427461624,
0.20162829756736755,
0.35254475474357605,
-0.020414220169186592,
0.5597220659255981,
-0.22384501993656158,
-0.02220350131392479,
-0.2568179965019226,
0.05053950101137161,
0.07848392426967621,
-0.6631228923797607,
0.19796064496040344,
-0.2169671505689621,
0.13726790249347687,
0.09527045488357544,
0.54434734582901,
0.28491196036338806,
0.2319776713848114,
0.08913438022136688,
-0.2373340129852295,
-0.14455994963645935,
-0.11382348835468292,
0.021296769380569458,
0.28131288290023804,
0.017784275114536285,
0.18478955328464508,
-0.07960580289363861,
0.24428442120552063,
-0.3585905134677887,
0.29094672203063965,
-0.15179255604743958,
0.11261673271656036,
0.023583944886922836,
-0.11574817448854446,
-0.04751558601856232,
0.0386178120970726,
0.20428971946239471,
0.13021378219127655,
-0.189231738448143,
-0.25830546021461487,
-0.12504884600639343,
0.11936838179826736,
0.01972850412130356,
0.10222963243722916,
-0.19274139404296875,
-0.19397199153900146,
0.23766256868839264,
-0.09768038243055344,
0.23155322670936584,
-0.12627911567687988,
0.1216459721326828,
0.03510720655322075,
0.1617293357849121,
0.13284620642662048,
-0.3004215359687805,
0.13586971163749695,
-0.24065375328063965,
0.31650543212890625,
-0.05068964883685112,
0.13336628675460815,
-0.006060820072889328,
-0.045996349304914474,
-0.16343237459659576,
0.04334166646003723,
-0.1613440066576004,
0.15626999735832214,
0.13282042741775513,
-0.23505760729312897,
-0.26079055666923523,
0.43057897686958313,
0.09158188104629517,
0.5241199731826782,
-0.31245213747024536,
0.07934648543596268,
0.007780364248901606,
0.2575986683368683,
-0.3564537465572357,
-0.13531778752803802,
0.12813115119934082,
-0.012900548987090588,
0.24924114346504211,
0.3392428457736969,
0.23726335167884827,
-0.2636076807975769,
-0.12545207142829895,
0.07861319184303284,
0.2940694987773895,
-0.1136123538017273,
0.3887006342411041,
0.355451762676239,
0.24331219494342804,
-0.2754880487918854,
0.2628868520259857,
-0.05427649989724159,
0.03256770968437195,
0.5613675713539124,
-0.5922803282737732,
0.2081758975982666,
-0.09405968338251114,
0.25543051958084106,
0.23589059710502625,
-0.09764117002487183,
0.4575899541378021,
0.09535691887140274,
-0.07752351462841034,
0.018796399235725403,
-0.011983178555965424,
0.06843486428260803,
-0.20778079330921173,
-0.01523401029407978,
-0.13468879461288452,
0.07151851058006287,
-0.19955798983573914,
-0.11215512454509735,
-0.09878101944923401,
-0.22263580560684204,
-0.23549453914165497,
0.11056414246559143,
0.032293736934661865,
0.08831439912319183,
0.19896188378334045,
0.026233375072479248,
-0.3541199564933777,
-0.3746517300605774,
0.11732819676399231,
0.2755417823791504,
0.4009862542152405,
-0.39655473828315735,
0.26084572076797485,
0.4996076822280884,
-0.10168485343456268,
0.11753326654434204,
0.5371188521385193,
0.6057383418083191,
0.24700714647769928,
-0.13427656888961792,
0.21503309905529022,
0.06290937215089798,
-0.14977458119392395,
-0.18340042233467102,
0.10924645513296127,
-0.10839521884918213,
0.18562564253807068,
0.18245190382003784,
0.10806167870759964,
-0.15290986001491547,
-0.15725192427635193,
0.2447272092103958,
0.09841439127922058,
-0.10115814208984375,
0.12194572389125824,
-0.19248735904693604,
-0.13520003855228424,
-0.03995032608509064,
0.29470357298851013,
-0.3455330431461334,
0.0732991173863411,
0.2401660978794098,
0.22332561016082764,
0.1486767828464508,
-0.2627128064632416,
0.13775891065597534,
0.08875562250614166,
0.36421841382980347,
0.1823173612356186,
0.07947516441345215,
-0.2567424178123474,
-0.0662507563829422,
-0.7227306962013245,
0.11547266691923141,
-0.43715420365333557,
-0.05877615138888359,
0.16906329989433289,
0.34984445571899414,
-0.3532668650150299,
0.04509271681308746,
0.35785314440727234,
0.12526224553585052,
0.11362916976213455,
0.20332735776901245,
-0.24702802300453186,
-0.04641998931765556,
0.4598293900489807,
-0.2959706485271454,
0.14752112329006195,
-0.4268782138824463,
0.3193942904472351,
-0.3618767261505127,
0.06441942602396011,
-0.11501514911651611,
0.07191525399684906,
0.0668061375617981,
-0.34835681319236755,
0.36820271611213684,
0.17539533972740173,
0.3102426528930664,
-0.07424922287464142,
-0.18543684482574463,
-0.23999714851379395,
-0.14637663960456848,
-0.23066280782222748,
0.17341762781143188,
0.5155047178268433,
0.1801416128873825,
0.01830625906586647,
-0.34339573979377747,
-0.2121744602918625,
0.19654923677444458,
0.06840110570192337,
-0.005520428065210581,
-0.019654184579849243,
0.05978111922740936,
-0.16449904441833496,
0.14732573926448822,
0.09698542207479477,
0.24170830845832825,
-0.08786806464195251,
0.17695555090904236,
-0.22191834449768066,
-0.6492438316345215,
0.39641761779785156,
-0.22784289717674255,
-0.13658280670642853,
-0.12809374928474426,
0.3268313407897949,
0.2046230435371399,
0.10020660609006882,
-0.6723277568817139,
0.2960057556629181,
0.5039239525794983,
-0.16202890872955322,
-0.019011370837688446,
0.1430852860212326,
-0.12363536655902863,
0.008882202208042145,
0.010875359177589417,
-0.022204935550689697,
0.08054067939519882,
-0.2500545084476471,
0.2628285586833954,
-0.3124886155128479
] |
https://github.com/huggingface/datasets/issues/2549 | Handling unlabeled datasets | Hi @nelson-liu,
You can pass the parameter `features` to `load_dataset`: https://huggingface.co/docs/datasets/_modules/datasets/load.html#load_dataset
If you look at the code of the MNLI script you referred in your question (https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py#L62-L77), you can see how the Features were originally specified.
Feel free to use it as a template, customize it and pass it to `load_dataset` using the parameter `features`. | Hi!
Is there a way for datasets to produce unlabeled instances (e.g., the `ClassLabel` can be nullable).
For example, I want to use the MNLI dataset reader ( https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py ) on a file that doesn't have the `gold_label` field. I tried setting `"label": data.get("gold_label")`, but got the following error:
```
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/builder.py", line 989, in _prepare_split
example = self.info.features.encode_example(record)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 953, in encode_example
return encode_nested_example(self, example)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 848, in encode_nested_example
k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 848, in <dictcomp>
k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 875, in encode_nested_example
return schema.encode_example(obj)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 653, in encode_example
if not -1 <= example_data < self.num_classes:
TypeError: '<=' not supported between instances of 'int' and 'NoneType'
```
What's the proper way to handle reading unlabeled datasets, especially for downstream usage with Transformers? | 55 | Handling unlabeled datasets
Hi!
Is there a way for datasets to produce unlabeled instances (e.g., the `ClassLabel` can be nullable).
For example, I want to use the MNLI dataset reader ( https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py ) on a file that doesn't have the `gold_label` field. I tried setting `"label": data.get("gold_label")`, but got the following error:
```
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset
use_auth_token=use_auth_token,
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/builder.py", line 989, in _prepare_split
example = self.info.features.encode_example(record)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 953, in encode_example
return encode_nested_example(self, example)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 848, in encode_nested_example
k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 848, in <dictcomp>
k: encode_nested_example(sub_schema, sub_obj) for k, (sub_schema, sub_obj) in utils.zip_dict(schema, obj)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 875, in encode_nested_example
return schema.encode_example(obj)
File "/home/nfliu/miniconda3/envs/debias/lib/python3.7/site-packages/datasets/features.py", line 653, in encode_example
if not -1 <= example_data < self.num_classes:
TypeError: '<=' not supported between instances of 'int' and 'NoneType'
```
What's the proper way to handle reading unlabeled datasets, especially for downstream usage with Transformers?
Hi @nelson-liu,
You can pass the parameter `features` to `load_dataset`: https://huggingface.co/docs/datasets/_modules/datasets/load.html#load_dataset
If you look at the code of the MNLI script you referred in your question (https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py#L62-L77), you can see how the Features were originally specified.
Feel free to use it as a template, customize it and pass it to `load_dataset` using the parameter `features`. | [
0.05881325528025627,
0.07810066640377045,
0.13162532448768616,
0.3273364305496216,
0.25035160779953003,
0.1380118429660797,
0.7898838520050049,
-0.15122926235198975,
0.0572315938770771,
0.1499079018831253,
-0.2000780701637268,
0.5356728434562683,
-0.267747163772583,
0.244021937251091,
-0.16445110738277435,
0.4176732301712036,
-0.11344105750322342,
0.22672855854034424,
0.2766292691230774,
-0.2599213123321533,
-0.3965282142162323,
-0.11359015107154846,
-0.32517358660697937,
-0.045783787965774536,
-0.4231290817260742,
-0.23102691769599915,
0.12108108401298523,
-0.013945609331130981,
-0.19707460701465607,
-0.4348151683807373,
0.26061975955963135,
0.26519638299942017,
0.05793600529432297,
0.2684318423271179,
-0.00012031397636746988,
0.005063839256763458,
-0.04861591011285782,
-0.11193012446165085,
-0.4111916124820709,
-0.1604851931333542,
-0.17992180585861206,
-0.11663436889648438,
-0.07564709335565567,
-0.3255847692489624,
-0.17127743363380432,
-0.20648351311683655,
-0.007319493219256401,
-0.5275914669036865,
-0.23696447908878326,
0.13000664114952087,
0.028252916410565376,
0.1298782080411911,
-0.22760556638240814,
0.18042412400245667,
0.06622999906539917,
0.11238627880811691,
-0.09830399602651596,
0.04246923699975014,
-0.0031257495284080505,
0.17069876194000244,
0.17617082595825195,
0.45690569281578064,
-0.19838455319404602,
0.02518116682767868,
0.23056474328041077,
0.1658894270658493,
-0.25033459067344666,
-0.13525716960430145,
0.04538394883275032,
0.5727471113204956,
0.4895336627960205,
-0.5312575697898865,
-0.8156599998474121,
-0.5682116150856018,
0.5466717481613159,
-0.4145794212818146,
0.00947263091802597,
0.18754950165748596,
0.061298470944166183,
0.20658792555332184,
-0.2948108911514282,
-0.06399060040712357,
-0.1535111665725708,
-0.13515189290046692,
-0.21593977510929108,
0.4090186357498169,
0.005789984483271837,
0.08306737244129181,
0.018688257783651352,
-0.13469964265823364,
0.13504894077777863,
-0.13826245069503784,
-0.047488559037446976,
0.45976677536964417,
-0.1665138453245163,
-0.36624816060066223,
-0.18409571051597595,
0.08420883864164352,
0.23714503645896912,
0.1862986534833908,
0.2142309993505478,
-0.11850825697183609,
-0.3950502276420593,
0.22885215282440186,
0.46569356322288513,
-0.11148975789546967,
0.25761303305625916,
0.2515026032924652,
0.4025672674179077,
-0.1563064157962799,
-0.102537602186203,
-0.051097311079502106,
-0.3554551899433136,
0.19819262623786926,
0.308980256319046,
0.007220952771604061,
0.013051439076662064,
-0.23791396617889404,
-0.34610092639923096,
0.054075371474027634,
-0.26715007424354553,
0.12011532485485077,
0.06623385101556778,
0.10982629656791687,
0.15512414276599884,
0.1306743025779724,
0.004376407712697983,
0.08551456779241562,
-0.09754768759012222,
-0.517650842666626,
0.0880841389298439,
-0.03777861222624779,
0.09489911794662476,
0.01952878013253212,
0.11884802579879761,
0.12529021501541138,
0.2857355773448944,
-0.012796340510249138,
0.007733561098575592,
-0.07526390254497528,
0.19773675501346588,
-0.14799191057682037,
0.10008089989423752,
0.10786451399326324,
0.13979125022888184,
0.2605172097682953,
-0.09571315348148346,
-0.5286992788314819,
-0.09421706944704056,
0.20753183960914612,
-0.039045654237270355,
0.011888768523931503,
-0.12860281765460968,
0.022500714287161827,
-0.4288029670715332,
-0.21672439575195312,
-0.037531085312366486,
0.04273289442062378,
-0.024934329092502594,
-0.047849416732788086,
0.1455182135105133,
-0.20703044533729553,
0.15218228101730347,
-0.1765887439250946,
0.17796212434768677,
0.39383596181869507,
-0.5988766551017761,
-0.3255687654018402,
-0.010792989283800125,
-0.06817080080509186,
-0.29213598370552063,
-0.023586932569742203,
-0.021993199363350868,
0.1814175546169281,
-0.13851860165596008,
-0.057769257575273514,
0.11283692717552185,
-0.4254537522792816,
-0.2444215714931488,
0.032656796276569366,
0.017004214227199554,
0.027567530050873756,
0.12155911326408386,
0.4517728388309479,
-0.15040652453899384,
0.02142935059964657,
-0.05603030323982239,
0.045552223920822144,
-0.051721446216106415,
-0.3628422021865845,
-0.0019084326922893524,
-0.16361717879772186,
0.026848509907722473,
0.1302967220544815,
0.08976833522319794,
0.2137242555618286,
0.09895835816860199,
0.2463674396276474,
0.01109776645898819,
-0.385405570268631,
0.1742384135723114,
0.36120444536209106,
0.30092883110046387,
0.07718009501695633,
0.08266468346118927,
-0.2592613995075226,
-0.5924978256225586,
0.3575678765773773,
-0.3484351336956024,
0.15436947345733643,
0.0791185051202774,
-0.5093024969100952,
0.16607806086540222,
-0.19756941497325897,
-0.20768316090106964,
-0.0491873063147068,
-0.030853042379021645,
-0.051669031381607056,
-0.0010148510336875916,
-0.013430340215563774,
-0.4805205762386322,
-0.2239588499069214,
-0.06846342980861664,
0.18670666217803955,
-0.2691110670566559,
-0.11771160364151001,
0.4422520101070404,
-0.015584670938551426,
-0.2933368384838104,
0.3634031414985657,
0.07495852559804916,
-0.04759727418422699,
0.24787339568138123,
0.1806422770023346,
0.07927826046943665,
-0.015623360872268677,
0.10707800090312958,
0.2868720293045044,
0.024186277762055397,
0.10356743633747101,
-0.10186219960451126,
0.0068802665919065475,
0.0740688368678093,
-0.04788219928741455,
-0.37048453092575073,
0.7585380673408508,
-0.01435951516032219,
0.2423820197582245,
0.06921456009149551,
-0.03607376664876938,
0.26378196477890015,
-0.10884638875722885,
0.005920523777604103,
-0.3193666934967041,
-0.15114612877368927,
-0.0976225733757019,
0.2514328360557556,
0.26002073287963867,
-0.46390506625175476,
0.07237141579389572,
0.19717782735824585,
-0.03416435793042183,
0.19322025775909424,
-0.24167659878730774,
-0.4811050295829773,
0.423358678817749,
0.053469717502593994,
0.2950211465358734,
0.203008234500885,
0.22683969140052795,
0.155976340174675,
0.0888143852353096,
0.158672496676445,
-0.020764362066984177,
0.22150251269340515,
0.06502074748277664,
0.16061536967754364,
0.2593625783920288,
-0.07051052898168564,
-0.20326311886310577,
0.024589844048023224,
-0.08984369039535522,
0.124027319252491,
0.1306619495153427,
-0.30019256472587585,
0.043279409408569336,
-0.4224676787853241,
-0.29374054074287415,
-0.27370238304138184,
0.145257368683815,
-0.31713131070137024,
0.0007476052269339561,
0.1456412971019745,
0.14954598248004913,
-0.07817859947681427,
0.036193594336509705,
-0.29819488525390625,
0.29716986417770386,
-0.15572407841682434,
-0.2295413464307785,
0.12758459150791168,
-0.1776757389307022,
-0.15741276741027832,
0.010998796671628952,
0.09593368321657181,
-0.22388403117656708,
0.20409515500068665,
0.12711353600025177,
-0.1750091314315796,
-0.08771654218435287,
-0.09407765418291092,
0.1397816687822342,
0.16984251141548157,
0.41882574558258057,
0.33861038088798523,
-0.23515142500400543,
-0.013696355745196342,
0.45739421248435974,
0.1609252244234085,
0.16494953632354736,
0.026714639738202095,
-0.2706839144229889,
-0.06515392661094666,
0.40006759762763977,
-0.1524949073791504,
-0.27320700883865356,
-0.0821760967373848,
-0.10397970676422119,
0.1600445955991745,
0.1093071699142456,
0.1493683010339737,
0.10686798393726349,
-0.34975987672805786,
0.13596509397029877,
0.08972056210041046,
-0.23191383481025696,
0.245712012052536,
-0.3874402642250061,
0.4512012004852295,
-0.12772780656814575,
0.08416222035884857,
0.2434752881526947,
-0.10371274501085281,
0.14099866151809692,
0.11124222725629807,
-0.1557963639497757,
0.05341063812375069,
0.4583176076412201,
-0.2154124230146408,
0.15661931037902832,
-0.08383330702781677,
0.018586039543151855,
0.2560112774372101,
0.13519257307052612,
-0.26044100522994995,
0.08819903433322906,
0.11302047967910767,
-0.30009925365448,
0.016252361238002777,
0.23248857259750366,
-0.23710981011390686,
0.3170669674873352,
0.2986515164375305,
0.29561010003089905,
-0.05841181054711342,
0.034876372665166855,
-0.12118468433618546,
0.3143198490142822,
0.32018569111824036,
0.09341471642255783,
-0.19460660219192505,
0.2961839437484741,
-0.11297494173049927,
0.35180574655532837,
0.12242384999990463,
0.19343142211437225,
-0.08926646411418915,
0.22570085525512695,
-0.32965147495269775,
-0.13330109417438507,
-0.16140629351139069,
-0.09046533703804016,
0.08846267312765121,
-0.009232833981513977,
0.1853943169116974,
-0.12363271415233612,
-0.14744406938552856,
-0.054795194417238235,
-0.0228390172123909,
0.31907516717910767,
0.09619660675525665,
-0.5007601380348206,
-0.3644491136074066,
0.0005039870738983154,
0.18054988980293274,
0.08822166919708252,
0.1723242998123169,
0.11418689787387848,
0.13562148809432983,
0.2444736659526825,
0.23111456632614136,
0.3968503475189209,
-0.8019370436668396,
0.044076357036828995,
0.3882574737071991,
0.062344036996364594,
-0.1298646777868271,
0.16887223720550537,
-0.3431432843208313,
0.05761033296585083,
-0.0860670655965805,
0.3440916836261749,
-0.2848513722419739,
-0.07747600227594376,
0.25390899181365967,
0.11061450839042664,
-0.3914368748664856,
-0.24144449830055237,
-0.003263752907514572,
-0.008605871349573135,
-0.09261077642440796,
-0.079656682908535,
-0.1077556312084198,
0.22462883591651917,
-0.2143978327512741,
-0.032556600868701935,
-0.4636356234550476,
0.3866450786590576,
0.32308244705200195,
0.057385656982660294,
0.08292075991630554,
-0.09893285483121872,
0.2488311529159546,
0.413730263710022,
0.295395165681839,
0.5238575339317322,
0.5176035165786743,
-0.15077486634254456,
-0.3284543454647064,
-0.22574573755264282,
-0.05021095275878906,
0.4424322247505188,
-0.09076422452926636,
0.14964929223060608,
0.23192167282104492,
0.10238496214151382,
-0.15363575518131256,
-0.09592370688915253,
-0.10067111998796463,
0.04347020387649536,
-0.09506183117628098,
-0.4350954294204712,
-0.5098012685775757,
0.3801497519016266,
0.13622501492500305,
-0.05670513957738876,
0.28981155157089233,
0.26491019129753113,
-0.42618560791015625,
0.027488164603710175,
0.319289892911911,
0.7659419178962708,
-0.12368625402450562,
0.00048045068979263306,
-0.21366316080093384,
0.016463816165924072,
0.8572263121604919,
-0.19481384754180908,
0.13718923926353455,
-0.5271185040473938,
0.12725083529949188,
-0.08300310373306274,
0.058412786573171616,
0.27895674109458923,
0.6903207898139954,
0.388629287481308,
0.3688075542449951,
-0.12278608232736588,
0.10995529592037201,
-0.07249787449836731,
-0.012738160789012909,
-0.027643119916319847,
-0.2911461591720581,
-0.031776588410139084,
-0.054518017917871475,
0.02893316000699997,
0.07180286943912506,
-0.19770145416259766,
-0.020740775391459465,
0.03868989273905754,
0.19725285470485687,
0.13418389856815338,
-0.18537771701812744,
-0.21276265382766724,
-0.2364007979631424,
-0.09990774095058441,
-0.24124450981616974,
0.007026912644505501,
0.5078380107879639,
0.4107719659805298,
0.2300407737493515,
-0.10232503712177277,
0.15624646842479706,
-0.03848516196012497,
0.20107007026672363,
0.08045327663421631,
0.18423086404800415,
0.43586984276771545,
0.19543913006782532,
-0.25313103199005127,
-0.01071947067975998,
0.04840783402323723,
0.1301898956298828,
0.2571735382080078,
-0.19828172028064728,
0.22116141021251678,
-0.04843810573220253,
0.19678322970867157,
-0.2618725895881653,
0.21731939911842346,
-0.19286110997200012,
0.0032553337514400482,
0.15397188067436218,
-0.24096138775348663,
0.0861348807811737,
-0.24228106439113617,
-0.20541119575500488,
-0.114763543009758,
0.3811561167240143,
0.22639042139053345,
0.07088650017976761,
0.2734774947166443,
-0.06641940027475357,
-0.09725197404623032,
-0.18722310662269592,
0.47046512365341187,
0.21588216722011566,
-0.264801561832428,
0.3644745945930481,
0.5038283467292786,
0.13767148554325104,
-0.028563503175973892,
-0.0027733929455280304,
-0.19757066667079926,
0.054368045181035995,
-0.2784395217895508,
-0.27063411474227905,
-0.16021277010440826,
0.08875665813684464,
-0.023679029196500778,
0.1900789439678192,
0.1855684220790863,
-0.013427674770355225,
-0.13257546722888947,
-0.2978619933128357,
-0.16173586249351501,
-0.059907279908657074,
-0.4192725718021393,
0.09813136607408524,
0.20576225221157074,
0.6343886256217957,
-0.026272248476743698,
0.0019225068390369415,
0.012562641873955727,
-0.038064390420913696,
0.2053104192018509,
-0.033573683351278305,
-0.3360457718372345,
0.21074533462524414,
0.28217265009880066,
0.10856235027313232,
0.3158656358718872,
-0.20679090917110443,
-0.1548733413219452,
-0.3689015209674835,
0.248153418302536,
0.24958205223083496,
0.13858219981193542,
0.4728964865207672,
-0.11202210187911987,
0.22983720898628235,
-0.649451494216919,
0.1717788726091385,
0.14083215594291687,
-0.0035491138696670532,
0.10426299273967743,
0.26186656951904297,
0.20792582631111145,
0.15740369260311127,
0.036341190338134766,
-0.01723828911781311,
0.0367373488843441,
-0.11508839577436447,
0.25086525082588196,
-0.414145290851593,
0.23393696546554565,
0.32802048325538635,
0.39375928044319153,
-0.055021561682224274,
-0.1032533347606659,
0.048582471907138824,
0.5089660882949829,
0.05081383138895035,
-0.367402583360672,
-0.17841680347919464,
0.26003172993659973,
-0.1713799685239792,
0.231969952583313,
0.5777537226676941,
0.23524078726768494,
0.18417170643806458,
-0.26692909002304077,
-0.24250894784927368,
0.10802874714136124,
-0.18195898830890656,
0.21891824901103973,
0.5804858803749084,
0.0595468245446682,
0.014201141893863678,
0.15375939011573792,
0.2075563371181488,
0.30288955569267273,
0.6620524525642395,
0.07444974780082703,
0.5605964064598083,
0.11121693253517151,
-0.23775655031204224,
0.014270782470703125,
-0.4676472544670105,
0.10253486037254333,
0.01333560049533844,
0.1929287612438202,
0.2917955219745636,
-0.20086103677749634,
0.04008825123310089,
-0.5066404938697815,
-0.11073102802038193,
0.08421972393989563,
0.037194810807704926,
-0.22960218787193298,
-0.1390456110239029,
-0.41249704360961914,
-0.11785231530666351,
0.10286657512187958,
0.053600069135427475,
-0.038987334817647934,
-0.39786672592163086,
-0.21438482403755188,
-0.15252752602100372,
0.08402413874864578,
-0.44604921340942383,
0.1257646381855011,
0.24236106872558594,
0.3388941287994385,
-0.24756203591823578,
-0.14684797823429108,
0.044666972011327744,
0.16136090457439423,
0.33502358198165894,
0.32144543528556824,
-0.1634109616279602,
0.06590498983860016,
0.09081098437309265,
-0.027304675430059433,
-0.34063032269477844,
0.00654599629342556,
-0.09651653468608856,
0.005317956209182739,
-0.2625396251678467,
-0.025656860321760178,
0.2166794091463089,
-0.06087144464254379,
-0.026612693443894386,
-0.2695067822933197,
0.33867552876472473,
0.050965096801519394,
-0.3194707930088043,
0.3265928328037262,
-0.0815223753452301,
-0.35622748732566833,
-0.1618674099445343,
-0.034367404878139496,
-0.032683536410331726,
-0.16921868920326233,
0.24058251082897186,
0.1130354255437851,
0.0635591521859169,
0.17488817870616913,
0.02924972027540207,
-0.04388432577252388,
0.1595606952905655,
-0.06912952661514282,
-0.10206051915884018,
-0.09722231328487396,
0.1864403337240219,
-0.7694788575172424,
0.07225951552391052,
-0.04062309488654137,
-0.23586010932922363,
-0.051459696143865585,
0.04808148741722107,
-0.0759257897734642,
-0.1725056916475296,
0.031229369342327118,
0.1307889223098755,
0.39044082164764404,
0.4553702473640442,
-0.1930672526359558,
-0.4410221576690674,
-0.22983969748020172,
-0.12800173461437225,
-0.12298161536455154,
-0.44272348284721375,
-0.12424902617931366,
-0.10683491080999374,
-0.20934981107711792,
0.12406769394874573,
0.20936015248298645,
0.11918075382709503,
-0.03327827900648117,
0.3878781795501709,
0.07908438891172409,
0.4218616485595703,
0.17517763376235962,
0.03342849016189575,
-0.04182389751076698,
0.10801935195922852,
-0.3931536376476288,
0.19977468252182007,
0.05572010576725006,
0.18887566030025482,
-0.3027549982070923,
-0.1966567039489746,
-0.19703832268714905,
-0.0015011616051197052,
-0.1153634712100029,
0.12050966173410416,
-0.4037132263183594,
0.1716373711824417,
-0.5385063886642456,
0.23501503467559814,
0.23443754017353058,
0.008412882685661316,
-0.026404835283756256,
0.05647429823875427,
-0.3050246834754944,
-0.10135915875434875,
0.3029191195964813,
-0.4455319344997406,
-0.02403699792921543,
-0.11989589780569077,
0.4738299250602722,
0.35640740394592285,
-0.20600150525569916,
-0.5122570395469666,
0.19805815815925598,
0.6573614478111267,
0.07193553447723389,
0.07625873386859894,
-0.17057958245277405,
-0.3097848892211914,
-0.08850783109664917,
-0.15108954906463623,
-0.24080213904380798,
0.024432409554719925,
0.010371467098593712,
0.21132001280784607,
-0.13594713807106018
] |
https://github.com/huggingface/datasets/issues/2548 | Field order issue in loading json | Hi @luyug, thanks for reporting.
The good news is that we fixed this issue only 9 days ago: #2507.
The patch is already in the master branch of our repository and it will be included in our next `datasets` release version 1.9.0.
Feel free to reopen the issue if the problem persists. | ## Describe the bug
The `load_dataset` function expects columns in alphabetical order when loading json files.
Similar bug was previously reported for csv in #623 and fixed in #684.
## Steps to reproduce the bug
For a json file `j.json`,
```
{"c":321, "a": 1, "b": 2}
```
Running the following,
```
f= datasets.Features({'a': Value('int32'), 'b': Value('int32'), 'c': Value('int32')})
json_data = datasets.load_dataset('json', data_files='j.json', features=f)
```
## Expected results
A successful load.
## Actual results
```
File "pyarrow/table.pxi", line 1409, in pyarrow.lib.Table.cast
ValueError: Target schema's field names are not matching the table's field names: ['c', 'a', 'b'], ['a', 'b', 'c']
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyArrow version: 3.0.0
| 52 | Field order issue in loading json
## Describe the bug
The `load_dataset` function expects columns in alphabetical order when loading json files.
Similar bug was previously reported for csv in #623 and fixed in #684.
## Steps to reproduce the bug
For a json file `j.json`,
```
{"c":321, "a": 1, "b": 2}
```
Running the following,
```
f= datasets.Features({'a': Value('int32'), 'b': Value('int32'), 'c': Value('int32')})
json_data = datasets.load_dataset('json', data_files='j.json', features=f)
```
## Expected results
A successful load.
## Actual results
```
File "pyarrow/table.pxi", line 1409, in pyarrow.lib.Table.cast
ValueError: Target schema's field names are not matching the table's field names: ['c', 'a', 'b'], ['a', 'b', 'c']
```
## Environment info
- `datasets` version: 1.8.0
- Platform: Linux-3.10.0-957.1.3.el7.x86_64-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyArrow version: 3.0.0
Hi @luyug, thanks for reporting.
The good news is that we fixed this issue only 9 days ago: #2507.
The patch is already in the master branch of our repository and it will be included in our next `datasets` release version 1.9.0.
Feel free to reopen the issue if the problem persists. | [
0.1825093775987625,
0.23169416189193726,
-0.015927564352750778,
0.21059909462928772,
0.3290204405784607,
-0.06300397217273712,
0.22351804375648499,
0.42885324358940125,
0.009034667164087296,
0.02266862243413925,
0.07545392960309982,
0.6574707627296448,
0.3253481686115265,
-0.012466594576835632,
-0.02450968697667122,
-0.10777105391025543,
-0.0028560012578964233,
0.24041450023651123,
-0.092833012342453,
0.09579342603683472,
-0.35949864983558655,
0.07109851390123367,
-0.1695307195186615,
0.18436859548091888,
0.11274421960115433,
0.20500506460666656,
0.14214983582496643,
0.16889309883117676,
-0.1974496692419052,
-0.4280339777469635,
-0.1163160502910614,
0.16036683320999146,
0.04091242700815201,
0.15382108092308044,
-0.00011294234718661755,
-0.0930032804608345,
0.20570890605449677,
0.044096097350120544,
-0.16172009706497192,
-0.4524686932563782,
-0.18718072772026062,
-0.2486565262079239,
0.15464814007282257,
-0.2271188497543335,
-0.039672475308179855,
-0.22398075461387634,
-0.06031116098165512,
0.05551724135875702,
0.17813169956207275,
0.09546682238578796,
0.19136500358581543,
0.1215381920337677,
0.19310320913791656,
0.18931476771831512,
0.5152657628059387,
-0.002020515501499176,
-0.11110913008451462,
0.2756314277648926,
0.18469983339309692,
-0.009425192140042782,
-0.07582537084817886,
0.032488688826560974,
-0.18140143156051636,
0.03186865150928497,
0.1560177206993103,
0.14833831787109375,
-0.042527757585048676,
0.08741346001625061,
-0.09946785122156143,
0.0486953929066658,
0.5981534123420715,
-0.4596158564090729,
-0.29342564940452576,
-0.20074018836021423,
0.19986747205257416,
-0.29574766755104065,
0.5075795650482178,
0.1562160849571228,
0.2286590337753296,
0.05136692151427269,
0.014211609959602356,
0.2856667935848236,
-0.18504393100738525,
0.10232541710138321,
-0.15684325993061066,
0.1329452097415924,
0.05154173821210861,
-0.021951042115688324,
-0.1376309096813202,
-0.2529475688934326,
0.3639647662639618,
-0.22733178734779358,
-0.19008922576904297,
0.13497261703014374,
-0.34934282302856445,
0.050396718084812164,
0.13582012057304382,
-0.07097039371728897,
0.15239334106445312,
0.11121835559606552,
-0.051666393876075745,
0.01568189635872841,
0.022255968302488327,
0.17301779985427856,
0.20251522958278656,
0.17984801530838013,
0.047517597675323486,
-0.07301507890224457,
0.19679398834705353,
0.07299710065126419,
-0.06295878440141678,
-0.09405524283647537,
-0.012366468086838722,
-0.19510170817375183,
-0.010318109765648842,
0.040895961225032806,
0.060914814472198486,
-0.08401091396808624,
-0.2918557822704315,
0.0429292730987072,
-0.12454754114151001,
-0.19080087542533875,
-0.0035288361832499504,
0.3132718503475189,
-0.07519412040710449,
0.09490233659744263,
0.09292902052402496,
0.23631039261817932,
0.013991596177220345,
-0.0071008880622684956,
-0.06574008613824844,
-0.14897021651268005,
-0.022936640307307243,
0.11514929682016373,
0.2163839191198349,
0.11221422255039215,
0.13066373765468597,
0.3509098291397095,
0.0715358704328537,
-0.05436721816658974,
-0.04788312688469887,
-0.12655209004878998,
-0.13244923949241638,
0.41574913263320923,
0.05479918047785759,
0.18281908333301544,
-0.0814390629529953,
-0.17506659030914307,
-0.26668110489845276,
0.37418729066848755,
-0.4962204694747925,
-0.10935904830694199,
-0.057997509837150574,
0.2085762619972229,
-0.1713591068983078,
-0.12544992566108704,
-0.6543222665786743,
-0.14213520288467407,
0.029425784945487976,
-0.2914307415485382,
-0.06719350069761276,
-0.14493428170681,
0.17423735558986664,
-0.24617622792720795,
-0.133401557803154,
0.031242087483406067,
-0.5555407404899597,
0.0891384482383728,
0.09023731201887131,
0.052049797028303146,
-0.00675530731678009,
-0.043203067034482956,
-0.1329808235168457,
0.1114547923207283,
-0.07285553216934204,
0.44256502389907837,
0.08269092440605164,
-0.20958556234836578,
-0.3545515537261963,
0.1003122627735138,
-0.18329012393951416,
0.1564616858959198,
0.08736813068389893,
0.008004647679626942,
0.1473621279001236,
0.05948776751756668,
0.08623979240655899,
0.3296464681625366,
0.12091384828090668,
0.38407284021377563,
-0.14933067560195923,
-0.11447207629680634,
0.17720401287078857,
0.2748945355415344,
-0.3706635534763336,
0.05611244589090347,
0.10174165666103363,
-0.3683657646179199,
0.16442684829235077,
-0.2329896092414856,
-0.2976118326187134,
0.26510050892829895,
0.13851980865001678,
0.10466962307691574,
0.29260748624801636,
0.024906162172555923,
-0.45608842372894287,
0.26088035106658936,
0.023953329771757126,
-0.03983187675476074,
-0.5410390496253967,
-0.11113036423921585,
-0.022122537717223167,
0.037354469299316406,
-0.21534480154514313,
0.4330098330974579,
0.10824008285999298,
0.0037270113825798035,
-0.2064829170703888,
-0.0993746817111969,
-0.00009959936141967773,
0.01596660725772381,
-0.16618230938911438,
0.047249022871255875,
-0.38663333654403687,
0.4544116258621216,
-0.26042184233665466,
-0.14140284061431885,
0.15882718563079834,
0.03246651962399483,
0.23029908537864685,
-0.26000839471817017,
-0.14514070749282837,
0.2956564426422119,
0.28537729382514954,
0.06752430647611618,
-0.24297133088111877,
0.051244184374809265,
-0.01498582772910595,
0.05174805596470833,
-0.1420663446187973,
0.13240967690944672,
0.014406568370759487,
-0.009370628744363785,
-0.08599016815423965,
0.7995301485061646,
-0.023749325424432755,
0.21288204193115234,
0.0033286213874816895,
-0.367609441280365,
0.3820779323577881,
0.03520107641816139,
0.016442809253931046,
-0.06941594183444977,
0.3017970323562622,
0.5649798512458801,
-0.11086568236351013,
0.2574886083602905,
-0.3607688248157501,
0.1042412519454956,
0.9411550760269165,
-0.1253242790699005,
-0.10560529679059982,
0.07312966883182526,
0.20902875065803528,
0.01626015082001686,
0.0963965579867363,
-0.16287587583065033,
0.3760439455509186,
0.1892889142036438,
-0.6180874109268188,
-0.06494946032762527,
0.011362601071596146,
-0.15253931283950806,
0.073422372341156,
-0.02440737932920456,
0.20995108783245087,
0.39898258447647095,
0.4225431978702545,
0.09752152860164642,
-0.38938307762145996,
-0.17331622540950775,
0.1060144305229187,
0.08760995417833328,
-0.6017735004425049,
0.06339666992425919,
-0.3623116612434387,
0.023779690265655518,
-0.11683563888072968,
-0.27307212352752686,
-0.2027430683374405,
-0.0075548733584582806,
0.02382706291973591,
0.2653525471687317,
-0.18599092960357666,
0.20711007714271545,
0.13841010630130768,
0.038913413882255554,
0.0704558715224266,
-0.33495351672172546,
-0.5142768025398254,
-0.07790477573871613,
-0.17774611711502075,
0.013232503086328506,
0.10841444134712219,
0.05679876357316971,
0.016167713329195976,
-0.11167836934328079,
-0.05804099515080452,
0.06246163696050644,
-0.5082750916481018,
-0.020823508501052856,
-0.2801717519760132,
0.05986190587282181,
0.0490928553044796,
0.2172633558511734,
0.07198651880025864,
-0.35920119285583496,
0.2828597128391266,
0.16797436773777008,
-0.42801278829574585,
0.5928491353988647,
-0.17545968294143677,
-0.21203002333641052,
-0.1437627375125885,
-0.40866339206695557,
0.134460911154747,
-0.18354444205760956,
0.2575661242008209,
0.28477826714515686,
0.17525652050971985,
-0.10987876355648041,
-0.10369961708784103,
-0.3340310752391815,
-0.09109891206026077,
0.029377814382314682,
-0.03264657407999039,
-0.06538208574056625,
0.33053794503211975,
-0.1414419710636139,
-0.27825868129730225,
-0.030519045889377594,
-0.05791826918721199,
-0.3105296790599823,
0.05354025214910507,
-0.3014821410179138,
-0.08572293817996979,
-0.09332550317049026,
0.41133663058280945,
0.0618269219994545,
-0.17180529236793518,
0.16759882867336273,
0.12542881071567535,
-0.022411271929740906,
-0.0237903892993927,
-0.08579080551862717,
-0.07173200696706772,
0.3714417517185211,
0.1108715832233429,
-0.14004266262054443,
0.6356077194213867,
-0.08897310495376587,
0.2890286445617676,
-0.20676009356975555,
0.06432431936264038,
0.22384056448936462,
-0.14829395711421967,
-0.08798173069953918,
-0.20371407270431519,
0.165365532040596,
-0.051077403128147125,
-0.08647166192531586,
0.22163259983062744,
0.26416680216789246,
-0.02637796849012375,
-0.05382203310728073,
0.14184507727622986,
0.27383866906166077,
-0.45086514949798584,
-0.07284365594387054,
0.15997132658958435,
-0.006057675927877426,
-0.07554634660482407,
0.12508773803710938,
0.06175447255373001,
-0.18851345777511597,
-0.22364339232444763,
0.067415252327919,
-0.03343398869037628,
-0.15572980046272278,
-0.2595060467720032,
-0.3962628245353699,
-0.34874221682548523,
0.012231502681970596,
0.006135724484920502,
0.10842569917440414,
0.14936034381389618,
0.2657660245895386,
0.12754037976264954,
0.25149571895599365,
-0.22384662926197052,
0.7247188687324524,
0.1659288853406906,
0.27412867546081543,
0.17980247735977173,
0.2624101936817169,
-0.29666510224342346,
-0.18689242005348206,
-0.16611172258853912,
0.025355961173772812,
0.010843189433217049,
0.5456573963165283,
-0.4508349895477295,
-0.06241967901587486,
0.09055674076080322,
0.15795369446277618,
-0.10829997062683105,
-0.46634507179260254,
-0.4540717899799347,
-0.15359780192375183,
-0.022328153252601624,
-0.10137031227350235,
-0.13076665997505188,
0.28077179193496704,
-0.5067597031593323,
-0.11199375987052917,
0.20801638066768646,
-0.057281844317913055,
-0.19462649524211884,
0.28852784633636475,
0.29710355401039124,
-0.09225103259086609,
0.19501501321792603,
0.001347605139017105,
-0.0363156795501709,
0.2976648509502411,
0.49704626202583313,
0.1947043538093567,
-0.5289745926856995,
-0.11660095304250717,
-0.2787715792655945,
-0.05884165316820145,
-0.020558089017868042,
-0.11620298027992249,
0.19309616088867188,
-0.24204719066619873,
-0.07853257656097412,
0.016495393589138985,
-0.3432070016860962,
0.6345770359039307,
-0.20997001230716705,
-0.13588888943195343,
-0.3663293123245239,
0.6602267026901245,
-0.12128697335720062,
-0.056330062448978424,
0.19383704662322998,
0.3561742305755615,
-0.3036481440067291,
0.47819292545318604,
0.036437660455703735,
0.6812094449996948,
-0.19656746089458466,
0.08338384330272675,
0.6457624435424805,
-0.29651880264282227,
0.27711695432662964,
-0.5008106231689453,
0.2874603867530823,
-0.7126539945602417,
-0.28742876648902893,
-0.065684974193573,
-0.19311651587486267,
0.07274576276540756,
0.5663934350013733,
0.06608830392360687,
0.07327967882156372,
-0.2345208078622818,
0.29312530159950256,
0.06992366909980774,
0.16525404155254364,
0.037701062858104706,
-0.028970938175916672,
-0.5482344031333923,
0.03735476732254028,
-0.08109399676322937,
-0.253505676984787,
-0.07669556885957718,
0.060959313064813614,
-0.1117844432592392,
-0.24369336664676666,
0.13080257177352905,
0.3869266211986542,
0.02261730656027794,
0.05080176889896393,
0.28555718064308167,
0.038533374667167664,
0.08880005776882172,
0.2166149914264679,
-0.21589727699756622,
-0.0013297758996486664,
0.023645319044589996,
0.27223077416419983,
0.3553788363933563,
0.2548779249191284,
0.09194593876600266,
0.10860636830329895,
0.06119989603757858,
-0.021426979452371597,
-0.1499885618686676,
-0.10362698882818222,
0.0034809112548828125,
-0.20051166415214539,
-0.09099217504262924,
0.218901127576828,
-0.17509116232395172,
-0.24359086155891418,
-0.13042320311069489,
-0.09962114691734314,
0.3487403988838196,
-0.13987870514392853,
0.18517504632472992,
-0.15177080035209656,
0.10838351398706436,
0.3658822178840637,
-0.3383454978466034,
-0.22809119522571564,
-0.07795457541942596,
0.4607669413089752,
0.02332358807325363,
0.2834363281726837,
0.44996577501296997,
0.28910934925079346,
-0.21895375847816467,
-0.08518563210964203,
-0.04004518687725067,
0.3467147946357727,
-0.5800535678863525,
-0.03135833516716957,
0.05547431856393814,
0.15871314704418182,
0.17335522174835205,
0.3075583577156067,
-0.06804294139146805,
-0.22462567687034607,
0.009391188621520996,
-0.33480721712112427,
0.25954362750053406,
0.28167974948883057,
0.3085285425186157,
-0.21147315204143524,
0.33781036734580994,
0.22533686459064484,
-0.217342808842659,
-0.07676780968904495,
-0.26543939113616943,
0.04772496223449707,
-0.019657377153635025,
0.20624704658985138,
-0.09724585711956024,
0.151236891746521,
0.09358494728803635,
0.004122547805309296,
0.3094445765018463,
0.013711098581552505,
-0.004411811009049416,
-0.26576241850852966,
-0.05693330988287926,
0.007886737585067749,
0.08334027230739594,
0.1785649210214615,
-0.2587294280529022,
-0.4149525761604309,
-0.10248775780200958,
-0.06851750612258911,
0.04445477947592735,
0.10586417466402054,
0.0996868684887886,
0.1753336638212204,
0.23320525884628296,
0.14077481627464294,
-0.060274071991443634,
0.10249879956245422,
-0.43415430188179016,
0.09013417363166809,
0.16161413490772247,
0.30276039242744446,
-0.3599027395248413,
0.203709214925766,
-0.45629629492759705,
0.07218531519174576,
-0.13249365985393524,
0.23977035284042358,
0.5103181600570679,
-0.578681230545044,
0.15364038944244385,
-0.034599434584379196,
0.4610272943973541,
0.36797797679901123,
-0.30903249979019165,
-0.36032751202583313,
-0.010807748883962631,
0.24463385343551636,
-0.24658513069152832,
-0.49689796566963196,
-0.03146485239267349,
0.05770280957221985,
-0.18926355242729187,
-0.16501757502555847,
0.11618396639823914,
0.0026959702372550964,
0.01290065050125122,
-0.019873175770044327,
0.44211822748184204,
0.09503495693206787,
0.03476995229721069,
0.45802053809165955,
0.03375505283474922,
0.12671403586864471,
0.3582771420478821,
0.2588684856891632,
-0.10640404373407364,
0.19604821503162384,
0.32314711809158325,
-0.10486365854740143,
-0.09397131949663162,
0.003925155848264694,
-0.16411200165748596,
-0.4030666649341583,
0.06112314760684967,
0.14738395810127258,
0.08298012614250183,
-0.06168792396783829,
0.43161195516586304,
0.07889033108949661,
0.1544598937034607,
-0.04322855547070503,
-0.2516341507434845,
-0.04083829000592232,
0.01374291442334652,
0.08291934430599213,
-0.15070702135562897,
-0.1326126605272293,
-0.018915221095085144,
-0.0031861402094364166,
-0.36239296197891235,
0.09428983181715012,
0.07172385603189468,
0.1786760687828064,
-0.07354442775249481,
-0.6868668794631958,
0.4297243356704712,
-0.05772608518600464,
0.32085075974464417,
-0.02603765018284321,
0.37364014983177185,
-0.039237454533576965,
-0.16354519128799438,
0.20027241110801697,
-0.29967421293258667,
0.1698540598154068,
0.34681692719459534,
0.15548019111156464,
-0.3312588632106781,
-0.2791924476623535,
-0.12214022129774094,
0.05155663937330246,
0.27277570962905884,
-0.09425534307956696,
0.119673952460289,
0.1257961541414261,
0.22504587471485138,
-0.18041257560253143,
-0.005390532314777374,
0.4681788980960846,
0.19909071922302246,
0.04635555297136307,
0.17724007368087769,
-0.165803000330925,
-0.4063175618648529,
0.09086726605892181,
-0.20962229371070862,
-0.024938248097896576,
-0.12110118567943573,
0.004188203252851963,
0.3609238564968109,
-0.05961340293288231,
-0.15712690353393555,
0.10158294439315796,
0.13960522413253784,
0.25155946612358093,
0.16188944876194,
-0.013494476675987244,
-0.20319712162017822,
-0.11239995807409286,
-0.3537178337574005,
0.27089688181877136,
-0.04091016575694084,
-0.023356301710009575,
0.5161079168319702,
0.14034302532672882,
0.05345715209841728,
-0.16253913938999176,
0.00834711641073227,
0.02148324064910412,
-0.21098682284355164,
0.2904024124145508,
-0.29729121923446655,
-0.10692417621612549,
-0.05820462107658386,
0.06542851775884628,
-0.46467477083206177,
-0.13394445180892944,
0.11106424033641815,
0.038788650184869766,
0.09878601878881454,
-0.43767642974853516,
0.1262199878692627,
0.10700301826000214,
-0.03427951782941818,
0.28317856788635254,
-0.1299281120300293,
0.32023653388023376,
-0.030862923711538315,
0.09921016544103622,
0.020930953323841095,
-0.33931484818458557,
-0.19142593443393707,
0.3711227476596832,
0.00694146566092968,
0.22369961440563202,
0.219145268201828,
0.07191802561283112,
-0.23906292021274567,
0.016030268743634224,
-0.3385503888130188,
-0.12055432796478271,
-0.2732463479042053,
0.1303785890340805,
-0.007932148873806,
0.04923122003674507,
-0.3172140121459961,
-0.04123348742723465,
0.1546376645565033,
0.19628863036632538,
-0.08770802617073059,
-0.2779090106487274,
0.18967588245868683,
-0.13865593075752258,
-0.12064293026924133,
0.2642488479614258,
0.23815307021141052,
-0.23842394351959229,
0.01342336181551218,
-0.22465527057647705,
0.0950939729809761,
0.3887331187725067,
-0.07728034257888794,
-0.12939029932022095,
0.25177425146102905,
0.1122351586818695,
0.11225877702236176,
-0.19919739663600922,
0.1574220210313797,
0.1900288164615631,
-0.22493644058704376,
-0.16818250715732574,
-0.0726453959941864
] |
https://github.com/huggingface/datasets/issues/2547 | Dataset load_from_disk is too slow | Hi ! It looks like an issue with the virtual disk you are using.
We load datasets using memory mapping. In general it makes it possible to load very big files instantaneously since it doesn't have to read the file (it just assigns virtual memory to the file on disk).
However there happens to be issues with virtual disks (for example on spot instances), for which memory mapping does a pass over the entire file, and this takes a while. We are discussing about this issue here: #2252
Memory mapping is something handled by the OS so we can't do much about it, though we're still trying to figure out what's causing this behavior exactly to see what we can do. | @lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in the context of a language model training, therefore I'm wasting 100$ each time I have to load the dataset from disk again (because the spot instance was stopped by aws and I need to relaunch it for example).
## Steps to reproduce the bug
Just get the oscar in spanish (around 150GGB) and try to first save in disk and then load the processed dataset. It's not dependent on the task you're doing, it just depends on the size of the text dataset.
## Expected results
I expect the dataset to be loaded in a normal time, by using the whole machine for loading it, I mean if you store the dataset in multiple files (.arrow) and then load it from multiple files, you can use multiprocessing for that and therefore don't waste so much time.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Ubuntu 18
- Python version: 3.8
I've seen you're planning to include a streaming mode for load_dataset, but that only saves the downloading and processing time, that's not being a problem for me, you cannot save the pure loading from disk time, therefore that's not a solution for my use case or for anyone who wants to use your library for training a language model. | 121 | Dataset load_from_disk is too slow
@lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in the context of a language model training, therefore I'm wasting 100$ each time I have to load the dataset from disk again (because the spot instance was stopped by aws and I need to relaunch it for example).
## Steps to reproduce the bug
Just get the oscar in spanish (around 150GGB) and try to first save in disk and then load the processed dataset. It's not dependent on the task you're doing, it just depends on the size of the text dataset.
## Expected results
I expect the dataset to be loaded in a normal time, by using the whole machine for loading it, I mean if you store the dataset in multiple files (.arrow) and then load it from multiple files, you can use multiprocessing for that and therefore don't waste so much time.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Ubuntu 18
- Python version: 3.8
I've seen you're planning to include a streaming mode for load_dataset, but that only saves the downloading and processing time, that's not being a problem for me, you cannot save the pure loading from disk time, therefore that's not a solution for my use case or for anyone who wants to use your library for training a language model.
Hi ! It looks like an issue with the virtual disk you are using.
We load datasets using memory mapping. In general it makes it possible to load very big files instantaneously since it doesn't have to read the file (it just assigns virtual memory to the file on disk).
However there happens to be issues with virtual disks (for example on spot instances), for which memory mapping does a pass over the entire file, and this takes a while. We are discussing about this issue here: #2252
Memory mapping is something handled by the OS so we can't do much about it, though we're still trying to figure out what's causing this behavior exactly to see what we can do. | [
-0.4744632840156555,
-0.36521172523498535,
-0.09103214740753174,
0.5078070759773254,
0.2949649691581726,
0.07778070122003555,
0.08729526400566101,
0.2941163182258606,
0.5636071562767029,
0.11371589452028275,
0.1030266284942627,
0.3100511431694031,
-0.03649458289146423,
-0.1310184746980667,
-0.05102977156639099,
0.012053079903125763,
0.2169390767812729,
0.034065231680870056,
0.10168424248695374,
-0.16221415996551514,
-0.16796395182609558,
0.19429388642311096,
-0.13975323736667633,
-0.24682758748531342,
-0.26085135340690613,
-0.1675214171409607,
0.036090560257434845,
0.13267448544502258,
0.014111523516476154,
-0.23193718492984772,
0.08277616649866104,
-0.023467037826776505,
0.1747194528579712,
0.47565048933029175,
-0.00010661341366358101,
-0.030867096036672592,
0.10141848027706146,
0.06783535331487656,
-0.39806482195854187,
-0.05916139483451843,
0.23691394925117493,
-0.2943415939807892,
0.07696568965911865,
-0.19942274689674377,
-0.0850723460316658,
-0.0845537781715393,
-0.10453903675079346,
-0.4806055724620819,
0.3054248094558716,
0.09953749179840088,
0.24208270013332367,
0.2846263349056244,
-0.2973235845565796,
-0.0019263102440163493,
-0.042848505079746246,
0.0577620267868042,
-0.2270345687866211,
0.2517685890197754,
0.4787026345729828,
0.1249552071094513,
-0.1382647156715393,
0.30566856265068054,
-0.08780993521213531,
0.1649826318025589,
0.4531143307685852,
0.0637819692492485,
0.08095711469650269,
-0.2099035084247589,
-0.016359612345695496,
0.16674216091632843,
0.4594855308532715,
0.000316668301820755,
-0.2677716910839081,
-0.2758038640022278,
0.0870441347360611,
-0.2303047776222229,
0.3020727038383484,
0.28041037917137146,
-0.17326880991458893,
0.14562417566776276,
-0.07252611964941025,
-0.10919241607189178,
-0.03473516181111336,
0.1206023171544075,
0.260184109210968,
0.022048920392990112,
-0.1033080518245697,
0.041921764612197876,
0.39988604187965393,
0.10310621559619904,
0.18367061018943787,
-0.2756842374801636,
0.1813417226076126,
0.4096224009990692,
-0.48171836137771606,
0.022580906748771667,
-0.04202832281589508,
0.17976456880569458,
-0.05536928027868271,
0.16616488993167877,
0.25750479102134705,
0.18785923719406128,
-0.19306661188602448,
0.13219311833381653,
0.17260606586933136,
0.2541685998439789,
-0.23104584217071533,
0.06640948355197906,
0.27791041135787964,
0.14570043981075287,
-0.22816672921180725,
-0.009542971849441528,
-0.26589974761009216,
-0.140036940574646,
0.3268367648124695,
-0.2910884618759155,
-0.1571616530418396,
-0.1417408138513565,
-0.06254304200410843,
0.07164876908063889,
0.14597675204277039,
-0.13329242169857025,
0.21466967463493347,
0.3002416789531708,
-0.28927406668663025,
0.5329868197441101,
0.08123380690813065,
-0.15940919518470764,
-0.35613566637039185,
-0.07137024402618408,
-0.1798521727323532,
0.012549623847007751,
-0.2574569880962372,
0.18223634362220764,
0.20457352697849274,
-0.17472127079963684,
0.1689615398645401,
0.12717925012111664,
0.17878863215446472,
-0.25289860367774963,
0.2386084794998169,
-0.5147584676742554,
-0.07751890271902084,
0.17646469175815582,
-0.0012886859476566315,
0.22294826805591583,
0.06695506721735,
0.010185196995735168,
-0.34265467524528503,
0.10367387533187866,
-0.38037893176078796,
-0.4763150215148926,
-0.16047830879688263,
0.22962993383407593,
0.0005406755954027176,
0.06434514373540878,
-0.5296052098274231,
0.06339919567108154,
-0.03590763360261917,
0.05673884227871895,
-0.2487529218196869,
-0.08021912723779678,
-0.32711026072502136,
0.004393198061734438,
0.34521567821502686,
0.31708425283432007,
-0.47861558198928833,
0.10886725783348083,
-0.20458807051181793,
0.1125851422548294,
0.32332026958465576,
0.6517828106880188,
-0.34023910760879517,
0.25862154364585876,
-0.20394298434257507,
-0.024145353585481644,
0.15269887447357178,
-0.20880179107189178,
-0.3435872793197632,
0.6806856989860535,
0.004990674555301666,
0.0012142006307840347,
0.09863898903131485,
0.3005005419254303,
0.08096262067556381,
-0.04574005678296089,
0.1633225679397583,
0.5188066959381104,
0.11974361538887024,
0.3266189694404602,
-0.39726585149765015,
-0.22586090862751007,
0.023335611447691917,
0.5041812658309937,
-0.3286643922328949,
-0.11504245549440384,
-0.05723237246274948,
0.3690589964389801,
0.3817799687385559,
-0.10688333213329315,
-0.04213324934244156,
0.31593626737594604,
0.08266038447618484,
0.031460121273994446,
0.005727352108806372,
-0.04025912657380104,
-0.2135915458202362,
0.3690970540046692,
0.2848341763019562,
0.052323658019304276,
0.11056215316057205,
-0.09593771398067474,
-0.12573353946208954,
-0.004507884383201599,
-0.29288211464881897,
0.14055494964122772,
0.025115445256233215,
0.035631291568279266,
0.05813634768128395,
-0.12447424232959747,
-0.22838765382766724,
0.23447294533252716,
-0.34923285245895386,
-0.15043742954730988,
-0.2534065246582031,
0.06838629394769669,
-0.006344465538859367,
0.08378170430660248,
-0.05151887238025665,
-0.07744314521551132,
-0.02247791737318039,
-0.012339241802692413,
-0.25004836916923523,
0.3335143029689789,
0.14800240099430084,
0.4500733017921448,
0.1707650125026703,
0.019704893231391907,
0.15391606092453003,
0.15021036565303802,
0.29001569747924805,
0.029065629467368126,
0.3547216057777405,
-0.20860528945922852,
-0.1581663191318512,
0.3160482943058014,
-0.008646257221698761,
0.34581613540649414,
0.19376644492149353,
-0.2984398305416107,
0.3042433559894562,
0.12538973987102509,
-0.02005397528409958,
-0.07657205313444138,
0.4769967198371887,
0.19333839416503906,
0.6596892476081848,
0.14807255566120148,
-0.29603856801986694,
-0.15037214756011963,
0.4899027943611145,
0.006528891623020172,
-0.06818801909685135,
0.2815355956554413,
-0.016194529831409454,
-0.2959463596343994,
-0.023628326132893562,
0.13724207878112793,
0.43831199407577515,
0.2162739634513855,
0.020021609961986542,
-0.009543357416987419,
-0.02101621776819229,
-0.18083404004573822,
0.25274819135665894,
-0.040084630250930786,
0.5054355263710022,
0.10154284536838531,
-0.05066905543208122,
-0.01099210325628519,
-0.41747015714645386,
-0.2598710358142853,
-0.003329549916088581,
0.16301293671131134,
-0.1468355655670166,
0.20736590027809143,
-0.09576962888240814,
0.12245302647352219,
-0.31511637568473816,
0.2789246737957001,
-0.03592539206147194,
-0.07289572805166245,
-0.18248866498470306,
0.26598674058914185,
0.10747948288917542,
-0.001979481428861618,
-0.0894387736916542,
0.22493058443069458,
-0.05812761187553406,
-0.28491321206092834,
-0.27354228496551514,
-0.060367193073034286,
-0.33484986424446106,
0.010303523391485214,
0.3252156376838684,
0.0741826668381691,
0.30038169026374817,
-0.08235444128513336,
-0.21482153236865997,
-0.13289949297904968,
0.05210820585489273,
0.01714497059583664,
-0.016599420458078384,
0.26997676491737366,
-0.12106773257255554,
0.19121330976486206,
-0.05054613947868347,
-0.09592647850513458,
0.20414768159389496,
-0.253837525844574,
-0.03892575576901436,
-0.01028305571526289,
-0.07355550676584244,
-0.003747633658349514,
-0.020794974640011787,
-0.44784173369407654,
-0.35652366280555725,
-0.32373443245887756,
0.029211748391389847,
-0.0933990478515625,
0.12699013948440552,
-0.1361834704875946,
0.10475733131170273,
0.0641792044043541,
0.1965303272008896,
0.14438660442829132,
-0.25231125950813293,
-0.5606967210769653,
0.31107866764068604,
0.020332155749201775,
-0.2803840637207031,
0.026268023997545242,
0.21969857811927795,
0.23572133481502533,
0.03453817591071129,
-0.605253279209137,
-0.027121160179376602,
-0.35525956749916077,
0.021931175142526627,
-0.3490780293941498,
0.037120919674634933,
0.06305999308824539,
-0.08537732064723969,
-0.07926514744758606,
0.1527559459209442,
-0.16202744841575623,
-0.06915151327848434,
-0.07677185535430908,
0.07748356461524963,
-0.19060546159744263,
0.26727932691574097,
0.042636726051568985,
0.5003498196601868,
0.14098826050758362,
0.10457184910774231,
0.358086496591568,
0.1680103838443756,
0.11993695795536041,
-0.37361371517181396,
-0.13043063879013062,
0.01542328018695116,
-0.31504037976264954,
-0.3742135167121887,
0.21724921464920044,
0.07678250223398209,
-0.39543479681015015,
-0.17458374798297882,
-0.08634163439273834,
-0.17050939798355103,
-0.1927301287651062,
0.15448465943336487,
-0.2539516091346741,
0.16259808838367462,
-0.04123331606388092,
0.13801205158233643,
-0.06795711815357208,
-0.09232663363218307,
-0.03351666033267975,
-0.0306004136800766,
0.09002501517534256,
-0.13375049829483032,
-0.3750216066837311,
0.09864194691181183,
-0.4460470676422119,
0.1425749957561493,
-0.2722066342830658,
0.1862039864063263,
-0.015617992728948593,
0.01577160507440567,
0.23181360960006714,
-0.07275784760713577,
0.7050458192825317,
0.10267967730760574,
0.1966913491487503,
0.0261167511343956,
-0.2520484924316406,
-0.40858194231987,
0.01788327470421791,
-0.10416096448898315,
-0.06422299146652222,
0.008627083152532578,
0.5170795917510986,
-0.1452535092830658,
-0.23413558304309845,
-0.2064349204301834,
0.4217880368232727,
-0.18722856044769287,
-0.3244763910770416,
-0.23217569291591644,
-0.2543637156486511,
-0.349226713180542,
0.16074427962303162,
0.06682667136192322,
0.3056793212890625,
0.10281568765640259,
-0.02734960801899433,
-0.005050830543041229,
0.20196950435638428,
0.21992498636245728,
0.026666022837162018,
0.24809911847114563,
-0.026326455175876617,
0.43351638317108154,
-0.005260050296783447,
0.06470289826393127,
-0.06649567186832428,
0.506054162979126,
-0.1639939546585083,
-0.2544705867767334,
0.05452756956219673,
-0.07480266690254211,
0.1698000133037567,
0.47696834802627563,
0.042426999658346176,
-0.06741217523813248,
0.26454609632492065,
0.23759682476520538,
-0.3703555166721344,
0.050373490899801254,
0.3129150867462158,
0.19203220307826996,
-0.1302803009748459,
-0.6680110096931458,
0.38853129744529724,
0.2552740275859833,
0.044192954897880554,
0.11039648950099945,
-0.2265152782201767,
-0.12721848487854004,
0.5779407620429993,
0.20833900570869446,
0.9637522101402283,
-0.13626836240291595,
0.2553079128265381,
-0.02215741202235222,
0.1892080157995224,
0.1544008105993271,
-0.444103479385376,
-0.04092823714017868,
-0.3033839166164398,
-0.20108292996883392,
0.07737262547016144,
-0.06695663928985596,
0.1298738718032837,
0.4100772738456726,
-0.016232509166002274,
0.367723286151886,
-0.020463690161705017,
-0.3300694227218628,
-0.3168061673641205,
0.5213738679885864,
-0.3694126605987549,
-0.6282684206962585,
-0.6542038917541504,
0.16493622958660126,
-0.1258343905210495,
0.06048712879419327,
-0.027284130454063416,
0.2898992896080017,
0.1325598508119583,
-0.15720988810062408,
-0.16786286234855652,
0.10888973623514175,
-0.1719561219215393,
0.18888075649738312,
-0.3077002763748169,
-0.20531904697418213,
0.05811003968119621,
0.1794908493757248,
0.02252315729856491,
0.1846444010734558,
-0.03767945617437363,
0.46270906925201416,
-0.1927565336227417,
0.25388768315315247,
0.12080702185630798,
-0.31024280190467834,
0.30443012714385986,
-0.21509966254234314,
-0.13873611390590668,
-0.2026301920413971,
-0.2663204073905945,
-0.2066636085510254,
0.1957397758960724,
0.036147162318229675,
0.12579432129859924,
0.0684800073504448,
-0.6111648678779602,
0.18920868635177612,
-0.02386431023478508,
-0.23184506595134735,
0.18283003568649292,
0.245236337184906,
-0.07738734781742096,
0.39320212602615356,
0.05448465794324875,
-0.3213699758052826,
-0.06956399977207184,
0.3503505289554596,
0.18539604544639587,
-0.14534831047058105,
0.43021488189697266,
0.279501348733902,
-0.206838458776474,
-0.2503645122051239,
0.16761839389801025,
0.04831378534436226,
-0.4503318965435028,
0.271293580532074,
0.13728435337543488,
-0.04824267327785492,
0.025161514058709145,
0.00645359605550766,
0.2230457365512848,
-0.1812039613723755,
-0.1374010145664215,
-0.3095383048057556,
-0.17295697331428528,
-0.038695767521858215,
0.2079714983701706,
0.09431278705596924,
0.16084879636764526,
-0.28599846363067627,
-0.09568534791469574,
0.05228957533836365,
-0.3249444365501404,
0.08491652458906174,
-0.27639076113700867,
-0.022349674254655838,
-0.16404880583286285,
-0.044934190809726715,
0.33198949694633484,
-0.010750750079751015,
0.1544739454984665,
0.006423186510801315,
-0.11990891396999359,
-0.24201148748397827,
-0.23059742152690887,
0.12250536680221558,
-0.13474851846694946,
0.00036673853173851967,
0.13643455505371094,
-0.4455796480178833,
-0.13009490072727203,
-0.30524858832359314,
-0.012142029590904713,
0.06988155841827393,
0.01205505058169365,
-0.1074533611536026,
-0.03724106028676033,
0.08514904230833054,
-0.1263144612312317,
0.13236171007156372,
-0.12529225647449493,
0.31326520442962646,
0.11541374772787094,
0.01045391708612442,
0.3787941336631775,
-0.2101467400789261,
-0.4721023142337799,
-0.14584565162658691,
0.08563366532325745,
0.30042651295661926,
0.2204202115535736,
-0.06822572648525238,
0.10851287841796875,
0.34021490812301636,
0.338462769985199,
0.2613999843597412,
-0.012101898901164532,
-0.188423752784729,
0.04016778618097305,
0.24038824439048767,
-0.18580526113510132,
-0.3267368972301483,
-0.12383018434047699,
-0.22682660818099976,
-0.0059491172432899475,
0.08846833556890488,
0.0675780326128006,
0.46143651008605957,
-0.2952954173088074,
0.018346238881349564,
0.3483882546424866,
-0.3196529150009155,
0.03076447732746601,
0.23404426872730255,
0.16097427904605865,
0.1844974309206009,
0.13749119639396667,
0.06274202466011047,
0.11889299750328064,
0.7941007018089294,
-0.15576648712158203,
0.3140953779220581,
0.16350600123405457,
0.5316989421844482,
-0.21074366569519043,
-0.35841113328933716,
0.16030997037887573,
0.28197479248046875,
-0.20230525732040405,
0.15674430131912231,
-0.07907716929912567,
0.14748945832252502,
-0.36055269837379456,
-0.25029122829437256,
-0.18410809338092804,
0.050141364336013794,
-0.16143527626991272,
-0.0824110358953476,
-0.0344979502260685,
0.08991798013448715,
-0.1224072054028511,
0.32684245705604553,
-0.24614572525024414,
0.06808526068925858,
0.027738161385059357,
0.3039013743400574,
0.05800508335232735,
-0.1363678276538849,
-0.026432842016220093,
-0.15931165218353271,
0.2774825692176819,
-0.2918611168861389,
0.08700177073478699,
-0.0817568451166153,
-0.1345001459121704,
-0.13334374129772186,
0.07557060569524765,
0.22740302979946136,
0.43015792965888977,
0.08337822556495667,
0.11080268770456314,
-0.032215364277362823,
0.05550520122051239,
-0.12919281423091888,
0.20676016807556152,
0.15777942538261414,
0.5026853084564209,
0.308470219373703,
0.08856035023927689,
-0.20332305133342743,
-0.008554119616746902,
-0.1716054528951645,
0.33765897154808044,
-0.33921799063682556,
0.34435561299324036,
0.05648546665906906,
-0.12458465993404388,
-0.4495334029197693,
0.3309650123119354,
-0.25903141498565674,
0.07375023514032364,
0.39094212651252747,
-0.035381805151700974,
-0.05226318910717964,
-0.22038574516773224,
0.09130437672138214,
-0.08589692413806915,
0.7191557288169861,
0.29006141424179077,
0.00012103095650672913,
-0.3954750895500183,
-0.03622610121965408,
-0.7739748954772949,
-0.030782796442508698,
-0.18208806216716766,
0.23030322790145874,
0.04976620152592659,
0.36548203229904175,
0.18567463755607605,
0.22616420686244965,
-0.0912749320268631,
-0.11804696917533875,
-0.17173895239830017,
0.14614494144916534,
-0.19767946004867554,
-0.09005491435527802,
-0.13943618535995483,
0.1651575118303299,
-0.11369279026985168,
-0.5302267670631409,
0.17176473140716553,
0.08190885186195374,
-0.06730140745639801,
-0.1615781933069229,
-0.13358542323112488,
-0.013177866116166115,
0.21431635320186615,
0.49958112835884094,
0.054426342248916626,
0.07352005690336227,
-0.10499726980924606,
-0.10872054100036621,
-0.05190734192728996,
-0.0537869818508625,
-0.09822283685207367,
0.1696147322654724,
0.08414623886346817,
0.2834577262401581,
-0.0939561203122139,
0.22069421410560608,
-0.35809439420700073,
0.20068210363388062,
-0.22346265614032745,
-0.3017811179161072,
-0.25035399198532104,
-0.1162724420428276,
0.151267409324646,
0.0865321010351181,
0.1971609890460968,
0.3609009385108948,
0.0298655666410923,
-0.17828945815563202,
-0.39262670278549194,
-0.15957878530025482,
0.2519139051437378,
0.01678900420665741,
-0.20763255655765533,
-0.055305346846580505,
0.26133352518081665,
0.15085789561271667,
-0.0685163363814354,
-0.5005111694335938,
0.0650302991271019,
0.21773628890514374,
-0.02422516793012619,
-0.1970941424369812,
0.3102473020553589,
-0.051686909049749374,
0.03608963266015053,
-0.1081530898809433,
0.3465842604637146,
-0.1472855508327484,
-0.3784306049346924,
0.013874087482690811,
-0.3208792209625244
] |
https://github.com/huggingface/datasets/issues/2547 | Dataset load_from_disk is too slow | Okay, that's exactly my case, with spot instances... Therefore this isn't something we can change in any way to be able to load the dataset faster? I mean, what do you do internally at huggingface for being able to use spot instances with datasets efficiently? | @lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in the context of a language model training, therefore I'm wasting 100$ each time I have to load the dataset from disk again (because the spot instance was stopped by aws and I need to relaunch it for example).
## Steps to reproduce the bug
Just get the oscar in spanish (around 150GGB) and try to first save in disk and then load the processed dataset. It's not dependent on the task you're doing, it just depends on the size of the text dataset.
## Expected results
I expect the dataset to be loaded in a normal time, by using the whole machine for loading it, I mean if you store the dataset in multiple files (.arrow) and then load it from multiple files, you can use multiprocessing for that and therefore don't waste so much time.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Ubuntu 18
- Python version: 3.8
I've seen you're planning to include a streaming mode for load_dataset, but that only saves the downloading and processing time, that's not being a problem for me, you cannot save the pure loading from disk time, therefore that's not a solution for my use case or for anyone who wants to use your library for training a language model. | 45 | Dataset load_from_disk is too slow
@lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in the context of a language model training, therefore I'm wasting 100$ each time I have to load the dataset from disk again (because the spot instance was stopped by aws and I need to relaunch it for example).
## Steps to reproduce the bug
Just get the oscar in spanish (around 150GGB) and try to first save in disk and then load the processed dataset. It's not dependent on the task you're doing, it just depends on the size of the text dataset.
## Expected results
I expect the dataset to be loaded in a normal time, by using the whole machine for loading it, I mean if you store the dataset in multiple files (.arrow) and then load it from multiple files, you can use multiprocessing for that and therefore don't waste so much time.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Ubuntu 18
- Python version: 3.8
I've seen you're planning to include a streaming mode for load_dataset, but that only saves the downloading and processing time, that's not being a problem for me, you cannot save the pure loading from disk time, therefore that's not a solution for my use case or for anyone who wants to use your library for training a language model.
Okay, that's exactly my case, with spot instances... Therefore this isn't something we can change in any way to be able to load the dataset faster? I mean, what do you do internally at huggingface for being able to use spot instances with datasets efficiently? | [
-0.31963691115379333,
-0.5587561130523682,
-0.062026508152484894,
0.5160355567932129,
0.23286035656929016,
0.020378723740577698,
0.12462976574897766,
0.13793520629405975,
0.5566673278808594,
0.11270595341920853,
-0.06148034334182739,
0.3583334982395172,
-0.015343175269663334,
0.21133051812648773,
0.07681920379400253,
-0.08293892443180084,
0.20185396075248718,
0.017478428781032562,
0.09677673131227493,
-0.03347073867917061,
-0.06026577204465866,
0.18477259576320648,
-0.17772188782691956,
-0.18015430867671967,
-0.3432551920413971,
-0.1481814980506897,
0.01697656698524952,
0.1757047027349472,
-0.09117394685745239,
-0.34216877818107605,
0.17432430386543274,
0.07797598838806152,
0.13140158355236053,
0.5717484951019287,
-0.00011365360842319205,
-0.045983780175447464,
0.11772409826517105,
0.07482964545488358,
-0.34274768829345703,
0.03683818131685257,
0.03669615834951401,
-0.2794429361820221,
0.15251289308071136,
-0.13235464692115784,
-0.13327965140342712,
0.12935274839401245,
-0.04073502868413925,
-0.33393731713294983,
0.3590659499168396,
-0.015728240832686424,
0.18334846198558807,
0.5802420377731323,
-0.31825557351112366,
-0.0626382976770401,
-0.06806353479623795,
0.08786945044994354,
-0.20418643951416016,
0.2897658944129944,
0.42826908826828003,
0.13750901818275452,
-0.15039941668510437,
0.40812546014785767,
-0.04017428681254387,
0.12905362248420715,
0.5548251867294312,
0.10668013989925385,
-0.09098335355520248,
-0.19065096974372864,
-0.12760618329048157,
0.2746150493621826,
0.42168134450912476,
-0.03594674915075302,
-0.37705665826797485,
-0.4575645625591278,
0.08067993074655533,
-0.31985533237457275,
0.24321973323822021,
0.13894063234329224,
-0.08136202394962311,
0.1238146722316742,
-0.17479285597801208,
-0.14543741941452026,
-0.010641541332006454,
0.011534646153450012,
0.31727921962738037,
0.07209420204162598,
-0.19954298436641693,
0.01434621587395668,
0.47273170948028564,
0.1806197166442871,
-0.16248910129070282,
-0.1308172047138214,
0.18107882142066956,
0.2825062870979309,
-0.5777143239974976,
0.01146671175956726,
0.0010850802063941956,
0.4125046133995056,
0.0518389493227005,
0.2784290909767151,
0.32231754064559937,
0.23586609959602356,
-0.3069179356098175,
0.09113416075706482,
0.23395593464374542,
0.36142203211784363,
-0.056424207985401154,
-0.13450030982494354,
0.30642056465148926,
0.3840128481388092,
-0.11357736587524414,
0.009558886289596558,
-0.2387744039297104,
-0.10691975057125092,
0.1238982081413269,
-0.3129688799381256,
0.014529749751091003,
-0.1244761198759079,
-0.02020086906850338,
-0.10869669169187546,
0.16784515976905823,
-0.1577461212873459,
0.24616673588752747,
0.37666288018226624,
-0.2775835394859314,
0.5177401304244995,
0.1202462762594223,
-0.1425704061985016,
-0.43305373191833496,
-0.13039179146289825,
-0.17328479886054993,
0.08044297993183136,
-0.19500993192195892,
0.26628822088241577,
0.07013560831546783,
-0.46660032868385315,
0.25800448656082153,
0.12105949968099594,
0.20603929460048676,
-0.24203263223171234,
0.01486961729824543,
-0.34569212794303894,
-0.2548392117023468,
0.11205236613750458,
-0.02215886488556862,
0.2393348664045334,
0.003117792308330536,
0.029196947813034058,
-0.3391519784927368,
-0.12429355829954147,
-0.3038772642612457,
-0.5340564250946045,
-0.15598125755786896,
0.15280970931053162,
-0.03331837058067322,
0.007049206644296646,
-0.6708771586418152,
0.17524024844169617,
-0.030953921377658844,
0.1613246202468872,
-0.06815604120492935,
0.03492063656449318,
-0.42825669050216675,
0.012933067046105862,
0.4087437391281128,
0.4829123020172119,
-0.33647194504737854,
-0.009263798594474792,
-0.1738152951002121,
0.0008566193282604218,
0.24382972717285156,
0.6055168509483337,
-0.263182669878006,
0.3598330020904541,
-0.19604170322418213,
0.0458977073431015,
0.09752123802900314,
-0.3626183569431305,
-0.1896521896123886,
0.40169912576675415,
-0.04919884726405144,
0.07041139155626297,
0.19530242681503296,
0.21547098457813263,
0.049942608922719955,
-0.006914614699780941,
0.026424549520015717,
0.4943828582763672,
0.10991746187210083,
0.3077586591243744,
-0.32752490043640137,
-0.23637667298316956,
-0.010648217052221298,
0.4756229519844055,
-0.46284595131874084,
-0.13582289218902588,
-0.18920007348060608,
0.43673038482666016,
0.3493829667568207,
-0.0706915408372879,
-0.09731843322515488,
0.21466615796089172,
0.054362840950489044,
0.18393456935882568,
-0.025847570970654488,
-0.039258163422346115,
-0.3798592984676361,
0.3749343454837799,
0.21929919719696045,
0.20748335123062134,
0.06837140023708344,
-0.19530606269836426,
-0.27414384484291077,
0.07754646986722946,
-0.31433531641960144,
0.015247587114572525,
-0.06859090179204941,
0.0763566642999649,
0.1691778600215912,
-0.09333957731723785,
-0.3474593162536621,
0.2462809979915619,
-0.33578750491142273,
0.06762228906154633,
-0.4804137051105499,
0.007930019870400429,
0.07891539484262466,
0.07942710071802139,
-0.12037939578294754,
0.018170025199651718,
-0.06850802153348923,
-0.09773675352334976,
-0.09156549721956253,
0.39526617527008057,
0.09360649436712265,
0.4953528046607971,
0.19845804572105408,
0.14746800065040588,
0.2836602032184601,
0.17059068381786346,
0.19666065275669098,
-0.10056635737419128,
0.3328218460083008,
-0.12494561076164246,
-0.23282131552696228,
0.33379900455474854,
-0.11161334812641144,
0.29345449805259705,
0.14850841462612152,
-0.28528308868408203,
0.16428916156291962,
0.1510000079870224,
-0.05836974084377289,
-0.06303972750902176,
0.4609430134296417,
0.020465383306145668,
0.6008420586585999,
0.21536627411842346,
-0.44403642416000366,
-0.04370308667421341,
0.4861671030521393,
-0.01507299393415451,
-0.05873848497867584,
0.27307990193367004,
0.062416210770606995,
-0.3525633215904236,
0.06953892856836319,
-0.16108489036560059,
0.299673855304718,
0.13614261150360107,
-0.05436253920197487,
0.06003820151090622,
0.08702375739812851,
-0.1404522955417633,
0.2030685842037201,
-0.010766483843326569,
0.3830634653568268,
-0.06832679361104965,
0.032246097922325134,
-0.04014938324689865,
-0.44501256942749023,
-0.17550787329673767,
-0.12172386050224304,
0.11078833043575287,
-0.2857527732849121,
0.14569272100925446,
-0.05575025826692581,
-0.003341004252433777,
-0.23024772107601166,
0.3559333086013794,
-0.09302940964698792,
-0.08995726704597473,
-0.14060458540916443,
0.36195576190948486,
0.12146130204200745,
0.0018908977508544922,
-0.043535348027944565,
0.40417391061782837,
-0.03421010076999664,
-0.1786130964756012,
-0.36530041694641113,
-0.004792603198438883,
-0.18586337566375732,
-0.04852847009897232,
0.29344722628593445,
0.15907825529575348,
0.29703107476234436,
-0.20100541412830353,
-0.1913919597864151,
-0.2566906809806824,
-0.011739779263734818,
0.0041496604681015015,
-0.058812953531742096,
0.35513538122177124,
0.08719506114721298,
0.21149654686450958,
-0.2618366479873657,
-0.06649188697338104,
0.2615100145339966,
-0.2949221432209015,
-0.14938199520111084,
-0.13076436519622803,
-0.12454468011856079,
0.12209344655275345,
0.0281820185482502,
-0.2825680077075958,
-0.2752523422241211,
-0.30557557940483093,
0.31903642416000366,
-0.09530115127563477,
0.053693123161792755,
-0.14473435282707214,
-0.05292139947414398,
0.13883589208126068,
-0.09152155369520187,
0.11114183813333511,
-0.19335292279720306,
-0.6070041656494141,
0.21688996255397797,
0.024775847792625427,
-0.2385847419500351,
-0.10314890742301941,
0.2235168218612671,
0.11490488052368164,
-0.13131782412528992,
-0.5084906220436096,
-0.3393249809741974,
-0.3350628912448883,
0.09898066520690918,
-0.22538936138153076,
0.15282543003559113,
0.18813733756542206,
-0.13915200531482697,
-0.02498415671288967,
0.17798581719398499,
-0.28474190831184387,
-0.02869243174791336,
0.03485948219895363,
-0.020988829433918,
-0.03961188346147537,
0.2691692113876343,
-0.00040336698293685913,
0.46841567754745483,
0.19508250057697296,
0.15714548528194427,
0.4356394112110138,
0.12247098237276077,
0.19875691831111908,
-0.4039035141468048,
-0.19743773341178894,
0.02010355331003666,
-0.2472994327545166,
-0.2876932621002197,
0.23330608010292053,
0.11750033497810364,
0.03227836266160011,
-0.18204936385154724,
-0.08950769901275635,
-0.23804673552513123,
-0.18365702033042908,
0.07526826113462448,
0.02693207934498787,
0.05892551690340042,
-0.06422051787376404,
0.08126752823591232,
0.020664095878601074,
-0.05836920067667961,
0.08864691853523254,
0.06639879941940308,
0.18281637132167816,
-0.11100250482559204,
-0.5808101892471313,
0.1746724545955658,
-0.6069721579551697,
0.20172357559204102,
-0.2025548368692398,
0.062496285885572433,
0.05041195824742317,
0.011051792651414871,
0.4005091190338135,
0.005456901155412197,
0.7247169613838196,
0.09030534327030182,
0.18279187381267548,
-0.0531373992562294,
-0.45916110277175903,
-0.43240517377853394,
0.12066309154033661,
-0.09465755522251129,
-0.11709414422512054,
0.045191921293735504,
0.5109405517578125,
-0.31237754225730896,
-0.36355099081993103,
-0.1208663284778595,
0.3289906084537506,
-0.170408234000206,
-0.16021794080734253,
-0.22544528543949127,
-0.30874720215797424,
-0.28204527497291565,
0.19154499471187592,
0.06228935718536377,
0.33893710374832153,
0.298313707113266,
0.07045052945613861,
0.011154134757816792,
0.22257015109062195,
0.18770474195480347,
0.05586728826165199,
0.2207464873790741,
0.06306226551532745,
0.26991018652915955,
0.19487184286117554,
-0.0403413400053978,
-0.1628279834985733,
0.564195990562439,
-0.25018376111984253,
-0.4906095266342163,
-0.014696620404720306,
0.126273050904274,
0.23653775453567505,
0.5669200420379639,
0.04211123287677765,
0.11979594081640244,
0.14438071846961975,
0.33743250370025635,
-0.43587398529052734,
0.0840514749288559,
0.2717897891998291,
0.25143808126449585,
-0.13455379009246826,
-0.5810297131538391,
0.4566173851490021,
0.19050627946853638,
0.04883579909801483,
0.056908950209617615,
0.05133870989084244,
-0.08423737436532974,
0.6181399822235107,
0.06869816780090332,
1.0370103120803833,
-0.28218573331832886,
0.225485697388649,
0.1522791087627411,
0.2190828174352646,
0.5381289124488831,
-0.4257054924964905,
0.0011356640607118607,
-0.27768558263778687,
-0.12133416533470154,
0.06258175522089005,
-0.0462397038936615,
0.09466538578271866,
0.263170450925827,
0.02268597111105919,
0.45952853560447693,
-0.15244969725608826,
-0.21975955367088318,
-0.3194172978401184,
0.4795188307762146,
-0.2825455367565155,
-0.7124115824699402,
-0.9103111624717712,
0.08631362020969391,
-0.08077506721019745,
0.22994577884674072,
-0.09658742696046829,
0.23740388453006744,
0.18099357187747955,
-0.08959689736366272,
-0.12759554386138916,
-0.03154565766453743,
-0.25076085329055786,
0.04245860129594803,
-0.16387253999710083,
-0.12923145294189453,
0.031102903187274933,
0.34781190752983093,
0.1300773024559021,
0.03611667826771736,
-0.04431670904159546,
0.3795786201953888,
-0.3030952513217926,
0.21240366995334625,
0.09257017821073532,
-0.25420671701431274,
0.26491570472717285,
-0.154286727309227,
-0.0823560506105423,
-0.17558571696281433,
-0.17461936175823212,
-0.3735758066177368,
0.28577080368995667,
0.038767751306295395,
0.03928138315677643,
-0.03041413053870201,
-0.570673942565918,
0.14153701066970825,
0.1314602941274643,
-0.28440359234809875,
0.09806540608406067,
0.2616695761680603,
-0.08885619044303894,
0.2768675982952118,
0.11338584125041962,
-0.27482327818870544,
-0.06782664358615875,
0.39452096819877625,
-0.003880973905324936,
-0.1927153766155243,
0.3684559762477875,
0.39338546991348267,
-0.20316162705421448,
-0.1406020224094391,
0.13542094826698303,
0.1984264850616455,
-0.6394311785697937,
0.36885860562324524,
0.22520142793655396,
-0.08534099161624908,
-0.03219114989042282,
0.25288835167884827,
0.2513146996498108,
-0.1531388759613037,
-0.06754991412162781,
-0.2945725917816162,
-0.13954198360443115,
0.12950335443019867,
0.17115293443202972,
-0.00872347503900528,
0.23671284317970276,
-0.21578671038150787,
-0.08925150334835052,
0.08148283511400223,
-0.2553877532482147,
0.06300192326307297,
-0.3963884711265564,
-0.01544388011097908,
0.13685765862464905,
-0.07034916430711746,
0.4796368181705475,
-0.07045772671699524,
0.07499247789382935,
0.02687559463083744,
-0.2657931447029114,
-0.17250117659568787,
-0.17941708862781525,
0.16767530143260956,
-0.18233510851860046,
-0.07065017521381378,
0.165553018450737,
-0.17045947909355164,
-0.11359365284442902,
-0.3698255121707916,
0.17989276349544525,
0.1990993320941925,
0.05402547866106033,
-0.19334110617637634,
-0.007003013044595718,
0.06858565658330917,
-0.2307344377040863,
0.10767750442028046,
0.06361092627048492,
0.19138343632221222,
0.1256142109632492,
-0.09029467403888702,
0.18366101384162903,
-0.2086755335330963,
-0.056275639683008194,
-0.04297880828380585,
0.28641024231910706,
0.1725778877735138,
0.15076464414596558,
-0.02742813527584076,
-0.045258983969688416,
0.33279138803482056,
0.3738415539264679,
0.24035046994686127,
-0.0165241789072752,
-0.13628658652305603,
0.011544936336576939,
0.15019337832927704,
-0.16407416760921478,
-0.2457486242055893,
-0.017364423722028732,
-0.10749715566635132,
-0.05169607698917389,
0.18911388516426086,
0.17656278610229492,
0.5343306064605713,
-0.4159374237060547,
0.09000521153211594,
0.278603732585907,
-0.25126969814300537,
0.09522739052772522,
0.10142893344163895,
0.0517057441174984,
0.059282876551151276,
0.2839730679988861,
0.15689098834991455,
0.12526638805866241,
0.466327965259552,
-0.12483745068311691,
0.43654757738113403,
-0.051817961037158966,
0.681725025177002,
-0.037854552268981934,
-0.4280993640422821,
0.10094225406646729,
0.4241501986980438,
-0.09781543910503387,
0.05482609570026398,
-0.17132821679115295,
0.390682190656662,
-0.3606954514980316,
-0.3087567389011383,
-0.15851694345474243,
0.18025369942188263,
-0.13678428530693054,
-0.16699016094207764,
0.05726982653141022,
0.02472855895757675,
-0.10005860030651093,
0.33912086486816406,
-0.24647241830825806,
-0.03841927647590637,
0.15254200994968414,
0.1303630769252777,
0.031228769570589066,
-0.22462359070777893,
-0.24861329793930054,
-0.1329120397567749,
0.4031760096549988,
-0.19266027212142944,
0.13215899467468262,
-0.10363230109214783,
-0.14414365589618683,
-0.12136727571487427,
0.34811103343963623,
0.17978747189044952,
0.22193032503128052,
0.20548830926418304,
0.17454728484153748,
-0.15457789599895477,
0.1652444452047348,
-0.005241751670837402,
0.1515234410762787,
0.06998413056135178,
0.30754944682121277,
0.17110131680965424,
0.0384393185377121,
-0.1586204618215561,
-0.03558434173464775,
-0.2871455252170563,
0.3118087351322174,
-0.4168594777584076,
0.23282435536384583,
-0.07071621716022491,
-0.04205573722720146,
-0.40768659114837646,
0.3572511672973633,
-0.16674229502677917,
0.13074824213981628,
0.35379770398139954,
-0.028526056557893753,
-0.10192786902189255,
-0.2110535204410553,
0.054446734488010406,
0.022533727809786797,
0.6195699572563171,
0.3593437075614929,
-0.09968575090169907,
-0.31588417291641235,
-0.03453196585178375,
-0.771591305732727,
-0.083079032599926,
0.02706851251423359,
0.182121142745018,
0.2142474502325058,
0.30335256457328796,
0.06852941960096359,
0.27342501282691956,
-0.0024458542466163635,
-0.11443257331848145,
-0.03224930539727211,
-0.004326716065406799,
-0.1468898206949234,
0.07158441096544266,
-0.27526211738586426,
0.01678890734910965,
-0.05203806608915329,
-0.4649926722049713,
0.25687313079833984,
-0.012740209698677063,
-0.18272265791893005,
-0.09550520032644272,
0.038973912596702576,
-0.05959547683596611,
0.025990568101406097,
0.41705602407455444,
0.05981098860502243,
-0.09621450304985046,
-0.033640943467617035,
-0.16410896182060242,
-0.12545402348041534,
-0.16935895383358002,
-0.11148010194301605,
0.18809252977371216,
-0.08115014433860779,
0.2960052788257599,
-0.12145799398422241,
0.21032916009426117,
-0.4020766615867615,
0.3637862503528595,
-0.1327587068080902,
-0.3278028070926666,
-0.26492562890052795,
-0.05116921663284302,
-0.06750895828008652,
-0.01440083421766758,
0.26980283856391907,
0.3055671453475952,
-0.011731907725334167,
-0.21944670379161835,
-0.3290020227432251,
-0.1330346316099167,
0.44058048725128174,
-0.08633019030094147,
-0.11676913499832153,
-0.04739081859588623,
0.2936114966869354,
0.3169220983982086,
-0.2588174045085907,
-0.6736818552017212,
0.06975943595170975,
0.09826815873384476,
0.12389831244945526,
-0.14124944806098938,
0.3487514853477478,
-0.1722727119922638,
-0.060877326875925064,
-0.17909502983093262,
0.2636464536190033,
-0.13340821862220764,
-0.2623075246810913,
0.1287030726671219,
-0.3133029341697693
] |
https://github.com/huggingface/datasets/issues/2547 | Dataset load_from_disk is too slow | There are no solutions yet unfortunately.
We're still trying to figure out a way to make the loading instantaneous on such disks, I'll keep you posted | @lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in the context of a language model training, therefore I'm wasting 100$ each time I have to load the dataset from disk again (because the spot instance was stopped by aws and I need to relaunch it for example).
## Steps to reproduce the bug
Just get the oscar in spanish (around 150GGB) and try to first save in disk and then load the processed dataset. It's not dependent on the task you're doing, it just depends on the size of the text dataset.
## Expected results
I expect the dataset to be loaded in a normal time, by using the whole machine for loading it, I mean if you store the dataset in multiple files (.arrow) and then load it from multiple files, you can use multiprocessing for that and therefore don't waste so much time.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Ubuntu 18
- Python version: 3.8
I've seen you're planning to include a streaming mode for load_dataset, but that only saves the downloading and processing time, that's not being a problem for me, you cannot save the pure loading from disk time, therefore that's not a solution for my use case or for anyone who wants to use your library for training a language model. | 26 | Dataset load_from_disk is too slow
@lhoestq
## Describe the bug
It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in the context of a language model training, therefore I'm wasting 100$ each time I have to load the dataset from disk again (because the spot instance was stopped by aws and I need to relaunch it for example).
## Steps to reproduce the bug
Just get the oscar in spanish (around 150GGB) and try to first save in disk and then load the processed dataset. It's not dependent on the task you're doing, it just depends on the size of the text dataset.
## Expected results
I expect the dataset to be loaded in a normal time, by using the whole machine for loading it, I mean if you store the dataset in multiple files (.arrow) and then load it from multiple files, you can use multiprocessing for that and therefore don't waste so much time.
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.8.0
- Platform: Ubuntu 18
- Python version: 3.8
I've seen you're planning to include a streaming mode for load_dataset, but that only saves the downloading and processing time, that's not being a problem for me, you cannot save the pure loading from disk time, therefore that's not a solution for my use case or for anyone who wants to use your library for training a language model.
There are no solutions yet unfortunately.
We're still trying to figure out a way to make the loading instantaneous on such disks, I'll keep you posted | [
-0.4694783091545105,
-0.24230194091796875,
-0.11789417266845703,
0.394115686416626,
0.24218159914016724,
0.05294816941022873,
0.1993054747581482,
0.26577067375183105,
0.4733242690563202,
0.10509952157735825,
0.053388603031635284,
0.44948893785476685,
-0.02447601780295372,
0.013596678152680397,
-0.026676177978515625,
-0.01355838030576706,
0.20045863091945648,
0.05155269429087639,
0.2093929946422577,
-0.12101826816797256,
-0.16607704758644104,
0.2531619668006897,
-0.17681950330734253,
-0.2215416580438614,
-0.27578434348106384,
-0.1387374997138977,
-0.003566065803170204,
0.04032126069068909,
-0.06866372376680374,
-0.31961706280708313,
0.18288300931453705,
0.12443073093891144,
0.22845804691314697,
0.4482249319553375,
-0.00010554998880252242,
-0.13147763907909393,
0.13361024856567383,
0.01694253645837307,
-0.3660499155521393,
-0.11348697543144226,
0.23584306240081787,
-0.24450448155403137,
0.1371782273054123,
-0.22500166296958923,
-0.0972658023238182,
0.025181051343679428,
-0.046005018055438995,
-0.4642717242240906,
0.20520567893981934,
0.1093909963965416,
0.2575610876083374,
0.3051844537258148,
-0.3067188858985901,
-0.06366412341594696,
-0.005110263824462891,
0.016165222972631454,
-0.23435722291469574,
0.20388098061084747,
0.4900560975074768,
0.15265806019306183,
-0.132910817861557,
0.3433518707752228,
-0.05409592390060425,
0.09305544197559357,
0.41015735268592834,
0.007167995907366276,
0.09535688161849976,
-0.2674490511417389,
-0.0116267129778862,
0.20360764861106873,
0.4939621090888977,
-0.052109718322753906,
-0.3432076573371887,
-0.30284562706947327,
0.14752167463302612,
-0.24961483478546143,
0.27383357286453247,
0.24136300384998322,
-0.11563518643379211,
0.1319805383682251,
-0.05376097187399864,
-0.18778014183044434,
-0.06333886086940765,
0.06810155510902405,
0.2679537534713745,
0.22535157203674316,
-0.08739858120679855,
0.01081831380724907,
0.41632235050201416,
0.11478351056575775,
0.2195015400648117,
-0.24328136444091797,
0.15091431140899658,
0.3744630813598633,
-0.5127289891242981,
-0.012460250407457352,
-0.03134359419345856,
0.25737011432647705,
-0.09772586822509766,
0.22905467450618744,
0.15363766252994537,
0.20921063423156738,
-0.16614629328250885,
0.16066822409629822,
0.14464540779590607,
0.24595387279987335,
-0.0865710899233818,
-0.04021221771836281,
0.24420952796936035,
0.19768427312374115,
-0.18235579133033752,
-0.0017855055630207062,
-0.27365976572036743,
-0.1554442197084427,
0.26446732878685,
-0.26775142550468445,
-0.1355287730693817,
-0.1284794956445694,
-0.05555291473865509,
0.03888477012515068,
0.1759006381034851,
-0.14763373136520386,
0.19115318357944489,
0.30134397745132446,
-0.29210183024406433,
0.5728605389595032,
0.026014812290668488,
-0.09909957647323608,
-0.3289966881275177,
-0.037529513239860535,
-0.16817256808280945,
0.07358507812023163,
-0.249655619263649,
0.15386557579040527,
0.1731601059436798,
-0.261128693819046,
0.20465052127838135,
0.0870451033115387,
0.18140506744384766,
-0.22194723784923553,
0.22212794423103333,
-0.4922522008419037,
-0.11507027596235275,
0.15652218461036682,
0.04395561292767525,
0.24178974330425262,
0.02183331362903118,
-0.09405400604009628,
-0.3755870759487152,
0.10600273311138153,
-0.33274832367897034,
-0.4518420398235321,
-0.24688439071178436,
0.25985243916511536,
0.0015021786093711853,
-0.040048569440841675,
-0.5704132318496704,
0.11382649838924408,
0.0026696398854255676,
0.0800517350435257,
-0.15645745396614075,
-0.07962482422590256,
-0.2967768609523773,
-0.0024339568335562944,
0.318124383687973,
0.33461737632751465,
-0.45513346791267395,
0.10217548906803131,
-0.2604030668735504,
0.07497073709964752,
0.3448598086833954,
0.5159241557121277,
-0.3132816255092621,
0.2919723689556122,
-0.14339372515678406,
0.08277364075183868,
0.22091282904148102,
-0.2219850867986679,
-0.267849326133728,
0.6216793656349182,
0.07145524024963379,
-0.07128747552633286,
0.11309073865413666,
0.2571851313114166,
0.17723695933818817,
-0.03666739910840988,
0.13371744751930237,
0.5584762692451477,
0.15123675763607025,
0.2853975296020508,
-0.3553663194179535,
-0.2408132404088974,
0.022846948355436325,
0.5096568465232849,
-0.2727360129356384,
-0.15572205185890198,
-0.13014072179794312,
0.3853496313095093,
0.36815622448921204,
-0.10200072824954987,
-0.0429258868098259,
0.24489232897758484,
0.14222565293312073,
0.05888568237423897,
-0.02171442098915577,
-0.052217841148376465,
-0.20949098467826843,
0.3154987692832947,
0.34027811884880066,
0.10551001876592636,
0.051887333393096924,
-0.1499330848455429,
-0.20646539330482483,
0.026975536718964577,
-0.33765217661857605,
0.08857448399066925,
0.06511742621660233,
0.07031631469726562,
0.0686207115650177,
-0.059033118188381195,
-0.29923248291015625,
0.2201520800590515,
-0.3418138027191162,
-0.11203515529632568,
-0.2888449728488922,
0.06471601873636246,
-0.02109660767018795,
0.04409940913319588,
-0.006661590188741684,
-0.10892904549837112,
-0.015061594545841217,
-0.02438751421868801,
-0.2034514844417572,
0.3786911368370056,
0.09249737113714218,
0.5323041677474976,
0.18403777480125427,
-0.03380383551120758,
0.1784893274307251,
0.1857830435037613,
0.19778013229370117,
0.010507850907742977,
0.3661215901374817,
-0.16605859994888306,
-0.14045581221580505,
0.3742796778678894,
-0.060522276908159256,
0.2691718637943268,
0.20776619017124176,
-0.2657873332500458,
0.3263539969921112,
0.13591554760932922,
-0.09130118042230606,
-0.1102435290813446,
0.4074094593524933,
0.08945901691913605,
0.6007933020591736,
0.13111421465873718,
-0.357258677482605,
-0.07625135034322739,
0.5789569020271301,
0.04500075802206993,
-0.041899703443050385,
0.3076449930667877,
0.09112432599067688,
-0.31709542870521545,
0.05019567906856537,
0.1875697821378708,
0.43101537227630615,
0.1976148635149002,
-0.0040012262761592865,
-0.03289952129125595,
-0.005691259168088436,
-0.2190224528312683,
0.2751498818397522,
-0.07970522344112396,
0.4988173842430115,
0.046704210340976715,
-0.02546190284192562,
-0.0060019055381417274,
-0.4627440571784973,
-0.32953494787216187,
-0.053221262991428375,
0.17680907249450684,
-0.0895208865404129,
0.2188512235879898,
-0.07536148279905319,
0.08385693281888962,
-0.25351575016975403,
0.21206918358802795,
-0.029527384787797928,
-0.10370378941297531,
-0.11983026564121246,
0.2843450605869293,
0.12040278315544128,
0.047534868121147156,
-0.15575431287288666,
0.17160582542419434,
-0.10207849740982056,
-0.2200128585100174,
-0.3387371301651001,
-0.09343013912439346,
-0.28687041997909546,
0.03510088101029396,
0.2899341881275177,
0.06479151546955109,
0.3139713704586029,
-0.1468578279018402,
-0.11710313707590103,
-0.16014264523983002,
-0.019671279937028885,
-0.02573315054178238,
-0.01593818888068199,
0.17361129820346832,
-0.07210449874401093,
0.158127561211586,
-0.18027879297733307,
-0.18957193195819855,
0.176248237490654,
-0.293265700340271,
0.00958973541855812,
-0.0883764699101448,
-0.08601664006710052,
-0.013309109024703503,
-0.050396163016557693,
-0.4648725092411041,
-0.36324530839920044,
-0.2891046106815338,
0.019005682319402695,
-0.06709963083267212,
0.1013491228222847,
-0.26160892844200134,
0.009760315530002117,
0.061944033950567245,
0.18451251089572906,
0.10329326242208481,
-0.23623238503932953,
-0.5854780673980713,
0.3226017951965332,
0.0049838838167488575,
-0.27120018005371094,
0.02113339677453041,
0.19478172063827515,
0.26559898257255554,
-0.07991722971200943,
-0.538618266582489,
-0.04617251828312874,
-0.3027785122394562,
0.021212007850408554,
-0.30668145418167114,
0.01811401918530464,
0.10550064593553543,
-0.007771607022732496,
-0.08138887584209442,
0.09916595369577408,
-0.16948311030864716,
-0.014922432601451874,
-0.07976764440536499,
0.08361562341451645,
-0.23010319471359253,
0.22554641962051392,
0.010093305259943008,
0.41757315397262573,
0.05535795912146568,
0.07089412957429886,
0.4242660105228424,
0.2432626485824585,
0.12406249344348907,
-0.35619109869003296,
-0.12050604075193405,
0.03458358347415924,
-0.24984771013259888,
-0.29617786407470703,
0.29656314849853516,
0.03902639448642731,
-0.44055718183517456,
-0.23133260011672974,
-0.035748183727264404,
-0.2201545536518097,
-0.17477203905582428,
0.07172601670026779,
-0.20131279528141022,
0.05712916702032089,
-0.048447951674461365,
0.1518862247467041,
-0.0060727475211024284,
-0.049081169068813324,
-0.006501599680632353,
0.02128099650144577,
0.09200401604175568,
-0.14816920459270477,
-0.37902525067329407,
0.09609539061784744,
-0.519119143486023,
0.11567157506942749,
-0.2607976794242859,
0.1470319777727127,
0.042012762278318405,
0.03113425523042679,
0.3150844871997833,
-0.10633189231157303,
0.6286597847938538,
0.030587468296289444,
0.12944161891937256,
0.06503687798976898,
-0.21700474619865417,
-0.4151458144187927,
0.007485616952180862,
-0.15427789092063904,
-0.08267984539270401,
0.11758750677108765,
0.5377978086471558,
-0.20964214205741882,
-0.20628154277801514,
-0.2187013030052185,
0.2994834780693054,
-0.2043037712574005,
-0.31617462635040283,
-0.21044689416885376,
-0.3497510850429535,
-0.38885459303855896,
0.19379043579101562,
0.04995167255401611,
0.34678760170936584,
0.09202570468187332,
-0.012594612315297127,
-0.0598890483379364,
0.22897577285766602,
0.20436236262321472,
0.07883749902248383,
0.2240428328514099,
0.007183493580669165,
0.3724556863307953,
-0.09220793843269348,
0.0635765790939331,
0.001374080777168274,
0.44163525104522705,
-0.17141146957874298,
-0.2881595194339752,
0.07083162665367126,
-0.08263391256332397,
0.2258850783109665,
0.4218272268772125,
0.023791998624801636,
-0.008685566484928131,
0.12579567730426788,
0.22535620629787445,
-0.2926582396030426,
0.06399679183959961,
0.27219146490097046,
0.17819277942180634,
-0.19653421640396118,
-0.6573069095611572,
0.39481663703918457,
0.20694778859615326,
0.00469304621219635,
0.05707238242030144,
-0.18480826914310455,
-0.14178691804409027,
0.6890684962272644,
0.20151595771312714,
1.0291236639022827,
-0.1868833601474762,
0.22229769825935364,
-0.036385923624038696,
0.15556658804416656,
0.25032398104667664,
-0.4073493480682373,
-0.0044396501034498215,
-0.35944586992263794,
-0.1366783231496811,
0.087859146296978,
0.0014560893177986145,
0.13261041045188904,
0.40597301721572876,
-0.14068804681301117,
0.36198678612709045,
-0.018515072762966156,
-0.3825736939907074,
-0.29777830839157104,
0.5117335915565491,
-0.3943451941013336,
-0.6922770738601685,
-0.8247360587120056,
0.16779904067516327,
-0.08104902505874634,
0.11869749426841736,
-0.09032708406448364,
0.2641168236732483,
0.21349158883094788,
-0.13828891515731812,
-0.1650550663471222,
0.12327065318822861,
-0.11688538640737534,
0.12141204625368118,
-0.3188132643699646,
-0.21663358807563782,
0.07294952869415283,
0.23183570802211761,
0.13021521270275116,
0.18927566707134247,
-0.004162438213825226,
0.48771023750305176,
-0.2195078730583191,
0.21186579763889313,
0.103378526866436,
-0.28276464343070984,
0.3081965446472168,
-0.2601314187049866,
-0.15534235537052155,
-0.20892322063446045,
-0.1640532910823822,
-0.23615433275699615,
0.3037737011909485,
0.013922985643148422,
0.1338052749633789,
0.06983993202447891,
-0.5948091149330139,
0.1890893280506134,
0.01551327109336853,
-0.2636428773403168,
0.2033051997423172,
0.24564288556575775,
-0.1535344421863556,
0.3958011865615845,
0.05968073010444641,
-0.3271471858024597,
-0.09647014737129211,
0.35155895352363586,
0.19410794973373413,
-0.1444522589445114,
0.39345696568489075,
0.3167482316493988,
-0.22433923184871674,
-0.25593292713165283,
0.13723701238632202,
-0.03058057278394699,
-0.5054115056991577,
0.27522218227386475,
0.18057556450366974,
-0.03344880789518356,
-0.0006364021683111787,
0.0063775405287742615,
0.199187234044075,
-0.14189854264259338,
-0.11744953691959381,
-0.3069978356361389,
-0.1299629807472229,
-0.08634686470031738,
0.16429196298122406,
0.08399166911840439,
0.21191227436065674,
-0.36021193861961365,
-0.07376305758953094,
0.03950372338294983,
-0.3430846631526947,
0.12339866161346436,
-0.3643565773963928,
0.019097961485385895,
-0.12973812222480774,
-0.02801527827978134,
0.26096466183662415,
-0.017678234726190567,
0.15858303010463715,
0.05047009885311127,
-0.08422717452049255,
-0.25972139835357666,
-0.1886472851037979,
0.11824708431959152,
-0.11860132962465286,
0.044776760041713715,
0.15618813037872314,
-0.3250781297683716,
-0.21722030639648438,
-0.2890644669532776,
0.03484765440225601,
0.09805648773908615,
0.010471001267433167,
-0.09390802681446075,
0.052067264914512634,
0.11792998015880585,
-0.16053670644760132,
0.0660485252737999,
-0.08707384765148163,
0.3416156768798828,
0.06509256362915039,
0.04995855689048767,
0.3554001450538635,
-0.19649258255958557,
-0.28974029421806335,
-0.17049691081047058,
0.07359164953231812,
0.3466827869415283,
0.15832790732383728,
-0.08467060327529907,
0.08966204524040222,
0.35911595821380615,
0.33620500564575195,
0.2576811909675598,
0.021613582968711853,
-0.23134854435920715,
0.0998944342136383,
0.25025779008865356,
-0.23349939286708832,
-0.29646843671798706,
-0.10219015181064606,
-0.14550870656967163,
-0.03437618538737297,
0.051074035465717316,
0.06365585327148438,
0.44993096590042114,
-0.25927460193634033,
0.08492716401815414,
0.2981089651584625,
-0.2808159589767456,
0.11062471568584442,
0.2647837698459625,
0.11842180788516998,
0.18609468638896942,
0.17249812185764313,
0.0764961689710617,
0.08823838829994202,
0.7180644273757935,
-0.1674937605857849,
0.4605650305747986,
0.19905120134353638,
0.5430529713630676,
-0.13019734621047974,
-0.29535847902297974,
0.10889382660388947,
0.22789032757282257,
-0.16386720538139343,
0.12114521116018295,
0.022961877286434174,
0.21024370193481445,
-0.27913400530815125,
-0.2531217932701111,
-0.20781002938747406,
0.07987383008003235,
-0.18579569458961487,
-0.15776191651821136,
-0.055192384868860245,
0.06859268993139267,
-0.10778692364692688,
0.3235853314399719,
-0.2514152526855469,
0.15030133724212646,
0.05855133384466171,
0.2984161972999573,
0.1284305453300476,
-0.13075381517410278,
-0.04837493598461151,
-0.23938605189323425,
0.3301280438899994,
-0.23939205706119537,
0.11045461148023605,
-0.05950191617012024,
-0.13105671107769012,
-0.15045955777168274,
0.12485672533512115,
0.24951447546482086,
0.3417235016822815,
0.08623582124710083,
0.12636573612689972,
-0.11844658851623535,
0.08924654126167297,
-0.059232961386442184,
0.22258101403713226,
0.249021977186203,
0.4293944537639618,
0.32482272386550903,
0.11821892857551575,
-0.20894041657447815,
0.0747361034154892,
-0.1469840407371521,
0.2920447289943695,
-0.29949718713760376,
0.40999636054039,
0.10201617330312729,
-0.11690109968185425,
-0.45162057876586914,
0.3559763431549072,
-0.24913755059242249,
0.06354501098394394,
0.39200595021247864,
-0.021529067307710648,
-0.07703903317451477,
-0.3009449243545532,
0.10126909613609314,
-0.041105855256319046,
0.6939356327056885,
0.27137187123298645,
-0.06893640011548996,
-0.2933212220668793,
-0.05159437283873558,
-0.7838367819786072,
-0.011073976755142212,
-0.035774704068899155,
0.29231101274490356,
0.05865092948079109,
0.33790960907936096,
0.12906019389629364,
0.25576746463775635,
-0.0540652871131897,
-0.0681862160563469,
-0.11451611667871475,
0.16030998528003693,
-0.23669768869876862,
0.04671020805835724,
-0.15647661685943604,
0.068311408162117,
-0.1357945203781128,
-0.4821784794330597,
0.13853846490383148,
-0.07249458134174347,
-0.04854549467563629,
-0.18443532288074493,
-0.1335463523864746,
0.008103352040052414,
0.1373850554227829,
0.4866030216217041,
0.03854738175868988,
0.023234836757183075,
-0.14708903431892395,
-0.05425397306680679,
0.002894274890422821,
-0.04205713048577309,
-0.06616740673780441,
0.1356504112482071,
0.08471523225307465,
0.2798967957496643,
-0.06467640399932861,
0.2580755650997162,
-0.3375316560268402,
0.2599021792411804,
-0.22949433326721191,
-0.30237504839897156,
-0.25813233852386475,
-0.11023655533790588,
0.11255932599306107,
0.006415579468011856,
0.15016131103038788,
0.3269651234149933,
0.032818783074617386,
-0.16752265393733978,
-0.3837409019470215,
-0.21133087575435638,
0.30554279685020447,
-0.013870030641555786,
-0.24952784180641174,
-0.1542963832616806,
0.20679651200771332,
0.20520904660224915,
-0.07262613624334335,
-0.5406602621078491,
0.1536535620689392,
0.1638726145029068,
0.02829763852059841,
-0.17404019832611084,
0.3224804103374481,
-0.0978933572769165,
0.04422945901751518,
-0.15905903279781342,
0.27378690242767334,
-0.12685269117355347,
-0.3126337230205536,
-0.0827789455652237,
-0.3731064200401306
] |
https://github.com/huggingface/datasets/issues/2543 | switching some low-level log.info's to log.debug? | Hi @stas00, thanks for pointing out this issue with logging.
I agree that `datasets` can sometimes be too verbose... I can create a PR and we could discuss there the choice of the log levels for different parts of the code. | In https://github.com/huggingface/transformers/pull/12276 we are now changing the examples to have `datasets` on the same log level as `transformers`, so that one setting can do a consistent logging across all involved components.
The trouble is that now we get a ton of these:
```
06/23/2021 12:15:31 - INFO - datasets.utils.filelock - Lock 139627640431136 acquired on /home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock
06/23/2021 12:15:31 - INFO - datasets.arrow_writer - Done writing 50 examples in 12280 bytes /home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.
06/23/2021 12:15:31 - INFO - datasets.arrow_dataset - Set __getitem__(key) output type to python objects for no columns (when key is int or slice) and don't output other (un-formatted) columns.
06/23/2021 12:15:31 - INFO - datasets.utils.filelock - Lock 139627640431136 released on /home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock
```
May I suggest that these can be `log.debug` as it's no informative to the user.
More examples: these are not informative - too much information:
```
06/23/2021 12:14:26 - INFO - datasets.load - Checking /home/stas/.cache/huggingface/datasets/downloads/459933f1fe47711fad2f6ff8110014ff189120b45ad159ef5b8e90ea43a174fa.e23e7d1259a8c6274a82a42a8936dd1b87225302c6dc9b7261beb3bc2daac640.py for additional imports.
06/23/2021 12:14:27 - INFO - datasets.builder - Constructing Dataset for split train, validation, test, from /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/0d9fb3e814712c785176ad8cdb9f465fbe6479000ee6546725db30ad8a8b5f8a
```
While these are:
```
06/23/2021 12:14:27 - INFO - datasets.info - Loading Dataset Infos from /home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt16/0d9fb3e814712c785176ad8cdb9f465fbe6479000ee6546725db30ad8a8b5f8a
06/23/2021 12:14:27 - WARNING - datasets.builder - Reusing dataset wmt16 (/home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/0d9fb3e814712c785176ad8cdb9f465fbe6479000ee6546725db30ad8a8b5f8a)
```
I also realize that `transformers` examples don't have do use `info` for `datasets` to let the default `warning` keep logging to less noisy.
But I think currently the log levels are slightly misused and skewed by 1 level. Many `warnings` will better be `info`s and most `info`s be `debug`.
e.g.:
```
06/23/2021 12:14:27 - WARNING - datasets.builder - Reusing dataset wmt16 (/home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/0d9fb3e814712c785176ad8cdb9f465fbe6479000ee6546725db30ad8a8b5f8a)
```
why is this a warning? it is informing me that the cache is used, there is nothing to be worried about. I'd have it as `info`.
Warnings are typically something that's bordering error or the first thing to check when things don't work as expected.
infrequent info is there to inform of the different stages or important events.
Everything else is debug.
At least the way I understand things.
| 41 | switching some low-level log.info's to log.debug?
In https://github.com/huggingface/transformers/pull/12276 we are now changing the examples to have `datasets` on the same log level as `transformers`, so that one setting can do a consistent logging across all involved components.
The trouble is that now we get a ton of these:
```
06/23/2021 12:15:31 - INFO - datasets.utils.filelock - Lock 139627640431136 acquired on /home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock
06/23/2021 12:15:31 - INFO - datasets.arrow_writer - Done writing 50 examples in 12280 bytes /home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.
06/23/2021 12:15:31 - INFO - datasets.arrow_dataset - Set __getitem__(key) output type to python objects for no columns (when key is int or slice) and don't output other (un-formatted) columns.
06/23/2021 12:15:31 - INFO - datasets.utils.filelock - Lock 139627640431136 released on /home/stas/.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow.lock
```
May I suggest that these can be `log.debug` as it's no informative to the user.
More examples: these are not informative - too much information:
```
06/23/2021 12:14:26 - INFO - datasets.load - Checking /home/stas/.cache/huggingface/datasets/downloads/459933f1fe47711fad2f6ff8110014ff189120b45ad159ef5b8e90ea43a174fa.e23e7d1259a8c6274a82a42a8936dd1b87225302c6dc9b7261beb3bc2daac640.py for additional imports.
06/23/2021 12:14:27 - INFO - datasets.builder - Constructing Dataset for split train, validation, test, from /home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/0d9fb3e814712c785176ad8cdb9f465fbe6479000ee6546725db30ad8a8b5f8a
```
While these are:
```
06/23/2021 12:14:27 - INFO - datasets.info - Loading Dataset Infos from /home/stas/.cache/huggingface/modules/datasets_modules/datasets/wmt16/0d9fb3e814712c785176ad8cdb9f465fbe6479000ee6546725db30ad8a8b5f8a
06/23/2021 12:14:27 - WARNING - datasets.builder - Reusing dataset wmt16 (/home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/0d9fb3e814712c785176ad8cdb9f465fbe6479000ee6546725db30ad8a8b5f8a)
```
I also realize that `transformers` examples don't have do use `info` for `datasets` to let the default `warning` keep logging to less noisy.
But I think currently the log levels are slightly misused and skewed by 1 level. Many `warnings` will better be `info`s and most `info`s be `debug`.
e.g.:
```
06/23/2021 12:14:27 - WARNING - datasets.builder - Reusing dataset wmt16 (/home/stas/.cache/huggingface/datasets/wmt16/ro-en/1.0.0/0d9fb3e814712c785176ad8cdb9f465fbe6479000ee6546725db30ad8a8b5f8a)
```
why is this a warning? it is informing me that the cache is used, there is nothing to be worried about. I'd have it as `info`.
Warnings are typically something that's bordering error or the first thing to check when things don't work as expected.
infrequent info is there to inform of the different stages or important events.
Everything else is debug.
At least the way I understand things.
Hi @stas00, thanks for pointing out this issue with logging.
I agree that `datasets` can sometimes be too verbose... I can create a PR and we could discuss there the choice of the log levels for different parts of the code. | [
0.17252321541309357,
-0.3411971926689148,
0.08715629577636719,
0.20244190096855164,
0.256084680557251,
0.11248704046010971,
0.5520285964012146,
0.31011223793029785,
-0.07186182588338852,
-0.301871657371521,
-0.04163724184036255,
0.17572879791259766,
-0.21787169575691223,
0.2808295488357544,
0.05038087069988251,
-0.16351911425590515,
-0.08273439854383469,
-0.011047378182411194,
-0.22705885767936707,
-0.09307301044464111,
-0.02167660742998123,
0.224550262093544,
-0.04603549465537071,
0.2822224497795105,
-0.4451551139354706,
-0.23405498266220093,
0.18678492307662964,
0.14146170020103455,
0.212688609957695,
-0.47432267665863037,
0.0037431586533784866,
-0.01644446700811386,
0.043015819042921066,
-0.029057122766971588,
-0.00012339101522229612,
0.18065841495990753,
0.39627379179000854,
-0.040211476385593414,
-0.4393553137779236,
0.09134835749864578,
-0.4999396800994873,
-0.4355221390724182,
0.2987110912799835,
-0.16709958016872406,
0.24135631322860718,
-0.6675630211830139,
0.3559740483760834,
-0.33117151260375977,
0.2211725264787674,
0.2089208960533142,
0.10229192674160004,
0.17600110173225403,
-0.37801218032836914,
0.024967050179839134,
0.4033830165863037,
0.4810088872909546,
-0.15264493227005005,
0.10702359676361084,
0.2368955761194229,
0.09213460981845856,
-0.15624380111694336,
0.3786006271839142,
0.01207677461206913,
-0.15976914763450623,
0.3421984612941742,
0.19476056098937988,
0.4285327196121216,
0.04832202196121216,
0.23846912384033203,
0.36807167530059814,
0.0961686298251152,
-0.3306325674057007,
-0.4083092212677002,
-0.6607732772827148,
0.09071023017168045,
-0.10628609359264374,
-0.09579963237047195,
-0.09717870503664017,
-0.18481004238128662,
0.2638145387172699,
-0.14934012293815613,
-0.12741003930568695,
0.03645318001508713,
-0.21275891363620758,
0.21458253264427185,
-0.08870534598827362,
-0.3330811560153961,
0.08590984344482422,
-0.08009549975395203,
-0.24736924469470978,
0.0023987223394215107,
-0.09614674746990204,
-0.19397501647472382,
-0.1913672685623169,
-0.02246662601828575,
-0.11879317462444305,
0.1438104510307312,
0.08722984045743942,
-0.05083037167787552,
0.28794074058532715,
0.03606434911489487,
0.04216235131025314,
0.21655933558940887,
-0.03433656692504883,
0.13425590097904205,
0.13074639439582825,
0.5509589910507202,
0.24410198628902435,
0.2075190395116806,
-0.008193019777536392,
0.37904834747314453,
-0.11008157581090927,
-0.07710129022598267,
-0.054614175111055374,
0.08756498992443085,
0.13993316888809204,
0.4767223000526428,
-0.2333270162343979,
-0.17095494270324707,
-0.04309171810746193,
-0.0543123297393322,
0.009957956150174141,
0.0024801893159747124,
0.21849659085273743,
0.459628164768219,
0.17078498005867004,
0.17125605046749115,
0.18594923615455627,
0.20987772941589355,
0.11480317264795303,
-0.06883126497268677,
-0.21835745871067047,
-0.15416565537452698,
0.21629810333251953,
0.035149458795785904,
-0.04203110188245773,
0.2268224060535431,
0.07318835705518723,
0.18872693181037903,
-0.11756668984889984,
0.06996840983629227,
0.2732224762439728,
0.135636106133461,
0.23525935411453247,
-0.5406376123428345,
0.247304305434227,
0.1558997929096222,
-0.3606780171394348,
-0.3538201153278351,
0.06262131780385971,
-0.10022289305925369,
-0.303018182516098,
-0.043928422033786774,
-0.021031450480222702,
-0.30158889293670654,
0.15100356936454773,
-0.031589679419994354,
0.324950635433197,
0.06783933937549591,
0.2703394293785095,
0.3980061411857605,
0.013918299227952957,
0.21479949355125427,
0.02311829850077629,
0.011435283347964287,
0.4221028685569763,
-0.03855270892381668,
-0.6235327124595642,
-0.4271846413612366,
-0.05679513141512871,
0.09832864999771118,
0.07234251499176025,
-0.03305765613913536,
0.21983230113983154,
-0.11255709081888199,
-0.05025889724493027,
0.19164395332336426,
-0.38362857699394226,
0.2618426978588104,
0.4828169643878937,
-0.2888582646846771,
0.13804419338703156,
0.44214528799057007,
0.08502824604511261,
-0.07839608937501907,
-0.07494281977415085,
0.18107739090919495,
-0.11971774697303772,
0.03373369947075844,
-0.03269968554377556,
-0.1435077041387558,
-0.37406471371650696,
-0.15177421271800995,
0.004464693367481232,
-0.06771409511566162,
0.2607997953891754,
-0.17339438199996948,
0.3144972324371338,
0.17975300550460815,
-0.11503806710243225,
0.01279158890247345,
0.07812182605266571,
0.24593091011047363,
-0.2255864292383194,
0.09055037051439285,
0.0810733214020729,
-0.5876049399375916,
0.0058917514979839325,
-0.3214452862739563,
0.04167736694216728,
-0.18735553324222565,
-0.48089420795440674,
-0.15566357970237732,
-0.14229267835617065,
0.15970037877559662,
-0.41501230001449585,
-0.019260264933109283,
0.12585604190826416,
-0.20733438432216644,
-0.19928203523159027,
-0.40696120262145996,
0.010996697470545769,
-0.09869635105133057,
0.27725180983543396,
-0.35630732774734497,
0.15482866764068604,
0.34437087178230286,
0.11469545215368271,
-0.15310731530189514,
0.07634704560041428,
0.13976065814495087,
-0.06510394811630249,
0.15485379099845886,
0.3248719274997711,
0.01796974614262581,
0.6038196682929993,
0.130650132894516,
0.41662490367889404,
0.05822940915822983,
0.0767301470041275,
0.14458522200584412,
0.07606691122055054,
-0.14952093362808228,
0.1523808240890503,
-0.06573940068483353,
0.41619473695755005,
0.06369230151176453,
0.2811015546321869,
0.01993837207555771,
0.11841253191232681,
-0.23177994787693024,
-0.1710880696773529,
-0.44850343465805054,
-0.3369158208370209,
0.15588867664337158,
-0.024338964372873306,
0.12256030738353729,
0.18303412199020386,
-0.23207685351371765,
0.13824427127838135,
0.48670580983161926,
-0.3173248767852783,
0.023993227630853653,
0.1297963261604309,
-0.2656705677509308,
0.15800699591636658,
0.23224599659442902,
0.3231041133403778,
0.286737322807312,
0.23947003483772278,
0.06873846799135208,
0.19810160994529724,
0.18020720779895782,
0.023949507623910904,
0.29092586040496826,
0.2072952687740326,
-0.09710367023944855,
0.11773382127285004,
-0.13089801371097565,
-0.1448403000831604,
0.128896564245224,
0.03788178041577339,
-0.21079328656196594,
0.013220224529504776,
-0.4229552447795868,
0.2986920177936554,
-0.28061628341674805,
-0.2747747600078583,
-0.5732246041297913,
0.16728505492210388,
-0.2866939604282379,
-0.4487179219722748,
0.1492958664894104,
-0.34644976258277893,
-0.3457980453968048,
0.31948530673980713,
-0.03447703644633293,
0.5397191643714905,
-0.10215874761343002,
0.19894269108772278,
-0.4335128664970398,
-0.06863708049058914,
-0.03414967656135559,
-0.03566193953156471,
0.13881158828735352,
0.11561048775911331,
0.061418548226356506,
-0.2835666239261627,
-0.15464681386947632,
-0.22539836168289185,
-0.3233310878276825,
0.16909512877464294,
-0.2062080055475235,
0.2027803361415863,
0.2550833821296692,
-0.022730864584445953,
0.062203772366046906,
-0.31483128666877747,
-0.11034446954727173,
-0.06736772507429123,
-0.05748051404953003,
0.0171101875603199,
-0.07260952144861221,
0.3511286973953247,
-0.28809991478919983,
-0.039990536868572235,
0.10528423637151718,
-0.3069506287574768,
0.7045112252235413,
-0.3959387540817261,
0.12198607623577118,
0.6507040858268738,
-0.20352061092853546,
0.4366978108882904,
-0.0826166644692421,
0.3348892629146576,
0.18824240565299988,
-0.05185417830944061,
0.09564578533172607,
-0.0461847186088562,
0.2713856101036072,
-0.5008630156517029,
-0.10190200805664062,
-0.2713528871536255,
-0.13915389776229858,
-0.5069952011108398,
-0.22551977634429932,
-0.4302290976047516,
-0.46043750643730164,
0.2304776906967163,
0.09097626060247421,
-0.058698028326034546,
0.17006038129329681,
-0.0421852171421051,
0.13220566511154175,
-0.27192628383636475,
0.15502136945724487,
-0.13301295042037964,
-0.008953206241130829,
0.06388092786073685,
0.13648919761180878,
0.14636562764644623,
0.4343577027320862,
0.3973277807235718,
0.005105800926685333,
-0.5073908567428589,
0.06412441283464432,
0.31718575954437256,
0.02832198515534401,
-0.24402830004692078,
-0.1385975480079651,
0.020797058939933777,
-0.36482083797454834,
-0.06746730208396912,
0.10585962235927582,
0.1766323298215866,
0.10042434930801392,
0.23104369640350342,
0.011201608926057816,
-0.4799419343471527,
0.07504391670227051,
-0.2151433527469635,
-0.11999670416116714,
-0.226141557097435,
0.38980069756507874,
-0.09578102827072144,
0.05408627539873123,
0.14183154702186584,
0.3962549567222595,
-0.033237434923648834,
-0.05897858366370201,
-0.3074733018875122,
-0.18908821046352386,
-0.5284592509269714,
0.4252340793609619,
-0.08457070589065552,
0.05482707917690277,
-0.17125530540943146,
-0.636562705039978,
0.02252335101366043,
0.29137033224105835,
-0.07312792539596558,
-0.035256944596767426,
0.06591009348630905,
0.22969767451286316,
0.03277747333049774,
-0.2901071310043335,
-0.09540572762489319,
-0.4920990765094757,
0.45128723978996277,
0.45762431621551514,
0.5969651341438293,
-0.4474858045578003,
-0.3959890902042389,
0.19128656387329102,
-0.24005912244319916,
-0.007618047297000885,
0.20112188160419464,
-0.2185288667678833,
-0.07690007239580154,
-0.1053549200296402,
-0.3052064776420593,
0.1202380433678627,
-0.0721469521522522,
-0.4518232047557831,
0.18429701030254364,
0.045441363006830215,
0.10270141810178757,
0.39308542013168335,
0.10823650658130646,
0.08259965479373932,
-0.022183258086442947,
0.059544067829847336,
0.24802739918231964,
0.19855637848377228,
0.027241751551628113,
0.569677472114563,
0.034686919301748276,
-0.3558328449726105,
0.010420812293887138,
0.09907839447259903,
0.2703758776187897,
0.635789155960083,
-0.16299337148666382,
0.37634679675102234,
0.256364643573761,
0.30628615617752075,
-0.3317089080810547,
0.15757806599140167,
0.35406970977783203,
0.22531230747699738,
-0.3683912754058838,
0.08307654410600662,
0.6284774541854858,
0.15440917015075684,
-0.18893000483512878,
0.5192849636077881,
0.561620831489563,
-0.4118131995201111,
0.26867252588272095,
-0.05771929770708084,
1.0515257120132446,
-0.07872797548770905,
0.22432249784469604,
-0.1575525999069214,
-0.48033589124679565,
0.6950420141220093,
0.2416577786207199,
0.1644829958677292,
-0.3481082022190094,
-0.16831544041633606,
0.1125306487083435,
-0.19303737580776215,
0.25048214197158813,
0.017390619963407516,
-0.2088642716407776,
-0.11951177567243576,
-0.29816460609436035,
0.21471171081066132,
-0.1959155648946762,
0.10886664688587189,
-0.2928401231765747,
-0.20476846396923065,
-0.5198536515235901,
-0.07585026323795319,
-0.031085096299648285,
0.10965859889984131,
-0.04274267703294754,
-0.1458023637533188,
-0.01223483681678772,
-0.13321933150291443,
-0.4343959093093872,
-0.43718600273132324,
0.3731708824634552,
0.01175401359796524,
0.4163283109664917,
-0.3817235231399536,
0.03034975752234459,
0.10533753782510757,
0.31783562898635864,
0.07706260681152344,
-0.08950163424015045,
-0.0941724181175232,
-0.1707300841808319,
0.1812681257724762,
0.10490959882736206,
-0.0068000927567481995,
0.2435864508152008,
0.2293706238269806,
-0.07940179109573364,
0.15514245629310608,
0.060294561088085175,
-0.1993078589439392,
0.023304849863052368,
-0.29824352264404297,
-0.39913201332092285,
-0.2535713315010071,
0.4907603859901428,
0.28580397367477417,
-0.014447920024394989,
0.026337172836065292,
0.009671404957771301,
0.11967641860246658,
-0.04780929163098335,
-0.026443906128406525,
0.1351393163204193,
-0.5101807117462158,
-0.006517719477415085,
0.20703893899917603,
-0.025047749280929565,
-0.022850103676319122,
0.28544408082962036,
-0.06485452502965927,
-0.11463641375303268,
-0.035361308604478836,
0.4134575128555298,
0.33528152108192444,
-0.4740399718284607,
0.3915543854236603,
-0.08857950568199158,
-0.2742885947227478,
-0.11221244931221008,
0.0194234736263752,
0.2273576855659485,
0.10049398243427277,
-0.3486248552799225,
0.003525547683238983,
-0.5281159281730652,
0.6595492362976074,
-0.018186047673225403,
0.33230718970298767,
-0.4016898274421692,
0.07083773612976074,
-0.14904455840587616,
-0.09034917503595352,
-0.19158577919006348,
-0.0619833841919899,
-0.28757068514823914,
0.05505099147558212,
0.03138495236635208,
-0.0612778514623642,
0.37004539370536804,
0.12348289787769318,
0.03752840310335159,
-0.22599904239177704,
-0.06902972608804703,
0.02273990958929062,
-0.07921096682548523,
0.16768699884414673,
-0.2555169463157654,
-0.2914046049118042,
0.14799551665782928,
0.013096395879983902,
0.0895100086927414,
-0.1912073791027069,
0.46581539511680603,
0.47806602716445923,
0.19950081408023834,
0.49645769596099854,
-0.3006257712841034,
0.2692778408527374,
0.007000375539064407,
-0.16029085218906403,
0.26435190439224243,
0.2556019425392151,
-0.017799900844693184,
0.1772620677947998,
-0.3485269546508789,
0.07264135777950287,
0.2780466377735138,
0.43252816796302795,
0.03825579211115837,
0.05313477665185928,
0.08974974602460861,
0.1792065054178238,
-0.23109567165374756,
0.12106490135192871,
0.08410992473363876,
0.4048546552658081,
-0.18954597413539886,
0.11147361993789673,
-0.23155221343040466,
0.027310829609632492,
0.07490824162960052,
0.11555775254964828,
-0.16324979066848755,
-0.03154350072145462,
0.005529582500457764,
0.4606436789035797,
-0.1514127552509308,
-0.18613052368164062,
0.5105669498443604,
0.027987118810415268,
-0.17617826163768768,
-0.036770112812519073,
0.3669160306453705,
0.21806006133556366,
-0.15188613533973694,
-0.0931127518415451,
0.3715486526489258,
0.11891977488994598,
0.3561658561229706,
-0.18375058472156525,
0.08929625153541565,
0.15747272968292236,
-0.3492945432662964,
0.09682642668485641,
0.16403180360794067,
-0.03518785908818245,
-0.0019462443888187408,
0.3601389527320862,
-0.3140519857406616,
0.07499615848064423,
0.07710694521665573,
0.22599098086357117,
0.07864199578762054,
0.02349029667675495,
-0.06489063799381256,
-0.2727433145046234,
-0.10090825706720352,
-0.3651103675365448,
0.35157251358032227,
-0.04304860532283783,
-0.2642074227333069,
-0.26071229577064514,
-0.032724712044000626,
-0.32777488231658936,
0.1657455563545227,
-0.19169719517230988,
-0.008770033717155457,
-0.012380162253975868,
0.09686717391014099,
0.07289864122867584,
0.6242204904556274,
-0.2267075628042221,
-0.11021130532026291,
0.21850590407848358,
0.2157108336687088,
0.4750939607620239,
0.5750281810760498,
0.43377450108528137,
0.0192057304084301,
-0.06542463600635529,
0.18292027711868286,
0.180128276348114,
0.0772901102900505,
0.14164842665195465,
0.4321020543575287,
-0.21790418028831482,
0.018550153821706772,
0.10323058068752289,
0.04759841412305832,
0.05346231162548065,
-0.12792138755321503,
-0.2434789091348648,
-0.0033830776810646057,
-0.3434661030769348,
0.7594907283782959,
-0.19949971139431,
-0.11746891587972641,
0.13082975149154663,
-0.14526507258415222,
-0.3394358158111572,
-0.5112398862838745,
0.40274032950401306,
0.14485684037208557,
0.03041783720254898,
0.07095979154109955,
0.05362457036972046,
-0.2660657465457916,
0.14133532345294952,
0.32065343856811523,
0.2523709535598755,
-0.008295412175357342,
0.06247137486934662,
-0.09554919600486755,
0.05397021397948265,
0.251924991607666,
-0.17334260046482086,
0.0429268516600132,
-0.16338053345680237,
0.1606699824333191,
0.1417630910873413,
0.14818251132965088,
-0.26564788818359375,
-0.06336577236652374,
-0.1437990665435791,
-0.2084689885377884,
-0.12320816516876221,
0.034256353974342346,
-0.10477010160684586,
0.11501464247703552,
-0.07543013989925385,
0.14052698016166687,
0.1080746203660965,
-0.11163079738616943,
-0.10779272019863129,
-0.037413276731967926,
0.2306879460811615,
0.26616817712783813,
0.205582395195961,
0.12155230343341827,
-0.15387260913848877,
0.06118900328874588,
-0.60289067029953,
-0.188850998878479,
-0.3893944025039673,
-0.16321444511413574,
0.15789972245693207,
-0.2710798680782318,
-0.0309388916939497,
-0.2790282070636749,
-0.16476130485534668,
-0.20686626434326172,
0.11502012610435486,
0.12343224883079529,
-0.17677882313728333,
-0.20392300188541412,
0.1764037162065506,
-0.21286052465438843,
-0.13818185031414032,
0.0512239970266819,
0.31761497259140015,
0.0969865545630455,
0.09997081756591797,
-0.15032236278057098,
-0.24951447546482086,
0.5768626928329468,
-0.2938458323478699,
-0.09680366516113281,
0.24877624213695526,
0.5207481384277344,
0.13780507445335388,
-0.12858815491199493,
-0.666038990020752,
-0.15484048426151276,
0.25297626852989197,
-0.3253517150878906,
0.10311922430992126,
0.003931700251996517,
-0.34821194410324097,
-0.12316106259822845,
-0.1825651377439499,
0.26631563901901245,
0.07339638471603394,
0.04313158988952637,
-0.0564294159412384,
-0.3381458520889282
] |
https://github.com/huggingface/datasets/issues/2542 | `datasets.keyhash.DuplicatedKeysError` for `drop` and `adversarial_qa/adversarialQA` | Hi @VictorSanh, thank you for reporting this issue with duplicated keys.
- The issue with "adversarial_qa" was fixed 23 days ago: #2433. Current version of `datasets` (1.8.0) includes the patch.
- I am investigating the issue with `drop`. I'll ping you to keep you informed. | ## Describe the bug
Failure to generate the datasets (`drop` and subset `adversarialQA` from `adversarial_qa`) because of duplicate keys.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("drop")
load_dataset("adversarial_qa", "adversarialQA")
```
## Expected results
The examples keys should be unique.
## Actual results
```bash
>>> load_dataset("drop")
Using custom data configuration default
Downloading and preparing dataset drop/default (download: 7.92 MiB, generated: 111.88 MiB, post-processed: Unknown size, total: 119.80 MiB) to /home/hf/.cache/huggingface/datasets/drop/default/0.1.0/7a94f1e2bb26c4b5c75f89857c06982967d7416e5af935a9374b9bccf5068026...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/load.py", line 751, in load_dataset
use_auth_token=use_auth_token,
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 992, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/arrow_writer.py", line 409, in finalize
self.check_duplicate_keys()
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 28553293-d719-441b-8f00-ce3dc6df5398
Keys should be unique and deterministic in nature
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.7.0
- Platform: Linux-5.4.0-1044-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 45 | `datasets.keyhash.DuplicatedKeysError` for `drop` and `adversarial_qa/adversarialQA`
## Describe the bug
Failure to generate the datasets (`drop` and subset `adversarialQA` from `adversarial_qa`) because of duplicate keys.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("drop")
load_dataset("adversarial_qa", "adversarialQA")
```
## Expected results
The examples keys should be unique.
## Actual results
```bash
>>> load_dataset("drop")
Using custom data configuration default
Downloading and preparing dataset drop/default (download: 7.92 MiB, generated: 111.88 MiB, post-processed: Unknown size, total: 119.80 MiB) to /home/hf/.cache/huggingface/datasets/drop/default/0.1.0/7a94f1e2bb26c4b5c75f89857c06982967d7416e5af935a9374b9bccf5068026...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/load.py", line 751, in load_dataset
use_auth_token=use_auth_token,
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 992, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/arrow_writer.py", line 409, in finalize
self.check_duplicate_keys()
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 28553293-d719-441b-8f00-ce3dc6df5398
Keys should be unique and deterministic in nature
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.7.0
- Platform: Linux-5.4.0-1044-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyArrow version: 3.0.0
Hi @VictorSanh, thank you for reporting this issue with duplicated keys.
- The issue with "adversarial_qa" was fixed 23 days ago: #2433. Current version of `datasets` (1.8.0) includes the patch.
- I am investigating the issue with `drop`. I'll ping you to keep you informed. | [
-0.09050896763801575,
-0.11600708961486816,
0.009455163031816483,
0.470907986164093,
0.08408747613430023,
0.028658390045166016,
0.302809476852417,
0.2397654801607132,
0.1277972161769867,
0.1814354658126831,
-0.14392128586769104,
0.5057471990585327,
-0.04829563945531845,
0.11989326030015945,
0.026669833809137344,
-0.03278502821922302,
0.0012848228216171265,
0.013672001659870148,
-0.29827961325645447,
-0.07621048390865326,
-0.24264025688171387,
0.3870503604412079,
-0.2559150159358978,
0.1033533588051796,
0.05984063073992729,
-0.1042754128575325,
-0.15724697709083557,
0.3131025433540344,
-0.043366871774196625,
-0.2897949516773224,
0.14072465896606445,
0.011254781857132912,
-0.2836563289165497,
0.4620529115200043,
-0.00010877361637540162,
-0.017960261553525925,
0.13475915789604187,
0.06381101161241531,
-0.43846479058265686,
-0.15688695013523102,
-0.2514856159687042,
-0.051559410989284515,
-0.08784857392311096,
-0.2769972085952759,
0.1303327977657318,
-0.20240236818790436,
-0.31931373476982117,
-0.3765532672405243,
0.7059345841407776,
0.09643034636974335,
0.25845402479171753,
0.29944345355033875,
0.057867471128702164,
-0.26536381244659424,
0.19034364819526672,
0.03764528036117554,
-0.19947919249534607,
0.20626290142536163,
-0.014755867421627045,
-0.06700889766216278,
0.35418564081192017,
0.16036827862262726,
-0.014584986492991447,
-0.050639618188142776,
0.20403501391410828,
0.06789504736661911,
0.012983057647943497,
-0.16960777342319489,
0.34044119715690613,
0.3239116668701172,
0.24727869033813477,
-0.5006285309791565,
-0.2000303417444229,
-0.28008323907852173,
0.28446659445762634,
-0.08955412358045578,
0.19836421310901642,
0.04119611158967018,
-0.24880792200565338,
0.1426333487033844,
0.0665472224354744,
0.13136297464370728,
0.05874656140804291,
-0.0792369395494461,
0.15524877607822418,
-0.000644385814666748,
0.04973199963569641,
0.08948950469493866,
0.15734350681304932,
-0.1723116785287857,
-0.018509767949581146,
-0.3647032380104065,
0.01996793784201145,
-0.12551450729370117,
-0.5385660529136658,
0.01297721266746521,
-0.06292799860239029,
0.025669198483228683,
0.4364517629146576,
0.07410283386707306,
0.22148732841014862,
-0.09840678423643112,
-0.04824788495898247,
0.0024115554988384247,
0.03990442305803299,
0.3961123824119568,
0.17628885805606842,
0.09121062606573105,
0.15046781301498413,
0.19072040915489197,
-0.2307087481021881,
0.16412970423698425,
0.05689919367432594,
-0.14097894728183746,
0.286346971988678,
0.15518808364868164,
0.6009868383407593,
-0.06930528581142426,
-0.42481154203414917,
0.20331676304340363,
-0.16763260960578918,
-0.12456661462783813,
-0.23273125290870667,
0.11765395849943161,
0.09356753528118134,
-0.021901439875364304,
-0.12567797303199768,
0.20161691308021545,
-0.3297657072544098,
-0.17483100295066833,
-0.26098692417144775,
-0.012509196996688843,
-0.008571956306695938,
-0.07222950458526611,
0.08384180068969727,
-0.18119724094867706,
0.2779163122177124,
0.30875590443611145,
-0.004612140357494354,
-0.13791464269161224,
0.2745800018310547,
0.09290963411331177,
-0.2666788101196289,
0.0398334339261055,
0.1705010086297989,
0.06689686328172684,
0.18792952597141266,
-0.36020219326019287,
0.06002820283174515,
0.11222167313098907,
-0.028951838612556458,
-0.1286870241165161,
-0.11769109964370728,
0.315814346075058,
0.02569306269288063,
0.09723198413848877,
-0.17660629749298096,
0.14941227436065674,
0.11193031072616577,
0.09068097174167633,
-0.00440254807472229,
0.0390724316239357,
-0.15988941490650177,
-0.4287463426589966,
0.2847687005996704,
0.7104179859161377,
-0.3256118595600128,
-0.13195237517356873,
-0.14312028884887695,
0.030179638415575027,
0.1442251205444336,
0.22938255965709686,
-0.17597943544387817,
0.20838063955307007,
-0.3001040816307068,
0.11739210784435272,
0.08310418576002121,
-0.34288591146469116,
-0.49173370003700256,
0.29088059067726135,
-0.35439032316207886,
0.1900271475315094,
0.17368558049201965,
-0.05516776442527771,
0.21537047624588013,
-0.0025119795463979244,
0.011651501059532166,
-0.016548682004213333,
-0.09076061099767685,
-0.13531062006950378,
-0.31015053391456604,
-0.33662402629852295,
0.17491360008716583,
-0.2637752294540405,
0.028483618050813675,
0.06559836864471436,
0.35739102959632874,
-0.07049760222434998,
0.28687164187431335,
-0.06102445349097252,
0.04678957909345627,
0.08632966876029968,
0.25373461842536926,
-0.06032802164554596,
0.22050845623016357,
-0.019394073635339737,
-0.5272822380065918,
0.38901740312576294,
-0.28561797738075256,
0.038964468985795975,
-0.1500827670097351,
-0.2936636805534363,
-0.5489758849143982,
0.05413852632045746,
-0.45720377564430237,
-0.2501843273639679,
0.2487703561782837,
0.19140997529029846,
-0.02845756895840168,
0.1142122894525528,
-0.06473438441753387,
0.22202637791633606,
0.0449393168091774,
0.04901503026485443,
-0.4242560863494873,
0.2599347233772278,
-0.3817818760871887,
0.05268178507685661,
0.08389696478843689,
0.21358048915863037,
0.41540879011154175,
-0.05321955308318138,
-0.12521010637283325,
0.392985075712204,
-0.03628552705049515,
0.015139386057853699,
0.20108792185783386,
-0.139054074883461,
0.21224017441272736,
-0.13536465167999268,
0.2662815749645233,
0.10705940425395966,
0.18308407068252563,
-0.13982442021369934,
-0.012120142579078674,
0.276181161403656,
-0.18503780663013458,
0.15243849158287048,
-0.05690856650471687,
-0.005315487273037434,
0.13712672889232635,
-0.23017257452011108,
0.15110400319099426,
-0.21829098463058472,
0.07417745888233185,
-0.10675755143165588,
0.17586977779865265,
-0.03250567615032196,
-0.14562973380088806,
0.17780792713165283,
0.18344806134700775,
-0.15427397191524506,
0.17180845141410828,
-0.047923386096954346,
0.03277906775474548,
-0.0946386530995369,
0.025891942903399467,
0.5896530747413635,
0.6832950711250305,
0.18402768671512604,
0.09309852123260498,
0.18257704377174377,
0.010152123868465424,
-0.17365248501300812,
0.40181440114974976,
-0.23067720234394073,
-0.18794667720794678,
0.3399558663368225,
0.1338033825159073,
0.09127599000930786,
-0.3779129683971405,
-0.0704190731048584,
0.13940773904323578,
0.22343705594539642,
-0.25765684247016907,
-0.013611754402518272,
-0.4151097536087036,
-0.043358493596315384,
-0.14741507172584534,
0.25531136989593506,
-0.01633143424987793,
-0.3288874626159668,
0.10039790719747543,
-0.17009975016117096,
0.037806373089551926,
0.28275373578071594,
-0.08029760420322418,
0.21931792795658112,
-0.0255130622535944,
0.3116757273674011,
-0.17848262190818787,
0.06612200289964676,
-0.2623886466026306,
0.12386365234851837,
0.08686532080173492,
0.13113011419773102,
0.44071322679519653,
-0.14069892466068268,
-0.31827032566070557,
-0.3026193678379059,
-0.2035527229309082,
0.13791057467460632,
-0.01049935445189476,
0.3564636707305908,
0.3850199580192566,
0.018612325191497803,
-0.19298191368579865,
-0.35720282793045044,
0.25554895401000977,
-0.09539662301540375,
-0.45416373014450073,
0.08962591737508774,
-0.09871243685483932,
0.03087697923183441,
-0.19220122694969177,
-0.5104907751083374,
-0.17263536155223846,
-0.2520098388195038,
0.07736147940158844,
-0.14388306438922882,
0.1406254917383194,
0.33112213015556335,
-0.03031143546104431,
0.14079833030700684,
0.026043010875582695,
0.09881395846605301,
-0.4347648024559021,
-0.18414629995822906,
0.060204699635505676,
-0.27621886134147644,
-0.297478586435318,
-0.016933288425207138,
-0.12270311266183853,
0.31571337580680847,
-0.1157890036702156,
-0.4564085602760315,
-0.30707818269729614,
-0.2492566555738449,
0.3409290611743927,
-0.18406975269317627,
0.28685691952705383,
0.16756945848464966,
0.14749793708324432,
-0.14265649020671844,
-0.24167200922966003,
-0.053877945989370346,
0.28043654561042786,
-0.2117317020893097,
0.040080226957798004,
0.15095101296901703,
0.5182061195373535,
0.07246729731559753,
0.6133498549461365,
0.5002935528755188,
0.0882740318775177,
0.2791174650192261,
-0.09282223135232925,
0.28917017579078674,
-0.17085137963294983,
-0.47795283794403076,
-0.2943904399871826,
0.16616982221603394,
0.20613285899162292,
0.226742684841156,
-0.13078215718269348,
0.12601491808891296,
0.09188017249107361,
-0.09142595529556274,
-0.4983179569244385,
-0.2809930145740509,
-0.25842511653900146,
-0.20793625712394714,
0.059416718780994415,
0.05599020794034004,
0.09443079680204391,
-0.058903977274894714,
0.15206995606422424,
0.1882861852645874,
0.15231235325336456,
0.02500537782907486,
0.023690342903137207,
-0.3282143473625183,
0.029118547216057777,
-0.4109382927417755,
0.22507937252521515,
-0.2089012712240219,
0.3213146924972534,
-0.11749543994665146,
0.12020618468523026,
0.02780947834253311,
-0.010815555229783058,
0.6370671987533569,
-0.36702266335487366,
0.1646801233291626,
0.08423121273517609,
-0.15883809328079224,
-0.12118325382471085,
-0.030156759545207024,
-0.013596843928098679,
0.11489159613847733,
-0.031583331525325775,
0.22851473093032837,
-0.5454476475715637,
0.13114669919013977,
0.2034052163362503,
0.2716740369796753,
-0.17419375479221344,
-0.23948608338832855,
-0.038750529289245605,
-0.49272698163986206,
-0.4985881745815277,
-0.14774367213249207,
0.011749671772122383,
0.2282518744468689,
-0.1652650386095047,
-0.0506201907992363,
0.015709733590483665,
-0.17145755887031555,
0.17753642797470093,
0.1479468047618866,
0.2621711194515228,
0.21577908098697662,
0.6348119378089905,
0.13568006455898285,
-0.15211427211761475,
0.16173957288265228,
0.6787915229797363,
-0.15736918151378632,
-0.2183038592338562,
-0.2806074321269989,
-0.1729326844215393,
-0.22477364540100098,
0.27547258138656616,
-0.14847531914710999,
0.3007209897041321,
-0.1415908932685852,
0.020461197942495346,
0.21394158899784088,
-0.3148278295993805,
0.20353169739246368,
-0.16996708512306213,
0.00893579050898552,
-0.35343194007873535,
0.015711799263954163,
-0.058618057519197464,
-0.2973247170448303,
0.16949260234832764,
0.14233991503715515,
-0.22120998799800873,
0.366132915019989,
-0.19166532158851624,
0.8777391910552979,
-0.06577430665493011,
0.00923524796962738,
0.16281968355178833,
-0.2247970998287201,
0.3618401288986206,
0.09007756412029266,
-0.16404230892658234,
-0.4612332880496979,
-0.30056047439575195,
0.15818722546100616,
0.05173242464661598,
0.1566578596830368,
0.10958544909954071,
-0.29953649640083313,
0.20863895118236542,
-0.1181924045085907,
0.09699222445487976,
-0.04756622761487961,
0.2875967025756836,
-0.2880070209503174,
0.07010506838560104,
-0.11887036263942719,
0.14614950120449066,
0.06944257020950317,
0.049490995705127716,
0.04896356165409088,
-0.11717894673347473,
0.198866605758667,
-0.48689788579940796,
-0.20589953660964966,
0.03362584114074707,
-0.3923666477203369,
0.32864296436309814,
-0.11808575689792633,
-0.33705729246139526,
0.20586109161376953,
0.43076369166374207,
0.46229857206344604,
0.248250812292099,
0.01875806227326393,
0.05462858825922012,
-0.00700049102306366,
0.2869396209716797,
-0.1258174031972885,
-0.23437267541885376,
-0.011666132137179375,
-0.11056008189916611,
-0.35480162501335144,
-0.10906893759965897,
0.15375137329101562,
-0.08207866549491882,
-0.24886226654052734,
0.11522720754146576,
-0.0675453394651413,
-0.1246662512421608,
0.023434137925505638,
-0.14110954105854034,
-0.1776534616947174,
-0.4434710741043091,
0.13038648664951324,
0.1312360316514969,
-0.1754397749900818,
0.22193649411201477,
-0.18838152289390564,
-0.15587612986564636,
-0.04159705713391304,
0.3397011160850525,
0.1883186399936676,
0.24744173884391785,
0.5482300519943237,
0.05515582486987114,
0.042593829333782196,
-0.25317510962486267,
-0.007690388709306717,
0.040628835558891296,
-0.4769051969051361,
0.19151483476161957,
-0.26403945684432983,
0.14428596198558807,
0.10886894166469574,
0.3577146828174591,
0.2171233743429184,
0.13662533462047577,
0.16879864037036896,
-0.30376431345939636,
-0.12698684632778168,
0.0299508199095726,
0.19083312153816223,
0.21747377514839172,
0.17312341928482056,
-0.019191693514585495,
-0.1452845335006714,
0.32744744420051575,
-0.3689517080783844,
0.23783811926841736,
-0.0046649836003780365,
-0.010238587856292725,
0.0007050223648548126,
-0.1199512705206871,
0.039676062762737274,
0.11998620629310608,
0.20290976762771606,
0.22615334391593933,
-0.055935539305210114,
-0.26797306537628174,
-0.2521987855434418,
0.13160161674022675,
-0.2184978723526001,
-0.1682138592004776,
-0.06940250843763351,
-0.23646050691604614,
-0.05867299064993858,
-0.08391810208559036,
0.4266136884689331,
0.13718369603157043,
0.002995312213897705,
0.157878115773201,
0.15296697616577148,
0.14564649760723114,
-0.16317963600158691,
0.1880170851945877,
-0.269066721200943,
0.016334168612957,
0.14150027930736542,
0.09483508765697479,
-0.01895042695105076,
-0.17155206203460693,
-0.33726775646209717,
0.08269497752189636,
-0.05604875087738037,
0.17796573042869568,
0.27852216362953186,
-0.20525191724300385,
-0.26470839977264404,
0.42968642711639404,
0.29742881655693054,
0.09966807812452316,
-0.19868715107440948,
0.0050998833030462265,
0.03359590470790863,
0.27050521969795227,
-0.3992033898830414,
-0.43699347972869873,
0.17191742360591888,
-0.13999684154987335,
0.11391392350196838,
0.3059452474117279,
0.225458025932312,
-0.3515104055404663,
-0.2786741256713867,
0.11731921881437302,
0.3834753632545471,
-0.08047915250062943,
0.2226235568523407,
0.44858518242836,
-0.08547026664018631,
-0.07634763419628143,
0.02651626244187355,
-0.12295888364315033,
-0.026120401918888092,
0.327057421207428,
-0.2358086109161377,
0.3113100826740265,
-0.13896873593330383,
0.0790473148226738,
0.2696991562843323,
-0.3729180097579956,
0.4485183656215668,
0.13819336891174316,
-0.25259485840797424,
0.022935770452022552,
0.1536451131105423,
0.1603439301252365,
-0.08752737194299698,
0.08047372102737427,
-0.21754413843154907,
0.10587109625339508,
-0.1773344874382019,
-0.03966626524925232,
-0.18827182054519653,
-0.25918328762054443,
-0.18296536803245544,
-0.09380782395601273,
-0.012098029255867004,
-0.1587507128715515,
0.35714638233184814,
-0.06538507342338562,
-0.2649562954902649,
-0.29933086037635803,
0.04473816975951195,
0.295560359954834,
0.1373048722743988,
-0.42454400658607483,
0.006730411201715469,
0.5594315528869629,
-0.08068189024925232,
-0.07908007502555847,
0.2808081805706024,
0.5457735061645508,
0.12703198194503784,
-0.08278511464595795,
0.1383129358291626,
0.19294096529483795,
-0.06373735517263412,
-0.1260761022567749,
0.2143983542919159,
-0.01731431484222412,
0.17054636776447296,
0.2234160602092743,
0.15142568945884705,
-0.21100492775440216,
-0.2321828156709671,
0.45590752363204956,
-0.14533115923404694,
-0.36355775594711304,
0.19208753108978271,
-0.23784002661705017,
-0.03235700726509094,
-0.0969725102186203,
0.36510398983955383,
-0.2949548363685608,
-0.19430625438690186,
0.1872399002313614,
0.23472155630588531,
0.14087113738059998,
-0.4275599718093872,
0.1380084902048111,
-0.1543762981891632,
0.1261259764432907,
0.24674031138420105,
-0.1832292079925537,
-0.3851374089717865,
-0.015749938786029816,
-0.7335858345031738,
0.20096634328365326,
-0.150407075881958,
-0.0707663893699646,
0.07067669183015823,
0.2328770011663437,
-0.013510152697563171,
0.07429398596286774,
0.23220166563987732,
0.22830235958099365,
-0.0936851054430008,
0.4965480864048004,
-0.4009827673435211,
-0.22507454454898834,
0.11375010013580322,
-0.12369854748249054,
0.09055038541555405,
-0.43166106939315796,
0.26439183950424194,
-0.015029652044177055,
0.08417949825525284,
-0.05555360019207001,
0.0026560723781585693,
0.32953161001205444,
-0.23907878994941711,
0.247980996966362,
0.30157139897346497,
0.4559423327445984,
-0.11074322462081909,
-0.28018462657928467,
0.01290535181760788,
-0.036863360553979874,
-0.04112653061747551,
0.28016915917396545,
0.32171866297721863,
0.25563809275627136,
0.10584656149148941,
-0.2885216176509857,
-0.22451941668987274,
0.33878403902053833,
0.21528799831867218,
0.04287122189998627,
-0.3165065348148346,
0.40415042638778687,
-0.044599100947380066,
0.052678849548101425,
0.13927729427814484,
0.32261812686920166,
-0.01963966339826584,
0.27456480264663696,
-0.3327927589416504,
-0.6344323754310608,
0.3417712450027466,
-0.3225769102573395,
-0.17968574166297913,
-0.27400943636894226,
0.3677447736263275,
-0.08316294103860855,
-0.1276748776435852,
-0.2130843997001648,
0.13975414633750916,
0.4295464754104614,
-0.24910101294517517,
0.06518591940402985,
0.36386263370513916,
-0.06338632106781006,
0.12496063113212585,
0.20453587174415588,
0.14474010467529297,
0.12418340891599655,
-0.23645034432411194,
0.5228366255760193,
-0.16280221939086914
] |
https://github.com/huggingface/datasets/issues/2542 | `datasets.keyhash.DuplicatedKeysError` for `drop` and `adversarial_qa/adversarialQA` | Hi @VictorSanh, the issue is already fixed and merged into master branch and will be included in our next release version 1.9.0. | ## Describe the bug
Failure to generate the datasets (`drop` and subset `adversarialQA` from `adversarial_qa`) because of duplicate keys.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("drop")
load_dataset("adversarial_qa", "adversarialQA")
```
## Expected results
The examples keys should be unique.
## Actual results
```bash
>>> load_dataset("drop")
Using custom data configuration default
Downloading and preparing dataset drop/default (download: 7.92 MiB, generated: 111.88 MiB, post-processed: Unknown size, total: 119.80 MiB) to /home/hf/.cache/huggingface/datasets/drop/default/0.1.0/7a94f1e2bb26c4b5c75f89857c06982967d7416e5af935a9374b9bccf5068026...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/load.py", line 751, in load_dataset
use_auth_token=use_auth_token,
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 992, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/arrow_writer.py", line 409, in finalize
self.check_duplicate_keys()
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 28553293-d719-441b-8f00-ce3dc6df5398
Keys should be unique and deterministic in nature
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.7.0
- Platform: Linux-5.4.0-1044-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 22 | `datasets.keyhash.DuplicatedKeysError` for `drop` and `adversarial_qa/adversarialQA`
## Describe the bug
Failure to generate the datasets (`drop` and subset `adversarialQA` from `adversarial_qa`) because of duplicate keys.
## Steps to reproduce the bug
```python
from datasets import load_dataset
load_dataset("drop")
load_dataset("adversarial_qa", "adversarialQA")
```
## Expected results
The examples keys should be unique.
## Actual results
```bash
>>> load_dataset("drop")
Using custom data configuration default
Downloading and preparing dataset drop/default (download: 7.92 MiB, generated: 111.88 MiB, post-processed: Unknown size, total: 119.80 MiB) to /home/hf/.cache/huggingface/datasets/drop/default/0.1.0/7a94f1e2bb26c4b5c75f89857c06982967d7416e5af935a9374b9bccf5068026...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/load.py", line 751, in load_dataset
use_auth_token=use_auth_token,
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/builder.py", line 992, in _prepare_split
num_examples, num_bytes = writer.finalize()
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/arrow_writer.py", line 409, in finalize
self.check_duplicate_keys()
File "/home/hf/dev/promptsource/.venv/lib/python3.7/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys
raise DuplicatedKeysError(key)
datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 28553293-d719-441b-8f00-ce3dc6df5398
Keys should be unique and deterministic in nature
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.7.0
- Platform: Linux-5.4.0-1044-gcp-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyArrow version: 3.0.0
Hi @VictorSanh, the issue is already fixed and merged into master branch and will be included in our next release version 1.9.0. | [
-0.09050896763801575,
-0.11600708961486816,
0.009455163031816483,
0.470907986164093,
0.08408747613430023,
0.028658390045166016,
0.302809476852417,
0.2397654801607132,
0.1277972161769867,
0.1814354658126831,
-0.14392128586769104,
0.5057471990585327,
-0.04829563945531845,
0.11989326030015945,
0.026669833809137344,
-0.03278502821922302,
0.0012848228216171265,
0.013672001659870148,
-0.29827961325645447,
-0.07621048390865326,
-0.24264025688171387,
0.3870503604412079,
-0.2559150159358978,
0.1033533588051796,
0.05984063073992729,
-0.1042754128575325,
-0.15724697709083557,
0.3131025433540344,
-0.043366871774196625,
-0.2897949516773224,
0.14072465896606445,
0.011254781857132912,
-0.2836563289165497,
0.4620529115200043,
-0.00010877361637540162,
-0.017960261553525925,
0.13475915789604187,
0.06381101161241531,
-0.43846479058265686,
-0.15688695013523102,
-0.2514856159687042,
-0.051559410989284515,
-0.08784857392311096,
-0.2769972085952759,
0.1303327977657318,
-0.20240236818790436,
-0.31931373476982117,
-0.3765532672405243,
0.7059345841407776,
0.09643034636974335,
0.25845402479171753,
0.29944345355033875,
0.057867471128702164,
-0.26536381244659424,
0.19034364819526672,
0.03764528036117554,
-0.19947919249534607,
0.20626290142536163,
-0.014755867421627045,
-0.06700889766216278,
0.35418564081192017,
0.16036827862262726,
-0.014584986492991447,
-0.050639618188142776,
0.20403501391410828,
0.06789504736661911,
0.012983057647943497,
-0.16960777342319489,
0.34044119715690613,
0.3239116668701172,
0.24727869033813477,
-0.5006285309791565,
-0.2000303417444229,
-0.28008323907852173,
0.28446659445762634,
-0.08955412358045578,
0.19836421310901642,
0.04119611158967018,
-0.24880792200565338,
0.1426333487033844,
0.0665472224354744,
0.13136297464370728,
0.05874656140804291,
-0.0792369395494461,
0.15524877607822418,
-0.000644385814666748,
0.04973199963569641,
0.08948950469493866,
0.15734350681304932,
-0.1723116785287857,
-0.018509767949581146,
-0.3647032380104065,
0.01996793784201145,
-0.12551450729370117,
-0.5385660529136658,
0.01297721266746521,
-0.06292799860239029,
0.025669198483228683,
0.4364517629146576,
0.07410283386707306,
0.22148732841014862,
-0.09840678423643112,
-0.04824788495898247,
0.0024115554988384247,
0.03990442305803299,
0.3961123824119568,
0.17628885805606842,
0.09121062606573105,
0.15046781301498413,
0.19072040915489197,
-0.2307087481021881,
0.16412970423698425,
0.05689919367432594,
-0.14097894728183746,
0.286346971988678,
0.15518808364868164,
0.6009868383407593,
-0.06930528581142426,
-0.42481154203414917,
0.20331676304340363,
-0.16763260960578918,
-0.12456661462783813,
-0.23273125290870667,
0.11765395849943161,
0.09356753528118134,
-0.021901439875364304,
-0.12567797303199768,
0.20161691308021545,
-0.3297657072544098,
-0.17483100295066833,
-0.26098692417144775,
-0.012509196996688843,
-0.008571956306695938,
-0.07222950458526611,
0.08384180068969727,
-0.18119724094867706,
0.2779163122177124,
0.30875590443611145,
-0.004612140357494354,
-0.13791464269161224,
0.2745800018310547,
0.09290963411331177,
-0.2666788101196289,
0.0398334339261055,
0.1705010086297989,
0.06689686328172684,
0.18792952597141266,
-0.36020219326019287,
0.06002820283174515,
0.11222167313098907,
-0.028951838612556458,
-0.1286870241165161,
-0.11769109964370728,
0.315814346075058,
0.02569306269288063,
0.09723198413848877,
-0.17660629749298096,
0.14941227436065674,
0.11193031072616577,
0.09068097174167633,
-0.00440254807472229,
0.0390724316239357,
-0.15988941490650177,
-0.4287463426589966,
0.2847687005996704,
0.7104179859161377,
-0.3256118595600128,
-0.13195237517356873,
-0.14312028884887695,
0.030179638415575027,
0.1442251205444336,
0.22938255965709686,
-0.17597943544387817,
0.20838063955307007,
-0.3001040816307068,
0.11739210784435272,
0.08310418576002121,
-0.34288591146469116,
-0.49173370003700256,
0.29088059067726135,
-0.35439032316207886,
0.1900271475315094,
0.17368558049201965,
-0.05516776442527771,
0.21537047624588013,
-0.0025119795463979244,
0.011651501059532166,
-0.016548682004213333,
-0.09076061099767685,
-0.13531062006950378,
-0.31015053391456604,
-0.33662402629852295,
0.17491360008716583,
-0.2637752294540405,
0.028483618050813675,
0.06559836864471436,
0.35739102959632874,
-0.07049760222434998,
0.28687164187431335,
-0.06102445349097252,
0.04678957909345627,
0.08632966876029968,
0.25373461842536926,
-0.06032802164554596,
0.22050845623016357,
-0.019394073635339737,
-0.5272822380065918,
0.38901740312576294,
-0.28561797738075256,
0.038964468985795975,
-0.1500827670097351,
-0.2936636805534363,
-0.5489758849143982,
0.05413852632045746,
-0.45720377564430237,
-0.2501843273639679,
0.2487703561782837,
0.19140997529029846,
-0.02845756895840168,
0.1142122894525528,
-0.06473438441753387,
0.22202637791633606,
0.0449393168091774,
0.04901503026485443,
-0.4242560863494873,
0.2599347233772278,
-0.3817818760871887,
0.05268178507685661,
0.08389696478843689,
0.21358048915863037,
0.41540879011154175,
-0.05321955308318138,
-0.12521010637283325,
0.392985075712204,
-0.03628552705049515,
0.015139386057853699,
0.20108792185783386,
-0.139054074883461,
0.21224017441272736,
-0.13536465167999268,
0.2662815749645233,
0.10705940425395966,
0.18308407068252563,
-0.13982442021369934,
-0.012120142579078674,
0.276181161403656,
-0.18503780663013458,
0.15243849158287048,
-0.05690856650471687,
-0.005315487273037434,
0.13712672889232635,
-0.23017257452011108,
0.15110400319099426,
-0.21829098463058472,
0.07417745888233185,
-0.10675755143165588,
0.17586977779865265,
-0.03250567615032196,
-0.14562973380088806,
0.17780792713165283,
0.18344806134700775,
-0.15427397191524506,
0.17180845141410828,
-0.047923386096954346,
0.03277906775474548,
-0.0946386530995369,
0.025891942903399467,
0.5896530747413635,
0.6832950711250305,
0.18402768671512604,
0.09309852123260498,
0.18257704377174377,
0.010152123868465424,
-0.17365248501300812,
0.40181440114974976,
-0.23067720234394073,
-0.18794667720794678,
0.3399558663368225,
0.1338033825159073,
0.09127599000930786,
-0.3779129683971405,
-0.0704190731048584,
0.13940773904323578,
0.22343705594539642,
-0.25765684247016907,
-0.013611754402518272,
-0.4151097536087036,
-0.043358493596315384,
-0.14741507172584534,
0.25531136989593506,
-0.01633143424987793,
-0.3288874626159668,
0.10039790719747543,
-0.17009975016117096,
0.037806373089551926,
0.28275373578071594,
-0.08029760420322418,
0.21931792795658112,
-0.0255130622535944,
0.3116757273674011,
-0.17848262190818787,
0.06612200289964676,
-0.2623886466026306,
0.12386365234851837,
0.08686532080173492,
0.13113011419773102,
0.44071322679519653,
-0.14069892466068268,
-0.31827032566070557,
-0.3026193678379059,
-0.2035527229309082,
0.13791057467460632,
-0.01049935445189476,
0.3564636707305908,
0.3850199580192566,
0.018612325191497803,
-0.19298191368579865,
-0.35720282793045044,
0.25554895401000977,
-0.09539662301540375,
-0.45416373014450073,
0.08962591737508774,
-0.09871243685483932,
0.03087697923183441,
-0.19220122694969177,
-0.5104907751083374,
-0.17263536155223846,
-0.2520098388195038,
0.07736147940158844,
-0.14388306438922882,
0.1406254917383194,
0.33112213015556335,
-0.03031143546104431,
0.14079833030700684,
0.026043010875582695,
0.09881395846605301,
-0.4347648024559021,
-0.18414629995822906,
0.060204699635505676,
-0.27621886134147644,
-0.297478586435318,
-0.016933288425207138,
-0.12270311266183853,
0.31571337580680847,
-0.1157890036702156,
-0.4564085602760315,
-0.30707818269729614,
-0.2492566555738449,
0.3409290611743927,
-0.18406975269317627,
0.28685691952705383,
0.16756945848464966,
0.14749793708324432,
-0.14265649020671844,
-0.24167200922966003,
-0.053877945989370346,
0.28043654561042786,
-0.2117317020893097,
0.040080226957798004,
0.15095101296901703,
0.5182061195373535,
0.07246729731559753,
0.6133498549461365,
0.5002935528755188,
0.0882740318775177,
0.2791174650192261,
-0.09282223135232925,
0.28917017579078674,
-0.17085137963294983,
-0.47795283794403076,
-0.2943904399871826,
0.16616982221603394,
0.20613285899162292,
0.226742684841156,
-0.13078215718269348,
0.12601491808891296,
0.09188017249107361,
-0.09142595529556274,
-0.4983179569244385,
-0.2809930145740509,
-0.25842511653900146,
-0.20793625712394714,
0.059416718780994415,
0.05599020794034004,
0.09443079680204391,
-0.058903977274894714,
0.15206995606422424,
0.1882861852645874,
0.15231235325336456,
0.02500537782907486,
0.023690342903137207,
-0.3282143473625183,
0.029118547216057777,
-0.4109382927417755,
0.22507937252521515,
-0.2089012712240219,
0.3213146924972534,
-0.11749543994665146,
0.12020618468523026,
0.02780947834253311,
-0.010815555229783058,
0.6370671987533569,
-0.36702266335487366,
0.1646801233291626,
0.08423121273517609,
-0.15883809328079224,
-0.12118325382471085,
-0.030156759545207024,
-0.013596843928098679,
0.11489159613847733,
-0.031583331525325775,
0.22851473093032837,
-0.5454476475715637,
0.13114669919013977,
0.2034052163362503,
0.2716740369796753,
-0.17419375479221344,
-0.23948608338832855,
-0.038750529289245605,
-0.49272698163986206,
-0.4985881745815277,
-0.14774367213249207,
0.011749671772122383,
0.2282518744468689,
-0.1652650386095047,
-0.0506201907992363,
0.015709733590483665,
-0.17145755887031555,
0.17753642797470093,
0.1479468047618866,
0.2621711194515228,
0.21577908098697662,
0.6348119378089905,
0.13568006455898285,
-0.15211427211761475,
0.16173957288265228,
0.6787915229797363,
-0.15736918151378632,
-0.2183038592338562,
-0.2806074321269989,
-0.1729326844215393,
-0.22477364540100098,
0.27547258138656616,
-0.14847531914710999,
0.3007209897041321,
-0.1415908932685852,
0.020461197942495346,
0.21394158899784088,
-0.3148278295993805,
0.20353169739246368,
-0.16996708512306213,
0.00893579050898552,
-0.35343194007873535,
0.015711799263954163,
-0.058618057519197464,
-0.2973247170448303,
0.16949260234832764,
0.14233991503715515,
-0.22120998799800873,
0.366132915019989,
-0.19166532158851624,
0.8777391910552979,
-0.06577430665493011,
0.00923524796962738,
0.16281968355178833,
-0.2247970998287201,
0.3618401288986206,
0.09007756412029266,
-0.16404230892658234,
-0.4612332880496979,
-0.30056047439575195,
0.15818722546100616,
0.05173242464661598,
0.1566578596830368,
0.10958544909954071,
-0.29953649640083313,
0.20863895118236542,
-0.1181924045085907,
0.09699222445487976,
-0.04756622761487961,
0.2875967025756836,
-0.2880070209503174,
0.07010506838560104,
-0.11887036263942719,
0.14614950120449066,
0.06944257020950317,
0.049490995705127716,
0.04896356165409088,
-0.11717894673347473,
0.198866605758667,
-0.48689788579940796,
-0.20589953660964966,
0.03362584114074707,
-0.3923666477203369,
0.32864296436309814,
-0.11808575689792633,
-0.33705729246139526,
0.20586109161376953,
0.43076369166374207,
0.46229857206344604,
0.248250812292099,
0.01875806227326393,
0.05462858825922012,
-0.00700049102306366,
0.2869396209716797,
-0.1258174031972885,
-0.23437267541885376,
-0.011666132137179375,
-0.11056008189916611,
-0.35480162501335144,
-0.10906893759965897,
0.15375137329101562,
-0.08207866549491882,
-0.24886226654052734,
0.11522720754146576,
-0.0675453394651413,
-0.1246662512421608,
0.023434137925505638,
-0.14110954105854034,
-0.1776534616947174,
-0.4434710741043091,
0.13038648664951324,
0.1312360316514969,
-0.1754397749900818,
0.22193649411201477,
-0.18838152289390564,
-0.15587612986564636,
-0.04159705713391304,
0.3397011160850525,
0.1883186399936676,
0.24744173884391785,
0.5482300519943237,
0.05515582486987114,
0.042593829333782196,
-0.25317510962486267,
-0.007690388709306717,
0.040628835558891296,
-0.4769051969051361,
0.19151483476161957,
-0.26403945684432983,
0.14428596198558807,
0.10886894166469574,
0.3577146828174591,
0.2171233743429184,
0.13662533462047577,
0.16879864037036896,
-0.30376431345939636,
-0.12698684632778168,
0.0299508199095726,
0.19083312153816223,
0.21747377514839172,
0.17312341928482056,
-0.019191693514585495,
-0.1452845335006714,
0.32744744420051575,
-0.3689517080783844,
0.23783811926841736,
-0.0046649836003780365,
-0.010238587856292725,
0.0007050223648548126,
-0.1199512705206871,
0.039676062762737274,
0.11998620629310608,
0.20290976762771606,
0.22615334391593933,
-0.055935539305210114,
-0.26797306537628174,
-0.2521987855434418,
0.13160161674022675,
-0.2184978723526001,
-0.1682138592004776,
-0.06940250843763351,
-0.23646050691604614,
-0.05867299064993858,
-0.08391810208559036,
0.4266136884689331,
0.13718369603157043,
0.002995312213897705,
0.157878115773201,
0.15296697616577148,
0.14564649760723114,
-0.16317963600158691,
0.1880170851945877,
-0.269066721200943,
0.016334168612957,
0.14150027930736542,
0.09483508765697479,
-0.01895042695105076,
-0.17155206203460693,
-0.33726775646209717,
0.08269497752189636,
-0.05604875087738037,
0.17796573042869568,
0.27852216362953186,
-0.20525191724300385,
-0.26470839977264404,
0.42968642711639404,
0.29742881655693054,
0.09966807812452316,
-0.19868715107440948,
0.0050998833030462265,
0.03359590470790863,
0.27050521969795227,
-0.3992033898830414,
-0.43699347972869873,
0.17191742360591888,
-0.13999684154987335,
0.11391392350196838,
0.3059452474117279,
0.225458025932312,
-0.3515104055404663,
-0.2786741256713867,
0.11731921881437302,
0.3834753632545471,
-0.08047915250062943,
0.2226235568523407,
0.44858518242836,
-0.08547026664018631,
-0.07634763419628143,
0.02651626244187355,
-0.12295888364315033,
-0.026120401918888092,
0.327057421207428,
-0.2358086109161377,
0.3113100826740265,
-0.13896873593330383,
0.0790473148226738,
0.2696991562843323,
-0.3729180097579956,
0.4485183656215668,
0.13819336891174316,
-0.25259485840797424,
0.022935770452022552,
0.1536451131105423,
0.1603439301252365,
-0.08752737194299698,
0.08047372102737427,
-0.21754413843154907,
0.10587109625339508,
-0.1773344874382019,
-0.03966626524925232,
-0.18827182054519653,
-0.25918328762054443,
-0.18296536803245544,
-0.09380782395601273,
-0.012098029255867004,
-0.1587507128715515,
0.35714638233184814,
-0.06538507342338562,
-0.2649562954902649,
-0.29933086037635803,
0.04473816975951195,
0.295560359954834,
0.1373048722743988,
-0.42454400658607483,
0.006730411201715469,
0.5594315528869629,
-0.08068189024925232,
-0.07908007502555847,
0.2808081805706024,
0.5457735061645508,
0.12703198194503784,
-0.08278511464595795,
0.1383129358291626,
0.19294096529483795,
-0.06373735517263412,
-0.1260761022567749,
0.2143983542919159,
-0.01731431484222412,
0.17054636776447296,
0.2234160602092743,
0.15142568945884705,
-0.21100492775440216,
-0.2321828156709671,
0.45590752363204956,
-0.14533115923404694,
-0.36355775594711304,
0.19208753108978271,
-0.23784002661705017,
-0.03235700726509094,
-0.0969725102186203,
0.36510398983955383,
-0.2949548363685608,
-0.19430625438690186,
0.1872399002313614,
0.23472155630588531,
0.14087113738059998,
-0.4275599718093872,
0.1380084902048111,
-0.1543762981891632,
0.1261259764432907,
0.24674031138420105,
-0.1832292079925537,
-0.3851374089717865,
-0.015749938786029816,
-0.7335858345031738,
0.20096634328365326,
-0.150407075881958,
-0.0707663893699646,
0.07067669183015823,
0.2328770011663437,
-0.013510152697563171,
0.07429398596286774,
0.23220166563987732,
0.22830235958099365,
-0.0936851054430008,
0.4965480864048004,
-0.4009827673435211,
-0.22507454454898834,
0.11375010013580322,
-0.12369854748249054,
0.09055038541555405,
-0.43166106939315796,
0.26439183950424194,
-0.015029652044177055,
0.08417949825525284,
-0.05555360019207001,
0.0026560723781585693,
0.32953161001205444,
-0.23907878994941711,
0.247980996966362,
0.30157139897346497,
0.4559423327445984,
-0.11074322462081909,
-0.28018462657928467,
0.01290535181760788,
-0.036863360553979874,
-0.04112653061747551,
0.28016915917396545,
0.32171866297721863,
0.25563809275627136,
0.10584656149148941,
-0.2885216176509857,
-0.22451941668987274,
0.33878403902053833,
0.21528799831867218,
0.04287122189998627,
-0.3165065348148346,
0.40415042638778687,
-0.044599100947380066,
0.052678849548101425,
0.13927729427814484,
0.32261812686920166,
-0.01963966339826584,
0.27456480264663696,
-0.3327927589416504,
-0.6344323754310608,
0.3417712450027466,
-0.3225769102573395,
-0.17968574166297913,
-0.27400943636894226,
0.3677447736263275,
-0.08316294103860855,
-0.1276748776435852,
-0.2130843997001648,
0.13975414633750916,
0.4295464754104614,
-0.24910101294517517,
0.06518591940402985,
0.36386263370513916,
-0.06338632106781006,
0.12496063113212585,
0.20453587174415588,
0.14474010467529297,
0.12418340891599655,
-0.23645034432411194,
0.5228366255760193,
-0.16280221939086914
] |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Hi ! `load_dataset` downloads the full dataset once and caches it, so that subsequent calls to `load_dataset` just reloads the dataset from your disk.
Then when you specify a `split` in `load_dataset`, it will just load the requested split from the disk. If your specified split is a sliced split (e.g. `"train[:10]"`), then it will load the 10 first rows of the train split that you have on disk.
Therefore, as long as you don't delete your cache, all your calls to `load_dataset` will be very fast. Except the first call that downloads the dataset of course ^^ | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks! | 98 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks!
Hi ! `load_dataset` downloads the full dataset once and caches it, so that subsequent calls to `load_dataset` just reloads the dataset from your disk.
Then when you specify a `split` in `load_dataset`, it will just load the requested split from the disk. If your specified split is a sliced split (e.g. `"train[:10]"`), then it will load the 10 first rows of the train split that you have on disk.
Therefore, as long as you don't delete your cache, all your calls to `load_dataset` will be very fast. Except the first call that downloads the dataset of course ^^ | [
-0.36718907952308655,
-0.1431683450937271,
-0.021608324721455574,
0.36220425367355347,
-0.06753060966730118,
0.27566981315612793,
0.574037492275238,
0.4168045222759247,
0.2612755298614502,
-0.08351022005081177,
-0.08284468203783035,
0.14032098650932312,
-0.17392060160636902,
0.18208904564380646,
0.09958703070878983,
0.10870721936225891,
-0.14264702796936035,
0.3165223002433777,
0.07343480736017227,
-0.07848580181598663,
0.17070099711418152,
-0.2612392008304596,
-0.17485162615776062,
-0.17879079282283783,
-0.43884003162384033,
0.06583228707313538,
0.07243422418832779,
0.19170692563056946,
0.29212597012519836,
-0.19661162793636322,
0.38091757893562317,
0.12371115386486053,
0.004291040822863579,
0.14779871702194214,
-0.000125037448015064,
0.048577941954135895,
0.4530165195465088,
-0.1177268996834755,
-0.4413953125476837,
0.07931524515151978,
-0.2372334897518158,
-0.017256343737244606,
0.4449101388454437,
-0.042638152837753296,
-0.05305010825395584,
-0.18753916025161743,
0.005216518417000771,
-0.3129991292953491,
0.2829739451408386,
-0.012044920586049557,
0.06675518304109573,
0.06415383517742157,
-0.550668478012085,
0.13837449252605438,
0.21969297528266907,
-0.04008987545967102,
0.006369905546307564,
0.38395947217941284,
0.4114599823951721,
0.025723015889525414,
-0.31892159581184387,
0.1433294266462326,
-0.13030046224594116,
0.2568039298057556,
0.36516574025154114,
-0.017533086240291595,
0.01699124649167061,
-0.48444703221321106,
0.2779627740383148,
0.3971959352493286,
0.6139982342720032,
0.01779787987470627,
-0.324831485748291,
-0.5615006685256958,
0.068083755671978,
-0.10190340876579285,
0.14041031897068024,
-0.032952189445495605,
-0.4404362440109253,
-0.0019117295742034912,
-0.5037773847579956,
-0.17880059778690338,
0.06568481028079987,
0.181521475315094,
0.07425734400749207,
-0.29635006189346313,
0.0635770782828331,
0.11993806064128876,
0.4592188894748688,
0.2257743924856186,
0.3110462427139282,
-0.05914749950170517,
0.08678244054317474,
0.10405702143907547,
-0.3470100164413452,
0.05521068722009659,
-0.1715555489063263,
-0.09378742426633835,
-0.036014486104249954,
0.5328009724617004,
-0.033562071621418,
0.4623104929924011,
0.17922493815422058,
0.004895288497209549,
0.5818150043487549,
-0.10443969070911407,
0.1357748657464981,
0.16049517691135406,
0.3302043080329895,
-0.3076430559158325,
-0.05620241165161133,
-0.02913980931043625,
-0.4441229999065399,
-0.14464668929576874,
0.291139155626297,
-0.03317641839385033,
-0.060982950031757355,
-0.3301863968372345,
-0.09849382936954498,
-0.3457726538181305,
0.10447954386472702,
-0.02772378921508789,
0.23564359545707703,
0.4508669674396515,
0.07714049518108368,
0.05776488035917282,
-0.19051697850227356,
0.09677300602197647,
-0.286088228225708,
-0.06460924446582794,
-0.125298410654068,
-0.17945584654808044,
-0.05339796841144562,
0.1343158483505249,
0.34564903378486633,
-0.34304413199424744,
0.3036070466041565,
-0.09187033027410507,
0.44424349069595337,
-0.19420045614242554,
0.1545959711074829,
-0.2542303502559662,
-0.030196428298950195,
0.17747168242931366,
-0.015024799853563309,
0.28085216879844666,
0.11442691087722778,
0.2564079761505127,
-0.3054349422454834,
0.43850377202033997,
-0.11468309909105301,
-0.38743454217910767,
0.06421304494142532,
-0.001465090550482273,
-0.3882315754890442,
0.24428904056549072,
-0.19810885190963745,
0.23641881346702576,
0.19101399183273315,
-0.23388339579105377,
-0.2300260066986084,
0.09611290693283081,
0.00010063499212265015,
-0.11394564062356949,
0.6939178109169006,
0.38017114996910095,
-0.14354558289051056,
-0.28515756130218506,
-0.2555275559425354,
0.03463286533951759,
0.2755737900733948,
0.2422005981206894,
-0.44276970624923706,
0.23244696855545044,
-0.13692882657051086,
-0.07506117224693298,
0.5813101530075073,
-0.045875851064920425,
-0.38998082280158997,
0.4592670798301697,
-0.06608609855175018,
0.2072698324918747,
-0.06395723670721054,
0.5403298139572144,
0.2244982123374939,
0.06297138333320618,
0.11130690574645996,
0.432306170463562,
-0.14347636699676514,
0.11651451140642166,
-0.21588446199893951,
-0.15304480493068695,
0.1313553750514984,
0.4665031135082245,
0.03728949651122093,
0.1652180403470993,
-0.038609378039836884,
0.19964225590229034,
0.18845497071743011,
0.0003336779773235321,
-0.0666796863079071,
0.19264814257621765,
-0.10654225945472717,
0.06399953365325928,
0.03716112673282623,
-0.28128641843795776,
-0.5614967346191406,
0.3774626851081848,
0.17464318871498108,
-0.31024786829948425,
-0.08220753073692322,
-0.02052311971783638,
-0.10167432576417923,
-0.1576441079378128,
-0.01804244890809059,
-0.08504949510097504,
-0.1891316920518875,
0.01479533314704895,
-0.07933900505304337,
-0.3969839811325073,
-0.4567697048187256,
0.11842307448387146,
0.02883736975491047,
-0.016268180683255196,
-0.34635642170906067,
0.11181527376174927,
0.3637428879737854,
-0.056494586169719696,
-0.04300246760249138,
-0.08845581859350204,
0.0026179812848567963,
-0.26630252599716187,
-0.06605961173772812,
0.3327564299106598,
0.14879770576953888,
0.29042667150497437,
0.04508617892861366,
0.1757802516222,
-0.01581680215895176,
-0.08042606711387634,
0.36344507336616516,
-0.05617419257760048,
0.0023397570475935936,
-0.19306430220603943,
-0.19840461015701294,
0.3541495203971863,
-0.45286718010902405,
0.40730834007263184,
0.03993161767721176,
-0.2771588861942291,
0.1374361366033554,
-0.1565609574317932,
-0.13146726787090302,
-0.08851423859596252,
0.4653714895248413,
-0.2589763104915619,
0.3783658444881439,
0.24758513271808624,
-0.08319312334060669,
-0.10189389437437057,
0.259518027305603,
-0.03595063462853432,
0.00456615537405014,
0.2960412800312042,
-0.4620665907859802,
-0.02783363312482834,
-0.13571974635124207,
-0.1868360936641693,
0.08054426312446594,
0.14114631712436676,
0.17342619597911835,
-0.21359482407569885,
0.24540384113788605,
-0.08223558962345123,
0.1437816023826599,
0.07579141855239868,
0.10593461990356445,
0.14934185147285461,
-0.15923374891281128,
-0.16431523859500885,
-0.1599852442741394,
0.07174308598041534,
0.15879835188388824,
0.15861530601978302,
-0.23622803390026093,
0.10229359567165375,
-0.41828417778015137,
-0.10481737554073334,
0.09905146062374115,
-0.05474760755896568,
-0.040896784514188766,
-0.12261258065700531,
0.04784766957163811,
0.3270418047904968,
0.0698411613702774,
0.20511656999588013,
-0.2745993435382843,
0.1811830699443817,
-0.13210821151733398,
-0.3716081976890564,
-0.2293088287115097,
-0.3260009288787842,
-0.08150415867567062,
-0.004744810983538628,
0.4853347837924957,
0.10317470878362656,
0.31482335925102234,
-0.20688681304454803,
-0.2574828863143921,
0.16530005633831024,
-0.04305069148540497,
-0.03582317382097244,
0.2538660168647766,
0.2143920660018921,
-0.12876662611961365,
0.34317317605018616,
0.19442787766456604,
-0.36291924118995667,
0.08242162317037582,
-0.1285371035337448,
-0.033652640879154205,
0.08611515164375305,
0.22748425602912903,
0.36373451352119446,
-0.047772545367479324,
-0.13443312048912048,
-0.029883870854973793,
-0.3539549708366394,
0.32159435749053955,
0.02934390679001808,
0.14985154569149017,
0.06735897064208984,
-0.1317501813173294,
-0.1673799753189087,
-0.02743704430758953,
0.14918600022792816,
0.08649031072854996,
-0.33912307024002075,
0.4030131697654724,
0.17474620044231415,
-0.04086257144808769,
-0.07522802799940109,
-0.07180434465408325,
-0.15467438101768494,
0.29176461696624756,
-0.6640381813049316,
-0.0668255090713501,
-0.1284802407026291,
-0.004082843661308289,
-0.12102587521076202,
-0.2857665717601776,
-0.0021881014108657837,
-0.11744015663862228,
0.06316196173429489,
0.1598549485206604,
-0.16831666231155396,
-0.13882967829704285,
-0.2689237892627716,
0.0819728821516037,
-0.04976978898048401,
0.27595359086990356,
-0.05068900063633919,
0.8458827137947083,
0.04192889854311943,
-0.18530170619487762,
-0.16891618072986603,
-0.11924435943365097,
0.06383330374956131,
-0.32444342970848083,
-0.4014127850532532,
-0.06877604126930237,
-0.1970941126346588,
-0.26336437463760376,
0.10771768540143967,
-0.09198177605867386,
-0.355175644159317,
-0.189546138048172,
0.028249524533748627,
-0.27457839250564575,
-0.35815078020095825,
0.4824315011501312,
-0.5855869650840759,
-0.1406051516532898,
-0.028271937742829323,
0.276435524225235,
-0.044917844235897064,
-0.24727916717529297,
0.01813245192170143,
0.07960794121026993,
0.4708026349544525,
-0.23356106877326965,
-0.013949543237686157,
0.17712271213531494,
-0.1779385805130005,
0.16549083590507507,
-0.1226428747177124,
0.14734484255313873,
-0.025699924677610397,
-0.1633836030960083,
0.2757571339607239,
0.17858213186264038,
0.7884392738342285,
0.01707499660551548,
0.13271912932395935,
0.0002020038664340973,
-0.5102225542068481,
-0.29631680250167847,
0.05347469821572304,
0.10029718279838562,
0.5788524150848389,
0.19887837767601013,
0.352287232875824,
-0.39641278982162476,
-0.08153115957975388,
0.12288489937782288,
0.35063016414642334,
-0.2957375645637512,
-0.11074239015579224,
-0.3007185757160187,
0.0792073979973793,
-0.3384439945220947,
0.06021658703684807,
-0.07723476737737656,
-0.16895988583564758,
0.11117915064096451,
-0.1326548308134079,
-0.28553861379623413,
0.05975741893053055,
0.1412392556667328,
0.2928125262260437,
0.25571712851524353,
-0.051807504147291183,
0.5995863080024719,
0.28537517786026,
-0.08737877011299133,
0.28353139758110046,
0.430894672870636,
0.003938291221857071,
-0.2233613133430481,
0.21279603242874146,
-0.028054218739271164,
0.19544625282287598,
0.4685194790363312,
0.002809619065374136,
-0.1305244266986847,
0.21682530641555786,
0.19865524768829346,
-0.36617571115493774,
0.12991882860660553,
0.06265093386173248,
-0.07617850601673126,
-0.3292382061481476,
-0.5705029368400574,
0.4089975953102112,
-0.07795611768960953,
0.011840961873531342,
0.5679506659507751,
-0.24310202896595,
-0.005395377986133099,
0.190368190407753,
0.020353510975837708,
1.0178778171539307,
-0.3330104947090149,
0.021896880120038986,
-0.46500757336616516,
0.09143315255641937,
0.4882536828517914,
-0.2961686849594116,
0.06469742953777313,
-0.3654838800430298,
-0.6286562085151672,
0.0786011591553688,
-0.2877318263053894,
-0.27455493807792664,
0.2768291234970093,
0.25405099987983704,
0.237789586186409,
-0.428245484828949,
0.08984921872615814,
-0.09953358769416809,
0.27248573303222656,
0.09064327925443649,
-0.31216758489608765,
-0.03346997871994972,
0.0022573620080947876,
-0.034531764686107635,
0.12555740773677826,
0.06438789516687393,
0.06653499603271484,
-0.06859318912029266,
0.1550925225019455,
-0.3927317261695862,
0.14111876487731934,
-0.13745558261871338,
-0.0428905114531517,
-0.2702481746673584,
-0.3985821008682251,
-0.02548663690686226,
0.13700512051582336,
-0.06832759082317352,
0.08796853572130203,
-0.05618720501661301,
0.3046509027481079,
0.02962322160601616,
0.17377500236034393,
0.021013321354985237,
0.07060182094573975,
-0.050246499478816986,
-0.009301228448748589,
-0.0992266908288002,
-0.1337229311466217,
-0.25537753105163574,
-0.47204500436782837,
0.32337650656700134,
0.2395315319299698,
0.14159074425697327,
-0.06323657929897308,
-0.24862462282180786,
-0.00017730146646499634,
0.17964401841163635,
-0.17936848104000092,
0.029104769229888916,
0.4345216751098633,
-0.06410173326730728,
0.17926877737045288,
0.2324330061674118,
-0.3975847363471985,
0.024546261876821518,
0.3809714913368225,
0.18169137835502625,
-0.05833324044942856,
0.45323899388313293,
-0.09178346395492554,
-0.3143448829650879,
-0.08938683569431305,
0.015912532806396484,
0.3293497860431671,
-0.5196859836578369,
-0.00002336408942937851,
-0.16101780533790588,
0.059433311223983765,
-0.15263476967811584,
-0.2847933769226074,
-0.005597967654466629,
0.068976029753685,
-0.37400707602500916,
-0.37331002950668335,
-0.19860336184501648,
0.3582201600074768,
0.025333022698760033,
0.364044189453125,
-0.26896488666534424,
-0.1113044023513794,
-0.18663814663887024,
0.5100812911987305,
-0.15152563154697418,
-0.11666011810302734,
-0.15062791109085083,
0.37932586669921875,
0.010344406589865685,
0.023071033880114555,
0.3565024137496948,
-0.17199882864952087,
-0.01773718371987343,
0.02634197100996971,
0.13874787092208862,
-0.08772656321525574,
0.08569623529911041,
0.22371786832809448,
-0.21669775247573853,
-0.23188158869743347,
-0.19745434820652008,
-0.12839654088020325,
-0.06370364129543304,
-0.29444098472595215,
0.2201377898454666,
0.1698252260684967,
0.19674956798553467,
-0.1060342788696289,
0.4144618809223175,
0.02025739476084709,
-0.49704909324645996,
0.1724214404821396,
-0.29054737091064453,
0.3164812922477722,
-0.09080018848180771,
0.20464305579662323,
0.07211284339427948,
-0.005418017506599426,
-0.011009587906301022,
-0.09861531108617783,
0.36519384384155273,
-0.10532969981431961,
0.14019453525543213,
0.057486213743686676,
0.28866663575172424,
0.06170766055583954,
0.36089470982551575,
0.7714850902557373,
0.030227864161133766,
0.22537946701049805,
0.07882258296012878,
0.03532774746417999,
-0.041550442576408386,
-0.14323408901691437,
0.054833076894283295,
-0.3868783712387085,
-0.022704333066940308,
0.2216559648513794,
-0.22898070514202118,
0.2641269564628601,
-0.015198804438114166,
-0.2538967430591583,
0.2530401349067688,
-0.17237594723701477,
0.017283689230680466,
0.39655572175979614,
-0.21704407036304474,
-0.10603056848049164,
0.0804065465927124,
0.2679736912250519,
0.04358362406492233,
0.34965330362319946,
-0.13365164399147034,
0.21642008423805237,
0.14095957577228546,
0.15064960718154907,
-0.26772043108940125,
-0.3968943953514099,
0.007603049278259277,
0.573941707611084,
0.15091437101364136,
0.0038489699363708496,
-0.17681512236595154,
0.0664813220500946,
0.14898686110973358,
-0.23711341619491577,
-0.031132804229855537,
0.0436323806643486,
0.09712984412908554,
-0.074643075466156,
0.20676159858703613,
-0.17384806275367737,
-0.26896214485168457,
0.11787858605384827,
-0.17308694124221802,
-0.381960391998291,
-0.07691918313503265,
0.2927035689353943,
0.17245978116989136,
-0.10805071145296097,
0.11925854533910751,
0.020360684022307396,
0.22638288140296936,
-0.3633553981781006,
0.10588794201612473,
-0.11519154906272888,
0.2659335732460022,
0.45201584696769714,
-0.055278897285461426,
0.011352233588695526,
0.14525917172431946,
-0.13874775171279907,
0.05347905680537224,
0.3016170859336853,
-0.036470700055360794,
-0.27819642424583435,
0.31175217032432556,
0.15102964639663696,
0.3166755735874176,
0.03544297069311142,
0.023774446919560432,
-0.08511552959680557,
0.17452912032604218,
-0.22542552649974823,
-0.05485449358820915,
-0.502007246017456,
0.3572721779346466,
0.09798815101385117,
-0.25677359104156494,
0.02180037647485733,
-0.1460701823234558,
0.16414672136306763,
-0.5156954526901245,
0.20814304053783417,
-0.2873864769935608,
-0.02987482026219368,
0.36528152227401733,
0.008169664070010185,
-0.0818292498588562,
0.6307967305183411,
0.08446356654167175,
0.5784643888473511,
-0.2518801689147949,
0.04716469347476959,
-0.4567261338233948,
0.0864483118057251,
-0.06382708251476288,
0.006862686946988106,
0.4267882704734802,
0.21508048474788666,
0.35210487246513367,
0.37633657455444336,
0.015649892389774323,
-0.003992618061602116,
0.34731370210647583,
0.3020208477973938,
-0.03655996918678284,
-0.00767580047249794,
-0.5346403121948242,
0.21763747930526733,
-0.0012322869151830673,
-0.3525674343109131,
0.19200879335403442,
-0.05230475217103958,
-0.15894587337970734,
0.45280420780181885,
-0.460604190826416,
0.4527319073677063,
0.36379116773605347,
0.43242189288139343,
-0.20643597841262817,
0.6541485786437988,
0.031074725091457367,
-0.12995292246341705,
-0.06981551647186279,
-0.5255053043365479,
-0.2674129605293274,
0.3101971745491028,
0.14024068415164948,
-0.1344030350446701,
-0.06945923715829849,
0.04197658225893974,
-0.3419906795024872,
0.1872285008430481,
-0.12827429175376892,
0.031473975628614426,
-0.04099448770284653,
-0.42785704135894775,
0.12159011512994766,
0.27473020553588867,
0.26735326647758484,
0.16403548419475555,
-0.10899785161018372,
-0.18433929979801178,
-0.17634284496307373,
0.05028271675109863,
0.5359644293785095,
-0.16131989657878876,
-0.02619318664073944,
-0.014375009573996067,
0.3824871778488159,
0.19769826531410217,
0.2183241844177246,
-0.5468694567680359,
-0.03760001063346863,
0.32156044244766235,
-0.212087482213974,
-0.017228927463293076,
-0.008357828482985497,
0.04108218848705292,
-0.07891714572906494,
-0.24726426601409912,
0.16255047917366028,
0.05813600867986679,
-0.068548284471035,
-0.3469405472278595,
-0.3269045948982239
] |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Hi @reachtarunhere.
Besides the above insights provided by @lhoestq and @thomwolf, there is also a Dataset feature in progress (I plan to finish it this week): #2249, which will allow you, when calling `load_dataset`, to pass the option to download/preprocess/cache only some specific split(s), which will definitely speed up your workflow.
If this feature is interesting for you, I can ping you once it will be merged into the master branch. | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks! | 71 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks!
Hi @reachtarunhere.
Besides the above insights provided by @lhoestq and @thomwolf, there is also a Dataset feature in progress (I plan to finish it this week): #2249, which will allow you, when calling `load_dataset`, to pass the option to download/preprocess/cache only some specific split(s), which will definitely speed up your workflow.
If this feature is interesting for you, I can ping you once it will be merged into the master branch. | [
-0.42554771900177,
-0.10989340394735336,
-0.034852929413318634,
0.30327892303466797,
-0.07041165977716446,
0.2823927104473114,
0.5759145021438599,
0.4311380386352539,
0.30114322900772095,
-0.08975932002067566,
-0.09464330971240997,
0.17002813518047333,
-0.16752201318740845,
0.2383287101984024,
0.04756937548518181,
0.09985010325908661,
-0.16172531247138977,
0.3242846131324768,
0.03877100721001625,
-0.06606708467006683,
0.1287389099597931,
-0.22290581464767456,
-0.24835190176963806,
-0.21158744394779205,
-0.465993732213974,
0.02932954952120781,
0.09862625598907471,
0.17055118083953857,
0.31795254349708557,
-0.12683629989624023,
0.3389090597629547,
0.13751693069934845,
-0.008487431332468987,
0.13357211649417877,
-0.00012419570703059435,
-0.01072181761264801,
0.5006648302078247,
-0.09310799837112427,
-0.43629923462867737,
0.07352825254201889,
-0.23742133378982544,
-0.04771517217159271,
0.4577593207359314,
0.027489200234413147,
-0.08342098444700241,
-0.1815836876630783,
0.025320187211036682,
-0.35465025901794434,
0.29714280366897583,
-0.00642478559166193,
0.07370699197053909,
0.10679557919502258,
-0.466146320104599,
0.14421330392360687,
0.1794300526380539,
-0.050980471074581146,
-0.06999978423118591,
0.3940604031085968,
0.45686063170433044,
-0.03442768752574921,
-0.261963427066803,
0.1470094621181488,
-0.0907033160328865,
0.33179423213005066,
0.3868727385997772,
-0.03116973116993904,
0.01200014352798462,
-0.5471948385238647,
0.2819923460483551,
0.4399406611919403,
0.6287301182746887,
0.03294697403907776,
-0.34150442481040955,
-0.5828244090080261,
0.07576543092727661,
-0.09794455021619797,
0.14900001883506775,
0.007024330087006092,
-0.42457836866378784,
0.00657978281378746,
-0.4864516854286194,
-0.17785859107971191,
0.04783705621957779,
0.15686175227165222,
0.05318382382392883,
-0.28939780592918396,
0.036896709352731705,
0.09430915862321854,
0.39025673270225525,
0.21983790397644043,
0.32616934180259705,
-0.057307153940200806,
0.07802136242389679,
0.08700891584157944,
-0.38687196373939514,
0.06285484880208969,
-0.19204890727996826,
-0.09468664973974228,
-0.06104985624551773,
0.5311388373374939,
-0.07420872896909714,
0.4788445234298706,
0.20848828554153442,
-0.03581513464450836,
0.5376529097557068,
-0.15025487542152405,
0.1837613731622696,
0.17387402057647705,
0.36885368824005127,
-0.35868194699287415,
-0.07993608713150024,
-0.041148506104946136,
-0.38917404413223267,
-0.19401249289512634,
0.2670515775680542,
-0.022362537682056427,
-0.01767699047923088,
-0.3543414771556854,
-0.15779468417167664,
-0.36753934621810913,
0.1221829280257225,
-0.050262052565813065,
0.20322571694850922,
0.42769837379455566,
0.08812488615512848,
0.06535954028367996,
-0.1983947902917862,
0.1510777473449707,
-0.27075663208961487,
-0.10739649832248688,
-0.09710744023323059,
-0.2272588312625885,
-0.012313846498727798,
0.14865776896476746,
0.36505016684532166,
-0.36092376708984375,
0.27934885025024414,
-0.06933531165122986,
0.4252464771270752,
-0.23006711900234222,
0.1399095058441162,
-0.26639237999916077,
-0.02532389760017395,
0.1920957714319229,
0.038091983646154404,
0.2751619815826416,
0.06902454793453217,
0.270110547542572,
-0.30267518758773804,
0.39712199568748474,
-0.04960542917251587,
-0.3965831398963928,
0.044024232774972916,
-0.002104952000081539,
-0.357297420501709,
0.24185073375701904,
-0.19393470883369446,
0.24391275644302368,
0.15674026310443878,
-0.14957250654697418,
-0.2970219850540161,
0.07204912602901459,
-0.05048598349094391,
-0.09225964546203613,
0.6279115676879883,
0.38506248593330383,
-0.13243818283081055,
-0.19118210673332214,
-0.21317504346370697,
0.04282832518219948,
0.2830061912536621,
0.21118341386318207,
-0.3966248035430908,
0.2519928514957428,
-0.13738752901554108,
-0.11864350736141205,
0.502447783946991,
-0.07470051944255829,
-0.32048460841178894,
0.5063075423240662,
-0.08707863092422485,
0.180222287774086,
-0.06221228092908859,
0.4636337459087372,
0.21603307127952576,
0.04201436787843704,
0.05100693553686142,
0.48639076948165894,
-0.14791664481163025,
0.15533626079559326,
-0.2005394697189331,
-0.12234718352556229,
0.10389406234025955,
0.47971493005752563,
0.045625634491443634,
0.18257364630699158,
-0.050061486661434174,
0.18734902143478394,
0.1789167821407318,
-0.02099127694964409,
-0.07795694470405579,
0.19626949727535248,
-0.11762577295303345,
0.04284440353512764,
0.05970532447099686,
-0.2848038673400879,
-0.6154308915138245,
0.35324719548225403,
0.15037089586257935,
-0.32254841923713684,
-0.06311234831809998,
-0.007873067632317543,
-0.061665523797273636,
-0.11725609004497528,
-0.014097150415182114,
-0.08452297747135162,
-0.1754080057144165,
0.016325239092111588,
-0.06331510841846466,
-0.40304988622665405,
-0.4566091299057007,
0.17250601947307587,
0.0014144610613584518,
0.007623245008289814,
-0.3340211808681488,
0.11494581401348114,
0.3976440727710724,
-0.050628144294023514,
-0.0025282390415668488,
-0.08045867830514908,
-0.00583377480506897,
-0.2696808874607086,
-0.06570032238960266,
0.3011421263217926,
0.1393207609653473,
0.29792648553848267,
0.11367544531822205,
0.145033061504364,
-0.031348541378974915,
-0.06815508008003235,
0.39275187253952026,
-0.0917419046163559,
-0.0070270635187625885,
-0.2175111174583435,
-0.18658339977264404,
0.36159276962280273,
-0.4406471252441406,
0.44268691539764404,
0.03345002233982086,
-0.27930063009262085,
0.11154256761074066,
-0.14442940056324005,
-0.10603968799114227,
-0.09069526940584183,
0.4702706038951874,
-0.2627222537994385,
0.3744699954986572,
0.25155407190322876,
-0.11801306903362274,
-0.043103985488414764,
0.22243933379650116,
-0.01099996455013752,
-0.02648375928401947,
0.3000360429286957,
-0.45675599575042725,
-0.02791711315512657,
-0.1657407283782959,
-0.18823160231113434,
0.11487501114606857,
0.162673681974411,
0.11605869233608246,
-0.24890464544296265,
0.23451371490955353,
-0.13171109557151794,
0.1706821620464325,
0.11357381939888,
0.10786259919404984,
0.18012695014476776,
-0.15707524120807648,
-0.17437739670276642,
-0.1415262073278427,
0.10435394942760468,
0.14916609227657318,
0.15525153279304504,
-0.2420472502708435,
0.04098933935165405,
-0.4336852431297302,
-0.09543624520301819,
0.1087246984243393,
0.0012944713234901428,
0.000009309500455856323,
-0.16840185225009918,
0.04554687812924385,
0.3233197331428528,
0.0870680958032608,
0.14288373291492462,
-0.22670996189117432,
0.1525978296995163,
-0.14844542741775513,
-0.37710490822792053,
-0.2346266508102417,
-0.27463826537132263,
-0.03316010534763336,
0.00338093563914299,
0.5305057764053345,
0.14176195859909058,
0.33259594440460205,
-0.21333211660385132,
-0.22711436450481415,
0.08890555053949356,
-0.051953092217445374,
-0.05185161530971527,
0.24994197487831116,
0.2526988089084625,
-0.12633593380451202,
0.3071930408477783,
0.25695210695266724,
-0.3159402906894684,
0.10980404913425446,
-0.10888831317424774,
0.003407474607229233,
0.06769688427448273,
0.160554900765419,
0.301120400428772,
0.005396686494350433,
-0.1698031723499298,
-0.03070828877389431,
-0.36862343549728394,
0.3665090799331665,
0.016429375857114792,
0.11514219641685486,
0.060963552445173264,
-0.15349511802196503,
-0.20318768918514252,
-0.05514097958803177,
0.12407876551151276,
0.13005580008029938,
-0.2488163411617279,
0.3999469578266144,
0.14993752539157867,
-0.06740172207355499,
-0.06261894851922989,
-0.029601436108350754,
-0.15988561511039734,
0.2536581754684448,
-0.6322861909866333,
-0.033095307648181915,
-0.1697775423526764,
0.059150565415620804,
-0.09262512624263763,
-0.3379983901977539,
-0.030604809522628784,
-0.10774566978216171,
0.06593529880046844,
0.17353516817092896,
-0.17050522565841675,
-0.1234264001250267,
-0.3009795546531677,
0.03321712464094162,
0.007506435737013817,
0.27938002347946167,
-0.13134409487247467,
0.7960773706436157,
0.05270151421427727,
-0.17762325704097748,
-0.159041166305542,
-0.13151894509792328,
0.05263805389404297,
-0.393648624420166,
-0.39835256338119507,
-0.012132990173995495,
-0.1709495186805725,
-0.1929163634777069,
0.12345468252897263,
-0.05690669268369675,
-0.36070695519447327,
-0.18440742790699005,
-0.024529971182346344,
-0.2462875247001648,
-0.3422313630580902,
0.4858390688896179,
-0.5331354737281799,
-0.15085843205451965,
-0.00021833926439285278,
0.2596718668937683,
-0.015386944636702538,
-0.29848575592041016,
-0.0077806273475289345,
0.07231294363737106,
0.5126266479492188,
-0.24782663583755493,
0.09501208364963531,
0.23208609223365784,
-0.23543104529380798,
0.194308340549469,
-0.1584606170654297,
0.15554828941822052,
-0.04715944081544876,
-0.14702367782592773,
0.31142014265060425,
0.19763389229774475,
0.651682436466217,
0.013132723048329353,
0.12698785960674286,
-0.02564370445907116,
-0.5850502848625183,
-0.276525616645813,
0.059520747512578964,
0.09031026065349579,
0.5965151786804199,
0.15767058730125427,
0.3528311848640442,
-0.3361722528934479,
-0.16939757764339447,
0.15827646851539612,
0.33698955178260803,
-0.25297367572784424,
-0.15420153737068176,
-0.24787290394306183,
0.10856864601373672,
-0.3825845718383789,
0.06953443586826324,
-0.013652371242642403,
-0.20192480087280273,
0.07567800581455231,
-0.17208626866340637,
-0.3040819764137268,
0.08185567706823349,
0.14047285914421082,
0.29081299901008606,
0.21066918969154358,
-0.11113814264535904,
0.6667948365211487,
0.30496150255203247,
-0.10575211048126221,
0.2823254466056824,
0.38894912600517273,
-0.006626412272453308,
-0.2671976089477539,
0.18257373571395874,
-0.11432307958602905,
0.20097917318344116,
0.49672630429267883,
-0.0328109934926033,
-0.18059277534484863,
0.11691690981388092,
0.2165844440460205,
-0.3674066662788391,
0.042587943375110626,
0.10228025168180466,
0.004908078350126743,
-0.30117267370224,
-0.5198283195495605,
0.3954167366027832,
-0.06613512337207794,
0.03968481719493866,
0.6187757253646851,
-0.2771737575531006,
-0.008443566039204597,
0.17206598818302155,
0.021292224526405334,
0.9266535043716431,
-0.3237704038619995,
-0.026725392788648605,
-0.47111082077026367,
0.04204781353473663,
0.39183661341667175,
-0.2913409471511841,
0.03272862359881401,
-0.3474792540073395,
-0.6259021759033203,
0.09391631186008453,
-0.2549416422843933,
-0.24244871735572815,
0.30786335468292236,
0.269395649433136,
0.24445483088493347,
-0.40673214197158813,
0.07542700320482254,
-0.10805057734251022,
0.31305593252182007,
0.05231136083602905,
-0.35724881291389465,
-0.03303711861371994,
0.015045683830976486,
-0.015557177364826202,
0.16697825491428375,
0.07609593868255615,
0.04633435606956482,
-0.043139275163412094,
0.1699289083480835,
-0.41825830936431885,
0.12732085585594177,
-0.1174609363079071,
-0.1342819482088089,
-0.22342553734779358,
-0.35891830921173096,
0.08065579831600189,
0.1642122119665146,
-0.06633849442005157,
0.12774617969989777,
-0.07710345834493637,
0.32439863681793213,
0.02037074789404869,
0.16771042346954346,
0.05372411012649536,
0.04041009768843651,
-0.06892820447683334,
-0.05607813596725464,
-0.08291646838188171,
-0.2383131980895996,
-0.2540111243724823,
-0.4231798052787781,
0.2556217908859253,
0.25390154123306274,
0.11000064015388489,
-0.03198109567165375,
-0.288838267326355,
-0.015511877834796906,
0.1655258685350418,
-0.2077210545539856,
0.049556851387023926,
0.44507020711898804,
-0.02908315509557724,
0.20750007033348083,
0.22862611711025238,
-0.4448325037956238,
-0.019374005496501923,
0.3128202259540558,
0.15478433668613434,
-0.024569835513830185,
0.48853644728660583,
-0.02388687990605831,
-0.34825068712234497,
-0.09680036455392838,
0.03240577131509781,
0.3478180468082428,
-0.5323248505592346,
0.04322599619626999,
-0.09543243050575256,
0.0717841237783432,
-0.08557924628257751,
-0.25740715861320496,
-0.08272893726825714,
0.025229819118976593,
-0.37232938408851624,
-0.3997136652469635,
-0.12438211590051651,
0.255515992641449,
-0.0016860701143741608,
0.31688687205314636,
-0.2882213294506073,
-0.13578356802463531,
-0.11567790806293488,
0.4980575442314148,
-0.15065404772758484,
-0.12287697941064835,
-0.11880143731832504,
0.34640440344810486,
0.05294850468635559,
0.025047169998288155,
0.3450155258178711,
-0.12824591994285583,
-0.0013393349945545197,
0.026642048731446266,
0.16036370396614075,
-0.1047792136669159,
0.10743023455142975,
0.20325753092765808,
-0.24223729968070984,
-0.2329373061656952,
-0.1401115506887436,
-0.1356322467327118,
-0.1378343403339386,
-0.3078647255897522,
0.21517319977283478,
0.16676726937294006,
0.1878567636013031,
-0.14241057634353638,
0.42682018876075745,
-0.03156442195177078,
-0.41165101528167725,
0.24463820457458496,
-0.28854310512542725,
0.3497880697250366,
-0.14570091664791107,
0.23302005231380463,
0.1168081983923912,
0.013068102300167084,
0.027390120550990105,
-0.16202494502067566,
0.34982728958129883,
-0.09057191759347916,
0.14390766620635986,
0.0498298779129982,
0.25118330121040344,
0.07122151553630829,
0.3635663688182831,
0.7526989579200745,
0.042129047214984894,
0.23098190128803253,
0.035869307816028595,
0.026657341048121452,
-0.045635830610990524,
-0.07973270863294601,
0.0889464020729065,
-0.3545721173286438,
-0.036071401089429855,
0.22081692516803741,
-0.18600377440452576,
0.2577243745326996,
-0.02992965281009674,
-0.2412746548652649,
0.24923424422740936,
-0.22950001060962677,
-0.02349230833351612,
0.33866629004478455,
-0.18343554437160492,
-0.07223917543888092,
0.11411063373088837,
0.2787202000617981,
0.004404835402965546,
0.3821209669113159,
-0.10713879019021988,
0.17877724766731262,
0.15787148475646973,
0.18651363253593445,
-0.20526617765426636,
-0.39746418595314026,
-0.007394567131996155,
0.5795644521713257,
0.15096600353717804,
0.0063894689083099365,
-0.15505127608776093,
0.0297774039208889,
0.1568143218755722,
-0.2301936149597168,
-0.04039280116558075,
0.055741894990205765,
0.10630318522453308,
-0.08712773025035858,
0.24209219217300415,
-0.12436921894550323,
-0.253274142742157,
0.15706510841846466,
-0.18576501309871674,
-0.36719661951065063,
-0.1061076670885086,
0.32317304611206055,
0.22040778398513794,
-0.12150883674621582,
0.15510201454162598,
-0.07876726984977722,
0.24259799718856812,
-0.33895838260650635,
0.13904441893100739,
-0.14756695926189423,
0.3207712471485138,
0.48779377341270447,
-0.026048196479678154,
0.06150589510798454,
0.16703654825687408,
-0.12295150756835938,
0.05738053098320961,
0.2521364092826843,
-0.04557285085320473,
-0.2194967269897461,
0.3887048065662384,
0.10532233119010925,
0.322039932012558,
0.04937594011425972,
0.01825481466948986,
-0.07622725516557693,
0.14854207634925842,
-0.2521009147167206,
-0.041113246232271194,
-0.4598379135131836,
0.3122325539588928,
0.12219233065843582,
-0.266696572303772,
-0.059816502034664154,
-0.16204053163528442,
0.19326311349868774,
-0.5238360166549683,
0.241954043507576,
-0.32608649134635925,
-0.07653386890888214,
0.3290902078151703,
0.01786905527114868,
-0.07855354249477386,
0.6179024577140808,
0.09017549455165863,
0.6525305509567261,
-0.2413713037967682,
0.04499499499797821,
-0.4157399833202362,
0.07186081260442734,
-0.08020681142807007,
-0.01793123409152031,
0.43355146050453186,
0.18779729306697845,
0.3594687879085541,
0.3741152882575989,
0.06507403403520584,
-0.013917697593569756,
0.38737937808036804,
0.3575512766838074,
-0.04182785004377365,
0.012162752449512482,
-0.5447237491607666,
0.19337330758571625,
0.005809959024190903,
-0.3408640921115875,
0.23038628697395325,
0.03536873310804367,
-0.14861570298671722,
0.38014113903045654,
-0.3933700919151306,
0.4711252450942993,
0.3187219500541687,
0.32603856921195984,
-0.22658807039260864,
0.6798646450042725,
0.025050044059753418,
-0.12495467811822891,
-0.0659322440624237,
-0.5260884165763855,
-0.2678971588611603,
0.35941946506500244,
0.14789286255836487,
-0.21176859736442566,
-0.0471150279045105,
0.01447400450706482,
-0.2860056757926941,
0.1787312924861908,
-0.19559644162654877,
0.05164415389299393,
-0.07790025323629379,
-0.42431822419166565,
0.1215830072760582,
0.29159653186798096,
0.2652493119239807,
0.1465907245874405,
-0.10060586035251617,
-0.2337411493062973,
-0.17218618094921112,
0.006625248119235039,
0.5101657509803772,
-0.12486391514539719,
-0.04789203405380249,
0.006093671545386314,
0.3391575217247009,
0.18186044692993164,
0.21796762943267822,
-0.5644077062606812,
-0.037099406123161316,
0.26621222496032715,
-0.22866642475128174,
0.08096714317798615,
0.004256165586411953,
0.10769839584827423,
-0.06291554123163223,
-0.2644650340080261,
0.1196228414773941,
0.05840461701154709,
-0.062307506799697876,
-0.37675416469573975,
-0.3212265372276306
] |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Thanks all for responding.
Hey @albertvillanova
Thanks. Yes, I would be interested.
@lhoestq I think even if a small split is specified it loads up the full dataset from the disk (please correct me if this is not the case). Because it does seem to be slow to me even on subsequent calls. There is no repeated downloading so it seems that the cache is working.
I am not aware of the streaming feature @thomwolf mentioned. So I might need to read up on it. | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks! | 85 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks!
Thanks all for responding.
Hey @albertvillanova
Thanks. Yes, I would be interested.
@lhoestq I think even if a small split is specified it loads up the full dataset from the disk (please correct me if this is not the case). Because it does seem to be slow to me even on subsequent calls. There is no repeated downloading so it seems that the cache is working.
I am not aware of the streaming feature @thomwolf mentioned. So I might need to read up on it. | [
-0.4159129858016968,
-0.14814646542072296,
-0.012522883713245392,
0.3571512699127197,
-0.09925103187561035,
0.2774941623210907,
0.5004060864448547,
0.4125295579433441,
0.3049241006374359,
-0.1691022664308548,
-0.09666922688484192,
0.12072668224573135,
-0.11352979391813278,
0.2518866956233978,
0.12172967195510864,
0.062383878976106644,
-0.181278258562088,
0.36251139640808105,
0.05583050474524498,
-0.12074285745620728,
0.17328301072120667,
-0.20111894607543945,
-0.22024887800216675,
-0.21686087548732758,
-0.38894879817962646,
0.07649604231119156,
0.10064093768596649,
0.15147674083709717,
0.28426507115364075,
-0.1781846433877945,
0.33257579803466797,
0.10092991590499878,
0.043035220354795456,
0.152910515666008,
-0.0001255008246516809,
0.003987342119216919,
0.5047405362129211,
-0.1904090940952301,
-0.42957258224487305,
0.08613752573728561,
-0.201162189245224,
0.013138385489583015,
0.45684874057769775,
-0.006285816431045532,
-0.0801529586315155,
-0.1891237497329712,
0.019670912995934486,
-0.3495224416255951,
0.3023771643638611,
0.013710659928619862,
0.05769205465912819,
0.06856278330087662,
-0.5156871676445007,
0.18960171937942505,
0.16702261567115784,
-0.03355228900909424,
-0.023257993161678314,
0.37477821111679077,
0.4744545817375183,
0.026535337790846825,
-0.37033361196517944,
0.1561926156282425,
-0.1206536516547203,
0.33496955037117004,
0.4263787269592285,
-0.027421262115240097,
-0.08636506646871567,
-0.5245522260665894,
0.308887243270874,
0.43285512924194336,
0.7110134363174438,
0.06915184110403061,
-0.33233535289764404,
-0.546377420425415,
0.055315881967544556,
-0.12147048860788345,
0.15069225430488586,
0.05594531446695328,
-0.4858691990375519,
-0.016015324741601944,
-0.4747505187988281,
-0.17957308888435364,
0.009409166872501373,
0.15969358384609222,
0.037057116627693176,
-0.28029096126556396,
0.04891866818070412,
0.10702777653932571,
0.35593292117118835,
0.24729914963245392,
0.31802213191986084,
-0.10363563895225525,
0.07162480801343918,
0.08556622266769409,
-0.3632458448410034,
0.039683520793914795,
-0.1876770555973053,
-0.0634622648358345,
-0.03511194884777069,
0.4928972125053406,
0.05373396351933479,
0.4419739842414856,
0.19517192244529724,
-0.05391215533018112,
0.5882902145385742,
-0.12397947907447815,
0.19995629787445068,
0.13202935457229614,
0.39576488733291626,
-0.26813289523124695,
-0.042877163738012314,
-0.030360698699951172,
-0.334136039018631,
-0.058584071695804596,
0.2521030306816101,
-0.08398810029029846,
-0.05640935152769089,
-0.34373974800109863,
-0.1681816279888153,
-0.310180127620697,
0.1414813995361328,
-0.08817438781261444,
0.20621371269226074,
0.4173724353313446,
0.07371658831834793,
0.07970178872346878,
-0.1862521469593048,
0.12311756610870361,
-0.23081330955028534,
-0.15629972517490387,
-0.10044059157371521,
-0.20526142418384552,
-0.007984761148691177,
0.15956416726112366,
0.38007426261901855,
-0.38899245858192444,
0.34798720479011536,
-0.13703970611095428,
0.412100613117218,
-0.1663663387298584,
0.11366356909275055,
-0.2666141390800476,
0.017143815755844116,
0.20175153017044067,
0.042434509843587875,
0.2724151611328125,
0.08878031373023987,
0.2402317374944687,
-0.28429296612739563,
0.45750531554222107,
-0.00782206654548645,
-0.3609115779399872,
0.07740893214941025,
-0.008456387557089329,
-0.36042773723602295,
0.23395603895187378,
-0.25220373272895813,
0.3074856400489807,
0.11198009550571442,
-0.23428142070770264,
-0.2774858772754669,
0.08197996020317078,
-0.051663536578416824,
-0.09618544578552246,
0.6512776017189026,
0.435174822807312,
-0.18351569771766663,
-0.2662346363067627,
-0.17411884665489197,
0.048852670937776566,
0.24126383662223816,
0.22475697100162506,
-0.40594103932380676,
0.19508124887943268,
-0.15566633641719818,
-0.03079933300614357,
0.5310045480728149,
-0.05498075485229492,
-0.3930070400238037,
0.5534242987632751,
-0.04235595464706421,
0.19682703912258148,
-0.01404530555009842,
0.4981527626514435,
0.2792949676513672,
0.08346393704414368,
0.08598969876766205,
0.46846890449523926,
-0.1412007361650467,
0.1441640406847,
-0.21534143388271332,
-0.1161557286977768,
0.13951358199119568,
0.47431766986846924,
0.04317903146147728,
0.18870434165000916,
-0.030954569578170776,
0.14274418354034424,
0.2508327066898346,
0.01469297707080841,
-0.04309120029211044,
0.1715887486934662,
-0.1290425807237625,
0.004890874028205872,
0.07088594138622284,
-0.2515200078487396,
-0.6060571074485779,
0.35161930322647095,
0.2121594101190567,
-0.34689533710479736,
-0.01783374696969986,
0.014997567981481552,
-0.10390417277812958,
-0.1333017796278,
-0.010694321244955063,
-0.13978007435798645,
-0.1877260059118271,
0.058074839413166046,
-0.055260077118873596,
-0.3899657428264618,
-0.5041713118553162,
0.1705368012189865,
0.013853264972567558,
0.011117571964859962,
-0.33545100688934326,
0.17811219394207,
0.4008476138114929,
-0.046254683285951614,
0.014477439224720001,
-0.16219019889831543,
0.0068246349692344666,
-0.23686423897743225,
-0.07591758668422699,
0.29597538709640503,
0.1486864537000656,
0.2828853130340576,
0.11451056599617004,
0.11395414173603058,
0.020263776183128357,
-0.11390834301710129,
0.42750510573387146,
0.027754515409469604,
0.03520500659942627,
-0.2094918191432953,
-0.22807815670967102,
0.3332344889640808,
-0.44680255651474,
0.3899787962436676,
0.08672313392162323,
-0.27793771028518677,
0.13554558157920837,
-0.09032297879457474,
-0.13101468980312347,
-0.059162404388189316,
0.46903130412101746,
-0.26533234119415283,
0.3321259021759033,
0.20596826076507568,
-0.17018134891986847,
-0.06763043254613876,
0.18055416643619537,
-0.054741039872169495,
-0.02818179875612259,
0.3191450238227844,
-0.5030069947242737,
-0.08555622398853302,
-0.07106693089008331,
-0.15355046093463898,
0.17065560817718506,
0.14122547209262848,
0.12573640048503876,
-0.24631762504577637,
0.30128082633018494,
-0.09736943989992142,
0.17975196242332458,
0.07644650340080261,
0.023991156369447708,
0.24016514420509338,
-0.16928991675376892,
-0.1677253693342209,
-0.207576721906662,
0.13353997468948364,
0.16330081224441528,
0.12616175413131714,
-0.2461010217666626,
0.055954061448574066,
-0.3923879861831665,
-0.1371293067932129,
0.0984189361333847,
-0.02630862221121788,
-0.01624384894967079,
-0.1145450696349144,
0.02955169975757599,
0.3922593295574188,
0.13704881072044373,
0.13233578205108643,
-0.24320869147777557,
0.20426103472709656,
-0.15110483765602112,
-0.3757818043231964,
-0.2814655601978302,
-0.26209986209869385,
-0.04854878783226013,
0.003944858908653259,
0.4429611265659332,
0.15152397751808167,
0.2691594064235687,
-0.23048366606235504,
-0.23614227771759033,
0.10462497919797897,
-0.04456312954425812,
-0.04105904698371887,
0.2351595014333725,
0.21459133923053741,
-0.14067532122135162,
0.35459232330322266,
0.21720139682292938,
-0.2870863378047943,
0.06787046790122986,
-0.18214072287082672,
-0.008720586076378822,
0.07924576848745346,
0.20336396992206573,
0.3169822692871094,
0.0007925555109977722,
-0.14705276489257812,
-0.07988281548023224,
-0.34232792258262634,
0.34892308712005615,
0.02194904163479805,
0.10811156034469604,
0.013132274150848389,
-0.20318983495235443,
-0.18802759051322937,
-0.02010277286171913,
0.12279137223958969,
0.09905777871608734,
-0.27364009618759155,
0.38887977600097656,
0.16853033006191254,
-0.1319756805896759,
-0.019749552011489868,
-0.04279986768960953,
-0.17256014049053192,
0.24570722877979279,
-0.7163397669792175,
-0.03636792302131653,
-0.10390692949295044,
-0.027533793821930885,
-0.14114585518836975,
-0.31527358293533325,
-0.00931878387928009,
-0.1638631373643875,
0.08798631280660629,
0.14057564735412598,
-0.24662868678569794,
-0.16608411073684692,
-0.23834875226020813,
0.0327039435505867,
-0.05191580951213837,
0.2790389358997345,
-0.1051083505153656,
0.7948552370071411,
0.06696254014968872,
-0.13587550818920135,
-0.12086257338523865,
-0.11529430001974106,
0.07480932772159576,
-0.4005528390407562,
-0.3552449941635132,
0.00472461711615324,
-0.21756085753440857,
-0.2861967086791992,
0.1386241465806961,
-0.08460546284914017,
-0.3736599087715149,
-0.2103448361158371,
-0.004032665863633156,
-0.2412601113319397,
-0.29683002829551697,
0.44433894753456116,
-0.49016791582107544,
-0.16395607590675354,
0.008425530046224594,
0.2829987704753876,
0.01498684287071228,
-0.3082875907421112,
-0.04426940903067589,
0.11671431362628937,
0.5464724898338318,
-0.2055654078722,
0.07723622024059296,
0.203346848487854,
-0.2294432520866394,
0.18010437488555908,
-0.1383931040763855,
0.15408770740032196,
-0.03720199316740036,
-0.18684828281402588,
0.30237501859664917,
0.20275694131851196,
0.6964053511619568,
0.029053349047899246,
0.15235279500484467,
-0.02944960817694664,
-0.5537375211715698,
-0.3339633047580719,
0.051314156502485275,
0.12365767359733582,
0.5427000522613525,
0.14164860546588898,
0.33195820450782776,
-0.34121012687683105,
-0.08572874218225479,
0.08784128725528717,
0.3475196361541748,
-0.25629743933677673,
-0.11656391620635986,
-0.27331435680389404,
0.11155184358358383,
-0.3391995429992676,
0.04603337123990059,
-0.03410255163908005,
-0.2568395733833313,
0.07717796415090561,
-0.1358345001935959,
-0.1969120353460312,
0.07038622349500656,
0.10829481482505798,
0.3095797896385193,
0.25614964962005615,
-0.07959920167922974,
0.6283689141273499,
0.2473171502351761,
-0.07466836273670197,
0.2623118460178375,
0.44843822717666626,
0.054110825061798096,
-0.23913246393203735,
0.25597888231277466,
-0.0761411041021347,
0.15703190863132477,
0.48055893182754517,
-0.027321666479110718,
-0.17404669523239136,
0.16577257215976715,
0.18218010663986206,
-0.3535288870334625,
0.029665010049939156,
0.04374691843986511,
-0.036374401301145554,
-0.2842460572719574,
-0.538167417049408,
0.4099709093570709,
-0.1583419144153595,
0.027008429169654846,
0.5929958820343018,
-0.2678988575935364,
0.043302327394485474,
0.17118532955646515,
-0.03412534296512604,
0.9001878499984741,
-0.2775951027870178,
0.018104545772075653,
-0.47385016083717346,
0.025515951216220856,
0.38266974687576294,
-0.25293681025505066,
0.05766097828745842,
-0.3758232593536377,
-0.6318645477294922,
0.045194558799266815,
-0.2700020372867584,
-0.2560804486274719,
0.29038745164871216,
0.19188940525054932,
0.2626979649066925,
-0.3450232744216919,
0.1452237069606781,
-0.08962929993867874,
0.2789682447910309,
0.009275728836655617,
-0.31333351135253906,
-0.07878373563289642,
-0.011240750551223755,
-0.06868618726730347,
0.18296344578266144,
0.11946312338113785,
0.0324166975915432,
-0.013715844601392746,
0.12809953093528748,
-0.4161297082901001,
0.1509043574333191,
-0.1354144811630249,
-0.10830798745155334,
-0.2610025405883789,
-0.44593387842178345,
0.0013435930013656616,
0.1891566812992096,
-0.16957934200763702,
0.007953748106956482,
-0.09623051434755325,
0.311350017786026,
-0.0028132572770118713,
0.23179468512535095,
0.03423255681991577,
0.09171951562166214,
-0.08843427896499634,
-0.0669412836432457,
-0.08679553121328354,
-0.11936841160058975,
-0.29974880814552307,
-0.41807031631469727,
0.32023340463638306,
0.2411242574453354,
0.1727192997932434,
-0.04884291812777519,
-0.2446344941854477,
-0.02085510641336441,
0.15519054234027863,
-0.2033875435590744,
0.013044733554124832,
0.44227880239486694,
-0.054703764617443085,
0.1766158640384674,
0.23174618184566498,
-0.3899618089199066,
-0.03244505077600479,
0.4000254273414612,
0.17748966813087463,
-0.012209711596369743,
0.47297316789627075,
-0.09839002788066864,
-0.3320077657699585,
-0.09052986651659012,
0.0528172105550766,
0.2913815677165985,
-0.4966566264629364,
0.007761402055621147,
-0.13627514243125916,
0.1066785603761673,
-0.1356605887413025,
-0.2550935745239258,
-0.060070253908634186,
0.08961702138185501,
-0.36033374071121216,
-0.42926791310310364,
-0.1603856235742569,
0.2925671935081482,
-0.0006638802587985992,
0.28138890862464905,
-0.24829554557800293,
-0.18841572105884552,
-0.08656273037195206,
0.4756273031234741,
-0.13671106100082397,
-0.08252885192632675,
-0.0671442449092865,
0.33846315741539,
0.03540748730301857,
0.0608307309448719,
0.3525756299495697,
-0.1260368525981903,
-0.038571614772081375,
0.02455855719745159,
0.16562165319919586,
-0.07323983311653137,
0.1285140961408615,
0.22955086827278137,
-0.15579256415367126,
-0.22052744030952454,
-0.2334296852350235,
-0.1802583932876587,
-0.12481915950775146,
-0.263816773891449,
0.2511465549468994,
0.15839681029319763,
0.1694556027650833,
-0.11068308353424072,
0.49149519205093384,
-0.06092336028814316,
-0.47928082942962646,
0.22149167954921722,
-0.2967146635055542,
0.35012006759643555,
-0.12634491920471191,
0.2038218379020691,
0.09910546243190765,
-0.010506980121135712,
-0.035767801105976105,
-0.10170384496450424,
0.31243896484375,
-0.11133641749620438,
0.20479127764701843,
0.047027382999658585,
0.29500582814216614,
0.002908205147832632,
0.38409799337387085,
0.8036360144615173,
0.03344682976603508,
0.2618506848812103,
-0.009986815974116325,
0.023774398490786552,
-0.05242633819580078,
-0.13272462785243988,
0.04297024756669998,
-0.3547075688838959,
-0.0327945202589035,
0.21949228644371033,
-0.17780303955078125,
0.19715261459350586,
0.0066400617361068726,
-0.25712892413139343,
0.2985554337501526,
-0.15951520204544067,
-0.0018195006996393204,
0.37393876910209656,
-0.22261977195739746,
-0.024882297962903976,
0.05943794548511505,
0.2785048186779022,
0.010103367269039154,
0.31712329387664795,
-0.10134454816579819,
0.2024611085653305,
0.16210106015205383,
0.17477242648601532,
-0.2879362106323242,
-0.4448857605457306,
-0.04596618190407753,
0.5084712505340576,
0.14092978835105896,
0.034963082522153854,
-0.11586660146713257,
-0.018383264541625977,
0.11527365446090698,
-0.24199652671813965,
-0.05829478055238724,
-0.014559414237737656,
0.12229327857494354,
-0.06675583124160767,
0.2357206642627716,
-0.16624750196933746,
-0.18681827187538147,
0.19921846687793732,
-0.21243321895599365,
-0.3387032151222229,
-0.12238487601280212,
0.3224773705005646,
0.1367720365524292,
-0.11149360239505768,
0.05985519662499428,
-0.056830503046512604,
0.2279413640499115,
-0.3398151993751526,
0.1281609982252121,
-0.13082246482372284,
0.3174036741256714,
0.5237315893173218,
-0.025046197697520256,
-0.004435468465089798,
0.10366465896368027,
-0.08806438744068146,
0.060262780636548996,
0.30790987610816956,
-0.03868795186281204,
-0.23401837050914764,
0.3626217842102051,
0.18830516934394836,
0.3122762441635132,
0.03324226662516594,
0.014388630166649818,
-0.05941053852438927,
0.23646517097949982,
-0.2298785001039505,
-0.03726617246866226,
-0.4761092960834503,
0.26719629764556885,
0.10544940829277039,
-0.23716551065444946,
-0.016148783266544342,
-0.15958011150360107,
0.1871892511844635,
-0.46139171719551086,
0.20175081491470337,
-0.3219945430755615,
-0.04847640544176102,
0.32828354835510254,
0.004022760316729546,
-0.09810322523117065,
0.6001441478729248,
0.062167491763830185,
0.5602127313613892,
-0.22831352055072784,
0.021362408995628357,
-0.4172227382659912,
0.09457061439752579,
-0.01645289734005928,
-0.006826344877481461,
0.4296313226222992,
0.20576301217079163,
0.38345617055892944,
0.38870805501937866,
0.03558967262506485,
0.038024336099624634,
0.29149165749549866,
0.32808706164360046,
-0.01678880676627159,
-0.058955613523721695,
-0.514850914478302,
0.28426048159599304,
-0.05550023913383484,
-0.33367666602134705,
0.24578075110912323,
0.0031641535460948944,
-0.15669816732406616,
0.41018182039260864,
-0.43011611700057983,
0.42350679636001587,
0.35959944128990173,
0.3506819009780884,
-0.21700291335582733,
0.6864230632781982,
0.022863637655973434,
-0.13767112791538239,
-0.029639098793268204,
-0.5314256548881531,
-0.29449495673179626,
0.3133072257041931,
0.12606193125247955,
-0.11575038731098175,
-0.012856980785727501,
0.02366086095571518,
-0.2885638177394867,
0.21854005753993988,
-0.18843859434127808,
0.03442602977156639,
-0.07424245029687881,
-0.4067562222480774,
0.0970119759440422,
0.32798871397972107,
0.2838817834854126,
0.16559156775474548,
-0.13930870592594147,
-0.2604668140411377,
-0.16526615619659424,
0.03573478013277054,
0.5490175485610962,
-0.17038512229919434,
-0.0008907727897167206,
0.007443821988999844,
0.33009570837020874,
0.16132381558418274,
0.2442733198404312,
-0.5656349658966064,
-0.01879502832889557,
0.30262625217437744,
-0.2663385570049286,
0.0532589890062809,
-0.010547323152422905,
0.04014799743890762,
-0.05776940658688545,
-0.24615205824375153,
0.18530625104904175,
0.09047829359769821,
-0.12175814062356949,
-0.36858969926834106,
-0.3309917449951172
] |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | If I want to create a dataset, containing only the 10 elements of a given dataset (slice it), how do I do that? | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks! | 23 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks!
If I want to create a dataset, containing only the 10 elements of a given dataset (slice it), how do I do that? | [
-0.3977651596069336,
-0.09477072954177856,
-0.03719766065478325,
0.28004884719848633,
-0.05208875983953476,
0.26435837149620056,
0.5830538272857666,
0.3652512729167938,
0.2672199308872223,
-0.045075371861457825,
-0.11924239248037338,
0.20403510332107544,
-0.24334515631198883,
0.33019906282424927,
0.11814973503351212,
0.1358809620141983,
-0.15585708618164062,
0.43132922053337097,
0.005856260657310486,
-0.09128689765930176,
0.15781991183757782,
-0.24248845875263214,
-0.18640097975730896,
-0.21159429848194122,
-0.3760380744934082,
0.029877329245209694,
0.15109103918075562,
0.13123451173305511,
0.24161511659622192,
-0.21104197204113007,
0.3077513575553894,
0.04496489837765694,
0.05570800602436066,
0.10584941506385803,
-0.0001229802001034841,
0.0748043805360794,
0.43662959337234497,
-0.14574690163135529,
-0.4099242687225342,
0.067127525806427,
-0.20783734321594238,
-0.07785172015428543,
0.4673762619495392,
-0.020944669842720032,
-0.07537718862295151,
-0.20153650641441345,
0.03086722642183304,
-0.33415311574935913,
0.3066936433315277,
0.023100480437278748,
0.07735402882099152,
0.09869910031557083,
-0.4699234962463379,
0.16613899171352386,
0.18013057112693787,
0.03807681426405907,
-0.04248131066560745,
0.3423459231853485,
0.44648605585098267,
0.014928234741091728,
-0.21886524558067322,
0.04405562952160835,
-0.047769829630851746,
0.2753884494304657,
0.42340534925460815,
-0.014960742555558681,
-0.07981989532709122,
-0.6271977424621582,
0.263882040977478,
0.5154802799224854,
0.7087461352348328,
0.0011936426162719727,
-0.3671892583370209,
-0.5345857739448547,
0.059484343975782394,
-0.054835494607686996,
0.06432348489761353,
0.08998271077871323,
-0.46769875288009644,
-0.02815021201968193,
-0.46093088388442993,
-0.14942216873168945,
0.028506837785243988,
0.17360958456993103,
0.14803731441497803,
-0.2008376121520996,
0.02329699695110321,
0.09537699818611145,
0.3471793830394745,
0.18177524209022522,
0.23792192339897156,
-0.024459265172481537,
0.11812146008014679,
0.15598630905151367,
-0.31817853450775146,
0.00884903222322464,
-0.17965322732925415,
-0.07925610989332199,
0.08916999399662018,
0.4937323331832886,
-0.019908670336008072,
0.4035153388977051,
0.21932841837406158,
-0.056709885597229004,
0.4625735878944397,
-0.19095078110694885,
0.2747964560985565,
0.10941516607999802,
0.282795250415802,
-0.4496314823627472,
0.015858903527259827,
-0.02031504362821579,
-0.3824250102043152,
-0.08649943768978119,
0.22190304100513458,
-0.07936489582061768,
0.01649971306324005,
-0.28112679719924927,
-0.10266013443470001,
-0.3318074345588684,
0.1626994013786316,
-0.038291700184345245,
0.1479063183069229,
0.4127877652645111,
0.12306740880012512,
-0.047104090452194214,
-0.24355736374855042,
0.19267413020133972,
-0.311824232339859,
-0.06414371728897095,
-0.09658557921648026,
-0.1760234832763672,
0.01187620684504509,
0.08082874119281769,
0.34944501519203186,
-0.4803590774536133,
0.36529096961021423,
-0.044022612273693085,
0.3548784852027893,
-0.19689439237117767,
0.20242364704608917,
-0.23414473235607147,
-0.08518003672361374,
0.2214832901954651,
0.053003523498773575,
0.20722557604312897,
0.08237229287624359,
0.15206998586654663,
-0.2730311453342438,
0.4340898096561432,
0.018185406923294067,
-0.3585628569126129,
-0.029227236285805702,
0.009609333239495754,
-0.3364769220352173,
0.2583245635032654,
-0.18204975128173828,
0.2833215296268463,
0.09794984757900238,
-0.16913673281669617,
-0.2440389096736908,
0.10983556509017944,
-0.05828847736120224,
-0.14708566665649414,
0.713094174861908,
0.36934882402420044,
-0.2549046576023102,
-0.24362537264823914,
-0.19928252696990967,
-0.02940288558602333,
0.20997944474220276,
0.13788673281669617,
-0.3995952606201172,
0.3338523805141449,
-0.11687083542346954,
-0.04881975054740906,
0.5282374620437622,
0.07843171060085297,
-0.3514292240142822,
0.4047035872936249,
-0.09059160947799683,
0.09207218885421753,
-0.08231989294290543,
0.5414609909057617,
0.2174764722585678,
0.08428327739238739,
0.053782831877470016,
0.39652520418167114,
-0.1980176866054535,
0.11908867210149765,
-0.14373964071273804,
-0.11359305679798126,
0.2433244287967682,
0.4839191436767578,
0.07603681832551956,
0.20048943161964417,
-0.009868748486042023,
0.15142318606376648,
0.17978310585021973,
-0.06368330121040344,
-0.08764352649450302,
0.19523373246192932,
-0.10781502723693848,
0.006236903369426727,
0.07458163797855377,
-0.3291332423686981,
-0.6323670148849487,
0.3357068598270416,
0.1696486920118332,
-0.2914848029613495,
0.05231771990656853,
-0.01610306091606617,
-0.10452786087989807,
-0.07150097191333771,
0.033208608627319336,
-0.0812850147485733,
-0.1613604724407196,
-0.05737045407295227,
-0.034926559776067734,
-0.43214550614356995,
-0.5302506685256958,
0.1723710298538208,
-0.02810521423816681,
0.062464457005262375,
-0.447923481464386,
0.09214533120393753,
0.3864566683769226,
-0.10831117630004883,
0.036335304379463196,
-0.15196636319160461,
-0.040774233639240265,
-0.3038727939128876,
-0.00795721635222435,
0.2469097077846527,
0.22605255246162415,
0.22976738214492798,
0.03762594610452652,
0.12630650401115417,
0.001185515895485878,
-0.09759250283241272,
0.4251292943954468,
-0.07855618000030518,
0.0620444193482399,
-0.1860780417919159,
-0.18637439608573914,
0.35215267539024353,
-0.5111936330795288,
0.35315120220184326,
0.028249822556972504,
-0.30751505494117737,
0.075913205742836,
-0.1271459311246872,
-0.18533965945243835,
-0.08132760971784592,
0.5056756734848022,
-0.18481867015361786,
0.4190220236778259,
0.2150963693857193,
-0.06782311946153641,
-0.07737923413515091,
0.05588243156671524,
-0.07386568188667297,
0.007033266127109528,
0.3302723169326782,
-0.45641374588012695,
0.01379101350903511,
-0.143722265958786,
-0.24070097506046295,
0.1257333904504776,
0.14575891196727753,
0.09056903421878815,
-0.2176739126443863,
0.22468318045139313,
-0.12619896233081818,
0.11711031943559647,
0.08525457978248596,
0.041237231343984604,
0.19033849239349365,
-0.1542774885892868,
-0.1852358728647232,
-0.16595619916915894,
0.11802107095718384,
0.07013411819934845,
0.12324204295873642,
-0.24087093770503998,
0.010165704414248466,
-0.31912755966186523,
-0.0619976744055748,
0.15168648958206177,
-0.05134782940149307,
-0.06755979359149933,
-0.09033006429672241,
0.042453885078430176,
0.2593587636947632,
0.07071885466575623,
0.1639341115951538,
-0.27566906809806824,
0.1553417444229126,
-0.14704978466033936,
-0.27851083874702454,
-0.14295175671577454,
-0.2713542580604553,
-0.001539032906293869,
0.03356081247329712,
0.38269007205963135,
0.21713314950466156,
0.3930967152118683,
-0.24385467171669006,
-0.2403102070093155,
0.11606980860233307,
-0.04687197878956795,
-0.019072555005550385,
0.23527419567108154,
0.30943068861961365,
-0.07777678966522217,
0.3416733145713806,
0.22979755699634552,
-0.30726757645606995,
0.07329563051462173,
-0.08011265844106674,
-0.051719874143600464,
0.09671441465616226,
0.210789754986763,
0.34403035044670105,
0.07524468004703522,
-0.17184463143348694,
-0.10400652885437012,
-0.3205897808074951,
0.32605886459350586,
0.09983012080192566,
0.15029874444007874,
0.13580158352851868,
-0.04822216182947159,
-0.17036586999893188,
0.025685127824544907,
0.0957324281334877,
0.1532834768295288,
-0.2919620871543884,
0.3748241066932678,
0.11272002756595612,
-0.0832243263721466,
-0.06289741396903992,
-0.1086578518152237,
-0.17083947360515594,
0.27988767623901367,
-0.5622594952583313,
-0.01837543398141861,
-0.18236161768436432,
-0.048723720014095306,
-0.13280826807022095,
-0.21757575869560242,
0.0634785145521164,
-0.12612605094909668,
0.0706317350268364,
0.1352468729019165,
-0.1645599901676178,
-0.1204470619559288,
-0.3442409336566925,
0.01094934344291687,
0.0017785951495170593,
0.2985115051269531,
-0.17652857303619385,
0.8064913749694824,
0.10172945261001587,
-0.1570100337266922,
-0.1897130012512207,
-0.1901635080575943,
0.10879924893379211,
-0.39950552582740784,
-0.3466833829879761,
0.025337103754281998,
-0.07185932993888855,
-0.2953716516494751,
0.13126114010810852,
-0.025135699659585953,
-0.30274009704589844,
-0.14075475931167603,
-0.005172135308384895,
-0.3269120752811432,
-0.3087834417819977,
0.4939952790737152,
-0.5393415093421936,
-0.1811850368976593,
-0.03397194296121597,
0.23488879203796387,
-0.046750571578741074,
-0.2895369827747345,
-0.07842141389846802,
0.07224416732788086,
0.5092326998710632,
-0.20298971235752106,
-0.057454999536275864,
0.1560487598180771,
-0.25122693181037903,
0.15068665146827698,
-0.11564354598522186,
0.20404116809368134,
-0.014744959771633148,
-0.1707208752632141,
0.22061799466609955,
0.22074870765209198,
0.7231789827346802,
0.004693970084190369,
0.1642114371061325,
0.0074226465076208115,
-0.5089592337608337,
-0.36266404390335083,
0.090291827917099,
0.13043031096458435,
0.5249249339103699,
0.0822434276342392,
0.3060973286628723,
-0.32407352328300476,
-0.12600845098495483,
0.12983214855194092,
0.4296296536922455,
-0.28745365142822266,
-0.08199211955070496,
-0.27646028995513916,
0.026226036250591278,
-0.33395835757255554,
0.03641710430383682,
-0.06905794143676758,
-0.2559637427330017,
0.1616802215576172,
-0.13807439804077148,
-0.31918466091156006,
-0.028571221977472305,
0.14004585146903992,
0.2838470935821533,
0.21242985129356384,
-0.0465596579015255,
0.6682881116867065,
0.25809139013290405,
-0.11889100074768066,
0.2780332863330841,
0.40123385190963745,
-0.021051213145256042,
-0.24638420343399048,
0.1649610698223114,
-0.03903313726186752,
0.2542959749698639,
0.36224329471588135,
0.0017486377619206905,
-0.20937815308570862,
0.1296311318874359,
0.22137603163719177,
-0.4345693588256836,
0.1252436637878418,
-0.002169220708310604,
-0.09742625057697296,
-0.38662511110305786,
-0.49875348806381226,
0.4221135079860687,
-0.13762426376342773,
0.06535835564136505,
0.647097647190094,
-0.19882728159427643,
0.00997525081038475,
0.20567470788955688,
0.049924761056900024,
0.8742808699607849,
-0.33796703815460205,
-0.012625973671674728,
-0.4769095480442047,
0.07414764165878296,
0.478640615940094,
-0.28056079149246216,
0.01938975602388382,
-0.41877108812332153,
-0.6996012330055237,
0.07387175410985947,
-0.28302502632141113,
-0.2500011622905731,
0.37468624114990234,
0.26635515689849854,
0.21985556185245514,
-0.4615437388420105,
0.15840177237987518,
-0.07322309911251068,
0.3596270978450775,
0.033843033015728,
-0.306744247674942,
-0.016429942101240158,
0.03484763205051422,
-0.07606948912143707,
0.09833205491304398,
0.09093403071165085,
0.14389994740486145,
-0.027653155848383904,
0.12244993448257446,
-0.38124918937683105,
0.11236590892076492,
-0.208726704120636,
-0.06881248205900192,
-0.18847587704658508,
-0.5322373509407043,
-0.021158983930945396,
0.261005163192749,
-0.08115291595458984,
0.10354329645633698,
-0.002026129513978958,
0.2858179211616516,
-0.019187696278095245,
0.12848731875419617,
-0.057385414838790894,
0.05487480014562607,
-0.07284832000732422,
0.002636123448610306,
-0.08398769050836563,
-0.20128828287124634,
-0.27673670649528503,
-0.3635643720626831,
0.3105947971343994,
0.2177446484565735,
0.1218125969171524,
-0.13945508003234863,
-0.18832774460315704,
-0.07495677471160889,
0.23870351910591125,
-0.14486896991729736,
0.03580212965607643,
0.4738529920578003,
-0.02481759525835514,
0.15070827305316925,
0.3150371015071869,
-0.36917513608932495,
-0.018522202968597412,
0.28403422236442566,
0.19898870587348938,
-0.017927642911672592,
0.48852118849754333,
-0.03472089767456055,
-0.2901948094367981,
-0.10584516823291779,
0.17823851108551025,
0.3500860333442688,
-0.4067603051662445,
-0.013276970945298672,
-0.10676925629377365,
0.10655272006988525,
-0.13421550393104553,
-0.26369181275367737,
-0.03139367699623108,
0.028135016560554504,
-0.30566030740737915,
-0.4275069236755371,
-0.22472727298736572,
0.32134726643562317,
0.02667122706770897,
0.38538315892219543,
-0.22206780314445496,
-0.1396441012620926,
-0.12429501116275787,
0.5688862204551697,
-0.1496107280254364,
-0.13464538753032684,
-0.13014061748981476,
0.3572565019130707,
0.09531456232070923,
0.07026632130146027,
0.23255354166030884,
-0.19613178074359894,
-0.02897816337645054,
0.047144677489995956,
0.10270170122385025,
-0.11664746701717377,
0.04773082211613655,
0.2040977030992508,
-0.15885165333747864,
-0.2602766454219818,
-0.11743585020303726,
-0.09285996109247208,
-0.12246516346931458,
-0.31536683440208435,
0.26728200912475586,
0.17752596735954285,
0.1542811095714569,
-0.08710330724716187,
0.5131480693817139,
-0.046512871980667114,
-0.4496404528617859,
0.18857617676258087,
-0.2990154027938843,
0.3446003198623657,
-0.06356611102819443,
0.2184908539056778,
0.1508212685585022,
-0.004970945417881012,
-0.022610368207097054,
-0.05465685576200485,
0.35611581802368164,
-0.18215036392211914,
0.030212854966521263,
0.026865951716899872,
0.3071145713329315,
-0.0000356440432369709,
0.3782443106174469,
0.7608952522277832,
0.012860662303864956,
0.3481754958629608,
0.12506791949272156,
0.04172280430793762,
-0.07196103036403656,
-0.19216719269752502,
0.07619917392730713,
-0.360392302274704,
0.03334655985236168,
0.24726828932762146,
-0.28961536288261414,
0.29300424456596375,
0.02669145166873932,
-0.3050806522369385,
0.26128220558166504,
-0.1794893741607666,
0.018713340163230896,
0.3437250554561615,
-0.26390379667282104,
-0.09353125095367432,
0.038978517055511475,
0.2905484735965729,
0.06791208684444427,
0.38705718517303467,
-0.1297644078731537,
0.24343739449977875,
0.14066433906555176,
0.15772895514965057,
-0.273032546043396,
-0.44279518723487854,
-0.016477927565574646,
0.5728830099105835,
0.1026492640376091,
-0.052110202610492706,
-0.13374526798725128,
0.03174703195691109,
0.14627893269062042,
-0.2179020345211029,
0.0003403499722480774,
0.05787518620491028,
0.11765823513269424,
-0.12418656051158905,
0.18323737382888794,
-0.18871983885765076,
-0.1744447946548462,
0.1556142419576645,
-0.15068209171295166,
-0.4665585160255432,
-0.11612676084041595,
0.26033952832221985,
0.17587727308273315,
-0.11941517889499664,
0.2050013244152069,
-0.003142286092042923,
0.10512208193540573,
-0.3155246376991272,
0.08388789743185043,
-0.15358473360538483,
0.33691224455833435,
0.438864529132843,
-0.00048392266035079956,
0.017179042100906372,
0.09067066013813019,
-0.1534528285264969,
0.102784164249897,
0.2684187591075897,
-0.052665598690509796,
-0.2578064203262329,
0.32146331667900085,
0.11744774878025055,
0.37801748514175415,
0.050648320466279984,
0.045503027737140656,
-0.08195837587118149,
0.07114832103252411,
-0.1496039628982544,
-0.1617521494626999,
-0.49590012431144714,
0.27472689747810364,
0.11298473924398422,
-0.2824305593967438,
-0.0003953762352466583,
-0.18084856867790222,
0.17420995235443115,
-0.4722695052623749,
0.25078338384628296,
-0.2595990002155304,
-0.01023276336491108,
0.38402464985847473,
0.02521587163209915,
-0.1387675404548645,
0.5816404819488525,
0.031106777489185333,
0.6011767387390137,
-0.20451903343200684,
0.04433818161487579,
-0.35006099939346313,
-0.005664080381393433,
-0.09682260453701019,
0.010226769372820854,
0.41871732473373413,
0.09310715645551682,
0.41327014565467834,
0.4600405693054199,
0.015257246792316437,
0.1064336821436882,
0.26997748017311096,
0.34286439418792725,
0.05424433574080467,
-0.06369517743587494,
-0.6008080840110779,
0.2537204921245575,
-0.03372446075081825,
-0.3252110779285431,
0.1657593697309494,
0.003093159757554531,
-0.12469559907913208,
0.3631959557533264,
-0.36268386244773865,
0.43790459632873535,
0.18968260288238525,
0.37565872073173523,
-0.17567923665046692,
0.6731680631637573,
-0.0017234496772289276,
-0.11577732861042023,
0.0014751553535461426,
-0.47823190689086914,
-0.2878612279891968,
0.37698647379875183,
0.19601045548915863,
-0.12234465777873993,
-0.102667436003685,
-0.03727385774254799,
-0.25597867369651794,
0.1202271357178688,
-0.15287663042545319,
0.10435318201780319,
-0.07692502439022064,
-0.34197795391082764,
0.10320346802473068,
0.2439403384923935,
0.32455378770828247,
0.18598505854606628,
-0.156204491853714,
-0.1892913579940796,
-0.10769803076982498,
0.019505323842167854,
0.4503926932811737,
-0.19325794279575348,
-0.050294145941734314,
0.03344441205263138,
0.31395673751831055,
0.1409607231616974,
0.1740092933177948,
-0.4911607801914215,
0.04224180430173874,
0.3346860706806183,
-0.30967897176742554,
0.03268355503678322,
-0.013139171525835991,
0.08436761796474457,
-0.1432362049818039,
-0.2662917375564575,
0.23115138709545135,
0.0562131404876709,
-0.05461001768708229,
-0.4153546392917633,
-0.3587324619293213
] |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging |
> ```python
> small_ds = ds.select(range(10))
> ```
Thanks, but this doesn't help me to save time during initial loading, right? | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks! | 21 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks!
> ```python
> small_ds = ds.select(range(10))
> ```
Thanks, but this doesn't help me to save time during initial loading, right? | [
-0.38979572057724,
-0.13344939053058624,
-0.04307626187801361,
0.2874336838722229,
-0.06734951585531235,
0.3263414800167084,
0.5881050229072571,
0.413409948348999,
0.32278189063072205,
-0.10512976348400116,
-0.1278591752052307,
0.14691932499408722,
-0.2003728300333023,
0.29541730880737305,
0.09858117997646332,
0.13155007362365723,
-0.14791107177734375,
0.3770965337753296,
0.027147751301527023,
-0.059894297271966934,
0.13418279588222504,
-0.24227698147296906,
-0.22851361334323883,
-0.18912585079669952,
-0.35377827286720276,
0.1049654632806778,
0.13292759656906128,
0.1386389434337616,
0.29875949025154114,
-0.2095491886138916,
0.3680746853351593,
0.10083142668008804,
0.03525243327021599,
0.04776795208454132,
-0.0001248823245987296,
0.0750855952501297,
0.45114248991012573,
-0.13789837062358856,
-0.35384371876716614,
0.07424771785736084,
-0.19634246826171875,
-0.021709997206926346,
0.46132367849349976,
0.00020812451839447021,
-0.09893374890089035,
-0.22360220551490784,
-0.008198590949177742,
-0.3378179371356964,
0.26985645294189453,
0.004678088240325451,
0.06661054491996765,
0.12198014557361603,
-0.4994736909866333,
0.19982554018497467,
0.16096194088459015,
-0.09613795578479767,
-0.0057039037346839905,
0.45364469289779663,
0.41967493295669556,
-0.023713670670986176,
-0.2915205955505371,
0.1508426070213318,
-0.12465746700763702,
0.27868303656578064,
0.38122057914733887,
-0.002804580144584179,
0.055082645267248154,
-0.5351364612579346,
0.2380150854587555,
0.4037860035896301,
0.5906235575675964,
0.01207805797457695,
-0.34464144706726074,
-0.5732343792915344,
0.07767242193222046,
-0.07672256976366043,
0.11563721299171448,
0.010842185467481613,
-0.4395137131214142,
0.02014947310090065,
-0.4675125181674957,
-0.14510159194469452,
0.05723254382610321,
0.15594381093978882,
0.06365449726581573,
-0.22893747687339783,
0.059471480548381805,
0.11678054928779602,
0.40224769711494446,
0.2256789356470108,
0.2666730284690857,
-0.022775638848543167,
0.0891372486948967,
0.09668733924627304,
-0.3384987711906433,
-0.0022374503314495087,
-0.13838860392570496,
-0.10894285887479782,
-0.00658634677529335,
0.49482882022857666,
-0.03484911471605301,
0.3868882656097412,
0.22137531638145447,
-0.05310383439064026,
0.556867778301239,
-0.18547341227531433,
0.16944408416748047,
0.15094579756259918,
0.32436132431030273,
-0.3351966142654419,
-0.06565818190574646,
-0.028445616364479065,
-0.36828696727752686,
-0.11583367735147476,
0.3064071238040924,
-0.06491003185510635,
0.009648505598306656,
-0.30726882815361023,
-0.14976829290390015,
-0.29186829924583435,
0.11829980462789536,
-0.03948920592665672,
0.19553638994693756,
0.44067662954330444,
0.10249023139476776,
0.04086970537900925,
-0.15149074792861938,
0.1514810025691986,
-0.26489371061325073,
-0.04507695138454437,
-0.10507757216691971,
-0.14811789989471436,
-0.014388937503099442,
0.12877878546714783,
0.32568344473838806,
-0.3727423846721649,
0.3406604826450348,
-0.05256066471338272,
0.4216831922531128,
-0.21468661725521088,
0.1883571296930313,
-0.24234583973884583,
-0.021106787025928497,
0.20511455833911896,
0.01211998239159584,
0.26620781421661377,
0.09314580261707306,
0.20050214231014252,
-0.30582278966903687,
0.4425019323825836,
-0.023213736712932587,
-0.3295592665672302,
0.06675207614898682,
-0.0039351461455225945,
-0.3330651521682739,
0.2456744760274887,
-0.23641309142112732,
0.2625497579574585,
0.12275727093219757,
-0.18799172341823578,
-0.254849910736084,
0.07972659170627594,
-0.09335505217313766,
-0.10369543731212616,
0.7059538960456848,
0.404776394367218,
-0.16114018857479095,
-0.27423182129859924,
-0.1563468724489212,
0.005502000451087952,
0.22647902369499207,
0.17140349745750427,
-0.4195418655872345,
0.27246561646461487,
-0.14867211878299713,
-0.08461441844701767,
0.5257759094238281,
-0.05329478904604912,
-0.35530638694763184,
0.5075136423110962,
-0.09781890362501144,
0.17927567660808563,
-0.04205574840307236,
0.5274142026901245,
0.17030934989452362,
0.05346803367137909,
0.08357646316289902,
0.48604434728622437,
-0.1831192523241043,
0.1709061563014984,
-0.17331072688102722,
-0.09716317802667618,
0.20015662908554077,
0.4845126271247864,
0.04805777594447136,
0.22263038158416748,
-0.08368798345327377,
0.18955448269844055,
0.23464390635490417,
0.01033221185207367,
-0.10976283252239227,
0.188272163271904,
-0.19870950281620026,
0.05247034132480621,
0.05904221534729004,
-0.29004526138305664,
-0.5667812824249268,
0.36353352665901184,
0.1825133115053177,
-0.3131011724472046,
-0.04568970203399658,
-0.006945021450519562,
-0.14854001998901367,
-0.10562706738710403,
-0.0016562305390834808,
-0.05521967634558678,
-0.17988377809524536,
-0.031693294644355774,
-0.08051031827926636,
-0.3523348271846771,
-0.5034120082855225,
0.1495625376701355,
0.012889368459582329,
0.02239898592233658,
-0.3498222231864929,
0.12423151731491089,
0.39398521184921265,
-0.04078100994229317,
-0.0031096898019313812,
-0.12563350796699524,
-0.07046713680028915,
-0.24745208024978638,
-0.06275254487991333,
0.25250861048698425,
0.15863582491874695,
0.22640623152256012,
0.055146362632513046,
0.11693571507930756,
0.004943126812577248,
-0.10454589128494263,
0.35891956090927124,
-0.01832544058561325,
0.05822611600160599,
-0.1590261161327362,
-0.11577638238668442,
0.40278559923171997,
-0.49919411540031433,
0.3992656469345093,
0.04610084742307663,
-0.2961283326148987,
0.13845381140708923,
-0.1558866798877716,
-0.1263759732246399,
-0.12432405352592468,
0.42815065383911133,
-0.23827196657657623,
0.37683266401290894,
0.23244576156139374,
-0.12942758202552795,
-0.08689207583665848,
0.18012727797031403,
-0.029415002092719078,
-0.029611513018608093,
0.27578163146972656,
-0.46259546279907227,
-0.0038562100380659103,
-0.1444077044725418,
-0.2255130112171173,
0.11657789349555969,
0.1327688992023468,
0.10264000296592712,
-0.20263159275054932,
0.2638780474662781,
-0.07577581703662872,
0.15968526899814606,
0.09180392324924469,
0.0680416077375412,
0.18948176503181458,
-0.15788763761520386,
-0.1431484967470169,
-0.17235466837882996,
0.08570675551891327,
0.09091649204492569,
0.09732083231210709,
-0.2845918536186218,
0.06809552758932114,
-0.3907660245895386,
-0.13172858953475952,
0.14569208025932312,
-0.034110475331544876,
0.018414247781038284,
-0.11084974557161331,
0.018817957490682602,
0.3021570146083832,
0.08992795646190643,
0.14851334691047668,
-0.3078199028968811,
0.11530038714408875,
-0.11084526032209396,
-0.4024534523487091,
-0.229522705078125,
-0.2652052640914917,
-0.013165391981601715,
0.010063815861940384,
0.4650537073612213,
0.1293187439441681,
0.31661349534988403,
-0.22622515261173248,
-0.2899063229560852,
0.16886965930461884,
-0.06211457401514053,
-0.08285009860992432,
0.21784162521362305,
0.2649896740913391,
-0.08790484070777893,
0.34886622428894043,
0.20203812420368195,
-0.3175085484981537,
0.06376989185810089,
-0.09097284823656082,
-0.045995984226465225,
0.06857368350028992,
0.2346409261226654,
0.36968958377838135,
0.018465004861354828,
-0.13307049870491028,
-0.04084897041320801,
-0.3367766737937927,
0.33082425594329834,
0.07210704684257507,
0.12031194567680359,
0.05987049639225006,
-0.14493177831172943,
-0.2146126627922058,
-0.02773476205766201,
0.1651485413312912,
0.13402362167835236,
-0.24004876613616943,
0.39203038811683655,
0.17169353365898132,
-0.05412345752120018,
-0.07712168991565704,
-0.09843233227729797,
-0.1642771065235138,
0.2027927041053772,
-0.6553074717521667,
-0.026306360960006714,
-0.1602383255958557,
-0.003959484398365021,
-0.14444595575332642,
-0.28954261541366577,
-0.06631925702095032,
-0.15311232209205627,
0.08698336035013199,
0.19065362215042114,
-0.17310327291488647,
-0.16521072387695312,
-0.3035850524902344,
-0.014161184430122375,
-0.013946793973445892,
0.34821081161499023,
-0.1458369791507721,
0.7618278861045837,
0.018071316182613373,
-0.1231319010257721,
-0.11127512156963348,
-0.16782940924167633,
0.05561123788356781,
-0.4137708842754364,
-0.37226006388664246,
-0.11331812292337418,
-0.07759328186511993,
-0.21218468248844147,
0.08453798294067383,
-0.07319104671478271,
-0.311957448720932,
-0.19382086396217346,
-0.03689390420913696,
-0.31581947207450867,
-0.34523773193359375,
0.4600546061992645,
-0.544950008392334,
-0.19266608357429504,
0.010377306491136551,
0.2554742693901062,
0.0034889671951532364,
-0.29604992270469666,
-0.028195666149258614,
0.08951719850301743,
0.4994567036628723,
-0.24663975834846497,
0.065524622797966,
0.20409367978572845,
-0.2391667664051056,
0.11758946627378464,
-0.13029688596725464,
0.14705313742160797,
0.027538638561964035,
-0.22282347083091736,
0.2587994933128357,
0.19055427610874176,
0.6641137003898621,
0.06207650154829025,
0.1650300920009613,
-0.0006721392273902893,
-0.5782955288887024,
-0.3459761142730713,
0.04205312207341194,
0.12548936903476715,
0.5659903287887573,
0.12326069176197052,
0.34538534283638,
-0.3143947124481201,
-0.10914439707994461,
0.17722643911838531,
0.37345001101493835,
-0.27093106508255005,
-0.09935182332992554,
-0.3310467302799225,
0.0643773078918457,
-0.3629302680492401,
0.07579898834228516,
-0.03018626943230629,
-0.2193673849105835,
0.12530671060085297,
-0.17546148598194122,
-0.321351557970047,
0.03618740290403366,
0.16972383856773376,
0.31842857599258423,
0.20162391662597656,
-0.046459000557661057,
0.7245820760726929,
0.20896077156066895,
-0.12730254232883453,
0.1899072378873825,
0.43185943365097046,
0.012451985850930214,
-0.28277114033699036,
0.1826743185520172,
-0.04193302243947983,
0.19662906229496002,
0.4361206293106079,
-0.06909914314746857,
-0.1287863552570343,
0.12681055068969727,
0.1753309965133667,
-0.4010189175605774,
0.09335584938526154,
0.0486769899725914,
-0.06807170808315277,
-0.3309878408908844,
-0.5623370409011841,
0.4198661148548126,
-0.1416042596101761,
0.03244510293006897,
0.5722673535346985,
-0.2131982296705246,
0.00920370314270258,
0.22317074239253998,
-0.0034696757793426514,
0.8704783916473389,
-0.3482629060745239,
0.027755407616496086,
-0.4580460786819458,
0.10004475712776184,
0.4199777841567993,
-0.16957390308380127,
0.025294791907072067,
-0.4020352065563202,
-0.6505178213119507,
0.08696530759334564,
-0.2857320308685303,
-0.29767364263534546,
0.27687695622444153,
0.2865985333919525,
0.2201916128396988,
-0.43900662660598755,
0.04348529875278473,
-0.12670058012008667,
0.32497209310531616,
0.05817272514104843,
-0.292292058467865,
-0.0835152119398117,
-0.0030882321298122406,
0.016121387481689453,
0.1167086660861969,
0.08942633867263794,
0.11054566502571106,
-0.07836773246526718,
0.09964306652545929,
-0.3569297194480896,
0.1079927608370781,
-0.14706221222877502,
-0.08762917667627335,
-0.2346372902393341,
-0.3773411512374878,
0.021757084876298904,
0.19891266524791718,
-0.09409299492835999,
0.12579208612442017,
-0.007874606177210808,
0.25294509530067444,
0.009673215448856354,
0.18023553490638733,
0.004462347365915775,
0.10560645908117294,
-0.06815269589424133,
-0.010868079960346222,
-0.06976915895938873,
-0.20795947313308716,
-0.2771332561969757,
-0.40767860412597656,
0.2720378637313843,
0.3147313594818115,
0.11256085336208344,
-0.106487937271595,
-0.27841588854789734,
-0.04450525343418121,
0.20703040063381195,
-0.16908247768878937,
0.026026450097560883,
0.4717268943786621,
-0.03613610938191414,
0.17734549939632416,
0.2816900908946991,
-0.44683632254600525,
0.01821058802306652,
0.36650702357292175,
0.19204124808311462,
0.010721374303102493,
0.476762980222702,
-0.10722048580646515,
-0.3087449073791504,
-0.08097945898771286,
0.11988087743520737,
0.37284114956855774,
-0.47999465465545654,
0.06787113845348358,
-0.04618524760007858,
0.09054180979728699,
-0.13023877143859863,
-0.24317067861557007,
-0.06813959777355194,
0.04651060700416565,
-0.30001088976860046,
-0.4206506907939911,
-0.19584590196609497,
0.3384420871734619,
-0.009977731853723526,
0.30709636211395264,
-0.22921857237815857,
-0.1389254927635193,
-0.1769346296787262,
0.48986122012138367,
-0.13898175954818726,
-0.08988922834396362,
-0.1395273506641388,
0.35212841629981995,
0.05982249975204468,
0.0810922235250473,
0.3358609676361084,
-0.1371215134859085,
0.013909721747040749,
0.03469032049179077,
0.1688213050365448,
-0.10912109911441803,
0.04827724024653435,
0.21529611945152283,
-0.20693185925483704,
-0.22076985239982605,
-0.13955774903297424,
-0.12149503082036972,
-0.11644771695137024,
-0.2849538028240204,
0.22339028120040894,
0.17391857504844666,
0.22118934988975525,
-0.14307209849357605,
0.4082687795162201,
-0.05407892167568207,
-0.4761471152305603,
0.22051391005516052,
-0.3257126212120056,
0.35723042488098145,
-0.06990202516317368,
0.24967321753501892,
0.09240998327732086,
0.02237802743911743,
-0.02121063694357872,
-0.1294632852077484,
0.3398742079734802,
-0.13231271505355835,
0.0899544507265091,
0.09732161462306976,
0.2688896656036377,
0.07559201121330261,
0.38049811124801636,
0.8035962581634521,
0.002410417888313532,
0.2768062651157379,
0.04290497303009033,
0.023809203878045082,
-0.10629505664110184,
-0.12922640144824982,
0.06630837917327881,
-0.40518876910209656,
0.0008182190358638763,
0.2570330798625946,
-0.23590143024921417,
0.3035612404346466,
-0.05994716286659241,
-0.2941129505634308,
0.2033013254404068,
-0.10172809660434723,
-0.02652868628501892,
0.3709149658679962,
-0.22670027613639832,
-0.08558666706085205,
0.08883669972419739,
0.3097684979438782,
0.051405373960733414,
0.3724830150604248,
-0.14355790615081787,
0.19459475576877594,
0.031788166612386703,
0.15599757432937622,
-0.32030701637268066,
-0.43695902824401855,
0.03149734437465668,
0.5784887075424194,
0.10367295145988464,
-0.010676510632038116,
-0.12889094650745392,
0.0014407560229301453,
0.1997227668762207,
-0.18674308061599731,
0.003126736730337143,
0.06877866387367249,
0.12810799479484558,
-0.1279008537530899,
0.29182106256484985,
-0.13268806040287018,
-0.265378475189209,
0.1473989486694336,
-0.15400105714797974,
-0.41091305017471313,
-0.1227194219827652,
0.3204585611820221,
0.22287076711654663,
-0.08558040857315063,
0.15278230607509613,
-0.02517940104007721,
0.17106769979000092,
-0.3510504364967346,
0.058706965297460556,
-0.14318111538887024,
0.35402336716651917,
0.48705828189849854,
-0.041361331939697266,
-0.0020716115832328796,
0.09454323351383209,
-0.11074566841125488,
0.0864546000957489,
0.26966020464897156,
-0.03151468187570572,
-0.25368714332580566,
0.33868545293807983,
0.15640473365783691,
0.43191853165626526,
0.05486725643277168,
0.012478142976760864,
-0.06462950259447098,
0.1350504606962204,
-0.1577853262424469,
-0.09440454840660095,
-0.4951860308647156,
0.3235381245613098,
0.12546265125274658,
-0.24729114770889282,
-0.034512244164943695,
-0.12057869881391525,
0.21490368247032166,
-0.5465288758277893,
0.19551120698451996,
-0.28981301188468933,
-0.040884219110012054,
0.3921128809452057,
0.014885872602462769,
-0.04434697702527046,
0.5610265731811523,
0.06938686966896057,
0.6469724178314209,
-0.2507670223712921,
0.06144717335700989,
-0.41716885566711426,
0.06857852637767792,
-0.04657113924622536,
0.00919177196919918,
0.44116976857185364,
0.18991586565971375,
0.35966193675994873,
0.38736391067504883,
0.04763706773519516,
0.0672324076294899,
0.34962913393974304,
0.3305935263633728,
0.060877155512571335,
-0.0464710034430027,
-0.5680050253868103,
0.22405004501342773,
-0.06438396126031876,
-0.309121698141098,
0.19535593688488007,
-0.07973372936248779,
-0.14013540744781494,
0.3824390172958374,
-0.40076756477355957,
0.42215198278427124,
0.3431808650493622,
0.4352889955043793,
-0.23147067427635193,
0.6740884780883789,
-0.0162272397428751,
-0.1307515650987625,
-0.013812866061925888,
-0.5429328083992004,
-0.28854256868362427,
0.3137243986129761,
0.14128200709819794,
-0.16766516864299774,
-0.06876277923583984,
0.016768699511885643,
-0.2636273503303528,
0.1384855955839157,
-0.1935953050851822,
0.015905218198895454,
-0.09436821937561035,
-0.38659369945526123,
0.11145343631505966,
0.2952994406223297,
0.22308902442455292,
0.1530788093805313,
-0.14090047776699066,
-0.1901382952928543,
-0.1292937994003296,
-0.025709332898259163,
0.5004870891571045,
-0.16219623386859894,
-0.015570309944450855,
-0.009025264531373978,
0.337085485458374,
0.11744238436222076,
0.22913017868995667,
-0.5601890087127686,
-0.006613343954086304,
0.323142409324646,
-0.21785283088684082,
-0.013182152062654495,
0.010106141678988934,
0.07686322927474976,
-0.053316667675971985,
-0.2735559046268463,
0.13063059747219086,
0.056361205875873566,
-0.0698733925819397,
-0.40306082367897034,
-0.32175302505493164
] |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Indeed by default load_dataset would download and prepare everything as Arrow files. And passing `split=train[:10]` memory maps only the beginning of the full dataset that has been prepared on disk.
If you don't want to download everything, you can use streaming :
```python
ids = load_dataset(..., streaming=True)
first_samples = list(ids["train"].take(10))
```
To get a Dataset you can use
```python
ds = Dataset.from_generator(ids.take(10).__iter__)
```
edit: fixed small bug | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks! | 67 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks!
Indeed by default load_dataset would download and prepare everything as Arrow files. And passing `split=train[:10]` memory maps only the beginning of the full dataset that has been prepared on disk.
If you don't want to download everything, you can use streaming :
```python
ids = load_dataset(..., streaming=True)
first_samples = list(ids["train"].take(10))
```
To get a Dataset you can use
```python
ds = Dataset.from_generator(ids.take(10).__iter__)
```
edit: fixed small bug | [
-0.4390907287597656,
-0.1243741512298584,
-0.00954718329012394,
0.3589228391647339,
-0.059830598533153534,
0.35498034954071045,
0.5410905480384827,
0.4510706961154938,
0.31206050515174866,
-0.08555996417999268,
-0.0919952392578125,
0.14091995358467102,
-0.20304206013679504,
0.1749744713306427,
0.08939583599567413,
0.12425091862678528,
-0.18517044186592102,
0.36089372634887695,
-0.015307553112506866,
-0.09070324897766113,
0.11329586803913116,
-0.20543254911899567,
-0.25861069560050964,
-0.18468300998210907,
-0.3978898525238037,
0.07201743125915527,
0.07246436178684235,
0.1662687361240387,
0.2903155982494354,
-0.21423952281475067,
0.3668001592159271,
0.08866111189126968,
0.010644420981407166,
0.08244960755109787,
-0.00012467059423215687,
0.061743512749671936,
0.4871138334274292,
-0.13820335268974304,
-0.397255003452301,
0.05121133476495743,
-0.22358250617980957,
-0.04358465597033501,
0.45967957377433777,
-0.031524576246738434,
-0.09403514117002487,
-0.24365143477916718,
0.024952327832579613,
-0.3419942855834961,
0.30958354473114014,
0.0018540667369961739,
0.0684104710817337,
0.09393907338380814,
-0.45504117012023926,
0.19319529831409454,
0.2488996982574463,
-0.046271927654743195,
0.0064050909131765366,
0.4137028157711029,
0.3528302013874054,
-0.04214062541723251,
-0.32054242491722107,
0.14682339131832123,
-0.1110650897026062,
0.26422810554504395,
0.3918692469596863,
-0.002936551347374916,
-0.010278075933456421,
-0.48943963646888733,
0.19171065092086792,
0.4148652255535126,
0.5532663464546204,
0.0008686035871505737,
-0.3487846851348877,
-0.5787094235420227,
0.06086909770965576,
-0.09212438762187958,
0.1557915359735489,
0.04670196771621704,
-0.48280033469200134,
-0.013141322880983353,
-0.469722181558609,
-0.18210379779338837,
0.053826428949832916,
0.17044270038604736,
0.062177784740924835,
-0.26334625482559204,
0.03894753381609917,
0.14273473620414734,
0.3917011320590973,
0.24466431140899658,
0.2876700758934021,
-0.059937506914138794,
0.10090647637844086,
0.1018911674618721,
-0.3229580819606781,
0.030149422585964203,
-0.14561784267425537,
-0.17243969440460205,
0.02790497988462448,
0.44763827323913574,
-0.016445089131593704,
0.41567111015319824,
0.20982380211353302,
-0.018567129969596863,
0.586456835269928,
-0.1589333713054657,
0.14905327558517456,
0.1771908849477768,
0.30714571475982666,
-0.3128095269203186,
-0.04928096756339073,
-0.04242924600839615,
-0.3690849840641022,
-0.1325983852148056,
0.2861339747905731,
-0.04992936551570892,
-0.026251504197716713,
-0.3216552734375,
-0.12670688331127167,
-0.32156553864479065,
0.05791056156158447,
-0.020517511293292046,
0.2278386801481247,
0.4341925084590912,
0.04712045565247536,
0.07698589563369751,
-0.1669575721025467,
0.1536698043346405,
-0.24424679577350616,
-0.05372067168354988,
-0.1128726527094841,
-0.18907226622104645,
-0.06295409053564072,
0.1381271779537201,
0.33525481820106506,
-0.33405399322509766,
0.37645676732063293,
-0.10462702065706253,
0.3897857069969177,
-0.18284574151039124,
0.2165859192609787,
-0.2271174043416977,
0.03346787393093109,
0.20339182019233704,
0.07005584239959717,
0.28087496757507324,
0.06289827078580856,
0.2183784395456314,
-0.30967390537261963,
0.4038923978805542,
-0.032548241317272186,
-0.3532986342906952,
0.09134486317634583,
0.005519749131053686,
-0.33476436138153076,
0.29441508650779724,
-0.22800207138061523,
0.21412895619869232,
0.15142035484313965,
-0.19092383980751038,
-0.2548082768917084,
0.05594312399625778,
-0.059006467461586,
-0.13278499245643616,
0.6862708926200867,
0.41574418544769287,
-0.08527976274490356,
-0.2546842396259308,
-0.16994263231754303,
0.03050520271062851,
0.28481578826904297,
0.1554323434829712,
-0.4142199456691742,
0.2460094392299652,
-0.17647996544837952,
-0.11165174841880798,
0.5391455292701721,
-0.0837647020816803,
-0.3720308542251587,
0.5054543614387512,
-0.046344906091690063,
0.2150779664516449,
-0.07348506897687912,
0.5175056457519531,
0.17858712375164032,
0.07788317650556564,
0.1250842958688736,
0.49037718772888184,
-0.16079582273960114,
0.15034733712673187,
-0.19868507981300354,
-0.11752165108919144,
0.1305377185344696,
0.4655197858810425,
0.043326377868652344,
0.1846955418586731,
-0.061212100088596344,
0.25440436601638794,
0.24237149953842163,
0.02663443237543106,
-0.0628475770354271,
0.18065395951271057,
-0.1476312279701233,
0.021261021494865417,
0.01961878128349781,
-0.2737841308116913,
-0.5942502617835999,
0.3789076507091522,
0.18811048567295074,
-0.29730653762817383,
-0.12853051722049713,
-0.009142939001321793,
-0.06004128232598305,
-0.09926904737949371,
-0.042808856815099716,
-0.09517541527748108,
-0.18268506228923798,
0.02498307079076767,
-0.06552589684724808,
-0.36209410429000854,
-0.45730552077293396,
0.14615732431411743,
-0.029216282069683075,
0.04277108237147331,
-0.37455418705940247,
0.07487096637487411,
0.3959655165672302,
-0.0756111741065979,
-0.003384683281183243,
-0.1306905746459961,
-0.04067046940326691,
-0.2762909233570099,
-0.06552351266145706,
0.31189247965812683,
0.16927121579647064,
0.21001002192497253,
0.025911666452884674,
0.10445669293403625,
0.029699649661779404,
-0.1590607464313507,
0.3534938395023346,
-0.016589611768722534,
0.03265788033604622,
-0.18706023693084717,
-0.12502196431159973,
0.37509214878082275,
-0.4625289738178253,
0.43250709772109985,
0.05690377950668335,
-0.23842719197273254,
0.09191939979791641,
-0.08961759507656097,
-0.18013952672481537,
-0.13396087288856506,
0.4117867946624756,
-0.22131294012069702,
0.38112345337867737,
0.20513248443603516,
-0.10673022270202637,
-0.13530045747756958,
0.24342194199562073,
-0.017795473337173462,
-0.029497921466827393,
0.2922227382659912,
-0.4667389988899231,
-0.043168406933546066,
-0.1157321035861969,
-0.17728722095489502,
0.12033791840076447,
0.12671737372875214,
0.18006913363933563,
-0.15019139647483826,
0.21503862738609314,
-0.0623878575861454,
0.15589670836925507,
0.09955252707004547,
0.09852583706378937,
0.16020821034908295,
-0.17217041552066803,
-0.16345053911209106,
-0.1511029601097107,
0.09318545460700989,
0.14018851518630981,
0.17272891104221344,
-0.24108754098415375,
0.04885643720626831,
-0.3929867446422577,
-0.07209107279777527,
0.08885250985622406,
-0.0627802386879921,
0.02151094190776348,
-0.15012678503990173,
-0.01057467982172966,
0.30566394329071045,
0.05770794674754143,
0.15291205048561096,
-0.2531353235244751,
0.11471761018037796,
-0.09947235137224197,
-0.3873574435710907,
-0.20678414404392242,
-0.2713005542755127,
-0.042551420629024506,
0.0034951120615005493,
0.4652981162071228,
0.14064958691596985,
0.31946471333503723,
-0.23610690236091614,
-0.3004394769668579,
0.14975973963737488,
-0.04247720539569855,
-0.018164336681365967,
0.18668372929096222,
0.26255282759666443,
-0.062295764684677124,
0.3132276237010956,
0.23154623806476593,
-0.3106159269809723,
0.0913785770535469,
-0.11622646450996399,
-0.04811912029981613,
0.0990208312869072,
0.19929473102092743,
0.31927332282066345,
-0.004149425774812698,
-0.15411406755447388,
-0.058949291706085205,
-0.3423473834991455,
0.30663102865219116,
0.06567585468292236,
0.14266550540924072,
0.08332536369562149,
-0.06804006546735764,
-0.16058191657066345,
-0.048047419637441635,
0.12803329527378082,
0.16787350177764893,
-0.29911014437675476,
0.4019072651863098,
0.13119620084762573,
-0.04778009280562401,
-0.06571419537067413,
-0.09726730734109879,
-0.1313735544681549,
0.3352137804031372,
-0.6772629022598267,
-0.027300432324409485,
-0.17038878798484802,
0.033212509006261826,
-0.14113569259643555,
-0.27091169357299805,
-0.036202311515808105,
-0.07138793170452118,
0.07220636308193207,
0.17874720692634583,
-0.1416569948196411,
-0.13915970921516418,
-0.3026614785194397,
0.03903239220380783,
-0.002530895173549652,
0.31810465455055237,
-0.08362308144569397,
0.8408750295639038,
0.08046326041221619,
-0.15866287052631378,
-0.17475655674934387,
-0.21855071187019348,
0.07580238580703735,
-0.42336973547935486,
-0.374439537525177,
-0.11620553582906723,
-0.1546669900417328,
-0.23470193147659302,
0.08047952502965927,
-0.067583367228508,
-0.3148536682128906,
-0.22108271718025208,
0.02306447923183441,
-0.2732017934322357,
-0.3722103536128998,
0.4572872519493103,
-0.5555379390716553,
-0.12965011596679688,
0.0005073733627796173,
0.2844172418117523,
0.0037917476147413254,
-0.31504929065704346,
-0.001848483458161354,
0.07188141345977783,
0.48257121443748474,
-0.20632579922676086,
0.019905637949705124,
0.1838175356388092,
-0.20224621891975403,
0.13397479057312012,
-0.1120106652379036,
0.16906173527240753,
0.0006317123770713806,
-0.21580392122268677,
0.23930689692497253,
0.175258606672287,
0.7011704444885254,
0.046966612339019775,
0.13562464714050293,
0.0026903674006462097,
-0.5243273973464966,
-0.3551691174507141,
0.05535992607474327,
0.09239841997623444,
0.5564286708831787,
0.1381853222846985,
0.34615376591682434,
-0.3470875918865204,
-0.14432641863822937,
0.16732783615589142,
0.3835872709751129,
-0.24739889800548553,
-0.04584617167711258,
-0.33459123969078064,
0.06226456165313721,
-0.353001207113266,
0.05119139701128006,
-0.0089590884745121,
-0.2111572027206421,
0.11837897449731827,
-0.1968286782503128,
-0.2791292667388916,
0.0479116290807724,
0.12881329655647278,
0.31759122014045715,
0.2515503764152527,
-0.05383889377117157,
0.7043631076812744,
0.286611407995224,
-0.07966850697994232,
0.25438010692596436,
0.46544596552848816,
0.008973753079771996,
-0.2924412190914154,
0.21370521187782288,
-0.05128135532140732,
0.2190006673336029,
0.45662012696266174,
-0.08067531883716583,
-0.18407946825027466,
0.1377420425415039,
0.17300303280353546,
-0.416202187538147,
0.18726082146167755,
0.10707934945821762,
-0.06716994196176529,
-0.3173203766345978,
-0.6200621724128723,
0.4120139181613922,
-0.10595652461051941,
0.013164602220058441,
0.6139169931411743,
-0.23666547238826752,
-0.0473322868347168,
0.23880143463611603,
-0.024221226572990417,
0.9206636548042297,
-0.3423321843147278,
0.05407153442502022,
-0.41344955563545227,
0.11309814453125,
0.42943650484085083,
-0.23406162858009338,
0.06338094919919968,
-0.3555700480937958,
-0.5782497525215149,
0.09320700168609619,
-0.29485002160072327,
-0.2621358335018158,
0.3043004870414734,
0.2789260745048523,
0.2733878493309021,
-0.4027974009513855,
0.073087677359581,
-0.12476705014705658,
0.32498589158058167,
0.04906917363405228,
-0.2981796860694885,
0.0026896949857473373,
0.0027852505445480347,
-0.010269619524478912,
0.14853531122207642,
0.10348821431398392,
0.06144005060195923,
-0.07198402285575867,
0.11683754622936249,
-0.36181217432022095,
0.17080256342887878,
-0.15389873087406158,
-0.07794640958309174,
-0.2716822326183319,
-0.360603928565979,
-0.008905457332730293,
0.19881829619407654,
-0.14316044747829437,
0.13903361558914185,
-0.027835922315716743,
0.3095657527446747,
0.00019281357526779175,
0.15351992845535278,
0.023454921320080757,
0.11575743556022644,
-0.04747525602579117,
-0.01032203622162342,
-0.08708320558071136,
-0.14048847556114197,
-0.30246323347091675,
-0.44329380989074707,
0.28385844826698303,
0.2295144647359848,
0.18194375932216644,
-0.05763226002454758,
-0.2629185616970062,
-0.014130629599094391,
0.16480371356010437,
-0.1811341941356659,
0.031004060059785843,
0.4356185793876648,
-0.06538005918264389,
0.15993458032608032,
0.24124902486801147,
-0.41764506697654724,
0.007694505155086517,
0.3326433598995209,
0.14053571224212646,
-0.016334250569343567,
0.49460604786872864,
-0.06595965474843979,
-0.2854326367378235,
-0.09142100811004639,
0.07018937915563583,
0.36266079545021057,
-0.4906565546989441,
0.016047418117523193,
-0.14016646146774292,
0.12932778894901276,
-0.14704883098602295,
-0.21358159184455872,
-0.031253695487976074,
0.0025915130972862244,
-0.2909463047981262,
-0.38461869955062866,
-0.23587259650230408,
0.30430883169174194,
0.028373852372169495,
0.3561429977416992,
-0.2441740334033966,
-0.14908212423324585,
-0.18409745395183563,
0.4788152873516083,
-0.14735066890716553,
-0.13547950983047485,
-0.12098410725593567,
0.3717418313026428,
0.030233733355998993,
0.05743124336004257,
0.36075520515441895,
-0.15305373072624207,
0.008938765153288841,
0.012822039425373077,
0.15070489048957825,
-0.0927903801202774,
0.06235853210091591,
0.21752256155014038,
-0.1928994357585907,
-0.2532458007335663,
-0.15464472770690918,
-0.1551368087530136,
-0.10958825051784515,
-0.2964705228805542,
0.27112746238708496,
0.15714088082313538,
0.20255860686302185,
-0.07906486839056015,
0.35777536034584045,
-0.028381675481796265,
-0.4744468927383423,
0.1999601274728775,
-0.3284810781478882,
0.33576500415802,
-0.09039780497550964,
0.23049063980579376,
0.10492729395627975,
-0.013648048043251038,
-0.050589319318532944,
-0.09147845953702927,
0.3161883056163788,
-0.14196547865867615,
0.13916873931884766,
0.06320342421531677,
0.2553737759590149,
0.032451171427965164,
0.3863902986049652,
0.7914862632751465,
0.03206619620323181,
0.2510874271392822,
0.06219824403524399,
0.03610844910144806,
-0.08736614882946014,
-0.0766313374042511,
0.003329329192638397,
-0.35747841000556946,
0.020492274314165115,
0.20122414827346802,
-0.23135624825954437,
0.26759037375450134,
-0.09781220555305481,
-0.2703627347946167,
0.24969512224197388,
-0.1266779601573944,
-0.0305246040225029,
0.3942696154117584,
-0.2222394198179245,
-0.05841188505291939,
0.06651738286018372,
0.31558340787887573,
0.06384767591953278,
0.3933948874473572,
-0.13865292072296143,
0.22746402025222778,
0.06566370278596878,
0.13373367488384247,
-0.33305421471595764,
-0.4532151520252228,
0.02895335480570793,
0.5823655128479004,
0.12338992953300476,
0.03217020258307457,
-0.17879649996757507,
0.09272542595863342,
0.1568511724472046,
-0.22260871529579163,
-0.02457921952009201,
0.02772575616836548,
0.12346646934747696,
-0.12369902431964874,
0.27037397027015686,
-0.16654472053050995,
-0.28672081232070923,
0.1841423511505127,
-0.15036197006702423,
-0.4229304790496826,
-0.12297897040843964,
0.314450204372406,
0.1926807165145874,
-0.08016882091760635,
0.1627957820892334,
-0.02314078062772751,
0.18590833246707916,
-0.37045761942863464,
0.08396630734205246,
-0.14961554110050201,
0.2945937216281891,
0.4234285354614258,
-0.04560679942369461,
0.02323349006474018,
0.14014919102191925,
-0.14625413715839386,
0.06490931659936905,
0.283711314201355,
-0.04096897691488266,
-0.24100036919116974,
0.36991599202156067,
0.1415967047214508,
0.3523693084716797,
0.04197448492050171,
0.019317978993058205,
-0.0881008431315422,
0.11673016846179962,
-0.17879469692707062,
-0.06157832220196724,
-0.45139211416244507,
0.3330448269844055,
0.09552879631519318,
-0.24671205878257751,
-0.005209296941757202,
-0.11881666630506516,
0.1356499195098877,
-0.5095487236976624,
0.2667672038078308,
-0.30507802963256836,
-0.04056832194328308,
0.3428763747215271,
0.013325314968824387,
-0.08532580733299255,
0.5955785512924194,
0.10479012131690979,
0.6037487983703613,
-0.28609251976013184,
0.021967992186546326,
-0.4497500956058502,
0.051051005721092224,
-0.07641413807868958,
0.021376533433794975,
0.41672980785369873,
0.23741023242473602,
0.36726629734039307,
0.3993622660636902,
-0.03205464780330658,
0.039210498332977295,
0.30382534861564636,
0.32669374346733093,
0.016762666404247284,
-0.02999139204621315,
-0.5538932681083679,
0.22885192930698395,
-0.026000017300248146,
-0.37578222155570984,
0.15132014453411102,
-0.10387319326400757,
-0.14682117104530334,
0.38268011808395386,
-0.3963889479637146,
0.4704846739768982,
0.31178486347198486,
0.4411975145339966,
-0.2132033109664917,
0.6741055250167847,
0.030426636338233948,
-0.18129050731658936,
-0.07071180641651154,
-0.528251588344574,
-0.2414502650499344,
0.3058006763458252,
0.11808037757873535,
-0.1194353848695755,
-0.0391206294298172,
0.05022105574607849,
-0.34447410702705383,
0.12053949385881424,
-0.11229225248098373,
-0.041707783937454224,
-0.0976489931344986,
-0.3649975061416626,
0.080192930996418,
0.3039754629135132,
0.287458211183548,
0.1700238585472107,
-0.13888795673847198,
-0.2281627058982849,
-0.1652366816997528,
0.021446743980050087,
0.5017314553260803,
-0.15599501132965088,
0.00849774107336998,
0.01697665825486183,
0.32411161065101624,
0.13893914222717285,
0.21524465084075928,
-0.6159008741378784,
-0.01240425556898117,
0.3314950168132782,
-0.2444162666797638,
-0.03192058950662613,
-0.008557815104722977,
0.09159502387046814,
-0.08358936011791229,
-0.23479843139648438,
0.18374165892601013,
0.014274369925260544,
-0.13618819415569305,
-0.35515040159225464,
-0.3443238139152527
] |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Thanks @lhoestq, but I don't think it is 100% accurate, as it doesn't keep the dataset structure exactly the same.
To load the full dataset, I do:
```
data = load_dataset("json", data_files="a.json")
train_data = data["train"].shuffle()
```
But when I am changing it as per your instructions:
```
ids = load_dataset("json", data_files="a.json", streaming=True)
data = Dataset.from_generator(ids["train"].take(1).__iter__)
train_data = data["train"].shuffle()
```
It throws KeyError.
I need a simple way, like you suggested, to have a subset of a Dataset, which exactly the same attributes.
| I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks! | 82 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks!
Thanks @lhoestq, but I don't think it is 100% accurate, as it doesn't keep the dataset structure exactly the same.
To load the full dataset, I do:
```
data = load_dataset("json", data_files="a.json")
train_data = data["train"].shuffle()
```
But when I am changing it as per your instructions:
```
ids = load_dataset("json", data_files="a.json", streaming=True)
data = Dataset.from_generator(ids["train"].take(1).__iter__)
train_data = data["train"].shuffle()
```
It throws KeyError.
I need a simple way, like you suggested, to have a subset of a Dataset, which exactly the same attributes.
| [
-0.32418379187583923,
-0.06388330459594727,
-0.007942242547869682,
0.4085162281990051,
0.016670741140842438,
0.3319087326526642,
0.5023546814918518,
0.3716799020767212,
0.15747979283332825,
0.013587534427642822,
-0.14452987909317017,
0.2664686441421509,
-0.20985522866249084,
0.24643559753894806,
0.12978513538837433,
0.08581672608852386,
-0.1839275062084198,
0.3679361939430237,
0.006029851734638214,
-0.09344860911369324,
0.1960713416337967,
-0.2633962631225586,
-0.18412403762340546,
-0.2336740642786026,
-0.31154802441596985,
0.09653313457965851,
0.1089218407869339,
0.06920190155506134,
0.1961018145084381,
-0.18856437504291534,
0.32938075065612793,
0.13645870983600616,
-0.02986760437488556,
0.09881822019815445,
-0.00012251680891495198,
0.07878415286540985,
0.4788915514945984,
-0.19108441472053528,
-0.4390967786312103,
-0.07863633334636688,
-0.2341693937778473,
0.06806259602308273,
0.4022974371910095,
-0.03206610679626465,
-0.09242522716522217,
-0.36254337430000305,
-0.02215377800166607,
-0.34751614928245544,
0.34014588594436646,
-0.09085968136787415,
0.08928796648979187,
0.09180193394422531,
-0.5028395056724548,
0.21203655004501343,
0.19859643280506134,
0.027175072580575943,
-0.028901735320687294,
0.43824708461761475,
0.3251429796218872,
-0.00016543641686439514,
-0.2683198153972626,
0.09930768609046936,
-0.06990445405244827,
0.33722174167633057,
0.4995884299278259,
-0.046489521861076355,
-0.12763971090316772,
-0.48674169182777405,
0.20721033215522766,
0.5411710143089294,
0.5974307656288147,
0.007208146154880524,
-0.46105584502220154,
-0.5779272317886353,
0.10566724836826324,
-0.11873964220285416,
0.07116042822599411,
0.017862627282738686,
-0.38124337792396545,
-0.05928732082247734,
-0.5337569117546082,
-0.13160280883312225,
0.05873800814151764,
0.1864413172006607,
0.08859112858772278,
-0.23293253779411316,
0.08232974261045456,
0.1397574543952942,
0.29887235164642334,
0.19735121726989746,
0.2957827150821686,
-0.13346335291862488,
-0.06568208336830139,
0.07875961065292358,
-0.3644586205482483,
-0.07442034780979156,
-0.20717424154281616,
-0.1731371283531189,
0.1358700692653656,
0.46838486194610596,
0.0021933726966381073,
0.3906520903110504,
0.16193898022174835,
0.02312404289841652,
0.5341276526451111,
-0.03111252561211586,
0.30235689878463745,
0.1364327073097229,
0.29449033737182617,
-0.3346158564090729,
-0.080150306224823,
0.004331134259700775,
-0.30446797609329224,
-0.07153945416212082,
0.3551799952983856,
-0.030219119042158127,
-0.0008976440876722336,
-0.3544616997241974,
-0.13575418293476105,
-0.2765505611896515,
-0.020202502608299255,
-0.10721087455749512,
0.1789080649614334,
0.41631847620010376,
0.15776248276233673,
0.029812470078468323,
-0.208411306142807,
0.21505390107631683,
-0.24606387317180634,
0.016663003712892532,
-0.1462332308292389,
-0.09376987814903259,
-0.05967262387275696,
0.12589402496814728,
0.29461953043937683,
-0.3433125615119934,
0.3925367593765259,
-0.07121060788631439,
0.37475907802581787,
-0.23004178702831268,
0.17589937150478363,
-0.11695736646652222,
-0.06812342256307602,
0.10752275586128235,
0.08060649037361145,
0.26031702756881714,
0.0553787425160408,
0.09394709765911102,
-0.340668648481369,
0.38638949394226074,
0.03619595244526863,
-0.33852654695510864,
0.11921815574169159,
0.018423166126012802,
-0.5067581534385681,
0.18827037513256073,
-0.30983632802963257,
0.19708192348480225,
0.06322050094604492,
-0.17233051359653473,
-0.2180580496788025,
0.05758100748062134,
-0.0768919438123703,
-0.10144980996847153,
0.598429799079895,
0.40310466289520264,
-0.1711576133966446,
-0.324303537607193,
-0.08901108056306839,
0.07758626341819763,
0.1546168029308319,
0.15526600182056427,
-0.45108646154403687,
0.27093634009361267,
-0.1415116786956787,
-0.09136857092380524,
0.5631625056266785,
0.09728667140007019,
-0.4199681580066681,
0.43646231293678284,
-0.068852998316288,
0.18124522268772125,
-0.024042315781116486,
0.46479853987693787,
0.1899872124195099,
0.11606667190790176,
0.16304653882980347,
0.38828736543655396,
-0.12296709418296814,
0.17777712643146515,
-0.11786848306655884,
-0.18621574342250824,
0.17888973653316498,
0.38299989700317383,
-0.026762034744024277,
0.11816179007291794,
-0.09078285843133926,
0.20514699816703796,
0.2261810004711151,
-0.08292940258979797,
-0.0739206001162529,
0.10937628149986267,
-0.08770376443862915,
0.0431932769715786,
0.013297755271196365,
-0.28335875272750854,
-0.6271427273750305,
0.41980066895484924,
0.18300758302211761,
-0.3115328848361969,
-0.05280853807926178,
-0.08178435266017914,
-0.1408146321773529,
-0.18280763924121857,
-0.08493474125862122,
-0.20594094693660736,
-0.17514444887638092,
0.05168057233095169,
-0.03473145142197609,
-0.4249393939971924,
-0.5370696783065796,
0.026717882603406906,
0.060912005603313446,
0.004332433920353651,
-0.4622332453727722,
0.17925262451171875,
0.3367021977901459,
-0.0751500055193901,
0.05115672945976257,
-0.10823098570108414,
-0.023793615400791168,
-0.3062569499015808,
-0.08266112208366394,
0.2656748294830322,
0.19203606247901917,
0.25167712569236755,
0.030047506093978882,
0.1716964840888977,
0.0205066055059433,
0.03847390040755272,
0.3271810710430145,
-0.03257254138588905,
0.018756557255983353,
-0.1773369461297989,
-0.1906191110610962,
0.43893200159072876,
-0.4536786377429962,
0.4703623056411743,
0.08401396870613098,
-0.26062655448913574,
0.12305545806884766,
-0.13712790608406067,
-0.22428381443023682,
-0.10450362414121628,
0.436536580324173,
-0.2100643366575241,
0.2924880087375641,
0.2224246710538864,
-0.13465306162834167,
-0.08574169129133224,
0.22231915593147278,
-0.0193663127720356,
-0.07112274318933487,
0.2532747983932495,
-0.5147754549980164,
0.05324947088956833,
-0.08979237824678421,
-0.012415621429681778,
0.15169507265090942,
0.13771629333496094,
0.09294899553060532,
-0.09433990716934204,
0.2413484752178192,
-0.06720881164073944,
0.17351633310317993,
0.11221911758184433,
0.1122756376862526,
0.19926029443740845,
-0.12191305309534073,
-0.15756206214427948,
-0.1924842894077301,
0.022772204130887985,
0.17248846590518951,
0.21156977117061615,
-0.26644429564476013,
0.05590897053480148,
-0.420082151889801,
0.022719822824001312,
0.029954135417938232,
-0.09324956685304642,
0.028440577909350395,
-0.12332163751125336,
0.03216615691781044,
0.43572714924812317,
-0.004779858514666557,
0.19668687880039215,
-0.28941860795021057,
0.07012487947940826,
-0.11533085256814957,
-0.34045690298080444,
-0.1596226543188095,
-0.3464944660663605,
-0.09681957215070724,
0.0031004101037979126,
0.479571133852005,
0.07721930742263794,
0.3322407603263855,
-0.23549602925777435,
-0.29600614309310913,
0.11406729370355606,
-0.11933134496212006,
0.049829524010419846,
0.18999053537845612,
0.33089137077331543,
-0.05085885524749756,
0.3694759011268616,
0.18396258354187012,
-0.38050711154937744,
0.12676352262496948,
-0.10744897276163101,
-0.14610393345355988,
0.15167969465255737,
0.20964857935905457,
0.25887322425842285,
0.03251030668616295,
-0.2815370559692383,
-0.012164350599050522,
-0.2854931056499481,
0.3921363353729248,
-0.005577296018600464,
0.18654891848564148,
0.16187334060668945,
-0.014600144699215889,
-0.2433212250471115,
-0.11978065967559814,
0.12497831135988235,
0.09986171871423721,
-0.28510960936546326,
0.43636012077331543,
0.1240009218454361,
-0.059186164289712906,
-0.06469251960515976,
-0.1635023057460785,
-0.14138376712799072,
0.24706751108169556,
-0.627925455570221,
-0.13000139594078064,
-0.15975859761238098,
0.024972889572381973,
-0.08764855563640594,
-0.2530257999897003,
0.01569756120443344,
-0.037352655082941055,
0.08797761797904968,
0.14256057143211365,
-0.19621184468269348,
-0.12692436575889587,
-0.22639167308807373,
0.09934480488300323,
-0.08366168290376663,
0.3007119297981262,
-0.06295131146907806,
0.8261139392852783,
0.07090280950069427,
-0.21502290666103363,
-0.19174164533615112,
-0.23964807391166687,
0.02855231985449791,
-0.4138107895851135,
-0.37322998046875,
-0.08807669579982758,
-0.13518869876861572,
-0.3106837868690491,
0.10920383036136627,
-0.10286939889192581,
-0.29544779658317566,
-0.18874192237854004,
0.0010711196810007095,
-0.2412813901901245,
-0.3961658179759979,
0.39328262209892273,
-0.4981916546821594,
-0.2660693824291229,
0.023589618504047394,
0.3421931564807892,
0.03019147366285324,
-0.22875186800956726,
0.05158544331789017,
0.10695787519216537,
0.436261385679245,
-0.20799778401851654,
-0.16879494488239288,
0.037559330463409424,
-0.141649067401886,
0.1616041213274002,
-0.09634556621313095,
0.2437841296195984,
0.0828041136264801,
-0.18220725655555725,
0.17699003219604492,
0.16066284477710724,
0.7273167967796326,
0.03329888731241226,
0.2190352827310562,
-0.0068707093596458435,
-0.44842037558555603,
-0.312630295753479,
0.0063765645027160645,
0.16294755041599274,
0.5445666313171387,
0.10888777673244476,
0.4143252968788147,
-0.3684593737125397,
-0.10905086994171143,
0.09504082053899765,
0.35872453451156616,
-0.23229044675827026,
-0.09063152968883514,
-0.23151002824306488,
0.09598194807767868,
-0.3656572103500366,
0.0160762220621109,
-0.11674482375383377,
-0.18916819989681244,
0.11134312301874161,
-0.12600836157798767,
-0.23670123517513275,
-0.03351780027151108,
0.1631281077861786,
0.4293399751186371,
0.2803824245929718,
0.04737422987818718,
0.6754379868507385,
0.2952764332294464,
-0.09967009723186493,
0.2273981124162674,
0.4813757538795471,
0.08000119030475616,
-0.2722132205963135,
0.18271058797836304,
0.013294528238475323,
0.20287492871284485,
0.3806922435760498,
-0.014498328790068626,
-0.13209694623947144,
0.14721812307834625,
0.098965123295784,
-0.38306668400764465,
0.060847047716379166,
0.05956075340509415,
-0.08727642893791199,
-0.18779009580612183,
-0.704085111618042,
0.49514713883399963,
-0.10492470860481262,
0.00956069678068161,
0.6037667393684387,
-0.20245800912380219,
-0.01005106046795845,
0.29441630840301514,
-0.00004120171070098877,
0.9243478178977966,
-0.19091282784938812,
0.03235945850610733,
-0.3652580678462982,
0.032079823315143585,
0.486187607049942,
-0.26043087244033813,
0.0421595424413681,
-0.45363521575927734,
-0.5671013593673706,
0.07793137431144714,
-0.2985419034957886,
-0.2293929159641266,
0.2905921936035156,
0.2836036682128906,
0.33073171973228455,
-0.37993019819259644,
0.10946343839168549,
-0.11801379919052124,
0.3340581953525543,
-0.04913093149662018,
-0.2525869905948639,
0.00015922822058200836,
-0.007300300523638725,
-0.08625659346580505,
0.20215491950511932,
0.1566031277179718,
0.08141645044088364,
-0.21281184256076813,
0.11315588653087616,
-0.384660005569458,
0.16488412022590637,
-0.1458236575126648,
-0.07913697510957718,
-0.21078991889953613,
-0.45830291509628296,
0.007316339761018753,
0.16697290539741516,
-0.14055143296718597,
0.12947028875350952,
-0.029349470511078835,
0.33602967858314514,
0.029163692146539688,
0.18302984535694122,
-0.03422220051288605,
0.013483214192092419,
-0.05068833380937576,
0.02772798389196396,
-0.11327949166297913,
-0.23166990280151367,
-0.199575275182724,
-0.345395028591156,
0.22441571950912476,
0.17241719365119934,
0.09756119549274445,
-0.13938885927200317,
-0.21245166659355164,
-0.0023128092288970947,
0.18087132275104523,
-0.18772242963314056,
0.041214827448129654,
0.3531193137168884,
-0.12252247333526611,
0.10723728686571121,
0.28773072361946106,
-0.3533397912979126,
0.05927394703030586,
0.3353519141674042,
0.20522597432136536,
0.0640936940908432,
0.5986611843109131,
-0.11680957674980164,
-0.19345147907733917,
-0.10525204241275787,
0.10194166749715805,
0.39443162083625793,
-0.43208396434783936,
-0.02137022837996483,
-0.20174618065357208,
0.11113159358501434,
-0.18795546889305115,
-0.19270828366279602,
-0.010946810245513916,
0.1912257969379425,
-0.2372584491968155,
-0.42784956097602844,
-0.22130069136619568,
0.30732786655426025,
0.081790991127491,
0.42407649755477905,
-0.29172492027282715,
-0.09846426546573639,
-0.281357079744339,
0.5000247955322266,
-0.1629161536693573,
-0.1448921263217926,
-0.05638160556554794,
0.3763710558414459,
0.023151447996497154,
0.06311704963445663,
0.2352740466594696,
-0.3313731253147125,
0.007803734391927719,
0.03535398840904236,
0.075752854347229,
-0.11332319676876068,
-0.061686303466558456,
0.20465728640556335,
-0.15821874141693115,
-0.14232635498046875,
-0.14268602430820465,
-0.07462532818317413,
-0.03085505962371826,
-0.262050062417984,
0.2748316526412964,
0.18019217252731323,
0.14072629809379578,
0.06351346522569656,
0.4101455509662628,
-0.03921005129814148,
-0.47273528575897217,
0.14056481420993805,
-0.3419337868690491,
0.3403186500072479,
0.0025661117397248745,
0.18984661996364594,
0.08352910727262497,
0.058659687638282776,
-0.17589759826660156,
-0.12858295440673828,
0.19474713504314423,
-0.07617705315351486,
0.12141355127096176,
0.0669897049665451,
0.28572705388069153,
0.03240875527262688,
0.38145723938941956,
0.8750995397567749,
-0.05438118055462837,
0.277197927236557,
0.11098730564117432,
0.0637519508600235,
-0.0922137051820755,
-0.11528965085744858,
0.014951490797102451,
-0.34604930877685547,
0.03354168310761452,
0.19215697050094604,
-0.24495355784893036,
0.2319754958152771,
-0.11949186027050018,
-0.28045257925987244,
0.21460716426372528,
-0.1591949313879013,
0.14101672172546387,
0.41924747824668884,
-0.2590341866016388,
-0.12346412241458893,
0.12845489382743835,
0.28990742564201355,
0.07864250242710114,
0.3242018222808838,
-0.13539409637451172,
0.18659919500350952,
0.13750304281711578,
0.1205635517835617,
-0.27554944157600403,
-0.3586955964565277,
0.07667447626590729,
0.5190562009811401,
0.18698881566524506,
0.006630618125200272,
-0.02771303802728653,
0.03174900263547897,
0.1690632402896881,
-0.12199657410383224,
0.03335513174533844,
0.005131654441356659,
0.15666493773460388,
-0.1665792316198349,
0.08259857445955276,
-0.24222174286842346,
-0.2393522411584854,
0.10905922949314117,
-0.17290635406970978,
-0.5034893751144409,
-0.08997425436973572,
0.2844325304031372,
0.12037359923124313,
-0.19039906561374664,
0.22304096817970276,
0.039873410016298294,
0.19933360815048218,
-0.3862997591495514,
0.10606086254119873,
-0.047833144664764404,
0.17984914779663086,
0.43409252166748047,
0.0465894490480423,
0.042320020496845245,
0.1347227692604065,
-0.15417170524597168,
0.11797020584344864,
0.2643282115459442,
-0.07703165709972382,
-0.17574626207351685,
0.29755356907844543,
0.096380315721035,
0.2334420084953308,
0.08149614930152893,
0.05895872414112091,
-0.07271897047758102,
0.21045537292957306,
-0.13558228313922882,
-0.10653263330459595,
-0.5056785941123962,
0.380550354719162,
0.16878387331962585,
-0.1852581799030304,
0.07627929747104645,
-0.15105104446411133,
0.10112791508436203,
-0.6118302345275879,
0.18097175657749176,
-0.17140556871891022,
-0.0029914164915680885,
0.2729010581970215,
0.03228538855910301,
-0.09746904671192169,
0.5886874198913574,
0.06885816156864166,
0.45172765851020813,
-0.25303417444229126,
0.16196875274181366,
-0.47767168283462524,
0.027548953890800476,
-0.07626931369304657,
0.001848055049777031,
0.35970595479011536,
0.27068352699279785,
0.34105318784713745,
0.4150815010070801,
-0.038630932569503784,
0.1521623730659485,
0.2829919457435608,
0.4451662302017212,
-0.06763988733291626,
-0.14013244211673737,
-0.45902204513549805,
0.28685444593429565,
0.014959510415792465,
-0.3071358799934387,
0.15915843844413757,
-0.03832682594656944,
-0.14826121926307678,
0.38511747121810913,
-0.347635954618454,
0.48200321197509766,
0.20415815711021423,
0.42972543835639954,
-0.16692443192005157,
0.7012314796447754,
0.02869173139333725,
-0.16808708012104034,
-0.07992127537727356,
-0.49789243936538696,
-0.2771568298339844,
0.3207622766494751,
0.16912612318992615,
0.007775045931339264,
-0.01516012568026781,
-0.019335713237524033,
-0.3733626902103424,
0.02673799730837345,
-0.24920521676540375,
-0.11633919924497604,
-0.15939266979694366,
-0.2867489457130432,
0.05743385851383209,
0.328494668006897,
0.16919855773448944,
0.21963897347450256,
-0.15939046442508698,
-0.17771360278129578,
-0.18826256692409515,
-0.021913684904575348,
0.5834274291992188,
-0.23482081294059753,
-0.05493240803480148,
0.10557753592729568,
0.2775334417819977,
0.13732220232486725,
0.20313760638237,
-0.49433356523513794,
0.08153220266103745,
0.34113365411758423,
-0.2730087339878082,
0.0654478371143341,
-0.00908173993229866,
0.08345183730125427,
-0.07159772515296936,
-0.24691855907440186,
0.2609406113624573,
-0.006185654550790787,
-0.12831087410449982,
-0.3387848138809204,
-0.3649179935455322
] |
https://github.com/huggingface/datasets/issues/2538 | Loading partial dataset when debugging | Whoops I fixed my code sorry
```diff
- ds = Dataset.from_generator(ids["train"].take(10).__iter__)
+ ds = Dataset.from_generator(ids.take(10).__iter__)
```
in your case that means running
```python
train_data = data.shuffle()
```
without `["train"]` | I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks! | 29 | Loading partial dataset when debugging
I am using PyTorch Lightning along with datasets (thanks for so many datasets already prepared and the great splits).
Every time I execute load_dataset for the imdb dataset it takes some time even if I specify a split involving very few samples. I guess this due to hashing as per the other issues.
Is there a way to only load part of the dataset on load_dataset? This would really speed up my workflow.
Something like a debug mode would really help. Thanks!
Whoops I fixed my code sorry
```diff
- ds = Dataset.from_generator(ids["train"].take(10).__iter__)
+ ds = Dataset.from_generator(ids.take(10).__iter__)
```
in your case that means running
```python
train_data = data.shuffle()
```
without `["train"]` | [
-0.3739752471446991,
-0.10816188901662827,
-0.0235910601913929,
0.3584914803504944,
-0.0022209547460079193,
0.34946414828300476,
0.5607232451438904,
0.39705130457878113,
0.25718191266059875,
-0.07330752909183502,
-0.08933363109827042,
0.151454895734787,
-0.23152844607830048,
0.2089187204837799,
0.05152291804552078,
0.14175954461097717,
-0.10860852152109146,
0.30990058183670044,
0.03770647197961807,
-0.06969432532787323,
0.13033847510814667,
-0.23407943546772003,
-0.30231741070747375,
-0.1889098733663559,
-0.47305017709732056,
0.0928712859749794,
0.10551208257675171,
0.19264471530914307,
0.2299468219280243,
-0.16918306052684784,
0.3542400598526001,
0.14166074991226196,
-0.03265991061925888,
0.17520031332969666,
-0.00012430877541191876,
0.03679584711790085,
0.4894940257072449,
-0.12176995724439621,
-0.35537299513816833,
-0.02675105631351471,
-0.21933826804161072,
0.06171421706676483,
0.3985013961791992,
0.018635958433151245,
-0.12801425158977509,
-0.22886216640472412,
-0.02012174017727375,
-0.28705066442489624,
0.31430506706237793,
-0.026159029453992844,
0.08658527582883835,
0.04359325021505356,
-0.43604084849357605,
0.16520842909812927,
0.2661058306694031,
-0.05630868673324585,
0.02243972383439541,
0.46833646297454834,
0.3595259189605713,
-0.07960938662290573,
-0.30734777450561523,
0.18227578699588776,
-0.08844013512134552,
0.22975978255271912,
0.4273567795753479,
-0.046680305153131485,
-0.018201790750026703,
-0.5276961326599121,
0.20393961668014526,
0.4685169756412506,
0.5593082308769226,
0.0367395244538784,
-0.3670128583908081,
-0.4985681176185608,
0.06732400506734848,
-0.10089392215013504,
0.17622405290603638,
-0.008987724781036377,
-0.44506803154945374,
-0.019965242594480515,
-0.4772169589996338,
-0.12645383179187775,
0.12537313997745514,
0.13179472088813782,
0.08091197907924652,
-0.18717768788337708,
0.08666607737541199,
0.1439293920993805,
0.44510510563850403,
0.21168255805969238,
0.30871453881263733,
-0.017623145133256912,
0.06582702696323395,
0.09680293500423431,
-0.3874776363372803,
0.01650819182395935,
-0.10931510478258133,
-0.14905279874801636,
-0.0653061717748642,
0.45943474769592285,
-0.06487209349870682,
0.43074899911880493,
0.1824612319469452,
-0.006098449230194092,
0.5325417518615723,
-0.14716456830501556,
0.16901931166648865,
0.2149495780467987,
0.2933133840560913,
-0.32492053508758545,
-0.12373997271060944,
-0.02331503853201866,
-0.3954842984676361,
-0.19648781418800354,
0.22498677670955658,
-0.04056526720523834,
-0.042929038405418396,
-0.334028035402298,
-0.22119389474391937,
-0.32913634181022644,
0.049836643040180206,
-0.06627260893583298,
0.27718231081962585,
0.46412819623947144,
0.08675984293222427,
0.05309385806322098,
-0.18486392498016357,
0.15304088592529297,
-0.26905179023742676,
-0.029478445649147034,
-0.15493087470531464,
-0.12680037319660187,
-0.10712970793247223,
0.08857043832540512,
0.3256560266017914,
-0.3361899256706238,
0.3452773094177246,
-0.0012740232050418854,
0.43013542890548706,
-0.21775448322296143,
0.1564430594444275,
-0.2716884911060333,
-0.012829966843128204,
0.15626877546310425,
0.0553147979080677,
0.27361124753952026,
0.11754466593265533,
0.1751551777124405,
-0.2608198821544647,
0.4250957667827606,
-0.06011778861284256,
-0.31091174483299255,
0.048732027411460876,
0.03284883871674538,
-0.34652119874954224,
0.2375902533531189,
-0.22953256964683533,
0.1911935806274414,
0.15648749470710754,
-0.21418265998363495,
-0.2669413089752197,
0.028897088021039963,
-0.06180394068360329,
-0.11874587088823318,
0.6921213865280151,
0.40821224451065063,
-0.11265388131141663,
-0.18884068727493286,
-0.14477047324180603,
0.05184182897210121,
0.3141796886920929,
0.20835721492767334,
-0.4653063118457794,
0.26666024327278137,
-0.17899027466773987,
-0.16012077033519745,
0.5681251287460327,
-0.004579853266477585,
-0.36786168813705444,
0.4254179298877716,
-0.11268030107021332,
0.22400517761707306,
-0.050695277750492096,
0.5284311771392822,
0.15130802989006042,
0.0677613690495491,
0.2586572468280792,
0.4533132314682007,
-0.13684549927711487,
0.15838651359081268,
-0.19830632209777832,
-0.10104598104953766,
0.19360999763011932,
0.4785008430480957,
0.019325995817780495,
0.17612406611442566,
-0.08847490698099136,
0.20566780865192413,
0.2588711977005005,
-0.006881382316350937,
-0.1106434017419815,
0.18972058594226837,
-0.151728093624115,
0.13057158887386322,
0.0361010767519474,
-0.27912724018096924,
-0.4841742515563965,
0.3844250440597534,
0.21156850457191467,
-0.2512846291065216,
-0.05315293371677399,
-0.0326467826962471,
-0.11556590348482132,
-0.11700981110334396,
-0.1105695366859436,
-0.08648693561553955,
-0.16692224144935608,
-0.010283716022968292,
-0.1201065331697464,
-0.36362549662590027,
-0.45377117395401,
0.10448987036943436,
-0.03309980034828186,
0.033989839255809784,
-0.3981395363807678,
0.1312939077615738,
0.3386722505092621,
-0.1031704694032669,
0.01500527560710907,
-0.04501093178987503,
-0.001155667006969452,
-0.2644769549369812,
-0.0729534849524498,
0.2830353081226349,
0.19507254660129547,
0.20165032148361206,
0.06243414059281349,
0.07835669815540314,
-0.02768186293542385,
-0.13959963619709015,
0.3622991144657135,
-0.019086014479398727,
0.029650669544935226,
-0.20634829998016357,
-0.08341410011053085,
0.38518959283828735,
-0.5323018431663513,
0.4069325923919678,
0.028939850628376007,
-0.2784633934497833,
0.14101295173168182,
-0.13630390167236328,
-0.14464060962200165,
-0.1019260436296463,
0.4829762279987335,
-0.2291969656944275,
0.3138829171657562,
0.2761971950531006,
-0.11245086789131165,
-0.10220792144536972,
0.2996503710746765,
0.02204066514968872,
-0.10099365562200546,
0.28107041120529175,
-0.5013594031333923,
-0.0344155915081501,
-0.20712311565876007,
-0.17386563122272491,
0.10573065280914307,
0.15002188086509705,
0.12294887006282806,
-0.20819786190986633,
0.21527913212776184,
-0.10363193601369858,
0.15784768760204315,
0.08218100666999817,
0.036237023770809174,
0.14389561116695404,
-0.13972938060760498,
-0.13693763315677643,
-0.18570691347122192,
0.025780964642763138,
0.15711916983127594,
0.22894152998924255,
-0.27526047825813293,
0.02824958600103855,
-0.3946775794029236,
-0.05637320131063461,
0.06817407160997391,
-0.11983724683523178,
-0.012090183794498444,
-0.18498648703098297,
0.03035113960504532,
0.377115935087204,
0.08259433507919312,
0.17619234323501587,
-0.1796683669090271,
0.011756867170333862,
-0.07146403938531876,
-0.33873769640922546,
-0.16226696968078613,
-0.27726471424102783,
-0.08729016035795212,
0.014851659536361694,
0.5619547367095947,
0.1081075370311737,
0.35206204652786255,
-0.24839985370635986,
-0.2975959777832031,
0.1738889366388321,
-0.0993724912405014,
-0.06462934613227844,
0.1818028688430786,
0.26829805970191956,
-0.10382746160030365,
0.33588120341300964,
0.18791155517101288,
-0.3850986361503601,
0.1378597766160965,
-0.08149531483650208,
-0.011541461572051048,
0.1499108374118805,
0.2192985713481903,
0.29599729180336,
-0.015713699162006378,
-0.19954752922058105,
-0.0319351926445961,
-0.32637274265289307,
0.31043028831481934,
-0.002852249890565872,
0.10229727625846863,
0.07254212349653244,
-0.04292815923690796,
-0.22905942797660828,
-0.0631677582859993,
0.07473250478506088,
0.10853227227926254,
-0.3245164453983307,
0.4213162958621979,
0.17246727645397186,
-0.042126309126615524,
-0.02876955457031727,
-0.08778712153434753,
-0.1706552654504776,
0.27535688877105713,
-0.6203089952468872,
-0.015663059428334236,
-0.1964564174413681,
0.005942389369010925,
-0.1230807900428772,
-0.26314809918403625,
-0.03229999542236328,
-0.059040654450654984,
0.08060076087713242,
0.2059839367866516,
-0.1442328691482544,
-0.12476370483636856,
-0.3142779767513275,
0.08431486785411835,
-0.043648816645145416,
0.36967238783836365,
-0.12532341480255127,
0.8613347411155701,
0.028553199023008347,
-0.17196393013000488,
-0.1544613540172577,
-0.2026027888059616,
0.07798699289560318,
-0.4359377324581146,
-0.41004911065101624,
-0.07396677881479263,
-0.043064579367637634,
-0.23083075881004333,
0.1064809188246727,
-0.1128459945321083,
-0.28634965419769287,
-0.20621174573898315,
0.03794793412089348,
-0.2633718252182007,
-0.3574596047401428,
0.4825095534324646,
-0.6191822290420532,
-0.21896156668663025,
-0.00040032342076301575,
0.30200380086898804,
-0.01141182892024517,
-0.31573885679244995,
-0.07055941224098206,
0.08843205869197845,
0.46609047055244446,
-0.249391570687294,
0.026534099131822586,
0.0912601426243782,
-0.18533971905708313,
0.1245921403169632,
-0.11605119705200195,
0.1963563859462738,
-0.015158042311668396,
-0.17023393511772156,
0.2941802144050598,
0.18614940345287323,
0.7741257548332214,
0.014605263248085976,
0.16053296625614166,
0.019809819757938385,
-0.49114885926246643,
-0.30619141459465027,
0.020594488829374313,
0.09689420461654663,
0.5244293808937073,
0.17325818538665771,
0.39326706528663635,
-0.3261343240737915,
-0.12037885189056396,
0.17237189412117004,
0.32946741580963135,
-0.23689892888069153,
-0.11333122849464417,
-0.3625456988811493,
0.09707590192556381,
-0.343455046415329,
0.07209876924753189,
-0.02490302361547947,
-0.14760200679302216,
0.04266566038131714,
-0.18116918206214905,
-0.24560661613941193,
0.061818912625312805,
0.21515178680419922,
0.3405073583126068,
0.2603439390659332,
-0.04601418972015381,
0.707595705986023,
0.26797425746917725,
-0.10903662443161011,
0.28911206126213074,
0.3969191014766693,
0.029034387320280075,
-0.2728727161884308,
0.19173979759216309,
-0.073260098695755,
0.1990140676498413,
0.4734024703502655,
-0.059940651059150696,
-0.12017553299665451,
0.1062190979719162,
0.20644865930080414,
-0.3792935907840729,
0.14247921109199524,
0.17770449817180634,
-0.03169562295079231,
-0.3347533941268921,
-0.6623231768608093,
0.3403039276599884,
-0.06642595678567886,
0.02850259840488434,
0.6358826160430908,
-0.25376951694488525,
-0.04032003879547119,
0.2884003520011902,
-0.1233050599694252,
0.9890507459640503,
-0.33300668001174927,
0.011822570115327835,
-0.40257108211517334,
0.07239586114883423,
0.40836623311042786,
-0.24652285873889923,
0.0527949258685112,
-0.3896462619304657,
-0.6553012132644653,
0.10425102710723877,
-0.2938816249370575,
-0.2765306234359741,
0.3168620467185974,
0.277464359998703,
0.26961925625801086,
-0.47875821590423584,
0.12501221895217896,
-0.13758842647075653,
0.31312814354896545,
0.056197308003902435,
-0.2522715628147125,
-0.03333393856883049,
-0.0012469608336687088,
-0.007891923189163208,
0.12444464862346649,
0.10423073917627335,
0.03841804713010788,
-0.17144392430782318,
0.12180157005786896,
-0.3933875560760498,
0.1838957965373993,
-0.13799674808979034,
-0.08527543395757675,
-0.2363070547580719,
-0.35660111904144287,
0.04244429990649223,
0.13766378164291382,
-0.04459133744239807,
0.15739810466766357,
-0.013842785730957985,
0.35422369837760925,
0.04593515768647194,
0.15787623822689056,
0.023102885112166405,
0.06107991188764572,
-0.03929992765188217,
0.00782904401421547,
-0.150721475481987,
-0.21446120738983154,
-0.26478061079978943,
-0.4266658425331116,
0.21147045493125916,
0.2385764718055725,
0.18999098241329193,
-0.0785512626171112,
-0.25736889243125916,
-0.026779793202877045,
0.2065657675266266,
-0.1975625455379486,
0.049678489565849304,
0.41862839460372925,
-0.059864457696676254,
0.17936140298843384,
0.24761448800563812,
-0.398772269487381,
0.012298908084630966,
0.35690122842788696,
0.16933724284172058,
0.016368985176086426,
0.5175948143005371,
-0.07399832457304001,
-0.29620909690856934,
-0.08467631042003632,
0.03436862677335739,
0.37104368209838867,
-0.48452895879745483,
0.03245265409350395,
-0.057955075055360794,
0.1093883216381073,
-0.09915727376937866,
-0.2368299663066864,
-0.07493545114994049,
0.10717231780290604,
-0.29466789960861206,
-0.4200420379638672,
-0.1670795977115631,
0.318082720041275,
0.004745785146951675,
0.3180301785469055,
-0.32200887799263,
-0.03847042843699455,
-0.18202437460422516,
0.43580397963523865,
-0.16297653317451477,
-0.08332660794258118,
-0.11655517667531967,
0.3918856978416443,
0.003988748416304588,
-0.05563034862279892,
0.2771976888179779,
-0.21395066380500793,
0.036972105503082275,
0.012437278404831886,
0.14443552494049072,
-0.10746687650680542,
0.06790931522846222,
0.18860352039337158,
-0.21489495038986206,
-0.18977120518684387,
-0.1883465051651001,
-0.1460288166999817,
-0.1254904866218567,
-0.2730686664581299,
0.22277134656906128,
0.1892572045326233,
0.2048964649438858,
-0.11177096515893936,
0.40962687134742737,
0.033838771283626556,
-0.43204551935195923,
0.20070479810237885,
-0.382523775100708,
0.28456738591194153,
-0.07510841637849808,
0.18279337882995605,
0.09753153473138809,
0.01050642877817154,
-0.1166238859295845,
-0.1291501820087433,
0.2770533859729767,
-0.08447840064764023,
0.15738865733146667,
0.04160634055733681,
0.27625876665115356,
0.06933889538049698,
0.40687295794487,
0.8121397495269775,
0.0048516313545405865,
0.18100032210350037,
0.0857878029346466,
0.05206449702382088,
-0.10836303979158401,
-0.053782738745212555,
0.08152912557125092,
-0.3393465578556061,
-0.013705108314752579,
0.1619482785463333,
-0.2525775134563446,
0.24187707901000977,
-0.1653560847043991,
-0.23545610904693604,
0.23842456936836243,
-0.1811322122812271,
0.03852619603276253,
0.3472535014152527,
-0.23948800563812256,
-0.0797482281923294,
0.08454422652721405,
0.25192251801490784,
0.014184623956680298,
0.4577181339263916,
-0.12802037596702576,
0.21127688884735107,
0.08871452510356903,
0.137861430644989,
-0.303634375333786,
-0.42842671275138855,
0.027698485180735588,
0.6863225698471069,
0.1372232735157013,
-0.028338603675365448,
-0.14057683944702148,
0.04572945833206177,
0.12382415682077408,
-0.16795028746128082,
-0.013598413206636906,
0.055791083723306656,
0.07781681418418884,
-0.09227797389030457,
0.2648197412490845,
-0.18045037984848022,
-0.3190997242927551,
0.12959684431552887,
-0.13397201895713806,
-0.3245506286621094,
-0.16372999548912048,
0.2824539542198181,
0.14035913348197937,
-0.09572607278823853,
0.17207089066505432,
-0.026056528091430664,
0.20339298248291016,
-0.3613862097263336,
0.07731403410434723,
-0.11616240441799164,
0.2909381687641144,
0.5258362889289856,
-0.054557204246520996,
0.05326871946454048,
0.1699466109275818,
-0.130817249417305,
0.03889763355255127,
0.2845572233200073,
-0.04359183833003044,
-0.19524821639060974,
0.35972562432289124,
0.15958064794540405,
0.3680991530418396,
0.016667254269123077,
0.04266916215419769,
-0.10563085228204727,
0.04407280310988426,
-0.17159956693649292,
0.03924165293574333,
-0.4625575542449951,
0.31338468194007874,
0.05916114151477814,
-0.2288726270198822,
-0.023160599172115326,
-0.12389079481363297,
0.09844373911619186,
-0.6040489077568054,
0.17558257281780243,
-0.2369309514760971,
-0.06140478700399399,
0.3073960840702057,
0.017943523824214935,
-0.08319127559661865,
0.5782228708267212,
0.13422097265720367,
0.5180275440216064,
-0.28773894906044006,
-0.022189855575561523,
-0.4936712682247162,
0.09216858446598053,
-0.04855133220553398,
0.04607153683900833,
0.3958456218242645,
0.24862222373485565,
0.35291117429733276,
0.3177480101585388,
-0.00011081993579864502,
0.08862435817718506,
0.27509406208992004,
0.36801260709762573,
-0.015693223103880882,
0.009882887825369835,
-0.5964558720588684,
0.1704729199409485,
-0.02318561263382435,
-0.3211974501609802,
0.19057384133338928,
-0.0674261525273323,
-0.13341733813285828,
0.4052996039390564,
-0.3850152790546417,
0.42056748270988464,
0.28086525201797485,
0.37744438648223877,
-0.22736190259456635,
0.7196532487869263,
0.020777758210897446,
-0.134950652718544,
-0.053164634853601456,
-0.5427497625350952,
-0.2342699021100998,
0.3429669141769409,
0.1494443565607071,
-0.0554223358631134,
-0.014437605626881123,
0.041382648050785065,
-0.3116001784801483,
0.18207794427871704,
-0.2014927715063095,
-0.06871768832206726,
-0.14186932146549225,
-0.36220288276672363,
0.14614948630332947,
0.35228949785232544,
0.22806358337402344,
0.13016751408576965,
-0.1077335923910141,
-0.19272740185260773,
-0.1502966731786728,
-0.026962529867887497,
0.5085172653198242,
-0.15466201305389404,
-0.05053320154547691,
-0.025366418063640594,
0.3295198678970337,
0.13356831669807434,
0.249494269490242,
-0.5343326926231384,
0.02775099128484726,
0.29493841528892517,
-0.16545018553733826,
0.003754574805498123,
0.039908673614263535,
0.03501776605844498,
-0.03716558963060379,
-0.2256833016872406,
0.09043356776237488,
0.0019925516098737717,
-0.07034116238355637,
-0.3218366205692291,
-0.293152391910553
] |
https://github.com/huggingface/datasets/issues/2532 | Tokenizer's normalization preprocessor cause misalignment in return_offsets_mapping for tokenizer classification task | Hi @jerryIsHere, thanks for reporting the issue. But are you sure this is a bug in HuggingFace **Datasets**? | [This colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) implements a token classification input pipeline extending the logic from [this hugging example](https://huggingface.co/transformers/custom_datasets.html#tok-ner).
The pipeline works fine with most instance in different languages, but unfortunately, [the Japanese Kana ligature (a form of abbreviation? I don't know Japanese well)](https://en.wikipedia.org/wiki/Kana_ligature) break the alignment of `return_offsets_mapping`:

Without the try catch block, it riase `ValueError: NumPy boolean array indexing assignment cannot assign 88 input values to the 87 output values where the mask is true`, example shown here [(another colab notebook)](https://colab.research.google.com/drive/1MmOqf3ppzzdKKyMWkn0bJy6DqzOO0SSm?usp=sharing)
It is clear that the normalizer is the process that break the alignment, as it is observed that `tokenizer._tokenizer.normalizer.normalize_str('ヿ')` return 'コト'.
One workaround is to include `tokenizer._tokenizer.normalizer.normalize_str` before the tokenizer preprocessing pipeline, which is also provided in the [first colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) with the name `udposTestDatasetWorkaround`.
I guess similar logics should be included inside the tokenizer and the offsets_mapping generation process such that user don't need to include them in their code. But I don't understand the code of tokenizer well that I think I am not able to do this.
p.s.
**I am using my own dataset building script in the provided example, but the script should be equivalent to the changes made by this [update](https://github.com/huggingface/datasets/pull/2466)**
`get_dataset `is just a simple wrapping for `load_dataset`
and the `tokenizer` is just `XLMRobertaTokenizerFast.from_pretrained("xlm-roberta-large")` | 18 | Tokenizer's normalization preprocessor cause misalignment in return_offsets_mapping for tokenizer classification task
[This colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) implements a token classification input pipeline extending the logic from [this hugging example](https://huggingface.co/transformers/custom_datasets.html#tok-ner).
The pipeline works fine with most instance in different languages, but unfortunately, [the Japanese Kana ligature (a form of abbreviation? I don't know Japanese well)](https://en.wikipedia.org/wiki/Kana_ligature) break the alignment of `return_offsets_mapping`:

Without the try catch block, it riase `ValueError: NumPy boolean array indexing assignment cannot assign 88 input values to the 87 output values where the mask is true`, example shown here [(another colab notebook)](https://colab.research.google.com/drive/1MmOqf3ppzzdKKyMWkn0bJy6DqzOO0SSm?usp=sharing)
It is clear that the normalizer is the process that break the alignment, as it is observed that `tokenizer._tokenizer.normalizer.normalize_str('ヿ')` return 'コト'.
One workaround is to include `tokenizer._tokenizer.normalizer.normalize_str` before the tokenizer preprocessing pipeline, which is also provided in the [first colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) with the name `udposTestDatasetWorkaround`.
I guess similar logics should be included inside the tokenizer and the offsets_mapping generation process such that user don't need to include them in their code. But I don't understand the code of tokenizer well that I think I am not able to do this.
p.s.
**I am using my own dataset building script in the provided example, but the script should be equivalent to the changes made by this [update](https://github.com/huggingface/datasets/pull/2466)**
`get_dataset `is just a simple wrapping for `load_dataset`
and the `tokenizer` is just `XLMRobertaTokenizerFast.from_pretrained("xlm-roberta-large")`
Hi @jerryIsHere, thanks for reporting the issue. But are you sure this is a bug in HuggingFace **Datasets**? | [
-0.15369628369808197,
0.07901284098625183,
0.07378193736076355,
-0.03823215514421463,
0.09215759485960007,
-0.3246820569038391,
-0.08998163044452667,
0.10603216290473938,
-0.46176084876060486,
0.19867368042469025,
-0.20853739976882935,
0.3074204921722412,
0.2766767740249634,
0.030885035172104836,
-0.21919111907482147,
-0.1632780134677887,
0.1479930579662323,
0.2190573811531067,
0.005623586475849152,
0.06112254410982132,
-0.11941912770271301,
0.45713844895362854,
-0.2123354971408844,
0.21436043083667755,
-0.28662586212158203,
-0.0706365779042244,
0.12557774782180786,
-0.31564876437187195,
-0.16839800775051117,
-0.3988149166107178,
0.2497146874666214,
0.11891038715839386,
-0.08367162942886353,
0.20431436598300934,
-0.00011269692186033353,
-0.057501599192619324,
-0.0180351585149765,
0.014288349077105522,
0.17867551743984222,
-0.1964321881532669,
0.12838566303253174,
-0.37691837549209595,
-0.33560967445373535,
0.10738920420408249,
-0.06367041170597076,
0.03961043059825897,
0.24081237614154816,
-0.05541878566145897,
0.6431401371955872,
0.4151500463485718,
0.14555545151233673,
-0.013488874770700932,
0.2545188069343567,
0.06076806038618088,
-0.3109237849712372,
0.2689672112464905,
-0.09506787359714508,
0.019010117277503014,
-0.15407207608222961,
0.03146827965974808,
-0.07465141266584396,
-0.009618014097213745,
-0.09226996451616287,
-0.48027491569519043,
-0.014885582029819489,
0.11489635705947876,
0.32140785455703735,
-0.4625908434391022,
0.1870722770690918,
0.018533378839492798,
-0.24988844990730286,
-0.045073702931404114,
-0.1830773800611496,
-0.39149489998817444,
-0.1368265002965927,
-0.26799410581588745,
0.20009666681289673,
-0.15426300466060638,
-0.11812379956245422,
0.1168283224105835,
0.012083958834409714,
0.13784630596637726,
0.02974282205104828,
-0.21203888952732086,
-0.29428690671920776,
0.5647345781326294,
-0.06541166454553604,
0.04264477640390396,
-0.20475609600543976,
-0.010176613926887512,
0.3918428421020508,
-0.04282044619321823,
0.005983360111713409,
0.437328964471817,
-0.2852555513381958,
-0.05852579325437546,
0.19707009196281433,
-0.45482710003852844,
-0.007932711392641068,
-0.03566749393939972,
0.12427109479904175,
0.2060956358909607,
0.07195883244276047,
0.060916971415281296,
-0.16301600635051727,
0.4642791152000427,
0.21145129203796387,
0.2766360938549042,
0.19684234261512756,
0.1170865148305893,
-0.039800483733415604,
-0.04044109582901001,
0.06278254091739655,
-0.12514935433864594,
-0.049876343458890915,
0.25085997581481934,
-0.37355339527130127,
0.10397094488143921,
-0.23151281476020813,
0.41214367747306824,
-0.07186676561832428,
0.3000817596912384,
0.03386572003364563,
-0.09935883432626724,
0.03932027891278267,
0.2893415689468384,
-0.34031665325164795,
-0.10191576182842255,
-0.08262211829423904,
0.10865525156259537,
-0.19528372585773468,
0.018983300775289536,
-0.2947458326816559,
0.12470925599336624,
-0.19662201404571533,
0.10817807912826538,
-0.027551136910915375,
0.12801174819469452,
0.35698646306991577,
-0.032692719250917435,
-0.08280525356531143,
-0.0947527289390564,
0.5368512868881226,
0.27820271253585815,
0.02615233138203621,
0.1261870115995407,
0.11548168957233429,
-0.3598400354385376,
-0.3748217821121216,
-0.043391309678554535,
-0.21579310297966003,
0.08999063074588776,
0.14790283143520355,
0.20128214359283447,
-0.10737677663564682,
0.13482126593589783,
-0.3785093426704407,
0.2858780026435852,
0.33080121874809265,
-0.24652479588985443,
0.0029815956950187683,
-0.36790931224823,
-0.4135366976261139,
-0.18983186781406403,
0.31929299235343933,
-0.14425154030323029,
-0.0017331726849079132,
-0.009170860052108765,
0.11065855622291565,
0.18913967907428741,
0.4840112626552582,
0.13396520912647247,
0.3138589859008789,
0.36314114928245544,
-0.4917096197605133,
0.48556482791900635,
0.0987909659743309,
-0.13364626467227936,
-0.08816639333963394,
-0.15464353561401367,
-0.3981325626373291,
0.2574176490306854,
-0.17784708738327026,
-0.28533077239990234,
0.14593178033828735,
0.16483411192893982,
0.1642516851425171,
0.46753352880477905,
-0.1345408707857132,
0.09679191559553146,
-0.08240314573049545,
0.309353232383728,
-0.05164707452058792,
-0.26832011342048645,
0.012527376413345337,
-0.034894682466983795,
-0.23073658347129822,
-0.238222137093544,
-0.15970301628112793,
-0.08852940797805786,
0.10251932591199875,
-0.0872085690498352,
0.04389910027384758,
-0.12961745262145996,
0.023830566555261612,
-0.15286488831043243,
0.042863085865974426,
-0.011600449681282043,
-0.36197856068611145,
0.22630420327186584,
0.006499968469142914,
-0.16657188534736633,
-0.2440984547138214,
0.17804330587387085,
-0.16995878517627716,
-0.1374194324016571,
0.22984519600868225,
0.0661637932062149,
0.17783118784427643,
0.33349159359931946,
0.05531633272767067,
0.2994614541530609,
0.18765023350715637,
0.2598831355571747,
-0.23794038593769073,
0.1655215620994568,
-0.1539326310157776,
0.0328834168612957,
-0.10766188055276871,
0.44957292079925537,
0.05768668279051781,
-0.11599181592464447,
-0.12629765272140503,
0.22838300466537476,
0.2532855272293091,
-0.04426848888397217,
-0.28391048312187195,
0.08557238429784775,
0.14712129533290863,
0.1632164567708969,
-0.37553083896636963,
0.2840961515903473,
-0.20775170624256134,
-0.12244749069213867,
0.5265044569969177,
0.8932762145996094,
-0.03842417523264885,
0.12675240635871887,
-0.14578284323215485,
-0.022170539945364,
0.44586649537086487,
0.11814193427562714,
-0.15466369688510895,
-0.2694559097290039,
0.03720809891819954,
0.2975226640701294,
-0.10649299621582031,
0.025268448516726494,
-0.09403887391090393,
0.14218997955322266,
0.21936169266700745,
0.06661669909954071,
-0.22007635235786438,
0.11705385893583298,
0.004420511424541473,
-0.28484007716178894,
0.1736072152853012,
0.09409165382385254,
0.23082223534584045,
0.040384188294410706,
0.15981219708919525,
0.2757774293422699,
-0.2304857224225998,
-0.16235151886940002,
0.13986413180828094,
0.01599089428782463,
0.11915084719657898,
0.5081251859664917,
0.11125708371400833,
0.4917437732219696,
-0.25699901580810547,
-0.25069460272789,
-0.32807326316833496,
0.04698147624731064,
-0.16429375112056732,
0.23284099996089935,
-0.2001023143529892,
-0.3381243646144867,
-0.41888463497161865,
-0.14505541324615479,
-0.11501038074493408,
-0.5577636361122131,
0.13811007142066956,
0.04132460057735443,
-0.2752408981323242,
0.4234622120857239,
0.11343620717525482,
0.2538703680038452,
-0.11761460453271866,
0.05662178993225098,
-0.22700782120227814,
0.04969831928610802,
-0.424137681722641,
-0.003203200176358223,
0.18830083310604095,
-0.22715209424495697,
0.186778262257576,
-0.30085623264312744,
-0.052373189479112625,
0.1612112820148468,
-0.7381554245948792,
0.157687246799469,
0.059996120631694794,
0.030079897493124008,
0.2673283815383911,
-0.28041011095046997,
-0.40846771001815796,
-0.5457119941711426,
0.1107587143778801,
0.027297602966427803,
-0.3636149764060974,
0.1239912360906601,
-0.08176755905151367,
-0.14282996952533722,
-0.16446274518966675,
-0.02363063395023346,
0.06920371204614639,
-0.20587822794914246,
-0.04295694828033447,
-0.4525325298309326,
0.20525074005126953,
0.23798362910747528,
-0.46585214138031006,
-0.09506633877754211,
-0.4946012794971466,
0.03308114409446716,
-0.15787653625011444,
-0.0893625020980835,
0.20966863632202148,
-0.20818325877189636,
-0.060730282217264175,
-0.2306276559829712,
-0.30899012088775635,
0.42376554012298584,
0.037743762135505676,
-0.032855790108442307,
-0.0219791941344738,
0.023334989324212074,
0.06988710165023804,
-0.11609335243701935,
-0.002443535253405571,
0.06314938515424728,
0.13902562856674194,
-0.031845059245824814,
0.00034239888191223145,
0.09777180850505829,
0.07185184210538864,
-0.24975034594535828,
0.11355803161859512,
-0.214173823595047,
0.02214793488383293,
0.27030619978904724,
0.28458791971206665,
0.23099055886268616,
-0.2108982354402542,
0.04621322453022003,
0.04788709804415703,
0.1470341980457306,
-0.24811893701553345,
-0.18723009526729584,
0.13886116445064545,
0.16332875192165375,
-0.08042037487030029,
0.177638441324234,
0.004339287988841534,
0.012496013194322586,
0.07874106615781784,
0.06714528799057007,
0.12392532080411911,
-0.5669608116149902,
0.17406611144542694,
0.006335161626338959,
0.3078863024711609,
-0.022440051659941673,
0.008806094527244568,
-0.1556965857744217,
-0.1675526201725006,
-0.023014705628156662,
0.09127797931432724,
-0.0685238167643547,
0.08332429826259613,
-0.6093360185623169,
-0.40870559215545654,
-0.5790937542915344,
0.17966967821121216,
0.376924991607666,
0.5158492922782898,
0.06319689750671387,
0.002239089459180832,
-0.0609273761510849,
0.19010265171527863,
0.43978172540664673,
-0.0025199614465236664,
-0.3540673851966858,
0.1587357372045517,
-0.24824805557727814,
0.04480898380279541,
-0.059994664043188095,
0.11924633383750916,
0.4059152901172638,
0.4624786078929901,
0.6241881251335144,
-0.10790744423866272,
-0.04445112496614456,
-0.2833612263202667,
0.03802790120244026,
-0.043742094188928604,
-0.02791796624660492,
-0.2320086508989334,
-0.1256360113620758,
0.02141251228749752,
0.28267085552215576,
0.3797210454940796,
0.4987153112888336,
0.1252162605524063,
-0.32483306527137756,
-0.10135359317064285,
-0.0680503249168396,
-0.03759187459945679,
0.26657816767692566,
-0.010676972568035126,
0.047892242670059204,
0.05936804786324501,
0.01763533242046833,
0.19567644596099854,
0.43816667795181274,
-0.20380929112434387,
0.2262071669101715,
-0.5027623176574707,
-0.21395233273506165,
0.06295887380838394,
0.17093268036842346,
0.21437600255012512,
0.17903101444244385,
0.12522506713867188,
-0.2666705846786499,
0.01956285536289215,
-0.02694731205701828,
0.5451052784919739,
-0.110377736389637,
0.24740484356880188,
-0.2115398794412613,
0.1946564018726349,
-0.11201869696378708,
0.13194923102855682,
-0.1759556233882904,
0.19865235686302185,
0.00942990928888321,
-0.4868908226490021,
0.2963675260543823,
0.39506232738494873,
0.9533653259277344,
0.469032883644104,
0.23238283395767212,
0.34437096118927,
-0.3253096342086792,
0.5577518939971924,
0.01218445599079132,
0.22798308730125427,
-0.43249908089637756,
-0.1341833770275116,
-0.045663945376873016,
-0.006129782646894455,
-0.10332531481981277,
-0.19767917692661285,
-0.03306584060192108,
0.1741432547569275,
0.2883642911911011,
0.3233247995376587,
0.027767617255449295,
-0.09828905761241913,
0.08145803213119507,
-0.36174288392066956,
-0.0013470575213432312,
0.023409515619277954,
-0.06497252732515335,
0.0034663043916225433,
-0.16220086812973022,
0.11704568564891815,
-0.14431658387184143,
0.1657351553440094,
-0.26354503631591797,
-0.07000728696584702,
-0.27165770530700684,
0.0989561676979065,
0.32647472620010376,
-0.2881454825401306,
0.04992600902915001,
0.036862727254629135,
0.6191899180412292,
0.33154579997062683,
0.02258138358592987,
-0.03396667167544365,
0.1469225287437439,
0.24282385408878326,
0.044536277651786804,
-0.4531976878643036,
0.3092100918292999,
0.062404170632362366,
0.22387996315956116,
-0.4029240906238556,
0.09802243113517761,
0.21580930054187775,
-0.25089147686958313,
-0.061502039432525635,
0.03825926035642624,
0.0031563849188387394,
0.22505716979503632,
-0.11112836003303528,
0.20285664498806,
-0.2256278693675995,
0.13363875448703766,
-0.033781856298446655,
-0.23149894177913666,
-0.00890166312456131,
-0.036962177604436874,
-0.31491798162460327,
0.04173858463764191,
0.20637676119804382,
-0.03944900631904602,
-0.5680710077285767,
0.25854700803756714,
-0.38277024030685425,
-0.2513920068740845,
-0.007450830191373825,
0.22811740636825562,
0.1966439038515091,
-0.06704243272542953,
0.13692481815814972,
-0.09811072051525116,
-0.2944403886795044,
-0.18548834323883057,
0.21928153932094574,
0.32198184728622437,
-0.14073777198791504,
0.04569860175251961,
-0.35104379057884216,
-0.1588982194662094,
0.0010028928518295288,
-0.17866338789463043,
0.21997684240341187,
0.32523760199546814,
0.512834906578064,
-0.38019290566444397,
0.13780657947063446,
-0.28977635502815247,
-0.2866573929786682,
-0.18543237447738647,
-0.011455029249191284,
-0.44783899188041687,
-0.12181451171636581,
-0.46384549140930176,
-0.06610345840454102,
0.03964581340551376,
0.46778517961502075,
-0.09399249404668808,
-0.15835073590278625,
-0.15636077523231506,
0.09351427108049393,
0.31579938530921936,
-0.15541218221187592,
0.18161094188690186,
0.4209149479866028,
-0.105444997549057,
-0.27601033449172974,
-0.0125932227820158,
-0.006285220384597778,
-0.03437706083059311,
0.21518529951572418,
0.21609282493591309,
0.45626601576805115,
0.10220469534397125,
0.021516256034374237,
0.13706594705581665,
0.04691372066736221,
0.174235001206398,
0.4892762005329132,
-0.3065263628959656,
-0.0602695494890213,
0.06501073390245438,
0.16091659665107727,
0.25885146856307983,
-0.10352382808923721,
0.21405166387557983,
0.13304771482944489,
-0.3981347978115082,
0.21249282360076904,
0.016654182225465775,
0.24890436232089996,
-0.056915827095508575,
-0.4193788170814514,
0.4872605502605438,
0.15493616461753845,
-0.07179555296897888,
0.05234530195593834,
0.39590105414390564,
-0.1198631003499031,
-0.05871308967471123,
0.05343003571033478,
0.2961939871311188,
-0.017407365143299103,
0.2820734679698944,
0.09700968116521835,
0.2905796468257904,
-0.03407752886414528,
0.16035810112953186,
0.02929643727838993,
0.017020415514707565,
0.4946965277194977,
0.4404006600379944,
-0.19571833312511444,
0.15615257620811462,
0.25047287344932556,
0.04389563575387001,
0.32307538390159607,
0.030815856531262398,
0.02197296917438507,
-0.0927136018872261,
-0.18686693906784058,
-0.27509018778800964,
0.12240225076675415,
-0.08907710015773773,
0.21071431040763855,
0.34142372012138367,
0.042695026844739914,
-0.06346498429775238,
-0.062165435403585434,
-0.009410098195075989,
0.17256182432174683,
-0.609242856502533,
-0.10437463223934174,
-0.39376482367515564,
-0.06387670338153839,
-0.31301361322402954,
-0.08785922080278397,
0.11861377954483032,
0.1606636643409729,
0.013257607817649841,
-0.2074570208787918,
-0.3273748755455017,
-0.015774628147482872,
0.21656477451324463,
0.008498158305883408,
0.23581892251968384,
-0.08231782168149948,
0.2951458990573883,
0.01071188598871231,
0.09431715309619904,
-0.2271031141281128,
0.11802941560745239,
0.5410668253898621,
0.19452501833438873,
-0.30489984154701233,
-0.18987484276294708,
-0.1428609937429428,
0.015929969027638435,
-0.22178488969802856,
0.3723817765712738,
-0.04617297649383545,
-0.11681726574897766,
0.18493112921714783,
0.04564601182937622,
-0.1747492253780365,
-0.049692120403051376,
0.2591226100921631,
0.09560930728912354,
0.2560720145702362,
0.3022283911705017,
0.02700919844210148,
0.046087123453617096,
0.13593971729278564,
-0.01663457602262497,
0.10464534908533096,
0.018617819994688034,
-0.19132132828235626,
-0.02246912568807602,
0.04960551857948303,
-0.1372324675321579,
0.08899522572755814,
0.24029923975467682,
0.3574056625366211,
0.5412003993988037,
-0.09218055754899979,
-0.20618964731693268,
-0.4149601459503174,
-0.3863128125667572,
0.521124541759491,
0.47850510478019714,
-0.016848361119627953,
-0.06296155601739883,
-0.19649241864681244,
-0.10751687735319138,
0.0957125723361969,
-0.41491109132766724,
0.16475462913513184,
0.08979470282793045,
0.16718731820583344,
-0.15547367930412292,
0.2812334895133972,
-0.0012408271431922913,
-0.40193501114845276,
-0.1089809387922287,
-0.07242932915687561,
0.29898521304130554,
0.028775226324796677,
0.060196273028850555,
0.20420968532562256,
-0.013470117002725601,
-0.15052802860736847,
0.3201374113559723,
-0.05211380124092102,
0.6280630826950073,
0.13540691137313843,
-0.1455903798341751,
0.441185861825943,
-0.017650675028562546,
0.028677431866526604,
-0.58438640832901,
0.3166671693325043,
-0.2392609715461731,
0.31471994519233704,
0.03731580078601837,
-0.4717945158481598,
-0.05022162199020386,
0.02525409683585167,
0.3487573266029358,
-0.1720811128616333,
-0.3881039321422577,
0.3029594123363495,
-0.2138737440109253,
-0.03577984869480133,
0.05062949284911156,
0.38825738430023193,
0.2650303840637207,
0.44946572184562683,
-0.2877139151096344,
-0.6340731382369995,
-0.033007994294166565,
-0.21014875173568726,
-0.2857016921043396,
-0.1999208778142929,
-0.11783672869205475,
0.2962211072444916,
-0.15328048169612885,
-0.13815085589885712,
-0.2883765399456024,
0.15956325829029083,
-0.2351207137107849,
-0.2998200058937073,
0.242292582988739,
-0.17330771684646606,
-0.03217180818319321,
-0.19824367761611938,
0.3979831635951996,
0.1741544008255005,
-0.25920814275741577,
0.10108785331249237,
-0.14171184599399567
] |
https://github.com/huggingface/datasets/issues/2532 | Tokenizer's normalization preprocessor cause misalignment in return_offsets_mapping for tokenizer classification task | > Hi @jerryIsHere, thanks for reporting the issue. But are you sure this is a bug in HuggingFace **Datasets**?
Oh, I am sorry
I would reopen the post on huggingface/transformers | [This colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) implements a token classification input pipeline extending the logic from [this hugging example](https://huggingface.co/transformers/custom_datasets.html#tok-ner).
The pipeline works fine with most instance in different languages, but unfortunately, [the Japanese Kana ligature (a form of abbreviation? I don't know Japanese well)](https://en.wikipedia.org/wiki/Kana_ligature) break the alignment of `return_offsets_mapping`:

Without the try catch block, it riase `ValueError: NumPy boolean array indexing assignment cannot assign 88 input values to the 87 output values where the mask is true`, example shown here [(another colab notebook)](https://colab.research.google.com/drive/1MmOqf3ppzzdKKyMWkn0bJy6DqzOO0SSm?usp=sharing)
It is clear that the normalizer is the process that break the alignment, as it is observed that `tokenizer._tokenizer.normalizer.normalize_str('ヿ')` return 'コト'.
One workaround is to include `tokenizer._tokenizer.normalizer.normalize_str` before the tokenizer preprocessing pipeline, which is also provided in the [first colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) with the name `udposTestDatasetWorkaround`.
I guess similar logics should be included inside the tokenizer and the offsets_mapping generation process such that user don't need to include them in their code. But I don't understand the code of tokenizer well that I think I am not able to do this.
p.s.
**I am using my own dataset building script in the provided example, but the script should be equivalent to the changes made by this [update](https://github.com/huggingface/datasets/pull/2466)**
`get_dataset `is just a simple wrapping for `load_dataset`
and the `tokenizer` is just `XLMRobertaTokenizerFast.from_pretrained("xlm-roberta-large")` | 30 | Tokenizer's normalization preprocessor cause misalignment in return_offsets_mapping for tokenizer classification task
[This colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) implements a token classification input pipeline extending the logic from [this hugging example](https://huggingface.co/transformers/custom_datasets.html#tok-ner).
The pipeline works fine with most instance in different languages, but unfortunately, [the Japanese Kana ligature (a form of abbreviation? I don't know Japanese well)](https://en.wikipedia.org/wiki/Kana_ligature) break the alignment of `return_offsets_mapping`:

Without the try catch block, it riase `ValueError: NumPy boolean array indexing assignment cannot assign 88 input values to the 87 output values where the mask is true`, example shown here [(another colab notebook)](https://colab.research.google.com/drive/1MmOqf3ppzzdKKyMWkn0bJy6DqzOO0SSm?usp=sharing)
It is clear that the normalizer is the process that break the alignment, as it is observed that `tokenizer._tokenizer.normalizer.normalize_str('ヿ')` return 'コト'.
One workaround is to include `tokenizer._tokenizer.normalizer.normalize_str` before the tokenizer preprocessing pipeline, which is also provided in the [first colab notebook](https://colab.research.google.com/drive/151gKyo0YIwnlznrOHst23oYH_a3mAe3Z?usp=sharing) with the name `udposTestDatasetWorkaround`.
I guess similar logics should be included inside the tokenizer and the offsets_mapping generation process such that user don't need to include them in their code. But I don't understand the code of tokenizer well that I think I am not able to do this.
p.s.
**I am using my own dataset building script in the provided example, but the script should be equivalent to the changes made by this [update](https://github.com/huggingface/datasets/pull/2466)**
`get_dataset `is just a simple wrapping for `load_dataset`
and the `tokenizer` is just `XLMRobertaTokenizerFast.from_pretrained("xlm-roberta-large")`
> Hi @jerryIsHere, thanks for reporting the issue. But are you sure this is a bug in HuggingFace **Datasets**?
Oh, I am sorry
I would reopen the post on huggingface/transformers | [
-0.15369628369808197,
0.07901284098625183,
0.07378193736076355,
-0.03823215514421463,
0.09215759485960007,
-0.3246820569038391,
-0.08998163044452667,
0.10603216290473938,
-0.46176084876060486,
0.19867368042469025,
-0.20853739976882935,
0.3074204921722412,
0.2766767740249634,
0.030885035172104836,
-0.21919111907482147,
-0.1632780134677887,
0.1479930579662323,
0.2190573811531067,
0.005623586475849152,
0.06112254410982132,
-0.11941912770271301,
0.45713844895362854,
-0.2123354971408844,
0.21436043083667755,
-0.28662586212158203,
-0.0706365779042244,
0.12557774782180786,
-0.31564876437187195,
-0.16839800775051117,
-0.3988149166107178,
0.2497146874666214,
0.11891038715839386,
-0.08367162942886353,
0.20431436598300934,
-0.00011269692186033353,
-0.057501599192619324,
-0.0180351585149765,
0.014288349077105522,
0.17867551743984222,
-0.1964321881532669,
0.12838566303253174,
-0.37691837549209595,
-0.33560967445373535,
0.10738920420408249,
-0.06367041170597076,
0.03961043059825897,
0.24081237614154816,
-0.05541878566145897,
0.6431401371955872,
0.4151500463485718,
0.14555545151233673,
-0.013488874770700932,
0.2545188069343567,
0.06076806038618088,
-0.3109237849712372,
0.2689672112464905,
-0.09506787359714508,
0.019010117277503014,
-0.15407207608222961,
0.03146827965974808,
-0.07465141266584396,
-0.009618014097213745,
-0.09226996451616287,
-0.48027491569519043,
-0.014885582029819489,
0.11489635705947876,
0.32140785455703735,
-0.4625908434391022,
0.1870722770690918,
0.018533378839492798,
-0.24988844990730286,
-0.045073702931404114,
-0.1830773800611496,
-0.39149489998817444,
-0.1368265002965927,
-0.26799410581588745,
0.20009666681289673,
-0.15426300466060638,
-0.11812379956245422,
0.1168283224105835,
0.012083958834409714,
0.13784630596637726,
0.02974282205104828,
-0.21203888952732086,
-0.29428690671920776,
0.5647345781326294,
-0.06541166454553604,
0.04264477640390396,
-0.20475609600543976,
-0.010176613926887512,
0.3918428421020508,
-0.04282044619321823,
0.005983360111713409,
0.437328964471817,
-0.2852555513381958,
-0.05852579325437546,
0.19707009196281433,
-0.45482710003852844,
-0.007932711392641068,
-0.03566749393939972,
0.12427109479904175,
0.2060956358909607,
0.07195883244276047,
0.060916971415281296,
-0.16301600635051727,
0.4642791152000427,
0.21145129203796387,
0.2766360938549042,
0.19684234261512756,
0.1170865148305893,
-0.039800483733415604,
-0.04044109582901001,
0.06278254091739655,
-0.12514935433864594,
-0.049876343458890915,
0.25085997581481934,
-0.37355339527130127,
0.10397094488143921,
-0.23151281476020813,
0.41214367747306824,
-0.07186676561832428,
0.3000817596912384,
0.03386572003364563,
-0.09935883432626724,
0.03932027891278267,
0.2893415689468384,
-0.34031665325164795,
-0.10191576182842255,
-0.08262211829423904,
0.10865525156259537,
-0.19528372585773468,
0.018983300775289536,
-0.2947458326816559,
0.12470925599336624,
-0.19662201404571533,
0.10817807912826538,
-0.027551136910915375,
0.12801174819469452,
0.35698646306991577,
-0.032692719250917435,
-0.08280525356531143,
-0.0947527289390564,
0.5368512868881226,
0.27820271253585815,
0.02615233138203621,
0.1261870115995407,
0.11548168957233429,
-0.3598400354385376,
-0.3748217821121216,
-0.043391309678554535,
-0.21579310297966003,
0.08999063074588776,
0.14790283143520355,
0.20128214359283447,
-0.10737677663564682,
0.13482126593589783,
-0.3785093426704407,
0.2858780026435852,
0.33080121874809265,
-0.24652479588985443,
0.0029815956950187683,
-0.36790931224823,
-0.4135366976261139,
-0.18983186781406403,
0.31929299235343933,
-0.14425154030323029,
-0.0017331726849079132,
-0.009170860052108765,
0.11065855622291565,
0.18913967907428741,
0.4840112626552582,
0.13396520912647247,
0.3138589859008789,
0.36314114928245544,
-0.4917096197605133,
0.48556482791900635,
0.0987909659743309,
-0.13364626467227936,
-0.08816639333963394,
-0.15464353561401367,
-0.3981325626373291,
0.2574176490306854,
-0.17784708738327026,
-0.28533077239990234,
0.14593178033828735,
0.16483411192893982,
0.1642516851425171,
0.46753352880477905,
-0.1345408707857132,
0.09679191559553146,
-0.08240314573049545,
0.309353232383728,
-0.05164707452058792,
-0.26832011342048645,
0.012527376413345337,
-0.034894682466983795,
-0.23073658347129822,
-0.238222137093544,
-0.15970301628112793,
-0.08852940797805786,
0.10251932591199875,
-0.0872085690498352,
0.04389910027384758,
-0.12961745262145996,
0.023830566555261612,
-0.15286488831043243,
0.042863085865974426,
-0.011600449681282043,
-0.36197856068611145,
0.22630420327186584,
0.006499968469142914,
-0.16657188534736633,
-0.2440984547138214,
0.17804330587387085,
-0.16995878517627716,
-0.1374194324016571,
0.22984519600868225,
0.0661637932062149,
0.17783118784427643,
0.33349159359931946,
0.05531633272767067,
0.2994614541530609,
0.18765023350715637,
0.2598831355571747,
-0.23794038593769073,
0.1655215620994568,
-0.1539326310157776,
0.0328834168612957,
-0.10766188055276871,
0.44957292079925537,
0.05768668279051781,
-0.11599181592464447,
-0.12629765272140503,
0.22838300466537476,
0.2532855272293091,
-0.04426848888397217,
-0.28391048312187195,
0.08557238429784775,
0.14712129533290863,
0.1632164567708969,
-0.37553083896636963,
0.2840961515903473,
-0.20775170624256134,
-0.12244749069213867,
0.5265044569969177,
0.8932762145996094,
-0.03842417523264885,
0.12675240635871887,
-0.14578284323215485,
-0.022170539945364,
0.44586649537086487,
0.11814193427562714,
-0.15466369688510895,
-0.2694559097290039,
0.03720809891819954,
0.2975226640701294,
-0.10649299621582031,
0.025268448516726494,
-0.09403887391090393,
0.14218997955322266,
0.21936169266700745,
0.06661669909954071,
-0.22007635235786438,
0.11705385893583298,
0.004420511424541473,
-0.28484007716178894,
0.1736072152853012,
0.09409165382385254,
0.23082223534584045,
0.040384188294410706,
0.15981219708919525,
0.2757774293422699,
-0.2304857224225998,
-0.16235151886940002,
0.13986413180828094,
0.01599089428782463,
0.11915084719657898,
0.5081251859664917,
0.11125708371400833,
0.4917437732219696,
-0.25699901580810547,
-0.25069460272789,
-0.32807326316833496,
0.04698147624731064,
-0.16429375112056732,
0.23284099996089935,
-0.2001023143529892,
-0.3381243646144867,
-0.41888463497161865,
-0.14505541324615479,
-0.11501038074493408,
-0.5577636361122131,
0.13811007142066956,
0.04132460057735443,
-0.2752408981323242,
0.4234622120857239,
0.11343620717525482,
0.2538703680038452,
-0.11761460453271866,
0.05662178993225098,
-0.22700782120227814,
0.04969831928610802,
-0.424137681722641,
-0.003203200176358223,
0.18830083310604095,
-0.22715209424495697,
0.186778262257576,
-0.30085623264312744,
-0.052373189479112625,
0.1612112820148468,
-0.7381554245948792,
0.157687246799469,
0.059996120631694794,
0.030079897493124008,
0.2673283815383911,
-0.28041011095046997,
-0.40846771001815796,
-0.5457119941711426,
0.1107587143778801,
0.027297602966427803,
-0.3636149764060974,
0.1239912360906601,
-0.08176755905151367,
-0.14282996952533722,
-0.16446274518966675,
-0.02363063395023346,
0.06920371204614639,
-0.20587822794914246,
-0.04295694828033447,
-0.4525325298309326,
0.20525074005126953,
0.23798362910747528,
-0.46585214138031006,
-0.09506633877754211,
-0.4946012794971466,
0.03308114409446716,
-0.15787653625011444,
-0.0893625020980835,
0.20966863632202148,
-0.20818325877189636,
-0.060730282217264175,
-0.2306276559829712,
-0.30899012088775635,
0.42376554012298584,
0.037743762135505676,
-0.032855790108442307,
-0.0219791941344738,
0.023334989324212074,
0.06988710165023804,
-0.11609335243701935,
-0.002443535253405571,
0.06314938515424728,
0.13902562856674194,
-0.031845059245824814,
0.00034239888191223145,
0.09777180850505829,
0.07185184210538864,
-0.24975034594535828,
0.11355803161859512,
-0.214173823595047,
0.02214793488383293,
0.27030619978904724,
0.28458791971206665,
0.23099055886268616,
-0.2108982354402542,
0.04621322453022003,
0.04788709804415703,
0.1470341980457306,
-0.24811893701553345,
-0.18723009526729584,
0.13886116445064545,
0.16332875192165375,
-0.08042037487030029,
0.177638441324234,
0.004339287988841534,
0.012496013194322586,
0.07874106615781784,
0.06714528799057007,
0.12392532080411911,
-0.5669608116149902,
0.17406611144542694,
0.006335161626338959,
0.3078863024711609,
-0.022440051659941673,
0.008806094527244568,
-0.1556965857744217,
-0.1675526201725006,
-0.023014705628156662,
0.09127797931432724,
-0.0685238167643547,
0.08332429826259613,
-0.6093360185623169,
-0.40870559215545654,
-0.5790937542915344,
0.17966967821121216,
0.376924991607666,
0.5158492922782898,
0.06319689750671387,
0.002239089459180832,
-0.0609273761510849,
0.19010265171527863,
0.43978172540664673,
-0.0025199614465236664,
-0.3540673851966858,
0.1587357372045517,
-0.24824805557727814,
0.04480898380279541,
-0.059994664043188095,
0.11924633383750916,
0.4059152901172638,
0.4624786078929901,
0.6241881251335144,
-0.10790744423866272,
-0.04445112496614456,
-0.2833612263202667,
0.03802790120244026,
-0.043742094188928604,
-0.02791796624660492,
-0.2320086508989334,
-0.1256360113620758,
0.02141251228749752,
0.28267085552215576,
0.3797210454940796,
0.4987153112888336,
0.1252162605524063,
-0.32483306527137756,
-0.10135359317064285,
-0.0680503249168396,
-0.03759187459945679,
0.26657816767692566,
-0.010676972568035126,
0.047892242670059204,
0.05936804786324501,
0.01763533242046833,
0.19567644596099854,
0.43816667795181274,
-0.20380929112434387,
0.2262071669101715,
-0.5027623176574707,
-0.21395233273506165,
0.06295887380838394,
0.17093268036842346,
0.21437600255012512,
0.17903101444244385,
0.12522506713867188,
-0.2666705846786499,
0.01956285536289215,
-0.02694731205701828,
0.5451052784919739,
-0.110377736389637,
0.24740484356880188,
-0.2115398794412613,
0.1946564018726349,
-0.11201869696378708,
0.13194923102855682,
-0.1759556233882904,
0.19865235686302185,
0.00942990928888321,
-0.4868908226490021,
0.2963675260543823,
0.39506232738494873,
0.9533653259277344,
0.469032883644104,
0.23238283395767212,
0.34437096118927,
-0.3253096342086792,
0.5577518939971924,
0.01218445599079132,
0.22798308730125427,
-0.43249908089637756,
-0.1341833770275116,
-0.045663945376873016,
-0.006129782646894455,
-0.10332531481981277,
-0.19767917692661285,
-0.03306584060192108,
0.1741432547569275,
0.2883642911911011,
0.3233247995376587,
0.027767617255449295,
-0.09828905761241913,
0.08145803213119507,
-0.36174288392066956,
-0.0013470575213432312,
0.023409515619277954,
-0.06497252732515335,
0.0034663043916225433,
-0.16220086812973022,
0.11704568564891815,
-0.14431658387184143,
0.1657351553440094,
-0.26354503631591797,
-0.07000728696584702,
-0.27165770530700684,
0.0989561676979065,
0.32647472620010376,
-0.2881454825401306,
0.04992600902915001,
0.036862727254629135,
0.6191899180412292,
0.33154579997062683,
0.02258138358592987,
-0.03396667167544365,
0.1469225287437439,
0.24282385408878326,
0.044536277651786804,
-0.4531976878643036,
0.3092100918292999,
0.062404170632362366,
0.22387996315956116,
-0.4029240906238556,
0.09802243113517761,
0.21580930054187775,
-0.25089147686958313,
-0.061502039432525635,
0.03825926035642624,
0.0031563849188387394,
0.22505716979503632,
-0.11112836003303528,
0.20285664498806,
-0.2256278693675995,
0.13363875448703766,
-0.033781856298446655,
-0.23149894177913666,
-0.00890166312456131,
-0.036962177604436874,
-0.31491798162460327,
0.04173858463764191,
0.20637676119804382,
-0.03944900631904602,
-0.5680710077285767,
0.25854700803756714,
-0.38277024030685425,
-0.2513920068740845,
-0.007450830191373825,
0.22811740636825562,
0.1966439038515091,
-0.06704243272542953,
0.13692481815814972,
-0.09811072051525116,
-0.2944403886795044,
-0.18548834323883057,
0.21928153932094574,
0.32198184728622437,
-0.14073777198791504,
0.04569860175251961,
-0.35104379057884216,
-0.1588982194662094,
0.0010028928518295288,
-0.17866338789463043,
0.21997684240341187,
0.32523760199546814,
0.512834906578064,
-0.38019290566444397,
0.13780657947063446,
-0.28977635502815247,
-0.2866573929786682,
-0.18543237447738647,
-0.011455029249191284,
-0.44783899188041687,
-0.12181451171636581,
-0.46384549140930176,
-0.06610345840454102,
0.03964581340551376,
0.46778517961502075,
-0.09399249404668808,
-0.15835073590278625,
-0.15636077523231506,
0.09351427108049393,
0.31579938530921936,
-0.15541218221187592,
0.18161094188690186,
0.4209149479866028,
-0.105444997549057,
-0.27601033449172974,
-0.0125932227820158,
-0.006285220384597778,
-0.03437706083059311,
0.21518529951572418,
0.21609282493591309,
0.45626601576805115,
0.10220469534397125,
0.021516256034374237,
0.13706594705581665,
0.04691372066736221,
0.174235001206398,
0.4892762005329132,
-0.3065263628959656,
-0.0602695494890213,
0.06501073390245438,
0.16091659665107727,
0.25885146856307983,
-0.10352382808923721,
0.21405166387557983,
0.13304771482944489,
-0.3981347978115082,
0.21249282360076904,
0.016654182225465775,
0.24890436232089996,
-0.056915827095508575,
-0.4193788170814514,
0.4872605502605438,
0.15493616461753845,
-0.07179555296897888,
0.05234530195593834,
0.39590105414390564,
-0.1198631003499031,
-0.05871308967471123,
0.05343003571033478,
0.2961939871311188,
-0.017407365143299103,
0.2820734679698944,
0.09700968116521835,
0.2905796468257904,
-0.03407752886414528,
0.16035810112953186,
0.02929643727838993,
0.017020415514707565,
0.4946965277194977,
0.4404006600379944,
-0.19571833312511444,
0.15615257620811462,
0.25047287344932556,
0.04389563575387001,
0.32307538390159607,
0.030815856531262398,
0.02197296917438507,
-0.0927136018872261,
-0.18686693906784058,
-0.27509018778800964,
0.12240225076675415,
-0.08907710015773773,
0.21071431040763855,
0.34142372012138367,
0.042695026844739914,
-0.06346498429775238,
-0.062165435403585434,
-0.009410098195075989,
0.17256182432174683,
-0.609242856502533,
-0.10437463223934174,
-0.39376482367515564,
-0.06387670338153839,
-0.31301361322402954,
-0.08785922080278397,
0.11861377954483032,
0.1606636643409729,
0.013257607817649841,
-0.2074570208787918,
-0.3273748755455017,
-0.015774628147482872,
0.21656477451324463,
0.008498158305883408,
0.23581892251968384,
-0.08231782168149948,
0.2951458990573883,
0.01071188598871231,
0.09431715309619904,
-0.2271031141281128,
0.11802941560745239,
0.5410668253898621,
0.19452501833438873,
-0.30489984154701233,
-0.18987484276294708,
-0.1428609937429428,
0.015929969027638435,
-0.22178488969802856,
0.3723817765712738,
-0.04617297649383545,
-0.11681726574897766,
0.18493112921714783,
0.04564601182937622,
-0.1747492253780365,
-0.049692120403051376,
0.2591226100921631,
0.09560930728912354,
0.2560720145702362,
0.3022283911705017,
0.02700919844210148,
0.046087123453617096,
0.13593971729278564,
-0.01663457602262497,
0.10464534908533096,
0.018617819994688034,
-0.19132132828235626,
-0.02246912568807602,
0.04960551857948303,
-0.1372324675321579,
0.08899522572755814,
0.24029923975467682,
0.3574056625366211,
0.5412003993988037,
-0.09218055754899979,
-0.20618964731693268,
-0.4149601459503174,
-0.3863128125667572,
0.521124541759491,
0.47850510478019714,
-0.016848361119627953,
-0.06296155601739883,
-0.19649241864681244,
-0.10751687735319138,
0.0957125723361969,
-0.41491109132766724,
0.16475462913513184,
0.08979470282793045,
0.16718731820583344,
-0.15547367930412292,
0.2812334895133972,
-0.0012408271431922913,
-0.40193501114845276,
-0.1089809387922287,
-0.07242932915687561,
0.29898521304130554,
0.028775226324796677,
0.060196273028850555,
0.20420968532562256,
-0.013470117002725601,
-0.15052802860736847,
0.3201374113559723,
-0.05211380124092102,
0.6280630826950073,
0.13540691137313843,
-0.1455903798341751,
0.441185861825943,
-0.017650675028562546,
0.028677431866526604,
-0.58438640832901,
0.3166671693325043,
-0.2392609715461731,
0.31471994519233704,
0.03731580078601837,
-0.4717945158481598,
-0.05022162199020386,
0.02525409683585167,
0.3487573266029358,
-0.1720811128616333,
-0.3881039321422577,
0.3029594123363495,
-0.2138737440109253,
-0.03577984869480133,
0.05062949284911156,
0.38825738430023193,
0.2650303840637207,
0.44946572184562683,
-0.2877139151096344,
-0.6340731382369995,
-0.033007994294166565,
-0.21014875173568726,
-0.2857016921043396,
-0.1999208778142929,
-0.11783672869205475,
0.2962211072444916,
-0.15328048169612885,
-0.13815085589885712,
-0.2883765399456024,
0.15956325829029083,
-0.2351207137107849,
-0.2998200058937073,
0.242292582988739,
-0.17330771684646606,
-0.03217180818319321,
-0.19824367761611938,
0.3979831635951996,
0.1741544008255005,
-0.25920814275741577,
0.10108785331249237,
-0.14171184599399567
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | I'm currently adding it, the entire dataset is quite big around 30 GB so I add splits separately. You can take a look here https://huggingface.co/datasets/merve/coco | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 25 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
I'm currently adding it, the entire dataset is quite big around 30 GB so I add splits separately. You can take a look here https://huggingface.co/datasets/merve/coco | [
-0.21530325710773468,
-0.49169018864631653,
-0.13700984418392181,
0.211781844496727,
0.1525026261806488,
0.03624939173460007,
0.12675942480564117,
0.11922024190425873,
-0.1120569109916687,
0.2191455364227295,
-0.5324269533157349,
0.14771413803100586,
-0.2628600597381592,
0.45401838421821594,
0.11491912603378296,
-0.3077384829521179,
0.041692689061164856,
-0.003028653562068939,
-0.3708555996417999,
0.015559852123260498,
0.012687277048826218,
0.21263273060321808,
0.10568194091320038,
-0.05639280378818512,
-0.38363274931907654,
-0.2187281996011734,
-0.4752494692802429,
-0.04207867383956909,
-0.13382288813591003,
-0.2965031564235687,
0.08164609223604202,
0.13981403410434723,
0.16413700580596924,
0.4152817130088806,
-0.00009791659977054223,
0.055008843541145325,
0.020378444343805313,
-0.07999660074710846,
-0.03548610955476761,
-0.07863315939903259,
0.017198942601680756,
-0.19322232902050018,
0.03447357565164566,
-0.15680740773677826,
-0.24620899558067322,
0.028484351933002472,
0.1617293357849121,
0.0025802254676818848,
0.5317171216011047,
0.12430287152528763,
0.33984047174453735,
0.2968301773071289,
0.117865189909935,
-0.14658226072788239,
-0.034973666071891785,
0.4113945960998535,
-0.19491031765937805,
0.18048284947872162,
0.2470690906047821,
0.11336341500282288,
-0.19747593998908997,
0.5485955476760864,
0.09929578006267548,
-0.016369882971048355,
0.34464940428733826,
0.10231905430555344,
-0.11615211516618729,
-0.39133700728416443,
0.01636071689426899,
0.3467675447463989,
0.14822211861610413,
-0.19844236969947815,
-0.3548283874988556,
-0.42164304852485657,
-0.08336152881383896,
-0.2981787919998169,
-0.02892017364501953,
0.2707449197769165,
-0.1346224546432495,
0.28040841221809387,
-0.2671377956867218,
-0.16858963668346405,
-0.18529364466667175,
-0.06559400260448456,
0.013942927122116089,
0.05283566936850548,
-0.1821889728307724,
-0.12632417678833008,
0.17819024622440338,
-0.11738406121730804,
-0.34465134143829346,
-0.008622266352176666,
0.0871402770280838,
-0.06955164670944214,
-0.10543212294578552,
-0.2239011526107788,
0.04908062890172005,
0.19247958064079285,
0.3342486321926117,
0.12350267916917801,
-0.006804394535720348,
0.06686636060476303,
-0.16017064452171326,
0.09695670008659363,
0.05809760093688965,
0.09970466792583466,
-0.3258383572101593,
0.05928158015012741,
0.18897412717342377,
0.19776591658592224,
0.03905700519680977,
-0.11435201019048691,
0.016378086060285568,
0.23559385538101196,
-0.32802867889404297,
-0.22370803356170654,
-0.042760372161865234,
-0.03930271416902542,
-0.14239495992660522,
-0.17451688647270203,
0.14213961362838745,
0.15471388399600983,
0.10752622783184052,
0.39824873208999634,
-0.01065751537680626,
0.14833681285381317,
0.0025311484932899475,
0.1230979710817337,
-0.028462886810302734,
-0.07066065818071365,
-0.2533963620662689,
0.08752693235874176,
-0.18479932844638824,
0.17014895379543304,
0.17933012545108795,
-0.12080028653144836,
0.08725304156541824,
-0.3490681052207947,
0.1988040804862976,
0.17199520766735077,
-0.10265903919935226,
-0.13704490661621094,
0.22441545128822327,
0.1371334344148636,
-0.1648433357477188,
-0.24196860194206238,
0.10814385116100311,
-0.03517027944326401,
-0.2506753206253052,
-0.23052310943603516,
-0.09181296080350876,
-0.1466848999261856,
-0.19061881303787231,
0.2425239235162735,
-0.18402495980262756,
-0.10663068294525146,
-0.15211135149002075,
0.5768021941184998,
-0.21027901768684387,
0.17846189439296722,
-0.039704807102680206,
0.28489232063293457,
-0.2618424892425537,
-0.0954972505569458,
0.20359322428703308,
0.38539189100265503,
0.18126745522022247,
-0.26841312646865845,
0.029311273247003555,
-0.15174445509910583,
-0.10815977305173874,
0.11428552865982056,
0.05407201126217842,
0.011544264853000641,
-0.15829625725746155,
-0.012643955647945404,
-0.19853243231773376,
-0.2216111272573471,
-0.2200818508863449,
0.11861048638820648,
-0.14221839606761932,
0.014857294037938118,
0.15134316682815552,
0.32734984159469604,
0.12662670016288757,
0.020355945453047752,
-0.18598628044128418,
0.4188704490661621,
-0.12040387094020844,
0.15688151121139526,
0.03495608642697334,
-0.4074230492115021,
-0.0568409338593483,
0.2720254957675934,
0.16603180766105652,
-0.0403289869427681,
-0.048622630536556244,
-0.0896308571100235,
0.11728009581565857,
-0.1565428376197815,
0.07892224937677383,
-0.009426120668649673,
0.424299031496048,
0.21325837075710297,
-0.03438813239336014,
-0.30195507407188416,
-0.33433768153190613,
0.047193922102451324,
0.14013934135437012,
0.2650364935398102,
-0.2936473488807678,
-0.3864412307739258,
0.06829843670129776,
0.07179933786392212,
-0.0034985654056072235,
-0.3294784128665924,
0.29064345359802246,
0.18249310553073883,
0.25178590416908264,
0.04283980652689934,
-0.15097972750663757,
0.3727291524410248,
0.168043851852417,
0.34173133969306946,
-0.0871616005897522,
0.255056768655777,
-0.09127667546272278,
0.1279137283563614,
0.2796832025051117,
0.13201633095741272,
-0.16397851705551147,
-0.13164855539798737,
0.15560883283615112,
0.37075260281562805,
-0.06645344197750092,
0.23247604072093964,
0.0824984461069107,
0.2918127179145813,
0.36263909935951233,
-0.4550876021385193,
0.07968489080667496,
-0.05504567548632622,
0.09986963123083115,
0.10097964853048325,
-0.37773397564888,
0.23742961883544922,
-0.03642452135682106,
0.14004334807395935,
0.23909355700016022,
0.07682311534881592,
0.26536744832992554,
0.016096044331789017,
-0.13660266995429993,
-0.24916233122348785,
-0.13221323490142822,
-0.07711060345172882,
0.2784404456615448,
0.08487964421510696,
-0.3501448631286621,
0.012583941221237183,
0.16638517379760742,
0.06782947480678558,
0.21976932883262634,
0.29174375534057617,
-0.3265647888183594,
0.026100751012563705,
0.07557155191898346,
-0.11597295105457306,
-0.018389105796813965,
0.38236111402511597,
-0.026154059916734695,
-0.008260207250714302,
0.05551968514919281,
-0.006469679065048695,
0.10167595744132996,
0.2502604126930237,
-0.0272568017244339,
0.029879344627261162,
0.3205062747001648,
-0.09539174288511276,
-0.44153663516044617,
-0.3939621150493622,
-0.25062206387519836,
-0.0729554072022438,
0.0724305808544159,
0.08712656050920486,
0.03772622346878052,
-0.377505362033844,
-0.10263963788747787,
-0.03589211031794548,
-0.11131614446640015,
-0.02955647185444832,
0.19911064207553864,
-0.0903468132019043,
-0.10201999545097351,
0.06688445061445236,
-0.1321210116147995,
0.4700731933116913,
-0.1354326605796814,
0.07883880287408829,
-0.07631785422563553,
-0.04851486533880234,
-0.010919030755758286,
0.2654299736022949,
0.24020598828792572,
-0.10944245010614395,
0.5106124877929688,
-0.11898647248744965,
0.3584504723548889,
0.0070604076609015465,
-0.6175380349159241,
0.26436886191368103,
-0.16004009544849396,
0.0011799503117799759,
0.11533410847187042,
-0.05925682187080383,
0.026256076991558075,
-0.33095285296440125,
0.18237926065921783,
-0.2732762098312378,
-0.19650110602378845,
-0.15243376791477203,
-0.10196705907583237,
-0.01559202279895544,
-0.2771964371204376,
-0.13556048274040222,
-0.3518200218677521,
-0.40240374207496643,
0.549084484577179,
0.28939372301101685,
0.007361613214015961,
0.3059740662574768,
0.15288248658180237,
0.19717581570148468,
-0.2146897315979004,
0.1979483962059021,
-0.029995331540703773,
-0.2993708848953247,
0.12195251882076263,
-0.2695867121219635,
-0.18963444232940674,
-0.3042207658290863,
-0.3677062392234802,
0.18143302202224731,
-0.1487271934747696,
-0.4660225510597229,
-0.3037879168987274,
-0.4071029722690582,
0.10142892599105835,
0.15413403511047363,
0.03545532748103142,
0.22969532012939453,
0.06568748503923416,
-0.16939228773117065,
-0.008212991058826447,
-0.08781956136226654,
0.06308752298355103,
-0.04634316265583038,
-0.06003453582525253,
-0.2355698049068451,
0.2190365493297577,
0.26676660776138306,
0.37578219175338745,
-0.014763623476028442,
-0.3155639171600342,
0.3616863787174225,
-0.05949261039495468,
0.47059300541877747,
-0.1762414276599884,
-0.2350085973739624,
0.29086989164352417,
-0.1133737862110138,
-0.05757923051714897,
0.3010134696960449,
0.20568791031837463,
-0.0747251957654953,
-0.2766672670841217,
-0.018931306898593903,
-0.29853081703186035,
-0.12396895885467529,
0.02713942341506481,
0.5522047281265259,
0.10933776199817657,
-0.21217718720436096,
-0.19801226258277893,
-0.2179725468158722,
-0.19702380895614624,
0.22519135475158691,
0.2897895574569702,
0.035435330122709274,
-0.05725422501564026,
-0.3899444043636322,
-0.133836567401886,
-0.43885481357574463,
0.1760108321905136,
0.0957249253988266,
-0.2609081268310547,
-0.053834229707717896,
-0.3094114363193512,
-0.0525425523519516,
-0.11751993745565414,
0.39316368103027344,
0.22481101751327515,
-0.1958232969045639,
-0.07515743374824524,
-0.3980819880962372,
-0.16221174597740173,
0.17344704270362854,
-0.21758481860160828,
-0.13740165531635284,
0.11558704078197479,
0.5705605745315552,
-0.35925033688545227,
0.02692299336194992,
0.2478414624929428,
0.049711938947439194,
-0.06399791687726974,
0.008445297367870808,
-0.11903059482574463,
-0.036581605672836304,
-0.40550497174263,
0.09357509762048721,
0.022360587492585182,
0.14097662270069122,
0.22696977853775024,
-0.14243046939373016,
-0.008530689403414726,
-0.22100892663002014,
0.1969899982213974,
0.37303227186203003,
0.08805660158395767,
0.1894034892320633,
0.17773230373859406,
0.12529000639915466,
0.22056612372398376,
0.15937647223472595,
0.5425763130187988,
-0.12866397202014923,
-0.29685643315315247,
-0.08850353956222534,
0.13265930116176605,
0.14721764624118805,
0.17707295715808868,
0.1846877485513687,
0.015981927514076233,
0.06659351289272308,
0.3334310054779053,
-0.5593421459197998,
0.3931511640548706,
0.07022874057292938,
0.07747898250818253,
-0.24367696046829224,
-0.06696708500385284,
0.2968851625919342,
-0.015113290399312973,
-0.021226711571216583,
0.10375761985778809,
0.15553976595401764,
-0.22742831707000732,
0.24399004876613617,
0.29329362511634827,
0.9265533089637756,
-0.2744007110595703,
0.35286444425582886,
0.13005775213241577,
-0.08212527632713318,
0.4231399893760681,
-0.17929436266422272,
0.1596546620130539,
-0.05947368964552879,
-0.21663573384284973,
-0.010654682293534279,
0.05315498635172844,
0.05056481808423996,
-0.07343627512454987,
-0.31305328011512756,
-0.06977209448814392,
0.20733390748500824,
0.32352787256240845,
-0.19821211695671082,
0.2720714509487152,
-0.1696593314409256,
-0.5595564842224121,
-0.16214171051979065,
0.29869353771209717,
-0.040688224136829376,
0.1895429939031601,
0.08764417469501495,
-0.14941956102848053,
-0.13710716366767883,
0.043197013437747955,
-0.18333692848682404,
-0.07054533064365387,
-0.13466215133666992,
0.15686121582984924,
0.12085959315299988,
-0.062218472361564636,
-0.04135625436902046,
0.3203662633895874,
0.25225088000297546,
0.11496613919734955,
-0.2540891170501709,
0.25831836462020874,
-0.31091928482055664,
-0.1533028483390808,
-0.0367981381714344,
-0.030982214957475662,
0.26976343989372253,
-0.01155548170208931,
0.04274363070726395,
-0.039146289229393005,
0.42269110679626465,
-0.0431106798350811,
-0.1583690494298935,
-0.10513448715209961,
0.12728166580200195,
-0.03174833953380585,
0.11279024183750153,
0.1033065915107727,
-0.18272016942501068,
-0.18984241783618927,
0.2347230762243271,
0.11719314008951187,
0.0008000421803444624,
-0.06795520335435867,
0.20038732886314392,
-0.022984866052865982,
-0.1687799096107483,
0.2527181804180145,
0.14124053716659546,
0.013427041471004486,
0.11245355010032654,
0.21013964712619781,
-0.16207224130630493,
-0.2859322130680084,
0.028434090316295624,
0.08210170269012451,
-0.3515814542770386,
0.19363269209861755,
-0.016692399978637695,
-0.30963677167892456,
-0.11670546233654022,
0.2486094832420349,
0.21361245214939117,
-0.1487826406955719,
0.012138362973928452,
-0.08855520188808441,
-0.556896984577179,
0.4413871169090271,
-0.2526451349258423,
0.40019938349723816,
-0.0717797726392746,
0.3666241765022278,
0.09198268502950668,
0.29425907135009766,
-0.49116572737693787,
-0.11335060745477676,
-0.24911412596702576,
-0.10876408219337463,
0.08629611879587173,
-0.1565043032169342,
0.18308237195014954,
0.028865937143564224,
0.21979890763759613,
0.2740522623062134,
-0.19548162817955017,
-0.29852530360221863,
-0.15102966129779816,
0.05897592008113861,
0.02018100954592228,
-0.012363800778985023,
0.05856677517294884,
0.19300182163715363,
-0.07843944430351257,
-0.27598658204078674,
0.20549213886260986,
0.07376483082771301,
0.037330564111471176,
0.005256478674709797,
-0.09304437041282654,
-0.18992891907691956,
0.27621960639953613,
-0.1332063227891922,
0.06611467897891998,
0.06483498215675354,
0.3904372453689575,
-0.1083013266324997,
-0.1227927878499031,
-0.14943864941596985,
0.21142373979091644,
0.311637282371521,
0.21053427457809448,
-0.13487282395362854,
0.28189221024513245,
0.10049267113208771,
-0.07421606034040451,
0.3623119592666626,
0.39099228382110596,
-0.28326475620269775,
-0.02079717069864273,
0.3028371036052704,
0.2878364026546478,
0.3543410301208496,
-0.42206713557243347,
-0.07432980090379715,
0.08591587841510773,
-0.2558407783508301,
0.31012850999832153,
0.3322671055793762,
0.08481226861476898,
0.2820250689983368,
-0.20786713063716888,
0.08510531485080719,
0.23432569205760956,
0.18387196958065033,
0.07219138741493225,
0.10698740184307098,
0.021670129150152206,
-0.06453986465930939,
0.39074763655662537,
0.14567683637142181,
0.4849250912666321,
0.27314919233322144,
-0.26826226711273193,
0.23097974061965942,
-0.16981405019760132,
0.19721372425556183,
0.6757456064224243,
-0.08967727422714233,
-0.13390319049358368,
-0.07350435853004456,
0.12469734251499176,
0.2605559825897217,
-0.2544020712375641,
0.23617181181907654,
-0.0442088283598423,
-0.027779975906014442,
-0.34044238924980164,
0.23605553805828094,
0.046548906713724136,
-0.16398821771144867,
-0.015971573069691658,
-0.18917015194892883,
-0.15835881233215332,
0.1063733696937561,
0.16339051723480225,
-0.537798285484314,
0.2132629156112671,
-0.0771542638540268,
0.06522116810083389,
-0.028577333316206932,
-0.24586904048919678,
0.16873681545257568,
0.38435643911361694,
-0.15262609720230103,
0.13378629088401794,
0.36540502309799194,
-0.09896592795848846,
0.25021418929100037,
0.3046341836452484,
0.2365993857383728,
-0.19068744778633118,
-0.04021982103586197,
0.21571557223796844,
-0.2188158631324768,
-0.2049487680196762,
-0.2610166668891907,
0.21568168699741364,
0.07041790336370468,
0.18578733503818512,
0.282868891954422,
0.23560094833374023,
-0.2694019079208374,
-0.14573292434215546,
-0.13454818725585938,
0.1765247881412506,
-0.25809216499328613,
-0.12473932653665543,
-0.03476779907941818,
-0.03884926438331604,
-0.302408903837204,
-0.059591107070446014,
-0.5944178700447083,
-0.14528603851795197,
0.06812235713005066,
-0.4182945787906647,
-0.04148705303668976,
-0.05256740748882294,
0.13636985421180725,
0.0002300255000591278,
0.33383238315582275,
0.34681016206741333,
0.14039847254753113,
-0.025448493659496307,
-0.26121988892555237,
-0.3736652731895447,
0.06865435838699341,
-0.08492843806743622,
-0.266783207654953,
-0.19728980958461761,
0.17823371291160583,
0.17883025109767914,
0.2261582612991333,
-0.09958836436271667,
0.019564848393201828,
0.1587783247232437,
-0.06496869772672653,
-0.2817167043685913,
0.2688281238079071,
-0.2454056590795517,
0.19869564473628998,
0.17211225628852844,
-0.014699596911668777,
0.10047866404056549,
-0.014461484737694263,
0.1300237774848938,
-0.04628425091505051,
0.19323527812957764,
-0.3927161991596222,
-0.10584667325019836,
0.3289317786693573,
-0.027616938576102257,
0.12722355127334595,
-0.22800353169441223,
-0.22602815926074982,
-0.09815208613872528,
-0.3264571726322174,
-0.2428758144378662,
0.02797006443142891,
0.1054353266954422,
0.5810089111328125,
-0.2243500053882599,
-0.18210917711257935,
0.08337439596652985,
0.19480082392692566,
0.2668790817260742,
-0.07202251255512238,
-0.13203367590904236,
0.10033775120973587,
-0.08574049174785614,
-0.14611539244651794,
0.14162376523017883,
0.603938102722168,
-0.006083197891712189,
-0.34893718361854553,
0.14593756198883057,
-0.5466768741607666,
0.518098771572113,
-0.41372522711753845,
-0.19225361943244934,
-0.08850264549255371,
-0.08557446300983429,
0.33453235030174255,
0.06932935118675232,
-0.49537256360054016,
0.19291335344314575,
0.1197640523314476,
0.13085094094276428,
-0.21960733830928802,
0.28491589426994324,
0.09764435887336731,
-0.18368494510650635,
-0.13742035627365112,
0.0876569002866745,
0.04383573681116104,
-0.09058555960655212,
-0.000538993626832962,
-0.23213893175125122
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | I talked to @lhoestq and it's best if I download this dataset through TensorFlow datasets instead, so I'll be implementing that one really soon.
@NielsRogge | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 25 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
I talked to @lhoestq and it's best if I download this dataset through TensorFlow datasets instead, so I'll be implementing that one really soon.
@NielsRogge | [
-0.22789953649044037,
-0.5181814432144165,
-0.15937601029872894,
0.12037906050682068,
0.1785203218460083,
0.004588104784488678,
0.19410768151283264,
0.15879057347774506,
-0.062192317098379135,
0.258683443069458,
-0.4073512852191925,
0.14291571080684662,
-0.2488182932138443,
0.3926752209663391,
0.16113421320915222,
-0.28059861063957214,
0.045015912503004074,
0.02914705127477646,
-0.361395001411438,
-0.007906388491392136,
0.03226733207702637,
0.1801755726337433,
0.10161729156970978,
-0.0850609689950943,
-0.33235040307044983,
-0.2048976570367813,
-0.3446069657802582,
-0.08848211914300919,
-0.11584494262933731,
-0.2513130009174347,
0.13612277805805206,
0.1309620887041092,
0.11652727425098419,
0.3850666284561157,
-0.00009651752770878375,
0.11417192220687866,
0.031166741624474525,
-0.06342364847660065,
-0.0256440881639719,
-0.15903045237064362,
0.024646826088428497,
-0.1854436993598938,
0.016143517568707466,
-0.16625943779945374,
-0.2727757692337036,
0.06287625432014465,
0.22590570151805878,
0.07626630365848541,
0.5331106781959534,
0.17777509987354279,
0.3503471910953522,
0.3712866008281708,
0.08091863989830017,
-0.09109733998775482,
-0.04305849224328995,
0.34236830472946167,
-0.20810866355895996,
0.13084520399570465,
0.21004505455493927,
0.05668505281209946,
-0.1825040876865387,
0.5176532864570618,
0.12708063423633575,
0.0197971910238266,
0.36096519231796265,
0.13787595927715302,
-0.11067379266023636,
-0.382497102022171,
-0.04313012212514877,
0.3594955503940582,
0.1066809594631195,
-0.22256770730018616,
-0.3517686724662781,
-0.42074206471443176,
-0.07045771181583405,
-0.32438671588897705,
-0.029190950095653534,
0.2260197550058365,
-0.18947434425354004,
0.2460542470216751,
-0.24395295977592468,
-0.10093332082033157,
-0.22293248772621155,
-0.03392689675092697,
0.014333173632621765,
0.08118385076522827,
-0.17935438454151154,
-0.14277246594429016,
0.14952680468559265,
-0.0834830179810524,
-0.31025391817092896,
0.014808505773544312,
0.20455190539360046,
-0.06299985200166702,
-0.16321180760860443,
-0.1960713118314743,
0.10249381512403488,
0.08224796503782272,
0.308727890253067,
0.0994638055562973,
0.06789888441562653,
0.13169676065444946,
-0.1831439733505249,
0.15319347381591797,
-0.051837045699357986,
0.14160801470279694,
-0.29966306686401367,
-0.011098882183432579,
0.1891704797744751,
0.2370443344116211,
0.034438882023096085,
-0.0655142217874527,
0.00969381257891655,
0.24635440111160278,
-0.32403239607810974,
-0.17204850912094116,
-0.021694760769605637,
0.035037290304899216,
-0.17632265388965607,
-0.10862301290035248,
0.12624573707580566,
0.1715390384197235,
0.12362680584192276,
0.40240588784217834,
-0.09711300581693649,
0.1371806561946869,
0.04673632234334946,
0.12232241034507751,
0.012277264147996902,
0.0007987711578607559,
-0.28946229815483093,
0.10392345488071442,
-0.167415589094162,
0.11622479557991028,
0.17827267944812775,
-0.10568156838417053,
0.1406257450580597,
-0.30243661999702454,
0.24052467942237854,
0.11902692914009094,
-0.04827778786420822,
-0.08462837338447571,
0.25294265151023865,
0.165972501039505,
-0.15353332459926605,
-0.2648894488811493,
0.10154785215854645,
-0.09652714431285858,
-0.20238512754440308,
-0.25278061628341675,
-0.11753546446561813,
-0.1253170520067215,
-0.06745504587888718,
0.2587345540523529,
-0.17710505425930023,
-0.12144078314304352,
-0.12303846329450607,
0.5629264712333679,
-0.20485058426856995,
0.2324221134185791,
-0.008638933300971985,
0.2824910283088684,
-0.29532021284103394,
-0.08608251810073853,
0.2837523818016052,
0.3011486530303955,
0.18747064471244812,
-0.3147723078727722,
0.09366841614246368,
-0.09437218308448792,
-0.09317421168088913,
0.13386963307857513,
0.029195254668593407,
0.04020615294575691,
-0.08996639400720596,
-0.007136330008506775,
-0.15108075737953186,
-0.270267128944397,
-0.2442437708377838,
0.06425756216049194,
-0.18302619457244873,
0.07382608950138092,
0.11583325266838074,
0.282552570104599,
0.08146540075540543,
0.03449368104338646,
-0.13285154104232788,
0.38479846715927124,
-0.12958276271820068,
0.18637549877166748,
0.024687889963388443,
-0.41665297746658325,
-0.03766917437314987,
0.26275312900543213,
0.18956264853477478,
-0.030375957489013672,
-0.09370095282793045,
-0.07659938186407089,
0.13720878958702087,
-0.16203007102012634,
0.039642542600631714,
0.024120431393384933,
0.3944680392742157,
0.2300104945898056,
-0.05995715409517288,
-0.23371371626853943,
-0.3302849531173706,
0.09402654320001602,
0.16844753921031952,
0.27873167395591736,
-0.22395797073841095,
-0.3782503008842468,
0.08852311968803406,
0.0971299484372139,
0.03384785354137421,
-0.2838197648525238,
0.31575584411621094,
0.16293391585350037,
0.22719410061836243,
0.09338274598121643,
-0.16863985359668732,
0.381622850894928,
0.035056114196777344,
0.3067586123943329,
-0.0963468998670578,
0.2162020355463028,
-0.04865989834070206,
0.1338469386100769,
0.22293508052825928,
0.14287608861923218,
-0.156995952129364,
-0.17625053226947784,
0.18486666679382324,
0.327892929315567,
-0.14909720420837402,
0.300628662109375,
-0.04589804261922836,
0.3325825035572052,
0.31809017062187195,
-0.371121346950531,
-0.04277019202709198,
-0.08844996988773346,
0.07624756544828415,
0.09976541250944138,
-0.3419305980205536,
0.23066669702529907,
0.03903421387076378,
0.1127263754606247,
0.2396191507577896,
0.020313063636422157,
0.20915277302265167,
-0.0009750388562679291,
-0.17136430740356445,
-0.22135214507579803,
-0.07699021697044373,
-0.11435721814632416,
0.2781546115875244,
0.040266357362270355,
-0.42647281289100647,
-0.003618590533733368,
0.18436387181282043,
0.08784164488315582,
0.2590145766735077,
0.2657226324081421,
-0.2334686517715454,
0.05257706344127655,
0.05262439697980881,
-0.0652252584695816,
-0.06975904107093811,
0.3608062267303467,
-0.02300141379237175,
0.052422571927309036,
-0.003403773531317711,
-0.05870945006608963,
0.11673860996961594,
0.22908920049667358,
0.023936741054058075,
0.01778114214539528,
0.2703316807746887,
-0.08539465069770813,
-0.4960660934448242,
-0.3260100483894348,
-0.23446904122829437,
-0.051615118980407715,
0.039235133677721024,
0.06943630427122116,
0.013467838987708092,
-0.35920387506484985,
-0.06693316251039505,
-0.012883991934359074,
-0.06833478808403015,
0.019272102043032646,
0.17712320387363434,
-0.05643104389309883,
-0.12468098104000092,
0.10225465893745422,
-0.11054986715316772,
0.4675168991088867,
-0.10143662989139557,
0.031273163855075836,
-0.0991513803601265,
-0.026011021807789803,
0.026819290593266487,
0.26945212483406067,
0.15135890245437622,
-0.1467766910791397,
0.49464908242225647,
-0.12738105654716492,
0.33204084634780884,
-0.013546176254749298,
-0.6585456728935242,
0.237486332654953,
-0.2026892900466919,
-0.016911638900637627,
0.0989566519856453,
0.021862052381038666,
-0.019475316628813744,
-0.36217910051345825,
0.1749127209186554,
-0.29222172498703003,
-0.20623578131198883,
-0.154468834400177,
-0.09464992582798004,
-0.023434706032276154,
-0.32823047041893005,
-0.16347327828407288,
-0.2876628637313843,
-0.3734138309955597,
0.5647403001785278,
0.3009392321109772,
0.0428805947303772,
0.38680359721183777,
0.1460878700017929,
0.20347195863723755,
-0.1533966064453125,
0.20603522658348083,
-0.04079398140311241,
-0.37894609570503235,
0.13386917114257812,
-0.27430200576782227,
-0.20490211248397827,
-0.35134243965148926,
-0.38894110918045044,
0.23229490220546722,
-0.11450238525867462,
-0.4861500859260559,
-0.3045828640460968,
-0.40501391887664795,
0.13911883533000946,
0.15817111730575562,
-0.009572362527251244,
0.19306287169456482,
0.005955833476036787,
-0.17661164700984955,
-0.06943792849779129,
-0.04839396849274635,
0.12784473598003387,
-0.02938094362616539,
-0.11525192111730576,
-0.15121451020240784,
0.2839104235172272,
0.31022629141807556,
0.3753761649131775,
-0.06738743931055069,
-0.3639625906944275,
0.37371984124183655,
-0.12182653695344925,
0.43026068806648254,
-0.1347872018814087,
-0.24052584171295166,
0.3045394718647003,
-0.093396857380867,
-0.023207154124975204,
0.29713889956474304,
0.1463998556137085,
-0.10151184350252151,
-0.26141926646232605,
0.049060139805078506,
-0.3140319585800171,
-0.13068780303001404,
0.02451305277645588,
0.506563663482666,
0.10249628126621246,
-0.14599567651748657,
-0.15009602904319763,
-0.22671344876289368,
-0.1695103943347931,
0.2666374444961548,
0.23041366040706635,
0.034505974501371384,
-0.06961741298437119,
-0.3597582280635834,
-0.13265462219715118,
-0.5196385383605957,
0.13459795713424683,
0.12912815809249878,
-0.20358803868293762,
-0.05103406310081482,
-0.28306499123573303,
-0.10859861969947815,
-0.13635867834091187,
0.3977634310722351,
0.20334243774414062,
-0.11444054543972015,
-0.10579627752304077,
-0.41152846813201904,
-0.15727193653583527,
0.18978193402290344,
-0.22229976952075958,
-0.21306224167346954,
0.10691097378730774,
0.5805934071540833,
-0.3311232924461365,
0.007948345504701138,
0.1583150029182434,
-0.002641283208504319,
-0.019581764936447144,
0.04071011766791344,
-0.0953906923532486,
-0.0901796817779541,
-0.3514408767223358,
0.10996779799461365,
0.026556873694062233,
0.1107947900891304,
0.19055317342281342,
-0.16547107696533203,
-0.017810000106692314,
-0.14772619307041168,
0.21091729402542114,
0.3298831880092621,
0.04406414553523064,
0.2716010510921478,
0.12587621808052063,
0.13799329102039337,
0.19663909077644348,
0.14635448157787323,
0.45158150792121887,
-0.12007339298725128,
-0.3589448034763336,
-0.16141769289970398,
0.1785687953233719,
0.06740355491638184,
0.16945727169513702,
0.14348429441452026,
0.05246514827013016,
0.08131325244903564,
0.329354465007782,
-0.5296676754951477,
0.4779271185398102,
0.10555262118577957,
0.1495559960603714,
-0.17455708980560303,
-0.12582235038280487,
0.2940499782562256,
-0.01037914864718914,
-0.007432997226715088,
0.1553780883550644,
0.14076313376426697,
-0.2713184356689453,
0.19062113761901855,
0.30036282539367676,
0.8386096358299255,
-0.20788227021694183,
0.2882908284664154,
0.21940919756889343,
-0.02862265519797802,
0.4765286147594452,
-0.2837446928024292,
0.17190788686275482,
-0.04166043549776077,
-0.3164714574813843,
-0.00399244949221611,
0.04511919245123863,
0.009892333298921585,
-0.08565954864025116,
-0.2452036291360855,
-0.1420702338218689,
0.21277855336666107,
0.31561970710754395,
-0.13330936431884766,
0.27524533867836,
-0.13673986494541168,
-0.5555935502052307,
-0.16587673127651215,
0.31263816356658936,
-0.030620090663433075,
0.1719464808702469,
0.0407920740544796,
-0.1507679969072342,
-0.1280239224433899,
0.02623201161623001,
-0.1309124082326889,
-0.004736581817269325,
-0.223418727517128,
0.17950429022312164,
0.13529157638549805,
-0.06257254630327225,
-0.07088255137205124,
0.3465330898761749,
0.3396538496017456,
0.09503395855426788,
-0.2813732922077179,
0.2679844796657562,
-0.2524344027042389,
-0.11664838343858719,
-0.012654642574489117,
-0.058099858462810516,
0.2923903167247772,
-0.04051294922828674,
0.050130195915699005,
-0.058257751166820526,
0.3789542019367218,
-0.03361489623785019,
-0.12520955502986908,
-0.14725938439369202,
0.09702250361442566,
0.028760982677340508,
0.07119658589363098,
0.14567258954048157,
-0.1964765340089798,
-0.18306958675384521,
0.25506162643432617,
0.09236723929643631,
-0.002086497377604246,
-0.09367994219064713,
0.25115978717803955,
-0.07132979482412338,
-0.11229819059371948,
0.24171018600463867,
0.11642570048570633,
-0.012348297983407974,
0.15946829319000244,
0.17535839974880219,
-0.18287381529808044,
-0.2848144769668579,
0.0036937296390533447,
0.12507560849189758,
-0.30438563227653503,
0.15908083319664001,
-0.010148691944777966,
-0.30855870246887207,
-0.14940565824508667,
0.23504863679409027,
0.1946256309747696,
-0.14138853549957275,
0.024628471583127975,
-0.07005041837692261,
-0.5569875240325928,
0.39444679021835327,
-0.23019267618656158,
0.3951961398124695,
-0.07427515089511871,
0.3570384085178375,
0.09641142189502716,
0.20886927843093872,
-0.5083770155906677,
-0.12968756258487701,
-0.25576072931289673,
-0.08066587150096893,
0.11104649305343628,
-0.17305123805999756,
0.25107598304748535,
0.008923197165131569,
0.25951167941093445,
0.27130967378616333,
-0.22844573855400085,
-0.33584457635879517,
-0.18611378967761993,
0.04192134737968445,
0.029398154467344284,
-0.014510175213217735,
0.08157989382743835,
0.24947811663150787,
-0.12355221807956696,
-0.2557370960712433,
0.26045531034469604,
0.09307587891817093,
0.03350280225276947,
0.06260782480239868,
-0.12175135314464569,
-0.06291671842336655,
0.25903064012527466,
-0.22111761569976807,
0.050410158932209015,
0.05894254893064499,
0.2950209677219391,
-0.15808197855949402,
-0.11742908507585526,
-0.13300368189811707,
0.21740548312664032,
0.26212215423583984,
0.17990417778491974,
-0.12080738693475723,
0.25234130024909973,
0.06771193444728851,
-0.07278746366500854,
0.31339287757873535,
0.35242053866386414,
-0.3006304204463959,
-0.0612819604575634,
0.25128376483917236,
0.26269933581352234,
0.38036781549453735,
-0.3888545632362366,
-0.045910000801086426,
0.08269137144088745,
-0.17575135827064514,
0.3599202334880829,
0.30078426003456116,
0.026299212127923965,
0.2634783685207367,
-0.15726298093795776,
0.06834553927183151,
0.19198577105998993,
0.07091769576072693,
0.08461323380470276,
0.0703505203127861,
-0.01626306027173996,
-0.052635278552770615,
0.24086891114711761,
0.15567554533481598,
0.4375065565109253,
0.23493817448616028,
-0.21166563034057617,
0.19526630640029907,
-0.15976017713546753,
0.11251159757375717,
0.6173153519630432,
-0.0845145508646965,
-0.17454487085342407,
-0.08045955002307892,
-0.0030026137828826904,
0.30532464385032654,
-0.23698097467422485,
0.21272805333137512,
0.03518000245094299,
-0.053062207996845245,
-0.32321181893348694,
0.20645326375961304,
-0.017038587480783463,
-0.178315669298172,
-0.0847887396812439,
-0.12191267311573029,
-0.11462932825088501,
0.009990289807319641,
0.2210657298564911,
-0.5162920951843262,
0.13433347642421722,
-0.05180814117193222,
0.0479356050491333,
0.02236025035381317,
-0.261311799287796,
0.166205495595932,
0.40217021107673645,
-0.12152606248855591,
0.14010968804359436,
0.32920220494270325,
-0.13725604116916656,
0.13363981246948242,
0.286700576543808,
0.22861303389072418,
-0.14633093774318695,
0.03115704283118248,
0.29711320996284485,
-0.1796698272228241,
-0.19856737554073334,
-0.2891065776348114,
0.1830216348171234,
0.13107700645923615,
0.17483623325824738,
0.2786273658275604,
0.2652384340763092,
-0.2977427840232849,
-0.0960688591003418,
-0.11359822750091553,
0.1597156971693039,
-0.31803184747695923,
-0.14728322625160217,
-0.03539460152387619,
-0.008011892437934875,
-0.3305518925189972,
-0.02731890231370926,
-0.5517303943634033,
-0.11302606761455536,
0.14040474593639374,
-0.37608805298805237,
0.012576930224895477,
-0.07166428864002228,
0.15166686475276947,
-0.02956337481737137,
0.37445321679115295,
0.2674502730369568,
0.17979073524475098,
0.011228851042687893,
-0.2348487824201584,
-0.3624565005302429,
0.1105901300907135,
0.012117806822061539,
-0.2263198047876358,
-0.17422595620155334,
0.17763562500476837,
0.17399081587791443,
0.1883467137813568,
-0.1148628294467926,
-0.08362177759408951,
0.12084925919771194,
-0.07804608345031738,
-0.29637596011161804,
0.25412672758102417,
-0.3460778594017029,
0.17892789840698242,
0.22698643803596497,
-0.006430149078369141,
0.11677797138690948,
-0.06362996250391006,
0.17120295763015747,
-0.08400224894285202,
0.23319628834724426,
-0.3724718689918518,
-0.054522328078746796,
0.38268381357192993,
-0.07550586760044098,
0.11041679233312607,
-0.2990545332431793,
-0.20412203669548035,
-0.07354342937469482,
-0.2993461489677429,
-0.27291736006736755,
0.06743519753217697,
0.05367400497198105,
0.5453741550445557,
-0.13940180838108063,
-0.21765179932117462,
0.09419269114732742,
0.172494575381279,
0.34589242935180664,
-0.17392627894878387,
-0.11104296147823334,
0.10251746326684952,
-0.07159477472305298,
-0.11307317018508911,
0.14176273345947266,
0.5832720398902893,
-0.003970600664615631,
-0.32401221990585327,
0.12281076610088348,
-0.5783524513244629,
0.5693684816360474,
-0.4627975821495056,
-0.18622355163097382,
-0.13499262928962708,
-0.06861752271652222,
0.313167005777359,
0.03846730664372444,
-0.5031628608703613,
0.16688278317451477,
0.11352058500051498,
0.07447628676891327,
-0.28193357586860657,
0.24159719049930573,
0.0602295957505703,
-0.1307230144739151,
-0.12858963012695312,
0.1307026892900467,
0.043599292635917664,
-0.12178829312324524,
-0.008915673941373825,
-0.28554898500442505
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | I started adding COCO, will be done tomorrow EOD
my work so far https://github.com/merveenoyan/datasets (my fork) | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 16 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
I started adding COCO, will be done tomorrow EOD
my work so far https://github.com/merveenoyan/datasets (my fork) | [
-0.1830970197916031,
-0.495496928691864,
-0.1293638050556183,
0.19580595195293427,
0.203109011054039,
0.05224261432886124,
0.06116644665598869,
0.107828289270401,
-0.1408272087574005,
0.2152937352657318,
-0.5061154961585999,
0.16042359173297882,
-0.22876732051372528,
0.41294434666633606,
0.11225318163633347,
-0.22737547755241394,
0.0648130476474762,
-0.03083023428916931,
-0.3308287262916565,
-0.00368528813123703,
-0.026093076914548874,
0.2202635109424591,
0.10783694684505463,
-0.054319098591804504,
-0.36768192052841187,
-0.24036702513694763,
-0.41402384638786316,
-0.0104479119181633,
-0.1629815697669983,
-0.3388645052909851,
0.18872636556625366,
0.19048912823200226,
0.10991811752319336,
0.4202796518802643,
-0.00009933504770742729,
0.04839363694190979,
0.1232401579618454,
-0.04766754060983658,
-0.10067592561244965,
-0.13779760897159576,
-0.029910432174801826,
-0.222412109375,
0.07628998905420303,
-0.14092735946178436,
-0.2448444962501526,
0.0222038384526968,
0.1469767540693283,
-0.03428458422422409,
0.4938247799873352,
0.15511900186538696,
0.325577050447464,
0.29728659987449646,
0.1455480307340622,
-0.15979039669036865,
-0.07056576758623123,
0.440463125705719,
-0.22858798503875732,
0.20565180480480194,
0.2494916021823883,
0.10036573559045792,
-0.15149500966072083,
0.5048562288284302,
0.07972373813390732,
-0.003587547689676285,
0.38675516843795776,
0.10069600492715836,
-0.17194727063179016,
-0.3873192369937897,
0.04213011637330055,
0.3258778750896454,
0.2179567813873291,
-0.23532089591026306,
-0.3748447000980377,
-0.4263021647930145,
-0.08455844968557358,
-0.33368656039237976,
0.019375529140233994,
0.21584607660770416,
-0.11345891654491425,
0.30536916851997375,
-0.2778772711753845,
-0.1418508142232895,
-0.18736910820007324,
-0.03136635571718216,
0.09305737912654877,
0.05818849056959152,
-0.20060111582279205,
-0.08169838041067123,
0.1790594905614853,
-0.11094589531421661,
-0.2917289733886719,
-0.07588480412960052,
0.08302602171897888,
-0.04977869242429733,
-0.15192526578903198,
-0.15068745613098145,
0.16402283310890198,
0.26395463943481445,
0.3488161265850067,
0.16406579315662384,
-0.01715712621808052,
0.06954602897167206,
-0.21363773941993713,
0.05359850078821182,
0.014390571042895317,
0.13920950889587402,
-0.3029746413230896,
0.06344912201166153,
0.21232691407203674,
0.2626655101776123,
0.07441665232181549,
-0.1468724012374878,
0.06222846359014511,
0.2465629279613495,
-0.30963748693466187,
-0.1798337697982788,
0.11583387851715088,
-0.07394803315401077,
-0.1272682547569275,
-0.14044687151908875,
0.18435141444206238,
0.13048924505710602,
0.12298761308193207,
0.4018349349498749,
-0.052343692630529404,
0.14719948172569275,
-0.012228714302182198,
0.11738249659538269,
-0.013841038569808006,
-0.02541588805615902,
-0.29354017972946167,
0.07867803424596786,
-0.19610676169395447,
0.1622936874628067,
0.17328807711601257,
-0.1381579041481018,
0.10063811391592026,
-0.3012259304523468,
0.23862960934638977,
0.14148570597171783,
-0.11967968940734863,
-0.12320683896541595,
0.20709004998207092,
0.13082435727119446,
-0.18369758129119873,
-0.1377401500940323,
0.16163291037082672,
-0.08567480742931366,
-0.246742844581604,
-0.2516527473926544,
-0.10787878185510635,
-0.21161265671253204,
-0.11793771386146545,
0.23659653961658478,
-0.19903190433979034,
-0.09471949934959412,
-0.17241111397743225,
0.5445420145988464,
-0.23441797494888306,
0.1846497803926468,
-0.01666794717311859,
0.3115614056587219,
-0.23845715820789337,
-0.12457215785980225,
0.23574599623680115,
0.44836950302124023,
0.1596771627664566,
-0.2710968852043152,
-0.008428661152720451,
-0.1290242075920105,
-0.07572760432958603,
0.09062710404396057,
0.009708360768854618,
0.018635660409927368,
-0.17998231947422028,
-0.08377527445554733,
-0.20541387796401978,
-0.2773391604423523,
-0.30706098675727844,
0.09624321758747101,
-0.14866840839385986,
0.10411234945058823,
0.13428568840026855,
0.2461722046136856,
0.08488979190587997,
0.033164314925670624,
-0.16909795999526978,
0.34407466650009155,
-0.10947567224502563,
0.11863584071397781,
0.027604516595602036,
-0.3585335910320282,
-0.018823575228452682,
0.19367419183254242,
0.13148917257785797,
0.011971428990364075,
-0.015024125576019287,
-0.16293492913246155,
0.1187622994184494,
-0.14537197351455688,
0.09599259495735168,
0.019597619771957397,
0.4875171482563019,
0.2449081987142563,
-0.0597229041159153,
-0.19645842909812927,
-0.3888219892978668,
0.12060271948575974,
0.23664692044258118,
0.2952238917350769,
-0.3485414981842041,
-0.37012380361557007,
0.047774262726306915,
0.13097548484802246,
-0.05594322457909584,
-0.36024636030197144,
0.2725425660610199,
0.2053341120481491,
0.2676263451576233,
0.09114634990692139,
-0.13864676654338837,
0.452614426612854,
0.10069133341312408,
0.31401464343070984,
-0.13644888997077942,
0.238577201962471,
-0.07950684428215027,
0.14605127274990082,
0.2589632272720337,
0.17066392302513123,
-0.1260766088962555,
-0.13936378061771393,
0.10643728822469711,
0.38337036967277527,
-0.1321098506450653,
0.2766013443470001,
0.07407939434051514,
0.2560676038265228,
0.3570300042629242,
-0.46330830454826355,
0.036533065140247345,
-0.11381559073925018,
0.1421920508146286,
0.08537807315587997,
-0.35542547702789307,
0.19845838844776154,
-0.023850444704294205,
0.17050933837890625,
0.20301268994808197,
0.033815741539001465,
0.2742360234260559,
0.03573333099484444,
-0.1630522757768631,
-0.18705660104751587,
-0.10972265899181366,
-0.12128990888595581,
0.40233030915260315,
0.03313327580690384,
-0.3532274067401886,
0.0692911371588707,
0.12027259171009064,
0.06362587213516235,
0.14725789427757263,
0.2917275130748749,
-0.2802787721157074,
0.02274288237094879,
0.11562605947256088,
-0.05908886715769768,
0.03227197378873825,
0.3716903626918793,
-0.013021428138017654,
-0.009041773155331612,
0.05204714089632034,
-0.02673257142305374,
0.1280229687690735,
0.3033140301704407,
-0.014988350681960583,
0.012424912303686142,
0.32967501878738403,
-0.06020193174481392,
-0.4379509687423706,
-0.42008182406425476,
-0.2544068992137909,
-0.015277491882443428,
0.038373399525880814,
0.06057828664779663,
-0.02364407479763031,
-0.3694731891155243,
-0.048164818435907364,
-0.07397370785474777,
-0.11806334555149078,
-0.06422581523656845,
0.11118294298648834,
-0.09705495834350586,
-0.06211627274751663,
0.08921364694833755,
-0.2023913413286209,
0.4370524287223816,
-0.17178523540496826,
0.06388530880212784,
-0.14058583974838257,
-0.027026530355215073,
-0.05309627950191498,
0.23624786734580994,
0.23352470993995667,
-0.15156294405460358,
0.4964987337589264,
-0.1305789053440094,
0.4093132019042969,
-0.08352640271186829,
-0.6280473470687866,
0.2635619044303894,
-0.22862358391284943,
0.05202367901802063,
0.13768300414085388,
-0.03104214370250702,
0.011058617383241653,
-0.3714490830898285,
0.22192072868347168,
-0.29984062910079956,
-0.198309063911438,
-0.1553592085838318,
-0.15589964389801025,
-0.05763621628284454,
-0.2592271864414215,
-0.17348575592041016,
-0.3360787034034729,
-0.39558109641075134,
0.5534709692001343,
0.2611630856990814,
0.001890081912279129,
0.39885178208351135,
0.13073378801345825,
0.23273389041423798,
-0.14294745028018951,
0.19810429215431213,
-0.07336987555027008,
-0.376575231552124,
0.14591774344444275,
-0.2512546479701996,
-0.19576816260814667,
-0.26538121700286865,
-0.33778584003448486,
0.2177199274301529,
-0.1815534383058548,
-0.47930264472961426,
-0.3075016140937805,
-0.42943570017814636,
0.14931979775428772,
0.15833160281181335,
0.031486935913562775,
0.24369046092033386,
0.06196790933609009,
-0.15939168632030487,
-0.01678593084216118,
-0.19701319932937622,
0.04443524777889252,
-0.04623664170503616,
-0.03636946529150009,
-0.18129703402519226,
0.31593599915504456,
0.28156620264053345,
0.3663445711135864,
0.009049009531736374,
-0.2829910218715668,
0.40848445892333984,
-0.052813299000263214,
0.541605532169342,
-0.1923665702342987,
-0.31404173374176025,
0.3094864785671234,
-0.09495796263217926,
-0.05877094343304634,
0.2867146134376526,
0.2103172242641449,
-0.03808856010437012,
-0.28052449226379395,
-0.0032289717346429825,
-0.3244512975215912,
-0.09156947582960129,
-0.024458305910229683,
0.5635420083999634,
0.08144264668226242,
-0.1386481076478958,
-0.1718023419380188,
-0.2563897669315338,
-0.1896459460258484,
0.23118139803409576,
0.3074634075164795,
0.050194330513477325,
-0.02552635408937931,
-0.4772931933403015,
-0.1336863934993744,
-0.5586597323417664,
0.2236739695072174,
0.05704833194613457,
-0.24101245403289795,
-0.06785997003316879,
-0.26655760407447815,
-0.03460502624511719,
-0.1093943864107132,
0.39800208806991577,
0.21697871387004852,
-0.19780442118644714,
-0.038312703371047974,
-0.40748292207717896,
-0.1572112888097763,
0.15217062830924988,
-0.18978428840637207,
-0.08061452955007553,
0.10969313979148865,
0.5702163577079773,
-0.3815670907497406,
-0.0033406801521778107,
0.19390495121479034,
0.004584758076816797,
-0.0321568101644516,
-0.0025703730061650276,
-0.1006898507475853,
-0.13486340641975403,
-0.3745805323123932,
0.06647099554538727,
0.01972789503633976,
0.17513586580753326,
0.17717456817626953,
-0.14634919166564941,
-0.0012300033122301102,
-0.1595229208469391,
0.24125169217586517,
0.3188043534755707,
0.09331478178501129,
0.2819744944572449,
0.18785375356674194,
0.16904328763484955,
0.19879214465618134,
0.18608783185482025,
0.5823713541030884,
-0.1394926905632019,
-0.3279564380645752,
-0.10901274532079697,
0.14982403814792633,
0.13096727430820465,
0.1787918210029602,
0.13856923580169678,
-0.021598219871520996,
0.0914234071969986,
0.3163186311721802,
-0.5302694439888,
0.42595288157463074,
0.060161687433719635,
0.134226992726326,
-0.30765578150749207,
-0.14336758852005005,
0.2847542464733124,
0.003937596455216408,
-0.0624268464744091,
0.12881474196910858,
0.21195857226848602,
-0.2261407971382141,
0.21484661102294922,
0.2448866367340088,
0.9165306687355042,
-0.25493890047073364,
0.31888532638549805,
0.14467427134513855,
-0.05947180837392807,
0.5007530450820923,
-0.18115858733654022,
0.12434256076812744,
-0.03816751390695572,
-0.24330304563045502,
-0.013622481375932693,
0.05339112505316734,
0.051109109073877335,
-0.09855315089225769,
-0.264177143573761,
-0.023371977731585503,
0.22973652184009552,
0.34375983476638794,
-0.15043358504772186,
0.2718052566051483,
-0.15177494287490845,
-0.5548329949378967,
-0.14076818525791168,
0.3113687038421631,
-0.06749249249696732,
0.22849246859550476,
0.04394154250621796,
-0.1529773473739624,
-0.20988860726356506,
-0.031010109931230545,
-0.1778048872947693,
-0.036769017577171326,
-0.16623368859291077,
0.157024085521698,
0.16342924535274506,
-0.08667761832475662,
-0.05173774063587189,
0.33463889360427856,
0.30851083993911743,
0.10041548311710358,
-0.3034065067768097,
0.24881424009799957,
-0.28957101702690125,
-0.12035441398620605,
-0.01748361997306347,
-0.09023461490869522,
0.26194027066230774,
0.002313770353794098,
0.03662092238664627,
-0.060119904577732086,
0.36519068479537964,
-0.06464226543903351,
-0.14994286000728607,
-0.14077024161815643,
0.13762646913528442,
-0.09098195284605026,
0.03732840344309807,
0.10382496565580368,
-0.16506996750831604,
-0.23173320293426514,
0.2258511483669281,
0.13372233510017395,
0.01842506416141987,
-0.06276791542768478,
0.2020200490951538,
-0.03509845212101936,
-0.16302542388439178,
0.2705782651901245,
0.07502076774835587,
-0.01904481090605259,
0.12157236039638519,
0.22560156881809235,
-0.18654650449752808,
-0.24226251244544983,
-0.006013832986354828,
0.12433578819036484,
-0.36036527156829834,
0.14574803411960602,
0.004505548160523176,
-0.23093026876449585,
-0.11873197555541992,
0.2592940926551819,
0.21514078974723816,
-0.16086706519126892,
0.07710543274879456,
-0.10658583790063858,
-0.581963837146759,
0.4262315034866333,
-0.29401710629463196,
0.39406806230545044,
-0.05419620871543884,
0.3443107604980469,
0.12771177291870117,
0.29567965865135193,
-0.4816156327724457,
-0.14922410249710083,
-0.2516612708568573,
-0.14416074752807617,
0.16466167569160461,
-0.173309326171875,
0.21226653456687927,
-0.026350628584623337,
0.2221117913722992,
0.2539899945259094,
-0.18533524870872498,
-0.28310322761535645,
-0.15328943729400635,
0.0627475380897522,
0.050105951726436615,
-0.030619153752923012,
0.03426053747534752,
0.1991754174232483,
-0.06303153932094574,
-0.28678783774375916,
0.20022006332874298,
0.10441312938928604,
0.019271429628133774,
0.00024173036217689514,
-0.062342848628759384,
-0.13379573822021484,
0.24550451338291168,
-0.1224498301744461,
0.08350382000207901,
0.05275362730026245,
0.36919093132019043,
-0.14224472641944885,
-0.14515623450279236,
-0.1561395525932312,
0.23734638094902039,
0.2769721448421478,
0.19459927082061768,
-0.06153754144906998,
0.2846377193927765,
0.07493564486503601,
-0.07235327363014221,
0.4012863039970398,
0.36696332693099976,
-0.30544742941856384,
-0.003239638404920697,
0.3041706383228302,
0.2757253646850586,
0.32475805282592773,
-0.37807437777519226,
-0.09929604083299637,
0.08078787475824356,
-0.1527257263660431,
0.26792022585868835,
0.2883398234844208,
0.10016344487667084,
0.22250595688819885,
-0.15688201785087585,
0.09107595682144165,
0.30551081895828247,
0.12439629435539246,
0.08529770374298096,
0.057157598435878754,
-0.010154947638511658,
-0.05398377403616905,
0.42302602529525757,
0.1556812822818756,
0.4477905035018921,
0.2722855806350708,
-0.25104618072509766,
0.20403480529785156,
-0.12391567975282669,
0.20632115006446838,
0.6242491006851196,
-0.21831993758678436,
-0.10744833946228027,
-0.13112539052963257,
0.07053346186876297,
0.2265680730342865,
-0.22902268171310425,
0.2218959629535675,
-0.03216185048222542,
-0.011967610567808151,
-0.31981992721557617,
0.21955585479736328,
0.004031823948025703,
-0.18521128594875336,
-0.010057635605335236,
-0.1737532913684845,
-0.12258687615394592,
0.03406144306063652,
0.12509599328041077,
-0.5469573140144348,
0.23595352470874786,
-0.13319547474384308,
0.015713423490524292,
-0.06753676384687424,
-0.3030114471912384,
0.16472753882408142,
0.3706759512424469,
-0.1322605162858963,
0.15738460421562195,
0.3741720914840698,
-0.12761040031909943,
0.1693742573261261,
0.3198711574077606,
0.2737233340740204,
-0.13980400562286377,
0.026459598913788795,
0.2843974232673645,
-0.1787697672843933,
-0.20700587332248688,
-0.21817518770694733,
0.2233562469482422,
0.06584741175174713,
0.17715682089328766,
0.24697722494602203,
0.24505946040153503,
-0.25567400455474854,
-0.1486111730337143,
-0.16613492369651794,
0.18167392909526825,
-0.30149057507514954,
-0.08175242692232132,
-0.037268199026584625,
-0.09963660687208176,
-0.27988216280937195,
0.04571916535496712,
-0.5813480019569397,
-0.12010309100151062,
0.14957620203495026,
-0.40623927116394043,
-0.03447626158595085,
-0.1250971555709839,
0.13292324542999268,
0.015392406843602657,
0.3140128552913666,
0.3433528244495392,
0.10415437072515488,
-0.0428617037832737,
-0.25109174847602844,
-0.41934314370155334,
0.0768975019454956,
-0.048492345958948135,
-0.26812630891799927,
-0.19729924201965332,
0.16262076795101166,
0.1532689332962036,
0.17291636765003204,
-0.0863569974899292,
-0.01558094471693039,
0.14838151633739471,
-0.11609742045402527,
-0.2891522943973541,
0.23827603459358215,
-0.2662608027458191,
0.17764389514923096,
0.16096065938472748,
0.020245954394340515,
0.11063283681869507,
0.01788138598203659,
0.11717598885297775,
-0.0900019109249115,
0.20053508877754211,
-0.35764190554618835,
-0.12300662696361542,
0.4110259711742401,
0.03745489567518234,
0.10475219786167145,
-0.24897673726081848,
-0.1704523265361786,
-0.15949755907058716,
-0.33419591188430786,
-0.15513025224208832,
0.08329321444034576,
0.010498778894543648,
0.5736969709396362,
-0.2258586287498474,
-0.20295637845993042,
0.05077013000845909,
0.17284151911735535,
0.3245922327041626,
-0.12233055382966995,
-0.14980417490005493,
0.12869788706302643,
-0.12506023049354553,
-0.1428002119064331,
0.13514989614486694,
0.616890013217926,
0.020608432590961456,
-0.29919829964637756,
0.1243676096200943,
-0.5827634930610657,
0.5698553323745728,
-0.4304596781730652,
-0.20726262032985687,
-0.06941477209329605,
-0.0378289669752121,
0.34443002939224243,
0.017245525494217873,
-0.4614149332046509,
0.1744251549243927,
0.145819291472435,
0.11646609008312225,
-0.2630162537097931,
0.3262161910533905,
0.05399305000901222,
-0.1304933875799179,
-0.11760404706001282,
0.1678188145160675,
0.03792113438248634,
-0.09970967471599579,
0.04996126517653465,
-0.2318185418844223
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Hi Merve @merveenoyan , thank you so much for your great contribution! May I ask about the current progress of your implementation? Cuz I see the pull request is still in progess here. Or can I just run the COCO scripts in your fork repo? | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 45 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hi Merve @merveenoyan , thank you so much for your great contribution! May I ask about the current progress of your implementation? Cuz I see the pull request is still in progess here. Or can I just run the COCO scripts in your fork repo? | [
-0.1481829732656479,
-0.6077483892440796,
-0.11354786157608032,
0.14933550357818604,
0.13040322065353394,
-0.0674014613032341,
0.06796036660671234,
0.0632961168885231,
-0.15467895567417145,
0.1748444139957428,
-0.40827566385269165,
0.13419590890407562,
-0.3136060833930969,
0.43000903725624084,
0.1826983094215393,
-0.22863927483558655,
0.10532860457897186,
-0.04576241970062256,
-0.3508671522140503,
-0.03155772015452385,
0.05370748043060303,
0.28144407272338867,
0.026876375079154968,
-0.08823296427726746,
-0.3775428235530853,
-0.1978285014629364,
-0.44972747564315796,
0.0032558515667915344,
-0.1510404795408249,
-0.2792414724826813,
0.2738298177719116,
0.3187246024608612,
0.08435872942209244,
0.5230818390846252,
-0.00009956426220014691,
-0.029688827693462372,
0.13793134689331055,
-0.07827054709196091,
-0.06223868951201439,
-0.21793581545352936,
0.014063574373722076,
-0.2561797797679901,
0.03916420787572861,
-0.07871449738740921,
-0.27547022700309753,
0.12621457874774933,
0.11985836923122406,
0.0094127357006073,
0.5431840419769287,
0.015936393290758133,
0.3012160658836365,
0.24494537711143494,
0.22173555195331573,
-0.05023633688688278,
-0.03664831072092056,
0.5251153111457825,
-0.24700245261192322,
0.245025634765625,
0.3528076112270355,
0.049326859414577484,
-0.10148311406373978,
0.4669594466686249,
0.09337213635444641,
-0.12174208462238312,
0.42641499638557434,
0.10514553636312485,
-0.14913544058799744,
-0.4341970682144165,
-0.036056458950042725,
0.31081870198249817,
0.1688045859336853,
-0.2747209966182709,
-0.3987092673778534,
-0.434109091758728,
-0.12442474812269211,
-0.3593811094760895,
-0.04261340945959091,
0.18490931391716003,
-0.14709948003292084,
0.2939930260181427,
-0.3316187560558319,
-0.21069887280464172,
-0.20846675336360931,
-0.10494719445705414,
0.07132700085639954,
0.07342027127742767,
-0.2273050993680954,
-0.13825058937072754,
0.20117835700511932,
-0.11346974968910217,
-0.30458560585975647,
-0.04435785859823227,
0.0938357263803482,
0.054367244243621826,
-0.1714623123407364,
-0.25794297456741333,
0.13066622614860535,
0.29315292835235596,
0.4161609411239624,
0.2123473733663559,
-0.06683798879384995,
0.0804196372628212,
-0.2645756006240845,
0.08193686604499817,
0.08885037899017334,
0.23878155648708344,
-0.2847461998462677,
0.06911073625087738,
0.14254215359687805,
0.2687371075153351,
0.11857190728187561,
-0.12978866696357727,
0.007662488147616386,
0.272876501083374,
-0.3525584936141968,
-0.12466337531805038,
0.06133899837732315,
-0.08968920260667801,
-0.04021185636520386,
-0.12971721589565277,
0.1797960102558136,
0.05842375010251999,
0.11561453342437744,
0.36893120408058167,
0.008371680974960327,
0.21485337615013123,
0.051758185029029846,
0.038971949368715286,
0.011104123666882515,
0.06561142951250076,
-0.26316767930984497,
0.09426534175872803,
-0.2897317707538605,
0.1236334815621376,
0.1465766727924347,
-0.17508763074874878,
0.0286374744027853,
-0.29992300271987915,
0.36163246631622314,
0.1826784908771515,
-0.23764359951019287,
-0.09269124269485474,
0.2413557469844818,
0.0876678079366684,
-0.25891613960266113,
-0.2434106022119522,
0.16035644710063934,
-0.10460992902517319,
-0.2582578957080841,
-0.1956786811351776,
-0.072544164955616,
-0.11748050153255463,
-0.07794857770204544,
0.18918658792972565,
-0.27374058961868286,
-0.0974203497171402,
-0.19095438718795776,
0.5735124945640564,
-0.2586529552936554,
0.25625699758529663,
0.01372932642698288,
0.25751012563705444,
-0.21690824627876282,
-0.10036920756101608,
0.2846776843070984,
0.4325500726699829,
0.13308988511562347,
-0.30125463008880615,
0.04983791708946228,
-0.11256477236747742,
-0.12486914545297623,
0.10561542212963104,
0.0541270412504673,
-0.1049095168709755,
-0.12523894011974335,
-0.06301571428775787,
-0.28837332129478455,
-0.3116638660430908,
-0.20572824776172638,
0.1275460124015808,
-0.1209968626499176,
0.12631233036518097,
0.10580477863550186,
0.17988355457782745,
0.043783679604530334,
-0.04705126956105232,
-0.20596954226493835,
0.30200934410095215,
-0.1326427310705185,
0.058197662234306335,
-0.043052319437265396,
-0.3348207175731659,
-0.033479832112789154,
0.20546449720859528,
0.09345880150794983,
-0.03203847259283066,
-0.09226181358098984,
-0.20877274870872498,
0.14357879757881165,
-0.09851369261741638,
0.1123364269733429,
-0.04503133147954941,
0.5550224184989929,
0.2901798486709595,
-0.007713147439062595,
-0.12505939602851868,
-0.38245323300361633,
0.12193750590085983,
0.2920979857444763,
0.3108234703540802,
-0.35594242811203003,
-0.3559839725494385,
0.0741700828075409,
0.1749689280986786,
-0.009088005870580673,
-0.3098277151584625,
0.2370072305202484,
0.043864328414201736,
0.3547147512435913,
0.10049021244049072,
-0.2904190123081207,
0.5034740567207336,
0.07812373340129852,
0.3102295398712158,
-0.10962724685668945,
0.3053269684314728,
-0.06176774203777313,
0.15409377217292786,
0.2581939697265625,
0.21023237705230713,
-0.10086634010076523,
-0.20858488976955414,
0.17642787098884583,
0.3801366090774536,
-0.1613646298646927,
0.280373215675354,
0.08268214762210846,
0.20109602808952332,
0.3894270956516266,
-0.4596826732158661,
0.10432802885770798,
-0.12235842645168304,
0.18448719382286072,
0.06717119365930557,
-0.34839165210723877,
0.25850069522857666,
-0.08598269522190094,
0.14418213069438934,
0.20278294384479523,
-0.035824548453092575,
0.1810501366853714,
0.004002869129180908,
-0.24108090996742249,
-0.18096375465393066,
-0.05086444690823555,
-0.1623944491147995,
0.40113192796707153,
-0.06432492285966873,
-0.3432493209838867,
-0.024973340332508087,
0.08871237933635712,
0.030004706233739853,
0.09502661228179932,
0.3529081642627716,
-0.20357108116149902,
0.08368971198797226,
0.05222518369555473,
-0.09129861742258072,
-0.0014961659908294678,
0.3463481664657593,
-0.0757095068693161,
0.040484506636857986,
0.16231761872768402,
0.000914430245757103,
0.15438801050186157,
0.30425530672073364,
-0.007741266395896673,
-0.0455983430147171,
0.2752498984336853,
-0.020589560270309448,
-0.3908545672893524,
-0.40862220525741577,
-0.28200647234916687,
-0.07896649837493896,
0.07811708748340607,
0.06645511090755463,
0.045657508075237274,
-0.4704906940460205,
-0.08275973796844482,
-0.14074651896953583,
-0.1521461009979248,
-0.037485383450984955,
0.06477947533130646,
-0.17074614763259888,
0.012994315475225449,
0.12136337906122208,
-0.15570639073848724,
0.4845151901245117,
-0.2672516107559204,
0.09589645266532898,
-0.20569385588169098,
-0.05545725300908089,
-0.01586327701807022,
0.24066200852394104,
0.19222767651081085,
-0.21218331158161163,
0.4956507086753845,
-0.13508117198944092,
0.37835055589675903,
0.06893613189458847,
-0.6620030403137207,
0.3206593990325928,
-0.27539557218551636,
-0.02108491025865078,
0.09799474477767944,
-0.09409348666667938,
-0.023104045540094376,
-0.3872832655906677,
0.20018267631530762,
-0.3545336425304413,
-0.2801418602466583,
-0.24519866704940796,
-0.07017290592193604,
-0.04386966675519943,
-0.3365032970905304,
-0.03368186205625534,
-0.3725212514400482,
-0.28742656111717224,
0.6595185399055481,
0.32657721638679504,
0.0495903305709362,
0.42287948727607727,
0.05067243054509163,
0.1926208883523941,
-0.1730133593082428,
0.03636954352259636,
-0.047568172216415405,
-0.4233730733394623,
0.08112949132919312,
-0.23258616030216217,
-0.15720394253730774,
-0.2389456182718277,
-0.3657692074775696,
0.1526508778333664,
-0.22749139368534088,
-0.4287041425704956,
-0.2866930365562439,
-0.4280318021774292,
0.15110722184181213,
0.2310551553964615,
0.05544424057006836,
0.2161160409450531,
0.026675131171941757,
-0.1340785175561905,
-0.040459491312503815,
-0.1747593879699707,
0.02119714766740799,
-0.01824358105659485,
-0.03190770000219345,
-0.05725909769535065,
0.32642263174057007,
0.33726298809051514,
0.41895419359207153,
0.05418441817164421,
-0.30751532316207886,
0.30880677700042725,
0.00436057336628437,
0.5396022796630859,
-0.13746371865272522,
-0.2898801565170288,
0.2960458993911743,
-0.0910528302192688,
-0.10662433505058289,
0.2679164409637451,
0.24479931592941284,
-0.09590575098991394,
-0.37970826029777527,
-0.007243406027555466,
-0.2638893723487854,
-0.08975343406200409,
-0.0895925983786583,
0.5151722431182861,
0.07078170776367188,
-0.17415857315063477,
-0.21423763036727905,
-0.19074185192584991,
-0.1689043939113617,
0.2570294439792633,
0.3477932810783386,
0.18286584317684174,
-0.02344498224556446,
-0.44496282935142517,
-0.10742203891277313,
-0.6020000576972961,
0.21999113261699677,
0.09546243399381638,
-0.30395182967185974,
-0.0769813135266304,
-0.23580008745193481,
-0.07426406443119049,
-0.14472924172878265,
0.4098130464553833,
0.2662107050418854,
-0.15961799025535583,
0.003945339471101761,
-0.4429178535938263,
-0.07553373277187347,
0.1460362821817398,
-0.15259912610054016,
-0.11487141996622086,
0.18380580842494965,
0.5537127256393433,
-0.36379483342170715,
-0.029942244291305542,
0.20209138095378876,
-0.038155924528837204,
-0.03125915303826332,
-0.03082457184791565,
-0.0811561644077301,
-0.09686863422393799,
-0.32673928141593933,
0.1624370962381363,
0.16217835247516632,
0.14128470420837402,
0.060674965381622314,
-0.062291376292705536,
0.10767080634832382,
-0.20453333854675293,
0.22533440589904785,
0.26207560300827026,
0.08140908926725388,
0.28581592440605164,
0.22612175345420837,
0.2334340363740921,
0.08945029228925705,
0.1445976048707962,
0.5268564820289612,
-0.08972813189029694,
-0.3227364122867584,
-0.15621286630630493,
0.2039688229560852,
0.23038089275360107,
0.20661474764347076,
0.19472792744636536,
-0.03659387677907944,
0.11267192661762238,
0.30216363072395325,
-0.5196415185928345,
0.23040905594825745,
0.011612137779593468,
0.13573819398880005,
-0.30170485377311707,
-0.1912350058555603,
0.2875850200653076,
-0.006150014698505402,
-0.07044114917516708,
0.14104469120502472,
0.2141345888376236,
-0.2071188986301422,
0.1700020581483841,
0.23668625950813293,
1.009284496307373,
-0.22325660288333893,
0.2812029719352722,
0.11103543639183044,
-0.08091923594474792,
0.4389112591743469,
-0.1904577910900116,
0.08908528834581375,
-0.08982053399085999,
-0.21962879598140717,
-0.009198706597089767,
-0.010872460901737213,
0.09566771984100342,
-0.12169286608695984,
-0.3026124835014343,
-0.06355512887239456,
0.11329682171344757,
0.3034273087978363,
-0.12967556715011597,
0.24867603182792664,
-0.09176632761955261,
-0.507526159286499,
-0.08711478114128113,
0.2850901186466217,
0.006711188703775406,
0.2535953223705292,
-0.0024680327624082565,
-0.19411738216876984,
-0.23360402882099152,
0.0614660307765007,
-0.25250500440597534,
-0.04151289165019989,
-0.08439484238624573,
0.08820189535617828,
0.1648712456226349,
-0.14361469447612762,
0.03371332958340645,
0.31481871008872986,
0.36790430545806885,
0.10952490568161011,
-0.278656929731369,
0.2905515134334564,
-0.18390536308288574,
-0.06820806860923767,
0.012414436787366867,
-0.027064751833677292,
0.2687060832977295,
-0.018361788243055344,
0.05607088655233383,
-0.0886126384139061,
0.36180058121681213,
-0.05605040118098259,
-0.22082878649234772,
-0.16869893670082092,
0.14758411049842834,
-0.0622832290828228,
0.0837988406419754,
0.2044622004032135,
-0.11563554406166077,
-0.1447102129459381,
0.21599213778972626,
0.2600182890892029,
-0.06209348887205124,
-0.07469672709703445,
0.21797053515911102,
-0.031933799386024475,
-0.13302326202392578,
0.28543999791145325,
0.1054416298866272,
-0.09118625521659851,
0.10774292796850204,
0.26163533329963684,
-0.20816387236118317,
-0.2061866819858551,
0.026395544409751892,
0.07447610050439835,
-0.3802855312824249,
0.10310960561037064,
0.04697924107313156,
-0.17374460399150848,
-0.13607221841812134,
0.31198397278785706,
0.1934967339038849,
-0.09833932667970657,
0.09201158583164215,
-0.0827907919883728,
-0.5737236142158508,
0.34831303358078003,
-0.38704922795295715,
0.3923204243183136,
-0.09417988359928131,
0.37013542652130127,
0.18675322830677032,
0.27803757786750793,
-0.4832195043563843,
-0.11542647331953049,
-0.25462695956230164,
-0.17747947573661804,
0.20345090329647064,
-0.21613654494285583,
0.13617314398288727,
-0.0552796870470047,
0.2271658480167389,
0.30021804571151733,
-0.2243458777666092,
-0.2566542625427246,
-0.13741359114646912,
0.08275575190782547,
0.05976879969239235,
-0.04203367978334427,
0.017522796988487244,
0.23686598241329193,
-0.06111034378409386,
-0.19608372449874878,
0.1957523077726364,
0.11699504405260086,
0.05607997626066208,
0.04994865506887436,
-0.044256214052438736,
-0.1279926300048828,
0.22073118388652802,
-0.1165534257888794,
0.19946667551994324,
0.09593134373426437,
0.3866664469242096,
-0.1843685656785965,
-0.15347792208194733,
-0.11718432605266571,
0.23713324964046478,
0.29489409923553467,
0.15755930542945862,
-0.02331533282995224,
0.3251184821128845,
0.060863349586725235,
-0.0667349323630333,
0.2654325067996979,
0.4333086907863617,
-0.2708479166030884,
-0.012022824957966805,
0.2561027407646179,
0.2969098389148712,
0.3038962185382843,
-0.33568933606147766,
-0.06240508332848549,
0.12193262577056885,
-0.1572910100221634,
0.1714853197336197,
0.2702138423919678,
0.0967663824558258,
0.24407517910003662,
-0.08834037184715271,
0.11120372265577316,
0.36176902055740356,
0.12244490534067154,
0.0840497612953186,
0.0030237771570682526,
-0.011767745018005371,
-0.06573829054832458,
0.407157838344574,
0.14943397045135498,
0.36748597025871277,
0.1645488739013672,
-0.2604104280471802,
0.12587343156337738,
-0.11413683742284775,
0.22596950829029083,
0.5985786318778992,
-0.17937692999839783,
-0.11212705075740814,
-0.10658416152000427,
0.02023185044527054,
0.20181423425674438,
-0.24764451384544373,
0.2321750819683075,
0.03532911837100983,
-0.019374387338757515,
-0.23736220598220825,
0.2643667757511139,
0.027224652469158173,
-0.15733517706394196,
0.042685069143772125,
-0.1803586632013321,
-0.13512828946113586,
-0.014844344928860664,
0.10602053999900818,
-0.5521329641342163,
0.21839243173599243,
-0.0561932772397995,
0.07756046205759048,
0.06461016833782196,
-0.33178022503852844,
0.12923210859298706,
0.5333577394485474,
-0.16312266886234283,
0.15477406978607178,
0.38499242067337036,
-0.0905761867761612,
0.1540502905845642,
0.35053539276123047,
0.2639739215373993,
-0.14914384484291077,
-0.01056177169084549,
0.2876165211200714,
-0.16686111688613892,
-0.19852423667907715,
-0.1368185430765152,
0.3253258168697357,
0.06760677695274353,
0.1764216423034668,
0.22655801475048065,
0.22458797693252563,
-0.22447237372398376,
-0.12337450683116913,
-0.0916735976934433,
0.20142459869384766,
-0.33971717953681946,
-0.05277358740568161,
-0.07998629659414291,
-0.11324255168437958,
-0.3343651592731476,
0.06667305529117584,
-0.5323895812034607,
-0.11077321320772171,
0.07893766462802887,
-0.3772597312927246,
-0.08052938431501389,
-0.0486098937690258,
0.1293206661939621,
0.01892152987420559,
0.2977667450904846,
0.346584677696228,
0.10805921256542206,
-0.0744713619351387,
-0.3419116735458374,
-0.37650513648986816,
-0.0207352414727211,
0.04706486314535141,
-0.2672739326953888,
-0.18726348876953125,
0.13753749430179596,
0.20993399620056152,
0.2498416155576706,
-0.235820934176445,
-0.1388310045003891,
0.14436452090740204,
-0.03742111474275589,
-0.2873089909553528,
0.3405444920063019,
-0.27684831619262695,
0.189242422580719,
0.202852264046669,
0.13266605138778687,
-0.004463080316781998,
-0.002265545539557934,
0.09933670610189438,
-0.03670059144496918,
0.22970634698867798,
-0.3098699152469635,
-0.11519333720207214,
0.32834455370903015,
0.02492639794945717,
0.12825681269168854,
-0.1728302240371704,
-0.17396898567676544,
-0.051001910120248795,
-0.3227677345275879,
-0.1763300597667694,
0.09449976682662964,
-0.03677685931324959,
0.5192303657531738,
-0.2212291955947876,
-0.29768678545951843,
0.043040383607149124,
0.1059175431728363,
0.28997838497161865,
-0.12054567039012909,
-0.1081635057926178,
0.04255123436450958,
-0.13883915543556213,
-0.19159172475337982,
0.12610334157943726,
0.6038728356361389,
0.014784712344408035,
-0.2880706489086151,
0.05990655720233917,
-0.47754982113838196,
0.628125786781311,
-0.43714290857315063,
-0.1880287230014801,
-0.143690824508667,
-0.06962913274765015,
0.34508514404296875,
-0.029583921656012535,
-0.43999555706977844,
0.16787216067314148,
0.126434326171875,
0.08777870237827301,
-0.22896626591682434,
0.31412839889526367,
0.08825673162937164,
-0.1596648395061493,
-0.08167767524719238,
0.16272272169589996,
0.03534639626741409,
-0.045286089181900024,
-0.03482309728860855,
-0.21585389971733093
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Hello @yixuanren I had another prioritized project about to be merged, but I'll start continuing today will finish up soon. | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 20 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hello @yixuanren I had another prioritized project about to be merged, but I'll start continuing today will finish up soon. | [
-0.20727187395095825,
-0.5107595920562744,
-0.1322675496339798,
0.19203658401966095,
0.2045862376689911,
0.05097080022096634,
0.12114402651786804,
0.11549226939678192,
-0.09616479277610779,
0.22603678703308105,
-0.4832248389720917,
0.1559068262577057,
-0.25631484389305115,
0.4645495116710663,
0.18366597592830658,
-0.3129402697086334,
0.07532978057861328,
-0.019513189792633057,
-0.3688816428184509,
-0.00634881854057312,
-0.01907269097864628,
0.2367025911808014,
0.12052755057811737,
-0.06315334141254425,
-0.3814200460910797,
-0.16198503971099854,
-0.43727347254753113,
-0.04084717482328415,
-0.14862895011901855,
-0.3256166875362396,
0.12807896733283997,
0.18056130409240723,
0.15235616266727448,
0.35975345969200134,
-0.000097629614174366,
0.0015428662300109863,
0.0451202318072319,
-0.07654892653226852,
-0.063133105635643,
-0.137541726231575,
0.029326483607292175,
-0.22690100967884064,
0.045344047248363495,
-0.13513611257076263,
-0.2487286925315857,
0.03540609031915665,
0.19553162157535553,
0.012513048946857452,
0.4991670846939087,
0.09941308945417404,
0.33741381764411926,
0.31383976340293884,
0.1528157889842987,
-0.1568913757801056,
-0.07501857727766037,
0.43986380100250244,
-0.22254578769207,
0.204546719789505,
0.2695005536079407,
0.0601947158575058,
-0.14787107706069946,
0.5232723951339722,
0.07965189963579178,
-0.03209714591503143,
0.4062528610229492,
0.11331105977296829,
-0.13731271028518677,
-0.37719398736953735,
-0.00048663467168807983,
0.3352320194244385,
0.1692400872707367,
-0.2383873462677002,
-0.35929229855537415,
-0.4226440191268921,
-0.07699326425790787,
-0.2766701281070709,
-0.014862284064292908,
0.25522446632385254,
-0.13086844980716705,
0.27975189685821533,
-0.2872887849807739,
-0.17487074434757233,
-0.20571671426296234,
-0.06229010224342346,
0.09787113964557648,
0.018829286098480225,
-0.18280118703842163,
-0.12413360923528671,
0.15839546918869019,
-0.10836364328861237,
-0.3596991300582886,
0.0008737966418266296,
0.0910063087940216,
-0.037099018692970276,
-0.13101473450660706,
-0.22185282409191132,
0.07884632796049118,
0.2074885070323944,
0.38652125000953674,
0.16046269237995148,
-0.002872302196919918,
0.04276476055383682,
-0.16558738052845,
0.10982967913150787,
0.04428733512759209,
0.0657174289226532,
-0.24842879176139832,
0.00034940335899591446,
0.13167862594127655,
0.22725321352481842,
0.03948016092181206,
-0.13918280601501465,
0.02653762698173523,
0.2897998094558716,
-0.2890457212924957,
-0.17381495237350464,
-0.014754507690668106,
-0.04783342033624649,
-0.12011393159627914,
-0.15133564174175262,
0.1385878026485443,
0.14917488396167755,
0.08557531237602234,
0.3797284960746765,
-0.022096645087003708,
0.1535709947347641,
0.0450606495141983,
0.14441794157028198,
0.016995744779706,
-0.0880974531173706,
-0.2471446990966797,
0.0741763636469841,
-0.19179323315620422,
0.19240596890449524,
0.18459299206733704,
-0.14529846608638763,
0.13898587226867676,
-0.32294613122940063,
0.21942779421806335,
0.16499139368534088,
-0.11742974072694778,
-0.10202670097351074,
0.2265203893184662,
0.09776836633682251,
-0.18484370410442352,
-0.24598567187786102,
0.15257388353347778,
-0.0620407797396183,
-0.24829339981079102,
-0.2444230616092682,
-0.08697373420000076,
-0.1108623743057251,
-0.19156315922737122,
0.23916292190551758,
-0.1790989637374878,
-0.141037717461586,
-0.14381742477416992,
0.5965867638587952,
-0.2771184742450714,
0.16187816858291626,
-0.015512026846408844,
0.3033660650253296,
-0.26768913865089417,
-0.12454035878181458,
0.2221769094467163,
0.40946269035339355,
0.15315014123916626,
-0.31727901101112366,
0.05842474475502968,
-0.15954336524009705,
-0.13235828280448914,
0.09425584971904755,
0.06574982404708862,
0.0024953484535217285,
-0.17694316804409027,
-0.019178204238414764,
-0.23986774682998657,
-0.24290911853313446,
-0.2088797390460968,
0.07467956095933914,
-0.18021062016487122,
0.07029255479574203,
0.12158029526472092,
0.3302608132362366,
0.08032695949077606,
0.005310555920004845,
-0.1507578194141388,
0.4112383723258972,
-0.1419878453016281,
0.131715327501297,
0.06744527816772461,
-0.37749218940734863,
-0.058515943586826324,
0.23993684351444244,
0.13268700242042542,
0.019442103803157806,
-0.054321177303791046,
-0.1412215381860733,
0.14880108833312988,
-0.14066775143146515,
0.06941284984350204,
0.02178134024143219,
0.4534803330898285,
0.2432088702917099,
-0.043209027498960495,
-0.30124109983444214,
-0.3367355167865753,
0.07216589897871017,
0.16606983542442322,
0.2723333239555359,
-0.2869032025337219,
-0.3946651816368103,
0.04080036282539368,
0.11780019849538803,
0.016192175447940826,
-0.30624920129776,
0.2830660045146942,
0.16536962985992432,
0.23312106728553772,
0.09938669204711914,
-0.16728319227695465,
0.42265594005584717,
0.11504578590393066,
0.3547583818435669,
-0.08640855550765991,
0.22263981401920319,
-0.04851789027452469,
0.1370972841978073,
0.25616443157196045,
0.16028350591659546,
-0.16314303874969482,
-0.11150681227445602,
0.1715756058692932,
0.3503415882587433,
-0.13510039448738098,
0.2643609046936035,
0.116514191031456,
0.31893789768218994,
0.3355100154876709,
-0.44046640396118164,
0.00921911746263504,
-0.09889005124568939,
0.1340915709733963,
0.10701847821474075,
-0.33593249320983887,
0.2272692620754242,
0.044380124658346176,
0.11756572127342224,
0.21730519831180573,
0.0926344022154808,
0.22120678424835205,
-0.002404000610113144,
-0.14751030504703522,
-0.1975662112236023,
-0.07002431154251099,
-0.07864578068256378,
0.2734295129776001,
0.03900487720966339,
-0.3683279752731323,
0.020095035433769226,
0.1377536505460739,
0.06070029363036156,
0.1908121109008789,
0.29508620500564575,
-0.3252309262752533,
0.0653969794511795,
0.08552022278308868,
-0.10696427524089813,
-0.021913990378379822,
0.3687325417995453,
-0.06272254884243011,
0.016879305243492126,
0.06504356116056442,
0.007926929742097855,
0.12082307040691376,
0.25759997963905334,
0.000028851536626461893,
-0.019646912813186646,
0.3301474452018738,
-0.07800112664699554,
-0.45713314414024353,
-0.3760344088077545,
-0.294426828622818,
-0.1014176681637764,
0.07096676528453827,
0.09698619693517685,
0.05520280450582504,
-0.3772261142730713,
-0.08714614063501358,
-0.05421585962176323,
-0.1443425565958023,
-0.00009813439100980759,
0.1702842116355896,
-0.0864538699388504,
-0.0599067285656929,
0.06988570094108582,
-0.1688341498374939,
0.5051141977310181,
-0.17347650229930878,
0.08113482594490051,
-0.11157486587762833,
-0.02809419482946396,
0.010407630354166031,
0.25523364543914795,
0.20733027160167694,
-0.14491577446460724,
0.5482437014579773,
-0.144172802567482,
0.4003388285636902,
-0.03283780813217163,
-0.64451003074646,
0.23868441581726074,
-0.17386282980442047,
0.04545394331216812,
0.12223216146230698,
-0.041418954730033875,
-0.023181896656751633,
-0.3518521189689636,
0.19192469120025635,
-0.31112366914749146,
-0.2099563181400299,
-0.1804196685552597,
-0.11492938548326492,
-0.020260632038116455,
-0.26676374673843384,
-0.09683579951524734,
-0.31420180201530457,
-0.3710877001285553,
0.5708351135253906,
0.27610331773757935,
0.009586028754711151,
0.3299601078033447,
0.08922965824604034,
0.19197238981723785,
-0.23296019434928894,
0.20695988833904266,
-0.03312545642256737,
-0.3602357804775238,
0.07276912778615952,
-0.2726438343524933,
-0.1847502887248993,
-0.3056575357913971,
-0.38952112197875977,
0.168484628200531,
-0.16286806762218475,
-0.4567078948020935,
-0.3243132531642914,
-0.3922586143016815,
0.11406421661376953,
0.16417454183101654,
0.005214778706431389,
0.22006350755691528,
0.06932481378316879,
-0.16869868338108063,
-0.039549633860588074,
-0.13829243183135986,
0.06908176839351654,
-0.024590514600276947,
-0.046254612505435944,
-0.18580278754234314,
0.2145213782787323,
0.2511586844921112,
0.3387662172317505,
-0.017216136679053307,
-0.2943243384361267,
0.3867792785167694,
-0.06945248693227768,
0.4885784089565277,
-0.14566537737846375,
-0.27043238282203674,
0.2872328460216522,
-0.11367201805114746,
-0.032237108796834946,
0.2890019416809082,
0.22352948784828186,
-0.04607708007097244,
-0.26583534479141235,
0.0100514255464077,
-0.3471265733242035,
-0.0989578366279602,
-0.02087097428739071,
0.5335798263549805,
0.11741068959236145,
-0.176658496260643,
-0.21388521790504456,
-0.21743066608905792,
-0.17913180589675903,
0.2652890384197235,
0.3186233937740326,
0.08010441064834595,
-0.04285765439271927,
-0.4228462874889374,
-0.16066381335258484,
-0.4802934527397156,
0.1789274513721466,
0.09503602981567383,
-0.266448974609375,
-0.11390182375907898,
-0.2677208483219147,
-0.0696299821138382,
-0.06718028336763382,
0.3972567319869995,
0.20291173458099365,
-0.2119341939687729,
-0.08498828113079071,
-0.42535004019737244,
-0.10070603340864182,
0.18599557876586914,
-0.19420023262500763,
-0.15815751254558563,
0.12653124332427979,
0.5724517107009888,
-0.35301321744918823,
0.005897995084524155,
0.22359777987003326,
0.04467254877090454,
-0.05039950832724571,
0.002693813294172287,
-0.07596798241138458,
-0.05103746056556702,
-0.38774529099464417,
0.09030584990978241,
0.0035972651094198227,
0.18055669963359833,
0.2054838240146637,
-0.10924609005451202,
-0.007986718788743019,
-0.1244969293475151,
0.20891861617565155,
0.31134289503097534,
0.07340354472398758,
0.2453533113002777,
0.1981692612171173,
0.15954555571079254,
0.21089406311511993,
0.1463519185781479,
0.5158236622810364,
-0.11312122642993927,
-0.3339250087738037,
-0.16003933548927307,
0.1588897854089737,
0.2051905393600464,
0.16498365998268127,
0.19208039343357086,
0.05579287186264992,
0.10538917034864426,
0.25676557421684265,
-0.5726265907287598,
0.3538799583911896,
0.0799727588891983,
0.11207813769578934,
-0.20773105323314667,
-0.10847378522157669,
0.279403954744339,
-0.0053299348801374435,
-0.008176229894161224,
0.11688391119241714,
0.1689131259918213,
-0.19983932375907898,
0.24565370380878448,
0.2712318003177643,
0.9181241393089294,
-0.27010732889175415,
0.3624351918697357,
0.1080411896109581,
-0.08341892808675766,
0.4408034682273865,
-0.13377165794372559,
0.15893012285232544,
-0.11148608475923538,
-0.2585200071334839,
-0.007722686976194382,
0.03134002909064293,
0.03669021278619766,
-0.09270253777503967,
-0.25562137365341187,
-0.10827461630105972,
0.18271847069263458,
0.3060920834541321,
-0.1629774272441864,
0.2381451427936554,
-0.13818033039569855,
-0.5559870600700378,
-0.15674704313278198,
0.3012920916080475,
-0.05561544746160507,
0.21459029614925385,
0.04448440670967102,
-0.18494302034378052,
-0.1550058275461197,
0.019670598208904266,
-0.1945192515850067,
-0.07968747615814209,
-0.13484704494476318,
0.12088663876056671,
0.17300109565258026,
-0.07415351271629333,
-0.04384631663560867,
0.3491004705429077,
0.29828816652297974,
0.10681895911693573,
-0.2998250722885132,
0.2470407783985138,
-0.29688358306884766,
-0.15164026618003845,
-0.024474401026964188,
-0.041733235120773315,
0.27298152446746826,
-0.012687508016824722,
0.07523352652788162,
-0.07131507247686386,
0.40872159600257874,
-0.05463548004627228,
-0.17358343303203583,
-0.13832877576351166,
0.11291728168725967,
-0.03522840514779091,
0.06849148869514465,
0.07880053669214249,
-0.1367623656988144,
-0.20899440348148346,
0.23314878344535828,
0.1467639058828354,
0.009177276864647865,
-0.11211622506380081,
0.2642138600349426,
-0.014629639685153961,
-0.13076552748680115,
0.26758602261543274,
0.08468074351549149,
-0.08085091412067413,
0.1321558654308319,
0.22976244986057281,
-0.16139987111091614,
-0.27696773409843445,
0.042878203094005585,
0.10533656924962997,
-0.3514561057090759,
0.17171214520931244,
0.04695066064596176,
-0.2642790675163269,
-0.13969404995441437,
0.24398650228977203,
0.22294479608535767,
-0.19973331689834595,
0.07114538550376892,
-0.11263511329889297,
-0.5878843665122986,
0.42432987689971924,
-0.2999688684940338,
0.39904046058654785,
-0.0677947849035263,
0.3172866106033325,
0.10937651991844177,
0.2897776663303375,
-0.49785685539245605,
-0.11339947581291199,
-0.28128066658973694,
-0.14137138426303864,
0.11462738364934921,
-0.14874118566513062,
0.19187937676906586,
-0.0057058185338974,
0.22878611087799072,
0.23075243830680847,
-0.17970144748687744,
-0.29490649700164795,
-0.18764694035053253,
0.06613320857286453,
0.015519418753683567,
0.019874781370162964,
0.07077938318252563,
0.1930042952299118,
-0.0698128491640091,
-0.2713048458099365,
0.1747259944677353,
0.10017599910497665,
0.03712392598390579,
0.03573627024888992,
-0.09891818463802338,
-0.14255842566490173,
0.2524561882019043,
-0.13278822600841522,
0.07873722910881042,
0.039731696248054504,
0.34929168224334717,
-0.17170444130897522,
-0.16518127918243408,
-0.13615502417087555,
0.24454998970031738,
0.30956193804740906,
0.21453453600406647,
-0.09621549397706985,
0.2899588346481323,
0.11962850391864777,
-0.07867643237113953,
0.38398444652557373,
0.3828476369380951,
-0.33239778876304626,
-0.03743163123726845,
0.3457809090614319,
0.2749922275543213,
0.3427481949329376,
-0.41752365231513977,
-0.07439807802438736,
0.12076203525066376,
-0.22889581322669983,
0.25637656450271606,
0.29643017053604126,
0.07223090529441833,
0.25654783844947815,
-0.13801035284996033,
0.07186712324619293,
0.21585315465927124,
0.14958180487155914,
0.06570006906986237,
0.06690166890621185,
0.05437478795647621,
-0.04907585307955742,
0.39185982942581177,
0.20008650422096252,
0.476315975189209,
0.24157017469406128,
-0.26827284693717957,
0.17817775905132294,
-0.17891287803649902,
0.1707034558057785,
0.6740844249725342,
-0.08592544496059418,
-0.10518062114715576,
-0.1166316568851471,
0.1032349169254303,
0.26479455828666687,
-0.23617208003997803,
0.2664104700088501,
-0.03935891017317772,
-0.05004504695534706,
-0.30627092719078064,
0.22554326057434082,
0.017069999128580093,
-0.1753079891204834,
-0.032426606863737106,
-0.16547638177871704,
-0.11845433712005615,
0.021897006779909134,
0.17092949151992798,
-0.5516788959503174,
0.23956440389156342,
-0.08906117081642151,
0.0860171690583229,
-0.04720758646726608,
-0.3005429208278656,
0.1985131800174713,
0.38240519165992737,
-0.1439465582370758,
0.06064709275960922,
0.33360934257507324,
-0.09045089781284332,
0.2614027261734009,
0.3666090965270996,
0.24371027946472168,
-0.1699512004852295,
0.004942367784678936,
0.25389817357063293,
-0.24957416951656342,
-0.20006203651428223,
-0.22804613411426544,
0.22357814013957977,
0.11389242112636566,
0.19812354445457458,
0.2895055115222931,
0.23388943076133728,
-0.24983876943588257,
-0.14540213346481323,
-0.15773160755634308,
0.1754910796880722,
-0.2758288085460663,
-0.11135730892419815,
-0.05348427593708038,
-0.058038968592882156,
-0.34573525190353394,
-0.01860654354095459,
-0.566343367099762,
-0.1378415822982788,
0.10611928999423981,
-0.3489750325679779,
-0.04883641004562378,
-0.06660071015357971,
0.14088450372219086,
0.018019534647464752,
0.27964410185813904,
0.3658500611782074,
0.14510619640350342,
-0.03749021887779236,
-0.2569707930088043,
-0.37527841329574585,
0.06841360032558441,
-0.013368282467126846,
-0.23161916434764862,
-0.13172219693660736,
0.11287954449653625,
0.19168275594711304,
0.20260168612003326,
-0.11775332689285278,
-0.024215351790189743,
0.14394958317279816,
-0.05169078707695007,
-0.2881407141685486,
0.22894780337810516,
-0.20556603372097015,
0.17541761696338654,
0.17635934054851532,
0.07280261069536209,
0.10397780686616898,
-0.019823279231786728,
0.12187548726797104,
-0.08514697849750519,
0.20997828245162964,
-0.3700878322124481,
-0.13029040396213531,
0.36371058225631714,
-0.050624825060367584,
0.14319364726543427,
-0.2617653012275696,
-0.2265697866678238,
-0.06435589492321014,
-0.3471784293651581,
-0.219977006316185,
0.046451207250356674,
0.05026956647634506,
0.5750436782836914,
-0.223011776804924,
-0.20450225472450256,
0.08807557821273804,
0.18088333308696747,
0.26870715618133545,
-0.1043189987540245,
-0.14730170369148254,
0.10342796891927719,
-0.09560759365558624,
-0.15594325959682465,
0.12739546597003937,
0.5751506686210632,
0.009384501725435257,
-0.3139963448047638,
0.12158451974391937,
-0.5392054915428162,
0.5912148952484131,
-0.41426363587379456,
-0.21814094483852386,
-0.11128667742013931,
-0.07194377481937408,
0.28705254197120667,
0.05057811737060547,
-0.49471160769462585,
0.18191367387771606,
0.12329009175300598,
0.12855395674705505,
-0.2392706573009491,
0.338531494140625,
0.0396718829870224,
-0.1372276395559311,
-0.1184719055891037,
0.12329918146133423,
0.05145738273859024,
-0.0695444792509079,
-0.014186950400471687,
-0.2397882491350174
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > Hello @yixuanren I had another prioritized project about to be merged, but I'll start continuing today will finish up soon.
It's really nice of you!! I see you've commited another version just now | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 34 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> Hello @yixuanren I had another prioritized project about to be merged, but I'll start continuing today will finish up soon.
It's really nice of you!! I see you've commited another version just now | [
-0.19347015023231506,
-0.530968189239502,
-0.1402343064546585,
0.17947667837142944,
0.20484614372253418,
0.025511935353279114,
0.11512261629104614,
0.1192389726638794,
-0.11042332649230957,
0.2151785045862198,
-0.46300509572029114,
0.16055293381214142,
-0.23001541197299957,
0.45176494121551514,
0.14649106562137604,
-0.30060824751853943,
0.0694584995508194,
-0.010653413832187653,
-0.3615533411502838,
-0.03784167021512985,
-0.00975184515118599,
0.24975697696208954,
0.12153962254524231,
-0.06250886619091034,
-0.3876412808895111,
-0.1652371734380722,
-0.41328781843185425,
-0.0013873018324375153,
-0.18652492761611938,
-0.296848326921463,
0.1610625982284546,
0.19042469561100006,
0.10692344605922699,
0.3517813980579376,
-0.00009720210800878704,
-0.0012929365038871765,
0.07814912497997284,
-0.06386423110961914,
-0.08402664959430695,
-0.13865475356578827,
0.03426892310380936,
-0.2103816419839859,
0.01172359474003315,
-0.13704314827919006,
-0.25231707096099854,
0.06393305957317352,
0.16581059992313385,
0.003019515424966812,
0.49798327684402466,
0.08938734233379364,
0.3465307056903839,
0.30337032675743103,
0.1634635627269745,
-0.1628328412771225,
-0.04404015094041824,
0.4378758668899536,
-0.21591776609420776,
0.20044465363025665,
0.24906519055366516,
0.034262023866176605,
-0.13947156071662903,
0.5237406492233276,
0.0728590339422226,
-0.08416573703289032,
0.4169038236141205,
0.10734868794679642,
-0.1173115149140358,
-0.36593976616859436,
0.003634057939052582,
0.31192857027053833,
0.1654760241508484,
-0.25248610973358154,
-0.32459306716918945,
-0.40911704301834106,
-0.09822544455528259,
-0.30416664481163025,
-0.026429586112499237,
0.21239197254180908,
-0.12259894609451294,
0.2604070007801056,
-0.2831293046474457,
-0.15794828534126282,
-0.19932693243026733,
-0.059580057859420776,
0.09803134202957153,
0.044995348900556564,
-0.1917615681886673,
-0.11495118588209152,
0.15403950214385986,
-0.09837454557418823,
-0.3608998656272888,
-0.02446732670068741,
0.0559481643140316,
-0.036454830318689346,
-0.12788832187652588,
-0.2112390100955963,
0.1242528185248375,
0.23265105485916138,
0.39053672552108765,
0.16695290803909302,
-0.005857028998434544,
0.018008705228567123,
-0.15006527304649353,
0.10686792433261871,
0.06324374675750732,
0.09800414741039276,
-0.21453458070755005,
0.0023214854300022125,
0.11269968003034592,
0.22189413011074066,
0.06004272773861885,
-0.15252164006233215,
0.05219264701008797,
0.26159507036209106,
-0.2969552278518677,
-0.1609942615032196,
0.008597947657108307,
-0.0452071912586689,
-0.11274787783622742,
-0.13797566294670105,
0.1636562943458557,
0.14026705920696259,
0.07722242176532745,
0.3996555805206299,
-0.02537994086742401,
0.15656507015228271,
0.031222976744174957,
0.1360624134540558,
0.01403169147670269,
-0.04870770871639252,
-0.2638716697692871,
0.08289265632629395,
-0.20794929563999176,
0.1466141939163208,
0.16445769369602203,
-0.12837053835391998,
0.12461572140455246,
-0.29595163464546204,
0.2655273675918579,
0.1528414487838745,
-0.1272650510072708,
-0.11780209839344025,
0.20605303347110748,
0.09767304360866547,
-0.200057715177536,
-0.2064140886068344,
0.17124925553798676,
-0.1047811210155487,
-0.2454761564731598,
-0.21636515855789185,
-0.08153704553842545,
-0.10222680866718292,
-0.17016766965389252,
0.2517910301685333,
-0.16527540981769562,
-0.12468154728412628,
-0.14554926753044128,
0.5694881677627563,
-0.2560509443283081,
0.16894423961639404,
0.0010389313101768494,
0.29044175148010254,
-0.22885416448116302,
-0.1271142065525055,
0.23198291659355164,
0.4022483229637146,
0.14827722311019897,
-0.3218953013420105,
0.0500178337097168,
-0.17229177057743073,
-0.10751978307962418,
0.09386469423770905,
0.04698055610060692,
-0.016492947936058044,
-0.16396401822566986,
-0.014955565333366394,
-0.24720805883407593,
-0.25900140404701233,
-0.22253824770450592,
0.09513435512781143,
-0.1887851059436798,
0.09004412591457367,
0.13425901532173157,
0.31292515993118286,
0.0754886269569397,
0.005009859800338745,
-0.1578308790922165,
0.38673126697540283,
-0.16223131120204926,
0.13227923214435577,
0.012743566185235977,
-0.34732183814048767,
-0.04226827621459961,
0.208820179104805,
0.13988684117794037,
0.009648196399211884,
-0.05339852720499039,
-0.14905795454978943,
0.15759417414665222,
-0.1392829418182373,
0.08254000544548035,
0.024988073855638504,
0.47172310948371887,
0.2234513908624649,
-0.030420800670981407,
-0.25406044721603394,
-0.35776829719543457,
0.07582249492406845,
0.17538239061832428,
0.30012616515159607,
-0.2724624276161194,
-0.38589394092559814,
-0.011330604553222656,
0.12383788079023361,
0.020934253931045532,
-0.3265000283718109,
0.29311177134513855,
0.14659196138381958,
0.2337903082370758,
0.09286618232727051,
-0.17225497961044312,
0.4682126045227051,
0.10598741471767426,
0.3398049771785736,
-0.09230607748031616,
0.239787295460701,
-0.07205089181661606,
0.1485382467508316,
0.23381119966506958,
0.16691339015960693,
-0.12940070033073425,
-0.11773617565631866,
0.1702825427055359,
0.35394829511642456,
-0.17361348867416382,
0.2719886302947998,
0.11282452195882797,
0.26771384477615356,
0.333477258682251,
-0.43281710147857666,
0.00042376667261123657,
-0.12503518164157867,
0.1593157947063446,
0.09019526094198227,
-0.3029945194721222,
0.21731752157211304,
0.0276692695915699,
0.12285685539245605,
0.21510003507137299,
0.049412332475185394,
0.20553992688655853,
-0.026503559201955795,
-0.15277662873268127,
-0.1938449591398239,
-0.042616549879312515,
-0.07918478548526764,
0.2836701273918152,
0.028468426316976547,
-0.35631537437438965,
0.038713935762643814,
0.13514134287834167,
0.06616160273551941,
0.16694486141204834,
0.2859978973865509,
-0.30979326367378235,
0.07636333256959915,
0.06873586773872375,
-0.10185948014259338,
-0.004778414964675903,
0.369825154542923,
-0.05397103354334831,
0.02531120367348194,
0.05982913449406624,
0.002449188381433487,
0.15567132830619812,
0.2341926246881485,
-0.0040029725059866905,
0.0027277469635009766,
0.3238984942436218,
-0.07788939028978348,
-0.4543701112270355,
-0.3752236068248749,
-0.2943868041038513,
-0.08942094445228577,
0.06364692747592926,
0.09131495654582977,
0.0808800533413887,
-0.3989025354385376,
-0.07198408246040344,
-0.07818286120891571,
-0.16356788575649261,
-0.04268777742981911,
0.16297727823257446,
-0.08587129414081573,
-0.06610776484012604,
0.1006292998790741,
-0.1332560032606125,
0.4828721284866333,
-0.17868898808956146,
0.09088017046451569,
-0.13013046979904175,
-0.03650567680597305,
-0.0031286105513572693,
0.2625475823879242,
0.18240989744663239,
-0.14686937630176544,
0.530657947063446,
-0.15856203436851501,
0.3920662999153137,
-0.041047073900699615,
-0.6527222990989685,
0.2404356598854065,
-0.20546755194664001,
0.049683235585689545,
0.11597709357738495,
-0.03394100069999695,
-0.02875129133462906,
-0.37093910574913025,
0.2120547741651535,
-0.3028741180896759,
-0.23986294865608215,
-0.19301976263523102,
-0.11154398322105408,
-0.03195355087518692,
-0.28589141368865967,
-0.11107898503541946,
-0.2816832661628723,
-0.3570549190044403,
0.5902019739151001,
0.27842259407043457,
0.008670445531606674,
0.35037916898727417,
0.10627350956201553,
0.16222266852855682,
-0.2128295749425888,
0.17861488461494446,
-0.052621133625507355,
-0.37455475330352783,
0.07094190269708633,
-0.2507501244544983,
-0.1739175021648407,
-0.31224197149276733,
-0.3840382695198059,
0.18126896023750305,
-0.19187727570533752,
-0.44888782501220703,
-0.318890243768692,
-0.38323619961738586,
0.12119215726852417,
0.17528145015239716,
0.01634243130683899,
0.20826564729213715,
0.06279855966567993,
-0.18509404361248016,
-0.055652815848588943,
-0.14176401495933533,
0.07301333546638489,
-0.025962915271520615,
-0.03400338441133499,
-0.19532537460327148,
0.24203380942344666,
0.24646592140197754,
0.35154855251312256,
-0.01171377208083868,
-0.26384440064430237,
0.3711574673652649,
-0.04729500412940979,
0.5277659296989441,
-0.13794511556625366,
-0.3134101331233978,
0.30167222023010254,
-0.09924298524856567,
-0.05270697921514511,
0.2908635139465332,
0.20750945806503296,
-0.05423291027545929,
-0.26866602897644043,
0.00811435654759407,
-0.31873422861099243,
-0.10008446127176285,
-0.00941275991499424,
0.5348334312438965,
0.08954284340143204,
-0.1689109057188034,
-0.2319003939628601,
-0.23143070936203003,
-0.14237400889396667,
0.25736716389656067,
0.32071107625961304,
0.07355111837387085,
-0.05211740732192993,
-0.43668434023857117,
-0.12172737717628479,
-0.5125051736831665,
0.16757994890213013,
0.09792011976242065,
-0.2860780954360962,
-0.12115156650543213,
-0.273484468460083,
-0.08564141392707825,
-0.07609811425209045,
0.42075228691101074,
0.2231581062078476,
-0.2072669416666031,
-0.03895464539527893,
-0.3849855065345764,
-0.09180005639791489,
0.1913197636604309,
-0.19110757112503052,
-0.1427718698978424,
0.1500551551580429,
0.579609215259552,
-0.3851049840450287,
0.009311670437455177,
0.20383265614509583,
0.05641680583357811,
-0.03536583483219147,
0.008458762429654598,
-0.10716688632965088,
-0.06448998302221298,
-0.4010847508907318,
0.10948007553815842,
0.04367886483669281,
0.20047931373119354,
0.16887837648391724,
-0.10242508351802826,
-0.0018633604049682617,
-0.14429137110710144,
0.23552940785884857,
0.2923736274242401,
0.08146754652261734,
0.2576276957988739,
0.18170477449893951,
0.13737216591835022,
0.20259566605091095,
0.1357775181531906,
0.5218496322631836,
-0.12284137308597565,
-0.3272336721420288,
-0.15640905499458313,
0.1469414234161377,
0.20772558450698853,
0.1802058070898056,
0.17504209280014038,
0.03531203046441078,
0.0896703228354454,
0.2926364541053772,
-0.5272632837295532,
0.34408068656921387,
0.07437463849782944,
0.12313038855791092,
-0.23103372752666473,
-0.10029466450214386,
0.2476612627506256,
-0.013989703729748726,
-0.02079613506793976,
0.12229099869728088,
0.17133010923862457,
-0.19914209842681885,
0.19905845820903778,
0.2513725757598877,
0.9553206562995911,
-0.2471364587545395,
0.33958184719085693,
0.1049802303314209,
-0.08697637915611267,
0.44532352685928345,
-0.139913409948349,
0.1479749232530594,
-0.11511220037937164,
-0.2934766709804535,
0.018201204016804695,
0.03236675634980202,
0.05415477231144905,
-0.07963550090789795,
-0.2541975975036621,
-0.1125575378537178,
0.15055744349956512,
0.3118589520454407,
-0.1473742574453354,
0.22575747966766357,
-0.11098475009202957,
-0.5368183851242065,
-0.14821676909923553,
0.3100368082523346,
-0.019972801208496094,
0.20718473196029663,
0.013701912015676498,
-0.19252333045005798,
-0.1741640865802765,
-0.017240166664123535,
-0.1601828634738922,
-0.07000856846570969,
-0.1450870782136917,
0.09676110744476318,
0.15166446566581726,
-0.08485841006040573,
-0.0556957833468914,
0.3384283781051636,
0.3306831121444702,
0.09942157566547394,
-0.2709046006202698,
0.2334539294242859,
-0.2646324634552002,
-0.14222954213619232,
-0.03660611808300018,
-0.041521526873111725,
0.25344133377075195,
-0.027974873781204224,
0.06497380882501602,
-0.07907063513994217,
0.3704272210597992,
-0.04792923480272293,
-0.1830858439207077,
-0.12269966304302216,
0.13831625878810883,
-0.06551063060760498,
0.08187343180179596,
0.1023501381278038,
-0.14001122117042542,
-0.2143746167421341,
0.24185040593147278,
0.15028664469718933,
0.011098681949079037,
-0.11750005930662155,
0.25864025950431824,
-0.04200994223356247,
-0.13775432109832764,
0.2670711576938629,
0.1099298745393753,
-0.0903645008802414,
0.1347711682319641,
0.20984713733196259,
-0.1802789866924286,
-0.28597015142440796,
0.009998396039009094,
0.10164079815149307,
-0.37045466899871826,
0.19511161744594574,
0.06464099138975143,
-0.26710182428359985,
-0.1582406461238861,
0.2570444345474243,
0.24231116473674774,
-0.14014708995819092,
0.07869851589202881,
-0.09300193935632706,
-0.5901941061019897,
0.4229055643081665,
-0.30940937995910645,
0.3824482560157776,
-0.0723423883318901,
0.35617321729660034,
0.13260270655155182,
0.2868748605251312,
-0.5149006843566895,
-0.10988613963127136,
-0.2919091582298279,
-0.12724027037620544,
0.15305514633655548,
-0.16947123408317566,
0.1778167486190796,
-0.03078468143939972,
0.2496989667415619,
0.23193280398845673,
-0.19468605518341064,
-0.3115161061286926,
-0.18099866807460785,
0.06288819015026093,
0.02965812012553215,
0.019671428948640823,
0.0759255588054657,
0.2255714386701584,
-0.052972327917814255,
-0.25856897234916687,
0.19469724595546722,
0.1020515039563179,
0.04827742278575897,
0.029134470969438553,
-0.07981382310390472,
-0.11565970629453659,
0.2256559580564499,
-0.1475411057472229,
0.1116543635725975,
0.05383942648768425,
0.3146422505378723,
-0.18645523488521576,
-0.1760610044002533,
-0.1342799812555313,
0.2658422589302063,
0.29173797369003296,
0.21370559930801392,
-0.047498635947704315,
0.27182555198669434,
0.110375314950943,
-0.09623179584741592,
0.3800918161869049,
0.3768918812274933,
-0.3132062256336212,
-0.03505709022283554,
0.32048484683036804,
0.2772386074066162,
0.35674983263015747,
-0.4127151072025299,
-0.07366897910833359,
0.10138560831546783,
-0.2300635278224945,
0.2556031048297882,
0.28836098313331604,
0.054317694157361984,
0.22639283537864685,
-0.11468042433261871,
0.087749183177948,
0.23822034895420074,
0.1430473029613495,
0.0642414540052414,
0.04675551503896713,
0.040362197905778885,
-0.05049397423863411,
0.4011959433555603,
0.1800546795129776,
0.46018892526626587,
0.21690963208675385,
-0.26251453161239624,
0.1716039478778839,
-0.15864986181259155,
0.17328549921512604,
0.6446208953857422,
-0.0837705135345459,
-0.09603968262672424,
-0.08941444754600525,
0.07523682713508606,
0.24216228723526,
-0.223441481590271,
0.2560332715511322,
-0.01882537454366684,
-0.055224642157554626,
-0.2857007086277008,
0.24076150357723236,
-0.006327565759420395,
-0.17181432247161865,
-0.012900413945317268,
-0.18518491089344025,
-0.13931775093078613,
-0.01818469539284706,
0.14565204083919525,
-0.529870331287384,
0.2391352355480194,
-0.10764077305793762,
0.06346946954727173,
-0.04498084634542465,
-0.3164994716644287,
0.19698703289031982,
0.38896724581718445,
-0.1548995077610016,
0.09278491139411926,
0.3617740869522095,
-0.08726763725280762,
0.21307094395160675,
0.3671886920928955,
0.2665790617465973,
-0.14117252826690674,
0.029246453195810318,
0.2701256275177002,
-0.21008728444576263,
-0.20484618842601776,
-0.2154477834701538,
0.22161711752414703,
0.12665963172912598,
0.17773911356925964,
0.28092339634895325,
0.2510807514190674,
-0.2772941291332245,
-0.14191681146621704,
-0.12572269141674042,
0.16902650892734528,
-0.2729799151420593,
-0.10641767829656601,
-0.0629943460226059,
-0.07012399286031723,
-0.3370414078235626,
-0.00300510972738266,
-0.5648326277732849,
-0.1260502189397812,
0.10167445242404938,
-0.3519960939884186,
-0.03502169996500015,
-0.08548981696367264,
0.14641161262989044,
0.01567225344479084,
0.28967007994651794,
0.34686747193336487,
0.1311182975769043,
-0.06759044528007507,
-0.2807222008705139,
-0.38463839888572693,
0.07267238199710846,
-0.010580755770206451,
-0.22729752957820892,
-0.1396862417459488,
0.11858066916465759,
0.2052767276763916,
0.1969035118818283,
-0.12540148198604584,
-0.02851218357682228,
0.13202376663684845,
-0.07722242176532745,
-0.29200246930122375,
0.2389044314622879,
-0.214838907122612,
0.16327707469463348,
0.2026997208595276,
0.07497429102659225,
0.07307911664247513,
0.003531964495778084,
0.14477035403251648,
-0.07841316610574722,
0.21090716123580933,
-0.3538226783275604,
-0.11788259446620941,
0.3385964334011078,
-0.03329169750213623,
0.1311279535293579,
-0.2616182267665863,
-0.24058732390403748,
-0.03354405239224434,
-0.3479709327220917,
-0.20371077954769135,
0.07256555557250977,
0.04915740713477135,
0.5687648057937622,
-0.21346770226955414,
-0.20119903981685638,
0.07666286826133728,
0.18202440440654755,
0.3078470826148987,
-0.10451847314834595,
-0.15692906081676483,
0.11500439792871475,
-0.08004312217235565,
-0.17032548785209656,
0.08665023744106293,
0.6002389788627625,
0.015291605144739151,
-0.27685409784317017,
0.09822173416614532,
-0.5623918771743774,
0.5953034162521362,
-0.39984506368637085,
-0.22663962841033936,
-0.11617191880941391,
-0.04541541635990143,
0.31404587626457214,
0.02830400876700878,
-0.47890180349349976,
0.1965513527393341,
0.13001306354999542,
0.11509846895933151,
-0.24478976428508759,
0.3229617774486542,
0.01663186028599739,
-0.12297677993774414,
-0.1012801080942154,
0.12880714237689972,
0.05971180647611618,
-0.07804561406373978,
0.00014520063996315002,
-0.25842732191085815
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Hi @NielsRogge and @merveenoyan, did you find a way to load a dataset with COCO annotations to HF's hub?
I have a panoptic segmentation dataset in COCO format and would like to share it with the community.
Thanks in advance :) | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 41 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Hi @NielsRogge and @merveenoyan, did you find a way to load a dataset with COCO annotations to HF's hub?
I have a panoptic segmentation dataset in COCO format and would like to share it with the community.
Thanks in advance :) | [
-0.11135806888341904,
-0.5989514589309692,
-0.019046586006879807,
0.16975989937782288,
0.16823284327983856,
0.1434836983680725,
0.07303406298160553,
0.030360227450728416,
-0.028083480894565582,
0.15712100267410278,
-0.8349181413650513,
0.13507361710071564,
-0.1977086067199707,
0.38263311982154846,
0.22883594036102295,
-0.1574362814426422,
0.1640259325504303,
0.031524598598480225,
-0.16473090648651123,
-0.12312141805887222,
0.151967853307724,
0.19699737429618835,
0.14637862145900726,
0.16861750185489655,
-0.4793526232242584,
-0.03183450549840927,
-0.4346960783004761,
0.27208614349365234,
0.05746932327747345,
-0.36044788360595703,
0.4218156635761261,
0.3853585422039032,
0.3382883369922638,
0.4744134247303009,
-0.00011929672473343089,
0.05268712341785431,
0.146917462348938,
-0.04580102860927582,
-0.11610466241836548,
-0.19928549230098724,
-0.14997102320194244,
-0.11994394659996033,
-0.00017788622062653303,
0.08561218529939651,
-0.17005601525306702,
0.09733054041862488,
-0.0094617810100317,
0.1401577740907669,
0.3500330150127411,
-0.07581663131713867,
0.11671565473079681,
0.3366394340991974,
0.09542815387248993,
-0.1940719187259674,
-0.03287805616855621,
0.487016499042511,
-0.25963425636291504,
0.46626850962638855,
0.341938853263855,
-0.09294335544109344,
-0.1786518096923828,
0.297855019569397,
0.09181864559650421,
-0.031794797629117966,
0.6537714004516602,
-0.0012920685112476349,
-0.27133694291114807,
-0.2968244254589081,
-0.16069376468658447,
0.35259488224983215,
0.34706568717956543,
-0.176224023103714,
-0.30894753336906433,
-0.29820334911346436,
-0.09735815227031708,
-0.17357668280601501,
-0.1154627576470375,
0.21114954352378845,
-0.029168132692575455,
0.24963372945785522,
-0.06964997202157974,
-0.44763612747192383,
-0.3300575315952301,
-0.033091701567173004,
0.08257018029689789,
0.24653393030166626,
-0.1530328094959259,
-0.1408926546573639,
0.05148597061634064,
-0.031192928552627563,
0.087561696767807,
-0.14803172647953033,
-0.07689304649829865,
0.15736745297908783,
-0.12314838171005249,
-0.07352913171052933,
0.08884875476360321,
0.36685383319854736,
0.3812689781188965,
-0.07622075080871582,
-0.16735254228115082,
0.16350603103637695,
-0.5496048331260681,
-0.06319833546876907,
0.14534218609333038,
-0.07013773918151855,
-0.16223233938217163,
0.2950598895549774,
0.10052574425935745,
0.19953496754169464,
0.17727072536945343,
-0.16936907172203064,
-0.22474849224090576,
0.45232632756233215,
-0.32474425435066223,
-0.3143191933631897,
-0.15661850571632385,
-0.3051570951938629,
-0.12880146503448486,
0.04442421719431877,
0.1810876727104187,
0.10419483482837677,
0.2292306125164032,
0.5846590995788574,
0.04692552611231804,
0.18997135758399963,
-0.18924230337142944,
0.2490215301513672,
-0.13468948006629944,
0.04406685382127762,
-0.2909914255142212,
0.2487393319606781,
-0.17370766401290894,
0.30404120683670044,
0.05827269330620766,
-0.1969880908727646,
-0.05129484832286835,
-0.2068437784910202,
0.6005224585533142,
0.13835114240646362,
-0.3417814373970032,
-0.1529109627008438,
0.1868390142917633,
0.16865214705467224,
-0.03426404297351837,
0.0314738005399704,
0.28546151518821716,
0.13923069834709167,
-0.195906400680542,
-0.13750216364860535,
-0.3849877715110779,
-0.3092479109764099,
-0.20213450491428375,
-0.012415953911840916,
-0.2849019765853882,
-0.11370061337947845,
-0.39119094610214233,
0.2958066761493683,
-0.44484826922416687,
0.2772118151187897,
-0.0712585374712944,
0.23192660510540009,
-0.19354481995105743,
-0.11973140388727188,
0.22654029726982117,
0.5032373666763306,
0.08675014972686768,
-0.20073102414608002,
0.07688305526971817,
-0.034540362656116486,
-0.14536812901496887,
0.14907851815223694,
-0.08498506993055344,
0.2161967158317566,
-0.21917136013507843,
0.14180463552474976,
-0.23656892776489258,
-0.5133103728294373,
-0.19408400356769562,
0.1965080350637436,
0.05457388609647751,
0.2417699545621872,
-0.17708510160446167,
0.2929559648036957,
0.0908118411898613,
-0.1333121508359909,
-0.03911738097667694,
0.16866596043109894,
0.08148428052663803,
0.08296618610620499,
0.09219153225421906,
-0.3003842234611511,
-0.22424234449863434,
0.3221086859703064,
0.196753591299057,
0.0833088606595993,
-0.012424059212207794,
0.0867282897233963,
0.277223140001297,
-0.26306378841400146,
0.006007208954542875,
0.2078896313905716,
0.32913973927497864,
0.6085636019706726,
-0.03360377997159958,
0.0028591901063919067,
-0.22422349452972412,
0.20286646485328674,
0.10523957014083862,
0.16118761897087097,
-0.16267965734004974,
-0.2727035880088806,
-0.19407933950424194,
0.297513484954834,
-0.09595085680484772,
-0.08801324665546417,
0.03103514015674591,
-0.009334728121757507,
0.14389197528362274,
-0.008697759360074997,
-0.2452370971441269,
0.8195065259933472,
0.029040297493338585,
0.2008087933063507,
0.13923758268356323,
0.7311903834342957,
0.1202840581536293,
0.18899555504322052,
0.19750258326530457,
0.34821817278862,
-0.057772837579250336,
-0.11185019463300705,
0.015789460390806198,
0.3694020211696625,
-0.22528472542762756,
0.34319740533828735,
0.09064632654190063,
0.276298850774765,
0.3359588086605072,
-0.6541529893875122,
0.2622741758823395,
-0.3602471649646759,
0.11523856967687607,
-0.09111824631690979,
-0.2580949366092682,
0.23627585172653198,
-0.06394138932228088,
0.0681484118103981,
0.06768937408924103,
-0.08534593135118484,
0.05826614052057266,
0.1907646656036377,
-0.18028882145881653,
-0.1566673070192337,
-0.033102694898843765,
-0.23257587850093842,
0.30187368392944336,
-0.2251712530851364,
-0.18908734619617462,
-0.06429392844438553,
-0.07671825587749481,
0.0470561645925045,
0.028691459447145462,
0.28620970249176025,
-0.3648565411567688,
0.15701687335968018,
0.3157159388065338,
-0.5415421724319458,
-0.015054017305374146,
0.15846382081508636,
-0.1385015994310379,
0.07267668843269348,
-0.0993470698595047,
0.1608515977859497,
-0.04258196800947189,
0.22358429431915283,
0.13810765743255615,
-0.07067348808050156,
0.17790260910987854,
0.06251484155654907,
-0.5692963004112244,
-0.38570237159729004,
-0.2926817238330841,
-0.13511337339878082,
-0.21305181086063385,
0.010493109002709389,
0.09209860861301422,
-0.3105069696903229,
0.20048567652702332,
-0.4958423972129822,
-0.2840326428413391,
-0.2366248518228531,
-0.0717906802892685,
0.1938965767621994,
0.3129154145717621,
-0.12512604892253876,
-0.416905015707016,
0.47966670989990234,
-0.25110551714897156,
0.05287698283791542,
-0.01590181514620781,
0.0019097405020147562,
-0.02621353417634964,
0.03756462410092354,
0.2248140126466751,
0.04144931957125664,
0.3142808675765991,
0.11681925505399704,
0.36085760593414307,
-0.08235520124435425,
-0.4067293107509613,
0.307630717754364,
-0.12816937267780304,
-0.05415531247854233,
0.0558515302836895,
0.00012131035327911377,
-0.10309839993715286,
-0.2987179756164551,
0.1791124790906906,
-0.06382117420434952,
-0.0778026133775711,
-0.07424761354923248,
-0.2012888342142105,
-0.11316128075122833,
0.04273917153477669,
0.22471883893013,
-0.3638804256916046,
-0.28106820583343506,
0.18759174644947052,
0.16842900216579437,
-0.01965758204460144,
0.32893431186676025,
-0.07717345654964447,
0.18903088569641113,
0.002612477168440819,
-0.317073255777359,
-0.17616400122642517,
-0.4143129885196686,
0.2470061331987381,
-0.2775256335735321,
-0.16605216264724731,
-0.16973736882209778,
-0.3064976930618286,
0.13707758486270905,
-0.36671215295791626,
-0.5760672688484192,
-0.3217163383960724,
-0.2935640513896942,
0.17265281081199646,
-0.003055606037378311,
-0.1074332445859909,
0.06920278072357178,
-0.11538518965244293,
0.14046677947044373,
-0.019443050026893616,
-0.2177220582962036,
0.041827477514743805,
0.26620522141456604,
-0.03833130747079849,
-0.17240160703659058,
0.03798190876841545,
0.23001646995544434,
0.13477018475532532,
0.21526837348937988,
0.005940277129411697,
0.537105917930603,
0.062006302177906036,
0.4490230083465576,
-0.2742968499660492,
-0.2569829821586609,
0.2027629315853119,
-0.10455906391143799,
-0.01188176404684782,
0.36657118797302246,
0.3132288455963135,
-0.026860157027840614,
-0.14112071692943573,
-0.19355939328670502,
-0.15407010912895203,
0.005610600113868713,
-0.038807108998298645,
0.08369177579879761,
0.06770367175340652,
-0.15567825734615326,
-0.13527026772499084,
-0.4250137507915497,
-0.41216447949409485,
0.4451262950897217,
0.3449580669403076,
0.28187796473503113,
0.061490386724472046,
-0.5053767561912537,
-0.15253210067749023,
-0.6603143811225891,
0.15956775844097137,
0.06150069832801819,
-0.13900691270828247,
-0.16141782701015472,
0.11250140517950058,
0.09759291261434555,
-0.11532039195299149,
0.3307395875453949,
0.02335406467318535,
0.04371967539191246,
0.17509126663208008,
-0.18793220818042755,
-0.04177938401699066,
-0.05066364258527756,
-0.05654444545507431,
0.10619016736745834,
-0.18866990506649017,
0.6891211867332458,
-0.1957523673772812,
-0.06303299218416214,
0.08715523779392242,
-0.23241521418094635,
-0.15992094576358795,
-0.008901054970920086,
0.010125987231731415,
-0.03785380348563194,
-0.22367100417613983,
0.10533788800239563,
0.14408539235591888,
0.3507182002067566,
0.06932644546031952,
-0.014833178371191025,
0.148965522646904,
0.029311567544937134,
0.33308783173561096,
0.18368899822235107,
0.07793693244457245,
0.5636553764343262,
0.12114846706390381,
0.2890198826789856,
0.00018939003348350525,
0.34380805492401123,
0.6296992897987366,
0.08764611184597015,
-0.5101157426834106,
-0.04706445336341858,
0.12695249915122986,
0.1962994933128357,
0.2212633192539215,
0.3964987099170685,
-0.05436936765909195,
-0.06529229879379272,
0.14856815338134766,
-0.752327561378479,
0.2791649103164673,
-0.16693846881389618,
0.015002849511802197,
-0.5762937664985657,
0.045877665281295776,
0.49296367168426514,
-0.0048407092690467834,
0.04218070209026337,
0.24200288951396942,
0.4384607672691345,
-0.16413141787052155,
0.37948107719421387,
0.25578808784484863,
0.9298542141914368,
-0.40814900398254395,
0.2350229173898697,
0.2599422037601471,
-0.07927706092596054,
0.3115922510623932,
-0.3237076997756958,
-0.11486347019672394,
-0.3136915862560272,
-0.3347957730293274,
-0.13156814873218536,
-0.02036779373884201,
0.048797883093357086,
0.02519356831908226,
-0.030733367428183556,
-0.07510995864868164,
0.04602229595184326,
0.4950525760650635,
-0.0657568871974945,
0.22337770462036133,
-0.08134859800338745,
-0.6528827548027039,
-0.07084166258573532,
0.1956879198551178,
-0.006860874593257904,
0.3864188492298126,
-0.14535671472549438,
-0.0806145966053009,
-0.34455356001853943,
0.06871670484542847,
-0.370904803276062,
0.0824337899684906,
0.1708480417728424,
0.14427953958511353,
0.20742177963256836,
0.019925691187381744,
0.1809445470571518,
0.09097033739089966,
0.48699039220809937,
-0.07617473602294922,
-0.29001519083976746,
0.18443502485752106,
-0.28066354990005493,
-0.058691877871751785,
-0.0330284908413887,
-0.0028494875878095627,
0.2033120095729828,
0.049596890807151794,
-0.06605302542448044,
0.0860336497426033,
0.2580338418483734,
-0.3443542718887329,
-0.14663104712963104,
-0.11261187493801117,
0.36012470722198486,
-0.030933596193790436,
0.0047339750453829765,
0.22756309807300568,
-0.022504258900880814,
-0.0013446509838104248,
0.009754911065101624,
0.18494907021522522,
0.015680450946092606,
-0.16543501615524292,
0.29054850339889526,
-0.024255704134702682,
-0.013230565935373306,
0.32160553336143494,
-0.08232832700014114,
-0.28279972076416016,
0.18011131882667542,
0.26890698075294495,
-0.18002264201641083,
-0.036967743188142776,
0.16091081500053406,
0.19827213883399963,
-0.27071741223335266,
-0.14812353253364563,
0.08909923583269119,
-0.1774672120809555,
-0.2184949666261673,
0.3165208399295807,
0.2578776776790619,
-0.20766565203666687,
0.05804296210408211,
-0.3071367144584656,
-0.46535053849220276,
0.38690799474716187,
-0.5003325343132019,
0.2685830295085907,
-0.10812100768089294,
0.24934770166873932,
0.058636754751205444,
0.3181952238082886,
-0.24038544297218323,
-0.029841503128409386,
-0.2238374799489975,
-0.21507495641708374,
-0.045535340905189514,
-0.059723056852817535,
0.0895712822675705,
-0.26276782155036926,
-0.013620376586914062,
0.10810492187738419,
-0.250959575176239,
-0.04416670650243759,
-0.2518640458583832,
0.20132769644260406,
0.15277311205863953,
0.04699305444955826,
-0.15832923352718353,
-0.0009358562529087067,
0.04558731988072395,
-0.2576615512371063,
0.38069140911102295,
0.3047695457935333,
-0.06583449244499207,
-0.027271565049886703,
0.40250980854034424,
-0.11072450131177902,
-0.15254265069961548,
0.09507597237825394,
0.43237069249153137,
0.25076884031295776,
0.14013567566871643,
-0.16851060092449188,
-0.10278716683387756,
-0.13778911530971527,
0.20578669011592865,
0.5235428810119629,
0.31818854808807373,
-0.14327803254127502,
0.3423180878162384,
0.005602840334177017,
0.2225290834903717,
0.1811961829662323,
0.2555227279663086,
-0.31955957412719727,
0.0011650765081867576,
0.15542072057724,
0.2448691427707672,
0.06413989514112473,
-0.14871391654014587,
-0.4151172339916229,
0.07258069515228271,
-0.24317733943462372,
-0.05548015981912613,
0.29169929027557373,
0.42042797803878784,
0.40567800402641296,
-0.12965233623981476,
0.1072889193892479,
0.3651616871356964,
0.22200876474380493,
0.10686811804771423,
0.19753675162792206,
-0.13373863697052002,
0.054061248898506165,
0.4297533929347992,
0.043812476098537445,
0.1602548360824585,
0.29333066940307617,
0.04302436485886574,
0.05189894884824753,
0.1393914818763733,
0.2565685212612152,
0.4733012914657593,
-0.5677005052566528,
-0.4880598783493042,
-0.19039559364318848,
0.2536827325820923,
0.2629602551460266,
-0.3019410967826843,
0.11208058148622513,
0.10130009800195694,
-0.26771894097328186,
-0.308374285697937,
0.1755821406841278,
-0.1478089988231659,
-0.14966852962970734,
0.014221452176570892,
-0.07782264053821564,
-0.3187476098537445,
0.04613339528441429,
-0.07463359832763672,
-0.594089150428772,
0.23779436945915222,
-0.09061427414417267,
0.06836478412151337,
0.04668990522623062,
-0.24540016055107117,
0.4273233711719513,
0.25530365109443665,
-0.013076923787593842,
0.11921538412570953,
0.03321807086467743,
0.01648632064461708,
0.15591421723365784,
0.26371875405311584,
0.19083522260189056,
-0.0680883377790451,
0.15508562326431274,
0.33026549220085144,
-0.09714965522289276,
-0.047079503536224365,
0.1496008336544037,
0.04717385023832321,
-0.15375810861587524,
0.04847627878189087,
0.2608065903186798,
0.051407597959041595,
-0.016819575801491737,
-0.12744443118572235,
-0.20483256876468658,
0.37576666474342346,
-0.28294289112091064,
0.22061750292778015,
-0.06614439934492111,
-0.17901203036308289,
-0.15910491347312927,
0.08096131682395935,
-0.26105180382728577,
0.020212089642882347,
0.22026470303535461,
-0.34400510787963867,
-0.03232913464307785,
-0.0033388391602784395,
0.00038262829184532166,
-0.09979039430618286,
0.41244831681251526,
0.5870807766914368,
-0.046538665890693665,
-0.14269496500492096,
-0.4060635566711426,
-0.36692366003990173,
0.036950498819351196,
-0.202487975358963,
-0.2814849317073822,
0.0957159623503685,
-0.03724919259548187,
0.2596089243888855,
0.1235661432147026,
-0.24546079337596893,
-0.1313229203224182,
0.14437681436538696,
0.11242184787988663,
-0.15733598172664642,
0.43666890263557434,
-0.09600357711315155,
0.3710566461086273,
-0.1532973349094391,
-0.016251709312200546,
0.15966327488422394,
0.40405261516571045,
-0.1570301353931427,
0.09745906293392181,
0.1819269359111786,
-0.155355766415596,
-0.3978112041950226,
0.47167375683784485,
-0.22384954988956451,
0.24041295051574707,
-0.17729762196540833,
-0.028088975697755814,
-0.16456621885299683,
-0.48523977398872375,
0.06231385096907616,
0.0018639639019966125,
-0.21867451071739197,
0.6084089279174805,
-0.18810467422008514,
-0.28264716267585754,
0.11549528688192368,
-0.08766438066959381,
0.23796971142292023,
-0.018173186108469963,
-0.2608189582824707,
0.27928096055984497,
-0.4468386769294739,
0.08908670395612717,
0.19045285880565643,
0.4939354658126831,
0.01665015146136284,
-0.13785521686077118,
0.17695938050746918,
-0.3869726359844208,
0.5599548816680908,
-0.2698785364627838,
-0.29062068462371826,
-0.12241990119218826,
0.026145458221435547,
0.13088782131671906,
-0.16512537002563477,
-0.3972257971763611,
0.13025882840156555,
0.141351580619812,
0.04421089217066765,
-0.22433051466941833,
0.35101065039634705,
0.13467854261398315,
-0.10867860168218613,
-0.10410021245479584,
0.23173342645168304,
-0.11132774502038956,
0.006894497200846672,
-0.011226687580347061,
-0.23163682222366333
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | The COCO format is not supported out of the box in the HF's hub - you'd need to reformat it to an [ImageFolder](https://huggingface.co/docs/datasets/image_dataset#imagefolder) with metadata format, or write a [loading script](https://huggingface.co/docs/datasets/image_dataset#loading-script) | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 31 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
The COCO format is not supported out of the box in the HF's hub - you'd need to reformat it to an [ImageFolder](https://huggingface.co/docs/datasets/image_dataset#imagefolder) with metadata format, or write a [loading script](https://huggingface.co/docs/datasets/image_dataset#loading-script) | [
-0.27545300126075745,
-0.5610966682434082,
-0.06040312722325325,
0.11809239536523819,
0.09837132692337036,
0.11320091038942337,
0.1017959713935852,
0.20642104744911194,
-0.022832246497273445,
0.2153579592704773,
-0.6720101833343506,
-0.008999455720186234,
-0.22723381221294403,
0.3864443004131317,
0.12214864790439606,
-0.32693976163864136,
0.08240780234336853,
0.08483672887086868,
-0.38247743248939514,
-0.08032547682523727,
0.05291832983493805,
0.1820279061794281,
0.21615161001682281,
0.06687343865633011,
-0.4545596241950989,
-0.09609506279230118,
-0.5213293433189392,
0.07406140118837357,
-0.08303219079971313,
-0.2882271409034729,
0.04681409150362015,
0.38198888301849365,
0.28755757212638855,
0.36862441897392273,
-0.00010299227142240852,
0.024314910173416138,
-0.052687473595142365,
-0.11280477046966553,
-0.08361455798149109,
-0.10077361762523651,
0.009961653500795364,
-0.09220484644174576,
-0.04111127555370331,
-0.07162895053625107,
-0.2571089267730713,
0.08395445346832275,
0.15817099809646606,
0.14353100955486298,
0.428638756275177,
0.03955953195691109,
0.2908805012702942,
0.3338501453399658,
0.09929442405700684,
-0.18635956943035126,
0.09034530073404312,
0.5346082448959351,
-0.17946313321590424,
0.23455290496349335,
0.12647205591201782,
-0.04857493191957474,
-0.26404571533203125,
0.482709676027298,
0.16887569427490234,
0.1355278342962265,
0.543983519077301,
0.1117050051689148,
-0.1399466097354889,
-0.2456004023551941,
-0.044301725924015045,
0.4580274224281311,
0.03610241413116455,
-0.2048417627811432,
-0.3079504072666168,
-0.34140822291374207,
-0.13219425082206726,
-0.2473420649766922,
-0.0895160660147667,
0.2870802879333496,
-0.1115579754114151,
0.1520184576511383,
-0.09107677638530731,
-0.17490890622138977,
-0.21563652157783508,
-0.05282711237668991,
0.06539829075336456,
0.06073833256959915,
-0.13776858150959015,
-0.1409713327884674,
0.12664498388767242,
-0.004256550222635269,
-0.2267659455537796,
-0.04975365102291107,
0.01355007290840149,
0.0054808855056762695,
-0.015196379274129868,
-0.15469345450401306,
-0.004280202090740204,
0.21587654948234558,
0.45980221033096313,
-0.06543080508708954,
-0.15434236824512482,
0.10806070268154144,
-0.3299732208251953,
0.1669514924287796,
0.026887187734246254,
-0.0027534430846571922,
-0.23049694299697876,
0.04237324371933937,
0.16839465498924255,
0.34255582094192505,
0.05816565826535225,
-0.19116604328155518,
-0.023070447146892548,
0.33750712871551514,
-0.3187234699726105,
-0.29199275374412537,
-0.19300416111946106,
-0.07430677860975266,
-0.18853701651096344,
-0.15765652060508728,
0.16224941611289978,
0.16870130598545074,
0.05597268417477608,
0.5425038933753967,
0.04345334693789482,
0.12192603200674057,
0.05565463751554489,
0.0986965075135231,
-0.09095458686351776,
-0.026516873389482498,
-0.22908394038677216,
0.09862487018108368,
-0.12249922752380371,
0.24632678925991058,
0.07954864203929901,
-0.18758656084537506,
0.04618848115205765,
-0.306162565946579,
0.4139353036880493,
0.22933095693588257,
-0.168111652135849,
-0.21248213946819305,
0.3346380293369293,
0.14420916140079498,
-0.14140772819519043,
-0.28634557127952576,
0.18967390060424805,
-0.09225596487522125,
-0.21930205821990967,
-0.3646129071712494,
-0.23597267270088196,
-0.03648646920919418,
-0.27620062232017517,
0.16797831654548645,
-0.09404826909303665,
-0.08869259059429169,
-0.21271300315856934,
0.48630714416503906,
-0.4173021614551544,
0.19562749564647675,
0.024530962109565735,
0.2480335384607315,
-0.1893540769815445,
-0.04609091952443123,
0.19186730682849884,
0.4838855266571045,
0.1815105378627777,
-0.29552704095840454,
0.13593700528144836,
-0.10945376753807068,
-0.2114114761352539,
0.09370793402194977,
0.05035274103283882,
0.07568008452653885,
-0.2738381028175354,
0.09647683799266815,
-0.2734038829803467,
-0.433612197637558,
-0.0684892013669014,
0.1534293293952942,
0.048516325652599335,
0.10633207112550735,
-0.042998604476451874,
0.28447699546813965,
0.07910764962434769,
-0.0678882971405983,
-0.23359155654907227,
0.26859956979751587,
-0.1000320315361023,
0.16374599933624268,
0.10702800750732422,
-0.3805261254310608,
-0.19076400995254517,
0.2926928699016571,
0.2507103979587555,
0.07661841809749603,
-0.04724147170782089,
0.06271257251501083,
0.24276480078697205,
-0.18813998997211456,
0.09114113450050354,
0.0717480480670929,
0.46465352177619934,
0.4303286671638489,
-0.052266597747802734,
-0.18985098600387573,
-0.22047659754753113,
0.013735722750425339,
-0.018898475915193558,
0.21978314220905304,
-0.18658272922039032,
-0.4238048791885376,
0.026618655771017075,
0.06620585918426514,
-0.040930379182100296,
-0.2853514552116394,
0.2576090693473816,
0.1408553123474121,
0.09069249033927917,
-0.047030314803123474,
-0.10468196123838425,
0.692070722579956,
0.18740995228290558,
0.35131165385246277,
0.08463548123836517,
0.425870805978775,
-0.04646323621273041,
0.1821206957101822,
0.2369440495967865,
0.16432708501815796,
-0.06568288058042526,
-0.09419721364974976,
0.10360866039991379,
0.4564686715602875,
-0.1255420297384262,
0.13282553851604462,
0.14734363555908203,
0.29656073451042175,
0.3542449474334717,
-0.43929874897003174,
0.037885453552007675,
-0.16375304758548737,
0.10824785381555557,
0.1041284129023552,
-0.38844823837280273,
0.25388050079345703,
0.005874224007129669,
0.06207523122429848,
0.2327537089586258,
0.03016374073922634,
0.11809802055358887,
-0.02282649464905262,
-0.053635843098163605,
-0.2842012047767639,
-0.09636051952838898,
-0.19778621196746826,
0.21691440045833588,
-0.043804772198200226,
-0.32064831256866455,
-0.014586061239242554,
0.2852785885334015,
0.1650272011756897,
0.22156015038490295,
0.3866257071495056,
-0.3437579274177551,
0.12904727458953857,
0.21287943422794342,
-0.2979523837566376,
-0.10664427280426025,
0.3586284816265106,
-0.17583493888378143,
0.14505615830421448,
-0.1211337223649025,
0.11149242520332336,
0.022257782518863678,
0.13047313690185547,
0.09552633762359619,
0.023063290864229202,
0.28783172369003296,
-0.03872565180063248,
-0.49587684869766235,
-0.4890505075454712,
-0.31997451186180115,
-0.16505390405654907,
-0.039218876510858536,
0.15747421979904175,
-0.05044044926762581,
-0.3139011263847351,
0.03073141723871231,
-0.01437882985919714,
-0.17799225449562073,
-0.08049000799655914,
0.18095198273658752,
0.06140482425689697,
0.05014611408114433,
-0.02419261820614338,
-0.19767804443836212,
0.4179494082927704,
-0.16801238059997559,
0.07803187519311905,
-0.14068707823753357,
0.05640336498618126,
-0.016029544174671173,
0.1758260875940323,
0.08511415123939514,
-0.03565682843327522,
0.4462375044822693,
-0.12613952159881592,
0.27692317962646484,
-0.0710379108786583,
-0.5549477338790894,
0.3769954741001129,
-0.14500947296619415,
0.03188198804855347,
0.19254368543624878,
-0.07843902707099915,
-0.1966368407011032,
-0.2596549093723297,
0.20799946784973145,
-0.22994834184646606,
-0.143426313996315,
-0.05646223947405815,
-0.21279413998126984,
0.01559849176555872,
-0.1797119528055191,
0.11706513911485672,
-0.27066096663475037,
-0.4100024402141571,
0.3258339762687683,
0.2589994966983795,
0.016950998455286026,
0.3675698935985565,
0.03008536621928215,
0.16752558946609497,
-0.23903070390224457,
0.07687611877918243,
-0.13756227493286133,
-0.3063097298145294,
0.12883689999580383,
-0.40248623490333557,
-0.22303877770900726,
-0.26976078748703003,
-0.3716026544570923,
0.11318433284759521,
-0.16915886104106903,
-0.4908651113510132,
-0.4410132169723511,
-0.2469475120306015,
0.14831723272800446,
0.02989884652197361,
0.03972605615854263,
0.15439476072788239,
0.011424552649259567,
-0.1268610656261444,
-0.09919728338718414,
-0.03748522326350212,
0.09719058126211166,
0.04427669197320938,
-0.034935735166072845,
-0.19001996517181396,
0.15458258986473083,
0.27182844281196594,
0.23920904099941254,
0.06724576652050018,
-0.18230748176574707,
0.5883210897445679,
-0.035388246178627014,
0.477614164352417,
-0.21896198391914368,
-0.08087232708930969,
0.29412195086479187,
-0.09974488615989685,
0.09213417768478394,
0.29752159118652344,
0.18355679512023926,
0.06574708223342896,
-0.13615447282791138,
-0.06335441768169403,
-0.28789982199668884,
-0.11760225892066956,
-0.017549069598317146,
0.36544960737228394,
0.11267757415771484,
-0.22497785091400146,
-0.15995973348617554,
-0.18935076892375946,
-0.28677916526794434,
0.42088842391967773,
0.4545949101448059,
0.14934830367565155,
0.06742691993713379,
-0.24500910937786102,
-0.1739792376756668,
-0.3345588743686676,
0.1565721035003662,
0.07651254534721375,
-0.1605195254087448,
-0.22908146679401398,
-0.12283732742071152,
-0.06284511089324951,
-0.16186204552650452,
0.4010768532752991,
0.12672360241413116,
-0.11936341226100922,
-0.021614566445350647,
-0.44053858518600464,
-0.12391501665115356,
0.03733530268073082,
-0.17674537003040314,
-0.2093406766653061,
-0.1633499711751938,
0.6222140192985535,
-0.4064998924732208,
-0.1448581963777542,
0.22334633767604828,
-0.15273509919643402,
-0.07467853277921677,
0.009668209590017796,
-0.06688845902681351,
-0.07998226583003998,
-0.3862735629081726,
0.008670948445796967,
-0.002923468127846718,
0.09900978952646255,
0.21404337882995605,
-0.1086471676826477,
0.02374587021768093,
-0.10083664208650589,
0.20935364067554474,
0.33869779109954834,
0.10640767216682434,
0.2613963484764099,
0.07576672732830048,
0.17898166179656982,
0.1966145932674408,
0.29690486192703247,
0.49882635474205017,
-0.05700242891907692,
-0.22846293449401855,
-0.10231254249811172,
0.1459026336669922,
0.10448738932609558,
0.18378213047981262,
0.23812979459762573,
0.15839707851409912,
0.08022228628396988,
0.3743002414703369,
-0.7321897149085999,
0.35797011852264404,
0.07543280720710754,
-0.029360637068748474,
-0.30601292848587036,
0.12180528044700623,
0.4009203612804413,
-0.04216906428337097,
0.009412206709384918,
0.06967952847480774,
0.39557594060897827,
-0.22283346951007843,
0.3775745630264282,
0.3232806324958801,
0.8370357751846313,
-0.28345584869384766,
0.32327961921691895,
0.14725197851657867,
-0.2905551791191101,
0.3073461949825287,
-0.3958303928375244,
0.04527822136878967,
-0.14461834728717804,
-0.2757217586040497,
-0.08399127423763275,
0.05384278669953346,
0.0577988475561142,
-0.01698373258113861,
-0.29922664165496826,
-0.053276799619197845,
0.11886516213417053,
0.36435404419898987,
-0.2000700682401657,
0.25135985016822815,
-0.26568639278411865,
-0.5833511352539062,
-0.12106159329414368,
0.29333314299583435,
-0.12263050675392151,
0.25201889872550964,
-0.021904412657022476,
-0.1466161161661148,
-0.11659300327301025,
0.039053961634635925,
-0.1508411467075348,
-0.08366003632545471,
-0.05886975675821304,
0.036903295665979385,
0.19180501997470856,
0.034837931394577026,
0.006793105974793434,
0.03654104471206665,
0.3681430220603943,
0.07186250388622284,
-0.24897557497024536,
0.2534187436103821,
-0.27912506461143494,
-0.07069668173789978,
-0.11157934367656708,
0.0042565446346998215,
0.31674179434776306,
-0.000005081295967102051,
0.06115192919969559,
-0.10531280189752579,
0.3659226894378662,
-0.12555497884750366,
-0.10234076529741287,
-0.23027466237545013,
0.07957148551940918,
0.08786757290363312,
0.1940842717885971,
0.0867164358496666,
-0.1817871481180191,
-0.1579093486070633,
0.18188749253749847,
0.001938067376613617,
0.009046781808137894,
-0.08831723779439926,
0.383292555809021,
0.039268217980861664,
-0.15987630188465118,
0.23497915267944336,
-0.010683346539735794,
0.0238206647336483,
0.09300479292869568,
0.24202854931354523,
-0.21495284140110016,
-0.22659945487976074,
0.03988052159547806,
0.3128909468650818,
-0.36415883898735046,
0.09208814799785614,
0.025592859834432602,
-0.32092922925949097,
-0.19401443004608154,
0.2646379768848419,
0.21475747227668762,
-0.29652920365333557,
0.02422439679503441,
-0.11353924870491028,
-0.5488599538803101,
0.4306644797325134,
-0.3643443286418915,
0.37055081129074097,
-0.032415300607681274,
0.4065529704093933,
0.05866424739360809,
0.3765759766101837,
-0.44632354378700256,
-0.15636897087097168,
-0.28739506006240845,
-0.11325433850288391,
-0.13679538667201996,
-0.03832010179758072,
0.21834850311279297,
-0.013181231915950775,
0.1829632818698883,
0.3088141083717346,
-0.2664738893508911,
-0.22648638486862183,
-0.32534515857696533,
0.09258174151182175,
0.05354737117886543,
0.001081665512174368,
0.08743240684270859,
0.17676861584186554,
-0.12628863751888275,
-0.31834396719932556,
0.32797613739967346,
0.13527151942253113,
-0.002734839916229248,
0.18260517716407776,
0.08448783308267593,
-0.30553433299064636,
0.24194134771823883,
-0.2180006504058838,
0.30147823691368103,
0.22918911278247833,
0.21660666167736053,
-0.20519156754016876,
-0.2603408098220825,
-0.18296238780021667,
0.1685565561056137,
0.46861058473587036,
0.22059088945388794,
-0.19514843821525574,
0.31435614824295044,
0.10954967141151428,
0.03603969141840935,
0.20668579638004303,
0.4195656478404999,
-0.41007936000823975,
0.021151358261704445,
0.2143644541501999,
0.28735440969467163,
0.2676382064819336,
-0.35084232687950134,
-0.15300843119621277,
0.012420260347425938,
-0.33060601353645325,
0.31816691160202026,
0.28394994139671326,
0.2243340015411377,
0.3595220446586609,
-0.1569099873304367,
0.08152016252279282,
0.23813220858573914,
0.06186239421367645,
-0.08849835395812988,
0.12732280790805817,
0.02949422225356102,
0.1286558210849762,
0.3341020345687866,
0.07285387814044952,
0.3608720004558563,
0.245121568441391,
-0.12300585955381393,
0.10544180124998093,
-0.10576348751783371,
0.25202903151512146,
0.7175318002700806,
-0.16301043331623077,
-0.30262744426727295,
-0.05561678111553192,
0.2808522582054138,
0.29533207416534424,
-0.2802005708217621,
0.1683771014213562,
0.03864385932683945,
-0.2629522681236267,
-0.2629508078098297,
0.13505730032920837,
0.022837281227111816,
-0.10314631462097168,
-0.029025759547948837,
-0.016809575259685516,
-0.35906878113746643,
0.04967701807618141,
0.15959273278713226,
-0.5460277199745178,
0.29120612144470215,
-0.045990005135536194,
0.16072538495063782,
0.01284948829561472,
-0.15131980180740356,
0.15645185112953186,
0.42843562364578247,
-0.1084090918302536,
0.0413704439997673,
0.2743886709213257,
-0.07600994408130646,
0.2860199213027954,
0.35611864924430847,
0.1869952231645584,
-0.1898922622203827,
0.02412012591958046,
0.16165272891521454,
-0.2277754694223404,
-0.16354762017726898,
-0.10124347358942032,
0.037168361246585846,
0.08351915329694748,
0.10526077449321747,
0.3181743323802948,
0.19053414463996887,
-0.18452642858028412,
-0.1389041543006897,
-0.25964125990867615,
0.18077519536018372,
-0.14220789074897766,
0.018373236060142517,
0.021420568227767944,
0.07386860996484756,
-0.18307814002037048,
-0.13643142580986023,
-0.522819459438324,
-0.04898683726787567,
0.13996616005897522,
-0.3552938401699066,
0.00920596718788147,
0.007905845530331135,
0.10289432853460312,
0.02936389297246933,
0.25209811329841614,
0.34802335500717163,
0.07740302383899689,
-0.04116472229361534,
-0.2547459006309509,
-0.3082347512245178,
0.001276463270187378,
-0.10815073549747467,
-0.27721571922302246,
0.014956878498196602,
0.04907572269439697,
0.21520590782165527,
0.1235480085015297,
0.001675628125667572,
-0.21564120054244995,
0.27179956436157227,
0.03410212695598602,
-0.22462423145771027,
0.25543564558029175,
-0.2939603924751282,
0.2498769760131836,
0.11453783512115479,
-0.008867297321557999,
0.19950047135353088,
0.1720276176929474,
0.06092279404401779,
-0.01367306336760521,
0.22094523906707764,
-0.22818630933761597,
-0.3606252372264862,
0.37280550599098206,
-0.07960212975740433,
0.07432583719491959,
-0.3968904912471771,
-0.16744354367256165,
-0.019543949514627457,
-0.31072601675987244,
-0.2822767496109009,
-0.1652424931526184,
-0.06407691538333893,
0.6763160228729248,
-0.07950738072395325,
-0.38026005029678345,
0.007875797338783741,
0.17297862470149994,
0.2037820816040039,
-0.004197891801595688,
-0.23674927651882172,
0.26693063974380493,
-0.16689342260360718,
-0.17887498438358307,
0.14338356256484985,
0.5734120011329651,
0.07980022579431534,
-0.25760823488235474,
0.06340914964675903,
-0.5615124702453613,
0.6196259260177612,
-0.2722514867782593,
-0.21075093746185303,
-0.053568124771118164,
-0.06199358403682709,
0.2648901641368866,
-0.10682158917188644,
-0.41601207852363586,
0.17283427715301514,
0.09300872683525085,
0.16224896907806396,
-0.23314572870731354,
0.3088352382183075,
0.12507617473602295,
-0.11717654764652252,
-0.11494895815849304,
0.0294676311314106,
-0.013424709439277649,
-0.06313923746347427,
-0.02090192399919033,
-0.19361533224582672
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > The COCO format is not supported out of the box in the HF's hub - you'd need to reformat it to an [ImageFolder](https://huggingface.co/docs/datasets/image_dataset#imagefolder) with metadata format, or write a [loading script](https://huggingface.co/docs/datasets/image_dataset#loading-script)
Hi @lhoestq , thank you for your quick reply.
I've correctly created a metadata.jsonl file for a dataset with instance segmentation annotations [here](https://huggingface.co/datasets/lombardata/data_2017)
but do not understand how I can integrate panoptic annotations with the metadata format of ImageFolder datasets. The "problem" with panoptic annotations is that we have a folder with images, a json file with annotations and another folder with png annotations.
I checked between all the datasets already published on HuggingFace and, the only one who has uploaded a correct panoptic dataset is @NielsRogge [here](https://huggingface.co/datasets/nielsr/coco-panoptic-val2017) and [here](https://huggingface.co/datasets/nielsr/ade20k-panoptic-demo). Indeed he accomplished to have three fields :
1.image (image)
2.label (image)
3.segments_info (list)
but I not find the corresponding code that allows to upload a panoptic dataset from this 3 sources.
Can you please share an example code?
Thanks ! | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 163 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> The COCO format is not supported out of the box in the HF's hub - you'd need to reformat it to an [ImageFolder](https://huggingface.co/docs/datasets/image_dataset#imagefolder) with metadata format, or write a [loading script](https://huggingface.co/docs/datasets/image_dataset#loading-script)
Hi @lhoestq , thank you for your quick reply.
I've correctly created a metadata.jsonl file for a dataset with instance segmentation annotations [here](https://huggingface.co/datasets/lombardata/data_2017)
but do not understand how I can integrate panoptic annotations with the metadata format of ImageFolder datasets. The "problem" with panoptic annotations is that we have a folder with images, a json file with annotations and another folder with png annotations.
I checked between all the datasets already published on HuggingFace and, the only one who has uploaded a correct panoptic dataset is @NielsRogge [here](https://huggingface.co/datasets/nielsr/coco-panoptic-val2017) and [here](https://huggingface.co/datasets/nielsr/ade20k-panoptic-demo). Indeed he accomplished to have three fields :
1.image (image)
2.label (image)
3.segments_info (list)
but I not find the corresponding code that allows to upload a panoptic dataset from this 3 sources.
Can you please share an example code?
Thanks ! | [
0.0031581632792949677,
-0.4333896338939667,
-0.008030371740460396,
0.34826141595840454,
0.14292457699775696,
0.09797336906194687,
-0.1824265867471695,
-0.12278904020786285,
-0.23890957236289978,
-0.0353531688451767,
-0.6616321802139282,
0.2710564136505127,
-0.2954808175563812,
0.15255624055862427,
-0.10818656533956528,
-0.41452717781066895,
0.13820968568325043,
0.07553145289421082,
-0.24549555778503418,
0.057953640818595886,
0.09190504252910614,
0.1298178881406784,
0.17335666716098785,
-0.007654853165149689,
-0.3089240491390228,
-0.2514231204986572,
-0.36235105991363525,
0.22045278549194336,
-0.2974242568016052,
-0.33198755979537964,
0.17215803265571594,
0.23429857194423676,
0.33911678194999695,
0.5870281457901001,
-0.00011798648483818397,
0.12326264381408691,
0.20692387223243713,
-0.12933559715747833,
-0.09984645247459412,
-0.1756538599729538,
-0.07312687486410141,
-0.03726377338171005,
0.07774025946855545,
0.07608941942453384,
-0.0799323171377182,
-0.2068096250295639,
-0.025965934619307518,
0.02258335053920746,
0.39217668771743774,
-0.06936490535736084,
0.13977181911468506,
0.15843360126018524,
0.2282724827528,
0.1093752458691597,
-0.0005564391613006592,
0.5992113947868347,
-0.17201071977615356,
0.4284852147102356,
0.3017027974128723,
-0.1022876724600792,
-0.10793817788362503,
0.4183560013771057,
0.1557607650756836,
-0.02507689595222473,
0.656947672367096,
0.2155659943819046,
-0.28394845128059387,
-0.3733678460121155,
-0.14998912811279297,
0.10284712165594101,
0.47985708713531494,
-0.21490484476089478,
-0.4581921696662903,
-0.3940449059009552,
-0.1512461155653,
-0.2999068796634674,
-0.07970122247934341,
0.28140780329704285,
0.03634847328066826,
0.021263349801301956,
-0.0841895043849945,
-0.22786524891853333,
-0.4029056429862976,
0.17363432049751282,
0.20768755674362183,
0.3626922369003296,
-0.1332281529903412,
-0.06927112489938736,
0.13644272089004517,
-0.24636493623256683,
0.04525381326675415,
-0.31341564655303955,
0.09218554198741913,
0.23174098134040833,
0.2452370971441269,
-0.0260059405118227,
0.0468464195728302,
0.32377031445503235,
0.28524479269981384,
0.03409121558070183,
-0.20014505088329315,
-0.10012368112802505,
-0.6642358303070068,
0.07172263413667679,
0.12548254430294037,
0.045148640871047974,
-0.10273631662130356,
0.43959295749664307,
0.10744522511959076,
0.31976622343063354,
0.3172578811645508,
-0.18446385860443115,
-0.06457719951868057,
0.34186282753944397,
-0.16161729395389557,
-0.2874171733856201,
0.053387679159641266,
-0.26440057158470154,
-0.03534344956278801,
-0.1195375993847847,
0.0605185329914093,
0.007195967715233564,
0.14504820108413696,
0.2612471282482147,
0.09317934513092041,
0.1658293604850769,
-0.15059596300125122,
0.2966964840888977,
-0.0028007421642541885,
0.3687416613101959,
-0.16099195182323456,
0.3229615092277527,
-0.20784218609333038,
0.2534300684928894,
-0.09974212199449539,
-0.15748228132724762,
0.10243064910173416,
-0.029653184115886688,
0.38493984937667847,
0.12662388384342194,
-0.229096919298172,
-0.2833646833896637,
0.15669721364974976,
0.06428731232881546,
-0.14761914312839508,
-0.07686762511730194,
0.13662391901016235,
0.1379891186952591,
-0.23323678970336914,
-0.2458837926387787,
-0.3778838515281677,
-0.19387146830558777,
-0.17588035762310028,
0.024706248193979263,
-0.17733055353164673,
-0.09187602996826172,
-0.38877418637275696,
0.1830594390630722,
-0.1879519522190094,
0.09024924039840698,
-0.07345239073038101,
0.062211424112319946,
-0.09801078587770462,
-0.13262543082237244,
0.054300062358379364,
0.3605571985244751,
-0.05028627812862396,
-0.15283000469207764,
0.18130044639110565,
-0.0995980054140091,
-0.03880289942026138,
0.24676868319511414,
-0.07590413093566895,
0.10668259859085083,
-0.31599700450897217,
0.1362399458885193,
-0.42504435777664185,
-0.6772186160087585,
0.06846827268600464,
0.11941423267126083,
0.1682368665933609,
0.3845818340778351,
0.07008010894060135,
0.12616205215454102,
-0.0547189936041832,
-0.1579316407442093,
-0.019402064383029938,
0.24596942961215973,
-0.10265780985355377,
0.059936538338661194,
0.13550744950771332,
-0.2427440732717514,
-0.32846277952194214,
0.16334281861782074,
-0.008788928389549255,
-0.056497491896152496,
-0.03488094359636307,
0.0006308630108833313,
0.07225901633501053,
-0.3696197271347046,
0.1422457993030548,
0.26414746046066284,
0.48574861884117126,
0.5362796783447266,
-0.12060800939798355,
0.0655287504196167,
-0.6556174755096436,
0.13510438799858093,
0.22581830620765686,
0.2515281140804291,
-0.6128982901573181,
-0.21151526272296906,
-0.15357014536857605,
0.08221293240785599,
-0.24963195621967316,
-0.21970492601394653,
0.08610253036022186,
0.19566990435123444,
0.3064197301864624,
-0.1713237464427948,
-0.11511631309986115,
0.563401997089386,
0.15145675837993622,
0.27061375975608826,
-0.1484251320362091,
0.5876699090003967,
0.010280599817633629,
-0.0008555985987186432,
0.2674438953399658,
0.35017141699790955,
-0.09259166568517685,
-0.19673557579517365,
0.1579945683479309,
0.4901635944843292,
-0.05391497537493706,
0.256672739982605,
0.19182783365249634,
0.49166905879974365,
0.2007260024547577,
-0.6511899828910828,
0.12293943017721176,
-0.3031322658061981,
0.15515731275081635,
-0.011175677180290222,
-0.5784996151924133,
0.32834872603416443,
-0.14188618957996368,
0.33695733547210693,
0.1425846964120865,
-0.16794969141483307,
0.20008066296577454,
0.08674517273902893,
-0.27091869711875916,
-0.40573614835739136,
-0.25466930866241455,
-0.2775837481021881,
0.45955386757850647,
-0.10880295932292938,
-0.3028000593185425,
-0.10511044412851334,
-0.12753012776374817,
0.040479470044374466,
0.009042218327522278,
0.18928053975105286,
-0.2508026659488678,
0.17371591925621033,
0.26112449169158936,
-0.24398450553417206,
0.20745883882045746,
0.21385204792022705,
-0.09229700267314911,
0.1554739624261856,
-0.11999710649251938,
0.13286657631397247,
-0.05097951740026474,
0.29354363679885864,
0.19234581291675568,
-0.011075340211391449,
0.26370474696159363,
0.0869230180978775,
-0.3543989360332489,
-0.4839979410171509,
-0.30391883850097656,
0.008921549655497074,
-0.14375071227550507,
0.1325509250164032,
-0.09751671552658081,
-0.5566905736923218,
-0.09392529726028442,
-0.3209434747695923,
-0.3068290948867798,
-0.20278075337409973,
-0.18354018032550812,
0.15885430574417114,
0.05707734450697899,
-0.052473679184913635,
-0.4633304178714752,
0.18488207459449768,
-0.13732796907424927,
-0.10823286324739456,
-0.09955400973558426,
0.024020688608288765,
0.0851300060749054,
-0.00046461448073387146,
0.3063834607601166,
-0.11070176213979721,
0.3880465626716614,
-0.006075560115277767,
0.22707732021808624,
-0.1736346185207367,
-0.5361950397491455,
0.5466883182525635,
-0.24368204176425934,
-0.06742827594280243,
0.19672754406929016,
-0.0570501834154129,
0.19396580755710602,
-0.36330801248550415,
0.24205945432186127,
0.033428266644477844,
-0.23022589087486267,
-0.11840172111988068,
-0.36121657490730286,
-0.09542541205883026,
-0.15400516986846924,
0.1429784893989563,
-0.34013810753822327,
-0.2250400334596634,
0.2181127518415451,
0.3096146881580353,
-0.021908998489379883,
0.5329633951187134,
0.026462841778993607,
0.06486710906028748,
-0.2954130172729492,
-0.09440627694129944,
-0.009572876617312431,
-0.26801666617393494,
0.4014029800891876,
-0.17022442817687988,
-0.04734216257929802,
-0.05252240225672722,
-0.32149553298950195,
0.18210263550281525,
-0.21113185584545135,
-0.33127695322036743,
-0.6601162552833557,
-0.3598209023475647,
0.1802903115749359,
-0.020823337137699127,
0.05302285775542259,
0.11824953556060791,
-0.019683722406625748,
0.07196049392223358,
-0.133091539144516,
-0.23521092534065247,
0.10810200870037079,
0.018954694271087646,
0.1366986185312271,
-0.0852595642209053,
0.2765633165836334,
0.22459810972213745,
0.31800734996795654,
0.20169112086296082,
-0.08627800643444061,
0.385334312915802,
0.01087167114019394,
0.46269503235816956,
-0.10418682545423508,
0.005788115784525871,
0.11792736500501633,
-0.04909057915210724,
0.09897688776254654,
0.3152109980583191,
0.3788251280784607,
0.01036291103810072,
-0.021494830027222633,
0.10698060691356659,
-0.3951486349105835,
-0.002454034984111786,
0.05869042128324509,
0.1093645989894867,
0.14329475164413452,
-0.3122701942920685,
-0.3735226094722748,
-0.2968895733356476,
-0.2131364345550537,
0.20303615927696228,
0.42428529262542725,
0.2447311282157898,
0.22297385334968567,
-0.5324046015739441,
0.06840910017490387,
-0.3215242624282837,
0.07771318405866623,
0.10056129097938538,
0.08520439267158508,
-0.06339197605848312,
0.08842431753873825,
0.042026106268167496,
-0.07119645178318024,
0.12040410935878754,
0.07864006608724594,
-0.029384292662143707,
0.07548262178897858,
-0.182998925447464,
-0.08142485469579697,
-0.10116845369338989,
-0.25205498933792114,
0.1510210782289505,
-0.04779710993170738,
1.0475000143051147,
-0.5285570025444031,
-0.10506131500005722,
0.07040242850780487,
-0.21044370532035828,
0.05894741788506508,
-0.014516951516270638,
-0.007161501795053482,
-0.1626792550086975,
-0.2158592939376831,
0.00390007346868515,
0.3056694269180298,
0.19641533493995667,
0.23474936187267303,
0.11218376457691193,
0.2503904104232788,
-0.17674842476844788,
0.20457473397254944,
0.2088669240474701,
0.18582379817962646,
0.30514344573020935,
0.02491188794374466,
0.21215398609638214,
0.14481626451015472,
0.6204085946083069,
0.6989566087722778,
-0.03642651066184044,
-0.466072142124176,
-0.07429912686347961,
0.04735766351222992,
0.2632576823234558,
-0.002012982964515686,
0.2692180871963501,
0.03250354155898094,
-0.1428382843732834,
0.03510107845067978,
-0.4648396372795105,
0.2620294690132141,
-0.04688236117362976,
0.014078845269978046,
-0.34463220834732056,
-0.0017824750393629074,
0.5000625252723694,
0.25783395767211914,
-0.029693059623241425,
-0.03670063614845276,
0.307434618473053,
-0.3212195038795471,
0.2663949131965637,
0.22818735241889954,
0.6775428056716919,
-0.12695063650608063,
0.24993275105953217,
0.31940728425979614,
-0.28695231676101685,
0.36164411902427673,
-0.055418066680431366,
-0.1646350771188736,
-0.13330884277820587,
0.005898051895201206,
-0.01212509535253048,
-0.045784637331962585,
0.08901268988847733,
-0.05029243230819702,
-0.17406466603279114,
0.01548297330737114,
-0.06093495339155197,
0.3293413817882538,
-0.0678231418132782,
0.18875350058078766,
-0.024044131860136986,
-0.5598901510238647,
-0.20276634395122528,
0.14506612718105316,
-0.014132775366306305,
0.18794381618499756,
-0.13842254877090454,
-0.19977056980133057,
-0.37474218010902405,
0.023979879915714264,
-0.12211259454488754,
0.11483361572027206,
0.030778151005506516,
0.03389551118016243,
0.2717796564102173,
-0.06297697871923447,
0.05744321271777153,
0.1873837262392044,
0.2486429661512375,
-0.3119065761566162,
-0.2162773758172989,
0.14737820625305176,
-0.19650301337242126,
-0.05462474003434181,
-0.19327479600906372,
-0.14372104406356812,
0.23988009989261627,
0.02814675122499466,
0.26410654187202454,
-0.1259523332118988,
0.07895973324775696,
-0.24905617535114288,
-0.322867214679718,
-0.15466174483299255,
0.1969437152147293,
0.09778335690498352,
-0.06582315266132355,
0.03889765590429306,
0.016110792756080627,
0.01126759871840477,
0.020921507850289345,
0.21551135182380676,
0.10037811845541,
-0.09021947532892227,
0.17018447816371918,
-0.10241769254207611,
-0.07725808024406433,
0.12304198741912842,
-0.032624825835227966,
-0.2495652288198471,
0.2420288473367691,
0.2194119244813919,
-0.17052456736564636,
0.04337705671787262,
0.03652935475111008,
0.1423875391483307,
-0.2645053565502167,
-0.1478244960308075,
0.22394905984401703,
-0.14657296240329742,
-0.12288417667150497,
0.1441674828529358,
0.3062443733215332,
-0.256194531917572,
0.04358811303973198,
-0.27045220136642456,
-0.48980775475502014,
0.4384191632270813,
-0.3979858458042145,
0.30416664481163025,
-0.25764381885528564,
0.33034807443618774,
0.017025155946612358,
0.36294302344322205,
-0.2723081707954407,
-0.15032890439033508,
-0.06872957944869995,
0.07900763303041458,
0.39777520298957825,
-0.08998911827802658,
0.07908232510089874,
-0.11207273602485657,
-0.011167977005243301,
0.06562034785747528,
-0.24217894673347473,
0.017727773636579514,
-0.22509966790676117,
0.14626841247081757,
0.3019168972969055,
0.020072009414434433,
-0.03306027874350548,
0.06740172207355499,
-0.020765159279108047,
-0.2434033453464508,
0.1789446622133255,
0.09659018367528915,
-0.08447222411632538,
-0.015789158642292023,
0.1848631650209427,
0.040236696600914,
0.14050789177417755,
-0.020387284457683563,
0.17633923888206482,
0.18858686089515686,
0.3415679931640625,
-0.08466021716594696,
-0.3415181338787079,
-0.21976137161254883,
0.29285386204719543,
0.31667861342430115,
0.2532331645488739,
0.2008315920829773,
0.16751068830490112,
0.03153787553310394,
0.2503695487976074,
0.11048194020986557,
0.3365456759929657,
-0.24802544713020325,
0.027994131669402122,
0.12985889613628387,
0.2487030327320099,
0.06925348192453384,
0.007287424057722092,
-0.19736073911190033,
0.06072390452027321,
-0.17250603437423706,
0.07807879149913788,
0.3197072744369507,
0.3305327892303467,
0.5154383182525635,
-0.2269614189863205,
0.056394025683403015,
0.43403685092926025,
0.34357398748397827,
0.08645614981651306,
0.24551323056221008,
-0.1735345721244812,
0.06149467080831528,
0.609002947807312,
0.03794819116592407,
0.2331593632698059,
0.25018438696861267,
-0.027324646711349487,
0.22502204775810242,
-0.11822161823511124,
0.15568196773529053,
0.45580247044563293,
-0.33478936553001404,
-0.5157147645950317,
-0.11182942986488342,
0.685321569442749,
0.35081711411476135,
-0.24603185057640076,
0.2310771644115448,
0.15061627328395844,
-0.1888197362422943,
-0.030754491686820984,
0.25201213359832764,
0.05861251801252365,
-0.2867303192615509,
-0.24990685284137726,
-0.1418588012456894,
-0.11628355830907822,
-0.04063335806131363,
-0.12469175457954407,
-0.46856534481048584,
0.16808189451694489,
-0.2197628766298294,
-0.09734898805618286,
0.015355783514678478,
-0.25093916058540344,
0.36692339181900024,
0.24259084463119507,
-0.053794976323843,
0.3054342269897461,
0.1548372209072113,
-0.06235279142856598,
-0.03759567812085152,
0.2396542876958847,
0.2676125168800354,
0.1595636010169983,
0.33073022961616516,
0.08604063093662262,
-0.0682724267244339,
-0.06800941377878189,
0.06084028631448746,
-0.08021687716245651,
-0.13879524171352386,
-0.1280287355184555,
0.2963445484638214,
0.09503618627786636,
-0.1504412293434143,
-0.04730502888560295,
-0.26230624318122864,
0.26938074827194214,
0.0347663015127182,
-0.05250368267297745,
-0.09632439911365509,
-0.18966561555862427,
0.08969157934188843,
0.1390649825334549,
-0.30237674713134766,
-0.19513356685638428,
0.15546350181102753,
-0.2579757273197174,
-0.0444052554666996,
0.06278462707996368,
-0.000794069841504097,
0.087640181183815,
0.33355236053466797,
0.6362341642379761,
-0.06872180849313736,
-0.010810804553329945,
-0.3546701669692993,
-0.49311962723731995,
-0.08886345475912094,
-0.33701983094215393,
-0.4758252799510956,
-0.08762134611606598,
0.05769661068916321,
0.3087195158004761,
0.13989049196243286,
-0.1357509046792984,
0.046949274837970734,
0.166444793343544,
0.040779005736112595,
-0.41204002499580383,
0.18026404082775116,
-0.06672906875610352,
0.20478695631027222,
0.061953283846378326,
0.13183876872062683,
-0.05819808319211006,
0.3681928515434265,
0.0014882944524288177,
0.06516749411821365,
0.2956419885158539,
-0.37343811988830566,
-0.21558699011802673,
0.42648062109947205,
0.07377587258815765,
0.3851267695426941,
-0.2821054458618164,
-0.17101506888866425,
-0.13058656454086304,
-0.3232930898666382,
-0.09082005172967911,
0.11669664084911346,
-0.15530478954315186,
0.8356388807296753,
-0.4143790900707245,
-0.21660880744457245,
-0.15560150146484375,
-0.017944222316145897,
0.07326590269804001,
-0.2529018223285675,
-0.1524321734905243,
0.4977318346500397,
-0.33768749237060547,
-0.02850113995373249,
0.12635715305805206,
0.5116716623306274,
0.04199037700891495,
-0.1628352701663971,
-0.08034978061914444,
-0.4956403374671936,
0.5483298301696777,
-0.2401120960712433,
-0.22735127806663513,
0.14616312086582184,
-0.20598646998405457,
0.23086127638816833,
-0.1494387835264206,
-0.2632160484790802,
0.2522507905960083,
0.09231072664260864,
0.038832180202007294,
-0.23730799555778503,
0.1482851356267929,
0.18046461045742035,
-0.2049984335899353,
-0.08347868919372559,
0.3417001962661743,
0.04644697159528732,
-0.11374291032552719,
0.00785277783870697,
-0.052030667662620544
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Both were uploaded using `ds.push_to_hub()` :)
You can get a Dataset from a python dictionary using `ds = Dataset.from_dict(...)` and casts the paths to images to the `Image()` type using `ds = ds.cast_column("image", Image())`.
```python
from datasets import Dataset, Image
ds = Dataset.from_dict(...)
ds = ds.cast_column("image", Image())
ds = ds.cast_column("label", Image())
ds.push_to_hub(...)
``` | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 53 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Both were uploaded using `ds.push_to_hub()` :)
You can get a Dataset from a python dictionary using `ds = Dataset.from_dict(...)` and casts the paths to images to the `Image()` type using `ds = ds.cast_column("image", Image())`.
```python
from datasets import Dataset, Image
ds = Dataset.from_dict(...)
ds = ds.cast_column("image", Image())
ds = ds.cast_column("label", Image())
ds.push_to_hub(...)
``` | [
-0.1620960831642151,
-0.518302857875824,
-0.10980427265167236,
0.23431392014026642,
0.15737956762313843,
0.043194204568862915,
0.1724742352962494,
0.12560538947582245,
-0.057067882269620895,
0.2161729633808136,
-0.5137792825698853,
0.23424389958381653,
-0.28834518790245056,
0.37488511204719543,
0.1398015022277832,
-0.27627629041671753,
0.00038651376962661743,
0.02647099643945694,
-0.39033180475234985,
-0.03272126615047455,
0.004799500107765198,
0.25772759318351746,
0.13461226224899292,
-0.003798268735408783,
-0.3821462094783783,
-0.1870391070842743,
-0.4358385503292084,
0.023439068347215652,
-0.08277963101863861,
-0.304217666387558,
0.06009210646152496,
0.18065370619297028,
0.13927625119686127,
0.38269805908203125,
-0.00009895204129861668,
0.005151696503162384,
-0.03386836498975754,
-0.07719697058200836,
-0.08732815086841583,
-0.1676047295331955,
0.06378244608640671,
-0.1507812887430191,
0.0760798379778862,
-0.21607983112335205,
-0.25499752163887024,
0.018904663622379303,
0.20475870370864868,
0.06417787075042725,
0.5351712703704834,
0.1127975732088089,
0.3353235125541687,
0.3573205769062042,
0.16096484661102295,
-0.060558855533599854,
-0.0627056285738945,
0.44141632318496704,
-0.17570099234580994,
0.19157493114471436,
0.1610763669013977,
0.03793457895517349,
-0.14671102166175842,
0.5498769879341125,
0.03460266441106796,
-0.007796049118041992,
0.40417593717575073,
0.15991970896720886,
-0.09313850849866867,
-0.38460463285446167,
-0.044557876884937286,
0.33651241660118103,
0.0949980691075325,
-0.26105180382728577,
-0.40974488854408264,
-0.4553394317626953,
-0.13712078332901,
-0.27098527550697327,
-0.027117066085338593,
0.2544894814491272,
-0.178402841091156,
0.22069506347179413,
-0.2516710162162781,
-0.09560777246952057,
-0.18806475400924683,
-0.06774498522281647,
-0.008173413574695587,
0.06689620018005371,
-0.1362631916999817,
-0.09465894848108292,
0.18339325487613678,
-0.08028808981180191,
-0.3305836021900177,
-0.023865491151809692,
0.17958423495292664,
-0.017134685069322586,
-0.0640658438205719,
-0.1819290816783905,
0.10283163189888,
0.19248837232589722,
0.32113441824913025,
0.1415058672428131,
0.04444112628698349,
0.0592595599591732,
-0.2189582884311676,
0.13744045794010162,
0.06612725555896759,
0.05853831395506859,
-0.2963627278804779,
0.08708936721086502,
0.1790591925382614,
0.245091050863266,
0.028870325535535812,
-0.15348738431930542,
-0.01358188595622778,
0.24589888751506805,
-0.24985337257385254,
-0.11932366341352463,
-0.018843019381165504,
-0.009575631469488144,
-0.16892367601394653,
-0.20643791556358337,
0.13842183351516724,
0.1993480771780014,
0.06968715786933899,
0.40958118438720703,
-0.0545957013964653,
0.1622641384601593,
0.1149495393037796,
0.08096276223659515,
0.023044319823384285,
0.018920887261629105,
-0.22519169747829437,
0.0984501838684082,
-0.17639689147472382,
0.12423741817474365,
0.12374280393123627,
-0.11654864251613617,
0.13623009622097015,
-0.37478652596473694,
0.29965150356292725,
0.13351605832576752,
-0.12662889063358307,
-0.10610899329185486,
0.2822348475456238,
0.16563500463962555,
-0.16847917437553406,
-0.2361794114112854,
0.12837043404579163,
-0.18991023302078247,
-0.2887025475502014,
-0.22849377989768982,
-0.13563480973243713,
-0.052238985896110535,
-0.17401322722434998,
0.22581401467323303,
-0.1550407111644745,
-0.06425656378269196,
-0.15155872702598572,
0.4700758755207062,
-0.2433772087097168,
0.17876511812210083,
-0.014073722064495087,
0.23257088661193848,
-0.23256032168865204,
-0.12453801929950714,
0.22599653899669647,
0.39332127571105957,
0.16262032091617584,
-0.2662162482738495,
0.07228971272706985,
-0.11162896454334259,
-0.15166643261909485,
0.08645094931125641,
0.09940694272518158,
-0.020942896604537964,
-0.21457234025001526,
0.025061920285224915,
-0.2380368709564209,
-0.31965211033821106,
-0.16115248203277588,
0.029318535700440407,
-0.08965665102005005,
0.10319743305444717,
0.12196405231952667,
0.34991756081581116,
0.12266705930233002,
-0.016061479225754738,
-0.1258913278579712,
0.43623191118240356,
-0.10653440654277802,
0.19286088645458221,
0.06737828254699707,
-0.3261023163795471,
-0.06172913312911987,
0.238554909825325,
0.15646860003471375,
-0.04045765846967697,
-0.0716954842209816,
-0.10704415291547775,
0.22091370820999146,
-0.188448965549469,
0.032638631761074066,
0.009748846292495728,
0.4135677218437195,
0.24462465941905975,
-0.010798223316669464,
-0.26225394010543823,
-0.3352155387401581,
0.07738343626260757,
0.13956719636917114,
0.3095451593399048,
-0.3968152403831482,
-0.4030417799949646,
0.04668411612510681,
0.09923408925533295,
-0.02339475229382515,
-0.33259648084640503,
0.2938781976699829,
0.16437110304832458,
0.22930774092674255,
0.09513092041015625,
-0.13612551987171173,
0.37782660126686096,
0.14843803644180298,
0.3571107089519501,
-0.06830954551696777,
0.25489941239356995,
-0.049627840518951416,
0.14679166674613953,
0.19130459427833557,
0.18848812580108643,
-0.13249698281288147,
-0.07525220513343811,
0.2106238305568695,
0.4114294648170471,
-0.030364850535988808,
0.23671665787696838,
-0.000286053866147995,
0.30012935400009155,
0.3542218804359436,
-0.4581320881843567,
-0.029690375551581383,
-0.02762690931558609,
0.18338388204574585,
0.13345035910606384,
-0.31633830070495605,
0.27314668893814087,
-0.0395510159432888,
0.18668875098228455,
0.2639690637588501,
0.14240221679210663,
0.17634950578212738,
0.025594789534807205,
-0.18974174559116364,
-0.21203671395778656,
-0.13435325026512146,
-0.06274072825908661,
0.2633742392063141,
0.031122257933020592,
-0.38364699482917786,
0.0385030061006546,
0.13004691898822784,
0.09710545837879181,
0.2502862811088562,
0.2570701837539673,
-0.33109813928604126,
0.1115148738026619,
0.05828532576560974,
-0.07166265696287155,
-0.09102004766464233,
0.3682587742805481,
-0.06307215988636017,
0.080034539103508,
-0.035517413169145584,
0.07517199963331223,
0.143388032913208,
0.2587948441505432,
-0.01059329230338335,
-0.04314553737640381,
0.31093350052833557,
-0.0927114337682724,
-0.4567748010158539,
-0.44137054681777954,
-0.35770753026008606,
-0.10375291854143143,
0.010311756283044815,
0.16312776505947113,
0.024440495297312737,
-0.3726778030395508,
-0.07904071360826492,
-0.10255569219589233,
-0.17303934693336487,
-0.040405284613370895,
0.13912907242774963,
-0.087586909532547,
-0.127376526594162,
0.09435757994651794,
-0.1383865624666214,
0.35929518938064575,
-0.09899929165840149,
-0.006889592856168747,
-0.11525283753871918,
-0.08105488866567612,
0.055253587663173676,
0.22936737537384033,
0.16835927963256836,
-0.09026798605918884,
0.5022876858711243,
-0.17650090157985687,
0.324552059173584,
-0.04593072831630707,
-0.6094534993171692,
0.21902045607566833,
-0.17703089118003845,
0.04373524338006973,
0.18942676484584808,
-0.0076090991497039795,
-0.004564572125673294,
-0.2949923276901245,
0.2076069861650467,
-0.2769153118133545,
-0.20617184042930603,
-0.16564573347568512,
-0.0440489798784256,
-0.0037629809230566025,
-0.27808651328086853,
-0.04392125457525253,
-0.32855141162872314,
-0.3626798093318939,
0.5227813124656677,
0.35845205187797546,
0.09392072260379791,
0.3978620767593384,
0.13500669598579407,
0.2009059339761734,
-0.23991620540618896,
0.2922497093677521,
-0.005991002544760704,
-0.26029255986213684,
0.11011463403701782,
-0.2440902143716812,
-0.18341347575187683,
-0.31838610768318176,
-0.39086586236953735,
0.18623800575733185,
-0.10373999923467636,
-0.43654173612594604,
-0.4225741922855377,
-0.35701850056648254,
0.1721331924200058,
0.20169349014759064,
0.052204251289367676,
0.21458256244659424,
0.13191702961921692,
-0.16637581586837769,
-0.01919420436024666,
-0.09963938593864441,
0.0730137974023819,
-0.09335102885961533,
-0.10586441308259964,
-0.11413989216089249,
0.19844156503677368,
0.25836074352264404,
0.25312843918800354,
-0.04694504663348198,
-0.30578815937042236,
0.4046057164669037,
-0.177742138504982,
0.5098665356636047,
-0.1158595010638237,
-0.23929433524608612,
0.2515472173690796,
-0.08879423141479492,
-0.07190791517496109,
0.20678576827049255,
0.20356357097625732,
-0.04806426912546158,
-0.28430548310279846,
0.04136529192328453,
-0.4034462571144104,
-0.10591450333595276,
-0.04314885288476944,
0.5124152898788452,
0.09781545400619507,
-0.1840416043996811,
-0.17242053151130676,
-0.1851695477962494,
-0.16200804710388184,
0.2552030682563782,
0.28773483633995056,
0.09825921803712845,
-0.06822167336940765,
-0.370999813079834,
-0.14962725341320038,
-0.46316200494766235,
0.15577663481235504,
0.08603828400373459,
-0.26184019446372986,
-0.023445796221494675,
-0.27412348985671997,
-0.043551236391067505,
-0.11391174793243408,
0.4527229070663452,
0.23903334140777588,
-0.15171228349208832,
-0.08386023342609406,
-0.4699033796787262,
-0.21780596673488617,
0.19687029719352722,
-0.16864000260829926,
-0.21827135980129242,
0.01105191558599472,
0.6143380403518677,
-0.3790839910507202,
-0.004354176111519337,
0.19899001717567444,
0.0910506546497345,
-0.061661820858716965,
0.08762231469154358,
-0.12998203933238983,
-0.15249550342559814,
-0.36191093921661377,
0.0364888571202755,
0.06649221479892731,
0.17225027084350586,
0.2777387499809265,
-0.07560686022043228,
-0.0470222532749176,
-0.1736125349998474,
0.1792534589767456,
0.3336395025253296,
0.18371525406837463,
0.15348081290721893,
0.16116252541542053,
0.19721101224422455,
0.22042275965213776,
0.09854675829410553,
0.5323333144187927,
-0.19821590185165405,
-0.3233339190483093,
-0.18329066038131714,
0.17445749044418335,
0.10119721293449402,
0.17187590897083282,
0.1398913860321045,
0.016809463500976562,
0.022967761382460594,
0.2854066789150238,
-0.6124037504196167,
0.3625545799732208,
0.08560926467180252,
0.07426369190216064,
-0.15633875131607056,
-0.17031247913837433,
0.2967115044593811,
0.032215364277362823,
-0.04701268672943115,
0.07822801172733307,
0.1887345314025879,
-0.29346364736557007,
0.27379703521728516,
0.3254758417606354,
0.9026640057563782,
-0.29785752296447754,
0.42662283778190613,
0.15662971138954163,
-0.1005706787109375,
0.44842007756233215,
-0.06350887566804886,
0.13303416967391968,
-0.13418641686439514,
-0.24133722484111786,
-0.044318754225969315,
0.027451690286397934,
-0.022370323538780212,
-0.08882233500480652,
-0.21283134818077087,
-0.053094927221536636,
0.1456741839647293,
0.22957389056682587,
-0.15123091638088226,
0.1677715927362442,
-0.17558345198631287,
-0.5790488123893738,
-0.22029750049114227,
0.27169960737228394,
-0.044078655540943146,
0.1736958622932434,
0.09411831200122833,
-0.14261075854301453,
-0.1557822823524475,
-0.04203975945711136,
-0.1921745240688324,
-0.07051081210374832,
-0.1502591222524643,
0.11999285966157913,
0.16191531717777252,
-0.05106059089303017,
-0.17144480347633362,
0.3919256031513214,
0.25568607449531555,
0.12193955481052399,
-0.23624593019485474,
0.23419071733951569,
-0.2796041965484619,
-0.07962539047002792,
-0.002897605998441577,
-0.01402729656547308,
0.29380494356155396,
0.006332729011774063,
0.13945382833480835,
-0.05026565492153168,
0.40211546421051025,
-0.015378404408693314,
-0.1676410734653473,
-0.08733627200126648,
0.11161165684461594,
0.06591415405273438,
0.07528723776340485,
0.04087723046541214,
-0.16969159245491028,
-0.2131064236164093,
0.2228272557258606,
0.11689627170562744,
-0.026182789355516434,
-0.045222990214824677,
0.26762253046035767,
-0.05015483871102333,
-0.08290636539459229,
0.29812225699424744,
0.0738833025097847,
-0.003199346363544464,
0.15943646430969238,
0.18358749151229858,
-0.18414023518562317,
-0.2570461630821228,
0.04818441718816757,
0.094397634267807,
-0.3796699643135071,
0.20441752672195435,
-0.013376410119235516,
-0.26068100333213806,
-0.20574507117271423,
0.2521095871925354,
0.19278520345687866,
-0.17227408289909363,
0.019413132220506668,
-0.14502979815006256,
-0.5502251982688904,
0.43746864795684814,
-0.2304139882326126,
0.45007288455963135,
-0.04331769421696663,
0.3019065856933594,
0.06883400678634644,
0.15067730844020844,
-0.49035510420799255,
-0.0969582051038742,
-0.2952969968318939,
-0.08666585385799408,
0.08857037872076035,
-0.10997436195611954,
0.2145056575536728,
0.02970440313220024,
0.2624523639678955,
0.2705431878566742,
-0.12730348110198975,
-0.2870480418205261,
-0.23962832987308502,
0.06254898011684418,
0.007483186200261116,
-0.02238270454108715,
0.11606193333864212,
0.17897914350032806,
-0.08332940936088562,
-0.3156278729438782,
0.21110832691192627,
0.15758860111236572,
-0.003272995352745056,
0.07676320523023605,
-0.12408217787742615,
-0.1617160141468048,
0.28025978803634644,
-0.08997857570648193,
0.016961678862571716,
0.06010796129703522,
0.35809749364852905,
-0.1156461089849472,
-0.234491765499115,
-0.1480409801006317,
0.25278350710868835,
0.3214826285839081,
0.11969941109418869,
-0.16567546129226685,
0.3109878599643707,
0.12388511747121811,
-0.09571175277233124,
0.27416104078292847,
0.5195881128311157,
-0.28293389081954956,
-0.04999008774757385,
0.27556225657463074,
0.29907575249671936,
0.3394519090652466,
-0.4438095986843109,
-0.04616110399365425,
0.08160668611526489,
-0.26154500246047974,
0.33840087056159973,
0.35264450311660767,
-0.01007254421710968,
0.2246953248977661,
-0.24454136192798615,
0.05349615961313248,
0.29324090480804443,
0.08926716446876526,
0.02008550614118576,
0.1386454850435257,
0.036022644490003586,
-0.022973712533712387,
0.32396990060806274,
0.19127187132835388,
0.43018028140068054,
0.2896246612071991,
-0.3134933114051819,
0.24464885890483856,
-0.20660147070884705,
0.10878659784793854,
0.648836612701416,
-0.04189145937561989,
-0.07009166479110718,
-0.11485028266906738,
0.13377422094345093,
0.2797280251979828,
-0.261458158493042,
0.21018704771995544,
-0.10585013031959534,
-0.017805051058530807,
-0.24921835958957672,
0.25725916028022766,
0.04243883490562439,
-0.1956804394721985,
-0.05428650230169296,
-0.16532036662101746,
-0.1887073963880539,
0.016176920384168625,
0.1675698161125183,
-0.5736477375030518,
0.21954938769340515,
-0.07980747520923615,
0.1426575481891632,
-0.0431387722492218,
-0.3215625286102295,
0.13698962330818176,
0.41954389214515686,
-0.19017340242862701,
0.023771241307258606,
0.37549740076065063,
-0.01921970397233963,
0.18810762465000153,
0.34926843643188477,
0.30418673157691956,
-0.12089461088180542,
-0.010100193321704865,
0.203439399600029,
-0.25098681449890137,
-0.2071143239736557,
-0.27421316504478455,
0.14441627264022827,
0.05983757972717285,
0.2074008584022522,
0.3023275136947632,
0.23639532923698425,
-0.26149433851242065,
-0.15285977721214294,
-0.12640449404716492,
0.1812812238931656,
-0.22202223539352417,
-0.0996711328625679,
-0.05971065163612366,
-0.0476485900580883,
-0.27922317385673523,
-0.05256433039903641,
-0.580094575881958,
-0.15808793902397156,
0.07858970761299133,
-0.33075881004333496,
-0.005954870022833347,
-0.009449509903788567,
0.13752813637256622,
0.04733762890100479,
0.31258484721183777,
0.33830368518829346,
0.22073206305503845,
-0.02238592877984047,
-0.1965188980102539,
-0.4581218361854553,
0.02112521231174469,
-0.0003426894545555115,
-0.38155147433280945,
-0.13235589861869812,
0.10011469572782516,
0.1762819141149521,
0.21457096934318542,
-0.03939001262187958,
0.010961588472127914,
0.18456345796585083,
-0.031803570687770844,
-0.262732595205307,
0.18784485757350922,
-0.2351846545934677,
0.14178681373596191,
0.1866624355316162,
-0.024616222828626633,
0.027086768299341202,
-0.041253816336393356,
0.16670218110084534,
-0.04942942410707474,
0.22285103797912598,
-0.3972366750240326,
-0.10430736839771271,
0.2808927297592163,
-0.05379250645637512,
0.16982008516788483,
-0.2672192454338074,
-0.23671653866767883,
-0.03363143280148506,
-0.30970844626426697,
-0.27409815788269043,
0.01826952025294304,
0.05846865475177765,
0.5530349016189575,
-0.1600411981344223,
-0.26133283972740173,
-0.0048010097816586494,
0.2181478887796402,
0.2759590148925781,
-0.11655010282993317,
-0.12931454181671143,
0.17503181099891663,
-0.05600802227854729,
-0.16909733414649963,
0.055064331740140915,
0.563610315322876,
-0.023930296301841736,
-0.26777398586273193,
0.11383630335330963,
-0.6032868027687073,
0.597964882850647,
-0.40824833512306213,
-0.19470225274562836,
-0.07793322950601578,
-0.0775568038225174,
0.22579073905944824,
0.05367764085531235,
-0.44747114181518555,
0.1870710253715515,
0.14731577038764954,
0.13164104521274567,
-0.30200013518333435,
0.2591419219970703,
0.08499780297279358,
-0.11572995781898499,
-0.10852275788784027,
0.039328038692474365,
0.05140973627567291,
-0.08344120532274246,
-0.01220223493874073,
-0.27589309215545654
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > Both were uploaded using `ds.push_to_hub()` :)
>
> You can get a Dataset from a python dictionary using `ds = Dataset.from_dict(...)` and casts the paths to images to the `Image()` type using `ds = ds.cast_column("image", Image())`.
>
> ```python
> from datasets import Dataset, Image
>
> ds = Dataset.from_dict(...)
> ds = ds.cast_column("image", Image())
> ds = ds.cast_column("label", Image())
> ds.push_to_hub(...)
> ```
Thank you very much @lhoestq , I succesfully created a hf dataset [here](https://huggingface.co/datasets/lombardata/panoptic_2023_06_21) with the two fields :
1.image (image)
2.label (image)
following your suggestions. Now still remain the problem of uploading **segments_info** information to the dataset.
There is a function that easily imports the _panoptic_coco_annotation.json_ file to a segment_info field?
I think we must define a **list_of_segment**, i.e. a list of lists of this type :
```python
[ { "area": 214858, "bbox": [ 0, 0, 511, 760 ], "category_id": 0, "id": 7895160, "iscrowd": 0 }, { "area": 73067, "bbox": [ 98, 719, 413, 253 ], "category_id": 3, "id": 3289680, "iscrowd": 0 }, { "area": 832, "bbox": [ 53, 0, 101, 16 ], "category_id": 5, "id": 5273720, "iscrowd": 0 }, { "area": 70668, "bbox": [ 318, 60, 191, 392 ], "category_id": 8, "id": 15132390, "iscrowd": 0 }, { "area": 32696, "bbox": [ 0, 100, 78, 872 ], "category_id": 18, "id": 472063, "iscrowd": 0 }, { "area": 76045, "bbox": [ 42, 48, 264, 924 ], "category_id": 37, "id": 16713830, "iscrowd": 0 }, { "area": 27103, "bbox": [ 288, 482, 216, 306 ], "category_id": 47, "id": 16753408, "iscrowd": 0 } ]
```
and then apply again the **cast_column** function [here](https://github.com/huggingface/datasets/blob/2.13.0/src/datasets/arrow_dataset.py#L2060) but with a list as a second argument, like :
```python
from datasets import Dataset, Image
ds = ds.cast_column("image", Image())
ds = ds.cast_column("label", Image())
ds = ds.cast_column("segments_info", list)
```
but I do not see how to transfer the information of the _panoptic_coco_annotation.json_ to a list of lists of this type :
```python
[ { "area": 214858, "bbox": [ 0, 0, 511, 760 ], "category_id": 0, "id": 7895160, "iscrowd": 0 }, { "area": 73067, "bbox": [ 98, 719, 413, 253 ], "category_id": 3, "id": 3289680, "iscrowd": 0 }, { "area": 832, "bbox": [ 53, 0, 101, 16 ], "category_id": 5, "id": 5273720, "iscrowd": 0 }, { "area": 70668, "bbox": [ 318, 60, 191, 392 ], "category_id": 8, "id": 15132390, "iscrowd": 0 }, { "area": 32696, "bbox": [ 0, 100, 78, 872 ], "category_id": 18, "id": 472063, "iscrowd": 0 }, { "area": 76045, "bbox": [ 42, 48, 264, 924 ], "category_id": 37, "id": 16713830, "iscrowd": 0 }, { "area": 27103, "bbox": [ 288, 482, 216, 306 ], "category_id": 47, "id": 16753408, "iscrowd": 0 } ]
```
like @NielsRogge has done [here](https://huggingface.co/datasets/nielsr/coco-panoptic-val2017) and [here](https://huggingface.co/datasets/nielsr/ade20k-panoptic-demo).
Thank you again for your help and have a good day ! | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 456 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> Both were uploaded using `ds.push_to_hub()` :)
>
> You can get a Dataset from a python dictionary using `ds = Dataset.from_dict(...)` and casts the paths to images to the `Image()` type using `ds = ds.cast_column("image", Image())`.
>
> ```python
> from datasets import Dataset, Image
>
> ds = Dataset.from_dict(...)
> ds = ds.cast_column("image", Image())
> ds = ds.cast_column("label", Image())
> ds.push_to_hub(...)
> ```
Thank you very much @lhoestq , I succesfully created a hf dataset [here](https://huggingface.co/datasets/lombardata/panoptic_2023_06_21) with the two fields :
1.image (image)
2.label (image)
following your suggestions. Now still remain the problem of uploading **segments_info** information to the dataset.
There is a function that easily imports the _panoptic_coco_annotation.json_ file to a segment_info field?
I think we must define a **list_of_segment**, i.e. a list of lists of this type :
```python
[ { "area": 214858, "bbox": [ 0, 0, 511, 760 ], "category_id": 0, "id": 7895160, "iscrowd": 0 }, { "area": 73067, "bbox": [ 98, 719, 413, 253 ], "category_id": 3, "id": 3289680, "iscrowd": 0 }, { "area": 832, "bbox": [ 53, 0, 101, 16 ], "category_id": 5, "id": 5273720, "iscrowd": 0 }, { "area": 70668, "bbox": [ 318, 60, 191, 392 ], "category_id": 8, "id": 15132390, "iscrowd": 0 }, { "area": 32696, "bbox": [ 0, 100, 78, 872 ], "category_id": 18, "id": 472063, "iscrowd": 0 }, { "area": 76045, "bbox": [ 42, 48, 264, 924 ], "category_id": 37, "id": 16713830, "iscrowd": 0 }, { "area": 27103, "bbox": [ 288, 482, 216, 306 ], "category_id": 47, "id": 16753408, "iscrowd": 0 } ]
```
and then apply again the **cast_column** function [here](https://github.com/huggingface/datasets/blob/2.13.0/src/datasets/arrow_dataset.py#L2060) but with a list as a second argument, like :
```python
from datasets import Dataset, Image
ds = ds.cast_column("image", Image())
ds = ds.cast_column("label", Image())
ds = ds.cast_column("segments_info", list)
```
but I do not see how to transfer the information of the _panoptic_coco_annotation.json_ to a list of lists of this type :
```python
[ { "area": 214858, "bbox": [ 0, 0, 511, 760 ], "category_id": 0, "id": 7895160, "iscrowd": 0 }, { "area": 73067, "bbox": [ 98, 719, 413, 253 ], "category_id": 3, "id": 3289680, "iscrowd": 0 }, { "area": 832, "bbox": [ 53, 0, 101, 16 ], "category_id": 5, "id": 5273720, "iscrowd": 0 }, { "area": 70668, "bbox": [ 318, 60, 191, 392 ], "category_id": 8, "id": 15132390, "iscrowd": 0 }, { "area": 32696, "bbox": [ 0, 100, 78, 872 ], "category_id": 18, "id": 472063, "iscrowd": 0 }, { "area": 76045, "bbox": [ 42, 48, 264, 924 ], "category_id": 37, "id": 16713830, "iscrowd": 0 }, { "area": 27103, "bbox": [ 288, 482, 216, 306 ], "category_id": 47, "id": 16753408, "iscrowd": 0 } ]
```
like @NielsRogge has done [here](https://huggingface.co/datasets/nielsr/coco-panoptic-val2017) and [here](https://huggingface.co/datasets/nielsr/ade20k-panoptic-demo).
Thank you again for your help and have a good day ! | [
-0.059197358787059784,
-0.4270423948764801,
-0.025775941088795662,
0.23544441163539886,
0.15921373665332794,
0.02247687429189682,
0.154083713889122,
0.19789525866508484,
-0.2500925660133362,
0.16166022419929504,
-0.5740940570831299,
0.024560999125242233,
-0.10765650868415833,
0.295224666595459,
0.04700571298599243,
-0.3495311737060547,
-0.04234486073255539,
-0.02534306049346924,
-0.444484144449234,
-0.12047570198774338,
0.06618060916662216,
0.2157648652791977,
0.27824699878692627,
-0.08039547502994537,
-0.39511165022850037,
-0.17338868975639343,
-0.47807198762893677,
0.19052934646606445,
-0.08665704727172852,
-0.35474541783332825,
0.05020866543054581,
0.23351652920246124,
0.1877482533454895,
0.36984968185424805,
-0.00010629881580825895,
-0.020907066762447357,
-0.03797981142997742,
-0.0564936101436615,
-0.3274058997631073,
-0.18830908834934235,
-0.0689215287566185,
-0.22264450788497925,
0.03221497684717178,
-0.2168990671634674,
-0.1462925523519516,
-0.0644853413105011,
0.07361208647489548,
0.3273637592792511,
0.544985830783844,
0.10701729357242584,
0.25447744131088257,
0.21241644024848938,
0.19941310584545135,
-0.07644729316234589,
0.1565316915512085,
0.5539724826812744,
-0.15487949550151825,
0.24846988916397095,
0.00045493990182876587,
0.02005184255540371,
-0.17302411794662476,
0.5585318207740784,
0.12967082858085632,
-0.15159279108047485,
0.47385868430137634,
0.1720370203256607,
-0.10864158719778061,
-0.3467990756034851,
0.04925896227359772,
0.2896741032600403,
0.15726403892040253,
-0.25936636328697205,
-0.44342806935310364,
-0.40631619095802307,
-0.19451770186424255,
-0.37245696783065796,
-0.03413429856300354,
0.289406955242157,
-0.15234482288360596,
0.19820916652679443,
-0.10086561739444733,
-0.15010811388492584,
-0.3072347044944763,
-0.053569987416267395,
0.09412512183189392,
0.10157453268766403,
-0.07822984457015991,
-0.08079604059457779,
0.037398599088191986,
-0.1153305172920227,
-0.2056059092283249,
-0.2331179678440094,
0.10172180831432343,
0.11944320797920227,
-0.08246070146560669,
-0.1369313895702362,
-0.06095840781927109,
0.11244973540306091,
0.3057500123977661,
0.10002966970205307,
-0.14007645845413208,
0.05546487122774124,
-0.2915310859680176,
0.08692809194326401,
0.07646117359399796,
0.10491609573364258,
-0.2748183310031891,
0.25702375173568726,
0.03613864257931709,
0.26845988631248474,
0.1660793572664261,
-0.2421945035457611,
-0.054441194981336594,
0.3058621883392334,
-0.2933417856693268,
-0.11868729442358017,
-0.05492980778217316,
-0.030111774802207947,
-0.19644464552402496,
-0.08000517636537552,
0.16716128587722778,
0.09494949877262115,
-0.0031550759449601173,
0.4988039433956146,
-0.17870639264583588,
0.043618571013212204,
0.07168558984994888,
0.09488804638385773,
0.09289933741092682,
0.20297157764434814,
-0.1656128615140915,
0.2056911736726761,
-0.14607341587543488,
0.1987515538930893,
0.14244386553764343,
-0.20739439129829407,
0.0363118052482605,
-0.1479935497045517,
0.46414268016815186,
0.1648944765329361,
-0.22065581381320953,
-0.3332901895046234,
0.34920138120651245,
0.23624417185783386,
-0.062477193772792816,
-0.027173150330781937,
0.13553574681282043,
-0.05610067397356033,
-0.17804712057113647,
-0.23912769556045532,
-0.3024260103702545,
-0.0036278963088989258,
-0.2698586881160736,
0.15998083353042603,
-0.02052117884159088,
-0.010170314460992813,
0.016032040119171143,
0.4351266324520111,
-0.21191304922103882,
0.12170176208019257,
0.0309583842754364,
0.2807021141052246,
-0.19181634485721588,
-0.144833505153656,
0.2977851629257202,
0.5438570380210876,
0.08166337013244629,
-0.20935700833797455,
0.1461130529642105,
0.03848467767238617,
-0.11812277883291245,
0.21863335371017456,
0.03261236846446991,
-0.0007308274507522583,
-0.21359558403491974,
0.015950873494148254,
-0.18085208535194397,
-0.4424746036529541,
-0.029783492907881737,
0.2236364781856537,
-0.005100376904010773,
0.14669501781463623,
0.06648041307926178,
0.2264469563961029,
0.08955620229244232,
-0.09916992485523224,
-0.13699525594711304,
0.24942262470722198,
-0.1086374819278717,
0.18252049386501312,
-0.0036571770906448364,
-0.23831766843795776,
-0.19001801311969757,
0.20938414335250854,
0.2084646075963974,
-0.003918662667274475,
0.025430917739868164,
-0.09293507039546967,
0.2231353521347046,
-0.26549655199050903,
0.20336909592151642,
0.0629015862941742,
0.47684788703918457,
0.3953648805618286,
0.007980350404977798,
-0.12395299971103668,
-0.4393594264984131,
0.045108966529369354,
0.1328781694173813,
0.3249819576740265,
-0.37444186210632324,
-0.3503432273864746,
-0.07910866290330887,
0.13080498576164246,
-0.014186378568410873,
-0.2989329397678375,
0.22508156299591064,
0.15121856331825256,
0.11436338722705841,
-0.03929854556918144,
-0.09175457060337067,
0.4300660490989685,
0.15109564363956451,
0.38098278641700745,
0.11496017873287201,
0.39631226658821106,
-0.04309937357902527,
0.09213504940271378,
0.07626379281282425,
0.2697276473045349,
0.07257342338562012,
-0.019706835970282555,
0.16156062483787537,
0.4504549503326416,
-0.1231314092874527,
0.2197185754776001,
-0.012620382010936737,
0.2528972625732422,
0.33404311537742615,
-0.40291211009025574,
0.05335281044244766,
-0.3157576620578766,
0.234592005610466,
0.08122120052576065,
-0.4132188558578491,
0.24295338988304138,
-0.03253078833222389,
0.18396559357643127,
0.37282490730285645,
-0.010301523841917515,
0.07805383950471878,
-0.05642740800976753,
-0.08095037937164307,
-0.17751654982566833,
-0.1085381805896759,
-0.18599766492843628,
0.28315475583076477,
-0.045124880969524384,
-0.3843977749347687,
0.16543136537075043,
0.2264063060283661,
0.11239391565322876,
0.09398169815540314,
0.30070823431015015,
-0.2930319905281067,
0.14388000965118408,
0.19416427612304688,
-0.14758241176605225,
-0.0705799013376236,
0.3676469624042511,
-0.08998900651931763,
0.13900981843471527,
-0.08338650315999985,
0.13886579871177673,
0.18680742383003235,
0.2425181120634079,
-0.006684715859591961,
0.18334752321243286,
0.3320191502571106,
0.10865739732980728,
-0.3606835603713989,
-0.3972298502922058,
-0.23431913554668427,
-0.21621590852737427,
-0.0869145542383194,
0.18493427336215973,
0.027261702343821526,
-0.4120624363422394,
-0.0896943062543869,
-0.21973997354507446,
-0.22849330306053162,
-0.13501384854316711,
0.11233454942703247,
-0.06238332763314247,
-0.030332140624523163,
0.14521346986293793,
-0.11231479048728943,
0.3396131992340088,
-0.1827838122844696,
-0.10259286314249039,
-0.16138222813606262,
0.04466341808438301,
0.08692476898431778,
0.12912772595882416,
0.10174465924501419,
0.012194065377116203,
0.38640910387039185,
-0.054241158068180084,
0.14462818205356598,
-0.13554535806179047,
-0.63193279504776,
0.3587868809700012,
-0.15391193330287933,
-0.00017041340470314026,
0.14845697581768036,
-0.06120043992996216,
-0.019539259374141693,
-0.4692556858062744,
0.202511727809906,
-0.013672533445060253,
-0.24844031035900116,
-0.10650826245546341,
-0.1483355313539505,
0.04325174167752266,
-0.25113219022750854,
0.09543287754058838,
-0.3259958028793335,
-0.38772258162498474,
0.5403258204460144,
0.33525243401527405,
0.19154688715934753,
0.6330633163452148,
0.08292417228221893,
0.13829489052295685,
-0.18595771491527557,
0.14665813744068146,
-0.12401313334703445,
-0.2564889192581177,
0.21217216551303864,
-0.31462520360946655,
-0.23244448006153107,
-0.2181934416294098,
-0.3451390266418457,
0.12034307420253754,
-0.05108413100242615,
-0.4112730622291565,
-0.2887382209300995,
-0.27083370089530945,
0.2792570888996124,
0.12149912118911743,
0.13065364956855774,
0.21695096790790558,
0.010550012812018394,
-0.09181758761405945,
-0.08942757546901703,
-0.17022515833377838,
0.08622175455093384,
-0.030879095196723938,
0.014768794178962708,
-0.24737679958343506,
0.3036991059780121,
0.21182554960250854,
0.495944082736969,
0.05227544531226158,
-0.1557072401046753,
0.5260879993438721,
-0.053014785051345825,
0.48966437578201294,
-0.17943689227104187,
-0.3478165864944458,
0.3919876217842102,
-0.11122673749923706,
-0.11283040791749954,
0.21451488137245178,
0.12755781412124634,
0.04467100650072098,
-0.28199630975723267,
0.07458409667015076,
-0.45704129338264465,
-0.12008479237556458,
0.13176611065864563,
0.4656915068626404,
0.17437544465065002,
-0.15754209458827972,
-0.19355320930480957,
-0.3342759609222412,
-0.2506011128425598,
0.3118118345737457,
0.4400752782821655,
0.08111308515071869,
-0.01490924321115017,
-0.35780370235443115,
-0.10342943668365479,
-0.5199858546257019,
0.08241039514541626,
0.15339164435863495,
-0.3096363842487335,
-0.23406913876533508,
-0.1810941994190216,
-0.06054426729679108,
-0.1176547035574913,
0.36343538761138916,
0.21283310651779175,
-0.15673235058784485,
-0.05413871631026268,
-0.45804160833358765,
-0.009906420484185219,
0.10505051910877228,
-0.08871357142925262,
-0.21783943474292755,
0.07288098335266113,
0.7835476398468018,
-0.6485232710838318,
-0.06286242604255676,
0.3136012852191925,
-0.0664852112531662,
-0.1324751228094101,
0.03357142210006714,
-0.03412603214383125,
-0.06871726363897324,
-0.299773633480072,
-0.15734818577766418,
0.16005724668502808,
0.15549027919769287,
0.22376471757888794,
-0.016782522201538086,
0.07984340935945511,
-0.04077436029911041,
0.21865275502204895,
0.20720045268535614,
0.11636563390493393,
0.24424079060554504,
0.158347949385643,
0.19200623035430908,
0.13107529282569885,
0.4466296434402466,
0.5627686977386475,
-0.17779983580112457,
-0.19698959589004517,
-0.03366565331816673,
0.17478710412979126,
0.18311378359794617,
0.26605895161628723,
0.26799118518829346,
0.08797784149646759,
-0.02338198572397232,
0.28575295209884644,
-0.7186337113380432,
0.23322853446006775,
0.00881814956665039,
0.0183931402862072,
-0.28829342126846313,
-0.10087642073631287,
0.27603259682655334,
-0.17093154788017273,
-0.049844514578580856,
-0.00870547816157341,
0.34478759765625,
-0.29228395223617554,
0.3172737956047058,
0.1865987926721573,
1.0238221883773804,
-0.16765932738780975,
0.40099456906318665,
0.13789322972297668,
-0.21645842492580414,
0.5472632646560669,
-0.1944274753332138,
0.007233520969748497,
-0.2685909867286682,
-0.22184406220912933,
-0.016365811228752136,
0.05422845110297203,
-0.026655584573745728,
-0.14585326611995697,
-0.18367987871170044,
-0.05932370573282242,
0.09967239201068878,
0.21864065527915955,
-0.19550375640392303,
0.2679099142551422,
-0.19909851253032684,
-0.6511298418045044,
-0.17294512689113617,
0.2405378818511963,
-0.030311979353427887,
0.16637052595615387,
-0.00023819692432880402,
-0.2046353816986084,
-0.23485854268074036,
-0.11036302149295807,
-0.18949586153030396,
0.04109864681959152,
-0.12160290777683258,
0.04131746664643288,
0.2114323526620865,
-0.07991170883178711,
-0.046884700655937195,
0.10539660602807999,
0.29398828744888306,
-0.035206135362386703,
-0.15164130926132202,
0.23729945719242096,
-0.34595757722854614,
0.05033835023641586,
-0.08363261818885803,
-0.08111175894737244,
0.3610704839229584,
-0.016010349616408348,
0.12999284267425537,
-0.03458542376756668,
0.17527702450752258,
-0.015149343758821487,
-0.13269519805908203,
-0.23738272488117218,
0.07638301700353622,
-0.08108779042959213,
0.13570018112659454,
0.06918355822563171,
-0.10481296479701996,
-0.2009570151567459,
0.15268321335315704,
0.003210887312889099,
0.023594683036208153,
-0.17440932989120483,
0.3649347424507141,
0.0269937664270401,
-0.10817067325115204,
0.24186885356903076,
-0.14556998014450073,
-0.03277261555194855,
0.2728634476661682,
0.19261476397514343,
-0.21456792950630188,
-0.17310592532157898,
0.023444123566150665,
0.2259037047624588,
-0.5078467726707458,
-0.02242603525519371,
-0.008752867579460144,
-0.25061294436454773,
-0.30822062492370605,
0.32703572511672974,
0.2877410650253296,
-0.12766242027282715,
0.0853472352027893,
-0.22677534818649292,
-0.5789119005203247,
0.46458643674850464,
-0.3457981050014496,
0.31372690200805664,
-0.20165252685546875,
0.34647589921951294,
0.12316586077213287,
0.3742576837539673,
-0.43871602416038513,
-0.13929679989814758,
-0.30747276544570923,
0.043504126369953156,
-0.0019466914236545563,
-0.2690576910972595,
0.2519502639770508,
-0.02964562363922596,
0.18890435993671417,
0.21860671043395996,
-0.16695447266101837,
-0.18420881032943726,
-0.4314994513988495,
0.09547656774520874,
0.1063237264752388,
-0.15982328355312347,
-0.022842731326818466,
0.10977083444595337,
-0.08750338852405548,
-0.28952592611312866,
0.30023127794265747,
0.12709331512451172,
-0.023699216544628143,
0.05822290852665901,
0.009207986295223236,
-0.002092026174068451,
0.08400103449821472,
-0.10405707359313965,
0.3012772798538208,
0.1775413155555725,
0.3037252426147461,
-0.16154247522354126,
-0.45026758313179016,
-0.15798568725585938,
0.2201647013425827,
0.40885287523269653,
0.2505108118057251,
-0.23151588439941406,
0.28234201669692993,
0.07825968414545059,
-0.09973488748073578,
0.1234557181596756,
0.5234284400939941,
-0.2851282060146332,
-0.03434620425105095,
0.24880386888980865,
0.3266352117061615,
0.24898642301559448,
-0.2801628112792969,
-0.03298080712556839,
-0.04737865552306175,
-0.3428291976451874,
0.29400160908699036,
0.3461553752422333,
0.07096908986568451,
0.21310842037200928,
-0.08924451470375061,
0.08333799988031387,
0.2350027859210968,
0.12906864285469055,
-0.016574177891016006,
0.2103451043367386,
-0.0806213915348053,
0.10954222083091736,
0.39736616611480713,
0.1512320190668106,
0.30408596992492676,
0.16561679542064667,
-0.2688465118408203,
0.16210290789604187,
-0.07099766284227371,
-0.022469785064458847,
0.5920855402946472,
-0.21781109273433685,
-0.22228075563907623,
-0.13205116987228394,
0.17505843937397003,
0.25488755106925964,
-0.25904586911201477,
0.08555867522954941,
0.07428329437971115,
-0.12226749211549759,
-0.132116436958313,
0.22611430287361145,
-0.05403975397348404,
-0.12237776815891266,
-0.04924666881561279,
-0.13879753649234772,
-0.32691463828086853,
-0.11391401290893555,
0.11644566059112549,
-0.6183586716651917,
0.467669278383255,
-0.12244629859924316,
0.10329027473926544,
0.06964850425720215,
-0.44928470253944397,
0.23755908012390137,
0.3771701753139496,
-0.1810634583234787,
0.14114396274089813,
0.3537614941596985,
-0.07616440951824188,
0.055872172117233276,
0.3383951485157013,
0.2954169809818268,
0.021183330565690994,
0.11116579174995422,
0.18936045467853546,
-0.09307307004928589,
-0.1855180263519287,
-0.05937556177377701,
0.06385064125061035,
0.11834293603897095,
0.292705774307251,
0.3369967043399811,
0.15076975524425507,
-0.23522311449050903,
-0.0992080569267273,
-0.1397726982831955,
0.12897920608520508,
-0.26767027378082275,
-0.03360285609960556,
0.00015077367424964905,
-0.07349888980388641,
-0.13098032772541046,
-0.04828479140996933,
-0.4722835123538971,
-0.09130683541297913,
0.09476800262928009,
-0.2679390013217926,
0.06973951309919357,
0.04758680984377861,
0.10525383055210114,
-0.027093108743429184,
0.3536372184753418,
0.39519429206848145,
0.011419661343097687,
-0.14735443890094757,
-0.20152872800827026,
-0.3859776258468628,
-0.10667797178030014,
-0.12209717929363251,
-0.26942506432533264,
0.03823932260274887,
0.11968216300010681,
0.204832524061203,
0.11491484940052032,
-0.05818171799182892,
-0.09187129139900208,
0.37079739570617676,
0.013361796736717224,
-0.2988949418067932,
0.2935856878757477,
-0.20580075681209564,
0.18058764934539795,
0.14636635780334473,
0.04049553722143173,
0.12820450961589813,
0.263134628534317,
0.1000363901257515,
0.010748148895800114,
0.10697628557682037,
-0.22657236456871033,
-0.24348166584968567,
0.3448847830295563,
-0.06214016675949097,
0.26181861758232117,
-0.44053083658218384,
-0.28896069526672363,
-0.003114517778158188,
-0.38865336775779724,
-0.15615735948085785,
0.004373781383037567,
0.06560416519641876,
0.6820541620254517,
-0.015069376677274704,
-0.3408570885658264,
-0.11700306832790375,
0.22065261006355286,
0.11515063047409058,
-0.2847176492214203,
-0.07653909176588058,
0.33276477456092834,
-0.10688680410385132,
-0.08136510848999023,
0.12592197954654694,
0.4726066291332245,
0.06771320104598999,
-0.13578522205352783,
-0.018232569098472595,
-0.6828506588935852,
0.6511373519897461,
-0.39144644141197205,
-0.2328164130449295,
-0.06690163910388947,
0.018241077661514282,
0.3905693590641022,
0.04196830093860626,
-0.5228782296180725,
0.16593682765960693,
0.14418424665927887,
0.07332390546798706,
-0.25429287552833557,
0.15656845271587372,
-0.004656762816011906,
-0.10491028428077698,
-0.05160440504550934,
0.1414245218038559,
0.047122787684202194,
-0.17995944619178772,
-0.035757943987846375,
-0.3057018518447876
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | You can pass this data in .from_dict() - no need to cast anything for this column
```python
ds = Dataset.from_dict({
"image": [...],
"label": [...],
"segments_info": [...],
)}
```
where `segments_info` is the list of the segment_infos of all the examples in the dataset, and therefore is a list of lists of dicts. | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 52 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
You can pass this data in .from_dict() - no need to cast anything for this column
```python
ds = Dataset.from_dict({
"image": [...],
"label": [...],
"segments_info": [...],
)}
```
where `segments_info` is the list of the segment_infos of all the examples in the dataset, and therefore is a list of lists of dicts. | [
-0.19400650262832642,
-0.565739631652832,
-0.12166839838027954,
0.2264271378517151,
0.16179430484771729,
0.06717992573976517,
0.19251851737499237,
0.16661721467971802,
-0.0238896943628788,
0.175217866897583,
-0.5087725520133972,
0.23102004826068878,
-0.2850368618965149,
0.36854836344718933,
0.12887544929981232,
-0.3308972120285034,
0.0363764613866806,
0.01010129600763321,
-0.39623913168907166,
-0.015978306531906128,
0.006252087652683258,
0.27662941813468933,
0.10310709476470947,
-0.017125263810157776,
-0.3048577904701233,
-0.13851498067378998,
-0.4138603210449219,
-0.028095990419387817,
-0.037445247173309326,
-0.2992333173751831,
0.10862815380096436,
0.1420879065990448,
0.1548178344964981,
0.3272158205509186,
-0.00009940742893377319,
0.03742098808288574,
-0.06251988559961319,
-0.10129056125879288,
-0.12514770030975342,
-0.15153025090694427,
0.03423260152339935,
-0.16744640469551086,
0.1314716637134552,
-0.25400033593177795,
-0.2840917706489563,
-0.012236417271196842,
0.13734300434589386,
0.0846569836139679,
0.6125769019126892,
0.12391655892133713,
0.33179086446762085,
0.3128105700016022,
0.09536896646022797,
-0.09674815833568573,
-0.014689996838569641,
0.4612313508987427,
-0.15699884295463562,
0.2076292783021927,
0.17527857422828674,
0.04471922665834427,
-0.15763887763023376,
0.5612108707427979,
0.008745690807700157,
-0.004401661455631256,
0.3377869725227356,
0.16689833998680115,
-0.07675456255674362,
-0.36281126737594604,
-0.017362423241138458,
0.38845422863960266,
0.08538641780614853,
-0.28279224038124084,
-0.38806864619255066,
-0.45749717950820923,
-0.12303774803876877,
-0.25869473814964294,
-0.1444689929485321,
0.2502945363521576,
-0.17242172360420227,
0.27437475323677063,
-0.20862039923667908,
-0.08676419407129288,
-0.1846519559621811,
-0.0946703851222992,
-0.04574811831116676,
0.050707004964351654,
-0.170841783285141,
-0.0880793109536171,
0.12973420321941376,
-0.08747173845767975,
-0.36684995889663696,
0.02195904403924942,
0.13286444544792175,
-0.043861452490091324,
-0.10645945370197296,
-0.25147587060928345,
0.10278507322072983,
0.14571553468704224,
0.3197784125804901,
0.17700748145580292,
0.03714696690440178,
0.0837613195180893,
-0.14891763031482697,
0.12728777527809143,
0.08885277807712555,
0.03500133752822876,
-0.2771315574645996,
0.10284857451915741,
0.11305679380893707,
0.26565998792648315,
-0.021835390478372574,
-0.14155808091163635,
0.005306951701641083,
0.2769886255264282,
-0.23892703652381897,
-0.16279414296150208,
-0.005895264446735382,
0.03017253801226616,
-0.2047068327665329,
-0.14937758445739746,
0.12006358057260513,
0.2149190753698349,
0.08049242943525314,
0.45224282145500183,
-0.06542015075683594,
0.15295223891735077,
0.10122522711753845,
0.12571650743484497,
0.03561006486415863,
0.05523773655295372,
-0.23436887562274933,
0.12002831697463989,
-0.13203415274620056,
0.08768565207719803,
0.09182342886924744,
-0.08081193268299103,
0.14011049270629883,
-0.31844979524612427,
0.29406827688217163,
0.1402846723794937,
-0.12733113765716553,
-0.11808042228221893,
0.28051868081092834,
0.17310082912445068,
-0.1935712844133377,
-0.2677115797996521,
0.16074217855930328,
-0.14253965020179749,
-0.29391714930534363,
-0.21958670020103455,
-0.1048666462302208,
-0.054720234125852585,
-0.20067265629768372,
0.2367423176765442,
-0.14497801661491394,
-0.08553425967693329,
-0.10609238594770432,
0.5601832866668701,
-0.22209984064102173,
0.13971732556819916,
-0.024411194026470184,
0.19485852122306824,
-0.23361946642398834,
-0.16156134009361267,
0.2566443383693695,
0.441744327545166,
0.14203883707523346,
-0.27222251892089844,
0.11537923663854599,
-0.11296769976615906,
-0.15700960159301758,
0.12201423943042755,
0.10719217360019684,
-0.0198499858379364,
-0.1823224425315857,
-0.0009958520531654358,
-0.2053530216217041,
-0.29792091250419617,
-0.14496685564517975,
0.08011702448129654,
-0.06342822313308716,
0.1340636909008026,
0.14512258768081665,
0.3709559738636017,
0.18636301159858704,
-0.030831117182970047,
-0.1437077522277832,
0.4162628650665283,
-0.13591551780700684,
0.17663702368736267,
0.09964291751384735,
-0.3398406505584717,
-0.05740278214216232,
0.23853705823421478,
0.09282912313938141,
0.013856157660484314,
-0.09084907919168472,
-0.0802810937166214,
0.26304537057876587,
-0.1534421592950821,
0.021457869559526443,
0.018419189378619194,
0.4176885187625885,
0.2524665594100952,
0.008336136117577553,
-0.3409607410430908,
-0.39016297459602356,
0.03578353673219681,
0.17552119493484497,
0.27730900049209595,
-0.39702409505844116,
-0.3989877700805664,
0.008767157793045044,
0.13999871909618378,
-0.0044126249849796295,
-0.295222669839859,
0.3023512661457062,
0.12017884850502014,
0.27307963371276855,
0.054856691509485245,
-0.16611672937870026,
0.29471781849861145,
0.1696913242340088,
0.36518698930740356,
-0.08562858402729034,
0.23982052505016327,
-0.024553673341870308,
0.13376384973526,
0.1742674857378006,
0.20114317536354065,
-0.1075865849852562,
-0.07047194242477417,
0.238117516040802,
0.35690248012542725,
0.059996847063302994,
0.18797269463539124,
-0.00022735446691513062,
0.3152746856212616,
0.2906702756881714,
-0.45509496331214905,
-0.012353463098406792,
0.010754370130598545,
0.15913641452789307,
0.10089612752199173,
-0.3764646053314209,
0.2980543076992035,
0.03340385854244232,
0.2150110900402069,
0.24341662228107452,
0.18770097196102142,
0.1787545531988144,
0.016442473977804184,
-0.18475405871868134,
-0.24771809577941895,
-0.14096073806285858,
-0.033129751682281494,
0.22915254533290863,
0.04220205172896385,
-0.41189736127853394,
0.02351979911327362,
0.13401567935943604,
0.0763588547706604,
0.2262377142906189,
0.2506242096424103,
-0.32791316509246826,
0.11500116437673569,
0.07264005392789841,
-0.09250431507825851,
-0.08138197660446167,
0.3656586706638336,
-0.06872786581516266,
0.046538736671209335,
-0.02940380573272705,
0.06427962332963943,
0.15922148525714874,
0.23262161016464233,
-0.061591945588588715,
-0.05334615707397461,
0.32025083899497986,
-0.08599764108657837,
-0.41115477681159973,
-0.4317243695259094,
-0.3528330326080322,
-0.1252928227186203,
0.015458378940820694,
0.20723965764045715,
0.07406537979841232,
-0.35738176107406616,
-0.07181018590927124,
-0.0991952195763588,
-0.12822021543979645,
-0.03251584991812706,
0.17013739049434662,
-0.09721805155277252,
-0.15785890817642212,
0.0978439673781395,
-0.0794849842786789,
0.3728067874908447,
-0.06503017246723175,
-0.05061494559049606,
-0.13810963928699493,
-0.1410694420337677,
0.06816969811916351,
0.24527612328529358,
0.1297215223312378,
-0.04365083947777748,
0.4970511198043823,
-0.1818055361509323,
0.21771150827407837,
-0.07143605500459671,
-0.6038753986358643,
0.20795568823814392,
-0.2219959944486618,
0.06694134324789047,
0.2601526975631714,
0.025422856211662292,
-0.04274452477693558,
-0.30782338976860046,
0.21401964128017426,
-0.22321541607379913,
-0.20107731223106384,
-0.08731668442487717,
-0.030806520953774452,
0.05587804317474365,
-0.2570405900478363,
-0.020482994616031647,
-0.30460041761398315,
-0.37376224994659424,
0.5799281001091003,
0.3882376253604889,
0.0773347020149231,
0.3588075637817383,
0.1341893970966339,
0.1511678546667099,
-0.20826753973960876,
0.29083991050720215,
-0.01880498230457306,
-0.20045192539691925,
0.10119887441396713,
-0.22648683190345764,
-0.177435502409935,
-0.3669337332248688,
-0.46112120151519775,
0.16436059772968292,
-0.10921691358089447,
-0.44499796628952026,
-0.4113682210445404,
-0.35667335987091064,
0.13565434515476227,
0.15777842700481415,
0.06802158057689667,
0.21689486503601074,
0.1167876273393631,
-0.15851211547851562,
-0.03769255802035332,
-0.06548468768596649,
0.06212247163057327,
-0.07252863049507141,
-0.15531659126281738,
-0.14351341128349304,
0.1881381869316101,
0.21584737300872803,
0.30555960536003113,
-0.001428954303264618,
-0.25761470198631287,
0.37827977538108826,
-0.23034393787384033,
0.44550636410713196,
-0.08889470249414444,
-0.22780413925647736,
0.19477535784244537,
-0.09096764028072357,
-0.10135377198457718,
0.2098444104194641,
0.1851087510585785,
-0.011949779465794563,
-0.26141637563705444,
0.12964171171188354,
-0.36125436425209045,
-0.13177724182605743,
-0.006108321249485016,
0.4023696482181549,
0.09612638503313065,
-0.20178307592868805,
-0.14565058052539825,
-0.17563828825950623,
-0.1546916961669922,
0.23082852363586426,
0.25925004482269287,
0.10505963861942291,
-0.09877196699380875,
-0.3308318853378296,
-0.13458670675754547,
-0.4185214936733246,
0.16790351271629333,
0.10195983946323395,
-0.2867427468299866,
-0.011725712567567825,
-0.3100659251213074,
-0.04654625058174133,
-0.11484549939632416,
0.46134626865386963,
0.2549077868461609,
-0.18917734920978546,
-0.06414690613746643,
-0.494261234998703,
-0.19033856689929962,
0.18964694440364838,
-0.25048649311065674,
-0.23181580007076263,
0.04647599905729294,
0.5653117299079895,
-0.46291354298591614,
-0.012569401413202286,
0.24089425802230835,
0.1169804260134697,
-0.09969043731689453,
0.08874044567346573,
-0.1737392693758011,
-0.16073398292064667,
-0.36597520112991333,
0.05243143439292908,
0.08679088205099106,
0.12601646780967712,
0.2443891018629074,
-0.07755395025014877,
-0.07835302501916885,
-0.18511265516281128,
0.17033356428146362,
0.3593093752861023,
0.16597530245780945,
0.13017752766609192,
0.15220926702022552,
0.12698739767074585,
0.20968905091285706,
0.1814197599887848,
0.5121068358421326,
-0.16762788593769073,
-0.3475413918495178,
-0.24839472770690918,
0.22808745503425598,
0.13006316125392914,
0.15361246466636658,
0.1546597182750702,
0.08680035173892975,
0.01865185610949993,
0.2997571527957916,
-0.5460622906684875,
0.2787955403327942,
0.1228044405579567,
0.08752792328596115,
-0.12745524942874908,
-0.18761397898197174,
0.31378665566444397,
0.001030484214425087,
-0.019883640110492706,
0.03155989944934845,
0.15711313486099243,
-0.2454264909029007,
0.32711511850357056,
0.32068049907684326,
0.9124493598937988,
-0.24766691029071808,
0.4266534149646759,
0.18931794166564941,
-0.09250959753990173,
0.5311486721038818,
-0.04481208696961403,
0.11047472059726715,
-0.16872036457061768,
-0.2029666006565094,
-0.03255784139037132,
0.02586803212761879,
-0.0016726329922676086,
-0.10618577897548676,
-0.2975093722343445,
-0.06541059911251068,
0.034939028322696686,
0.2434147149324417,
-0.16784515976905823,
0.13074125349521637,
-0.18965892493724823,
-0.523842990398407,
-0.23970317840576172,
0.26904958486557007,
-0.024247288703918457,
0.1352410763502121,
0.07937750220298767,
-0.17685171961784363,
-0.10833503305912018,
-0.05986376106739044,
-0.2289166897535324,
-0.10763689130544662,
-0.1300199031829834,
0.12077543884515762,
0.19384263455867767,
-0.14580917358398438,
-0.14566734433174133,
0.4169751703739166,
0.19483786821365356,
0.08042269200086594,
-0.2049093395471573,
0.21421454846858978,
-0.2563503384590149,
-0.05039173737168312,
0.016281547024846077,
-0.007907599210739136,
0.3428729176521301,
0.0676555410027504,
0.09944774955511093,
-0.030879981815814972,
0.4023878872394562,
0.0020054206252098083,
-0.12009995430707932,
-0.06235608458518982,
0.07341094315052032,
-0.03601675480604172,
0.06666292250156403,
-0.0057875290513038635,
-0.19319888949394226,
-0.20402446389198303,
0.2201501727104187,
0.12153977155685425,
-0.08448196202516556,
-0.02177334576845169,
0.2299291044473648,
-0.001600421965122223,
-0.08496236801147461,
0.24870365858078003,
0.10872732847929001,
-0.03999874368309975,
0.14478415250778198,
0.20662938058376312,
-0.1634696125984192,
-0.28703776001930237,
0.010567441582679749,
0.10442236065864563,
-0.31253597140312195,
0.2563141882419586,
0.028911367058753967,
-0.2646443843841553,
-0.19343389570713043,
0.2736241817474365,
0.19353550672531128,
-0.09658742696046829,
-0.01740715652704239,
-0.14246806502342224,
-0.5440337657928467,
0.48444443941116333,
-0.18548600375652313,
0.4311850965023041,
-0.11787647008895874,
0.31469860672950745,
0.031005149707198143,
0.22955173254013062,
-0.49623817205429077,
-0.09427295625209808,
-0.33499717712402344,
-0.051916301250457764,
0.038926251232624054,
-0.14239606261253357,
0.1833733320236206,
0.030970092862844467,
0.27891069650650024,
0.27524489164352417,
-0.13415054976940155,
-0.29651331901550293,
-0.21691809594631195,
0.05886406451463699,
-0.03753293678164482,
-0.01926742121577263,
0.04530810937285423,
0.18980808556079865,
-0.09403586387634277,
-0.3373298645019531,
0.18614551424980164,
0.1244533434510231,
0.025607392191886902,
0.07145322114229202,
-0.08455300331115723,
-0.11033984273672104,
0.24151037633419037,
-0.09933888912200928,
-0.026967287063598633,
0.022999532520771027,
0.315670371055603,
-0.11047671735286713,
-0.23128710687160492,
-0.13376006484031677,
0.2842117249965668,
0.3363862931728363,
0.19083061814308167,
-0.18817844986915588,
0.331386923789978,
0.17387452721595764,
-0.13581682741641998,
0.29607802629470825,
0.570459246635437,
-0.19289281964302063,
-0.030264779925346375,
0.304545521736145,
0.2887459695339203,
0.3552333414554596,
-0.48990288376808167,
-0.03020218014717102,
0.14909805357456207,
-0.27901285886764526,
0.34280920028686523,
0.38648703694343567,
-0.058067817240953445,
0.2513227164745331,
-0.16553978621959686,
0.03909912705421448,
0.24716266989707947,
0.12856481969356537,
0.042223185300827026,
0.16328318417072296,
0.07115334272384644,
-0.035317499190568924,
0.2814026474952698,
0.22234763205051422,
0.4916016459465027,
0.2982369661331177,
-0.3283390402793884,
0.2003609538078308,
-0.2592197060585022,
0.05955633893609047,
0.6397053599357605,
-0.029815804213285446,
-0.040905434638261795,
-0.14685285091400146,
0.09880666434764862,
0.20200875401496887,
-0.27766239643096924,
0.1819383203983307,
-0.06023607775568962,
0.00041914754547178745,
-0.2461053431034088,
0.2435380071401596,
0.0016597732901573181,
-0.17156068980693817,
-0.00928443856537342,
-0.11428223550319672,
-0.13452570140361786,
-0.05757816135883331,
0.19743011891841888,
-0.5798606872558594,
0.2328203171491623,
-0.04388636350631714,
0.18973568081855774,
-0.04525014013051987,
-0.3250734806060791,
0.12505704164505005,
0.40755125880241394,
-0.21265524625778198,
-0.0017543230205774307,
0.41545242071151733,
0.007890477776527405,
0.20004421472549438,
0.2997094690799713,
0.29063719511032104,
-0.15519455075263977,
-0.06936292350292206,
0.20892132818698883,
-0.28519773483276367,
-0.2092808037996292,
-0.2767493426799774,
0.13367405533790588,
0.060666874051094055,
0.288274884223938,
0.2665788531303406,
0.23400920629501343,
-0.2467271089553833,
-0.1458462029695511,
-0.1107064038515091,
0.1128113865852356,
-0.29932716488838196,
-0.060628943145275116,
-0.07401100546121597,
-0.0688004121184349,
-0.3113514184951782,
-0.1076536700129509,
-0.5233582258224487,
-0.18015015125274658,
0.03612133115530014,
-0.30566996335983276,
0.020037639886140823,
0.04200126975774765,
0.14256446063518524,
0.030175253748893738,
0.31959956884384155,
0.3467925786972046,
0.2730412185192108,
-0.04819297417998314,
-0.19078868627548218,
-0.422686368227005,
-0.014888815581798553,
-0.01572467014193535,
-0.39229676127433777,
-0.07414600253105164,
0.14702437818050385,
0.18627019226551056,
0.279159277677536,
-0.14558444917201996,
0.0640546977519989,
0.13953112065792084,
-0.008138731122016907,
-0.2670139670372009,
0.17811688780784607,
-0.2636631727218628,
0.12493930011987686,
0.1731795072555542,
-0.005843430757522583,
0.04469805583357811,
-0.03624921664595604,
0.15412339568138123,
-0.08994773775339127,
0.19838988780975342,
-0.35664692521095276,
-0.10971316695213318,
0.21994933485984802,
-0.0706482008099556,
0.17954042553901672,
-0.2729039192199707,
-0.23638367652893066,
0.04827670380473137,
-0.3382723033428192,
-0.23321866989135742,
0.04186468571424484,
0.028385955840349197,
0.5219082832336426,
-0.14849214255809784,
-0.2832041084766388,
0.030070364475250244,
0.19655808806419373,
0.320637583732605,
-0.1321694403886795,
-0.14157025516033173,
0.13386231660842896,
-0.04333395138382912,
-0.11157248169183731,
0.037346500903367996,
0.5520810484886169,
-0.02944224327802658,
-0.19459275901317596,
0.12239168584346771,
-0.6062444448471069,
0.6102465391159058,
-0.45358866453170776,
-0.23977349698543549,
-0.10819914191961288,
-0.04929804801940918,
0.20498275756835938,
0.03362344205379486,
-0.4224794805049896,
0.18011459708213806,
0.16079473495483398,
0.08958310633897781,
-0.27675601840019226,
0.27079254388809204,
0.12729905545711517,
-0.1441141963005066,
-0.12315209209918976,
0.07830651104450226,
0.039430923759937286,
-0.05812978371977806,
-0.031063180416822433,
-0.29707902669906616
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > You can pass this data in .from_dict() - no need to cast anything for this column
>
> ```python
> ds = Dataset.from_dict({
> "image": [...],
> "label": [...],
> "segments_info": [...],
> )}
> ```
>
> where `segments_info` is the list of the segment_infos of all the examples in the dataset, and therefore is a list of lists of dicts.
Thank you for the quick reply @lhoestq , but then how to generate the `segments_info` list of lists of dicts starting from a _panoptic_coco_annotation.json_ file ?
| ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 89 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> You can pass this data in .from_dict() - no need to cast anything for this column
>
> ```python
> ds = Dataset.from_dict({
> "image": [...],
> "label": [...],
> "segments_info": [...],
> )}
> ```
>
> where `segments_info` is the list of the segment_infos of all the examples in the dataset, and therefore is a list of lists of dicts.
Thank you for the quick reply @lhoestq , but then how to generate the `segments_info` list of lists of dicts starting from a _panoptic_coco_annotation.json_ file ?
| [
-0.02137122116982937,
-0.597906768321991,
-0.1236754059791565,
0.3704047203063965,
0.23139213025569916,
0.11230539530515671,
0.05855175480246544,
0.08938165009021759,
-0.04344428330659866,
0.07443316280841827,
-0.5112686157226562,
0.4255460798740387,
-0.2483222931623459,
0.2931901514530182,
0.1064482256770134,
-0.3120375871658325,
0.07389304041862488,
0.07187426090240479,
-0.3489583730697632,
-0.07178252935409546,
0.0112922303378582,
0.3520517945289612,
0.13855458796024323,
-0.023511767387390137,
-0.22781839966773987,
-0.22680997848510742,
-0.3864893615245819,
0.044801101088523865,
-0.14766618609428406,
-0.37771591544151306,
0.27761825919151306,
0.13856269419193268,
0.18262168765068054,
0.22795534133911133,
-0.00010428277164464816,
-0.01002611592411995,
-0.03203164041042328,
-0.1398521214723587,
-0.109082892537117,
-0.22931666672229767,
-0.1960170567035675,
-0.14887967705726624,
0.26295676827430725,
-0.297347754240036,
-0.2544618844985962,
-0.10818652808666229,
-0.045915909111499786,
0.03054039180278778,
0.7334163188934326,
0.23837170004844666,
0.2441314160823822,
0.16314661502838135,
0.16054777801036835,
-0.13949303328990936,
-0.0007017999887466431,
0.5008079409599304,
-0.17935632169246674,
0.24690209329128265,
0.16394922137260437,
0.03616930544376373,
-0.03421209007501602,
0.43907788395881653,
0.022072432562708855,
-0.0536043681204319,
0.46219485998153687,
0.1889507919549942,
-0.17467641830444336,
-0.49576130509376526,
0.03585918992757797,
0.39429542422294617,
0.29569679498672485,
-0.33078059554100037,
-0.3326445519924164,
-0.43789079785346985,
-0.16402408480644226,
-0.2915831506252289,
-0.19684365391731262,
0.2424367070198059,
-0.12120078504085541,
0.2677288055419922,
-0.12631943821907043,
-0.113271564245224,
-0.3005136251449585,
-0.0865262895822525,
0.14367538690567017,
0.004258155822753906,
-0.19404199719429016,
-0.09109742194414139,
0.11153797805309296,
-0.15691590309143066,
-0.2339257001876831,
-0.09573695808649063,
0.007715582847595215,
0.04682736098766327,
-0.04409010335803032,
-0.28378409147262573,
0.16260875761508942,
0.01815076544880867,
0.3666958808898926,
0.24082566797733307,
0.08199137449264526,
-0.009705517441034317,
-0.22313837707042694,
0.027518371120095253,
0.1431381106376648,
0.08935815095901489,
-0.1761550009250641,
0.21079584956169128,
0.03311120718717575,
0.38961586356163025,
0.06869761645793915,
-0.17544367909431458,
-0.09297535568475723,
0.41106170415878296,
-0.21658463776111603,
-0.11854176968336105,
-0.027225244790315628,
0.021559853106737137,
-0.19426771998405457,
0.014794580638408661,
0.034721486270427704,
0.16042102873325348,
0.11357492208480835,
0.41319742798805237,
-0.05607032775878906,
0.2223917543888092,
0.03647278994321823,
0.18264569342136383,
0.12215188890695572,
0.3080998361110687,
-0.2138991504907608,
0.24250249564647675,
-0.07873697578907013,
0.07324406504631042,
0.005506657063961029,
0.12172889709472656,
0.24714648723602295,
-0.20476795732975006,
0.3882390856742859,
-0.039454877376556396,
-0.07453747093677521,
-0.12456366419792175,
0.2774636447429657,
0.1769576370716095,
-0.11803345382213593,
-0.15151537954807281,
0.15022942423820496,
-0.1429108828306198,
-0.3198283612728119,
-0.21302327513694763,
-0.1227613016963005,
-0.1739766001701355,
-0.25312215089797974,
0.17570632696151733,
-0.11307400465011597,
0.0408196821808815,
-0.22395509481430054,
0.5564796328544617,
-0.12986934185028076,
0.31594330072402954,
0.032926045358181,
0.16209626197814941,
-0.09085717797279358,
-0.24550391733646393,
0.23468607664108276,
0.42271989583969116,
-0.005256969481706619,
-0.15842881798744202,
0.14599968492984772,
-0.13580167293548584,
-0.16413620114326477,
0.14750920236110687,
0.01595446467399597,
0.07362803816795349,
-0.23825585842132568,
0.06223364174365997,
-0.2704036235809326,
-0.3036247193813324,
-0.02930768020451069,
0.1545373946428299,
0.0026685819029808044,
0.18402791023254395,
0.2401275336742401,
0.24533630907535553,
0.15891030430793762,
-0.0847686380147934,
0.04307788237929344,
0.28776437044143677,
-0.11980196833610535,
0.09602310508489609,
0.19214165210723877,
-0.27175694704055786,
-0.26958876848220825,
0.09443987905979156,
-0.11616168916225433,
0.0916072279214859,
-0.12977033853530884,
-0.07705596834421158,
0.2867472469806671,
-0.32797107100486755,
0.03656382858753204,
0.1202075183391571,
0.4136682152748108,
0.38062626123428345,
0.03750839829444885,
-0.1876121461391449,
-0.5695513486862183,
0.06116804480552673,
0.217793270945549,
0.2904176712036133,
-0.5781258344650269,
-0.3837704062461853,
-0.13897469639778137,
0.260281503200531,
0.0031659454107284546,
-0.28435343503952026,
0.21595467627048492,
0.1365794837474823,
0.4288271963596344,
-0.04051971063017845,
-0.21402879059314728,
0.20753994584083557,
0.1125902533531189,
0.3188500702381134,
-0.29401880502700806,
0.30676504969596863,
0.0232290867716074,
0.19388419389724731,
0.20523619651794434,
0.2785710394382477,
-0.06565207988023758,
-0.11850890517234802,
0.25559476017951965,
0.293648898601532,
0.202239990234375,
0.1806717813014984,
0.05742929130792618,
0.34228479862213135,
0.27947062253952026,
-0.5258865356445312,
0.0484965443611145,
-0.030609197914600372,
0.20172664523124695,
0.037690334022045135,
-0.35488787293434143,
0.41226035356521606,
-0.04789019003510475,
0.33414822816848755,
0.2152896374464035,
0.2403152585029602,
0.32327911257743835,
0.06802670657634735,
-0.2611241638660431,
-0.2629556655883789,
-0.21439744532108307,
0.007411075755953789,
0.2861357629299164,
-0.11742118000984192,
-0.41983309388160706,
0.14851225912570953,
0.12943494319915771,
-0.06120862811803818,
0.10473256558179855,
0.19927790760993958,
-0.2537798285484314,
0.10886531323194504,
0.068600594997406,
-0.1141979843378067,
-0.042106807231903076,
0.2706383168697357,
-0.06621550023555756,
0.016058772802352905,
-0.10281489789485931,
0.042487986385822296,
0.22124382853507996,
0.26042842864990234,
0.022488661110401154,
-0.03047797828912735,
0.3245558440685272,
-0.11021453887224197,
-0.39262518286705017,
-0.5026431679725647,
-0.4025609791278839,
-0.025144347921013832,
0.07919147610664368,
0.22713714838027954,
0.1949487030506134,
-0.35403555631637573,
-0.05139223486185074,
-0.3119798004627228,
-0.11377561092376709,
0.007039070129394531,
0.06465274095535278,
-0.08075310289859772,
-0.10877406597137451,
0.03939905762672424,
-0.0751894861459732,
0.2580852508544922,
0.0461970716714859,
-0.08910828083753586,
-0.18471719324588776,
-0.24322694540023804,
0.08470097184181213,
0.17558477818965912,
0.06677550822496414,
0.05724390223622322,
0.375649631023407,
-0.24341315031051636,
0.12770402431488037,
-0.14782749116420746,
-0.46302229166030884,
0.3001546263694763,
-0.3440741300582886,
0.04495878517627716,
0.3814982771873474,
0.050082236528396606,
-0.04007954150438309,
-0.36734187602996826,
0.20527434349060059,
-0.020419219508767128,
-0.2570641338825226,
-0.09178655594587326,
-0.09411721676588058,
0.011116358451545238,
-0.14938984811306,
-0.15330761671066284,
-0.24359865486621857,
-0.24738745391368866,
0.6731507182121277,
0.4433039724826813,
0.2016468048095703,
0.28768444061279297,
0.15442277491092682,
0.17580464482307434,
-0.07977218925952911,
0.19014476239681244,
-0.06199847161769867,
-0.23813875019550323,
0.17347674071788788,
-0.21438071131706238,
-0.15181125700473785,
-0.20384998619556427,
-0.5241178274154663,
0.16237568855285645,
-0.21132102608680725,
-0.44568032026290894,
-0.4785197675228119,
-0.40244826674461365,
0.23487257957458496,
0.08132492005825043,
0.08448237180709839,
0.27657997608184814,
0.07393211126327515,
-0.0636194571852684,
-0.10110902786254883,
-0.18347792327404022,
0.1955723762512207,
0.004301182925701141,
-0.11993762105703354,
-0.07549203187227249,
0.35601890087127686,
0.1080293357372284,
0.36150968074798584,
0.19155381619930267,
-0.14342202246189117,
0.23452234268188477,
-0.1819889098405838,
0.37366288900375366,
-0.08764965087175369,
-0.17882569134235382,
0.07963425666093826,
-0.061104774475097656,
-0.17595766484737396,
0.216095969080925,
0.2913166880607605,
0.03815988451242447,
-0.2369617372751236,
0.31143346428871155,
-0.4141714870929718,
-0.09989512711763382,
0.025046974420547485,
0.15903228521347046,
0.054612889885902405,
-0.1697106659412384,
-0.07962784916162491,
-0.3188056945800781,
-0.04434725269675255,
0.11792488396167755,
0.17436857521533966,
0.2285437285900116,
-0.08260343968868256,
-0.5476434230804443,
-0.14064742624759674,
-0.5610058307647705,
0.128589928150177,
0.17875157296657562,
-0.17988038063049316,
0.06636111438274384,
-0.22173672914505005,
-0.04626123607158661,
-0.18280604481697083,
0.43002641201019287,
0.2193281650543213,
-0.15471221506595612,
0.09607963263988495,
-0.3549957275390625,
-0.046856775879859924,
0.20253774523735046,
-0.28989237546920776,
-0.0777667909860611,
0.08030962198972702,
0.6427084803581238,
-0.6179571747779846,
-0.08748110383749008,
0.13073119521141052,
0.164610356092453,
-0.08254742622375488,
0.23150420188903809,
-0.10292142629623413,
-0.3590525984764099,
-0.23025843501091003,
0.057448893785476685,
0.1634323000907898,
0.20735198259353638,
0.1837485432624817,
-0.09096860885620117,
0.06912132352590561,
-0.17730656266212463,
0.15511125326156616,
0.31266283988952637,
0.17475178837776184,
0.14991790056228638,
0.1731819361448288,
0.10278714448213577,
0.11387280374765396,
0.34805917739868164,
0.5684601068496704,
-0.10563679039478302,
-0.5439572334289551,
-0.33346909284591675,
0.21736301481723785,
0.06023004278540611,
0.05516432970762253,
0.1301380842924118,
0.004038296639919281,
-0.001409389078617096,
0.17691786587238312,
-0.4084533751010895,
0.1298212707042694,
0.12904343008995056,
0.012640898115932941,
-0.22579514980316162,
-0.3282683193683624,
0.30407196283340454,
0.057356175035238266,
-0.026174649596214294,
0.0702076405286789,
-0.05621248483657837,
-0.31056809425354004,
0.3973039388656616,
0.2975598871707916,
0.8013889789581299,
-0.21479861438274384,
0.3914029896259308,
0.32234641909599304,
-0.042243633419275284,
0.7052654027938843,
-0.04156609997153282,
0.08117340505123138,
-0.26555055379867554,
-0.09184272587299347,
-0.05833474546670914,
-0.03824404627084732,
-0.004804521799087524,
0.05437175929546356,
-0.17738734185695648,
-0.06707382202148438,
-0.022938773036003113,
0.35416921973228455,
-0.0965152308344841,
0.1375875174999237,
-0.18763390183448792,
-0.5303436517715454,
-0.29918062686920166,
0.19792796671390533,
0.036328308284282684,
0.022263292223215103,
0.0659419447183609,
-0.25317513942718506,
-0.21490168571472168,
-0.12688800692558289,
-0.27155959606170654,
0.010182105004787445,
-0.09825711697340012,
0.11897443979978561,
0.2658860981464386,
-0.2487345039844513,
-0.15753388404846191,
0.4505324363708496,
0.23468875885009766,
-0.0002380162477493286,
-0.1958252340555191,
0.2236419916152954,
-0.14464303851127625,
-0.16866184771060944,
-0.04690329357981682,
-0.08588865399360657,
0.2217443436384201,
0.11552716046571732,
0.0916278287768364,
-0.04124242812395096,
0.2516385018825531,
-0.06528230011463165,
-0.15365973114967346,
-0.07330745458602905,
0.17162281274795532,
-0.059806179255247116,
0.04981621727347374,
0.09140029549598694,
-0.24291963875293732,
-0.23347879946231842,
0.16272473335266113,
0.23030395805835724,
-0.19043578207492828,
-0.04907991737127304,
0.07002197206020355,
0.06368501484394073,
-0.0747242122888565,
0.11330661177635193,
0.23103490471839905,
-0.19994886219501495,
0.14728689193725586,
0.29301717877388,
-0.1392461657524109,
-0.3180501461029053,
0.025072194635868073,
0.022517625242471695,
-0.21296951174736023,
0.3222416043281555,
0.16857276856899261,
-0.24953904747962952,
-0.24722446501255035,
0.3433980941772461,
0.17586377263069153,
0.07793451845645905,
0.0886070728302002,
-0.3216633200645447,
-0.5345094799995422,
0.5031570792198181,
-0.14970926940441132,
0.382209450006485,
-0.1898212730884552,
0.292712926864624,
-0.11935905367136002,
0.20959049463272095,
-0.43163400888442993,
-0.027561848983168602,
-0.3775176405906677,
-0.05491642653942108,
0.08108480274677277,
-0.24524334073066711,
0.23028075695037842,
0.08282522857189178,
0.22933101654052734,
0.21991334855556488,
-0.1793542057275772,
-0.21693015098571777,
-0.16685731709003448,
0.07745713740587234,
0.02211875468492508,
-0.05480725318193436,
-0.04945388063788414,
0.16342014074325562,
-0.1940106898546219,
-0.33629557490348816,
0.1814415454864502,
0.13086456060409546,
-0.02867668867111206,
-0.048165444284677505,
0.03172998130321503,
0.023718945682048798,
0.08019126206636429,
-0.14258500933647156,
0.009570427238941193,
0.11576488614082336,
0.27532875537872314,
-0.07378682494163513,
-0.3437793552875519,
-0.17973119020462036,
0.26894575357437134,
0.36048460006713867,
0.12912698090076447,
-0.08079186826944351,
0.36798837780952454,
0.0887712836265564,
-0.24349112808704376,
0.24152995645999908,
0.596599817276001,
-0.022180922329425812,
0.01866854541003704,
0.3515612781047821,
0.3191881477832794,
0.27224355936050415,
-0.37156832218170166,
-0.1209028959274292,
0.18861140310764313,
-0.28609248995780945,
0.23033663630485535,
0.4644199013710022,
0.0465848483145237,
0.21445807814598083,
-0.15247713029384613,
-0.033805180341005325,
0.2516820728778839,
0.22348040342330933,
0.16514074802398682,
0.2947624623775482,
0.04457860812544823,
-0.06196853891015053,
0.3607237935066223,
0.25444623827934265,
0.5507286190986633,
0.31166326999664307,
-0.2370738983154297,
0.1438872218132019,
-0.1516367793083191,
0.02983771450817585,
0.5121901631355286,
-0.20363864302635193,
-0.11519204080104828,
-0.24317878484725952,
0.1279265284538269,
0.1502893567085266,
-0.3201993703842163,
0.14300620555877686,
-0.08042232692241669,
0.07151880115270615,
-0.2991182208061218,
0.2812865972518921,
-0.034694522619247437,
-0.21459321677684784,
-0.043466705828905106,
-0.18565252423286438,
0.020761363208293915,
-0.12270674109458923,
0.19980885088443756,
-0.591636598110199,
0.2855909466743469,
-0.22190316021442413,
0.15379920601844788,
-0.07081937044858932,
-0.23235753178596497,
0.1577529013156891,
0.29791125655174255,
-0.13179023563861847,
0.08942132443189621,
0.36872148513793945,
-0.017443954944610596,
0.002715364098548889,
0.1823226511478424,
0.1867695301771164,
-0.02008335292339325,
-0.0076877158135175705,
0.23885579407215118,
-0.21210843324661255,
-0.24527741968631744,
-0.1786041259765625,
0.21771493554115295,
-0.03374016284942627,
0.179355651140213,
0.2370714694261551,
0.15720491111278534,
-0.20827224850654602,
-0.09720191359519958,
-0.04904106631875038,
0.17387335002422333,
-0.1964995414018631,
-0.06766877323389053,
-0.11245143413543701,
-0.1574498414993286,
-0.2385522723197937,
0.024446889758110046,
-0.4776493012905121,
-0.24652571976184845,
0.0037625357508659363,
-0.20192916691303253,
0.03528071194887161,
0.05509558692574501,
0.12359392642974854,
-0.16979101300239563,
0.30558913946151733,
0.3763294219970703,
0.23744061589241028,
-0.0656447634100914,
-0.2959496080875397,
-0.2820550799369812,
-0.12831547856330872,
-0.02689792588353157,
-0.488005667924881,
-0.028616998344659805,
0.3114780783653259,
0.21152962744235992,
0.3352155089378357,
-0.27366572618484497,
0.1487245112657547,
0.06861293315887451,
0.09192198514938354,
-0.2616438567638397,
0.12707649171352386,
-0.18212689459323883,
0.19895732402801514,
0.1370626986026764,
-0.017263472080230713,
-0.0022464580833911896,
0.20370949804782867,
0.07168252021074295,
-0.10600417852401733,
0.27042293548583984,
-0.36462512612342834,
-0.13540704548358917,
0.26412510871887207,
0.10435133427381516,
0.12091737240552902,
-0.2450842261314392,
-0.24337570369243622,
0.037212077528238297,
-0.4424283802509308,
-0.07182790338993073,
0.26621297001838684,
0.07201841473579407,
0.6276059150695801,
-0.2333514243364334,
-0.13306798040866852,
-0.07505542784929276,
0.07964042574167252,
0.3478291630744934,
-0.3585076630115509,
-0.14943411946296692,
0.28647878766059875,
-0.31687355041503906,
-0.0826854556798935,
0.039324648678302765,
0.5651717185974121,
-0.0812002420425415,
-0.116945780813694,
0.1955767422914505,
-0.5799965262413025,
0.6345471143722534,
-0.5153084397315979,
-0.36985164880752563,
-0.029387276619672775,
-0.02395576238632202,
0.14805284142494202,
-0.1636744886636734,
-0.23433789610862732,
0.2731730341911316,
0.21700838208198547,
0.003360394388437271,
-0.34170079231262207,
0.17371229827404022,
0.04386001080274582,
-0.11135759949684143,
-0.1054377555847168,
0.24286307394504547,
0.038214124739170074,
-0.09345178306102753,
-0.015925005078315735,
-0.34902244806289673
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | You read the JSON file and transform the data yourself. I don't think there's an automatic converter somewhere | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 18 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
You read the JSON file and transform the data yourself. I don't think there's an automatic converter somewhere | [
-0.12995485961437225,
-0.3851436674594879,
-0.118608757853508,
0.19418677687644958,
0.20388327538967133,
0.025883346796035767,
0.0030266158282756805,
0.18126006424427032,
-0.0772169977426529,
0.2092563360929489,
-0.44672808051109314,
0.27129504084587097,
-0.27274632453918457,
0.4661293625831604,
0.10291130840778351,
-0.3017216920852661,
0.1047726422548294,
0.04302847385406494,
-0.4404652416706085,
0.014519192278385162,
-0.012887667864561081,
0.26143431663513184,
0.17566753923892975,
-0.0820213109254837,
-0.22282668948173523,
-0.07867790013551712,
-0.44083982706069946,
-0.07142236083745956,
-0.20495988428592682,
-0.2195097655057907,
0.018887406215071678,
0.07251131534576416,
0.15888182818889618,
0.35120370984077454,
-0.0000976731680566445,
0.0175539031624794,
-0.08894495666027069,
-0.1506997048854828,
-0.04856856167316437,
-0.142649307847023,
0.061531223356723785,
-0.17740406095981598,
0.07851815223693848,
-0.16836509108543396,
-0.2598983645439148,
-0.047612205147743225,
0.1691189855337143,
-0.11233745515346527,
0.7250905632972717,
0.16516408324241638,
0.326293021440506,
0.25280919671058655,
0.18159683048725128,
-0.04517244175076485,
-0.06850602477788925,
0.5161444544792175,
-0.1546046882867813,
0.2255428582429886,
0.13084323704242706,
0.1587691605091095,
-0.17628514766693115,
0.5334993004798889,
0.06849365681409836,
-0.001559348776936531,
0.43739011883735657,
0.06725038588047028,
-0.16212165355682373,
-0.3473370373249054,
-0.035931073129177094,
0.32077857851982117,
0.09025245904922485,
-0.24536585807800293,
-0.37236353754997253,
-0.3973107635974884,
-0.018296245485544205,
-0.16129904985427856,
-0.034896112978458405,
0.27468034625053406,
-0.13560734689235687,
0.2917870581150055,
-0.2973799407482147,
-0.1815636157989502,
-0.20081020891666412,
-0.1663750410079956,
-0.09726442396640778,
0.047629084438085556,
-0.25698015093803406,
-0.19401070475578308,
0.15561504662036896,
-0.17757943272590637,
-0.3420216739177704,
0.050253380089998245,
0.09200821816921234,
-0.008050418458878994,
0.02238103747367859,
-0.34793904423713684,
-0.046580322086811066,
0.09562946856021881,
0.28618717193603516,
0.09912916272878647,
0.045549266040325165,
0.10711651295423508,
-0.2688314914703369,
0.14295640587806702,
0.015085045248270035,
0.08455489575862885,
-0.21752354502677917,
-0.0994175598025322,
0.18586696684360504,
0.12285836040973663,
0.07733240723609924,
-0.10547050088644028,
-0.07579109817743301,
0.23189012706279755,
-0.3659258484840393,
-0.1434592306613922,
0.03941193222999573,
0.009363364428281784,
-0.1612309068441391,
-0.2622867226600647,
0.028004273772239685,
0.23130369186401367,
-0.0076558878645300865,
0.368612140417099,
-0.023925334215164185,
0.21461400389671326,
0.19572106003761292,
0.13611376285552979,
0.025217192247509956,
-0.13180191814899445,
-0.129921093583107,
0.08311482518911362,
-0.11194513738155365,
0.14257310330867767,
0.08419224619865417,
-0.06730864942073822,
0.1263679563999176,
-0.3334554135799408,
0.18656215071678162,
0.13344182074069977,
-0.13207577168941498,
0.04616764560341835,
0.28760385513305664,
0.09226375818252563,
-0.0995156317949295,
-0.24367064237594604,
0.12712867558002472,
-0.16773554682731628,
-0.28178104758262634,
-0.1925932765007019,
-0.18254709243774414,
0.04350819066166878,
-0.24376852810382843,
0.23403862118721008,
-0.11687253415584564,
-0.15960729122161865,
-0.3291550874710083,
0.6357626914978027,
-0.2723090648651123,
0.13382655382156372,
-0.002903260290622711,
0.14604851603507996,
-0.15521062910556793,
-0.07436267286539078,
0.1294875144958496,
0.3157358765602112,
0.05289718136191368,
-0.3335501253604889,
0.14694862067699432,
-0.19582518935203552,
-0.1835857331752777,
0.12209919095039368,
0.09231370687484741,
-0.05095536261796951,
-0.14795778691768646,
0.0595635324716568,
-0.1745452880859375,
-0.2027454376220703,
-0.08176480233669281,
0.09044479578733444,
-0.1498863697052002,
0.09560423344373703,
0.04221326857805252,
0.38277286291122437,
0.12740963697433472,
-0.000252148718573153,
-0.11675435304641724,
0.44691747426986694,
-0.07737703621387482,
0.2511535882949829,
0.17357203364372253,
-0.429656445980072,
-0.00952175259590149,
0.20647522807121277,
0.03950692340731621,
0.07033570855855942,
-0.019926264882087708,
-0.03911565989255905,
0.12149655818939209,
-0.24265611171722412,
0.08189111202955246,
0.05534270405769348,
0.31784430146217346,
0.17712198197841644,
-0.010942455381155014,
-0.26406410336494446,
-0.32701173424720764,
-0.05982968956232071,
0.03740042448043823,
0.24862217903137207,
-0.38404983282089233,
-0.3876771926879883,
0.021372303366661072,
0.08311820030212402,
-0.010219696909189224,
-0.22714394330978394,
0.298177570104599,
0.14537246525287628,
0.23407235741615295,
0.03147180750966072,
-0.15383414924144745,
0.3145238161087036,
0.20106424391269684,
0.3687761425971985,
-0.323062926530838,
0.20055724680423737,
-0.00505734421312809,
0.10180271416902542,
0.3262885510921478,
0.026936914771795273,
-0.14252647757530212,
-0.1365901231765747,
0.17425844073295593,
0.3184303343296051,
-0.050802167505025864,
0.3510318994522095,
0.08973878622055054,
0.3393853008747101,
0.3508790135383606,
-0.3860063850879669,
0.03074660338461399,
0.02371314726769924,
0.09653937816619873,
0.15817996859550476,
-0.5058409571647644,
0.38743114471435547,
-0.020591504871845245,
0.16784539818763733,
0.19412346184253693,
0.1270298957824707,
0.3485408425331116,
0.006919238716363907,
-0.2774125039577484,
-0.1781635880470276,
-0.23815329372882843,
-0.03302815929055214,
0.19839628040790558,
0.04198675975203514,
-0.3944363594055176,
0.053207945078611374,
0.29600489139556885,
-0.007527481764554977,
0.16784222424030304,
0.3574348986148834,
-0.3802962601184845,
-0.000367727130651474,
0.049152303487062454,
-0.052323926240205765,
-0.09274826943874359,
0.3707881271839142,
0.0018311180174350739,
0.12630079686641693,
0.03325221687555313,
0.03138244152069092,
0.14195549488067627,
0.14718516170978546,
0.10046658664941788,
-0.008355855941772461,
0.329162061214447,
-0.13540412485599518,
-0.4970642924308777,
-0.3529972434043884,
-0.3516053855419159,
-0.08640710264444351,
-0.02368871495127678,
0.1896211802959442,
-0.07260676473379135,
-0.2941991686820984,
-0.1531364619731903,
-0.061164576560258865,
-0.14013932645320892,
-0.020668089389801025,
0.1925256997346878,
-0.03119879588484764,
-0.10502427816390991,
-0.08010748028755188,
0.0017429608851671219,
0.41291096806526184,
-0.04470182955265045,
-0.0033932477235794067,
-0.20244289934635162,
-0.13565219938755035,
-0.02206254005432129,
0.23864829540252686,
0.2711695730686188,
-0.06744753569364548,
0.4445544481277466,
-0.29297539591789246,
0.3572104573249817,
-0.027113238349556923,
-0.6261624097824097,
0.2434660941362381,
-0.08938606083393097,
0.018537012860178947,
0.10024504363536835,
0.07838936150074005,
-0.012779902666807175,
-0.2785620391368866,
0.17040283977985382,
-0.20881672203540802,
-0.33089250326156616,
-0.06646301597356796,
-0.12171098589897156,
0.02114657685160637,
-0.27871784567832947,
-0.07241015881299973,
-0.2521306574344635,
-0.30805450677871704,
0.5980477929115295,
0.33636245131492615,
0.027459345757961273,
0.1611628383398056,
0.24960008263587952,
0.2323506772518158,
-0.27110758423805237,
0.23281675577163696,
0.032157961279153824,
-0.31047120690345764,
0.2574129104614258,
-0.29380887746810913,
-0.21401198208332062,
-0.24500177800655365,
-0.2796584963798523,
0.13456924259662628,
-0.12655779719352722,
-0.422666072845459,
-0.3534231185913086,
-0.31565967202186584,
0.0929017961025238,
0.14421407878398895,
0.0506870299577713,
0.3084224462509155,
0.08358614146709442,
-0.1784440577030182,
-0.042404502630233765,
-0.08370724320411682,
0.0845978781580925,
-0.014588523656129837,
-0.0569070503115654,
-0.1592494249343872,
0.290137380361557,
0.21308448910713196,
0.24201646447181702,
-0.03073420375585556,
-0.35737374424934387,
0.29412102699279785,
-0.14399895071983337,
0.412039577960968,
-0.12179716676473618,
-0.10367907583713531,
0.16493096947669983,
-0.21360081434249878,
0.027934540063142776,
0.26835161447525024,
0.1908261775970459,
-0.027651449665427208,
-0.2968147397041321,
-0.06261350959539413,
-0.44795554876327515,
-0.12237505614757538,
0.06553494930267334,
0.4311521053314209,
0.0168750062584877,
-0.24478888511657715,
-0.1330834925174713,
-0.15908145904541016,
-0.12196800112724304,
0.29061922430992126,
0.3010164499282837,
0.129904642701149,
0.05347169563174248,
-0.4461638629436493,
-0.20848283171653748,
-0.37370020151138306,
0.22568613290786743,
0.011816657148301601,
-0.2642051577568054,
0.044008854776620865,
-0.2920737862586975,
-0.09010328352451324,
-0.2926254868507385,
0.38679319620132446,
0.3098418116569519,
-0.24165333807468414,
-0.13258902728557587,
-0.41675031185150146,
-0.1478257030248642,
0.2241700440645218,
-0.2957982122898102,
-0.16338391602039337,
0.08546046912670135,
0.643816351890564,
-0.4043274521827698,
-0.02795427106320858,
0.15640674531459808,
0.12694135308265686,
-0.15258236229419708,
0.11046720296144485,
-0.11109590530395508,
-0.16305774450302124,
-0.4329102635383606,
0.0686466321349144,
-0.015487698838114738,
0.11714542657136917,
0.19368933141231537,
-0.14487184584140778,
-0.05432197451591492,
-0.12968996167182922,
0.19915030896663666,
0.36292603611946106,
0.104043148458004,
0.21876740455627441,
-0.026704130694270134,
0.16308581829071045,
0.28435248136520386,
0.17951755225658417,
0.4680800437927246,
0.009184708818793297,
-0.3490183651447296,
-0.14163923263549805,
0.26166656613349915,
0.16641445457935333,
0.14509809017181396,
0.24166037142276764,
0.030305493623018265,
0.2473326325416565,
0.2382769137620926,
-0.5870230793952942,
0.31560438871383667,
0.07408294081687927,
-0.0028997771441936493,
-0.1606127917766571,
-0.09981425851583481,
0.44300568103790283,
-0.01721249520778656,
0.07532031834125519,
-0.0186782106757164,
0.21081383526325226,
-0.2878068685531616,
0.27548325061798096,
0.4089187979698181,
0.8832243084907532,
-0.20296664535999298,
0.35483184456825256,
0.1902799904346466,
-0.21857893466949463,
0.5379935503005981,
-0.26268571615219116,
0.1518789529800415,
-0.1402798295021057,
-0.03027937561273575,
-0.0748986303806305,
0.0224919356405735,
0.12495635449886322,
0.0037461556494235992,
-0.3039134442806244,
-0.10408663749694824,
0.13240569829940796,
0.23074066638946533,
-0.11129061132669449,
0.22946980595588684,
-0.23690414428710938,
-0.5721384882926941,
-0.31207898259162903,
0.28567421436309814,
-0.1704273670911789,
0.14046379923820496,
0.19938454031944275,
-0.33079200983047485,
-0.14008986949920654,
0.06657417863607407,
-0.07058022916316986,
-0.01489755604416132,
-0.0798148363828659,
-0.0193585567176342,
0.19590872526168823,
-0.01873686909675598,
-0.07003623247146606,
0.30618858337402344,
0.28280091285705566,
0.12571263313293457,
-0.2674567699432373,
0.16020871698856354,
-0.31386348605155945,
-0.05129322409629822,
0.05128328874707222,
-0.05208873376250267,
0.2418980747461319,
0.011002454906702042,
0.17437487840652466,
-0.014573656022548676,
0.37684157490730286,
-0.1260448396205902,
-0.0886681079864502,
-0.16196444630622864,
-0.09995108842849731,
0.016347698867321014,
0.08352845907211304,
0.14905712008476257,
-0.11359597742557526,
-0.16321036219596863,
0.22056008875370026,
0.08271441608667374,
-0.0744030773639679,
-0.009299039840698242,
0.27191945910453796,
-0.038882676512002945,
-0.08104009926319122,
0.2438836395740509,
0.0880218967795372,
-0.07346360385417938,
0.1640739142894745,
0.17485235631465912,
-0.15887492895126343,
-0.24400892853736877,
0.13227903842926025,
0.1811300367116928,
-0.3052610456943512,
0.2666063606739044,
-0.06624332070350647,
-0.26121777296066284,
-0.12843425571918488,
0.17982926964759827,
0.14501254260540009,
-0.1308681070804596,
0.05305996164679527,
-0.2139417678117752,
-0.5611127018928528,
0.4291344881057739,
-0.11177916824817657,
0.3521428108215332,
0.06871358305215836,
0.2779719829559326,
-0.02515282854437828,
0.19662010669708252,
-0.4875456392765045,
-0.11464498937129974,
-0.21414390206336975,
-0.02070990577340126,
0.05136909335851669,
-0.0915723666548729,
0.04812678322196007,
0.057507824152708054,
0.21418960392475128,
0.3336542248725891,
-0.15762686729431152,
-0.28669729828834534,
-0.22905878722667694,
0.064466193318367,
-0.042124368250370026,
0.07933215796947479,
0.07261775434017181,
0.14668020606040955,
-0.10231068730354309,
-0.28123021125793457,
0.15679870545864105,
0.09067564457654953,
0.012064792215824127,
0.09846093505620956,
-0.1826331466436386,
-0.1586606502532959,
0.3028547763824463,
-0.25256842374801636,
0.0912870392203331,
0.09356103837490082,
0.23805198073387146,
0.017486276105046272,
-0.19767095148563385,
-0.08734265714883804,
0.18444454669952393,
0.3662644922733307,
0.22683678567409515,
-0.152238667011261,
0.398825079202652,
0.07075560092926025,
-0.06294851005077362,
0.28196606040000916,
0.4250923693180084,
-0.22802641987800598,
-0.04783538356423378,
0.36660709977149963,
0.28534770011901855,
0.319225549697876,
-0.44556960463523865,
-0.05280856043100357,
0.17052382230758667,
-0.3576315939426422,
0.20364806056022644,
0.24535612761974335,
0.03283722326159477,
0.29912224411964417,
-0.03251604735851288,
-0.026109367609024048,
0.1405314803123474,
0.12663176655769348,
0.044732388108968735,
0.138712078332901,
-0.0046551041305065155,
-0.09030164778232574,
0.35829856991767883,
0.21906371414661407,
0.4443473815917969,
0.22584958374500275,
-0.23179063200950623,
0.15857914090156555,
-0.15481942892074585,
0.20587937533855438,
0.6305296421051025,
0.03778127208352089,
-0.13723383843898773,
-0.017689600586891174,
0.15962716937065125,
0.36174505949020386,
-0.08854493498802185,
0.2126334309577942,
-0.0777745172381401,
-0.09689806401729584,
-0.3358454704284668,
0.3815285563468933,
0.005664391443133354,
-0.21576350927352905,
-0.18841589987277985,
-0.22250154614448547,
-0.1705564260482788,
0.13426755368709564,
0.0971042662858963,
-0.5431169867515564,
0.17479479312896729,
0.014030389487743378,
0.09316238760948181,
0.00472259521484375,
-0.23962166905403137,
0.044233184307813644,
0.37194952368736267,
-0.21395596861839294,
0.06276311725378036,
0.4252104163169861,
-0.10154794156551361,
0.22701473534107208,
0.3418866693973541,
0.2355581372976303,
-0.0989990234375,
-0.0533384270966053,
0.27178406715393066,
-0.2327107936143875,
-0.3079342842102051,
-0.16749083995819092,
0.18860696256160736,
0.14031383395195007,
0.11514157056808472,
0.25009703636169434,
0.2516145706176758,
-0.23138636350631714,
-0.06530316174030304,
-0.17093878984451294,
0.2154218852519989,
-0.1584673970937729,
-0.12948349118232727,
-0.09819422662258148,
0.024312056601047516,
-0.3232311010360718,
-0.16075506806373596,
-0.5730795860290527,
-0.22922880947589874,
-0.009666107594966888,
-0.32212430238723755,
-0.056071385741233826,
-0.02734174206852913,
0.14954648911952972,
0.08453185111284256,
0.32194414734840393,
0.3294869065284729,
0.12145289033651352,
0.12740865349769592,
-0.2071283757686615,
-0.3104439973831177,
-0.008036196231842041,
0.13260434567928314,
-0.21522489190101624,
-0.15866512060165405,
0.14889943599700928,
0.274356871843338,
0.3461787700653076,
-0.16794587671756744,
0.007927879691123962,
0.11874336749315262,
0.0434192456305027,
-0.12774887681007385,
0.2610795795917511,
-0.10653649270534515,
0.21338167786598206,
0.16435058414936066,
-0.06526008993387222,
0.19984637200832367,
-0.03840605914592743,
0.1386854648590088,
-0.06523661315441132,
0.3069239854812622,
-0.3792196810245514,
-0.1450127363204956,
0.3244454562664032,
0.042717933654785156,
0.0737820416688919,
-0.2817232310771942,
-0.21882525086402893,
0.031132200732827187,
-0.2582491934299469,
-0.2804432213306427,
0.08588242530822754,
0.026355117559432983,
0.6108748912811279,
-0.12580078840255737,
-0.18154606223106384,
0.06551364064216614,
0.10501623898744583,
0.16191065311431885,
-0.1909419596195221,
-0.2569063603878021,
0.16784550249576569,
-0.21308523416519165,
-0.2020217478275299,
0.09359466284513474,
0.5410298705101013,
0.054412633180618286,
-0.2885746657848358,
0.045271679759025574,
-0.42565011978149414,
0.43785274028778076,
-0.4401428699493408,
-0.25868549942970276,
0.05651725083589554,
-0.2331019639968872,
0.2718503177165985,
0.001870419830083847,
-0.352314293384552,
0.22064131498336792,
0.09728147834539413,
0.05461658537387848,
-0.12161892652511597,
0.33341899514198303,
0.04648652672767639,
-0.17152349650859833,
-0.20238496363162994,
0.08492118120193481,
0.1869739294052124,
-0.08617503941059113,
-0.08902216702699661,
-0.29597681760787964
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | > You read the JSON file and transform the data yourself. I don't think there's an automatic converter somewhere
Perfect, I've done it and succesfully uploaded a new dataset [here](https://huggingface.co/datasets/lombardata/panoptic_2023_06_22), but I've (I hope) a last problem.
The dataset has currently 302 images and, when I upload it to the hub, only the first page of images is correctly uploaded.
When I try to see the second/third/fourth page of items of my dataset, I can see that the fields **segments_info** and **image_name** are correctly uploaded, while the images are not (the "null" string is shown everywhere).
I've checked the path of images that are not uploaded and they exists, is there a problem with the size of the dataset ?
How can I upload the whole dataset to the hub ?
Thank you again @lhoestq and have a good day ! | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 141 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
> You read the JSON file and transform the data yourself. I don't think there's an automatic converter somewhere
Perfect, I've done it and succesfully uploaded a new dataset [here](https://huggingface.co/datasets/lombardata/panoptic_2023_06_22), but I've (I hope) a last problem.
The dataset has currently 302 images and, when I upload it to the hub, only the first page of images is correctly uploaded.
When I try to see the second/third/fourth page of items of my dataset, I can see that the fields **segments_info** and **image_name** are correctly uploaded, while the images are not (the "null" string is shown everywhere).
I've checked the path of images that are not uploaded and they exists, is there a problem with the size of the dataset ?
How can I upload the whole dataset to the hub ?
Thank you again @lhoestq and have a good day ! | [
0.0614640899002552,
-0.4755616784095764,
-0.0335194393992424,
0.49291157722473145,
0.1936180591583252,
0.18587139248847961,
-0.010941479355096817,
0.27351799607276917,
-0.16582906246185303,
0.24338769912719727,
-0.2654048204421997,
-0.02650720439851284,
-0.05747360736131668,
0.306972473859787,
0.006176745519042015,
0.05306803062558174,
0.22520038485527039,
0.03075680136680603,
-0.34946808218955994,
-0.17814138531684875,
-0.03158750757575035,
0.19064700603485107,
0.04856601357460022,
-0.25659722089767456,
-0.6064169406890869,
-0.08914368599653244,
-0.4658315181732178,
0.22169604897499084,
-0.2909117639064789,
-0.25406888127326965,
0.14684365689754486,
0.1421697735786438,
0.13764581084251404,
0.5812132358551025,
-0.0001204318759846501,
-0.09534887969493866,
0.3889803886413574,
-0.1589750200510025,
-0.2786877155303955,
-0.19868434965610504,
-0.23768311738967896,
-0.27748948335647583,
0.14838509261608124,
-0.12420649081468582,
0.03882478177547455,
0.247293159365654,
0.06928320974111557,
0.13336524367332458,
0.447598397731781,
0.18189015984535217,
0.1420438587665558,
0.1272137463092804,
0.26255181431770325,
-0.022225918248295784,
-0.08906645327806473,
0.4605824947357178,
-0.14933201670646667,
0.2865303158760071,
0.1469547152519226,
0.06342300772666931,
-0.15995222330093384,
0.3275870382785797,
0.17749515175819397,
-0.0003361199051141739,
0.43459463119506836,
0.05975993722677231,
-0.29500412940979004,
-0.6684584617614746,
0.075980544090271,
0.1780044436454773,
0.15370893478393555,
-0.09515465050935745,
-0.41870027780532837,
-0.5723909139633179,
-0.15753670036792755,
-0.3831143081188202,
0.061165302991867065,
0.3118036091327667,
-0.06516817212104797,
0.04584968835115433,
-0.30822044610977173,
-0.11204113066196442,
-0.3140473961830139,
-0.0014769434928894043,
-0.16818445920944214,
0.1068035289645195,
-0.14618255198001862,
-0.02064622938632965,
0.10080378502607346,
-0.0023739784955978394,
0.14872519671916962,
-0.2623223662376404,
0.1628495305776596,
0.09102336317300797,
-0.1011836975812912,
0.03621988743543625,
0.09016655385494232,
0.41157108545303345,
0.2268979251384735,
0.11530765891075134,
-0.1027866080403328,
0.08897405862808228,
-0.33399316668510437,
-0.1073581650853157,
0.28966715931892395,
0.2772286832332611,
-0.21100616455078125,
0.1387992650270462,
0.11681823432445526,
0.382333368062973,
0.19431735575199127,
-0.2035594880580902,
-0.19508326053619385,
0.11757633090019226,
-0.376335471868515,
-0.17080095410346985,
0.15884818136692047,
-0.06836661696434021,
-0.10495645552873611,
-0.10201045125722885,
0.26947060227394104,
0.11051709949970245,
0.09007228165864944,
0.18303774297237396,
0.05592060461640358,
0.46875494718551636,
-0.04697081446647644,
0.1475326120853424,
-0.23648938536643982,
-0.18658095598220825,
-0.2714868485927582,
0.09534947574138641,
-0.14592935144901276,
0.14115557074546814,
0.14218689501285553,
-0.24084517359733582,
0.005493967793881893,
-0.23060385882854462,
0.3683848977088928,
-0.036376915872097015,
-0.2261315882205963,
-0.3952473998069763,
0.2588350772857666,
0.20807625353336334,
0.06700290739536285,
0.33307981491088867,
0.25397682189941406,
-0.2614060044288635,
-0.13477417826652527,
-0.104410819709301,
-0.41278550028800964,
-0.13771140575408936,
0.006601961329579353,
-0.002224844880402088,
-0.29630738496780396,
0.14056867361068726,
-0.5165125727653503,
0.4010057747364044,
-0.11270890384912491,
0.22481778264045715,
-0.10394575446844101,
0.16467756032943726,
-0.03934716060757637,
-0.0006032412638887763,
0.09639282524585724,
0.7006492614746094,
0.07620890438556671,
-0.028860893100500107,
0.044784657657146454,
0.04692956060171127,
0.0050157830119132996,
0.09986290335655212,
0.04538962244987488,
0.1973491907119751,
-0.27394840121269226,
-0.012424580752849579,
-0.307184636592865,
-0.4772798717021942,
-0.2647000849246979,
0.0017654425464570522,
-0.08690997958183289,
0.1686229705810547,
-0.04849987477064133,
0.19734376668930054,
0.06212899088859558,
-0.11031665652990341,
0.008275017142295837,
0.04447531700134277,
-0.06030204892158508,
0.051255956292152405,
-0.10173909366130829,
-0.18127937614917755,
-0.08846764266490936,
0.1521090865135193,
0.22176912426948547,
0.039601657539606094,
-0.0808512344956398,
0.02780706062912941,
0.04155048727989197,
-0.2434675097465515,
0.3208054304122925,
0.2593482732772827,
0.27317705750465393,
0.05757036432623863,
0.0031338990665972233,
0.29179829359054565,
-0.5339238047599792,
0.227504700422287,
0.27650097012519836,
0.20378290116786957,
-0.36317700147628784,
0.023637890815734863,
-0.1010037362575531,
0.04433724284172058,
-0.17108426988124847,
0.03585519641637802,
0.0708438977599144,
0.11229581385850906,
0.1840384304523468,
-0.02136305347084999,
-0.2860310971736908,
0.6967136263847351,
-0.12893113493919373,
0.3081602454185486,
-0.5069413185119629,
0.5682076811790466,
-0.0015284568071365356,
0.09114785492420197,
0.2902688682079315,
0.05192378908395767,
0.1590716391801834,
-0.1567266881465912,
0.024843662977218628,
0.3572743237018585,
0.0003217095509171486,
0.4571303725242615,
0.12876519560813904,
0.26381757855415344,
0.5280417203903198,
-0.4426829516887665,
-0.027050597593188286,
-0.25858426094055176,
0.1683017611503601,
-0.039301998913288116,
-0.6212947964668274,
0.08515443652868271,
-0.40688925981521606,
0.39429590106010437,
0.1829318106174469,
-0.10080140084028244,
0.19573628902435303,
0.10294203460216522,
-0.35590437054634094,
-0.1967669129371643,
0.019831139594316483,
-0.08231028914451599,
0.3328118622303009,
-0.07515426725149155,
-0.01729600504040718,
0.04135263338685036,
0.08294589817523956,
0.07316946983337402,
-0.10935216397047043,
0.34160852432250977,
-0.3168821632862091,
0.046660490334033966,
0.20239850878715515,
0.041144270449876785,
0.14591750502586365,
0.190978541970253,
0.0655975192785263,
-0.05792653560638428,
0.08035478740930557,
-0.020311539992690086,
0.008132964372634888,
0.36687171459198,
0.08740049600601196,
0.07271353900432587,
0.347560852766037,
-0.01257395837455988,
-0.5388248562812805,
-0.11523900926113129,
-0.04585058242082596,
0.19774334132671356,
-0.08748577535152435,
-0.00140419602394104,
-0.030441701412200928,
-0.27888479828834534,
0.09602188318967819,
-0.17283716797828674,
-0.2116343230009079,
-0.24609899520874023,
-0.06480743736028671,
0.043246615678071976,
-0.02598915435373783,
-0.20418822765350342,
-0.10590623319149017,
0.3999146819114685,
-0.16536098718643188,
0.12562787532806396,
-0.23905381560325623,
0.04867096245288849,
-0.07859978079795837,
-0.01809416338801384,
0.3134956657886505,
-0.09497412294149399,
0.17089307308197021,
-0.3479057252407074,
0.3184204697608948,
-0.10536216199398041,
-0.4649737775325775,
0.2934938073158264,
-0.048560380935668945,
-0.048095837235450745,
-0.18417707085609436,
0.245372474193573,
0.06039275974035263,
-0.268038272857666,
0.28407809138298035,
0.05839415639638901,
-0.23624765872955322,
0.04494013637304306,
-0.15400908887386322,
-0.06476238369941711,
-0.04865899309515953,
0.03983474150300026,
-0.10318902879953384,
-0.19918574392795563,
0.2894408106803894,
0.43245983123779297,
0.14976659417152405,
0.3987547755241394,
0.1940504014492035,
-0.07087720930576324,
-0.14476284384727478,
-0.15101109445095062,
-0.07419328391551971,
-0.4508908987045288,
0.4470256268978119,
-0.0331588089466095,
-0.37096235156059265,
-0.045286260545253754,
-0.3282061815261841,
0.23968017101287842,
-0.1329614520072937,
-0.602968156337738,
-0.5274671316146851,
-0.31379786133766174,
-0.008122909814119339,
0.11605729162693024,
0.17347383499145508,
0.3755172789096832,
-0.1980617642402649,
0.014239301905035973,
-0.08144475519657135,
-0.4017980396747589,
-0.118781678378582,
0.29755038022994995,
0.2661967873573303,
-0.24356776475906372,
0.2563750743865967,
0.24098601937294006,
0.294052392244339,
0.4499686360359192,
-0.06789019703865051,
0.49309247732162476,
0.03247092291712761,
0.5343122482299805,
-0.30792587995529175,
-0.30759474635124207,
0.34740400314331055,
-0.1350887417793274,
-0.06648668646812439,
0.36512112617492676,
0.29510268568992615,
-0.06487119942903519,
-0.2609094977378845,
0.04980819299817085,
-0.6968280673027039,
-0.13479438424110413,
0.03646078705787659,
0.4591182768344879,
0.03650730848312378,
-0.02513432875275612,
-0.20589280128479004,
-0.4460964798927307,
-0.2734045088291168,
0.09661413729190826,
0.10872527211904526,
0.2286786139011383,
0.030796678736805916,
-0.472363144159317,
-0.126973494887352,
-0.6601268649101257,
0.17851567268371582,
-0.0908106341958046,
-0.047652024775743484,
0.07475683093070984,
-0.10401617735624313,
0.09710560739040375,
-0.15339423716068268,
0.6622586846351624,
0.12214856594800949,
-0.24774612486362457,
0.12241953611373901,
-0.3386554718017578,
-0.3896414339542389,
0.06625424325466156,
-0.13041822612285614,
0.10796850174665451,
0.0158066526055336,
0.661409318447113,
-0.4974091649055481,
0.10328920930624008,
-0.04790002107620239,
0.1450912356376648,
-0.1957216113805771,
0.11218889057636261,
-0.2237168550491333,
-0.16999638080596924,
-0.33085089921951294,
-0.07500297576189041,
0.14228472113609314,
0.24281591176986694,
0.015803977847099304,
-0.1697908192873001,
0.1419692188501358,
-0.24921724200248718,
0.2186756432056427,
0.17239698767662048,
0.3695693016052246,
0.5466687679290771,
0.1713598072528839,
0.32050150632858276,
0.1313907504081726,
0.310744971036911,
0.6932376027107239,
-0.01999508962035179,
-0.12054339051246643,
0.24108761548995972,
0.1426030993461609,
0.17167061567306519,
0.4279673993587494,
0.29120132327079773,
-0.3416762948036194,
0.04080956429243088,
0.3662048578262329,
-0.681060254573822,
0.4306817054748535,
0.08827979862689972,
-0.15237608551979065,
-0.551979660987854,
0.15448999404907227,
0.4351394474506378,
-0.030367154628038406,
0.018172718584537506,
0.17068558931350708,
0.4060109853744507,
-0.22745022177696228,
0.09012093394994736,
0.19392187893390656,
1.117227554321289,
-0.38943636417388916,
0.258921355009079,
-0.04291314631700516,
-0.07840627431869507,
0.5637026429176331,
-0.28443849086761475,
0.1065506562590599,
-0.11973145604133606,
-0.11514593660831451,
-0.009258287027478218,
0.05097905918955803,
-0.020940855145454407,
0.04811558872461319,
-0.04282090440392494,
0.046485818922519684,
0.040664829313755035,
0.4378296136856079,
-0.18415801227092743,
0.28783270716667175,
-0.2859996259212494,
-0.5585126280784607,
-0.0006364881992340088,
0.13544367253780365,
-0.08340707421302795,
0.2699181139469147,
0.05731769651174545,
-0.05890555679798126,
-0.3915413022041321,
-0.1235218495130539,
-0.23228594660758972,
-0.1434272974729538,
0.008261054754257202,
-0.13324160873889923,
0.13697543740272522,
-0.21604496240615845,
-0.17193080484867096,
0.2823992371559143,
0.3321552872657776,
-0.04808193817734718,
-0.3179855942726135,
0.2600633203983307,
-0.3672820031642914,
-0.02201860025525093,
-0.005186005495488644,
-0.11115988343954086,
-0.06880990415811539,
-0.019070545211434364,
0.1982017457485199,
-0.1852646768093109,
0.12461958825588226,
0.0006667785346508026,
-0.2915576696395874,
0.24815824627876282,
0.21366941928863525,
-0.12496607005596161,
-0.08388394117355347,
0.2891272306442261,
-0.053170666098594666,
-0.14760009944438934,
0.05843490734696388,
0.2109307497739792,
0.07335677742958069,
0.14274749159812927,
0.20028184354305267,
-0.09592282027006149,
-0.038840752094984055,
0.3967841863632202,
0.11782967299222946,
-0.25736570358276367,
0.29174739122390747,
0.11973549425601959,
-0.01990543305873871,
0.010958395898342133,
0.16569578647613525,
0.19570381939411163,
-0.5051677823066711,
0.22698096930980682,
-0.07341932505369186,
-0.03863149136304855,
-0.21940119564533234,
0.20237277448177338,
0.2788514196872711,
-0.12861931324005127,
-0.0868079662322998,
-0.13510584831237793,
-0.46563729643821716,
0.39864712953567505,
-0.04240070655941963,
0.3219241201877594,
-0.3383318781852722,
0.040467116981744766,
0.2709531784057617,
0.32688528299331665,
-0.24289505183696747,
0.09656623005867004,
-0.359886109828949,
0.15144552290439606,
-0.04061506688594818,
-0.14808186888694763,
-0.03989579901099205,
-0.25609809160232544,
-0.015908123925328255,
0.18658047914505005,
-0.11710388958454132,
-0.11340935528278351,
-0.17100295424461365,
0.18250109255313873,
0.27183109521865845,
-0.020041389390826225,
0.03905744105577469,
-0.011076553724706173,
-0.009152844548225403,
-0.38035956025123596,
0.04942185804247856,
0.2140735685825348,
0.015503935515880585,
-0.13068535923957825,
0.3758516311645508,
0.014640774577856064,
0.12089903652667999,
-0.03864666074514389,
0.24529336392879486,
0.33040738105773926,
0.3945808410644531,
-0.04474031180143356,
-0.0005492120981216431,
0.02872426062822342,
0.17811818420886993,
0.2772394120693207,
0.07904992997646332,
-0.20739880204200745,
0.272704541683197,
-0.22126580774784088,
0.17410308122634888,
0.323060005903244,
0.23721671104431152,
-0.005389757454395294,
-0.1716824322938919,
0.3243851959705353,
0.11978910863399506,
0.11055311560630798,
-0.17293085157871246,
-0.24984176456928253,
0.019615691155195236,
-0.14659526944160461,
0.012742515653371811,
0.1564130187034607,
0.23917612433433533,
-0.021575845777988434,
0.035609956830739975,
-0.06042042374610901,
0.3299564719200134,
0.2673921585083008,
0.22354963421821594,
0.07621834427118301,
-0.15181933343410492,
-0.06404539942741394,
0.34337255358695984,
-0.013278044760227203,
0.029929928481578827,
0.2727196216583252,
-0.12141654640436172,
0.14476855099201202,
-0.03755634278059006,
0.1784781664609909,
0.42303478717803955,
-0.40268954634666443,
-0.2767714858055115,
-0.047282084822654724,
0.20289269089698792,
0.22649824619293213,
-0.2980767488479614,
0.1278606802225113,
0.07225703448057175,
-0.02502068132162094,
-0.46589019894599915,
0.078114815056324,
0.10082139074802399,
-0.14122985303401947,
-0.16755260527133942,
-0.33166640996932983,
-0.2683719992637634,
0.18462489545345306,
-0.06960728764533997,
-0.8740411400794983,
0.21581722795963287,
0.03194810077548027,
-0.2375767081975937,
-0.005754522979259491,
-0.2978150546550751,
0.24214687943458557,
0.39060455560684204,
-0.09440071135759354,
0.4381614625453949,
0.4579964280128479,
-0.06841954588890076,
0.01946931891143322,
0.34931281208992004,
0.25983062386512756,
0.10815276950597763,
0.18671239912509918,
0.30731287598609924,
0.24716947972774506,
-0.2391950488090515,
-0.07722806930541992,
0.2764168977737427,
0.1140531599521637,
0.2423326075077057,
0.1365855634212494,
0.10297266393899918,
-0.13711899518966675,
-0.15017198026180267,
-0.2797057032585144,
0.08705711364746094,
-0.2625366151332855,
0.06270524859428406,
-0.25363263487815857,
-0.09276454150676727,
-0.319443941116333,
-0.08704093843698502,
-0.6486645340919495,
-0.13482454419136047,
0.10622330009937286,
-0.48366954922676086,
-0.014673201367259026,
0.03511199355125427,
0.0018050558865070343,
-0.15684205293655396,
0.19022879004478455,
0.3783506155014038,
-0.05291527509689331,
-0.2574300765991211,
-0.4978097081184387,
-0.4219093322753906,
0.14255744218826294,
-0.3369408845901489,
-0.0707515999674797,
-0.024713292717933655,
0.4363231360912323,
0.06264930963516235,
0.10122901201248169,
-0.007788762450218201,
-0.01502879336476326,
0.04300221428275108,
0.07482132315635681,
-0.30448946356773376,
0.2494315505027771,
-0.05942784249782562,
0.17025898396968842,
-0.05159172788262367,
0.03134988993406296,
0.42780840396881104,
0.2692951261997223,
-0.10266004502773285,
0.20293469727039337,
0.2920856177806854,
-0.33834007382392883,
-0.14781273901462555,
0.47698426246643066,
0.15630730986595154,
0.15860697627067566,
-0.1061532199382782,
0.007237808778882027,
-0.44812917709350586,
-0.2925894856452942,
-0.08566224575042725,
0.11256705224514008,
0.05837223678827286,
0.6300588846206665,
-0.22664038836956024,
-0.21989376842975616,
0.10291213542222977,
-0.1019524484872818,
0.2622146010398865,
-0.08798375725746155,
-0.19168998301029205,
0.07100345194339752,
-0.26214665174484253,
0.06862876564264297,
0.30621838569641113,
0.4534791111946106,
0.16046133637428284,
-0.29233866930007935,
-0.019100867211818695,
-0.5030849575996399,
0.4925042390823364,
-0.4932529330253601,
-0.278694212436676,
0.04777849093079567,
-0.012632831931114197,
0.43967363238334656,
-0.028375891968607903,
-0.16406288743019104,
0.02884799987077713,
0.19917702674865723,
-0.06289153546094894,
-0.24308784306049347,
0.4454256296157837,
-0.08351635932922363,
-0.1281728893518448,
-0.02144927904009819,
0.23710815608501434,
0.15230175852775574,
-0.24193619191646576,
0.12865647673606873,
-0.1775418370962143
] |
https://github.com/huggingface/datasets/issues/2526 | Add COCO datasets | Awesome ! Your dataset looks all good 🤗
The `null` in the viewer is a bug on our side, let me investigate | ## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 22 | Add COCO datasets
## Adding a Dataset
- **Name:** COCO
- **Description:** COCO is a large-scale object detection, segmentation, and captioning dataset.
- **Paper + website:** https://cocodataset.org/#home
- **Data:** https://cocodataset.org/#download
- **Motivation:** It would be great to have COCO available in HuggingFace datasets, as we are moving beyond just text. COCO includes multi-modalities (images + text), as well as a huge amount of images annotated with objects, segmentation masks, keypoints etc., on which models like DETR (which I recently added to HuggingFace Transformers) are trained. Currently, one needs to download everything from the website and place it in a local folder, but it would be much easier if we can directly access it through the datasets API.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Awesome ! Your dataset looks all good 🤗
The `null` in the viewer is a bug on our side, let me investigate | [
-0.2788696587085724,
-0.42960721254348755,
-0.05939576402306557,
0.44491541385650635,
0.19208556413650513,
0.03030070662498474,
0.22380408644676208,
0.19492392241954803,
-0.09795401990413666,
0.22592617571353912,
-0.3472764492034912,
0.14553692936897278,
-0.28121092915534973,
0.29619932174682617,
-0.001011245884001255,
-0.29377633333206177,
-0.021351926028728485,
0.08746834844350815,
-0.28569331765174866,
-0.08259662985801697,
-0.01786762662231922,
0.39485883712768555,
-0.11207109689712524,
-0.059406548738479614,
-0.38228997588157654,
-0.006065549328923225,
-0.31698647141456604,
0.12363272905349731,
-0.15075117349624634,
-0.24875593185424805,
0.12631858885288239,
0.057078830897808075,
-0.018050290644168854,
0.6172171831130981,
-0.000098723205155693,
0.022043272852897644,
0.18198934197425842,
-0.13216029107570648,
-0.07040474563837051,
-0.07339325547218323,
0.11264147609472275,
-0.20417165756225586,
0.03524366766214371,
-0.1259123682975769,
-0.37524092197418213,
0.14664816856384277,
0.1474999636411667,
-0.07121913135051727,
0.24795721471309662,
0.2244136780500412,
0.3572281301021576,
0.48719069361686707,
0.11062197387218475,
-0.0036828601732850075,
-0.003464214503765106,
0.4228442907333374,
-0.16694588959217072,
0.0796486884355545,
0.09022657573223114,
0.1590047925710678,
-0.18588584661483765,
0.5530807971954346,
-0.014938602223992348,
-0.1338007152080536,
0.3710935711860657,
0.2533566951751709,
-0.09790665656328201,
-0.3658791482448578,
0.059270165860652924,
0.19189190864562988,
0.17642445862293243,
-0.15591445565223694,
-0.2398003190755844,
-0.3713028132915497,
-0.029730316251516342,
-0.1948489248752594,
0.01718367636203766,
0.22033114731311798,
-0.06388223171234131,
0.2751471698284149,
-0.21984879672527313,
0.07048839330673218,
-0.2459658682346344,
-0.18635429441928864,
-0.27904602885246277,
0.11656811088323593,
-0.18670111894607544,
0.004382912069559097,
0.15400677919387817,
-0.046523578464984894,
-0.256236732006073,
-0.2512725293636322,
0.034797944128513336,
0.003427179530262947,
-0.1441825032234192,
-0.1435214877128601,
0.24991852045059204,
0.29067325592041016,
0.21657076478004456,
0.02476314827799797,
-0.059347137808799744,
0.17598548531532288,
-0.19547614455223083,
0.11024630069732666,
-0.06248814985156059,
0.03721960633993149,
-0.12163960188627243,
0.06143786013126373,
0.154711052775383,
0.335763156414032,
0.08117273449897766,
-0.07754825800657272,
0.03326050937175751,
0.18381984531879425,
-0.3331871032714844,
-0.18678590655326843,
0.22568126022815704,
-0.031277962028980255,
-0.09482801705598831,
0.021406473591923714,
-0.03338901698589325,
0.14721310138702393,
0.1473275125026703,
0.4565383195877075,
-0.08655335754156113,
0.28888124227523804,
0.198395773768425,
0.07279443740844727,
-0.12655778229236603,
-0.32204705476760864,
-0.33360055088996887,
-0.025025945156812668,
-0.10481424629688263,
-0.0055030472576618195,
0.12840957939624786,
-0.25742360949516296,
0.07425805926322937,
-0.35645797848701477,
0.11633477360010147,
0.16076046228408813,
-0.09082469344139099,
-0.11529643833637238,
0.13300572335720062,
0.23041673004627228,
-0.15545512735843658,
-0.11468513309955597,
0.37178564071655273,
-0.2321888655424118,
-0.07106276601552963,
0.013045687228441238,
0.1403712034225464,
-0.07253406941890717,
-0.269644558429718,
0.24310749769210815,
-0.2220218926668167,
0.16310492157936096,
-0.024254225194454193,
0.5215756297111511,
-0.23816442489624023,
0.1843758076429367,
0.010318100452423096,
0.14786958694458008,
-0.2466236799955368,
-0.09921613335609436,
0.29928475618362427,
0.6759318709373474,
-0.049825675785541534,
-0.21003372967243195,
-0.111421138048172,
-0.2864616811275482,
-0.16123393177986145,
-0.0788741260766983,
0.12304744869470596,
-0.06913327425718307,
-0.21607381105422974,
0.15719060599803925,
-0.20376825332641602,
-0.13064885139465332,
-0.22378021478652954,
0.15862715244293213,
-0.21593526005744934,
0.1099209263920784,
0.18805278837680817,
0.2928057610988617,
0.0013858000747859478,
0.09988930821418762,
-0.1922624409198761,
0.002880249172449112,
-0.07476474344730377,
0.12243493646383286,
-0.13506905734539032,
-0.20272815227508545,
0.024579163640737534,
0.22362473607063293,
0.1631801873445511,
-0.02060285210609436,
-0.12705180048942566,
-0.13143745064735413,
0.2639870345592499,
-0.17492562532424927,
0.1729954183101654,
0.11440831422805786,
0.4580146372318268,
0.10731115937232971,
-0.012271152809262276,
-0.05892302840948105,
-0.46190208196640015,
0.11245039850473404,
0.0879703089594841,
0.3540612757205963,
-0.23132462799549103,
-0.259870707988739,
0.016657676547765732,
0.13237249851226807,
-0.15140032768249512,
-0.4207059442996979,
0.2954537570476532,
0.2742445468902588,
-0.027414903044700623,
0.12256981432437897,
-0.17915813624858856,
0.3442772328853607,
0.15180128812789917,
0.25891757011413574,
-0.23708967864513397,
0.41460171341896057,
-0.13860832154750824,
0.113233283162117,
0.17048098146915436,
0.04033290594816208,
0.1316753774881363,
-0.058032259345054626,
0.1782301366329193,
0.45650815963745117,
0.013680340722203255,
0.18896514177322388,
0.09538973122835159,
0.07327147573232651,
0.28601202368736267,
-0.5736502408981323,
0.009110990911722183,
0.12321586906909943,
0.21082375943660736,
0.03610897809267044,
-0.4883498251438141,
0.2544102668762207,
0.016314880922436714,
-0.006844580173492432,
0.012072153389453888,
0.008126985281705856,
0.1474379152059555,
0.05114182457327843,
-0.24858111143112183,
-0.17136250436306,
-0.014579225331544876,
-0.11914676427841187,
0.21556232869625092,
0.13444074988365173,
-0.5406849384307861,
0.03870372474193573,
0.08767292648553848,
0.023162435740232468,
0.11534656584262848,
0.28401654958724976,
-0.4468582272529602,
0.032336752861738205,
0.23251459002494812,
-0.18761545419692993,
0.009433522820472717,
0.339290976524353,
-0.08341620862483978,
0.1423664391040802,
0.016480455175042152,
0.048032768070697784,
0.22912263870239258,
0.22489826381206512,
-0.10509519279003143,
-0.017382584512233734,
0.11823475360870361,
-0.2410881668329239,
-0.4635576903820038,
-0.27694594860076904,
-0.24085038900375366,
0.16009949147701263,
-0.24218977987766266,
0.015186415985226631,
0.19443820416927338,
-0.35091832280158997,
-0.034959763288497925,
-0.06973977386951447,
-0.2006678432226181,
-0.17963916063308716,
0.040408529341220856,
0.054357193410396576,
-0.0832330659031868,
0.17016462981700897,
-0.23763281106948853,
0.3508751392364502,
0.021052079275250435,
0.09059307724237442,
-0.27247583866119385,
0.024016935378313065,
-0.11385903507471085,
0.2142365723848343,
0.15749435126781464,
-0.07931212335824966,
0.23586030304431915,
-0.19571323692798615,
0.2868579030036926,
-0.0967320054769516,
-0.6810082793235779,
0.20575366914272308,
-0.27110201120376587,
0.039436712861061096,
0.1320490837097168,
0.11999636143445969,
-0.10361433774232864,
-0.14868156611919403,
0.24453221261501312,
-0.17584100365638733,
-0.2492622435092926,
-0.08951831609010696,
-0.0022491321433335543,
-0.06572633981704712,
-0.34523874521255493,
-0.03830360621213913,
-0.1482386589050293,
-0.31583771109580994,
0.4031071662902832,
0.22828997671604156,
-0.012452922761440277,
0.18121391534805298,
0.2055055946111679,
0.3903556168079376,
-0.10131831467151642,
-0.000539848580956459,
0.030480582267045975,
-0.29392746090888977,
0.31188079714775085,
-0.27165520191192627,
-0.3685736358165741,
-0.08302076160907745,
-0.26716023683547974,
0.11514264345169067,
-0.251617968082428,
-0.549401044845581,
-0.2604440152645111,
-0.08045399188995361,
0.08600132167339325,
0.20391197502613068,
-0.08097147196531296,
0.28694289922714233,
0.16555726528167725,
-0.1357019990682602,
-0.20359623432159424,
-0.2935948371887207,
-0.0332961305975914,
-0.15717145800590515,
-0.034262917935848236,
-0.27012261748313904,
0.16190454363822937,
0.14626477658748627,
0.21895842254161835,
0.1866334080696106,
-0.28070107102394104,
0.37634849548339844,
-0.2055695354938507,
0.5386369228363037,
-0.10555096715688705,
-0.2560456395149231,
0.23856252431869507,
0.013423994183540344,
0.030729707330465317,
0.4075373411178589,
0.12245059758424759,
-0.108246348798275,
-0.3733866810798645,
0.031451981514692307,
-0.5407882928848267,
-0.09101705998182297,
0.014618678018450737,
0.4286021590232849,
0.17272013425827026,
-0.1977636218070984,
-0.0806625485420227,
-0.06603492796421051,
-0.224065899848938,
0.2288593202829361,
0.23484307527542114,
0.06504462659358978,
-0.16338872909545898,
-0.2650093734264374,
0.13772785663604736,
-0.4640071392059326,
0.31725504994392395,
-0.001524824183434248,
-0.3457665741443634,
0.038849007338285446,
-0.3275049328804016,
-0.022806532680988312,
-0.13358108699321747,
0.6860668063163757,
0.24762669205665588,
-0.1306086629629135,
0.15338511765003204,
-0.42449477314949036,
-0.3606356084346771,
0.23654933273792267,
-0.14171339571475983,
-0.20317845046520233,
0.0973421037197113,
0.4385516345500946,
-0.3814232051372528,
-0.014504574239253998,
0.20231057703495026,
-0.08002862334251404,
-0.11376030743122101,
-0.0017331885173916817,
-0.22029396891593933,
0.1280834972858429,
-0.2092757523059845,
-0.03959096223115921,
0.02082437090575695,
0.20614442229270935,
0.1348181515932083,
-0.065898098051548,
-0.014660326763987541,
-0.264733225107193,
0.2852499485015869,
0.2405136674642563,
0.3730226755142212,
0.14878681302070618,
0.19905447959899902,
0.2683374881744385,
0.20775771141052246,
0.1706801801919937,
0.5823056697845459,
0.006095893681049347,
-0.3156447112560272,
0.1481371521949768,
0.08122599869966507,
0.17967964708805084,
0.28043121099472046,
0.2382761836051941,
-0.08164047449827194,
0.16626110672950745,
0.3956477642059326,
-0.5301578044891357,
0.4145669639110565,
0.20218518376350403,
0.04674380645155907,
-0.15249648690223694,
-0.00865704845637083,
0.20778444409370422,
-0.31550130248069763,
0.016451396048069,
-0.0006737373769283295,
0.2892192006111145,
-0.2111327350139618,
0.0520869605243206,
0.3031693398952484,
0.9626508951187134,
-0.2677112817764282,
0.26494377851486206,
0.2312575876712799,
-0.13180577754974365,
0.417286217212677,
-0.09217633306980133,
0.02461894415318966,
-0.33619388937950134,
-0.08342166990041733,
-0.06415651738643646,
0.03998458757996559,
0.1244906634092331,
-0.08462494611740112,
-0.3170103430747986,
-0.17866581678390503,
0.22842015326023102,
0.302182674407959,
-0.17873281240463257,
0.07890764623880386,
0.016508163884282112,
-0.360166072845459,
-0.15053603053092957,
0.3013792634010315,
-0.1325574666261673,
0.18755091726779938,
0.031189244240522385,
-0.12790121138095856,
-0.30052119493484497,
-0.07099908590316772,
-0.18725359439849854,
-0.039438970386981964,
-0.024133047088980675,
-0.12526902556419373,
0.1931571066379547,
-0.26113075017929077,
-0.05255882814526558,
0.4220154583454132,
0.12474779784679413,
0.12086950242519379,
-0.3772766590118408,
0.2939823567867279,
-0.3831518888473511,
-0.0696655735373497,
0.07469318807125092,
0.028333935886621475,
0.20846015214920044,
-0.012502718716859818,
-0.008625291287899017,
-0.02455843985080719,
0.1779080331325531,
0.08899199962615967,
-0.012515857815742493,
0.001289278268814087,
0.18604719638824463,
0.008877111598849297,
-0.002573801204562187,
0.1623808890581131,
-0.01888303831219673,
-0.1974204033613205,
0.2523092031478882,
0.15906840562820435,
-0.07922184467315674,
-0.20028629899024963,
0.15373361110687256,
-0.06215565279126167,
-0.11625994741916656,
0.49131855368614197,
-0.04507195204496384,
-0.029113225638866425,
0.18749625980854034,
0.2905288338661194,
-0.17615200579166412,
-0.23436790704727173,
0.19386696815490723,
0.1436918079853058,
-0.4077223539352417,
0.03252118080854416,
-0.0037965273950248957,
-0.16464632749557495,
-0.07858041673898697,
0.25881099700927734,
0.21550384163856506,
-0.0676291212439537,
0.017164330929517746,
-0.03226444870233536,
-0.6080824732780457,
0.19979768991470337,
-0.22063355147838593,
0.44697222113609314,
-0.0915025845170021,
0.28103944659233093,
0.3963131010532379,
0.06062474101781845,
-0.49186986684799194,
-0.08424027264118195,
-0.376270592212677,
-0.05845481902360916,
0.14024916291236877,
-0.047071777284145355,
0.09822040051221848,
-0.23162265121936798,
0.25635579228401184,
0.216217502951622,
-0.2000594437122345,
-0.29629242420196533,
-0.15393222868442535,
0.06719145178794861,
0.11267165094614029,
-0.0914061889052391,
0.047041505575180054,
0.2442062646150589,
-0.16816680133342743,
-0.23147445917129517,
0.11913056671619415,
0.11300363391637802,
-0.04620090126991272,
0.08881737291812897,
-0.05786186829209328,
-0.11115684360265732,
-0.04475049301981926,
-0.3461695611476898,
0.1473071575164795,
0.05006784200668335,
0.3280026614665985,
-0.10634113848209381,
-0.16361793875694275,
-0.09229566901922226,
0.33631303906440735,
0.35469746589660645,
-0.010923795402050018,
-0.019295845180749893,
0.4400121867656708,
-0.03188742697238922,
-0.042941831052303314,
0.15614955127239227,
0.4464825689792633,
-0.34155982732772827,
-0.09389124065637589,
0.09465096890926361,
0.2738008499145508,
0.33509284257888794,
-0.4710574746131897,
0.0635710209608078,
0.08676604926586151,
-0.17808876931667328,
0.24286603927612305,
0.0953245609998703,
-0.11724856495857239,
0.2654793858528137,
-0.13932457566261292,
0.23309150338172913,
0.2801421880722046,
0.14568768441677094,
0.05082133039832115,
0.004431471228599548,
-0.17233861982822418,
0.10038000345230103,
0.39375174045562744,
0.26278096437454224,
0.3021211624145508,
0.38126128911972046,
-0.08555794507265091,
0.1644763946533203,
-0.4059646427631378,
0.21268567442893982,
0.38815125823020935,
-0.10965080559253693,
-0.12663394212722778,
0.023247428238391876,
-0.06804981827735901,
0.19796666502952576,
-0.11744782328605652,
0.1964501142501831,
-0.05552990362048149,
-0.099998839199543,
-0.2195206731557846,
0.18949715793132782,
-0.09543304890394211,
-0.018371323123574257,
-0.24775969982147217,
-0.18356040120124817,
-0.07151377946138382,
0.05997507646679878,
0.1662573367357254,
-0.3254672884941101,
0.19793060421943665,
0.007359296083450317,
-0.11516790091991425,
-0.019385414198040962,
-0.2296806275844574,
0.15119051933288574,
0.40873396396636963,
-0.1791941076517105,
0.10238981246948242,
0.5407873392105103,
0.04850238189101219,
0.2544752359390259,
0.369794100522995,
0.17856943607330322,
-0.15830712020397186,
0.026196427643299103,
0.05474786087870598,
-0.025688055902719498,
-0.2943592071533203,
-0.20286111533641815,
0.11800692975521088,
0.14471569657325745,
0.19798043370246887,
0.3239997327327728,
0.23971715569496155,
-0.2527066767215729,
-0.0910336971282959,
-0.13785870373249054,
0.2874146103858948,
-0.3260856866836548,
0.045580435544252396,
-0.29772260785102844,
-0.1880723237991333,
-0.3066299259662628,
-0.24751803278923035,
-0.5226653218269348,
-0.008213556371629238,
0.027634043246507645,
-0.25737762451171875,
-0.017070665955543518,
-0.10948082059621811,
0.1275102198123932,
0.17226845026016235,
0.22833122313022614,
0.25720199942588806,
0.09594070911407471,
-0.12206300348043442,
-0.3854191303253174,
-0.6568319797515869,
0.16722379624843597,
0.05455147475004196,
-0.14938992261886597,
-0.10580635815858841,
0.14123016595840454,
0.18498462438583374,
0.11797351390123367,
-0.03462733328342438,
-0.09443620592355728,
0.1262056827545166,
-0.06961604952812195,
-0.28740617632865906,
0.12617921829223633,
-0.1008143275976181,
0.0652795135974884,
0.0910383090376854,
0.018008075654506683,
0.2148156464099884,
-0.1901860237121582,
0.21685373783111572,
-0.006239216774702072,
0.2638440430164337,
-0.44429564476013184,
-0.09621469676494598,
0.25574353337287903,
-0.0493207648396492,
0.19440391659736633,
-0.1952720582485199,
-0.08061352372169495,
-0.05278520658612251,
-0.07266203314065933,
-0.10774260759353638,
-0.014506407082080841,
0.06943212449550629,
0.7344753742218018,
-0.0216834619641304,
-0.309165894985199,
0.03739216551184654,
0.226980522274971,
0.406699538230896,
0.052978646010160446,
-0.17390675842761993,
0.216584250330925,
-0.19478285312652588,
-0.17858870327472687,
0.05858508124947548,
0.4080464243888855,
0.09573321044445038,
-0.2445783168077469,
-0.18728426098823547,
-0.44561153650283813,
0.5700210332870483,
-0.3776620924472809,
-0.27026674151420593,
-0.01773795112967491,
-0.09063917398452759,
0.273651123046875,
0.051321547478437424,
-0.5615284442901611,
0.11873652786016464,
0.20302727818489075,
-0.012418348342180252,
-0.32303544878959656,
0.14040566980838776,
-0.09134054183959961,
-0.05798129364848137,
-0.05282902345061302,
0.1015133261680603,
0.17348846793174744,
0.026783013716340065,
0.19899743795394897,
-0.23997654020786285
] |
https://github.com/huggingface/datasets/issues/2522 | Documentation Mistakes in Dataset: emotion | Hi,
this issue has been already reported in the dataset repo (https://github.com/dair-ai/emotion_dataset/issues/2), so this is a bug on their side. | As per documentation,
Dataset: emotion
Homepage: https://github.com/dair-ai/emotion_dataset
Dataset: https://github.com/huggingface/datasets/blob/master/datasets/emotion/emotion.py
Permalink: https://huggingface.co/datasets/viewer/?dataset=emotion
Emotion is a dataset of English Twitter messages with eight basic emotions: anger, anticipation, disgust, fear, joy, sadness, surprise, and trust. For more detailed information please refer to the paper.
But when we view the data, there are only 6 emotions, anger, fear, joy, sadness, surprise, and trust. | 20 | Documentation Mistakes in Dataset: emotion
As per documentation,
Dataset: emotion
Homepage: https://github.com/dair-ai/emotion_dataset
Dataset: https://github.com/huggingface/datasets/blob/master/datasets/emotion/emotion.py
Permalink: https://huggingface.co/datasets/viewer/?dataset=emotion
Emotion is a dataset of English Twitter messages with eight basic emotions: anger, anticipation, disgust, fear, joy, sadness, surprise, and trust. For more detailed information please refer to the paper.
But when we view the data, there are only 6 emotions, anger, fear, joy, sadness, surprise, and trust.
Hi,
this issue has been already reported in the dataset repo (https://github.com/dair-ai/emotion_dataset/issues/2), so this is a bug on their side. | [
0.22127096354961395,
-0.34920668601989746,
-0.10875432193279266,
0.5762395262718201,
0.26779085397720337,
0.17377585172653198,
0.29420900344848633,
0.11103928089141846,
-0.12832540273666382,
0.20382341742515564,
-0.1274425983428955,
0.04295261949300766,
-0.20233315229415894,
-0.11315064877271652,
-0.005595088936388493,
-0.1862744390964508,
0.08356310427188873,
-0.08725523948669434,
0.3198855519294739,
-0.11779293417930603,
0.03354758024215698,
0.19832079112529755,
-0.09807029366493225,
0.23028753697872162,
-0.45546895265579224,
-0.056397728621959686,
-0.2686939835548401,
-0.05159449577331543,
-0.046982258558273315,
-0.5062130093574524,
0.07167591899633408,
-0.08969652652740479,
-0.007479982450604439,
0.28957390785217285,
-0.00011546513997018337,
-0.11166490614414215,
0.32608747482299805,
0.07781467586755753,
0.045453861355781555,
-0.23108933866024017,
0.21439197659492493,
-0.307157963514328,
0.3784169554710388,
-0.08769582957029343,
-0.044835176318883896,
-0.5062559843063354,
0.05929168313741684,
-0.031277891248464584,
0.41844642162323,
0.49271389842033386,
0.16677680611610413,
0.17808759212493896,
0.21755985915660858,
0.20257793366909027,
0.41941869258880615,
0.545627772808075,
-0.017825525254011154,
0.020421087741851807,
-0.13782180845737457,
-0.02150409109890461,
-0.185176283121109,
0.34513822197914124,
0.165079727768898,
0.07125090062618256,
0.17758497595787048,
-0.09184692800045013,
0.1996375024318695,
-0.5791178941726685,
0.15230333805084229,
0.19008967280387878,
0.47831761837005615,
-0.017162732779979706,
-0.33211952447891235,
-0.11462700366973877,
0.015816885977983475,
-0.13342934846878052,
0.19388169050216675,
0.28201261162757874,
-0.11397691071033478,
0.0929718017578125,
0.10228922963142395,
0.09656314551830292,
-0.16098007559776306,
0.4246106743812561,
0.06604684889316559,
0.13224641978740692,
-0.3756157159805298,
0.01948561519384384,
0.007966294884681702,
-0.20899906754493713,
0.038487840443849564,
0.1436937302350998,
-0.037661295384168625,
0.20576125383377075,
-0.17088161408901215,
0.22823327779769897,
-0.01678735762834549,
0.0003170222043991089,
-0.038923125714063644,
-0.24217863380908966,
-0.11244934797286987,
0.13327063620090485,
-0.11476334929466248,
-0.06136220693588257,
0.6197062730789185,
0.04955119267106056,
0.18680350482463837,
0.123708076775074,
0.2935325503349304,
0.0909465029835701,
-0.003007877618074417,
-0.001700669527053833,
-0.036735374480485916,
0.022160891443490982,
0.01396200805902481,
-0.4305972158908844,
-0.0058880578726530075,
0.09184715151786804,
-0.38327518105506897,
-0.05223608762025833,
-0.23426726460456848,
-0.35018783807754517,
-0.06796558201313019,
0.33878669142723083,
0.07374796271324158,
0.3004631996154785,
-0.08020495623350143,
0.13753283023834229,
0.017083866521716118,
-0.541508674621582,
-0.18827196955680847,
-0.02498035877943039,
-0.29581403732299805,
-0.008173715323209763,
0.11160014569759369,
-0.0923948585987091,
0.6315550208091736,
0.15594105422496796,
-0.21073202788829803,
-0.3750535547733307,
0.08858846873044968,
-0.199255108833313,
0.30074426531791687,
0.182437464594841,
-0.03594929352402687,
0.22128383815288544,
0.2664772868156433,
-0.09244287014007568,
0.04866521805524826,
0.0915699303150177,
-0.03511548042297363,
-0.08810696005821228,
-0.4956246614456177,
0.09798859804868698,
-0.2035674750804901,
0.01992347277700901,
-0.039060674607753754,
0.6006976962089539,
0.08034993708133698,
0.15198031067848206,
0.2233850061893463,
-0.07303551584482193,
0.012276675552129745,
-0.2965446412563324,
0.35055264830589294,
0.3677574396133423,
-0.3522183299064636,
-0.39822232723236084,
-0.36781373620033264,
0.009023362770676613,
0.14397811889648438,
0.40628427267074585,
-0.3304086923599243,
0.12715095281600952,
-0.33783072233200073,
0.25498372316360474,
0.24185654520988464,
-0.18664608895778656,
-0.23459210991859436,
0.11279348284006119,
0.35749608278274536,
0.06496234983205795,
-0.07620880752801895,
0.2588236927986145,
0.15506790578365326,
0.18594574928283691,
0.08296576887369156,
-0.2622183561325073,
0.3079395592212677,
-0.04078878462314606,
-0.3400009870529175,
-0.19710560142993927,
0.17958848178386688,
0.07287214696407318,
-0.07866884768009186,
-0.05640820413827896,
0.2922445833683014,
-0.24698904156684875,
0.6810659170150757,
-0.01976219192147255,
-0.014156976714730263,
0.27301400899887085,
0.1785176545381546,
0.48407334089279175,
0.12512290477752686,
-0.05564487352967262,
-0.1300530731678009,
-0.11146840453147888,
0.1443304717540741,
0.4373607635498047,
0.20460134744644165,
-0.05557706952095032,
-0.26294466853141785,
-0.09834761917591095,
-0.1430061161518097,
-0.42799144983291626,
0.13664084672927856,
0.20028257369995117,
-0.36597010493278503,
0.24786768853664398,
-0.3380771577358246,
0.22006529569625854,
-0.242312490940094,
0.09355687350034714,
-0.2778649926185608,
0.23160667717456818,
-0.09602976590394974,
0.017993204295635223,
0.15084506571292877,
0.08092939853668213,
0.04637659341096878,
0.07185736298561096,
-0.07975812256336212,
0.2689031958580017,
0.09399561583995819,
0.14168420433998108,
0.015278533101081848,
0.010583445429801941,
0.3232317268848419,
-0.4997335374355316,
0.01402553915977478,
0.15800981223583221,
-0.16848322749137878,
0.23697319626808167,
-0.1351102590560913,
0.17464612424373627,
0.2725004553794861,
0.022643640637397766,
0.00014550238847732544,
0.1185610368847847,
0.3502689301967621,
0.29297852516174316,
-0.4297546446323395,
-0.4398636519908905,
0.11701826751232147,
-0.2998411953449249,
0.12134024500846863,
0.11564335227012634,
-0.2244836837053299,
0.299221932888031,
0.2973562777042389,
0.08013865351676941,
0.15438595414161682,
0.24321100115776062,
-0.5394955277442932,
-0.38131940364837646,
0.09011023491621017,
0.03151857480406761,
0.23231562972068787,
0.24321749806404114,
-0.13900171220302582,
-0.13697443902492523,
0.03640514239668846,
-0.12819281220436096,
0.22620758414268494,
0.23625889420509338,
0.10604467988014221,
-0.09019140154123306,
0.1861984133720398,
0.09769640117883682,
-0.39651158452033997,
0.11314064264297485,
-0.13628652691841125,
0.2927364110946655,
-0.4832673966884613,
-0.15883487462997437,
-0.16843512654304504,
-0.34596502780914307,
0.1443156898021698,
-0.05664517357945442,
-0.18634606897830963,
-0.32940009236335754,
-0.03846042603254318,
-0.36499497294425964,
-0.19076932966709137,
-0.006747642531991005,
-0.13854750990867615,
0.04708053171634674,
-0.008954526856541634,
0.575817346572876,
-0.22792473435401917,
-0.052901431918144226,
-0.26076000928878784,
0.011780764907598495,
-0.09943489730358124,
0.1297072321176529,
0.08164715766906738,
-0.2596595287322998,
-0.25900930166244507,
-0.2978913486003876,
-0.5375891327857971,
0.26645568013191223,
-0.263286292552948,
0.35855334997177124,
0.06122296676039696,
-0.012353368103504181,
-0.4086565375328064,
-0.08891770988702774,
0.2468181997537613,
-0.2753387987613678,
-0.1839733123779297,
-0.14423485100269318,
-0.09395256638526917,
0.01868712529540062,
0.12655188143253326,
-0.5909527540206909,
-0.22423520684242249,
-0.14257197082042694,
0.3636077642440796,
-0.06736412644386292,
0.14791235327720642,
0.16919399797916412,
0.03367132321000099,
0.13535746932029724,
-0.38808393478393555,
-0.010190436616539955,
-0.4052889943122864,
-0.2496476173400879,
0.24514010548591614,
-0.3715064525604248,
-0.43802452087402344,
0.17137019336223602,
0.009354501962661743,
0.14603063464164734,
-0.2629668116569519,
-0.6767252087593079,
0.06509783118963242,
-0.2844427824020386,
0.1649729162454605,
-0.039165519177913666,
0.2578710615634918,
-0.19623532891273499,
-0.03355489671230316,
-0.14055870473384857,
0.01317085325717926,
-0.30254361033439636,
-0.04726428538560867,
-0.3038457930088043,
0.43155989050865173,
-0.28312456607818604,
0.11896715313196182,
0.03145037218928337,
0.2606201171875,
0.4236908257007599,
-0.16616252064704895,
0.1330355852842331,
-0.259968101978302,
0.49821916222572327,
0.13514620065689087,
-0.2544528841972351,
0.2596282660961151,
-0.0836426168680191,
0.27041929960250854,
0.4516679048538208,
0.09687639027833939,
-0.00605718232691288,
0.028670161962509155,
-0.0716327577829361,
-0.387691468000412,
-0.3234594762325287,
-0.07321923971176147,
-0.3693273961544037,
0.28971758484840393,
0.1122933179140091,
-0.10583600401878357,
-0.0475786067545414,
-0.1648263931274414,
-0.06466637551784515,
0.2462558001279831,
0.04423778876662254,
0.13878290355205536,
-0.2342517375946045,
0.10106031596660614,
-0.3769003450870514,
0.11231841892004013,
-0.025566671043634415,
0.3216904103755951,
0.022845204919576645,
0.07104137539863586,
-0.011293545365333557,
0.34664812684059143,
0.47527438402175903,
-0.10601352900266647,
-0.12430994212627411,
0.10344569385051727,
0.25001636147499084,
-0.6698009967803955,
0.048292193561792374,
-0.20169217884540558,
0.17254284024238586,
0.38985905051231384,
0.48132991790771484,
-0.1017729863524437,
-0.033294275403022766,
0.22201164066791534,
0.003833097405731678,
-0.05540873855352402,
-0.19468310475349426,
-0.37256938219070435,
-0.27273598313331604,
-0.09434673190116882,
-0.31077155470848083,
0.20056022703647614,
-0.2032242864370346,
-0.16889360547065735,
-0.08187714219093323,
-0.004837401211261749,
-0.002997208386659622,
0.10373817384243011,
0.046942587941884995,
0.3300941288471222,
-0.0200654286891222,
0.04359209164977074,
0.49500560760498047,
0.315763920545578,
0.010214241221547127,
0.4064956605434418,
-0.026922117918729782,
-0.6741480231285095,
0.06572791188955307,
-0.25026845932006836,
0.0342186763882637,
0.14197541773319244,
-0.132502481341362,
-0.003385387361049652,
0.16669532656669617,
0.12828177213668823,
-0.006562120281159878,
0.19571760296821594,
0.6088894605636597,
0.12206818908452988,
0.08948672562837601,
-0.3547281324863434,
0.2650875747203827,
0.051420170813798904,
0.012391522526741028,
-0.10136038064956665,
0.5811464190483093,
-0.1059892550110817,
0.24282561242580414,
0.16524764895439148,
0.8558469414710999,
0.054625120013952255,
0.18284228444099426,
0.2816801071166992,
-0.053838588297367096,
0.571736752986908,
-0.08666999638080597,
0.10450858622789383,
-0.33800163865089417,
0.17620468139648438,
-0.03628276288509369,
0.024387415498495102,
-0.0873432531952858,
0.3483559489250183,
-0.19208869338035583,
0.07025864720344543,
-0.028769560158252716,
0.12765397131443024,
0.17444659769535065,
0.08075100183486938,
-0.14160598814487457,
0.09134525060653687,
-0.36404597759246826,
0.13938498497009277,
-0.08215945959091187,
0.2686319351196289,
0.13771769404411316,
0.037936240434646606,
-0.07131736725568771,
-0.12588027119636536,
-0.5482354760169983,
-0.2577882707118988,
-0.6138543486595154,
-0.0038741566240787506,
-0.18415780365467072,
0.008730769157409668,
0.294208288192749,
0.5220600366592407,
0.5753257870674133,
-0.07248173654079437,
-0.06366553157567978,
0.07644131034612656,
0.011209219694137573,
-0.2106306403875351,
0.016881287097930908,
0.04785573482513428,
0.24656729400157928,
-0.06396780908107758,
-0.4747827351093292,
0.19247311353683472,
-0.031932346522808075,
0.11356665194034576,
-0.40814560651779175,
-0.022013433277606964,
-0.20995162427425385,
-0.20160837471485138,
0.14555464684963226,
-0.12664146721363068,
-0.2544451355934143,
-0.21839499473571777,
0.10069561004638672,
0.18262776732444763,
-0.007684786804020405,
0.03699006140232086,
0.015981050208210945,
-0.17505107820034027,
-0.12244735658168793,
0.05303768813610077,
-0.13958695530891418,
-0.33450227975845337,
0.49106767773628235,
0.2866664528846741,
-0.1466170847415924,
-0.19080865383148193,
0.18063053488731384,
0.29623091220855713,
-0.5138751268386841,
0.12837599217891693,
-0.02198212780058384,
0.016277849674224854,
-0.1513836532831192,
0.2409595251083374,
0.05489958077669144,
0.13719138503074646,
-0.13024750351905823,
-0.27328306436538696,
-0.2836495637893677,
0.4248712658882141,
0.05704094097018242,
0.004640009254217148,
-0.08505829423666,
-0.23700930178165436,
0.1729513704776764,
0.10677681118249893,
-0.2570379674434662,
0.07357186824083328,
0.0665481835603714,
-0.01768455281853676,
0.11184167861938477,
-0.07771813124418259,
0.20775623619556427,
-0.09334936738014221,
0.08253837376832962,
-0.039116524159908295,
0.26717039942741394,
-0.1491822600364685,
-0.0442340150475502,
0.16160887479782104,
0.07234762609004974,
-0.16517557203769684,
-0.015221038833260536,
-0.050117965787649155,
-0.0207904614508152,
-0.16695597767829895,
0.15978160500526428,
0.4227864146232605,
0.06639847904443741,
0.4139953851699829,
-0.4394424259662628,
0.06457524746656418,
0.3271658420562744,
-0.11105817556381226,
0.23285607993602753,
0.4335312843322754,
0.371396541595459,
0.060355495661497116,
0.2591710686683655,
-0.08011393994092941,
-0.05368461832404137,
0.004376828670501709,
-0.13755403459072113,
0.25343674421310425,
0.0494653657078743,
-0.46498197317123413,
0.007713619619607925,
-0.23500178754329681,
0.33858269453048706,
0.16883088648319244,
-0.2895057797431946,
0.09208685159683228,
0.09270875155925751,
0.19280612468719482,
-0.3769545257091522,
-0.03348285332322121,
-0.25543326139450073,
-0.1835787445306778,
0.14916649460792542,
0.03935461491346359,
0.12621423602104187,
0.09490185976028442,
-0.1320911943912506,
-0.07425139844417572,
0.2503602206707001,
-0.22066687047481537,
0.2582572102546692,
-0.0035882145166397095,
-0.3227567970752716,
-0.04636309668421745,
0.2064569741487503,
0.1990869790315628,
0.10758540034294128,
0.3274725079536438,
0.18777263164520264,
0.2775306701660156,
0.14158222079277039,
0.11204540729522705,
0.29609251022338867,
-0.011740237474441528,
0.20741768181324005,
0.1707000434398651,
-0.3604423403739929,
0.15734729170799255,
-0.17941904067993164,
0.6270518898963928,
0.16799162328243256,
-0.030981797724962234,
0.011248337104916573,
-0.0917840301990509,
-0.0041669756174087524,
0.05725867673754692,
-0.00464123860001564,
-0.2117326259613037,
-0.33609265089035034,
-0.17080041766166687,
-0.12709751725196838,
-0.39387452602386475,
-0.1881662905216217,
0.27264130115509033,
-0.3617933988571167,
-0.6225929260253906,
0.2395991086959839,
0.31846052408218384,
0.4276425540447235,
0.007905494421720505,
0.17543932795524597,
0.32650214433670044,
-0.10693338513374329,
0.03726353123784065,
0.3438470959663391,
0.5582180023193359,
0.27265554666519165,
0.1357981562614441,
0.05852410942316055,
-0.10895180702209473,
-0.15059949457645416,
0.07116036862134933,
0.03176548331975937,
0.3115766942501068,
-0.30086126923561096,
-0.08674103021621704,
0.05765390396118164,
-0.1387263834476471,
0.13726305961608887,
0.0521848201751709,
0.5654799342155457,
-0.25879067182540894,
0.2997583746910095,
-0.6842377185821533,
-0.2530015707015991,
-0.1697015017271042,
-0.10470104962587357,
-0.39037173986434937,
0.047840673476457596,
0.4483489394187927,
0.05217965319752693,
0.06576644629240036,
-0.24894218146800995,
0.08887603133916855,
-0.28972935676574707,
0.2565428912639618,
0.36795541644096375,
0.07156549394130707,
-0.025418512523174286,
-0.14957626163959503,
-0.6116508841514587,
0.05884387344121933,
0.06042831391096115,
-0.2176889181137085,
0.026487745344638824,
0.23334892094135284,
0.09485632181167603,
0.059500738978385925,
0.40475910902023315,
-0.11159389466047287,
0.1358875036239624,
0.018914952874183655,
-0.10165134072303772,
-0.08523637056350708,
-0.10310524702072144,
0.5716147422790527,
0.09364596009254456,
0.16503819823265076,
0.19559946656227112,
0.1957150548696518,
-0.10125900059938431,
-0.14049915969371796,
0.1763877421617508,
0.03498424217104912,
-0.1917303055524826,
-0.02499701827764511,
0.33787038922309875,
0.21551525592803955,
-0.054406676441431046,
-0.3151961863040924,
-0.3827751874923706,
-0.1919531524181366,
-0.09216480702161789,
0.43433061242103577,
0.11478513479232788,
0.4005175530910492,
-0.13338583707809448,
-0.3621266782283783,
-0.30944326519966125,
-0.11449079215526581,
0.08266858756542206,
-0.30939874053001404,
-0.16649383306503296,
0.04671835899353027,
0.2304987907409668,
-0.08480258285999298,
0.050469812005758286,
0.14592203497886658,
-0.1524728685617447,
-0.03635578602552414,
-0.24468496441841125,
-0.35240980982780457,
0.3186003267765045,
-0.46169883012771606,
0.07566843926906586,
-0.09872867166996002,
0.3212606906890869,
0.5552659034729004,
-0.20044398307800293,
-0.7379688620567322,
-0.02664719521999359,
0.5044904351234436,
0.14354774355888367,
-0.21545077860355377,
0.01331389881670475,
-0.04479701817035675,
0.1685386747121811,
0.04448254033923149,
0.46018990874290466,
0.30105385184288025,
0.04840012639760971,
0.13570569455623627,
-0.11521641165018082
] |
https://github.com/huggingface/datasets/issues/2522 | Documentation Mistakes in Dataset: emotion | The documentation has another bug in the dataset card [here](https://huggingface.co/datasets/emotion).
In the dataset summary **six** emotions are mentioned: *"six basic emotions: anger, fear, joy, love, sadness, and surprise"*, however, in the datafields section we have only **five**:
```
label: a classification label, with possible values including sadness (0), joy (1), love (2), anger (3), fear (4).
``` | As per documentation,
Dataset: emotion
Homepage: https://github.com/dair-ai/emotion_dataset
Dataset: https://github.com/huggingface/datasets/blob/master/datasets/emotion/emotion.py
Permalink: https://huggingface.co/datasets/viewer/?dataset=emotion
Emotion is a dataset of English Twitter messages with eight basic emotions: anger, anticipation, disgust, fear, joy, sadness, surprise, and trust. For more detailed information please refer to the paper.
But when we view the data, there are only 6 emotions, anger, fear, joy, sadness, surprise, and trust. | 57 | Documentation Mistakes in Dataset: emotion
As per documentation,
Dataset: emotion
Homepage: https://github.com/dair-ai/emotion_dataset
Dataset: https://github.com/huggingface/datasets/blob/master/datasets/emotion/emotion.py
Permalink: https://huggingface.co/datasets/viewer/?dataset=emotion
Emotion is a dataset of English Twitter messages with eight basic emotions: anger, anticipation, disgust, fear, joy, sadness, surprise, and trust. For more detailed information please refer to the paper.
But when we view the data, there are only 6 emotions, anger, fear, joy, sadness, surprise, and trust.
The documentation has another bug in the dataset card [here](https://huggingface.co/datasets/emotion).
In the dataset summary **six** emotions are mentioned: *"six basic emotions: anger, fear, joy, love, sadness, and surprise"*, however, in the datafields section we have only **five**:
```
label: a classification label, with possible values including sadness (0), joy (1), love (2), anger (3), fear (4).
``` | [
0.22789005935192108,
-0.3761098086833954,
-0.06796954572200775,
0.5594584941864014,
0.20203661918640137,
0.22613400220870972,
0.19695599377155304,
0.022524140775203705,
0.0012616515159606934,
0.1313014179468155,
-0.069181427359581,
0.011118495836853981,
-0.22286458313465118,
-0.05026264488697052,
-0.01382345613092184,
-0.21612969040870667,
0.06913378089666367,
-0.09175468981266022,
0.312677800655365,
-0.26968348026275635,
0.006577350199222565,
0.17419494688510895,
-0.1075700893998146,
0.33123457431793213,
-0.4914401173591614,
-0.16940830647945404,
-0.26453348994255066,
-0.11257380992174149,
-0.08385688066482544,
-0.46277543902397156,
0.07730790972709656,
-0.14899012446403503,
-0.11026577651500702,
0.2656154930591583,
-0.00011721302143996581,
-0.16829240322113037,
0.34960997104644775,
0.07669228315353394,
0.15159666538238525,
-0.26171380281448364,
0.17959493398666382,
-0.30643415451049805,
0.349129319190979,
-0.13220515847206116,
-0.049907613545656204,
-0.48834142088890076,
0.11388266831636429,
0.09869450330734253,
0.4581678509712219,
0.4068920314311981,
0.130726620554924,
0.12522448599338531,
0.2503623068332672,
0.27239546179771423,
0.4812477231025696,
0.5162389278411865,
-0.07120736688375473,
0.06512664258480072,
-0.13728295266628265,
-0.030913079157471657,
-0.18075281381607056,
0.4632367789745331,
0.21655282378196716,
-0.08152177929878235,
0.19908109307289124,
-0.04345652461051941,
0.21987494826316833,
-0.5311691761016846,
0.16024652123451233,
0.18023061752319336,
0.28509554266929626,
-0.06389869004487991,
-0.44281166791915894,
-0.09981240332126617,
0.02533682808279991,
-0.28604602813720703,
0.2218654453754425,
0.3302408456802368,
-0.07586222141981125,
0.06450992822647095,
0.10921914875507355,
0.07911552488803864,
-0.16224981844425201,
0.35895395278930664,
0.10028114914894104,
0.27931010723114014,
-0.3502037227153778,
0.04119372367858887,
-0.0028805509209632874,
-0.27384132146835327,
0.00548684224486351,
0.09863167256116867,
0.008740030229091644,
0.3557095527648926,
-0.19984544813632965,
0.13067302107810974,
-0.15072277188301086,
0.11646758019924164,
-0.047421447932720184,
-0.14657796919345856,
-0.01686272770166397,
0.09943584352731705,
-0.1982641965150833,
-0.03197845071554184,
0.6491281986236572,
0.1379549503326416,
0.1414259374141693,
0.07236548513174057,
0.2075231522321701,
0.12188082933425903,
-0.015157043933868408,
0.06125495582818985,
-0.1285015493631363,
0.17261460423469543,
0.08956216275691986,
-0.37203341722488403,
-0.09920693933963776,
0.08025901019573212,
-0.4401409924030304,
0.15587671101093292,
-0.1959206461906433,
-0.3431529998779297,
-0.027657054364681244,
0.3529999852180481,
0.009536122903227806,
0.17033296823501587,
-0.11321303993463516,
0.1091175377368927,
0.09286046028137207,
-0.50859135389328,
-0.1914743334054947,
0.03507149964570999,
-0.3806975185871124,
-0.04589594155550003,
-0.0186257753521204,
-0.20537450909614563,
0.6770135164260864,
0.1465134620666504,
-0.22493408620357513,
-0.25497567653656006,
0.020373618230223656,
-0.28897860646247864,
0.335680216550827,
0.24205875396728516,
-0.22180841863155365,
0.2563343048095703,
0.2576768100261688,
-0.03875039517879486,
0.0023665055632591248,
0.04585447534918785,
-0.1137375757098198,
0.002436954528093338,
-0.46342208981513977,
0.0898476168513298,
-0.14566552639007568,
-0.0021220482885837555,
0.030803091824054718,
0.6570588946342468,
0.0548417791724205,
0.11686348915100098,
0.3303908109664917,
-0.051830023527145386,
0.06766657531261444,
-0.23801757395267487,
0.27134010195732117,
0.24729320406913757,
-0.32529473304748535,
-0.4563797414302826,
-0.3269243538379669,
0.031751006841659546,
0.17113560438156128,
0.33134210109710693,
-0.2914266288280487,
0.1391991376876831,
-0.21401861310005188,
0.26463186740875244,
0.2556357681751251,
-0.290979266166687,
-0.19488425552845,
0.06591768562793732,
0.4306684136390686,
0.1617405265569687,
-0.0688261017203331,
0.2187492698431015,
0.08709728717803955,
0.15385542809963226,
0.07736602425575256,
-0.2183232307434082,
0.18273742496967316,
-0.06644372642040253,
-0.3192427456378937,
-0.3169689476490021,
0.2524898052215576,
0.12039276957511902,
-0.06514103710651398,
-0.10050375014543533,
0.28046777844429016,
-0.11029311269521713,
0.5481883883476257,
0.03700805455446243,
-0.08807877451181412,
0.2336844652891159,
0.009649138897657394,
0.3732636570930481,
0.05619732290506363,
-0.13090014457702637,
-0.23608967661857605,
-0.09323115646839142,
0.08228763192892075,
0.423324853181839,
0.29376935958862305,
-0.12404192239046097,
-0.21264034509658813,
-0.12519371509552002,
-0.13204416632652283,
-0.4550386071205139,
0.1354575902223587,
0.07666786760091782,
-0.2757889926433563,
0.06970429420471191,
-0.47384074330329895,
0.12479136139154434,
-0.3449215590953827,
0.10775895416736603,
-0.18724647164344788,
0.027499547228217125,
-0.16068731248378754,
0.056051336228847504,
0.019606616348028183,
0.16203010082244873,
0.05009446665644646,
0.011723922565579414,
0.011439407244324684,
0.2905339002609253,
0.16164083778858185,
0.03815314546227455,
-0.026784241199493408,
0.15291821956634521,
0.28487375378608704,
-0.39415407180786133,
-0.10300128906965256,
0.20446038246154785,
-0.18241740763187408,
0.24839797616004944,
-0.1493888795375824,
0.243313729763031,
0.21473240852355957,
0.08968733996152878,
0.09068985283374786,
0.014630531892180443,
0.32984012365341187,
0.3127593696117401,
-0.4836823344230652,
-0.37882566452026367,
0.11987079679965973,
-0.31416207551956177,
0.181473970413208,
0.14669181406497955,
-0.4187912046909332,
0.26752999424934387,
0.348052442073822,
0.06248307600617409,
0.21459168195724487,
0.29472827911376953,
-0.4955979585647583,
-0.35144752264022827,
0.07347685098648071,
0.1325918287038803,
0.22152598202228546,
0.17773033678531647,
-0.18282955884933472,
-0.041125960648059845,
-0.0655629113316536,
-0.007731650024652481,
0.27879229187965393,
0.26278701424598694,
0.17011119425296783,
-0.029567904770374298,
0.07578781247138977,
0.2529316246509552,
-0.25761878490448,
0.11739183962345123,
-0.10432916134595871,
0.199335515499115,
-0.4978722631931305,
-0.07833898067474365,
-0.10744573175907135,
-0.3407880365848541,
0.04449966177344322,
-0.04733477532863617,
-0.17816880345344543,
-0.24610832333564758,
-0.09900180995464325,
-0.3316045105457306,
-0.22319114208221436,
0.05518804490566254,
-0.14939647912979126,
0.14389973878860474,
-0.05011628568172455,
0.5716136693954468,
-0.21265429258346558,
-0.07229024171829224,
-0.2608467936515808,
-0.026183944195508957,
-0.061844151467084885,
0.021200431510806084,
0.08807510882616043,
-0.2749095857143402,
-0.24489201605319977,
-0.1621078997850418,
-0.5779832601547241,
0.3178650140762329,
-0.29717451333999634,
0.32269287109375,
0.15712803602218628,
0.08830270171165466,
-0.4744960069656372,
-0.2330653816461563,
0.18789076805114746,
-0.2841266989707947,
-0.25348103046417236,
-0.20326881110668182,
-0.08022665977478027,
0.010587142780423164,
0.04987870529294014,
-0.5322141647338867,
-0.2611316442489624,
-0.03009340539574623,
0.3929745554924011,
-0.03223548084497452,
0.20883706212043762,
0.40981602668762207,
-0.07244766503572464,
0.19509188830852509,
-0.42939493060112,
0.06386324763298035,
-0.39737769961357117,
-0.34335801005363464,
0.2581247389316559,
-0.29720228910446167,
-0.4222036898136139,
0.14150609076023102,
-0.05241517350077629,
0.18394553661346436,
-0.2734230160713196,
-0.46472877264022827,
0.05115041509270668,
-0.1944267302751541,
-0.017735911533236504,
-0.041077159345149994,
0.30682921409606934,
-0.1503886580467224,
-0.0550815649330616,
-0.11771760880947113,
0.0463656485080719,
-0.3264189064502716,
-0.024010807275772095,
-0.2740049362182617,
0.4890233278274536,
-0.3161647617816925,
0.11433036625385284,
-0.005592137575149536,
0.3012160658836365,
0.36403021216392517,
-0.0752410739660263,
0.09413300454616547,
-0.17518113553524017,
0.49576908349990845,
0.07349880784749985,
-0.20488181710243225,
0.1901770830154419,
-0.11402222514152527,
0.15148887038230896,
0.33768796920776367,
-0.0019762590527534485,
0.0758238136768341,
0.03708447515964508,
-0.012272922322154045,
-0.40062084794044495,
-0.24247601628303528,
-0.06711068004369736,
-0.4042089581489563,
0.24518993496894836,
0.07318288087844849,
-0.08514949679374695,
0.05769121274352074,
-0.11614823341369629,
0.027444925159215927,
0.2804912030696869,
-0.07129306346178055,
0.1587962955236435,
-0.31871265172958374,
-0.1466532051563263,
-0.301486611366272,
-0.0029693692922592163,
0.0035202682483941317,
0.2742656469345093,
-0.01958833634853363,
0.061258621513843536,
-0.0675668865442276,
0.26431211829185486,
0.36783352494239807,
-0.07173632830381393,
-0.09857237339019775,
0.018361303955316544,
0.24990373849868774,
-0.5007447600364685,
-0.05062741041183472,
-0.16744764149188995,
0.1643284410238266,
0.33425644040107727,
0.4149300158023834,
-0.17704084515571594,
-0.0497400239109993,
0.32808467745780945,
-0.1901947408914566,
-0.09736377000808716,
-0.0323961041867733,
-0.44497987627983093,
-0.19534599781036377,
-0.09129670262336731,
-0.29208025336265564,
0.22402717173099518,
-0.20789727568626404,
-0.1799054592847824,
0.2264789193868637,
0.0969693586230278,
0.19767433404922485,
0.13546016812324524,
0.0940064787864685,
0.24617385864257812,
-0.04857436567544937,
-0.030177077278494835,
0.5440455675125122,
0.3855815529823303,
-0.12067708373069763,
0.46220409870147705,
0.018419289961457253,
-0.6757637858390808,
0.11945777386426926,
-0.2098076045513153,
0.11837974190711975,
0.14150573313236237,
-0.06529954075813293,
0.07301757484674454,
0.0947406217455864,
0.05746859312057495,
-0.10473170131444931,
0.24433350563049316,
0.711189329624176,
0.07521378993988037,
0.05996095761656761,
-0.48067548871040344,
0.36706575751304626,
-0.08398362994194031,
-0.08839781582355499,
-0.057987987995147705,
0.7557597160339355,
-0.11018438637256622,
0.43663376569747925,
0.2543509006500244,
0.9578468203544617,
0.07619278132915497,
0.2944161891937256,
0.2077997326850891,
-0.14575430750846863,
0.7406724691390991,
-0.056105244904756546,
-0.018831010907888412,
-0.29548341035842896,
0.12475572526454926,
-0.055984169244766235,
0.015016745775938034,
-0.06511881202459335,
0.40499311685562134,
-0.1571677327156067,
0.12629686295986176,
-0.12011279910802841,
0.1303291618824005,
0.15087838470935822,
0.0663839802145958,
-0.015604520216584206,
0.06758932769298553,
-0.42908480763435364,
0.09753634035587311,
-0.07978223264217377,
0.2100459486246109,
0.05986253172159195,
0.05979987978935242,
-0.11596047133207321,
-0.1340596079826355,
-0.5893903970718384,
-0.2126672863960266,
-0.5194645524024963,
-0.07826893776655197,
-0.17986099421977997,
0.2217308133840561,
0.27852189540863037,
0.4108937382698059,
0.603326141834259,
-0.14083145558834076,
-0.013341432437300682,
0.051371555775403976,
0.020710859447717667,
-0.1507169008255005,
0.06720397621393204,
0.017980102449655533,
0.33002302050590515,
-0.027471406385302544,
-0.29581981897354126,
0.29169636964797974,
-0.13109171390533447,
0.08223837614059448,
-0.36899083852767944,
-0.07744885981082916,
-0.17547786235809326,
-0.11148500442504883,
0.03763923421502113,
-0.13399966061115265,
-0.2529582679271698,
-0.1680714637041092,
0.08119620382785797,
0.07642806321382523,
0.05853385105729103,
-0.040133148431777954,
0.06650716066360474,
-0.10028918087482452,
-0.19345930218696594,
0.06158612668514252,
-0.17057329416275024,
-0.2542167901992798,
0.5406143665313721,
0.10044458508491516,
-0.11129102110862732,
-0.16612619161605835,
0.21726709604263306,
0.4681221544742584,
-0.5093739628791809,
0.028537023812532425,
-0.07504565268754959,
-0.18804891407489777,
-0.17508308589458466,
0.3695050776004791,
0.19876530766487122,
0.17407840490341187,
-0.09536586701869965,
-0.26985928416252136,
-0.29419711232185364,
0.51636803150177,
0.02980371192097664,
-0.020537514239549637,
-0.01814093068242073,
-0.10053278505802155,
0.18231454491615295,
0.14308281242847443,
-0.23893745243549347,
-0.02211962640285492,
0.03280697762966156,
-0.0660993680357933,
0.06036892905831337,
0.046623293310403824,
0.3023722469806671,
-0.10205705463886261,
0.023495519533753395,
-0.08209209889173508,
0.35039782524108887,
-0.1244744211435318,
-0.16465646028518677,
0.15121272206306458,
0.17618012428283691,
-0.1728871762752533,
-0.024659015238285065,
-0.04597540572285652,
0.01745377480983734,
-0.11075762659311295,
0.1288384348154068,
0.3547991216182709,
0.1736484169960022,
0.49241846799850464,
-0.49811986088752747,
0.1142043024301529,
0.21114914119243622,
-0.2636595368385315,
0.29140064120292664,
0.4497142434120178,
0.4039941132068634,
0.024482132866978645,
0.13650931417942047,
-0.08947634696960449,
-0.04293263331055641,
0.08197538554668427,
-0.06941346824169159,
0.1605979949235916,
0.17299574613571167,
-0.4389433264732361,
0.0550435371696949,
-0.16892801225185394,
0.2798149287700653,
0.13400524854660034,
-0.3359326422214508,
-0.004765847697854042,
-0.018306832760572433,
0.15762482583522797,
-0.3968965411186218,
-0.03358547016978264,
-0.41131675243377686,
-0.214727982878685,
0.09323415160179138,
0.059822358191013336,
0.11930142343044281,
0.19217565655708313,
-0.19687612354755402,
-0.11986978352069855,
0.27331462502479553,
-0.20364327728748322,
0.3605172336101532,
0.06363838165998459,
-0.30926790833473206,
0.04876895248889923,
0.322680801153183,
0.20136640965938568,
0.0985749289393425,
0.28243735432624817,
0.29648709297180176,
0.3021490275859833,
0.10677606612443924,
0.09850668162107468,
0.26131412386894226,
-0.057473406195640564,
0.20301511883735657,
0.3090921938419342,
-0.28399813175201416,
0.19530588388442993,
-0.17470645904541016,
0.4983392357826233,
0.1831541657447815,
-0.14590054750442505,
-0.03188344091176987,
-0.12745727598667145,
-0.00936298817396164,
-0.06199057400226593,
-0.030184056609869003,
-0.17568308115005493,
-0.2913738489151001,
-0.15268009901046753,
-0.17421938478946686,
-0.31999897956848145,
-0.13690660893917084,
0.1180277019739151,
-0.33332395553588867,
-0.4665074944496155,
0.06986182928085327,
0.39389124512672424,
0.5547374486923218,
-0.02843058481812477,
0.24306458234786987,
0.39348143339157104,
-0.14327645301818848,
0.08196404576301575,
0.40148109197616577,
0.5032274723052979,
0.3967067003250122,
0.09295213222503662,
0.019338686019182205,
-0.1117190420627594,
-0.18396367132663727,
0.18530547618865967,
0.06624877452850342,
0.31340715289115906,
-0.36722275614738464,
-0.025825589895248413,
0.028867756947875023,
-0.1330489069223404,
0.12043190002441406,
0.14071890711784363,
0.6245941519737244,
-0.17278672754764557,
0.22617501020431519,
-0.6377100944519043,
-0.15763947367668152,
-0.03633513301610947,
0.01954629272222519,
-0.4079495370388031,
0.059690117835998535,
0.36125776171684265,
0.12828005850315094,
0.14223569631576538,
-0.2602689266204834,
0.07634495198726654,
-0.051585737615823746,
0.4524954557418823,
0.39467787742614746,
-0.058586105704307556,
-0.13414815068244934,
-0.1538640409708023,
-0.6280221343040466,
-0.06272529810667038,
0.20375236868858337,
-0.10847638547420502,
0.09425235539674759,
0.2431320995092392,
0.0440635047852993,
0.0037781372666358948,
0.3436659574508667,
-0.19575300812721252,
0.19260986149311066,
0.03259759396314621,
-0.0012266673147678375,
-0.041559163480997086,
-0.09133771061897278,
0.5593073964118958,
0.07246130704879761,
0.16459819674491882,
0.2135474681854248,
0.22352498769760132,
-0.1357315182685852,
-0.12305410206317902,
0.1906457543373108,
0.024897541850805283,
-0.11319597065448761,
-0.035930633544921875,
0.2088087499141693,
0.271009624004364,
-0.04301552101969719,
-0.3776264488697052,
-0.33015453815460205,
-0.10205255448818207,
-0.14426445960998535,
0.42085906863212585,
0.002445437014102936,
0.4061487913131714,
-0.06160809099674225,
-0.38960427045822144,
-0.2647526264190674,
-0.23974576592445374,
0.029162928462028503,
-0.4459317922592163,
-0.3299034535884857,
0.06640271097421646,
0.23389026522636414,
-0.07973577827215195,
0.06574322283267975,
0.18526175618171692,
-0.167939692735672,
0.058713532984256744,
-0.28508391976356506,
-0.34295910596847534,
0.2928657829761505,
-0.3829534947872162,
0.16297246515750885,
-0.017067883163690567,
0.3323793411254883,
0.5358174443244934,
-0.1682099848985672,
-0.8907253742218018,
-0.013814382255077362,
0.4004135727882385,
0.07055015861988068,
-0.3075481951236725,
-0.08492928743362427,
-0.0795939713716507,
0.05371926352381706,
-0.004654791206121445,
0.4645353853702545,
0.2049538493156433,
0.004116905853152275,
0.14021772146224976,
-0.08659272640943527
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.