html_url
stringlengths 51
51
| title
stringlengths 6
280
| comments
stringlengths 67
24.7k
| body
stringlengths 51
36.2k
⌀ | comment_length
int64 16
1.45k
| text
stringlengths 159
38.3k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/2498 | Improve torch formatting performance | @lhoestq the proposed branch is faster, but overall training speedup is a few percentage points. I couldn't figure out how to include the GitHub branch into setup.py, so I couldn't start NVidia optimized Docker-based pre-training run. But on bare metal, there is a slight improvement. I'll do some more performance traces. | **Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
| 51 | Improve torch formatting performance
**Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
@lhoestq the proposed branch is faster, but overall training speedup is a few percentage points. I couldn't figure out how to include the GitHub branch into setup.py, so I couldn't start NVidia optimized Docker-based pre-training run. But on bare metal, there is a slight improvement. I'll do some more performance traces. | [
-0.11883822828531265,
0.16306379437446594,
-0.1083887591958046,
-0.001332283136434853,
-0.08068305999040604,
-0.019639287143945694,
0.09920649975538254,
0.2937559187412262,
-0.16615261137485504,
-0.133849635720253,
-0.1209469735622406,
0.11728517711162567,
-0.09816189855337143,
0.0810495913028717,
-0.06285826116800308,
-0.23150232434272766,
-0.0381409116089344,
-0.025896195322275162,
0.05988885834813118,
0.11049521714448929,
-0.08881425857543945,
-0.10119785368442535,
0.13778339326381683,
-0.16025657951831818,
-0.005690921563655138,
-0.10142558068037033,
-0.14522352814674377,
0.031842779368162155,
0.015236818231642246,
-0.1379425823688507,
0.04617726430296898,
0.20017901062965393,
-0.06095150113105774,
0.20791660249233246,
0.000005690186299034394,
-0.028230983763933182,
-0.08265750110149384,
0.05904816463589668,
-0.011004110798239708,
0.25812751054763794,
0.30795276165008545,
-0.11764455586671829,
-0.01749098300933838,
0.08950190246105194,
-0.08168687671422958,
-0.013317767530679703,
-0.1187252476811409,
-0.004642309155315161,
-0.04767441004514694,
0.04709259420633316,
0.016705289483070374,
0.10467980802059174,
-0.07876234501600266,
-0.05964488908648491,
0.03383680060505867,
0.14280150830745697,
-0.16255450248718262,
0.027372825890779495,
0.1039399728178978,
-0.016987062990665436,
-0.06442239135503769,
0.04627646505832672,
0.05510058254003525,
-0.11506824195384979,
0.10739481449127197,
0.11887188255786896,
-0.25162404775619507,
0.0558130219578743,
0.11302885413169861,
0.10207601636648178,
-0.14782176911830902,
-0.09732267260551453,
-0.14595451951026917,
-0.018687935546040535,
-0.06267787516117096,
-0.21370916068553925,
-0.12104778736829758,
0.07260260730981827,
-0.08625916391611099,
0.008218453265726566,
-0.0757700502872467,
0.08034807443618774,
0.04058659449219704,
-0.07390021532773972,
-0.23531484603881836,
0.016051223501563072,
0.2067103534936905,
-0.07264702767133713,
0.13996171951293945,
0.08822683244943619,
0.21892794966697693,
-0.11988377571105957,
0.00927069503813982,
0.025499247014522552,
-0.20803864300251007,
-0.07671790570020676,
-0.16782206296920776,
-0.135110542178154,
-0.05779460817575455,
-0.08279649168252945,
0.059098225086927414,
0.2626301646232605,
-0.06669386476278305,
-0.06701944768428802,
-0.23467373847961426,
-0.02419922687113285,
-0.1312120258808136,
-0.174810990691185,
-0.07673633843660355,
-0.00998618733137846,
0.1970105618238449,
0.09643664956092834,
-0.11914364248514175,
-0.07300101220607758,
-0.1194596216082573,
-0.006627651862800121,
-0.05461837723851204,
0.06399892270565033,
0.05394270643591881,
-0.06948944926261902,
0.07713863998651505,
0.12451167404651642,
-0.11948752403259277,
0.04282219707965851,
-0.05381803214550018,
0.1393357515335083,
-0.012257545255124569,
-0.09724906831979752,
-0.08342595398426056,
-0.025141078978776932,
0.06373770534992218,
0.040348269045352936,
0.10759232938289642,
-0.06028914451599121,
0.02534639462828636,
0.022555820643901825,
-0.07445227354764938,
-0.11207214742898941,
-0.025612905621528625,
0.09823004901409149,
0.01038079708814621,
0.021650172770023346,
0.22766606509685516,
-0.016398504376411438,
-0.010942687280476093,
0.03301875293254852,
0.007432373706251383,
0.3170333206653595,
-0.1579727828502655,
-0.0006033303798176348,
0.08601102232933044,
0.09297700226306915,
-0.2278481423854828,
-0.01801919937133789,
-0.006680417340248823,
-0.026498813182115555,
0.07648016512393951,
-0.21290601789951324,
-0.03064901940524578,
0.025889001786708832,
0.05582715570926666,
-0.2380698323249817,
0.008179555647075176,
0.037750404328107834,
0.04152938351035118,
0.10737056285142899,
0.020877743139863014,
0.11759082227945328,
0.1721089780330658,
0.21474780142307281,
0.3142072558403015,
0.109914131462574,
-0.08629069477319717,
-0.019980713725090027,
0.12379482388496399,
-0.019698025658726692,
-0.02217750810086727,
-0.10348810255527496,
-0.024150101467967033,
0.02279600128531456,
0.02294481359422207,
0.1378050297498703,
-0.014458704739809036,
0.03803001344203949,
0.31501340866088867,
0.09803534299135208,
0.21799418330192566,
0.04480806738138199,
-0.06425708532333374,
-0.03007296472787857,
0.001535835792310536,
-0.14465849101543427,
0.1273719221353531,
-0.015776271000504494,
-0.011183330789208412,
-0.15786592662334442,
-0.15543097257614136,
-0.05131829157471657,
0.18436263501644135,
-0.25981229543685913,
-0.03596219792962074,
-0.027921484783291817,
-0.14083126187324524,
0.06640544533729553,
-0.0958324521780014,
0.11686520278453827,
-0.14375731348991394,
0.0523659810423851,
-0.0915028378367424,
0.010479683987796307,
-0.11909182369709015,
-0.04614997282624245,
0.11514025181531906,
-0.05269905924797058,
-0.03634972497820854,
-0.13591423630714417,
-0.029305540025234222,
0.03728073090314865,
-0.1830618679523468,
-0.09600164741277695,
0.08161363750696182,
0.22747813165187836,
0.01944044977426529,
0.03833679109811783,
0.013650807552039623,
-0.016284257173538208,
0.1025657206773758,
0.04087549448013306,
0.05686068907380104,
0.09200839698314667,
-0.057894267141819,
-0.08596408367156982,
0.14834903180599213,
-0.17141102254390717,
-0.06982573866844177,
0.018308328464627266,
0.002095078583806753,
-0.2244603931903839,
0.10701648145914078,
0.041851069778203964,
-0.02074182592332363,
-0.06231636554002762,
-0.08071725070476532,
-0.08928461372852325,
-0.09943633526563644,
-0.026111464947462082,
0.1656862199306488,
0.11544785648584366,
-0.09951584786176682,
0.04418021813035011,
-0.019908159971237183,
-0.0026318395975977182,
0.1071360781788826,
0.14400021731853485,
0.12168461829423904,
0.021106040105223656,
0.056908681988716125,
0.07414524257183075,
-0.07450494915246964,
0.11477231979370117,
-0.03821595758199692,
0.008227991871535778,
-0.12383369356393814,
0.15080668032169342,
0.08701453357934952,
-0.09923573583364487,
0.14925383031368256,
-0.31942376494407654,
0.03270987793803215,
-0.06788767874240875,
0.10020282864570618,
0.1488596796989441,
0.061490174382925034,
-0.015815675258636475,
-0.06739553809165955,
-0.1093866154551506,
-0.10826199501752853,
0.04474368318915367,
0.07238730043172836,
0.08452441543340683,
-0.047157395631074905,
-0.033911753445863724,
0.0632767304778099,
0.030927591025829315,
0.07933471351861954,
-0.040351707488298416,
-0.161393940448761,
0.10122688114643097,
-0.11063645035028458,
-0.00774203659966588,
0.04062995687127113,
-0.13008517026901245,
0.10593481361865997,
-0.03869682177901268,
0.0002652212278917432,
0.13908754289150238,
0.16645199060440063,
0.14507612586021423,
-0.05422527715563774,
-0.13134460151195526,
-0.04888258874416351,
0.10111977905035019,
0.04707079753279686,
0.010677219368517399,
0.08880917727947235,
0.047995757311582565,
0.02254774235188961,
-0.03805701807141304,
-0.09540624171495438,
-0.036482032388448715,
0.04662146419286728,
-0.02097558230161667,
-0.045252326875925064,
-0.24623219668865204,
-0.000853062083479017,
-0.013833596371114254,
-0.035698022693395615,
-0.14603722095489502,
-0.001383613795042038,
0.04314323142170906,
0.10387943685054779,
-0.07165595889091492,
-0.11833768337965012,
-0.13272923231124878,
-0.08002393692731857,
-0.002130871871486306,
-0.09447835385799408,
-0.06572792679071426,
-0.1801357865333557,
0.08546368032693863,
-0.032861173152923584,
0.0029676815029233694,
-0.06281700730323792,
-0.04819406569004059,
0.09103383868932724,
-0.07226306200027466,
-0.010125681757926941,
-0.1350266933441162,
0.22623193264007568,
0.09599015861749649,
-0.19161875545978546,
-0.11790703982114792,
-0.0712648406624794,
0.041975412517786026,
0.15071770548820496,
-0.10718566179275513,
0.06550222635269165,
-0.16642116010189056,
0.03901198133826256,
-0.007569864392280579,
-0.012703496031463146,
0.14562690258026123,
-0.04066553711891174,
-0.08546952903270721,
0.029598034918308258,
0.1775760054588318,
-0.2537045180797577,
-0.14448846876621246,
0.047839824110269547,
-0.1119556650519371,
-0.11610018461942673,
0.16148990392684937,
0.18774962425231934,
-0.05892620608210564,
-0.24157880246639252,
-0.1526496559381485,
0.006040741689503193,
-0.016398370265960693,
-0.21405759453773499,
-0.08452031016349792,
0.02783329226076603,
-0.11109238862991333,
0.06167428568005562,
0.306680828332901,
0.014125844463706017,
-0.005087526049464941,
0.1138705164194107,
-0.06754004955291748,
0.15844641625881195,
0.02259805053472519,
0.21759560704231262,
-0.13619743287563324,
-0.0599103607237339,
-0.059196460992097855,
0.11996845155954361,
-0.04031473398208618,
-0.036428891122341156,
0.0336885079741478,
-0.18482446670532227,
-0.01908804662525654,
-0.06094813346862793,
0.16912613809108734,
-0.04593990370631218,
-0.09327084571123123,
-0.03413528949022293,
0.01760927215218544,
0.15331505239009857,
0.08581989258527756,
0.049274396151304245,
0.20256800949573517,
0.18500955402851105,
0.03457510098814964,
0.016907671466469765,
-0.12096162885427475,
0.039171136915683746,
-0.17014388740062714,
0.012031057849526405,
0.029928022995591164,
0.059064384549856186,
0.004489374812692404,
0.06439661234617233,
0.20744812488555908,
-0.04721708595752716,
-0.17150837182998657,
0.14170166850090027,
0.028625208884477615,
-0.03685656189918518,
0.04992753267288208,
0.16885273158550262,
-0.14576970040798187,
-0.05057321488857269,
-0.17456163465976715,
0.057020366191864014,
-0.05232900008559227,
0.10654284805059433,
-0.08018732070922852,
-0.04715650901198387,
0.07986880093812943,
0.10845238715410233,
0.1098048985004425,
0.02456674724817276,
0.21681563556194305,
-0.05872057005763054,
0.10424735397100449,
0.11649191379547119,
-0.019547300413250923,
0.026735935360193253,
-0.07979077845811844,
-0.05223144218325615,
0.05927479267120361,
-0.12318804115056992,
-0.04789566993713379,
0.3197777569293976,
-0.010963221080601215,
0.004752787761390209,
-0.20069314539432526,
-0.05326935276389122,
0.06700316816568375,
-0.059151068329811096,
-0.058927021920681,
-0.18320448696613312,
-0.14381414651870728,
-0.164193794131279,
-0.15023359656333923,
0.1566782146692276,
0.08643178641796112,
-0.033660467714071274,
-0.21268533170223236,
0.000941713631618768,
0.05836385488510132,
0.09756821393966675,
-0.03704777732491493,
0.03562270849943161,
0.13659749925136566,
-0.049640171229839325,
-0.007165150251239538,
0.011651230044662952,
-0.22804208099842072,
0.18088750541210175,
-0.08428800106048584,
-0.06352529674768448,
-0.0020119412802159786,
0.08089140057563782,
0.0655423179268837,
-0.00832749716937542,
0.03806781396269798,
0.09370806068181992,
0.03734217584133148,
-0.06571966409683228,
0.03938763588666916,
0.09520935267210007,
0.10320558398962021,
-0.1257425993680954,
-0.1216907948255539,
0.11396659165620804,
0.09139472991228104,
-0.14080944657325745,
-0.018120665103197098,
-0.15175774693489075,
0.02774379774928093,
0.008988110348582268,
0.09948159754276276,
-0.11343388259410858,
0.000028701804694719613,
0.18482458591461182,
-0.06787512451410294,
-0.1783338040113449,
0.027134189382195473,
-0.0461580716073513,
-0.09338925033807755,
-0.02375025860965252,
-0.010982650332152843,
0.08713268488645554,
0.07791897654533386,
0.14204300940036774,
0.03598795086145401,
-0.062363091856241226,
-0.05498922988772392,
0.10940346121788025,
0.0912942886352539,
0.034015677869319916,
0.022942475974559784,
-0.0029224036261439323,
-0.12866151332855225,
0.048069607466459274,
0.22661514580249786,
0.0058241537772119045,
0.015599790029227734,
-0.12392554432153702,
0.03914396092295647,
-0.010733443312346935,
0.002152608474716544,
0.10683254897594452,
0.13827936351299286,
0.12935058772563934,
0.05133403465151787,
-0.07119912654161453,
-0.15030330419540405,
0.040063418447971344,
0.11253884434700012,
0.032886624336242676,
0.08421388268470764,
0.2670772075653076,
-0.0492391400039196,
-0.17231838405132294,
0.0783260241150856,
0.13097409904003143,
0.013949624262750149,
-0.11578965932130814,
-0.06696983426809311,
0.06658989191055298,
-0.167466938495636,
-0.07341371476650238,
0.1879834234714508,
-0.02855263650417328,
-0.1793215572834015,
0.06951646506786346,
-0.05668727681040764,
-0.033123619854450226,
-0.04899625852704048,
0.09254173934459686,
0.0802173763513565,
0.05021306872367859,
-0.13440434634685516,
0.06311117112636566,
-2.634349255623568e-32,
-0.14567254483699799,
0.10958664864301682,
0.022403355687856674,
-0.027079304680228233,
0.0019842886831611395,
-0.020343760028481483,
-0.04752274602651596,
-0.14969870448112488,
0.04701082035899162,
-0.0029860008507966995,
-0.13698872923851013,
0.017674820497632027,
0.033175334334373474,
-0.009995604865252972,
0.03555327653884888,
0.03868730366230011,
0.29156091809272766,
-0.08755695819854736,
-0.2332383096218109,
0.0849398821592331,
0.14701233804225922,
0.225900337100029,
0.06894829124212265,
0.0992051437497139,
-0.15019188821315765,
0.10571347177028656,
0.013328658416867256,
0.0285396259278059,
0.04314783215522766,
-0.08388643711805344,
-0.12094298750162125,
-0.0007217046222649515,
-0.12121447920799255,
0.013941756449639797,
-0.08199018985033035,
0.04392873868346214,
-0.14110954105854034,
-0.02185039594769478,
0.025636976584792137,
0.10579648613929749,
-0.029918724671006203,
-0.13221918046474457,
0.0758875384926796,
0.016011936590075493,
-0.07294770330190659,
0.05316255986690521,
-0.07177091389894485,
-0.04869323968887329,
-0.07021074742078781,
-0.15228530764579773,
-0.23572885990142822,
0.12069105356931686,
-0.0007068831473588943,
0.11619844287633896,
0.0757455974817276,
-0.04487856850028038,
0.1113806664943695,
0.005164533853530884,
-0.17002750933170319,
-0.09718786925077438,
0.12450852990150452,
0.22239191830158234,
0.03934326767921448,
0.02501058578491211,
-0.06359022855758667,
-0.03906940296292305,
0.22727680206298828,
0.0901135727763176,
0.2884526252746582,
0.16501976549625397,
0.1680814027786255,
-0.053666647523641586,
0.02375086024403572,
-0.11250550299882889,
-0.020109811797738075,
0.0397823303937912,
-0.132205069065094,
0.13786277174949646,
0.12929128110408783,
-0.08362245559692383,
-0.164950892329216,
0.1576361209154129,
0.10818986594676971,
0.06146269664168358,
0.04000743851065636,
0.22563536465168,
0.08067145943641663,
0.06219927966594696,
-0.09028305113315582,
-0.03653227910399437,
-0.15653109550476074,
0.03211839497089386,
0.20697662234306335,
-0.08983630686998367,
0.05625096708536148,
0.05455663427710533,
-0.08139705657958984,
0.08358053117990494,
-0.1515149474143982,
-0.10490600764751434,
-0.04438750818371773,
-0.04274289682507515,
-0.0005932293133810163,
-0.06100614741444588,
0.22077585756778717,
-0.11964307725429535,
0.04748415946960449,
0.08293520659208298,
-0.32652661204338074,
-0.008674335666000843,
0.033676933497190475,
-0.06357257813215256,
0.1480514258146286,
0.028104186058044434,
0.09964101761579514,
0.045360539108514786,
0.027188554406166077,
0.0758574828505516,
0.07875875383615494,
0.037971366196870804,
-0.0341067872941494,
-0.08728684484958649,
0.13386644423007965,
-0.13725018501281738,
-0.09154471755027771,
-0.07394642382860184,
-0.05232315883040428,
0.009060048498213291,
-0.048064082860946655,
-0.03639025613665581,
-0.17919586598873138,
0.00636901194229722,
6.985127356529119e-7,
0.0559762679040432,
0.1500197947025299,
0.09943659603595734,
-0.044151365756988525,
-0.020518559962511063,
0.14983680844306946,
0.05565166845917702,
0.0324261449277401,
-0.04938717931509018,
0.021231932565569878,
0.07271839678287506,
-0.0685974508523941,
0.019101634621620178,
0.012218020856380463,
0.09487083554267883,
-0.2161211520433426,
0.010661231353878975,
-0.06971488893032074,
-0.1880747526884079,
0.052158620208501816,
0.0243685245513916,
0.27122530341148376,
-0.06097225844860077,
-0.1791486144065857,
0.2627328038215637,
0.057548169046640396,
-0.014274529181420803,
-0.00029395302408374846,
-0.04185447469353676,
0.06571102887392044,
0.11151216924190521,
-0.06645311415195465,
-0.24488112330436707,
0.06893810629844666,
-0.11519978940486908,
-0.044504258781671524,
-0.19075369834899902,
0.11768924444913864,
0.15984749794006348,
0.15780115127563477,
0.03177301585674286,
-0.02282915636897087,
0.024139784276485443,
-0.16595372557640076,
0.014781294390559196,
0.1941472440958023,
0.020130785182118416,
0.11852403730154037,
-0.06380180269479752,
-0.05491466820240021,
-0.05736317113041878,
0.06758308410644531,
-0.031128689646720886,
0.1988278478384018,
0.038816310465335846,
-0.0792609229683876,
-0.1438027024269104,
-0.15787923336029053,
-0.0308604147285223,
-0.04333774372935295,
-0.040175240486860275,
-0.06916093826293945,
-0.09768238663673401,
0.0856141671538353,
0.23418259620666504,
-0.049798984080553055,
-0.08235353231430054,
2.763623952981661e-34,
-0.008120251819491386,
0.08617989718914032,
0.14236699044704437,
0.10515589267015457,
0.08724866062402725,
-0.05931452661752701,
0.020904183387756348,
0.008697597309947014,
0.06991482526063919,
-0.2999711334705353,
-0.16076892614364624
] |
https://github.com/huggingface/datasets/issues/2498 | Improve torch formatting performance | Hi @vblagoje, to install Datasets from @lhoestq PR reference #2505, you can use:
```shell
pip install git+ssh://git@github.com/huggingface/datasets.git@refs/pull/2505/head#egg=datasets
``` | **Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
| 18 | Improve torch formatting performance
**Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
Hi @vblagoje, to install Datasets from @lhoestq PR reference #2505, you can use:
```shell
pip install git+ssh://git@github.com/huggingface/datasets.git@refs/pull/2505/head#egg=datasets
``` | [
-0.11883822828531265,
0.16306379437446594,
-0.1083887591958046,
-0.001332283136434853,
-0.08068305999040604,
-0.019639287143945694,
0.09920649975538254,
0.2937559187412262,
-0.16615261137485504,
-0.133849635720253,
-0.1209469735622406,
0.11728517711162567,
-0.09816189855337143,
0.0810495913028717,
-0.06285826116800308,
-0.23150232434272766,
-0.0381409116089344,
-0.025896195322275162,
0.05988885834813118,
0.11049521714448929,
-0.08881425857543945,
-0.10119785368442535,
0.13778339326381683,
-0.16025657951831818,
-0.005690921563655138,
-0.10142558068037033,
-0.14522352814674377,
0.031842779368162155,
0.015236818231642246,
-0.1379425823688507,
0.04617726430296898,
0.20017901062965393,
-0.06095150113105774,
0.20791660249233246,
0.000005690186299034394,
-0.028230983763933182,
-0.08265750110149384,
0.05904816463589668,
-0.011004110798239708,
0.25812751054763794,
0.30795276165008545,
-0.11764455586671829,
-0.01749098300933838,
0.08950190246105194,
-0.08168687671422958,
-0.013317767530679703,
-0.1187252476811409,
-0.004642309155315161,
-0.04767441004514694,
0.04709259420633316,
0.016705289483070374,
0.10467980802059174,
-0.07876234501600266,
-0.05964488908648491,
0.03383680060505867,
0.14280150830745697,
-0.16255450248718262,
0.027372825890779495,
0.1039399728178978,
-0.016987062990665436,
-0.06442239135503769,
0.04627646505832672,
0.05510058254003525,
-0.11506824195384979,
0.10739481449127197,
0.11887188255786896,
-0.25162404775619507,
0.0558130219578743,
0.11302885413169861,
0.10207601636648178,
-0.14782176911830902,
-0.09732267260551453,
-0.14595451951026917,
-0.018687935546040535,
-0.06267787516117096,
-0.21370916068553925,
-0.12104778736829758,
0.07260260730981827,
-0.08625916391611099,
0.008218453265726566,
-0.0757700502872467,
0.08034807443618774,
0.04058659449219704,
-0.07390021532773972,
-0.23531484603881836,
0.016051223501563072,
0.2067103534936905,
-0.07264702767133713,
0.13996171951293945,
0.08822683244943619,
0.21892794966697693,
-0.11988377571105957,
0.00927069503813982,
0.025499247014522552,
-0.20803864300251007,
-0.07671790570020676,
-0.16782206296920776,
-0.135110542178154,
-0.05779460817575455,
-0.08279649168252945,
0.059098225086927414,
0.2626301646232605,
-0.06669386476278305,
-0.06701944768428802,
-0.23467373847961426,
-0.02419922687113285,
-0.1312120258808136,
-0.174810990691185,
-0.07673633843660355,
-0.00998618733137846,
0.1970105618238449,
0.09643664956092834,
-0.11914364248514175,
-0.07300101220607758,
-0.1194596216082573,
-0.006627651862800121,
-0.05461837723851204,
0.06399892270565033,
0.05394270643591881,
-0.06948944926261902,
0.07713863998651505,
0.12451167404651642,
-0.11948752403259277,
0.04282219707965851,
-0.05381803214550018,
0.1393357515335083,
-0.012257545255124569,
-0.09724906831979752,
-0.08342595398426056,
-0.025141078978776932,
0.06373770534992218,
0.040348269045352936,
0.10759232938289642,
-0.06028914451599121,
0.02534639462828636,
0.022555820643901825,
-0.07445227354764938,
-0.11207214742898941,
-0.025612905621528625,
0.09823004901409149,
0.01038079708814621,
0.021650172770023346,
0.22766606509685516,
-0.016398504376411438,
-0.010942687280476093,
0.03301875293254852,
0.007432373706251383,
0.3170333206653595,
-0.1579727828502655,
-0.0006033303798176348,
0.08601102232933044,
0.09297700226306915,
-0.2278481423854828,
-0.01801919937133789,
-0.006680417340248823,
-0.026498813182115555,
0.07648016512393951,
-0.21290601789951324,
-0.03064901940524578,
0.025889001786708832,
0.05582715570926666,
-0.2380698323249817,
0.008179555647075176,
0.037750404328107834,
0.04152938351035118,
0.10737056285142899,
0.020877743139863014,
0.11759082227945328,
0.1721089780330658,
0.21474780142307281,
0.3142072558403015,
0.109914131462574,
-0.08629069477319717,
-0.019980713725090027,
0.12379482388496399,
-0.019698025658726692,
-0.02217750810086727,
-0.10348810255527496,
-0.024150101467967033,
0.02279600128531456,
0.02294481359422207,
0.1378050297498703,
-0.014458704739809036,
0.03803001344203949,
0.31501340866088867,
0.09803534299135208,
0.21799418330192566,
0.04480806738138199,
-0.06425708532333374,
-0.03007296472787857,
0.001535835792310536,
-0.14465849101543427,
0.1273719221353531,
-0.015776271000504494,
-0.011183330789208412,
-0.15786592662334442,
-0.15543097257614136,
-0.05131829157471657,
0.18436263501644135,
-0.25981229543685913,
-0.03596219792962074,
-0.027921484783291817,
-0.14083126187324524,
0.06640544533729553,
-0.0958324521780014,
0.11686520278453827,
-0.14375731348991394,
0.0523659810423851,
-0.0915028378367424,
0.010479683987796307,
-0.11909182369709015,
-0.04614997282624245,
0.11514025181531906,
-0.05269905924797058,
-0.03634972497820854,
-0.13591423630714417,
-0.029305540025234222,
0.03728073090314865,
-0.1830618679523468,
-0.09600164741277695,
0.08161363750696182,
0.22747813165187836,
0.01944044977426529,
0.03833679109811783,
0.013650807552039623,
-0.016284257173538208,
0.1025657206773758,
0.04087549448013306,
0.05686068907380104,
0.09200839698314667,
-0.057894267141819,
-0.08596408367156982,
0.14834903180599213,
-0.17141102254390717,
-0.06982573866844177,
0.018308328464627266,
0.002095078583806753,
-0.2244603931903839,
0.10701648145914078,
0.041851069778203964,
-0.02074182592332363,
-0.06231636554002762,
-0.08071725070476532,
-0.08928461372852325,
-0.09943633526563644,
-0.026111464947462082,
0.1656862199306488,
0.11544785648584366,
-0.09951584786176682,
0.04418021813035011,
-0.019908159971237183,
-0.0026318395975977182,
0.1071360781788826,
0.14400021731853485,
0.12168461829423904,
0.021106040105223656,
0.056908681988716125,
0.07414524257183075,
-0.07450494915246964,
0.11477231979370117,
-0.03821595758199692,
0.008227991871535778,
-0.12383369356393814,
0.15080668032169342,
0.08701453357934952,
-0.09923573583364487,
0.14925383031368256,
-0.31942376494407654,
0.03270987793803215,
-0.06788767874240875,
0.10020282864570618,
0.1488596796989441,
0.061490174382925034,
-0.015815675258636475,
-0.06739553809165955,
-0.1093866154551506,
-0.10826199501752853,
0.04474368318915367,
0.07238730043172836,
0.08452441543340683,
-0.047157395631074905,
-0.033911753445863724,
0.0632767304778099,
0.030927591025829315,
0.07933471351861954,
-0.040351707488298416,
-0.161393940448761,
0.10122688114643097,
-0.11063645035028458,
-0.00774203659966588,
0.04062995687127113,
-0.13008517026901245,
0.10593481361865997,
-0.03869682177901268,
0.0002652212278917432,
0.13908754289150238,
0.16645199060440063,
0.14507612586021423,
-0.05422527715563774,
-0.13134460151195526,
-0.04888258874416351,
0.10111977905035019,
0.04707079753279686,
0.010677219368517399,
0.08880917727947235,
0.047995757311582565,
0.02254774235188961,
-0.03805701807141304,
-0.09540624171495438,
-0.036482032388448715,
0.04662146419286728,
-0.02097558230161667,
-0.045252326875925064,
-0.24623219668865204,
-0.000853062083479017,
-0.013833596371114254,
-0.035698022693395615,
-0.14603722095489502,
-0.001383613795042038,
0.04314323142170906,
0.10387943685054779,
-0.07165595889091492,
-0.11833768337965012,
-0.13272923231124878,
-0.08002393692731857,
-0.002130871871486306,
-0.09447835385799408,
-0.06572792679071426,
-0.1801357865333557,
0.08546368032693863,
-0.032861173152923584,
0.0029676815029233694,
-0.06281700730323792,
-0.04819406569004059,
0.09103383868932724,
-0.07226306200027466,
-0.010125681757926941,
-0.1350266933441162,
0.22623193264007568,
0.09599015861749649,
-0.19161875545978546,
-0.11790703982114792,
-0.0712648406624794,
0.041975412517786026,
0.15071770548820496,
-0.10718566179275513,
0.06550222635269165,
-0.16642116010189056,
0.03901198133826256,
-0.007569864392280579,
-0.012703496031463146,
0.14562690258026123,
-0.04066553711891174,
-0.08546952903270721,
0.029598034918308258,
0.1775760054588318,
-0.2537045180797577,
-0.14448846876621246,
0.047839824110269547,
-0.1119556650519371,
-0.11610018461942673,
0.16148990392684937,
0.18774962425231934,
-0.05892620608210564,
-0.24157880246639252,
-0.1526496559381485,
0.006040741689503193,
-0.016398370265960693,
-0.21405759453773499,
-0.08452031016349792,
0.02783329226076603,
-0.11109238862991333,
0.06167428568005562,
0.306680828332901,
0.014125844463706017,
-0.005087526049464941,
0.1138705164194107,
-0.06754004955291748,
0.15844641625881195,
0.02259805053472519,
0.21759560704231262,
-0.13619743287563324,
-0.0599103607237339,
-0.059196460992097855,
0.11996845155954361,
-0.04031473398208618,
-0.036428891122341156,
0.0336885079741478,
-0.18482446670532227,
-0.01908804662525654,
-0.06094813346862793,
0.16912613809108734,
-0.04593990370631218,
-0.09327084571123123,
-0.03413528949022293,
0.01760927215218544,
0.15331505239009857,
0.08581989258527756,
0.049274396151304245,
0.20256800949573517,
0.18500955402851105,
0.03457510098814964,
0.016907671466469765,
-0.12096162885427475,
0.039171136915683746,
-0.17014388740062714,
0.012031057849526405,
0.029928022995591164,
0.059064384549856186,
0.004489374812692404,
0.06439661234617233,
0.20744812488555908,
-0.04721708595752716,
-0.17150837182998657,
0.14170166850090027,
0.028625208884477615,
-0.03685656189918518,
0.04992753267288208,
0.16885273158550262,
-0.14576970040798187,
-0.05057321488857269,
-0.17456163465976715,
0.057020366191864014,
-0.05232900008559227,
0.10654284805059433,
-0.08018732070922852,
-0.04715650901198387,
0.07986880093812943,
0.10845238715410233,
0.1098048985004425,
0.02456674724817276,
0.21681563556194305,
-0.05872057005763054,
0.10424735397100449,
0.11649191379547119,
-0.019547300413250923,
0.026735935360193253,
-0.07979077845811844,
-0.05223144218325615,
0.05927479267120361,
-0.12318804115056992,
-0.04789566993713379,
0.3197777569293976,
-0.010963221080601215,
0.004752787761390209,
-0.20069314539432526,
-0.05326935276389122,
0.06700316816568375,
-0.059151068329811096,
-0.058927021920681,
-0.18320448696613312,
-0.14381414651870728,
-0.164193794131279,
-0.15023359656333923,
0.1566782146692276,
0.08643178641796112,
-0.033660467714071274,
-0.21268533170223236,
0.000941713631618768,
0.05836385488510132,
0.09756821393966675,
-0.03704777732491493,
0.03562270849943161,
0.13659749925136566,
-0.049640171229839325,
-0.007165150251239538,
0.011651230044662952,
-0.22804208099842072,
0.18088750541210175,
-0.08428800106048584,
-0.06352529674768448,
-0.0020119412802159786,
0.08089140057563782,
0.0655423179268837,
-0.00832749716937542,
0.03806781396269798,
0.09370806068181992,
0.03734217584133148,
-0.06571966409683228,
0.03938763588666916,
0.09520935267210007,
0.10320558398962021,
-0.1257425993680954,
-0.1216907948255539,
0.11396659165620804,
0.09139472991228104,
-0.14080944657325745,
-0.018120665103197098,
-0.15175774693489075,
0.02774379774928093,
0.008988110348582268,
0.09948159754276276,
-0.11343388259410858,
0.000028701804694719613,
0.18482458591461182,
-0.06787512451410294,
-0.1783338040113449,
0.027134189382195473,
-0.0461580716073513,
-0.09338925033807755,
-0.02375025860965252,
-0.010982650332152843,
0.08713268488645554,
0.07791897654533386,
0.14204300940036774,
0.03598795086145401,
-0.062363091856241226,
-0.05498922988772392,
0.10940346121788025,
0.0912942886352539,
0.034015677869319916,
0.022942475974559784,
-0.0029224036261439323,
-0.12866151332855225,
0.048069607466459274,
0.22661514580249786,
0.0058241537772119045,
0.015599790029227734,
-0.12392554432153702,
0.03914396092295647,
-0.010733443312346935,
0.002152608474716544,
0.10683254897594452,
0.13827936351299286,
0.12935058772563934,
0.05133403465151787,
-0.07119912654161453,
-0.15030330419540405,
0.040063418447971344,
0.11253884434700012,
0.032886624336242676,
0.08421388268470764,
0.2670772075653076,
-0.0492391400039196,
-0.17231838405132294,
0.0783260241150856,
0.13097409904003143,
0.013949624262750149,
-0.11578965932130814,
-0.06696983426809311,
0.06658989191055298,
-0.167466938495636,
-0.07341371476650238,
0.1879834234714508,
-0.02855263650417328,
-0.1793215572834015,
0.06951646506786346,
-0.05668727681040764,
-0.033123619854450226,
-0.04899625852704048,
0.09254173934459686,
0.0802173763513565,
0.05021306872367859,
-0.13440434634685516,
0.06311117112636566,
-2.634349255623568e-32,
-0.14567254483699799,
0.10958664864301682,
0.022403355687856674,
-0.027079304680228233,
0.0019842886831611395,
-0.020343760028481483,
-0.04752274602651596,
-0.14969870448112488,
0.04701082035899162,
-0.0029860008507966995,
-0.13698872923851013,
0.017674820497632027,
0.033175334334373474,
-0.009995604865252972,
0.03555327653884888,
0.03868730366230011,
0.29156091809272766,
-0.08755695819854736,
-0.2332383096218109,
0.0849398821592331,
0.14701233804225922,
0.225900337100029,
0.06894829124212265,
0.0992051437497139,
-0.15019188821315765,
0.10571347177028656,
0.013328658416867256,
0.0285396259278059,
0.04314783215522766,
-0.08388643711805344,
-0.12094298750162125,
-0.0007217046222649515,
-0.12121447920799255,
0.013941756449639797,
-0.08199018985033035,
0.04392873868346214,
-0.14110954105854034,
-0.02185039594769478,
0.025636976584792137,
0.10579648613929749,
-0.029918724671006203,
-0.13221918046474457,
0.0758875384926796,
0.016011936590075493,
-0.07294770330190659,
0.05316255986690521,
-0.07177091389894485,
-0.04869323968887329,
-0.07021074742078781,
-0.15228530764579773,
-0.23572885990142822,
0.12069105356931686,
-0.0007068831473588943,
0.11619844287633896,
0.0757455974817276,
-0.04487856850028038,
0.1113806664943695,
0.005164533853530884,
-0.17002750933170319,
-0.09718786925077438,
0.12450852990150452,
0.22239191830158234,
0.03934326767921448,
0.02501058578491211,
-0.06359022855758667,
-0.03906940296292305,
0.22727680206298828,
0.0901135727763176,
0.2884526252746582,
0.16501976549625397,
0.1680814027786255,
-0.053666647523641586,
0.02375086024403572,
-0.11250550299882889,
-0.020109811797738075,
0.0397823303937912,
-0.132205069065094,
0.13786277174949646,
0.12929128110408783,
-0.08362245559692383,
-0.164950892329216,
0.1576361209154129,
0.10818986594676971,
0.06146269664168358,
0.04000743851065636,
0.22563536465168,
0.08067145943641663,
0.06219927966594696,
-0.09028305113315582,
-0.03653227910399437,
-0.15653109550476074,
0.03211839497089386,
0.20697662234306335,
-0.08983630686998367,
0.05625096708536148,
0.05455663427710533,
-0.08139705657958984,
0.08358053117990494,
-0.1515149474143982,
-0.10490600764751434,
-0.04438750818371773,
-0.04274289682507515,
-0.0005932293133810163,
-0.06100614741444588,
0.22077585756778717,
-0.11964307725429535,
0.04748415946960449,
0.08293520659208298,
-0.32652661204338074,
-0.008674335666000843,
0.033676933497190475,
-0.06357257813215256,
0.1480514258146286,
0.028104186058044434,
0.09964101761579514,
0.045360539108514786,
0.027188554406166077,
0.0758574828505516,
0.07875875383615494,
0.037971366196870804,
-0.0341067872941494,
-0.08728684484958649,
0.13386644423007965,
-0.13725018501281738,
-0.09154471755027771,
-0.07394642382860184,
-0.05232315883040428,
0.009060048498213291,
-0.048064082860946655,
-0.03639025613665581,
-0.17919586598873138,
0.00636901194229722,
6.985127356529119e-7,
0.0559762679040432,
0.1500197947025299,
0.09943659603595734,
-0.044151365756988525,
-0.020518559962511063,
0.14983680844306946,
0.05565166845917702,
0.0324261449277401,
-0.04938717931509018,
0.021231932565569878,
0.07271839678287506,
-0.0685974508523941,
0.019101634621620178,
0.012218020856380463,
0.09487083554267883,
-0.2161211520433426,
0.010661231353878975,
-0.06971488893032074,
-0.1880747526884079,
0.052158620208501816,
0.0243685245513916,
0.27122530341148376,
-0.06097225844860077,
-0.1791486144065857,
0.2627328038215637,
0.057548169046640396,
-0.014274529181420803,
-0.00029395302408374846,
-0.04185447469353676,
0.06571102887392044,
0.11151216924190521,
-0.06645311415195465,
-0.24488112330436707,
0.06893810629844666,
-0.11519978940486908,
-0.044504258781671524,
-0.19075369834899902,
0.11768924444913864,
0.15984749794006348,
0.15780115127563477,
0.03177301585674286,
-0.02282915636897087,
0.024139784276485443,
-0.16595372557640076,
0.014781294390559196,
0.1941472440958023,
0.020130785182118416,
0.11852403730154037,
-0.06380180269479752,
-0.05491466820240021,
-0.05736317113041878,
0.06758308410644531,
-0.031128689646720886,
0.1988278478384018,
0.038816310465335846,
-0.0792609229683876,
-0.1438027024269104,
-0.15787923336029053,
-0.0308604147285223,
-0.04333774372935295,
-0.040175240486860275,
-0.06916093826293945,
-0.09768238663673401,
0.0856141671538353,
0.23418259620666504,
-0.049798984080553055,
-0.08235353231430054,
2.763623952981661e-34,
-0.008120251819491386,
0.08617989718914032,
0.14236699044704437,
0.10515589267015457,
0.08724866062402725,
-0.05931452661752701,
0.020904183387756348,
0.008697597309947014,
0.06991482526063919,
-0.2999711334705353,
-0.16076892614364624
] |
https://github.com/huggingface/datasets/issues/2498 | Improve torch formatting performance | Hey @albertvillanova yes thank you, I am aware, I can easily pull it from a terminal command line but then I can't automate docker image builds as dependencies are picked up from setup.py and for some reason setup.py doesn't accept this string format. | **Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
| 43 | Improve torch formatting performance
**Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
Hey @albertvillanova yes thank you, I am aware, I can easily pull it from a terminal command line but then I can't automate docker image builds as dependencies are picked up from setup.py and for some reason setup.py doesn't accept this string format. | [
-0.11883822828531265,
0.16306379437446594,
-0.1083887591958046,
-0.001332283136434853,
-0.08068305999040604,
-0.019639287143945694,
0.09920649975538254,
0.2937559187412262,
-0.16615261137485504,
-0.133849635720253,
-0.1209469735622406,
0.11728517711162567,
-0.09816189855337143,
0.0810495913028717,
-0.06285826116800308,
-0.23150232434272766,
-0.0381409116089344,
-0.025896195322275162,
0.05988885834813118,
0.11049521714448929,
-0.08881425857543945,
-0.10119785368442535,
0.13778339326381683,
-0.16025657951831818,
-0.005690921563655138,
-0.10142558068037033,
-0.14522352814674377,
0.031842779368162155,
0.015236818231642246,
-0.1379425823688507,
0.04617726430296898,
0.20017901062965393,
-0.06095150113105774,
0.20791660249233246,
0.000005690186299034394,
-0.028230983763933182,
-0.08265750110149384,
0.05904816463589668,
-0.011004110798239708,
0.25812751054763794,
0.30795276165008545,
-0.11764455586671829,
-0.01749098300933838,
0.08950190246105194,
-0.08168687671422958,
-0.013317767530679703,
-0.1187252476811409,
-0.004642309155315161,
-0.04767441004514694,
0.04709259420633316,
0.016705289483070374,
0.10467980802059174,
-0.07876234501600266,
-0.05964488908648491,
0.03383680060505867,
0.14280150830745697,
-0.16255450248718262,
0.027372825890779495,
0.1039399728178978,
-0.016987062990665436,
-0.06442239135503769,
0.04627646505832672,
0.05510058254003525,
-0.11506824195384979,
0.10739481449127197,
0.11887188255786896,
-0.25162404775619507,
0.0558130219578743,
0.11302885413169861,
0.10207601636648178,
-0.14782176911830902,
-0.09732267260551453,
-0.14595451951026917,
-0.018687935546040535,
-0.06267787516117096,
-0.21370916068553925,
-0.12104778736829758,
0.07260260730981827,
-0.08625916391611099,
0.008218453265726566,
-0.0757700502872467,
0.08034807443618774,
0.04058659449219704,
-0.07390021532773972,
-0.23531484603881836,
0.016051223501563072,
0.2067103534936905,
-0.07264702767133713,
0.13996171951293945,
0.08822683244943619,
0.21892794966697693,
-0.11988377571105957,
0.00927069503813982,
0.025499247014522552,
-0.20803864300251007,
-0.07671790570020676,
-0.16782206296920776,
-0.135110542178154,
-0.05779460817575455,
-0.08279649168252945,
0.059098225086927414,
0.2626301646232605,
-0.06669386476278305,
-0.06701944768428802,
-0.23467373847961426,
-0.02419922687113285,
-0.1312120258808136,
-0.174810990691185,
-0.07673633843660355,
-0.00998618733137846,
0.1970105618238449,
0.09643664956092834,
-0.11914364248514175,
-0.07300101220607758,
-0.1194596216082573,
-0.006627651862800121,
-0.05461837723851204,
0.06399892270565033,
0.05394270643591881,
-0.06948944926261902,
0.07713863998651505,
0.12451167404651642,
-0.11948752403259277,
0.04282219707965851,
-0.05381803214550018,
0.1393357515335083,
-0.012257545255124569,
-0.09724906831979752,
-0.08342595398426056,
-0.025141078978776932,
0.06373770534992218,
0.040348269045352936,
0.10759232938289642,
-0.06028914451599121,
0.02534639462828636,
0.022555820643901825,
-0.07445227354764938,
-0.11207214742898941,
-0.025612905621528625,
0.09823004901409149,
0.01038079708814621,
0.021650172770023346,
0.22766606509685516,
-0.016398504376411438,
-0.010942687280476093,
0.03301875293254852,
0.007432373706251383,
0.3170333206653595,
-0.1579727828502655,
-0.0006033303798176348,
0.08601102232933044,
0.09297700226306915,
-0.2278481423854828,
-0.01801919937133789,
-0.006680417340248823,
-0.026498813182115555,
0.07648016512393951,
-0.21290601789951324,
-0.03064901940524578,
0.025889001786708832,
0.05582715570926666,
-0.2380698323249817,
0.008179555647075176,
0.037750404328107834,
0.04152938351035118,
0.10737056285142899,
0.020877743139863014,
0.11759082227945328,
0.1721089780330658,
0.21474780142307281,
0.3142072558403015,
0.109914131462574,
-0.08629069477319717,
-0.019980713725090027,
0.12379482388496399,
-0.019698025658726692,
-0.02217750810086727,
-0.10348810255527496,
-0.024150101467967033,
0.02279600128531456,
0.02294481359422207,
0.1378050297498703,
-0.014458704739809036,
0.03803001344203949,
0.31501340866088867,
0.09803534299135208,
0.21799418330192566,
0.04480806738138199,
-0.06425708532333374,
-0.03007296472787857,
0.001535835792310536,
-0.14465849101543427,
0.1273719221353531,
-0.015776271000504494,
-0.011183330789208412,
-0.15786592662334442,
-0.15543097257614136,
-0.05131829157471657,
0.18436263501644135,
-0.25981229543685913,
-0.03596219792962074,
-0.027921484783291817,
-0.14083126187324524,
0.06640544533729553,
-0.0958324521780014,
0.11686520278453827,
-0.14375731348991394,
0.0523659810423851,
-0.0915028378367424,
0.010479683987796307,
-0.11909182369709015,
-0.04614997282624245,
0.11514025181531906,
-0.05269905924797058,
-0.03634972497820854,
-0.13591423630714417,
-0.029305540025234222,
0.03728073090314865,
-0.1830618679523468,
-0.09600164741277695,
0.08161363750696182,
0.22747813165187836,
0.01944044977426529,
0.03833679109811783,
0.013650807552039623,
-0.016284257173538208,
0.1025657206773758,
0.04087549448013306,
0.05686068907380104,
0.09200839698314667,
-0.057894267141819,
-0.08596408367156982,
0.14834903180599213,
-0.17141102254390717,
-0.06982573866844177,
0.018308328464627266,
0.002095078583806753,
-0.2244603931903839,
0.10701648145914078,
0.041851069778203964,
-0.02074182592332363,
-0.06231636554002762,
-0.08071725070476532,
-0.08928461372852325,
-0.09943633526563644,
-0.026111464947462082,
0.1656862199306488,
0.11544785648584366,
-0.09951584786176682,
0.04418021813035011,
-0.019908159971237183,
-0.0026318395975977182,
0.1071360781788826,
0.14400021731853485,
0.12168461829423904,
0.021106040105223656,
0.056908681988716125,
0.07414524257183075,
-0.07450494915246964,
0.11477231979370117,
-0.03821595758199692,
0.008227991871535778,
-0.12383369356393814,
0.15080668032169342,
0.08701453357934952,
-0.09923573583364487,
0.14925383031368256,
-0.31942376494407654,
0.03270987793803215,
-0.06788767874240875,
0.10020282864570618,
0.1488596796989441,
0.061490174382925034,
-0.015815675258636475,
-0.06739553809165955,
-0.1093866154551506,
-0.10826199501752853,
0.04474368318915367,
0.07238730043172836,
0.08452441543340683,
-0.047157395631074905,
-0.033911753445863724,
0.0632767304778099,
0.030927591025829315,
0.07933471351861954,
-0.040351707488298416,
-0.161393940448761,
0.10122688114643097,
-0.11063645035028458,
-0.00774203659966588,
0.04062995687127113,
-0.13008517026901245,
0.10593481361865997,
-0.03869682177901268,
0.0002652212278917432,
0.13908754289150238,
0.16645199060440063,
0.14507612586021423,
-0.05422527715563774,
-0.13134460151195526,
-0.04888258874416351,
0.10111977905035019,
0.04707079753279686,
0.010677219368517399,
0.08880917727947235,
0.047995757311582565,
0.02254774235188961,
-0.03805701807141304,
-0.09540624171495438,
-0.036482032388448715,
0.04662146419286728,
-0.02097558230161667,
-0.045252326875925064,
-0.24623219668865204,
-0.000853062083479017,
-0.013833596371114254,
-0.035698022693395615,
-0.14603722095489502,
-0.001383613795042038,
0.04314323142170906,
0.10387943685054779,
-0.07165595889091492,
-0.11833768337965012,
-0.13272923231124878,
-0.08002393692731857,
-0.002130871871486306,
-0.09447835385799408,
-0.06572792679071426,
-0.1801357865333557,
0.08546368032693863,
-0.032861173152923584,
0.0029676815029233694,
-0.06281700730323792,
-0.04819406569004059,
0.09103383868932724,
-0.07226306200027466,
-0.010125681757926941,
-0.1350266933441162,
0.22623193264007568,
0.09599015861749649,
-0.19161875545978546,
-0.11790703982114792,
-0.0712648406624794,
0.041975412517786026,
0.15071770548820496,
-0.10718566179275513,
0.06550222635269165,
-0.16642116010189056,
0.03901198133826256,
-0.007569864392280579,
-0.012703496031463146,
0.14562690258026123,
-0.04066553711891174,
-0.08546952903270721,
0.029598034918308258,
0.1775760054588318,
-0.2537045180797577,
-0.14448846876621246,
0.047839824110269547,
-0.1119556650519371,
-0.11610018461942673,
0.16148990392684937,
0.18774962425231934,
-0.05892620608210564,
-0.24157880246639252,
-0.1526496559381485,
0.006040741689503193,
-0.016398370265960693,
-0.21405759453773499,
-0.08452031016349792,
0.02783329226076603,
-0.11109238862991333,
0.06167428568005562,
0.306680828332901,
0.014125844463706017,
-0.005087526049464941,
0.1138705164194107,
-0.06754004955291748,
0.15844641625881195,
0.02259805053472519,
0.21759560704231262,
-0.13619743287563324,
-0.0599103607237339,
-0.059196460992097855,
0.11996845155954361,
-0.04031473398208618,
-0.036428891122341156,
0.0336885079741478,
-0.18482446670532227,
-0.01908804662525654,
-0.06094813346862793,
0.16912613809108734,
-0.04593990370631218,
-0.09327084571123123,
-0.03413528949022293,
0.01760927215218544,
0.15331505239009857,
0.08581989258527756,
0.049274396151304245,
0.20256800949573517,
0.18500955402851105,
0.03457510098814964,
0.016907671466469765,
-0.12096162885427475,
0.039171136915683746,
-0.17014388740062714,
0.012031057849526405,
0.029928022995591164,
0.059064384549856186,
0.004489374812692404,
0.06439661234617233,
0.20744812488555908,
-0.04721708595752716,
-0.17150837182998657,
0.14170166850090027,
0.028625208884477615,
-0.03685656189918518,
0.04992753267288208,
0.16885273158550262,
-0.14576970040798187,
-0.05057321488857269,
-0.17456163465976715,
0.057020366191864014,
-0.05232900008559227,
0.10654284805059433,
-0.08018732070922852,
-0.04715650901198387,
0.07986880093812943,
0.10845238715410233,
0.1098048985004425,
0.02456674724817276,
0.21681563556194305,
-0.05872057005763054,
0.10424735397100449,
0.11649191379547119,
-0.019547300413250923,
0.026735935360193253,
-0.07979077845811844,
-0.05223144218325615,
0.05927479267120361,
-0.12318804115056992,
-0.04789566993713379,
0.3197777569293976,
-0.010963221080601215,
0.004752787761390209,
-0.20069314539432526,
-0.05326935276389122,
0.06700316816568375,
-0.059151068329811096,
-0.058927021920681,
-0.18320448696613312,
-0.14381414651870728,
-0.164193794131279,
-0.15023359656333923,
0.1566782146692276,
0.08643178641796112,
-0.033660467714071274,
-0.21268533170223236,
0.000941713631618768,
0.05836385488510132,
0.09756821393966675,
-0.03704777732491493,
0.03562270849943161,
0.13659749925136566,
-0.049640171229839325,
-0.007165150251239538,
0.011651230044662952,
-0.22804208099842072,
0.18088750541210175,
-0.08428800106048584,
-0.06352529674768448,
-0.0020119412802159786,
0.08089140057563782,
0.0655423179268837,
-0.00832749716937542,
0.03806781396269798,
0.09370806068181992,
0.03734217584133148,
-0.06571966409683228,
0.03938763588666916,
0.09520935267210007,
0.10320558398962021,
-0.1257425993680954,
-0.1216907948255539,
0.11396659165620804,
0.09139472991228104,
-0.14080944657325745,
-0.018120665103197098,
-0.15175774693489075,
0.02774379774928093,
0.008988110348582268,
0.09948159754276276,
-0.11343388259410858,
0.000028701804694719613,
0.18482458591461182,
-0.06787512451410294,
-0.1783338040113449,
0.027134189382195473,
-0.0461580716073513,
-0.09338925033807755,
-0.02375025860965252,
-0.010982650332152843,
0.08713268488645554,
0.07791897654533386,
0.14204300940036774,
0.03598795086145401,
-0.062363091856241226,
-0.05498922988772392,
0.10940346121788025,
0.0912942886352539,
0.034015677869319916,
0.022942475974559784,
-0.0029224036261439323,
-0.12866151332855225,
0.048069607466459274,
0.22661514580249786,
0.0058241537772119045,
0.015599790029227734,
-0.12392554432153702,
0.03914396092295647,
-0.010733443312346935,
0.002152608474716544,
0.10683254897594452,
0.13827936351299286,
0.12935058772563934,
0.05133403465151787,
-0.07119912654161453,
-0.15030330419540405,
0.040063418447971344,
0.11253884434700012,
0.032886624336242676,
0.08421388268470764,
0.2670772075653076,
-0.0492391400039196,
-0.17231838405132294,
0.0783260241150856,
0.13097409904003143,
0.013949624262750149,
-0.11578965932130814,
-0.06696983426809311,
0.06658989191055298,
-0.167466938495636,
-0.07341371476650238,
0.1879834234714508,
-0.02855263650417328,
-0.1793215572834015,
0.06951646506786346,
-0.05668727681040764,
-0.033123619854450226,
-0.04899625852704048,
0.09254173934459686,
0.0802173763513565,
0.05021306872367859,
-0.13440434634685516,
0.06311117112636566,
-2.634349255623568e-32,
-0.14567254483699799,
0.10958664864301682,
0.022403355687856674,
-0.027079304680228233,
0.0019842886831611395,
-0.020343760028481483,
-0.04752274602651596,
-0.14969870448112488,
0.04701082035899162,
-0.0029860008507966995,
-0.13698872923851013,
0.017674820497632027,
0.033175334334373474,
-0.009995604865252972,
0.03555327653884888,
0.03868730366230011,
0.29156091809272766,
-0.08755695819854736,
-0.2332383096218109,
0.0849398821592331,
0.14701233804225922,
0.225900337100029,
0.06894829124212265,
0.0992051437497139,
-0.15019188821315765,
0.10571347177028656,
0.013328658416867256,
0.0285396259278059,
0.04314783215522766,
-0.08388643711805344,
-0.12094298750162125,
-0.0007217046222649515,
-0.12121447920799255,
0.013941756449639797,
-0.08199018985033035,
0.04392873868346214,
-0.14110954105854034,
-0.02185039594769478,
0.025636976584792137,
0.10579648613929749,
-0.029918724671006203,
-0.13221918046474457,
0.0758875384926796,
0.016011936590075493,
-0.07294770330190659,
0.05316255986690521,
-0.07177091389894485,
-0.04869323968887329,
-0.07021074742078781,
-0.15228530764579773,
-0.23572885990142822,
0.12069105356931686,
-0.0007068831473588943,
0.11619844287633896,
0.0757455974817276,
-0.04487856850028038,
0.1113806664943695,
0.005164533853530884,
-0.17002750933170319,
-0.09718786925077438,
0.12450852990150452,
0.22239191830158234,
0.03934326767921448,
0.02501058578491211,
-0.06359022855758667,
-0.03906940296292305,
0.22727680206298828,
0.0901135727763176,
0.2884526252746582,
0.16501976549625397,
0.1680814027786255,
-0.053666647523641586,
0.02375086024403572,
-0.11250550299882889,
-0.020109811797738075,
0.0397823303937912,
-0.132205069065094,
0.13786277174949646,
0.12929128110408783,
-0.08362245559692383,
-0.164950892329216,
0.1576361209154129,
0.10818986594676971,
0.06146269664168358,
0.04000743851065636,
0.22563536465168,
0.08067145943641663,
0.06219927966594696,
-0.09028305113315582,
-0.03653227910399437,
-0.15653109550476074,
0.03211839497089386,
0.20697662234306335,
-0.08983630686998367,
0.05625096708536148,
0.05455663427710533,
-0.08139705657958984,
0.08358053117990494,
-0.1515149474143982,
-0.10490600764751434,
-0.04438750818371773,
-0.04274289682507515,
-0.0005932293133810163,
-0.06100614741444588,
0.22077585756778717,
-0.11964307725429535,
0.04748415946960449,
0.08293520659208298,
-0.32652661204338074,
-0.008674335666000843,
0.033676933497190475,
-0.06357257813215256,
0.1480514258146286,
0.028104186058044434,
0.09964101761579514,
0.045360539108514786,
0.027188554406166077,
0.0758574828505516,
0.07875875383615494,
0.037971366196870804,
-0.0341067872941494,
-0.08728684484958649,
0.13386644423007965,
-0.13725018501281738,
-0.09154471755027771,
-0.07394642382860184,
-0.05232315883040428,
0.009060048498213291,
-0.048064082860946655,
-0.03639025613665581,
-0.17919586598873138,
0.00636901194229722,
6.985127356529119e-7,
0.0559762679040432,
0.1500197947025299,
0.09943659603595734,
-0.044151365756988525,
-0.020518559962511063,
0.14983680844306946,
0.05565166845917702,
0.0324261449277401,
-0.04938717931509018,
0.021231932565569878,
0.07271839678287506,
-0.0685974508523941,
0.019101634621620178,
0.012218020856380463,
0.09487083554267883,
-0.2161211520433426,
0.010661231353878975,
-0.06971488893032074,
-0.1880747526884079,
0.052158620208501816,
0.0243685245513916,
0.27122530341148376,
-0.06097225844860077,
-0.1791486144065857,
0.2627328038215637,
0.057548169046640396,
-0.014274529181420803,
-0.00029395302408374846,
-0.04185447469353676,
0.06571102887392044,
0.11151216924190521,
-0.06645311415195465,
-0.24488112330436707,
0.06893810629844666,
-0.11519978940486908,
-0.044504258781671524,
-0.19075369834899902,
0.11768924444913864,
0.15984749794006348,
0.15780115127563477,
0.03177301585674286,
-0.02282915636897087,
0.024139784276485443,
-0.16595372557640076,
0.014781294390559196,
0.1941472440958023,
0.020130785182118416,
0.11852403730154037,
-0.06380180269479752,
-0.05491466820240021,
-0.05736317113041878,
0.06758308410644531,
-0.031128689646720886,
0.1988278478384018,
0.038816310465335846,
-0.0792609229683876,
-0.1438027024269104,
-0.15787923336029053,
-0.0308604147285223,
-0.04333774372935295,
-0.040175240486860275,
-0.06916093826293945,
-0.09768238663673401,
0.0856141671538353,
0.23418259620666504,
-0.049798984080553055,
-0.08235353231430054,
2.763623952981661e-34,
-0.008120251819491386,
0.08617989718914032,
0.14236699044704437,
0.10515589267015457,
0.08724866062402725,
-0.05931452661752701,
0.020904183387756348,
0.008697597309947014,
0.06991482526063919,
-0.2999711334705353,
-0.16076892614364624
] |
https://github.com/huggingface/datasets/issues/2498 | Improve torch formatting performance | @vblagoje in that case, you can add this to your `setup.py`:
```python
install_requires=[
"datasets @ git+ssh://git@github.com/huggingface/datasets.git@refs/pull/2505/head",
``` | **Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
| 17 | Improve torch formatting performance
**Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
@vblagoje in that case, you can add this to your `setup.py`:
```python
install_requires=[
"datasets @ git+ssh://git@github.com/huggingface/datasets.git@refs/pull/2505/head",
``` | [
-0.11883822828531265,
0.16306379437446594,
-0.1083887591958046,
-0.001332283136434853,
-0.08068305999040604,
-0.019639287143945694,
0.09920649975538254,
0.2937559187412262,
-0.16615261137485504,
-0.133849635720253,
-0.1209469735622406,
0.11728517711162567,
-0.09816189855337143,
0.0810495913028717,
-0.06285826116800308,
-0.23150232434272766,
-0.0381409116089344,
-0.025896195322275162,
0.05988885834813118,
0.11049521714448929,
-0.08881425857543945,
-0.10119785368442535,
0.13778339326381683,
-0.16025657951831818,
-0.005690921563655138,
-0.10142558068037033,
-0.14522352814674377,
0.031842779368162155,
0.015236818231642246,
-0.1379425823688507,
0.04617726430296898,
0.20017901062965393,
-0.06095150113105774,
0.20791660249233246,
0.000005690186299034394,
-0.028230983763933182,
-0.08265750110149384,
0.05904816463589668,
-0.011004110798239708,
0.25812751054763794,
0.30795276165008545,
-0.11764455586671829,
-0.01749098300933838,
0.08950190246105194,
-0.08168687671422958,
-0.013317767530679703,
-0.1187252476811409,
-0.004642309155315161,
-0.04767441004514694,
0.04709259420633316,
0.016705289483070374,
0.10467980802059174,
-0.07876234501600266,
-0.05964488908648491,
0.03383680060505867,
0.14280150830745697,
-0.16255450248718262,
0.027372825890779495,
0.1039399728178978,
-0.016987062990665436,
-0.06442239135503769,
0.04627646505832672,
0.05510058254003525,
-0.11506824195384979,
0.10739481449127197,
0.11887188255786896,
-0.25162404775619507,
0.0558130219578743,
0.11302885413169861,
0.10207601636648178,
-0.14782176911830902,
-0.09732267260551453,
-0.14595451951026917,
-0.018687935546040535,
-0.06267787516117096,
-0.21370916068553925,
-0.12104778736829758,
0.07260260730981827,
-0.08625916391611099,
0.008218453265726566,
-0.0757700502872467,
0.08034807443618774,
0.04058659449219704,
-0.07390021532773972,
-0.23531484603881836,
0.016051223501563072,
0.2067103534936905,
-0.07264702767133713,
0.13996171951293945,
0.08822683244943619,
0.21892794966697693,
-0.11988377571105957,
0.00927069503813982,
0.025499247014522552,
-0.20803864300251007,
-0.07671790570020676,
-0.16782206296920776,
-0.135110542178154,
-0.05779460817575455,
-0.08279649168252945,
0.059098225086927414,
0.2626301646232605,
-0.06669386476278305,
-0.06701944768428802,
-0.23467373847961426,
-0.02419922687113285,
-0.1312120258808136,
-0.174810990691185,
-0.07673633843660355,
-0.00998618733137846,
0.1970105618238449,
0.09643664956092834,
-0.11914364248514175,
-0.07300101220607758,
-0.1194596216082573,
-0.006627651862800121,
-0.05461837723851204,
0.06399892270565033,
0.05394270643591881,
-0.06948944926261902,
0.07713863998651505,
0.12451167404651642,
-0.11948752403259277,
0.04282219707965851,
-0.05381803214550018,
0.1393357515335083,
-0.012257545255124569,
-0.09724906831979752,
-0.08342595398426056,
-0.025141078978776932,
0.06373770534992218,
0.040348269045352936,
0.10759232938289642,
-0.06028914451599121,
0.02534639462828636,
0.022555820643901825,
-0.07445227354764938,
-0.11207214742898941,
-0.025612905621528625,
0.09823004901409149,
0.01038079708814621,
0.021650172770023346,
0.22766606509685516,
-0.016398504376411438,
-0.010942687280476093,
0.03301875293254852,
0.007432373706251383,
0.3170333206653595,
-0.1579727828502655,
-0.0006033303798176348,
0.08601102232933044,
0.09297700226306915,
-0.2278481423854828,
-0.01801919937133789,
-0.006680417340248823,
-0.026498813182115555,
0.07648016512393951,
-0.21290601789951324,
-0.03064901940524578,
0.025889001786708832,
0.05582715570926666,
-0.2380698323249817,
0.008179555647075176,
0.037750404328107834,
0.04152938351035118,
0.10737056285142899,
0.020877743139863014,
0.11759082227945328,
0.1721089780330658,
0.21474780142307281,
0.3142072558403015,
0.109914131462574,
-0.08629069477319717,
-0.019980713725090027,
0.12379482388496399,
-0.019698025658726692,
-0.02217750810086727,
-0.10348810255527496,
-0.024150101467967033,
0.02279600128531456,
0.02294481359422207,
0.1378050297498703,
-0.014458704739809036,
0.03803001344203949,
0.31501340866088867,
0.09803534299135208,
0.21799418330192566,
0.04480806738138199,
-0.06425708532333374,
-0.03007296472787857,
0.001535835792310536,
-0.14465849101543427,
0.1273719221353531,
-0.015776271000504494,
-0.011183330789208412,
-0.15786592662334442,
-0.15543097257614136,
-0.05131829157471657,
0.18436263501644135,
-0.25981229543685913,
-0.03596219792962074,
-0.027921484783291817,
-0.14083126187324524,
0.06640544533729553,
-0.0958324521780014,
0.11686520278453827,
-0.14375731348991394,
0.0523659810423851,
-0.0915028378367424,
0.010479683987796307,
-0.11909182369709015,
-0.04614997282624245,
0.11514025181531906,
-0.05269905924797058,
-0.03634972497820854,
-0.13591423630714417,
-0.029305540025234222,
0.03728073090314865,
-0.1830618679523468,
-0.09600164741277695,
0.08161363750696182,
0.22747813165187836,
0.01944044977426529,
0.03833679109811783,
0.013650807552039623,
-0.016284257173538208,
0.1025657206773758,
0.04087549448013306,
0.05686068907380104,
0.09200839698314667,
-0.057894267141819,
-0.08596408367156982,
0.14834903180599213,
-0.17141102254390717,
-0.06982573866844177,
0.018308328464627266,
0.002095078583806753,
-0.2244603931903839,
0.10701648145914078,
0.041851069778203964,
-0.02074182592332363,
-0.06231636554002762,
-0.08071725070476532,
-0.08928461372852325,
-0.09943633526563644,
-0.026111464947462082,
0.1656862199306488,
0.11544785648584366,
-0.09951584786176682,
0.04418021813035011,
-0.019908159971237183,
-0.0026318395975977182,
0.1071360781788826,
0.14400021731853485,
0.12168461829423904,
0.021106040105223656,
0.056908681988716125,
0.07414524257183075,
-0.07450494915246964,
0.11477231979370117,
-0.03821595758199692,
0.008227991871535778,
-0.12383369356393814,
0.15080668032169342,
0.08701453357934952,
-0.09923573583364487,
0.14925383031368256,
-0.31942376494407654,
0.03270987793803215,
-0.06788767874240875,
0.10020282864570618,
0.1488596796989441,
0.061490174382925034,
-0.015815675258636475,
-0.06739553809165955,
-0.1093866154551506,
-0.10826199501752853,
0.04474368318915367,
0.07238730043172836,
0.08452441543340683,
-0.047157395631074905,
-0.033911753445863724,
0.0632767304778099,
0.030927591025829315,
0.07933471351861954,
-0.040351707488298416,
-0.161393940448761,
0.10122688114643097,
-0.11063645035028458,
-0.00774203659966588,
0.04062995687127113,
-0.13008517026901245,
0.10593481361865997,
-0.03869682177901268,
0.0002652212278917432,
0.13908754289150238,
0.16645199060440063,
0.14507612586021423,
-0.05422527715563774,
-0.13134460151195526,
-0.04888258874416351,
0.10111977905035019,
0.04707079753279686,
0.010677219368517399,
0.08880917727947235,
0.047995757311582565,
0.02254774235188961,
-0.03805701807141304,
-0.09540624171495438,
-0.036482032388448715,
0.04662146419286728,
-0.02097558230161667,
-0.045252326875925064,
-0.24623219668865204,
-0.000853062083479017,
-0.013833596371114254,
-0.035698022693395615,
-0.14603722095489502,
-0.001383613795042038,
0.04314323142170906,
0.10387943685054779,
-0.07165595889091492,
-0.11833768337965012,
-0.13272923231124878,
-0.08002393692731857,
-0.002130871871486306,
-0.09447835385799408,
-0.06572792679071426,
-0.1801357865333557,
0.08546368032693863,
-0.032861173152923584,
0.0029676815029233694,
-0.06281700730323792,
-0.04819406569004059,
0.09103383868932724,
-0.07226306200027466,
-0.010125681757926941,
-0.1350266933441162,
0.22623193264007568,
0.09599015861749649,
-0.19161875545978546,
-0.11790703982114792,
-0.0712648406624794,
0.041975412517786026,
0.15071770548820496,
-0.10718566179275513,
0.06550222635269165,
-0.16642116010189056,
0.03901198133826256,
-0.007569864392280579,
-0.012703496031463146,
0.14562690258026123,
-0.04066553711891174,
-0.08546952903270721,
0.029598034918308258,
0.1775760054588318,
-0.2537045180797577,
-0.14448846876621246,
0.047839824110269547,
-0.1119556650519371,
-0.11610018461942673,
0.16148990392684937,
0.18774962425231934,
-0.05892620608210564,
-0.24157880246639252,
-0.1526496559381485,
0.006040741689503193,
-0.016398370265960693,
-0.21405759453773499,
-0.08452031016349792,
0.02783329226076603,
-0.11109238862991333,
0.06167428568005562,
0.306680828332901,
0.014125844463706017,
-0.005087526049464941,
0.1138705164194107,
-0.06754004955291748,
0.15844641625881195,
0.02259805053472519,
0.21759560704231262,
-0.13619743287563324,
-0.0599103607237339,
-0.059196460992097855,
0.11996845155954361,
-0.04031473398208618,
-0.036428891122341156,
0.0336885079741478,
-0.18482446670532227,
-0.01908804662525654,
-0.06094813346862793,
0.16912613809108734,
-0.04593990370631218,
-0.09327084571123123,
-0.03413528949022293,
0.01760927215218544,
0.15331505239009857,
0.08581989258527756,
0.049274396151304245,
0.20256800949573517,
0.18500955402851105,
0.03457510098814964,
0.016907671466469765,
-0.12096162885427475,
0.039171136915683746,
-0.17014388740062714,
0.012031057849526405,
0.029928022995591164,
0.059064384549856186,
0.004489374812692404,
0.06439661234617233,
0.20744812488555908,
-0.04721708595752716,
-0.17150837182998657,
0.14170166850090027,
0.028625208884477615,
-0.03685656189918518,
0.04992753267288208,
0.16885273158550262,
-0.14576970040798187,
-0.05057321488857269,
-0.17456163465976715,
0.057020366191864014,
-0.05232900008559227,
0.10654284805059433,
-0.08018732070922852,
-0.04715650901198387,
0.07986880093812943,
0.10845238715410233,
0.1098048985004425,
0.02456674724817276,
0.21681563556194305,
-0.05872057005763054,
0.10424735397100449,
0.11649191379547119,
-0.019547300413250923,
0.026735935360193253,
-0.07979077845811844,
-0.05223144218325615,
0.05927479267120361,
-0.12318804115056992,
-0.04789566993713379,
0.3197777569293976,
-0.010963221080601215,
0.004752787761390209,
-0.20069314539432526,
-0.05326935276389122,
0.06700316816568375,
-0.059151068329811096,
-0.058927021920681,
-0.18320448696613312,
-0.14381414651870728,
-0.164193794131279,
-0.15023359656333923,
0.1566782146692276,
0.08643178641796112,
-0.033660467714071274,
-0.21268533170223236,
0.000941713631618768,
0.05836385488510132,
0.09756821393966675,
-0.03704777732491493,
0.03562270849943161,
0.13659749925136566,
-0.049640171229839325,
-0.007165150251239538,
0.011651230044662952,
-0.22804208099842072,
0.18088750541210175,
-0.08428800106048584,
-0.06352529674768448,
-0.0020119412802159786,
0.08089140057563782,
0.0655423179268837,
-0.00832749716937542,
0.03806781396269798,
0.09370806068181992,
0.03734217584133148,
-0.06571966409683228,
0.03938763588666916,
0.09520935267210007,
0.10320558398962021,
-0.1257425993680954,
-0.1216907948255539,
0.11396659165620804,
0.09139472991228104,
-0.14080944657325745,
-0.018120665103197098,
-0.15175774693489075,
0.02774379774928093,
0.008988110348582268,
0.09948159754276276,
-0.11343388259410858,
0.000028701804694719613,
0.18482458591461182,
-0.06787512451410294,
-0.1783338040113449,
0.027134189382195473,
-0.0461580716073513,
-0.09338925033807755,
-0.02375025860965252,
-0.010982650332152843,
0.08713268488645554,
0.07791897654533386,
0.14204300940036774,
0.03598795086145401,
-0.062363091856241226,
-0.05498922988772392,
0.10940346121788025,
0.0912942886352539,
0.034015677869319916,
0.022942475974559784,
-0.0029224036261439323,
-0.12866151332855225,
0.048069607466459274,
0.22661514580249786,
0.0058241537772119045,
0.015599790029227734,
-0.12392554432153702,
0.03914396092295647,
-0.010733443312346935,
0.002152608474716544,
0.10683254897594452,
0.13827936351299286,
0.12935058772563934,
0.05133403465151787,
-0.07119912654161453,
-0.15030330419540405,
0.040063418447971344,
0.11253884434700012,
0.032886624336242676,
0.08421388268470764,
0.2670772075653076,
-0.0492391400039196,
-0.17231838405132294,
0.0783260241150856,
0.13097409904003143,
0.013949624262750149,
-0.11578965932130814,
-0.06696983426809311,
0.06658989191055298,
-0.167466938495636,
-0.07341371476650238,
0.1879834234714508,
-0.02855263650417328,
-0.1793215572834015,
0.06951646506786346,
-0.05668727681040764,
-0.033123619854450226,
-0.04899625852704048,
0.09254173934459686,
0.0802173763513565,
0.05021306872367859,
-0.13440434634685516,
0.06311117112636566,
-2.634349255623568e-32,
-0.14567254483699799,
0.10958664864301682,
0.022403355687856674,
-0.027079304680228233,
0.0019842886831611395,
-0.020343760028481483,
-0.04752274602651596,
-0.14969870448112488,
0.04701082035899162,
-0.0029860008507966995,
-0.13698872923851013,
0.017674820497632027,
0.033175334334373474,
-0.009995604865252972,
0.03555327653884888,
0.03868730366230011,
0.29156091809272766,
-0.08755695819854736,
-0.2332383096218109,
0.0849398821592331,
0.14701233804225922,
0.225900337100029,
0.06894829124212265,
0.0992051437497139,
-0.15019188821315765,
0.10571347177028656,
0.013328658416867256,
0.0285396259278059,
0.04314783215522766,
-0.08388643711805344,
-0.12094298750162125,
-0.0007217046222649515,
-0.12121447920799255,
0.013941756449639797,
-0.08199018985033035,
0.04392873868346214,
-0.14110954105854034,
-0.02185039594769478,
0.025636976584792137,
0.10579648613929749,
-0.029918724671006203,
-0.13221918046474457,
0.0758875384926796,
0.016011936590075493,
-0.07294770330190659,
0.05316255986690521,
-0.07177091389894485,
-0.04869323968887329,
-0.07021074742078781,
-0.15228530764579773,
-0.23572885990142822,
0.12069105356931686,
-0.0007068831473588943,
0.11619844287633896,
0.0757455974817276,
-0.04487856850028038,
0.1113806664943695,
0.005164533853530884,
-0.17002750933170319,
-0.09718786925077438,
0.12450852990150452,
0.22239191830158234,
0.03934326767921448,
0.02501058578491211,
-0.06359022855758667,
-0.03906940296292305,
0.22727680206298828,
0.0901135727763176,
0.2884526252746582,
0.16501976549625397,
0.1680814027786255,
-0.053666647523641586,
0.02375086024403572,
-0.11250550299882889,
-0.020109811797738075,
0.0397823303937912,
-0.132205069065094,
0.13786277174949646,
0.12929128110408783,
-0.08362245559692383,
-0.164950892329216,
0.1576361209154129,
0.10818986594676971,
0.06146269664168358,
0.04000743851065636,
0.22563536465168,
0.08067145943641663,
0.06219927966594696,
-0.09028305113315582,
-0.03653227910399437,
-0.15653109550476074,
0.03211839497089386,
0.20697662234306335,
-0.08983630686998367,
0.05625096708536148,
0.05455663427710533,
-0.08139705657958984,
0.08358053117990494,
-0.1515149474143982,
-0.10490600764751434,
-0.04438750818371773,
-0.04274289682507515,
-0.0005932293133810163,
-0.06100614741444588,
0.22077585756778717,
-0.11964307725429535,
0.04748415946960449,
0.08293520659208298,
-0.32652661204338074,
-0.008674335666000843,
0.033676933497190475,
-0.06357257813215256,
0.1480514258146286,
0.028104186058044434,
0.09964101761579514,
0.045360539108514786,
0.027188554406166077,
0.0758574828505516,
0.07875875383615494,
0.037971366196870804,
-0.0341067872941494,
-0.08728684484958649,
0.13386644423007965,
-0.13725018501281738,
-0.09154471755027771,
-0.07394642382860184,
-0.05232315883040428,
0.009060048498213291,
-0.048064082860946655,
-0.03639025613665581,
-0.17919586598873138,
0.00636901194229722,
6.985127356529119e-7,
0.0559762679040432,
0.1500197947025299,
0.09943659603595734,
-0.044151365756988525,
-0.020518559962511063,
0.14983680844306946,
0.05565166845917702,
0.0324261449277401,
-0.04938717931509018,
0.021231932565569878,
0.07271839678287506,
-0.0685974508523941,
0.019101634621620178,
0.012218020856380463,
0.09487083554267883,
-0.2161211520433426,
0.010661231353878975,
-0.06971488893032074,
-0.1880747526884079,
0.052158620208501816,
0.0243685245513916,
0.27122530341148376,
-0.06097225844860077,
-0.1791486144065857,
0.2627328038215637,
0.057548169046640396,
-0.014274529181420803,
-0.00029395302408374846,
-0.04185447469353676,
0.06571102887392044,
0.11151216924190521,
-0.06645311415195465,
-0.24488112330436707,
0.06893810629844666,
-0.11519978940486908,
-0.044504258781671524,
-0.19075369834899902,
0.11768924444913864,
0.15984749794006348,
0.15780115127563477,
0.03177301585674286,
-0.02282915636897087,
0.024139784276485443,
-0.16595372557640076,
0.014781294390559196,
0.1941472440958023,
0.020130785182118416,
0.11852403730154037,
-0.06380180269479752,
-0.05491466820240021,
-0.05736317113041878,
0.06758308410644531,
-0.031128689646720886,
0.1988278478384018,
0.038816310465335846,
-0.0792609229683876,
-0.1438027024269104,
-0.15787923336029053,
-0.0308604147285223,
-0.04333774372935295,
-0.040175240486860275,
-0.06916093826293945,
-0.09768238663673401,
0.0856141671538353,
0.23418259620666504,
-0.049798984080553055,
-0.08235353231430054,
2.763623952981661e-34,
-0.008120251819491386,
0.08617989718914032,
0.14236699044704437,
0.10515589267015457,
0.08724866062402725,
-0.05931452661752701,
0.020904183387756348,
0.008697597309947014,
0.06991482526063919,
-0.2999711334705353,
-0.16076892614364624
] |
https://github.com/huggingface/datasets/issues/2498 | Improve torch formatting performance | @lhoestq @thomwolf @albertvillanova The new approach is definitely faster, dataloader now takes less than 3% cumulative time (pink rectangle two rectangles to the right of tensor.py backward invocation)
![Screen Shot 2021-06-16 at 3 05 06 PM](https://user-images.githubusercontent.com/458335/122224432-19de4700-ce82-11eb-982f-d45d4bcc1e41.png)
When we drill down into dataloader next invocation we get:
![Screen Shot 2021-06-16 at 3 09 56 PM](https://user-images.githubusercontent.com/458335/122224976-a1c45100-ce82-11eb-8d40-59194740d616.png)
And finally format_batch:
![Screen Shot 2021-06-16 at 3 11 07 PM](https://user-images.githubusercontent.com/458335/122225132-cae4e180-ce82-11eb-8a16-967ab7c1c2aa.png)
Not sure this could be further improved but this is definitely a decent step forward.
| **Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
| 80 | Improve torch formatting performance
**Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
@lhoestq @thomwolf @albertvillanova The new approach is definitely faster, dataloader now takes less than 3% cumulative time (pink rectangle two rectangles to the right of tensor.py backward invocation)
![Screen Shot 2021-06-16 at 3 05 06 PM](https://user-images.githubusercontent.com/458335/122224432-19de4700-ce82-11eb-982f-d45d4bcc1e41.png)
When we drill down into dataloader next invocation we get:
![Screen Shot 2021-06-16 at 3 09 56 PM](https://user-images.githubusercontent.com/458335/122224976-a1c45100-ce82-11eb-8d40-59194740d616.png)
And finally format_batch:
![Screen Shot 2021-06-16 at 3 11 07 PM](https://user-images.githubusercontent.com/458335/122225132-cae4e180-ce82-11eb-8a16-967ab7c1c2aa.png)
Not sure this could be further improved but this is definitely a decent step forward.
| [
-0.11883822828531265,
0.16306379437446594,
-0.1083887591958046,
-0.001332283136434853,
-0.08068305999040604,
-0.019639287143945694,
0.09920649975538254,
0.2937559187412262,
-0.16615261137485504,
-0.133849635720253,
-0.1209469735622406,
0.11728517711162567,
-0.09816189855337143,
0.0810495913028717,
-0.06285826116800308,
-0.23150232434272766,
-0.0381409116089344,
-0.025896195322275162,
0.05988885834813118,
0.11049521714448929,
-0.08881425857543945,
-0.10119785368442535,
0.13778339326381683,
-0.16025657951831818,
-0.005690921563655138,
-0.10142558068037033,
-0.14522352814674377,
0.031842779368162155,
0.015236818231642246,
-0.1379425823688507,
0.04617726430296898,
0.20017901062965393,
-0.06095150113105774,
0.20791660249233246,
0.000005690186299034394,
-0.028230983763933182,
-0.08265750110149384,
0.05904816463589668,
-0.011004110798239708,
0.25812751054763794,
0.30795276165008545,
-0.11764455586671829,
-0.01749098300933838,
0.08950190246105194,
-0.08168687671422958,
-0.013317767530679703,
-0.1187252476811409,
-0.004642309155315161,
-0.04767441004514694,
0.04709259420633316,
0.016705289483070374,
0.10467980802059174,
-0.07876234501600266,
-0.05964488908648491,
0.03383680060505867,
0.14280150830745697,
-0.16255450248718262,
0.027372825890779495,
0.1039399728178978,
-0.016987062990665436,
-0.06442239135503769,
0.04627646505832672,
0.05510058254003525,
-0.11506824195384979,
0.10739481449127197,
0.11887188255786896,
-0.25162404775619507,
0.0558130219578743,
0.11302885413169861,
0.10207601636648178,
-0.14782176911830902,
-0.09732267260551453,
-0.14595451951026917,
-0.018687935546040535,
-0.06267787516117096,
-0.21370916068553925,
-0.12104778736829758,
0.07260260730981827,
-0.08625916391611099,
0.008218453265726566,
-0.0757700502872467,
0.08034807443618774,
0.04058659449219704,
-0.07390021532773972,
-0.23531484603881836,
0.016051223501563072,
0.2067103534936905,
-0.07264702767133713,
0.13996171951293945,
0.08822683244943619,
0.21892794966697693,
-0.11988377571105957,
0.00927069503813982,
0.025499247014522552,
-0.20803864300251007,
-0.07671790570020676,
-0.16782206296920776,
-0.135110542178154,
-0.05779460817575455,
-0.08279649168252945,
0.059098225086927414,
0.2626301646232605,
-0.06669386476278305,
-0.06701944768428802,
-0.23467373847961426,
-0.02419922687113285,
-0.1312120258808136,
-0.174810990691185,
-0.07673633843660355,
-0.00998618733137846,
0.1970105618238449,
0.09643664956092834,
-0.11914364248514175,
-0.07300101220607758,
-0.1194596216082573,
-0.006627651862800121,
-0.05461837723851204,
0.06399892270565033,
0.05394270643591881,
-0.06948944926261902,
0.07713863998651505,
0.12451167404651642,
-0.11948752403259277,
0.04282219707965851,
-0.05381803214550018,
0.1393357515335083,
-0.012257545255124569,
-0.09724906831979752,
-0.08342595398426056,
-0.025141078978776932,
0.06373770534992218,
0.040348269045352936,
0.10759232938289642,
-0.06028914451599121,
0.02534639462828636,
0.022555820643901825,
-0.07445227354764938,
-0.11207214742898941,
-0.025612905621528625,
0.09823004901409149,
0.01038079708814621,
0.021650172770023346,
0.22766606509685516,
-0.016398504376411438,
-0.010942687280476093,
0.03301875293254852,
0.007432373706251383,
0.3170333206653595,
-0.1579727828502655,
-0.0006033303798176348,
0.08601102232933044,
0.09297700226306915,
-0.2278481423854828,
-0.01801919937133789,
-0.006680417340248823,
-0.026498813182115555,
0.07648016512393951,
-0.21290601789951324,
-0.03064901940524578,
0.025889001786708832,
0.05582715570926666,
-0.2380698323249817,
0.008179555647075176,
0.037750404328107834,
0.04152938351035118,
0.10737056285142899,
0.020877743139863014,
0.11759082227945328,
0.1721089780330658,
0.21474780142307281,
0.3142072558403015,
0.109914131462574,
-0.08629069477319717,
-0.019980713725090027,
0.12379482388496399,
-0.019698025658726692,
-0.02217750810086727,
-0.10348810255527496,
-0.024150101467967033,
0.02279600128531456,
0.02294481359422207,
0.1378050297498703,
-0.014458704739809036,
0.03803001344203949,
0.31501340866088867,
0.09803534299135208,
0.21799418330192566,
0.04480806738138199,
-0.06425708532333374,
-0.03007296472787857,
0.001535835792310536,
-0.14465849101543427,
0.1273719221353531,
-0.015776271000504494,
-0.011183330789208412,
-0.15786592662334442,
-0.15543097257614136,
-0.05131829157471657,
0.18436263501644135,
-0.25981229543685913,
-0.03596219792962074,
-0.027921484783291817,
-0.14083126187324524,
0.06640544533729553,
-0.0958324521780014,
0.11686520278453827,
-0.14375731348991394,
0.0523659810423851,
-0.0915028378367424,
0.010479683987796307,
-0.11909182369709015,
-0.04614997282624245,
0.11514025181531906,
-0.05269905924797058,
-0.03634972497820854,
-0.13591423630714417,
-0.029305540025234222,
0.03728073090314865,
-0.1830618679523468,
-0.09600164741277695,
0.08161363750696182,
0.22747813165187836,
0.01944044977426529,
0.03833679109811783,
0.013650807552039623,
-0.016284257173538208,
0.1025657206773758,
0.04087549448013306,
0.05686068907380104,
0.09200839698314667,
-0.057894267141819,
-0.08596408367156982,
0.14834903180599213,
-0.17141102254390717,
-0.06982573866844177,
0.018308328464627266,
0.002095078583806753,
-0.2244603931903839,
0.10701648145914078,
0.041851069778203964,
-0.02074182592332363,
-0.06231636554002762,
-0.08071725070476532,
-0.08928461372852325,
-0.09943633526563644,
-0.026111464947462082,
0.1656862199306488,
0.11544785648584366,
-0.09951584786176682,
0.04418021813035011,
-0.019908159971237183,
-0.0026318395975977182,
0.1071360781788826,
0.14400021731853485,
0.12168461829423904,
0.021106040105223656,
0.056908681988716125,
0.07414524257183075,
-0.07450494915246964,
0.11477231979370117,
-0.03821595758199692,
0.008227991871535778,
-0.12383369356393814,
0.15080668032169342,
0.08701453357934952,
-0.09923573583364487,
0.14925383031368256,
-0.31942376494407654,
0.03270987793803215,
-0.06788767874240875,
0.10020282864570618,
0.1488596796989441,
0.061490174382925034,
-0.015815675258636475,
-0.06739553809165955,
-0.1093866154551506,
-0.10826199501752853,
0.04474368318915367,
0.07238730043172836,
0.08452441543340683,
-0.047157395631074905,
-0.033911753445863724,
0.0632767304778099,
0.030927591025829315,
0.07933471351861954,
-0.040351707488298416,
-0.161393940448761,
0.10122688114643097,
-0.11063645035028458,
-0.00774203659966588,
0.04062995687127113,
-0.13008517026901245,
0.10593481361865997,
-0.03869682177901268,
0.0002652212278917432,
0.13908754289150238,
0.16645199060440063,
0.14507612586021423,
-0.05422527715563774,
-0.13134460151195526,
-0.04888258874416351,
0.10111977905035019,
0.04707079753279686,
0.010677219368517399,
0.08880917727947235,
0.047995757311582565,
0.02254774235188961,
-0.03805701807141304,
-0.09540624171495438,
-0.036482032388448715,
0.04662146419286728,
-0.02097558230161667,
-0.045252326875925064,
-0.24623219668865204,
-0.000853062083479017,
-0.013833596371114254,
-0.035698022693395615,
-0.14603722095489502,
-0.001383613795042038,
0.04314323142170906,
0.10387943685054779,
-0.07165595889091492,
-0.11833768337965012,
-0.13272923231124878,
-0.08002393692731857,
-0.002130871871486306,
-0.09447835385799408,
-0.06572792679071426,
-0.1801357865333557,
0.08546368032693863,
-0.032861173152923584,
0.0029676815029233694,
-0.06281700730323792,
-0.04819406569004059,
0.09103383868932724,
-0.07226306200027466,
-0.010125681757926941,
-0.1350266933441162,
0.22623193264007568,
0.09599015861749649,
-0.19161875545978546,
-0.11790703982114792,
-0.0712648406624794,
0.041975412517786026,
0.15071770548820496,
-0.10718566179275513,
0.06550222635269165,
-0.16642116010189056,
0.03901198133826256,
-0.007569864392280579,
-0.012703496031463146,
0.14562690258026123,
-0.04066553711891174,
-0.08546952903270721,
0.029598034918308258,
0.1775760054588318,
-0.2537045180797577,
-0.14448846876621246,
0.047839824110269547,
-0.1119556650519371,
-0.11610018461942673,
0.16148990392684937,
0.18774962425231934,
-0.05892620608210564,
-0.24157880246639252,
-0.1526496559381485,
0.006040741689503193,
-0.016398370265960693,
-0.21405759453773499,
-0.08452031016349792,
0.02783329226076603,
-0.11109238862991333,
0.06167428568005562,
0.306680828332901,
0.014125844463706017,
-0.005087526049464941,
0.1138705164194107,
-0.06754004955291748,
0.15844641625881195,
0.02259805053472519,
0.21759560704231262,
-0.13619743287563324,
-0.0599103607237339,
-0.059196460992097855,
0.11996845155954361,
-0.04031473398208618,
-0.036428891122341156,
0.0336885079741478,
-0.18482446670532227,
-0.01908804662525654,
-0.06094813346862793,
0.16912613809108734,
-0.04593990370631218,
-0.09327084571123123,
-0.03413528949022293,
0.01760927215218544,
0.15331505239009857,
0.08581989258527756,
0.049274396151304245,
0.20256800949573517,
0.18500955402851105,
0.03457510098814964,
0.016907671466469765,
-0.12096162885427475,
0.039171136915683746,
-0.17014388740062714,
0.012031057849526405,
0.029928022995591164,
0.059064384549856186,
0.004489374812692404,
0.06439661234617233,
0.20744812488555908,
-0.04721708595752716,
-0.17150837182998657,
0.14170166850090027,
0.028625208884477615,
-0.03685656189918518,
0.04992753267288208,
0.16885273158550262,
-0.14576970040798187,
-0.05057321488857269,
-0.17456163465976715,
0.057020366191864014,
-0.05232900008559227,
0.10654284805059433,
-0.08018732070922852,
-0.04715650901198387,
0.07986880093812943,
0.10845238715410233,
0.1098048985004425,
0.02456674724817276,
0.21681563556194305,
-0.05872057005763054,
0.10424735397100449,
0.11649191379547119,
-0.019547300413250923,
0.026735935360193253,
-0.07979077845811844,
-0.05223144218325615,
0.05927479267120361,
-0.12318804115056992,
-0.04789566993713379,
0.3197777569293976,
-0.010963221080601215,
0.004752787761390209,
-0.20069314539432526,
-0.05326935276389122,
0.06700316816568375,
-0.059151068329811096,
-0.058927021920681,
-0.18320448696613312,
-0.14381414651870728,
-0.164193794131279,
-0.15023359656333923,
0.1566782146692276,
0.08643178641796112,
-0.033660467714071274,
-0.21268533170223236,
0.000941713631618768,
0.05836385488510132,
0.09756821393966675,
-0.03704777732491493,
0.03562270849943161,
0.13659749925136566,
-0.049640171229839325,
-0.007165150251239538,
0.011651230044662952,
-0.22804208099842072,
0.18088750541210175,
-0.08428800106048584,
-0.06352529674768448,
-0.0020119412802159786,
0.08089140057563782,
0.0655423179268837,
-0.00832749716937542,
0.03806781396269798,
0.09370806068181992,
0.03734217584133148,
-0.06571966409683228,
0.03938763588666916,
0.09520935267210007,
0.10320558398962021,
-0.1257425993680954,
-0.1216907948255539,
0.11396659165620804,
0.09139472991228104,
-0.14080944657325745,
-0.018120665103197098,
-0.15175774693489075,
0.02774379774928093,
0.008988110348582268,
0.09948159754276276,
-0.11343388259410858,
0.000028701804694719613,
0.18482458591461182,
-0.06787512451410294,
-0.1783338040113449,
0.027134189382195473,
-0.0461580716073513,
-0.09338925033807755,
-0.02375025860965252,
-0.010982650332152843,
0.08713268488645554,
0.07791897654533386,
0.14204300940036774,
0.03598795086145401,
-0.062363091856241226,
-0.05498922988772392,
0.10940346121788025,
0.0912942886352539,
0.034015677869319916,
0.022942475974559784,
-0.0029224036261439323,
-0.12866151332855225,
0.048069607466459274,
0.22661514580249786,
0.0058241537772119045,
0.015599790029227734,
-0.12392554432153702,
0.03914396092295647,
-0.010733443312346935,
0.002152608474716544,
0.10683254897594452,
0.13827936351299286,
0.12935058772563934,
0.05133403465151787,
-0.07119912654161453,
-0.15030330419540405,
0.040063418447971344,
0.11253884434700012,
0.032886624336242676,
0.08421388268470764,
0.2670772075653076,
-0.0492391400039196,
-0.17231838405132294,
0.0783260241150856,
0.13097409904003143,
0.013949624262750149,
-0.11578965932130814,
-0.06696983426809311,
0.06658989191055298,
-0.167466938495636,
-0.07341371476650238,
0.1879834234714508,
-0.02855263650417328,
-0.1793215572834015,
0.06951646506786346,
-0.05668727681040764,
-0.033123619854450226,
-0.04899625852704048,
0.09254173934459686,
0.0802173763513565,
0.05021306872367859,
-0.13440434634685516,
0.06311117112636566,
-2.634349255623568e-32,
-0.14567254483699799,
0.10958664864301682,
0.022403355687856674,
-0.027079304680228233,
0.0019842886831611395,
-0.020343760028481483,
-0.04752274602651596,
-0.14969870448112488,
0.04701082035899162,
-0.0029860008507966995,
-0.13698872923851013,
0.017674820497632027,
0.033175334334373474,
-0.009995604865252972,
0.03555327653884888,
0.03868730366230011,
0.29156091809272766,
-0.08755695819854736,
-0.2332383096218109,
0.0849398821592331,
0.14701233804225922,
0.225900337100029,
0.06894829124212265,
0.0992051437497139,
-0.15019188821315765,
0.10571347177028656,
0.013328658416867256,
0.0285396259278059,
0.04314783215522766,
-0.08388643711805344,
-0.12094298750162125,
-0.0007217046222649515,
-0.12121447920799255,
0.013941756449639797,
-0.08199018985033035,
0.04392873868346214,
-0.14110954105854034,
-0.02185039594769478,
0.025636976584792137,
0.10579648613929749,
-0.029918724671006203,
-0.13221918046474457,
0.0758875384926796,
0.016011936590075493,
-0.07294770330190659,
0.05316255986690521,
-0.07177091389894485,
-0.04869323968887329,
-0.07021074742078781,
-0.15228530764579773,
-0.23572885990142822,
0.12069105356931686,
-0.0007068831473588943,
0.11619844287633896,
0.0757455974817276,
-0.04487856850028038,
0.1113806664943695,
0.005164533853530884,
-0.17002750933170319,
-0.09718786925077438,
0.12450852990150452,
0.22239191830158234,
0.03934326767921448,
0.02501058578491211,
-0.06359022855758667,
-0.03906940296292305,
0.22727680206298828,
0.0901135727763176,
0.2884526252746582,
0.16501976549625397,
0.1680814027786255,
-0.053666647523641586,
0.02375086024403572,
-0.11250550299882889,
-0.020109811797738075,
0.0397823303937912,
-0.132205069065094,
0.13786277174949646,
0.12929128110408783,
-0.08362245559692383,
-0.164950892329216,
0.1576361209154129,
0.10818986594676971,
0.06146269664168358,
0.04000743851065636,
0.22563536465168,
0.08067145943641663,
0.06219927966594696,
-0.09028305113315582,
-0.03653227910399437,
-0.15653109550476074,
0.03211839497089386,
0.20697662234306335,
-0.08983630686998367,
0.05625096708536148,
0.05455663427710533,
-0.08139705657958984,
0.08358053117990494,
-0.1515149474143982,
-0.10490600764751434,
-0.04438750818371773,
-0.04274289682507515,
-0.0005932293133810163,
-0.06100614741444588,
0.22077585756778717,
-0.11964307725429535,
0.04748415946960449,
0.08293520659208298,
-0.32652661204338074,
-0.008674335666000843,
0.033676933497190475,
-0.06357257813215256,
0.1480514258146286,
0.028104186058044434,
0.09964101761579514,
0.045360539108514786,
0.027188554406166077,
0.0758574828505516,
0.07875875383615494,
0.037971366196870804,
-0.0341067872941494,
-0.08728684484958649,
0.13386644423007965,
-0.13725018501281738,
-0.09154471755027771,
-0.07394642382860184,
-0.05232315883040428,
0.009060048498213291,
-0.048064082860946655,
-0.03639025613665581,
-0.17919586598873138,
0.00636901194229722,
6.985127356529119e-7,
0.0559762679040432,
0.1500197947025299,
0.09943659603595734,
-0.044151365756988525,
-0.020518559962511063,
0.14983680844306946,
0.05565166845917702,
0.0324261449277401,
-0.04938717931509018,
0.021231932565569878,
0.07271839678287506,
-0.0685974508523941,
0.019101634621620178,
0.012218020856380463,
0.09487083554267883,
-0.2161211520433426,
0.010661231353878975,
-0.06971488893032074,
-0.1880747526884079,
0.052158620208501816,
0.0243685245513916,
0.27122530341148376,
-0.06097225844860077,
-0.1791486144065857,
0.2627328038215637,
0.057548169046640396,
-0.014274529181420803,
-0.00029395302408374846,
-0.04185447469353676,
0.06571102887392044,
0.11151216924190521,
-0.06645311415195465,
-0.24488112330436707,
0.06893810629844666,
-0.11519978940486908,
-0.044504258781671524,
-0.19075369834899902,
0.11768924444913864,
0.15984749794006348,
0.15780115127563477,
0.03177301585674286,
-0.02282915636897087,
0.024139784276485443,
-0.16595372557640076,
0.014781294390559196,
0.1941472440958023,
0.020130785182118416,
0.11852403730154037,
-0.06380180269479752,
-0.05491466820240021,
-0.05736317113041878,
0.06758308410644531,
-0.031128689646720886,
0.1988278478384018,
0.038816310465335846,
-0.0792609229683876,
-0.1438027024269104,
-0.15787923336029053,
-0.0308604147285223,
-0.04333774372935295,
-0.040175240486860275,
-0.06916093826293945,
-0.09768238663673401,
0.0856141671538353,
0.23418259620666504,
-0.049798984080553055,
-0.08235353231430054,
2.763623952981661e-34,
-0.008120251819491386,
0.08617989718914032,
0.14236699044704437,
0.10515589267015457,
0.08724866062402725,
-0.05931452661752701,
0.020904183387756348,
0.008697597309947014,
0.06991482526063919,
-0.2999711334705353,
-0.16076892614364624
] |
https://github.com/huggingface/datasets/issues/2498 | Improve torch formatting performance | > ```python
> datasets @ git+ssh://git@github.com/huggingface/datasets.git@refs/pull/2505/head
> ```
@albertvillanova how would I replace datasets dependency in https://github.com/huggingface/transformers/blob/master/setup.py as the above approach is not working. | **Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
| 24 | Improve torch formatting performance
**Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
> ```python
> datasets @ git+ssh://git@github.com/huggingface/datasets.git@refs/pull/2505/head
> ```
@albertvillanova how would I replace datasets dependency in https://github.com/huggingface/transformers/blob/master/setup.py as the above approach is not working. | [
-0.11883822828531265,
0.16306379437446594,
-0.1083887591958046,
-0.001332283136434853,
-0.08068305999040604,
-0.019639287143945694,
0.09920649975538254,
0.2937559187412262,
-0.16615261137485504,
-0.133849635720253,
-0.1209469735622406,
0.11728517711162567,
-0.09816189855337143,
0.0810495913028717,
-0.06285826116800308,
-0.23150232434272766,
-0.0381409116089344,
-0.025896195322275162,
0.05988885834813118,
0.11049521714448929,
-0.08881425857543945,
-0.10119785368442535,
0.13778339326381683,
-0.16025657951831818,
-0.005690921563655138,
-0.10142558068037033,
-0.14522352814674377,
0.031842779368162155,
0.015236818231642246,
-0.1379425823688507,
0.04617726430296898,
0.20017901062965393,
-0.06095150113105774,
0.20791660249233246,
0.000005690186299034394,
-0.028230983763933182,
-0.08265750110149384,
0.05904816463589668,
-0.011004110798239708,
0.25812751054763794,
0.30795276165008545,
-0.11764455586671829,
-0.01749098300933838,
0.08950190246105194,
-0.08168687671422958,
-0.013317767530679703,
-0.1187252476811409,
-0.004642309155315161,
-0.04767441004514694,
0.04709259420633316,
0.016705289483070374,
0.10467980802059174,
-0.07876234501600266,
-0.05964488908648491,
0.03383680060505867,
0.14280150830745697,
-0.16255450248718262,
0.027372825890779495,
0.1039399728178978,
-0.016987062990665436,
-0.06442239135503769,
0.04627646505832672,
0.05510058254003525,
-0.11506824195384979,
0.10739481449127197,
0.11887188255786896,
-0.25162404775619507,
0.0558130219578743,
0.11302885413169861,
0.10207601636648178,
-0.14782176911830902,
-0.09732267260551453,
-0.14595451951026917,
-0.018687935546040535,
-0.06267787516117096,
-0.21370916068553925,
-0.12104778736829758,
0.07260260730981827,
-0.08625916391611099,
0.008218453265726566,
-0.0757700502872467,
0.08034807443618774,
0.04058659449219704,
-0.07390021532773972,
-0.23531484603881836,
0.016051223501563072,
0.2067103534936905,
-0.07264702767133713,
0.13996171951293945,
0.08822683244943619,
0.21892794966697693,
-0.11988377571105957,
0.00927069503813982,
0.025499247014522552,
-0.20803864300251007,
-0.07671790570020676,
-0.16782206296920776,
-0.135110542178154,
-0.05779460817575455,
-0.08279649168252945,
0.059098225086927414,
0.2626301646232605,
-0.06669386476278305,
-0.06701944768428802,
-0.23467373847961426,
-0.02419922687113285,
-0.1312120258808136,
-0.174810990691185,
-0.07673633843660355,
-0.00998618733137846,
0.1970105618238449,
0.09643664956092834,
-0.11914364248514175,
-0.07300101220607758,
-0.1194596216082573,
-0.006627651862800121,
-0.05461837723851204,
0.06399892270565033,
0.05394270643591881,
-0.06948944926261902,
0.07713863998651505,
0.12451167404651642,
-0.11948752403259277,
0.04282219707965851,
-0.05381803214550018,
0.1393357515335083,
-0.012257545255124569,
-0.09724906831979752,
-0.08342595398426056,
-0.025141078978776932,
0.06373770534992218,
0.040348269045352936,
0.10759232938289642,
-0.06028914451599121,
0.02534639462828636,
0.022555820643901825,
-0.07445227354764938,
-0.11207214742898941,
-0.025612905621528625,
0.09823004901409149,
0.01038079708814621,
0.021650172770023346,
0.22766606509685516,
-0.016398504376411438,
-0.010942687280476093,
0.03301875293254852,
0.007432373706251383,
0.3170333206653595,
-0.1579727828502655,
-0.0006033303798176348,
0.08601102232933044,
0.09297700226306915,
-0.2278481423854828,
-0.01801919937133789,
-0.006680417340248823,
-0.026498813182115555,
0.07648016512393951,
-0.21290601789951324,
-0.03064901940524578,
0.025889001786708832,
0.05582715570926666,
-0.2380698323249817,
0.008179555647075176,
0.037750404328107834,
0.04152938351035118,
0.10737056285142899,
0.020877743139863014,
0.11759082227945328,
0.1721089780330658,
0.21474780142307281,
0.3142072558403015,
0.109914131462574,
-0.08629069477319717,
-0.019980713725090027,
0.12379482388496399,
-0.019698025658726692,
-0.02217750810086727,
-0.10348810255527496,
-0.024150101467967033,
0.02279600128531456,
0.02294481359422207,
0.1378050297498703,
-0.014458704739809036,
0.03803001344203949,
0.31501340866088867,
0.09803534299135208,
0.21799418330192566,
0.04480806738138199,
-0.06425708532333374,
-0.03007296472787857,
0.001535835792310536,
-0.14465849101543427,
0.1273719221353531,
-0.015776271000504494,
-0.011183330789208412,
-0.15786592662334442,
-0.15543097257614136,
-0.05131829157471657,
0.18436263501644135,
-0.25981229543685913,
-0.03596219792962074,
-0.027921484783291817,
-0.14083126187324524,
0.06640544533729553,
-0.0958324521780014,
0.11686520278453827,
-0.14375731348991394,
0.0523659810423851,
-0.0915028378367424,
0.010479683987796307,
-0.11909182369709015,
-0.04614997282624245,
0.11514025181531906,
-0.05269905924797058,
-0.03634972497820854,
-0.13591423630714417,
-0.029305540025234222,
0.03728073090314865,
-0.1830618679523468,
-0.09600164741277695,
0.08161363750696182,
0.22747813165187836,
0.01944044977426529,
0.03833679109811783,
0.013650807552039623,
-0.016284257173538208,
0.1025657206773758,
0.04087549448013306,
0.05686068907380104,
0.09200839698314667,
-0.057894267141819,
-0.08596408367156982,
0.14834903180599213,
-0.17141102254390717,
-0.06982573866844177,
0.018308328464627266,
0.002095078583806753,
-0.2244603931903839,
0.10701648145914078,
0.041851069778203964,
-0.02074182592332363,
-0.06231636554002762,
-0.08071725070476532,
-0.08928461372852325,
-0.09943633526563644,
-0.026111464947462082,
0.1656862199306488,
0.11544785648584366,
-0.09951584786176682,
0.04418021813035011,
-0.019908159971237183,
-0.0026318395975977182,
0.1071360781788826,
0.14400021731853485,
0.12168461829423904,
0.021106040105223656,
0.056908681988716125,
0.07414524257183075,
-0.07450494915246964,
0.11477231979370117,
-0.03821595758199692,
0.008227991871535778,
-0.12383369356393814,
0.15080668032169342,
0.08701453357934952,
-0.09923573583364487,
0.14925383031368256,
-0.31942376494407654,
0.03270987793803215,
-0.06788767874240875,
0.10020282864570618,
0.1488596796989441,
0.061490174382925034,
-0.015815675258636475,
-0.06739553809165955,
-0.1093866154551506,
-0.10826199501752853,
0.04474368318915367,
0.07238730043172836,
0.08452441543340683,
-0.047157395631074905,
-0.033911753445863724,
0.0632767304778099,
0.030927591025829315,
0.07933471351861954,
-0.040351707488298416,
-0.161393940448761,
0.10122688114643097,
-0.11063645035028458,
-0.00774203659966588,
0.04062995687127113,
-0.13008517026901245,
0.10593481361865997,
-0.03869682177901268,
0.0002652212278917432,
0.13908754289150238,
0.16645199060440063,
0.14507612586021423,
-0.05422527715563774,
-0.13134460151195526,
-0.04888258874416351,
0.10111977905035019,
0.04707079753279686,
0.010677219368517399,
0.08880917727947235,
0.047995757311582565,
0.02254774235188961,
-0.03805701807141304,
-0.09540624171495438,
-0.036482032388448715,
0.04662146419286728,
-0.02097558230161667,
-0.045252326875925064,
-0.24623219668865204,
-0.000853062083479017,
-0.013833596371114254,
-0.035698022693395615,
-0.14603722095489502,
-0.001383613795042038,
0.04314323142170906,
0.10387943685054779,
-0.07165595889091492,
-0.11833768337965012,
-0.13272923231124878,
-0.08002393692731857,
-0.002130871871486306,
-0.09447835385799408,
-0.06572792679071426,
-0.1801357865333557,
0.08546368032693863,
-0.032861173152923584,
0.0029676815029233694,
-0.06281700730323792,
-0.04819406569004059,
0.09103383868932724,
-0.07226306200027466,
-0.010125681757926941,
-0.1350266933441162,
0.22623193264007568,
0.09599015861749649,
-0.19161875545978546,
-0.11790703982114792,
-0.0712648406624794,
0.041975412517786026,
0.15071770548820496,
-0.10718566179275513,
0.06550222635269165,
-0.16642116010189056,
0.03901198133826256,
-0.007569864392280579,
-0.012703496031463146,
0.14562690258026123,
-0.04066553711891174,
-0.08546952903270721,
0.029598034918308258,
0.1775760054588318,
-0.2537045180797577,
-0.14448846876621246,
0.047839824110269547,
-0.1119556650519371,
-0.11610018461942673,
0.16148990392684937,
0.18774962425231934,
-0.05892620608210564,
-0.24157880246639252,
-0.1526496559381485,
0.006040741689503193,
-0.016398370265960693,
-0.21405759453773499,
-0.08452031016349792,
0.02783329226076603,
-0.11109238862991333,
0.06167428568005562,
0.306680828332901,
0.014125844463706017,
-0.005087526049464941,
0.1138705164194107,
-0.06754004955291748,
0.15844641625881195,
0.02259805053472519,
0.21759560704231262,
-0.13619743287563324,
-0.0599103607237339,
-0.059196460992097855,
0.11996845155954361,
-0.04031473398208618,
-0.036428891122341156,
0.0336885079741478,
-0.18482446670532227,
-0.01908804662525654,
-0.06094813346862793,
0.16912613809108734,
-0.04593990370631218,
-0.09327084571123123,
-0.03413528949022293,
0.01760927215218544,
0.15331505239009857,
0.08581989258527756,
0.049274396151304245,
0.20256800949573517,
0.18500955402851105,
0.03457510098814964,
0.016907671466469765,
-0.12096162885427475,
0.039171136915683746,
-0.17014388740062714,
0.012031057849526405,
0.029928022995591164,
0.059064384549856186,
0.004489374812692404,
0.06439661234617233,
0.20744812488555908,
-0.04721708595752716,
-0.17150837182998657,
0.14170166850090027,
0.028625208884477615,
-0.03685656189918518,
0.04992753267288208,
0.16885273158550262,
-0.14576970040798187,
-0.05057321488857269,
-0.17456163465976715,
0.057020366191864014,
-0.05232900008559227,
0.10654284805059433,
-0.08018732070922852,
-0.04715650901198387,
0.07986880093812943,
0.10845238715410233,
0.1098048985004425,
0.02456674724817276,
0.21681563556194305,
-0.05872057005763054,
0.10424735397100449,
0.11649191379547119,
-0.019547300413250923,
0.026735935360193253,
-0.07979077845811844,
-0.05223144218325615,
0.05927479267120361,
-0.12318804115056992,
-0.04789566993713379,
0.3197777569293976,
-0.010963221080601215,
0.004752787761390209,
-0.20069314539432526,
-0.05326935276389122,
0.06700316816568375,
-0.059151068329811096,
-0.058927021920681,
-0.18320448696613312,
-0.14381414651870728,
-0.164193794131279,
-0.15023359656333923,
0.1566782146692276,
0.08643178641796112,
-0.033660467714071274,
-0.21268533170223236,
0.000941713631618768,
0.05836385488510132,
0.09756821393966675,
-0.03704777732491493,
0.03562270849943161,
0.13659749925136566,
-0.049640171229839325,
-0.007165150251239538,
0.011651230044662952,
-0.22804208099842072,
0.18088750541210175,
-0.08428800106048584,
-0.06352529674768448,
-0.0020119412802159786,
0.08089140057563782,
0.0655423179268837,
-0.00832749716937542,
0.03806781396269798,
0.09370806068181992,
0.03734217584133148,
-0.06571966409683228,
0.03938763588666916,
0.09520935267210007,
0.10320558398962021,
-0.1257425993680954,
-0.1216907948255539,
0.11396659165620804,
0.09139472991228104,
-0.14080944657325745,
-0.018120665103197098,
-0.15175774693489075,
0.02774379774928093,
0.008988110348582268,
0.09948159754276276,
-0.11343388259410858,
0.000028701804694719613,
0.18482458591461182,
-0.06787512451410294,
-0.1783338040113449,
0.027134189382195473,
-0.0461580716073513,
-0.09338925033807755,
-0.02375025860965252,
-0.010982650332152843,
0.08713268488645554,
0.07791897654533386,
0.14204300940036774,
0.03598795086145401,
-0.062363091856241226,
-0.05498922988772392,
0.10940346121788025,
0.0912942886352539,
0.034015677869319916,
0.022942475974559784,
-0.0029224036261439323,
-0.12866151332855225,
0.048069607466459274,
0.22661514580249786,
0.0058241537772119045,
0.015599790029227734,
-0.12392554432153702,
0.03914396092295647,
-0.010733443312346935,
0.002152608474716544,
0.10683254897594452,
0.13827936351299286,
0.12935058772563934,
0.05133403465151787,
-0.07119912654161453,
-0.15030330419540405,
0.040063418447971344,
0.11253884434700012,
0.032886624336242676,
0.08421388268470764,
0.2670772075653076,
-0.0492391400039196,
-0.17231838405132294,
0.0783260241150856,
0.13097409904003143,
0.013949624262750149,
-0.11578965932130814,
-0.06696983426809311,
0.06658989191055298,
-0.167466938495636,
-0.07341371476650238,
0.1879834234714508,
-0.02855263650417328,
-0.1793215572834015,
0.06951646506786346,
-0.05668727681040764,
-0.033123619854450226,
-0.04899625852704048,
0.09254173934459686,
0.0802173763513565,
0.05021306872367859,
-0.13440434634685516,
0.06311117112636566,
-2.634349255623568e-32,
-0.14567254483699799,
0.10958664864301682,
0.022403355687856674,
-0.027079304680228233,
0.0019842886831611395,
-0.020343760028481483,
-0.04752274602651596,
-0.14969870448112488,
0.04701082035899162,
-0.0029860008507966995,
-0.13698872923851013,
0.017674820497632027,
0.033175334334373474,
-0.009995604865252972,
0.03555327653884888,
0.03868730366230011,
0.29156091809272766,
-0.08755695819854736,
-0.2332383096218109,
0.0849398821592331,
0.14701233804225922,
0.225900337100029,
0.06894829124212265,
0.0992051437497139,
-0.15019188821315765,
0.10571347177028656,
0.013328658416867256,
0.0285396259278059,
0.04314783215522766,
-0.08388643711805344,
-0.12094298750162125,
-0.0007217046222649515,
-0.12121447920799255,
0.013941756449639797,
-0.08199018985033035,
0.04392873868346214,
-0.14110954105854034,
-0.02185039594769478,
0.025636976584792137,
0.10579648613929749,
-0.029918724671006203,
-0.13221918046474457,
0.0758875384926796,
0.016011936590075493,
-0.07294770330190659,
0.05316255986690521,
-0.07177091389894485,
-0.04869323968887329,
-0.07021074742078781,
-0.15228530764579773,
-0.23572885990142822,
0.12069105356931686,
-0.0007068831473588943,
0.11619844287633896,
0.0757455974817276,
-0.04487856850028038,
0.1113806664943695,
0.005164533853530884,
-0.17002750933170319,
-0.09718786925077438,
0.12450852990150452,
0.22239191830158234,
0.03934326767921448,
0.02501058578491211,
-0.06359022855758667,
-0.03906940296292305,
0.22727680206298828,
0.0901135727763176,
0.2884526252746582,
0.16501976549625397,
0.1680814027786255,
-0.053666647523641586,
0.02375086024403572,
-0.11250550299882889,
-0.020109811797738075,
0.0397823303937912,
-0.132205069065094,
0.13786277174949646,
0.12929128110408783,
-0.08362245559692383,
-0.164950892329216,
0.1576361209154129,
0.10818986594676971,
0.06146269664168358,
0.04000743851065636,
0.22563536465168,
0.08067145943641663,
0.06219927966594696,
-0.09028305113315582,
-0.03653227910399437,
-0.15653109550476074,
0.03211839497089386,
0.20697662234306335,
-0.08983630686998367,
0.05625096708536148,
0.05455663427710533,
-0.08139705657958984,
0.08358053117990494,
-0.1515149474143982,
-0.10490600764751434,
-0.04438750818371773,
-0.04274289682507515,
-0.0005932293133810163,
-0.06100614741444588,
0.22077585756778717,
-0.11964307725429535,
0.04748415946960449,
0.08293520659208298,
-0.32652661204338074,
-0.008674335666000843,
0.033676933497190475,
-0.06357257813215256,
0.1480514258146286,
0.028104186058044434,
0.09964101761579514,
0.045360539108514786,
0.027188554406166077,
0.0758574828505516,
0.07875875383615494,
0.037971366196870804,
-0.0341067872941494,
-0.08728684484958649,
0.13386644423007965,
-0.13725018501281738,
-0.09154471755027771,
-0.07394642382860184,
-0.05232315883040428,
0.009060048498213291,
-0.048064082860946655,
-0.03639025613665581,
-0.17919586598873138,
0.00636901194229722,
6.985127356529119e-7,
0.0559762679040432,
0.1500197947025299,
0.09943659603595734,
-0.044151365756988525,
-0.020518559962511063,
0.14983680844306946,
0.05565166845917702,
0.0324261449277401,
-0.04938717931509018,
0.021231932565569878,
0.07271839678287506,
-0.0685974508523941,
0.019101634621620178,
0.012218020856380463,
0.09487083554267883,
-0.2161211520433426,
0.010661231353878975,
-0.06971488893032074,
-0.1880747526884079,
0.052158620208501816,
0.0243685245513916,
0.27122530341148376,
-0.06097225844860077,
-0.1791486144065857,
0.2627328038215637,
0.057548169046640396,
-0.014274529181420803,
-0.00029395302408374846,
-0.04185447469353676,
0.06571102887392044,
0.11151216924190521,
-0.06645311415195465,
-0.24488112330436707,
0.06893810629844666,
-0.11519978940486908,
-0.044504258781671524,
-0.19075369834899902,
0.11768924444913864,
0.15984749794006348,
0.15780115127563477,
0.03177301585674286,
-0.02282915636897087,
0.024139784276485443,
-0.16595372557640076,
0.014781294390559196,
0.1941472440958023,
0.020130785182118416,
0.11852403730154037,
-0.06380180269479752,
-0.05491466820240021,
-0.05736317113041878,
0.06758308410644531,
-0.031128689646720886,
0.1988278478384018,
0.038816310465335846,
-0.0792609229683876,
-0.1438027024269104,
-0.15787923336029053,
-0.0308604147285223,
-0.04333774372935295,
-0.040175240486860275,
-0.06916093826293945,
-0.09768238663673401,
0.0856141671538353,
0.23418259620666504,
-0.049798984080553055,
-0.08235353231430054,
2.763623952981661e-34,
-0.008120251819491386,
0.08617989718914032,
0.14236699044704437,
0.10515589267015457,
0.08724866062402725,
-0.05931452661752701,
0.020904183387756348,
0.008697597309947014,
0.06991482526063919,
-0.2999711334705353,
-0.16076892614364624
] |
https://github.com/huggingface/datasets/issues/2498 | Improve torch formatting performance | @vblagoje I tested my proposed approach before posting it here and it worked for me.
Is it not working in your case because of the SSH protocol? In that case you could try the same approach but using HTTPS:
```
"datasets @ git+https://github.com/huggingface/datasets.git@refs/pull/2505/head",
``` | **Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
| 44 | Improve torch formatting performance
**Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
@vblagoje I tested my proposed approach before posting it here and it worked for me.
Is it not working in your case because of the SSH protocol? In that case you could try the same approach but using HTTPS:
```
"datasets @ git+https://github.com/huggingface/datasets.git@refs/pull/2505/head",
``` | [
-0.11883822828531265,
0.16306379437446594,
-0.1083887591958046,
-0.001332283136434853,
-0.08068305999040604,
-0.019639287143945694,
0.09920649975538254,
0.2937559187412262,
-0.16615261137485504,
-0.133849635720253,
-0.1209469735622406,
0.11728517711162567,
-0.09816189855337143,
0.0810495913028717,
-0.06285826116800308,
-0.23150232434272766,
-0.0381409116089344,
-0.025896195322275162,
0.05988885834813118,
0.11049521714448929,
-0.08881425857543945,
-0.10119785368442535,
0.13778339326381683,
-0.16025657951831818,
-0.005690921563655138,
-0.10142558068037033,
-0.14522352814674377,
0.031842779368162155,
0.015236818231642246,
-0.1379425823688507,
0.04617726430296898,
0.20017901062965393,
-0.06095150113105774,
0.20791660249233246,
0.000005690186299034394,
-0.028230983763933182,
-0.08265750110149384,
0.05904816463589668,
-0.011004110798239708,
0.25812751054763794,
0.30795276165008545,
-0.11764455586671829,
-0.01749098300933838,
0.08950190246105194,
-0.08168687671422958,
-0.013317767530679703,
-0.1187252476811409,
-0.004642309155315161,
-0.04767441004514694,
0.04709259420633316,
0.016705289483070374,
0.10467980802059174,
-0.07876234501600266,
-0.05964488908648491,
0.03383680060505867,
0.14280150830745697,
-0.16255450248718262,
0.027372825890779495,
0.1039399728178978,
-0.016987062990665436,
-0.06442239135503769,
0.04627646505832672,
0.05510058254003525,
-0.11506824195384979,
0.10739481449127197,
0.11887188255786896,
-0.25162404775619507,
0.0558130219578743,
0.11302885413169861,
0.10207601636648178,
-0.14782176911830902,
-0.09732267260551453,
-0.14595451951026917,
-0.018687935546040535,
-0.06267787516117096,
-0.21370916068553925,
-0.12104778736829758,
0.07260260730981827,
-0.08625916391611099,
0.008218453265726566,
-0.0757700502872467,
0.08034807443618774,
0.04058659449219704,
-0.07390021532773972,
-0.23531484603881836,
0.016051223501563072,
0.2067103534936905,
-0.07264702767133713,
0.13996171951293945,
0.08822683244943619,
0.21892794966697693,
-0.11988377571105957,
0.00927069503813982,
0.025499247014522552,
-0.20803864300251007,
-0.07671790570020676,
-0.16782206296920776,
-0.135110542178154,
-0.05779460817575455,
-0.08279649168252945,
0.059098225086927414,
0.2626301646232605,
-0.06669386476278305,
-0.06701944768428802,
-0.23467373847961426,
-0.02419922687113285,
-0.1312120258808136,
-0.174810990691185,
-0.07673633843660355,
-0.00998618733137846,
0.1970105618238449,
0.09643664956092834,
-0.11914364248514175,
-0.07300101220607758,
-0.1194596216082573,
-0.006627651862800121,
-0.05461837723851204,
0.06399892270565033,
0.05394270643591881,
-0.06948944926261902,
0.07713863998651505,
0.12451167404651642,
-0.11948752403259277,
0.04282219707965851,
-0.05381803214550018,
0.1393357515335083,
-0.012257545255124569,
-0.09724906831979752,
-0.08342595398426056,
-0.025141078978776932,
0.06373770534992218,
0.040348269045352936,
0.10759232938289642,
-0.06028914451599121,
0.02534639462828636,
0.022555820643901825,
-0.07445227354764938,
-0.11207214742898941,
-0.025612905621528625,
0.09823004901409149,
0.01038079708814621,
0.021650172770023346,
0.22766606509685516,
-0.016398504376411438,
-0.010942687280476093,
0.03301875293254852,
0.007432373706251383,
0.3170333206653595,
-0.1579727828502655,
-0.0006033303798176348,
0.08601102232933044,
0.09297700226306915,
-0.2278481423854828,
-0.01801919937133789,
-0.006680417340248823,
-0.026498813182115555,
0.07648016512393951,
-0.21290601789951324,
-0.03064901940524578,
0.025889001786708832,
0.05582715570926666,
-0.2380698323249817,
0.008179555647075176,
0.037750404328107834,
0.04152938351035118,
0.10737056285142899,
0.020877743139863014,
0.11759082227945328,
0.1721089780330658,
0.21474780142307281,
0.3142072558403015,
0.109914131462574,
-0.08629069477319717,
-0.019980713725090027,
0.12379482388496399,
-0.019698025658726692,
-0.02217750810086727,
-0.10348810255527496,
-0.024150101467967033,
0.02279600128531456,
0.02294481359422207,
0.1378050297498703,
-0.014458704739809036,
0.03803001344203949,
0.31501340866088867,
0.09803534299135208,
0.21799418330192566,
0.04480806738138199,
-0.06425708532333374,
-0.03007296472787857,
0.001535835792310536,
-0.14465849101543427,
0.1273719221353531,
-0.015776271000504494,
-0.011183330789208412,
-0.15786592662334442,
-0.15543097257614136,
-0.05131829157471657,
0.18436263501644135,
-0.25981229543685913,
-0.03596219792962074,
-0.027921484783291817,
-0.14083126187324524,
0.06640544533729553,
-0.0958324521780014,
0.11686520278453827,
-0.14375731348991394,
0.0523659810423851,
-0.0915028378367424,
0.010479683987796307,
-0.11909182369709015,
-0.04614997282624245,
0.11514025181531906,
-0.05269905924797058,
-0.03634972497820854,
-0.13591423630714417,
-0.029305540025234222,
0.03728073090314865,
-0.1830618679523468,
-0.09600164741277695,
0.08161363750696182,
0.22747813165187836,
0.01944044977426529,
0.03833679109811783,
0.013650807552039623,
-0.016284257173538208,
0.1025657206773758,
0.04087549448013306,
0.05686068907380104,
0.09200839698314667,
-0.057894267141819,
-0.08596408367156982,
0.14834903180599213,
-0.17141102254390717,
-0.06982573866844177,
0.018308328464627266,
0.002095078583806753,
-0.2244603931903839,
0.10701648145914078,
0.041851069778203964,
-0.02074182592332363,
-0.06231636554002762,
-0.08071725070476532,
-0.08928461372852325,
-0.09943633526563644,
-0.026111464947462082,
0.1656862199306488,
0.11544785648584366,
-0.09951584786176682,
0.04418021813035011,
-0.019908159971237183,
-0.0026318395975977182,
0.1071360781788826,
0.14400021731853485,
0.12168461829423904,
0.021106040105223656,
0.056908681988716125,
0.07414524257183075,
-0.07450494915246964,
0.11477231979370117,
-0.03821595758199692,
0.008227991871535778,
-0.12383369356393814,
0.15080668032169342,
0.08701453357934952,
-0.09923573583364487,
0.14925383031368256,
-0.31942376494407654,
0.03270987793803215,
-0.06788767874240875,
0.10020282864570618,
0.1488596796989441,
0.061490174382925034,
-0.015815675258636475,
-0.06739553809165955,
-0.1093866154551506,
-0.10826199501752853,
0.04474368318915367,
0.07238730043172836,
0.08452441543340683,
-0.047157395631074905,
-0.033911753445863724,
0.0632767304778099,
0.030927591025829315,
0.07933471351861954,
-0.040351707488298416,
-0.161393940448761,
0.10122688114643097,
-0.11063645035028458,
-0.00774203659966588,
0.04062995687127113,
-0.13008517026901245,
0.10593481361865997,
-0.03869682177901268,
0.0002652212278917432,
0.13908754289150238,
0.16645199060440063,
0.14507612586021423,
-0.05422527715563774,
-0.13134460151195526,
-0.04888258874416351,
0.10111977905035019,
0.04707079753279686,
0.010677219368517399,
0.08880917727947235,
0.047995757311582565,
0.02254774235188961,
-0.03805701807141304,
-0.09540624171495438,
-0.036482032388448715,
0.04662146419286728,
-0.02097558230161667,
-0.045252326875925064,
-0.24623219668865204,
-0.000853062083479017,
-0.013833596371114254,
-0.035698022693395615,
-0.14603722095489502,
-0.001383613795042038,
0.04314323142170906,
0.10387943685054779,
-0.07165595889091492,
-0.11833768337965012,
-0.13272923231124878,
-0.08002393692731857,
-0.002130871871486306,
-0.09447835385799408,
-0.06572792679071426,
-0.1801357865333557,
0.08546368032693863,
-0.032861173152923584,
0.0029676815029233694,
-0.06281700730323792,
-0.04819406569004059,
0.09103383868932724,
-0.07226306200027466,
-0.010125681757926941,
-0.1350266933441162,
0.22623193264007568,
0.09599015861749649,
-0.19161875545978546,
-0.11790703982114792,
-0.0712648406624794,
0.041975412517786026,
0.15071770548820496,
-0.10718566179275513,
0.06550222635269165,
-0.16642116010189056,
0.03901198133826256,
-0.007569864392280579,
-0.012703496031463146,
0.14562690258026123,
-0.04066553711891174,
-0.08546952903270721,
0.029598034918308258,
0.1775760054588318,
-0.2537045180797577,
-0.14448846876621246,
0.047839824110269547,
-0.1119556650519371,
-0.11610018461942673,
0.16148990392684937,
0.18774962425231934,
-0.05892620608210564,
-0.24157880246639252,
-0.1526496559381485,
0.006040741689503193,
-0.016398370265960693,
-0.21405759453773499,
-0.08452031016349792,
0.02783329226076603,
-0.11109238862991333,
0.06167428568005562,
0.306680828332901,
0.014125844463706017,
-0.005087526049464941,
0.1138705164194107,
-0.06754004955291748,
0.15844641625881195,
0.02259805053472519,
0.21759560704231262,
-0.13619743287563324,
-0.0599103607237339,
-0.059196460992097855,
0.11996845155954361,
-0.04031473398208618,
-0.036428891122341156,
0.0336885079741478,
-0.18482446670532227,
-0.01908804662525654,
-0.06094813346862793,
0.16912613809108734,
-0.04593990370631218,
-0.09327084571123123,
-0.03413528949022293,
0.01760927215218544,
0.15331505239009857,
0.08581989258527756,
0.049274396151304245,
0.20256800949573517,
0.18500955402851105,
0.03457510098814964,
0.016907671466469765,
-0.12096162885427475,
0.039171136915683746,
-0.17014388740062714,
0.012031057849526405,
0.029928022995591164,
0.059064384549856186,
0.004489374812692404,
0.06439661234617233,
0.20744812488555908,
-0.04721708595752716,
-0.17150837182998657,
0.14170166850090027,
0.028625208884477615,
-0.03685656189918518,
0.04992753267288208,
0.16885273158550262,
-0.14576970040798187,
-0.05057321488857269,
-0.17456163465976715,
0.057020366191864014,
-0.05232900008559227,
0.10654284805059433,
-0.08018732070922852,
-0.04715650901198387,
0.07986880093812943,
0.10845238715410233,
0.1098048985004425,
0.02456674724817276,
0.21681563556194305,
-0.05872057005763054,
0.10424735397100449,
0.11649191379547119,
-0.019547300413250923,
0.026735935360193253,
-0.07979077845811844,
-0.05223144218325615,
0.05927479267120361,
-0.12318804115056992,
-0.04789566993713379,
0.3197777569293976,
-0.010963221080601215,
0.004752787761390209,
-0.20069314539432526,
-0.05326935276389122,
0.06700316816568375,
-0.059151068329811096,
-0.058927021920681,
-0.18320448696613312,
-0.14381414651870728,
-0.164193794131279,
-0.15023359656333923,
0.1566782146692276,
0.08643178641796112,
-0.033660467714071274,
-0.21268533170223236,
0.000941713631618768,
0.05836385488510132,
0.09756821393966675,
-0.03704777732491493,
0.03562270849943161,
0.13659749925136566,
-0.049640171229839325,
-0.007165150251239538,
0.011651230044662952,
-0.22804208099842072,
0.18088750541210175,
-0.08428800106048584,
-0.06352529674768448,
-0.0020119412802159786,
0.08089140057563782,
0.0655423179268837,
-0.00832749716937542,
0.03806781396269798,
0.09370806068181992,
0.03734217584133148,
-0.06571966409683228,
0.03938763588666916,
0.09520935267210007,
0.10320558398962021,
-0.1257425993680954,
-0.1216907948255539,
0.11396659165620804,
0.09139472991228104,
-0.14080944657325745,
-0.018120665103197098,
-0.15175774693489075,
0.02774379774928093,
0.008988110348582268,
0.09948159754276276,
-0.11343388259410858,
0.000028701804694719613,
0.18482458591461182,
-0.06787512451410294,
-0.1783338040113449,
0.027134189382195473,
-0.0461580716073513,
-0.09338925033807755,
-0.02375025860965252,
-0.010982650332152843,
0.08713268488645554,
0.07791897654533386,
0.14204300940036774,
0.03598795086145401,
-0.062363091856241226,
-0.05498922988772392,
0.10940346121788025,
0.0912942886352539,
0.034015677869319916,
0.022942475974559784,
-0.0029224036261439323,
-0.12866151332855225,
0.048069607466459274,
0.22661514580249786,
0.0058241537772119045,
0.015599790029227734,
-0.12392554432153702,
0.03914396092295647,
-0.010733443312346935,
0.002152608474716544,
0.10683254897594452,
0.13827936351299286,
0.12935058772563934,
0.05133403465151787,
-0.07119912654161453,
-0.15030330419540405,
0.040063418447971344,
0.11253884434700012,
0.032886624336242676,
0.08421388268470764,
0.2670772075653076,
-0.0492391400039196,
-0.17231838405132294,
0.0783260241150856,
0.13097409904003143,
0.013949624262750149,
-0.11578965932130814,
-0.06696983426809311,
0.06658989191055298,
-0.167466938495636,
-0.07341371476650238,
0.1879834234714508,
-0.02855263650417328,
-0.1793215572834015,
0.06951646506786346,
-0.05668727681040764,
-0.033123619854450226,
-0.04899625852704048,
0.09254173934459686,
0.0802173763513565,
0.05021306872367859,
-0.13440434634685516,
0.06311117112636566,
-2.634349255623568e-32,
-0.14567254483699799,
0.10958664864301682,
0.022403355687856674,
-0.027079304680228233,
0.0019842886831611395,
-0.020343760028481483,
-0.04752274602651596,
-0.14969870448112488,
0.04701082035899162,
-0.0029860008507966995,
-0.13698872923851013,
0.017674820497632027,
0.033175334334373474,
-0.009995604865252972,
0.03555327653884888,
0.03868730366230011,
0.29156091809272766,
-0.08755695819854736,
-0.2332383096218109,
0.0849398821592331,
0.14701233804225922,
0.225900337100029,
0.06894829124212265,
0.0992051437497139,
-0.15019188821315765,
0.10571347177028656,
0.013328658416867256,
0.0285396259278059,
0.04314783215522766,
-0.08388643711805344,
-0.12094298750162125,
-0.0007217046222649515,
-0.12121447920799255,
0.013941756449639797,
-0.08199018985033035,
0.04392873868346214,
-0.14110954105854034,
-0.02185039594769478,
0.025636976584792137,
0.10579648613929749,
-0.029918724671006203,
-0.13221918046474457,
0.0758875384926796,
0.016011936590075493,
-0.07294770330190659,
0.05316255986690521,
-0.07177091389894485,
-0.04869323968887329,
-0.07021074742078781,
-0.15228530764579773,
-0.23572885990142822,
0.12069105356931686,
-0.0007068831473588943,
0.11619844287633896,
0.0757455974817276,
-0.04487856850028038,
0.1113806664943695,
0.005164533853530884,
-0.17002750933170319,
-0.09718786925077438,
0.12450852990150452,
0.22239191830158234,
0.03934326767921448,
0.02501058578491211,
-0.06359022855758667,
-0.03906940296292305,
0.22727680206298828,
0.0901135727763176,
0.2884526252746582,
0.16501976549625397,
0.1680814027786255,
-0.053666647523641586,
0.02375086024403572,
-0.11250550299882889,
-0.020109811797738075,
0.0397823303937912,
-0.132205069065094,
0.13786277174949646,
0.12929128110408783,
-0.08362245559692383,
-0.164950892329216,
0.1576361209154129,
0.10818986594676971,
0.06146269664168358,
0.04000743851065636,
0.22563536465168,
0.08067145943641663,
0.06219927966594696,
-0.09028305113315582,
-0.03653227910399437,
-0.15653109550476074,
0.03211839497089386,
0.20697662234306335,
-0.08983630686998367,
0.05625096708536148,
0.05455663427710533,
-0.08139705657958984,
0.08358053117990494,
-0.1515149474143982,
-0.10490600764751434,
-0.04438750818371773,
-0.04274289682507515,
-0.0005932293133810163,
-0.06100614741444588,
0.22077585756778717,
-0.11964307725429535,
0.04748415946960449,
0.08293520659208298,
-0.32652661204338074,
-0.008674335666000843,
0.033676933497190475,
-0.06357257813215256,
0.1480514258146286,
0.028104186058044434,
0.09964101761579514,
0.045360539108514786,
0.027188554406166077,
0.0758574828505516,
0.07875875383615494,
0.037971366196870804,
-0.0341067872941494,
-0.08728684484958649,
0.13386644423007965,
-0.13725018501281738,
-0.09154471755027771,
-0.07394642382860184,
-0.05232315883040428,
0.009060048498213291,
-0.048064082860946655,
-0.03639025613665581,
-0.17919586598873138,
0.00636901194229722,
6.985127356529119e-7,
0.0559762679040432,
0.1500197947025299,
0.09943659603595734,
-0.044151365756988525,
-0.020518559962511063,
0.14983680844306946,
0.05565166845917702,
0.0324261449277401,
-0.04938717931509018,
0.021231932565569878,
0.07271839678287506,
-0.0685974508523941,
0.019101634621620178,
0.012218020856380463,
0.09487083554267883,
-0.2161211520433426,
0.010661231353878975,
-0.06971488893032074,
-0.1880747526884079,
0.052158620208501816,
0.0243685245513916,
0.27122530341148376,
-0.06097225844860077,
-0.1791486144065857,
0.2627328038215637,
0.057548169046640396,
-0.014274529181420803,
-0.00029395302408374846,
-0.04185447469353676,
0.06571102887392044,
0.11151216924190521,
-0.06645311415195465,
-0.24488112330436707,
0.06893810629844666,
-0.11519978940486908,
-0.044504258781671524,
-0.19075369834899902,
0.11768924444913864,
0.15984749794006348,
0.15780115127563477,
0.03177301585674286,
-0.02282915636897087,
0.024139784276485443,
-0.16595372557640076,
0.014781294390559196,
0.1941472440958023,
0.020130785182118416,
0.11852403730154037,
-0.06380180269479752,
-0.05491466820240021,
-0.05736317113041878,
0.06758308410644531,
-0.031128689646720886,
0.1988278478384018,
0.038816310465335846,
-0.0792609229683876,
-0.1438027024269104,
-0.15787923336029053,
-0.0308604147285223,
-0.04333774372935295,
-0.040175240486860275,
-0.06916093826293945,
-0.09768238663673401,
0.0856141671538353,
0.23418259620666504,
-0.049798984080553055,
-0.08235353231430054,
2.763623952981661e-34,
-0.008120251819491386,
0.08617989718914032,
0.14236699044704437,
0.10515589267015457,
0.08724866062402725,
-0.05931452661752701,
0.020904183387756348,
0.008697597309947014,
0.06991482526063919,
-0.2999711334705353,
-0.16076892614364624
] |
https://github.com/huggingface/datasets/issues/2498 | Improve torch formatting performance | @albertvillanova of course it works. Apologies. I needed to change datasets in all deps references , like [here](https://github.com/huggingface/transformers/blob/master/setup.py#L235) for example. | **Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
| 20 | Improve torch formatting performance
**Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
@albertvillanova of course it works. Apologies. I needed to change datasets in all deps references , like [here](https://github.com/huggingface/transformers/blob/master/setup.py#L235) for example. | [
-0.11883822828531265,
0.16306379437446594,
-0.1083887591958046,
-0.001332283136434853,
-0.08068305999040604,
-0.019639287143945694,
0.09920649975538254,
0.2937559187412262,
-0.16615261137485504,
-0.133849635720253,
-0.1209469735622406,
0.11728517711162567,
-0.09816189855337143,
0.0810495913028717,
-0.06285826116800308,
-0.23150232434272766,
-0.0381409116089344,
-0.025896195322275162,
0.05988885834813118,
0.11049521714448929,
-0.08881425857543945,
-0.10119785368442535,
0.13778339326381683,
-0.16025657951831818,
-0.005690921563655138,
-0.10142558068037033,
-0.14522352814674377,
0.031842779368162155,
0.015236818231642246,
-0.1379425823688507,
0.04617726430296898,
0.20017901062965393,
-0.06095150113105774,
0.20791660249233246,
0.000005690186299034394,
-0.028230983763933182,
-0.08265750110149384,
0.05904816463589668,
-0.011004110798239708,
0.25812751054763794,
0.30795276165008545,
-0.11764455586671829,
-0.01749098300933838,
0.08950190246105194,
-0.08168687671422958,
-0.013317767530679703,
-0.1187252476811409,
-0.004642309155315161,
-0.04767441004514694,
0.04709259420633316,
0.016705289483070374,
0.10467980802059174,
-0.07876234501600266,
-0.05964488908648491,
0.03383680060505867,
0.14280150830745697,
-0.16255450248718262,
0.027372825890779495,
0.1039399728178978,
-0.016987062990665436,
-0.06442239135503769,
0.04627646505832672,
0.05510058254003525,
-0.11506824195384979,
0.10739481449127197,
0.11887188255786896,
-0.25162404775619507,
0.0558130219578743,
0.11302885413169861,
0.10207601636648178,
-0.14782176911830902,
-0.09732267260551453,
-0.14595451951026917,
-0.018687935546040535,
-0.06267787516117096,
-0.21370916068553925,
-0.12104778736829758,
0.07260260730981827,
-0.08625916391611099,
0.008218453265726566,
-0.0757700502872467,
0.08034807443618774,
0.04058659449219704,
-0.07390021532773972,
-0.23531484603881836,
0.016051223501563072,
0.2067103534936905,
-0.07264702767133713,
0.13996171951293945,
0.08822683244943619,
0.21892794966697693,
-0.11988377571105957,
0.00927069503813982,
0.025499247014522552,
-0.20803864300251007,
-0.07671790570020676,
-0.16782206296920776,
-0.135110542178154,
-0.05779460817575455,
-0.08279649168252945,
0.059098225086927414,
0.2626301646232605,
-0.06669386476278305,
-0.06701944768428802,
-0.23467373847961426,
-0.02419922687113285,
-0.1312120258808136,
-0.174810990691185,
-0.07673633843660355,
-0.00998618733137846,
0.1970105618238449,
0.09643664956092834,
-0.11914364248514175,
-0.07300101220607758,
-0.1194596216082573,
-0.006627651862800121,
-0.05461837723851204,
0.06399892270565033,
0.05394270643591881,
-0.06948944926261902,
0.07713863998651505,
0.12451167404651642,
-0.11948752403259277,
0.04282219707965851,
-0.05381803214550018,
0.1393357515335083,
-0.012257545255124569,
-0.09724906831979752,
-0.08342595398426056,
-0.025141078978776932,
0.06373770534992218,
0.040348269045352936,
0.10759232938289642,
-0.06028914451599121,
0.02534639462828636,
0.022555820643901825,
-0.07445227354764938,
-0.11207214742898941,
-0.025612905621528625,
0.09823004901409149,
0.01038079708814621,
0.021650172770023346,
0.22766606509685516,
-0.016398504376411438,
-0.010942687280476093,
0.03301875293254852,
0.007432373706251383,
0.3170333206653595,
-0.1579727828502655,
-0.0006033303798176348,
0.08601102232933044,
0.09297700226306915,
-0.2278481423854828,
-0.01801919937133789,
-0.006680417340248823,
-0.026498813182115555,
0.07648016512393951,
-0.21290601789951324,
-0.03064901940524578,
0.025889001786708832,
0.05582715570926666,
-0.2380698323249817,
0.008179555647075176,
0.037750404328107834,
0.04152938351035118,
0.10737056285142899,
0.020877743139863014,
0.11759082227945328,
0.1721089780330658,
0.21474780142307281,
0.3142072558403015,
0.109914131462574,
-0.08629069477319717,
-0.019980713725090027,
0.12379482388496399,
-0.019698025658726692,
-0.02217750810086727,
-0.10348810255527496,
-0.024150101467967033,
0.02279600128531456,
0.02294481359422207,
0.1378050297498703,
-0.014458704739809036,
0.03803001344203949,
0.31501340866088867,
0.09803534299135208,
0.21799418330192566,
0.04480806738138199,
-0.06425708532333374,
-0.03007296472787857,
0.001535835792310536,
-0.14465849101543427,
0.1273719221353531,
-0.015776271000504494,
-0.011183330789208412,
-0.15786592662334442,
-0.15543097257614136,
-0.05131829157471657,
0.18436263501644135,
-0.25981229543685913,
-0.03596219792962074,
-0.027921484783291817,
-0.14083126187324524,
0.06640544533729553,
-0.0958324521780014,
0.11686520278453827,
-0.14375731348991394,
0.0523659810423851,
-0.0915028378367424,
0.010479683987796307,
-0.11909182369709015,
-0.04614997282624245,
0.11514025181531906,
-0.05269905924797058,
-0.03634972497820854,
-0.13591423630714417,
-0.029305540025234222,
0.03728073090314865,
-0.1830618679523468,
-0.09600164741277695,
0.08161363750696182,
0.22747813165187836,
0.01944044977426529,
0.03833679109811783,
0.013650807552039623,
-0.016284257173538208,
0.1025657206773758,
0.04087549448013306,
0.05686068907380104,
0.09200839698314667,
-0.057894267141819,
-0.08596408367156982,
0.14834903180599213,
-0.17141102254390717,
-0.06982573866844177,
0.018308328464627266,
0.002095078583806753,
-0.2244603931903839,
0.10701648145914078,
0.041851069778203964,
-0.02074182592332363,
-0.06231636554002762,
-0.08071725070476532,
-0.08928461372852325,
-0.09943633526563644,
-0.026111464947462082,
0.1656862199306488,
0.11544785648584366,
-0.09951584786176682,
0.04418021813035011,
-0.019908159971237183,
-0.0026318395975977182,
0.1071360781788826,
0.14400021731853485,
0.12168461829423904,
0.021106040105223656,
0.056908681988716125,
0.07414524257183075,
-0.07450494915246964,
0.11477231979370117,
-0.03821595758199692,
0.008227991871535778,
-0.12383369356393814,
0.15080668032169342,
0.08701453357934952,
-0.09923573583364487,
0.14925383031368256,
-0.31942376494407654,
0.03270987793803215,
-0.06788767874240875,
0.10020282864570618,
0.1488596796989441,
0.061490174382925034,
-0.015815675258636475,
-0.06739553809165955,
-0.1093866154551506,
-0.10826199501752853,
0.04474368318915367,
0.07238730043172836,
0.08452441543340683,
-0.047157395631074905,
-0.033911753445863724,
0.0632767304778099,
0.030927591025829315,
0.07933471351861954,
-0.040351707488298416,
-0.161393940448761,
0.10122688114643097,
-0.11063645035028458,
-0.00774203659966588,
0.04062995687127113,
-0.13008517026901245,
0.10593481361865997,
-0.03869682177901268,
0.0002652212278917432,
0.13908754289150238,
0.16645199060440063,
0.14507612586021423,
-0.05422527715563774,
-0.13134460151195526,
-0.04888258874416351,
0.10111977905035019,
0.04707079753279686,
0.010677219368517399,
0.08880917727947235,
0.047995757311582565,
0.02254774235188961,
-0.03805701807141304,
-0.09540624171495438,
-0.036482032388448715,
0.04662146419286728,
-0.02097558230161667,
-0.045252326875925064,
-0.24623219668865204,
-0.000853062083479017,
-0.013833596371114254,
-0.035698022693395615,
-0.14603722095489502,
-0.001383613795042038,
0.04314323142170906,
0.10387943685054779,
-0.07165595889091492,
-0.11833768337965012,
-0.13272923231124878,
-0.08002393692731857,
-0.002130871871486306,
-0.09447835385799408,
-0.06572792679071426,
-0.1801357865333557,
0.08546368032693863,
-0.032861173152923584,
0.0029676815029233694,
-0.06281700730323792,
-0.04819406569004059,
0.09103383868932724,
-0.07226306200027466,
-0.010125681757926941,
-0.1350266933441162,
0.22623193264007568,
0.09599015861749649,
-0.19161875545978546,
-0.11790703982114792,
-0.0712648406624794,
0.041975412517786026,
0.15071770548820496,
-0.10718566179275513,
0.06550222635269165,
-0.16642116010189056,
0.03901198133826256,
-0.007569864392280579,
-0.012703496031463146,
0.14562690258026123,
-0.04066553711891174,
-0.08546952903270721,
0.029598034918308258,
0.1775760054588318,
-0.2537045180797577,
-0.14448846876621246,
0.047839824110269547,
-0.1119556650519371,
-0.11610018461942673,
0.16148990392684937,
0.18774962425231934,
-0.05892620608210564,
-0.24157880246639252,
-0.1526496559381485,
0.006040741689503193,
-0.016398370265960693,
-0.21405759453773499,
-0.08452031016349792,
0.02783329226076603,
-0.11109238862991333,
0.06167428568005562,
0.306680828332901,
0.014125844463706017,
-0.005087526049464941,
0.1138705164194107,
-0.06754004955291748,
0.15844641625881195,
0.02259805053472519,
0.21759560704231262,
-0.13619743287563324,
-0.0599103607237339,
-0.059196460992097855,
0.11996845155954361,
-0.04031473398208618,
-0.036428891122341156,
0.0336885079741478,
-0.18482446670532227,
-0.01908804662525654,
-0.06094813346862793,
0.16912613809108734,
-0.04593990370631218,
-0.09327084571123123,
-0.03413528949022293,
0.01760927215218544,
0.15331505239009857,
0.08581989258527756,
0.049274396151304245,
0.20256800949573517,
0.18500955402851105,
0.03457510098814964,
0.016907671466469765,
-0.12096162885427475,
0.039171136915683746,
-0.17014388740062714,
0.012031057849526405,
0.029928022995591164,
0.059064384549856186,
0.004489374812692404,
0.06439661234617233,
0.20744812488555908,
-0.04721708595752716,
-0.17150837182998657,
0.14170166850090027,
0.028625208884477615,
-0.03685656189918518,
0.04992753267288208,
0.16885273158550262,
-0.14576970040798187,
-0.05057321488857269,
-0.17456163465976715,
0.057020366191864014,
-0.05232900008559227,
0.10654284805059433,
-0.08018732070922852,
-0.04715650901198387,
0.07986880093812943,
0.10845238715410233,
0.1098048985004425,
0.02456674724817276,
0.21681563556194305,
-0.05872057005763054,
0.10424735397100449,
0.11649191379547119,
-0.019547300413250923,
0.026735935360193253,
-0.07979077845811844,
-0.05223144218325615,
0.05927479267120361,
-0.12318804115056992,
-0.04789566993713379,
0.3197777569293976,
-0.010963221080601215,
0.004752787761390209,
-0.20069314539432526,
-0.05326935276389122,
0.06700316816568375,
-0.059151068329811096,
-0.058927021920681,
-0.18320448696613312,
-0.14381414651870728,
-0.164193794131279,
-0.15023359656333923,
0.1566782146692276,
0.08643178641796112,
-0.033660467714071274,
-0.21268533170223236,
0.000941713631618768,
0.05836385488510132,
0.09756821393966675,
-0.03704777732491493,
0.03562270849943161,
0.13659749925136566,
-0.049640171229839325,
-0.007165150251239538,
0.011651230044662952,
-0.22804208099842072,
0.18088750541210175,
-0.08428800106048584,
-0.06352529674768448,
-0.0020119412802159786,
0.08089140057563782,
0.0655423179268837,
-0.00832749716937542,
0.03806781396269798,
0.09370806068181992,
0.03734217584133148,
-0.06571966409683228,
0.03938763588666916,
0.09520935267210007,
0.10320558398962021,
-0.1257425993680954,
-0.1216907948255539,
0.11396659165620804,
0.09139472991228104,
-0.14080944657325745,
-0.018120665103197098,
-0.15175774693489075,
0.02774379774928093,
0.008988110348582268,
0.09948159754276276,
-0.11343388259410858,
0.000028701804694719613,
0.18482458591461182,
-0.06787512451410294,
-0.1783338040113449,
0.027134189382195473,
-0.0461580716073513,
-0.09338925033807755,
-0.02375025860965252,
-0.010982650332152843,
0.08713268488645554,
0.07791897654533386,
0.14204300940036774,
0.03598795086145401,
-0.062363091856241226,
-0.05498922988772392,
0.10940346121788025,
0.0912942886352539,
0.034015677869319916,
0.022942475974559784,
-0.0029224036261439323,
-0.12866151332855225,
0.048069607466459274,
0.22661514580249786,
0.0058241537772119045,
0.015599790029227734,
-0.12392554432153702,
0.03914396092295647,
-0.010733443312346935,
0.002152608474716544,
0.10683254897594452,
0.13827936351299286,
0.12935058772563934,
0.05133403465151787,
-0.07119912654161453,
-0.15030330419540405,
0.040063418447971344,
0.11253884434700012,
0.032886624336242676,
0.08421388268470764,
0.2670772075653076,
-0.0492391400039196,
-0.17231838405132294,
0.0783260241150856,
0.13097409904003143,
0.013949624262750149,
-0.11578965932130814,
-0.06696983426809311,
0.06658989191055298,
-0.167466938495636,
-0.07341371476650238,
0.1879834234714508,
-0.02855263650417328,
-0.1793215572834015,
0.06951646506786346,
-0.05668727681040764,
-0.033123619854450226,
-0.04899625852704048,
0.09254173934459686,
0.0802173763513565,
0.05021306872367859,
-0.13440434634685516,
0.06311117112636566,
-2.634349255623568e-32,
-0.14567254483699799,
0.10958664864301682,
0.022403355687856674,
-0.027079304680228233,
0.0019842886831611395,
-0.020343760028481483,
-0.04752274602651596,
-0.14969870448112488,
0.04701082035899162,
-0.0029860008507966995,
-0.13698872923851013,
0.017674820497632027,
0.033175334334373474,
-0.009995604865252972,
0.03555327653884888,
0.03868730366230011,
0.29156091809272766,
-0.08755695819854736,
-0.2332383096218109,
0.0849398821592331,
0.14701233804225922,
0.225900337100029,
0.06894829124212265,
0.0992051437497139,
-0.15019188821315765,
0.10571347177028656,
0.013328658416867256,
0.0285396259278059,
0.04314783215522766,
-0.08388643711805344,
-0.12094298750162125,
-0.0007217046222649515,
-0.12121447920799255,
0.013941756449639797,
-0.08199018985033035,
0.04392873868346214,
-0.14110954105854034,
-0.02185039594769478,
0.025636976584792137,
0.10579648613929749,
-0.029918724671006203,
-0.13221918046474457,
0.0758875384926796,
0.016011936590075493,
-0.07294770330190659,
0.05316255986690521,
-0.07177091389894485,
-0.04869323968887329,
-0.07021074742078781,
-0.15228530764579773,
-0.23572885990142822,
0.12069105356931686,
-0.0007068831473588943,
0.11619844287633896,
0.0757455974817276,
-0.04487856850028038,
0.1113806664943695,
0.005164533853530884,
-0.17002750933170319,
-0.09718786925077438,
0.12450852990150452,
0.22239191830158234,
0.03934326767921448,
0.02501058578491211,
-0.06359022855758667,
-0.03906940296292305,
0.22727680206298828,
0.0901135727763176,
0.2884526252746582,
0.16501976549625397,
0.1680814027786255,
-0.053666647523641586,
0.02375086024403572,
-0.11250550299882889,
-0.020109811797738075,
0.0397823303937912,
-0.132205069065094,
0.13786277174949646,
0.12929128110408783,
-0.08362245559692383,
-0.164950892329216,
0.1576361209154129,
0.10818986594676971,
0.06146269664168358,
0.04000743851065636,
0.22563536465168,
0.08067145943641663,
0.06219927966594696,
-0.09028305113315582,
-0.03653227910399437,
-0.15653109550476074,
0.03211839497089386,
0.20697662234306335,
-0.08983630686998367,
0.05625096708536148,
0.05455663427710533,
-0.08139705657958984,
0.08358053117990494,
-0.1515149474143982,
-0.10490600764751434,
-0.04438750818371773,
-0.04274289682507515,
-0.0005932293133810163,
-0.06100614741444588,
0.22077585756778717,
-0.11964307725429535,
0.04748415946960449,
0.08293520659208298,
-0.32652661204338074,
-0.008674335666000843,
0.033676933497190475,
-0.06357257813215256,
0.1480514258146286,
0.028104186058044434,
0.09964101761579514,
0.045360539108514786,
0.027188554406166077,
0.0758574828505516,
0.07875875383615494,
0.037971366196870804,
-0.0341067872941494,
-0.08728684484958649,
0.13386644423007965,
-0.13725018501281738,
-0.09154471755027771,
-0.07394642382860184,
-0.05232315883040428,
0.009060048498213291,
-0.048064082860946655,
-0.03639025613665581,
-0.17919586598873138,
0.00636901194229722,
6.985127356529119e-7,
0.0559762679040432,
0.1500197947025299,
0.09943659603595734,
-0.044151365756988525,
-0.020518559962511063,
0.14983680844306946,
0.05565166845917702,
0.0324261449277401,
-0.04938717931509018,
0.021231932565569878,
0.07271839678287506,
-0.0685974508523941,
0.019101634621620178,
0.012218020856380463,
0.09487083554267883,
-0.2161211520433426,
0.010661231353878975,
-0.06971488893032074,
-0.1880747526884079,
0.052158620208501816,
0.0243685245513916,
0.27122530341148376,
-0.06097225844860077,
-0.1791486144065857,
0.2627328038215637,
0.057548169046640396,
-0.014274529181420803,
-0.00029395302408374846,
-0.04185447469353676,
0.06571102887392044,
0.11151216924190521,
-0.06645311415195465,
-0.24488112330436707,
0.06893810629844666,
-0.11519978940486908,
-0.044504258781671524,
-0.19075369834899902,
0.11768924444913864,
0.15984749794006348,
0.15780115127563477,
0.03177301585674286,
-0.02282915636897087,
0.024139784276485443,
-0.16595372557640076,
0.014781294390559196,
0.1941472440958023,
0.020130785182118416,
0.11852403730154037,
-0.06380180269479752,
-0.05491466820240021,
-0.05736317113041878,
0.06758308410644531,
-0.031128689646720886,
0.1988278478384018,
0.038816310465335846,
-0.0792609229683876,
-0.1438027024269104,
-0.15787923336029053,
-0.0308604147285223,
-0.04333774372935295,
-0.040175240486860275,
-0.06916093826293945,
-0.09768238663673401,
0.0856141671538353,
0.23418259620666504,
-0.049798984080553055,
-0.08235353231430054,
2.763623952981661e-34,
-0.008120251819491386,
0.08617989718914032,
0.14236699044704437,
0.10515589267015457,
0.08724866062402725,
-0.05931452661752701,
0.020904183387756348,
0.008697597309947014,
0.06991482526063919,
-0.2999711334705353,
-0.16076892614364624
] |
https://github.com/huggingface/datasets/issues/2498 | Improve torch formatting performance | Is time spent casting an issue here? See https://github.com/huggingface/datasets/issues/4676 that Datasets can spend huge amounts of time repeatedly casting to Python objects. | **Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
| 22 | Improve torch formatting performance
**Is your feature request related to a problem? Please describe.**
It would be great, if possible, to further improve read performance of raw encoded datasets and their subsequent conversion to torch tensors.
A bit more background. I am working on LM pre-training using HF ecosystem. We use encoded HF Wikipedia and BookCorpus datasets. The training machines are similar to DGX-1 workstations. We use HF trainer torch.distributed training approach on a single machine with 8 GPUs.
The current performance is about 30% slower than NVidia optimized BERT [examples](https://github.com/NVIDIA/DeepLearningExamples/tree/master/PyTorch/LanguageModeling) baseline. Quite a bit of customized code and training loop tricks were used to achieve the baseline performance. It would be great to achieve the same performance while using nothing more than off the shelf HF ecosystem. Perhaps, in the future, with @stas00 work on deepspeed integration, it could even be exceeded.
**Describe the solution you'd like**
Using profiling tools we've observed that appx. 25% of cumulative run time is spent on data loader next call.
![dataloader_next](https://user-images.githubusercontent.com/458335/121895543-59742a00-ccee-11eb-85fb-f07715e3f1f6.png)
As you can observe most of the data loader next call is spent in HF datasets torch_formatter.py format_batch call.
Digging a bit deeper into format_batch we can see the following profiler data:
![torch_formatter](https://user-images.githubusercontent.com/458335/121895944-c7b8ec80-ccee-11eb-95d5-5875c5716c30.png)
Once again, a lot of time is spent in pyarrow table conversion to pandas which seems like an intermediary step. Offline @lhoestq told me that this approach was, for some unknown reason, faster than direct to numpy conversion.
**Describe alternatives you've considered**
I am not familiar with pyarrow and have not yet considered the alternatives to the current approach.
Most of the online advice around data loader performance improvements revolve around increasing number of workers, using pin memory for copying tensors from host device to gpus but we've already tried these avenues without much performance improvement. Weights & Biases dashboard for the pre-training task reports CPU utilization of ~ 10%, GPUs are completely saturated (GPU utilization is above 95% on all GPUs), while disk utilization is above 90%.
Is time spent casting an issue here? See https://github.com/huggingface/datasets/issues/4676 that Datasets can spend huge amounts of time repeatedly casting to Python objects. | [
-0.11883822828531265,
0.16306379437446594,
-0.1083887591958046,
-0.001332283136434853,
-0.08068305999040604,
-0.019639287143945694,
0.09920649975538254,
0.2937559187412262,
-0.16615261137485504,
-0.133849635720253,
-0.1209469735622406,
0.11728517711162567,
-0.09816189855337143,
0.0810495913028717,
-0.06285826116800308,
-0.23150232434272766,
-0.0381409116089344,
-0.025896195322275162,
0.05988885834813118,
0.11049521714448929,
-0.08881425857543945,
-0.10119785368442535,
0.13778339326381683,
-0.16025657951831818,
-0.005690921563655138,
-0.10142558068037033,
-0.14522352814674377,
0.031842779368162155,
0.015236818231642246,
-0.1379425823688507,
0.04617726430296898,
0.20017901062965393,
-0.06095150113105774,
0.20791660249233246,
0.000005690186299034394,
-0.028230983763933182,
-0.08265750110149384,
0.05904816463589668,
-0.011004110798239708,
0.25812751054763794,
0.30795276165008545,
-0.11764455586671829,
-0.01749098300933838,
0.08950190246105194,
-0.08168687671422958,
-0.013317767530679703,
-0.1187252476811409,
-0.004642309155315161,
-0.04767441004514694,
0.04709259420633316,
0.016705289483070374,
0.10467980802059174,
-0.07876234501600266,
-0.05964488908648491,
0.03383680060505867,
0.14280150830745697,
-0.16255450248718262,
0.027372825890779495,
0.1039399728178978,
-0.016987062990665436,
-0.06442239135503769,
0.04627646505832672,
0.05510058254003525,
-0.11506824195384979,
0.10739481449127197,
0.11887188255786896,
-0.25162404775619507,
0.0558130219578743,
0.11302885413169861,
0.10207601636648178,
-0.14782176911830902,
-0.09732267260551453,
-0.14595451951026917,
-0.018687935546040535,
-0.06267787516117096,
-0.21370916068553925,
-0.12104778736829758,
0.07260260730981827,
-0.08625916391611099,
0.008218453265726566,
-0.0757700502872467,
0.08034807443618774,
0.04058659449219704,
-0.07390021532773972,
-0.23531484603881836,
0.016051223501563072,
0.2067103534936905,
-0.07264702767133713,
0.13996171951293945,
0.08822683244943619,
0.21892794966697693,
-0.11988377571105957,
0.00927069503813982,
0.025499247014522552,
-0.20803864300251007,
-0.07671790570020676,
-0.16782206296920776,
-0.135110542178154,
-0.05779460817575455,
-0.08279649168252945,
0.059098225086927414,
0.2626301646232605,
-0.06669386476278305,
-0.06701944768428802,
-0.23467373847961426,
-0.02419922687113285,
-0.1312120258808136,
-0.174810990691185,
-0.07673633843660355,
-0.00998618733137846,
0.1970105618238449,
0.09643664956092834,
-0.11914364248514175,
-0.07300101220607758,
-0.1194596216082573,
-0.006627651862800121,
-0.05461837723851204,
0.06399892270565033,
0.05394270643591881,
-0.06948944926261902,
0.07713863998651505,
0.12451167404651642,
-0.11948752403259277,
0.04282219707965851,
-0.05381803214550018,
0.1393357515335083,
-0.012257545255124569,
-0.09724906831979752,
-0.08342595398426056,
-0.025141078978776932,
0.06373770534992218,
0.040348269045352936,
0.10759232938289642,
-0.06028914451599121,
0.02534639462828636,
0.022555820643901825,
-0.07445227354764938,
-0.11207214742898941,
-0.025612905621528625,
0.09823004901409149,
0.01038079708814621,
0.021650172770023346,
0.22766606509685516,
-0.016398504376411438,
-0.010942687280476093,
0.03301875293254852,
0.007432373706251383,
0.3170333206653595,
-0.1579727828502655,
-0.0006033303798176348,
0.08601102232933044,
0.09297700226306915,
-0.2278481423854828,
-0.01801919937133789,
-0.006680417340248823,
-0.026498813182115555,
0.07648016512393951,
-0.21290601789951324,
-0.03064901940524578,
0.025889001786708832,
0.05582715570926666,
-0.2380698323249817,
0.008179555647075176,
0.037750404328107834,
0.04152938351035118,
0.10737056285142899,
0.020877743139863014,
0.11759082227945328,
0.1721089780330658,
0.21474780142307281,
0.3142072558403015,
0.109914131462574,
-0.08629069477319717,
-0.019980713725090027,
0.12379482388496399,
-0.019698025658726692,
-0.02217750810086727,
-0.10348810255527496,
-0.024150101467967033,
0.02279600128531456,
0.02294481359422207,
0.1378050297498703,
-0.014458704739809036,
0.03803001344203949,
0.31501340866088867,
0.09803534299135208,
0.21799418330192566,
0.04480806738138199,
-0.06425708532333374,
-0.03007296472787857,
0.001535835792310536,
-0.14465849101543427,
0.1273719221353531,
-0.015776271000504494,
-0.011183330789208412,
-0.15786592662334442,
-0.15543097257614136,
-0.05131829157471657,
0.18436263501644135,
-0.25981229543685913,
-0.03596219792962074,
-0.027921484783291817,
-0.14083126187324524,
0.06640544533729553,
-0.0958324521780014,
0.11686520278453827,
-0.14375731348991394,
0.0523659810423851,
-0.0915028378367424,
0.010479683987796307,
-0.11909182369709015,
-0.04614997282624245,
0.11514025181531906,
-0.05269905924797058,
-0.03634972497820854,
-0.13591423630714417,
-0.029305540025234222,
0.03728073090314865,
-0.1830618679523468,
-0.09600164741277695,
0.08161363750696182,
0.22747813165187836,
0.01944044977426529,
0.03833679109811783,
0.013650807552039623,
-0.016284257173538208,
0.1025657206773758,
0.04087549448013306,
0.05686068907380104,
0.09200839698314667,
-0.057894267141819,
-0.08596408367156982,
0.14834903180599213,
-0.17141102254390717,
-0.06982573866844177,
0.018308328464627266,
0.002095078583806753,
-0.2244603931903839,
0.10701648145914078,
0.041851069778203964,
-0.02074182592332363,
-0.06231636554002762,
-0.08071725070476532,
-0.08928461372852325,
-0.09943633526563644,
-0.026111464947462082,
0.1656862199306488,
0.11544785648584366,
-0.09951584786176682,
0.04418021813035011,
-0.019908159971237183,
-0.0026318395975977182,
0.1071360781788826,
0.14400021731853485,
0.12168461829423904,
0.021106040105223656,
0.056908681988716125,
0.07414524257183075,
-0.07450494915246964,
0.11477231979370117,
-0.03821595758199692,
0.008227991871535778,
-0.12383369356393814,
0.15080668032169342,
0.08701453357934952,
-0.09923573583364487,
0.14925383031368256,
-0.31942376494407654,
0.03270987793803215,
-0.06788767874240875,
0.10020282864570618,
0.1488596796989441,
0.061490174382925034,
-0.015815675258636475,
-0.06739553809165955,
-0.1093866154551506,
-0.10826199501752853,
0.04474368318915367,
0.07238730043172836,
0.08452441543340683,
-0.047157395631074905,
-0.033911753445863724,
0.0632767304778099,
0.030927591025829315,
0.07933471351861954,
-0.040351707488298416,
-0.161393940448761,
0.10122688114643097,
-0.11063645035028458,
-0.00774203659966588,
0.04062995687127113,
-0.13008517026901245,
0.10593481361865997,
-0.03869682177901268,
0.0002652212278917432,
0.13908754289150238,
0.16645199060440063,
0.14507612586021423,
-0.05422527715563774,
-0.13134460151195526,
-0.04888258874416351,
0.10111977905035019,
0.04707079753279686,
0.010677219368517399,
0.08880917727947235,
0.047995757311582565,
0.02254774235188961,
-0.03805701807141304,
-0.09540624171495438,
-0.036482032388448715,
0.04662146419286728,
-0.02097558230161667,
-0.045252326875925064,
-0.24623219668865204,
-0.000853062083479017,
-0.013833596371114254,
-0.035698022693395615,
-0.14603722095489502,
-0.001383613795042038,
0.04314323142170906,
0.10387943685054779,
-0.07165595889091492,
-0.11833768337965012,
-0.13272923231124878,
-0.08002393692731857,
-0.002130871871486306,
-0.09447835385799408,
-0.06572792679071426,
-0.1801357865333557,
0.08546368032693863,
-0.032861173152923584,
0.0029676815029233694,
-0.06281700730323792,
-0.04819406569004059,
0.09103383868932724,
-0.07226306200027466,
-0.010125681757926941,
-0.1350266933441162,
0.22623193264007568,
0.09599015861749649,
-0.19161875545978546,
-0.11790703982114792,
-0.0712648406624794,
0.041975412517786026,
0.15071770548820496,
-0.10718566179275513,
0.06550222635269165,
-0.16642116010189056,
0.03901198133826256,
-0.007569864392280579,
-0.012703496031463146,
0.14562690258026123,
-0.04066553711891174,
-0.08546952903270721,
0.029598034918308258,
0.1775760054588318,
-0.2537045180797577,
-0.14448846876621246,
0.047839824110269547,
-0.1119556650519371,
-0.11610018461942673,
0.16148990392684937,
0.18774962425231934,
-0.05892620608210564,
-0.24157880246639252,
-0.1526496559381485,
0.006040741689503193,
-0.016398370265960693,
-0.21405759453773499,
-0.08452031016349792,
0.02783329226076603,
-0.11109238862991333,
0.06167428568005562,
0.306680828332901,
0.014125844463706017,
-0.005087526049464941,
0.1138705164194107,
-0.06754004955291748,
0.15844641625881195,
0.02259805053472519,
0.21759560704231262,
-0.13619743287563324,
-0.0599103607237339,
-0.059196460992097855,
0.11996845155954361,
-0.04031473398208618,
-0.036428891122341156,
0.0336885079741478,
-0.18482446670532227,
-0.01908804662525654,
-0.06094813346862793,
0.16912613809108734,
-0.04593990370631218,
-0.09327084571123123,
-0.03413528949022293,
0.01760927215218544,
0.15331505239009857,
0.08581989258527756,
0.049274396151304245,
0.20256800949573517,
0.18500955402851105,
0.03457510098814964,
0.016907671466469765,
-0.12096162885427475,
0.039171136915683746,
-0.17014388740062714,
0.012031057849526405,
0.029928022995591164,
0.059064384549856186,
0.004489374812692404,
0.06439661234617233,
0.20744812488555908,
-0.04721708595752716,
-0.17150837182998657,
0.14170166850090027,
0.028625208884477615,
-0.03685656189918518,
0.04992753267288208,
0.16885273158550262,
-0.14576970040798187,
-0.05057321488857269,
-0.17456163465976715,
0.057020366191864014,
-0.05232900008559227,
0.10654284805059433,
-0.08018732070922852,
-0.04715650901198387,
0.07986880093812943,
0.10845238715410233,
0.1098048985004425,
0.02456674724817276,
0.21681563556194305,
-0.05872057005763054,
0.10424735397100449,
0.11649191379547119,
-0.019547300413250923,
0.026735935360193253,
-0.07979077845811844,
-0.05223144218325615,
0.05927479267120361,
-0.12318804115056992,
-0.04789566993713379,
0.3197777569293976,
-0.010963221080601215,
0.004752787761390209,
-0.20069314539432526,
-0.05326935276389122,
0.06700316816568375,
-0.059151068329811096,
-0.058927021920681,
-0.18320448696613312,
-0.14381414651870728,
-0.164193794131279,
-0.15023359656333923,
0.1566782146692276,
0.08643178641796112,
-0.033660467714071274,
-0.21268533170223236,
0.000941713631618768,
0.05836385488510132,
0.09756821393966675,
-0.03704777732491493,
0.03562270849943161,
0.13659749925136566,
-0.049640171229839325,
-0.007165150251239538,
0.011651230044662952,
-0.22804208099842072,
0.18088750541210175,
-0.08428800106048584,
-0.06352529674768448,
-0.0020119412802159786,
0.08089140057563782,
0.0655423179268837,
-0.00832749716937542,
0.03806781396269798,
0.09370806068181992,
0.03734217584133148,
-0.06571966409683228,
0.03938763588666916,
0.09520935267210007,
0.10320558398962021,
-0.1257425993680954,
-0.1216907948255539,
0.11396659165620804,
0.09139472991228104,
-0.14080944657325745,
-0.018120665103197098,
-0.15175774693489075,
0.02774379774928093,
0.008988110348582268,
0.09948159754276276,
-0.11343388259410858,
0.000028701804694719613,
0.18482458591461182,
-0.06787512451410294,
-0.1783338040113449,
0.027134189382195473,
-0.0461580716073513,
-0.09338925033807755,
-0.02375025860965252,
-0.010982650332152843,
0.08713268488645554,
0.07791897654533386,
0.14204300940036774,
0.03598795086145401,
-0.062363091856241226,
-0.05498922988772392,
0.10940346121788025,
0.0912942886352539,
0.034015677869319916,
0.022942475974559784,
-0.0029224036261439323,
-0.12866151332855225,
0.048069607466459274,
0.22661514580249786,
0.0058241537772119045,
0.015599790029227734,
-0.12392554432153702,
0.03914396092295647,
-0.010733443312346935,
0.002152608474716544,
0.10683254897594452,
0.13827936351299286,
0.12935058772563934,
0.05133403465151787,
-0.07119912654161453,
-0.15030330419540405,
0.040063418447971344,
0.11253884434700012,
0.032886624336242676,
0.08421388268470764,
0.2670772075653076,
-0.0492391400039196,
-0.17231838405132294,
0.0783260241150856,
0.13097409904003143,
0.013949624262750149,
-0.11578965932130814,
-0.06696983426809311,
0.06658989191055298,
-0.167466938495636,
-0.07341371476650238,
0.1879834234714508,
-0.02855263650417328,
-0.1793215572834015,
0.06951646506786346,
-0.05668727681040764,
-0.033123619854450226,
-0.04899625852704048,
0.09254173934459686,
0.0802173763513565,
0.05021306872367859,
-0.13440434634685516,
0.06311117112636566,
-2.634349255623568e-32,
-0.14567254483699799,
0.10958664864301682,
0.022403355687856674,
-0.027079304680228233,
0.0019842886831611395,
-0.020343760028481483,
-0.04752274602651596,
-0.14969870448112488,
0.04701082035899162,
-0.0029860008507966995,
-0.13698872923851013,
0.017674820497632027,
0.033175334334373474,
-0.009995604865252972,
0.03555327653884888,
0.03868730366230011,
0.29156091809272766,
-0.08755695819854736,
-0.2332383096218109,
0.0849398821592331,
0.14701233804225922,
0.225900337100029,
0.06894829124212265,
0.0992051437497139,
-0.15019188821315765,
0.10571347177028656,
0.013328658416867256,
0.0285396259278059,
0.04314783215522766,
-0.08388643711805344,
-0.12094298750162125,
-0.0007217046222649515,
-0.12121447920799255,
0.013941756449639797,
-0.08199018985033035,
0.04392873868346214,
-0.14110954105854034,
-0.02185039594769478,
0.025636976584792137,
0.10579648613929749,
-0.029918724671006203,
-0.13221918046474457,
0.0758875384926796,
0.016011936590075493,
-0.07294770330190659,
0.05316255986690521,
-0.07177091389894485,
-0.04869323968887329,
-0.07021074742078781,
-0.15228530764579773,
-0.23572885990142822,
0.12069105356931686,
-0.0007068831473588943,
0.11619844287633896,
0.0757455974817276,
-0.04487856850028038,
0.1113806664943695,
0.005164533853530884,
-0.17002750933170319,
-0.09718786925077438,
0.12450852990150452,
0.22239191830158234,
0.03934326767921448,
0.02501058578491211,
-0.06359022855758667,
-0.03906940296292305,
0.22727680206298828,
0.0901135727763176,
0.2884526252746582,
0.16501976549625397,
0.1680814027786255,
-0.053666647523641586,
0.02375086024403572,
-0.11250550299882889,
-0.020109811797738075,
0.0397823303937912,
-0.132205069065094,
0.13786277174949646,
0.12929128110408783,
-0.08362245559692383,
-0.164950892329216,
0.1576361209154129,
0.10818986594676971,
0.06146269664168358,
0.04000743851065636,
0.22563536465168,
0.08067145943641663,
0.06219927966594696,
-0.09028305113315582,
-0.03653227910399437,
-0.15653109550476074,
0.03211839497089386,
0.20697662234306335,
-0.08983630686998367,
0.05625096708536148,
0.05455663427710533,
-0.08139705657958984,
0.08358053117990494,
-0.1515149474143982,
-0.10490600764751434,
-0.04438750818371773,
-0.04274289682507515,
-0.0005932293133810163,
-0.06100614741444588,
0.22077585756778717,
-0.11964307725429535,
0.04748415946960449,
0.08293520659208298,
-0.32652661204338074,
-0.008674335666000843,
0.033676933497190475,
-0.06357257813215256,
0.1480514258146286,
0.028104186058044434,
0.09964101761579514,
0.045360539108514786,
0.027188554406166077,
0.0758574828505516,
0.07875875383615494,
0.037971366196870804,
-0.0341067872941494,
-0.08728684484958649,
0.13386644423007965,
-0.13725018501281738,
-0.09154471755027771,
-0.07394642382860184,
-0.05232315883040428,
0.009060048498213291,
-0.048064082860946655,
-0.03639025613665581,
-0.17919586598873138,
0.00636901194229722,
6.985127356529119e-7,
0.0559762679040432,
0.1500197947025299,
0.09943659603595734,
-0.044151365756988525,
-0.020518559962511063,
0.14983680844306946,
0.05565166845917702,
0.0324261449277401,
-0.04938717931509018,
0.021231932565569878,
0.07271839678287506,
-0.0685974508523941,
0.019101634621620178,
0.012218020856380463,
0.09487083554267883,
-0.2161211520433426,
0.010661231353878975,
-0.06971488893032074,
-0.1880747526884079,
0.052158620208501816,
0.0243685245513916,
0.27122530341148376,
-0.06097225844860077,
-0.1791486144065857,
0.2627328038215637,
0.057548169046640396,
-0.014274529181420803,
-0.00029395302408374846,
-0.04185447469353676,
0.06571102887392044,
0.11151216924190521,
-0.06645311415195465,
-0.24488112330436707,
0.06893810629844666,
-0.11519978940486908,
-0.044504258781671524,
-0.19075369834899902,
0.11768924444913864,
0.15984749794006348,
0.15780115127563477,
0.03177301585674286,
-0.02282915636897087,
0.024139784276485443,
-0.16595372557640076,
0.014781294390559196,
0.1941472440958023,
0.020130785182118416,
0.11852403730154037,
-0.06380180269479752,
-0.05491466820240021,
-0.05736317113041878,
0.06758308410644531,
-0.031128689646720886,
0.1988278478384018,
0.038816310465335846,
-0.0792609229683876,
-0.1438027024269104,
-0.15787923336029053,
-0.0308604147285223,
-0.04333774372935295,
-0.040175240486860275,
-0.06916093826293945,
-0.09768238663673401,
0.0856141671538353,
0.23418259620666504,
-0.049798984080553055,
-0.08235353231430054,
2.763623952981661e-34,
-0.008120251819491386,
0.08617989718914032,
0.14236699044704437,
0.10515589267015457,
0.08724866062402725,
-0.05931452661752701,
0.020904183387756348,
0.008697597309947014,
0.06991482526063919,
-0.2999711334705353,
-0.16076892614364624
] |
https://github.com/huggingface/datasets/issues/2481 | Delete extracted files to save disk space | My suggestion for this would be to have this enabled by default.
Plus I don't know if there should be a dedicated issue to that is another functionality. But I propose layered building rather than all at once. That is:
1. uncompress a handful of files via a generator enough to generate one arrow file
2. process arrow file 1
3. delete all the files that went in and aren't needed anymore.
rinse and repeat.
1. This way much less disc space will be required - e.g. on JZ we won't be running into inode limitation, also it'd help with the collaborative hub training project
2. The user doesn't need to go and manually clean up all the huge files that were left after pre-processing
3. It would already include deleting temp files this issue is talking about
I wonder if the new streaming API would be of help, except here the streaming would be into arrow files as the destination, rather than dataloaders. | As discussed with @stas00 and @lhoestq, allowing the deletion of extracted files would save a great amount of disk space to typical user. | 164 | Delete extracted files to save disk space
As discussed with @stas00 and @lhoestq, allowing the deletion of extracted files would save a great amount of disk space to typical user.
My suggestion for this would be to have this enabled by default.
Plus I don't know if there should be a dedicated issue to that is another functionality. But I propose layered building rather than all at once. That is:
1. uncompress a handful of files via a generator enough to generate one arrow file
2. process arrow file 1
3. delete all the files that went in and aren't needed anymore.
rinse and repeat.
1. This way much less disc space will be required - e.g. on JZ we won't be running into inode limitation, also it'd help with the collaborative hub training project
2. The user doesn't need to go and manually clean up all the huge files that were left after pre-processing
3. It would already include deleting temp files this issue is talking about
I wonder if the new streaming API would be of help, except here the streaming would be into arrow files as the destination, rather than dataloaders. | [
0.03472471982240677,
0.1755850911140442,
-0.06027422472834587,
0.12526357173919678,
-0.07405168563127518,
0.054557159543037415,
0.013638215139508247,
0.11200523376464844,
-0.15985679626464844,
0.1821247935295105,
-0.12263008207082748,
0.14815467596054077,
-0.1684047132730484,
0.19614671170711517,
-0.27812471985816956,
-0.11386217921972275,
-0.08663333207368851,
0.1810990273952484,
0.014684148132801056,
-0.008300170302391052,
-0.01049908995628357,
0.1320621222257614,
0.09684941172599792,
0.12177636474370956,
0.12538602948188782,
-0.0616045780479908,
0.055559191852808,
0.05560683086514473,
-0.10889632254838943,
-0.03588864952325821,
0.1719474345445633,
0.06671885401010513,
0.15564656257629395,
0.04753141477704048,
0.000005211344159761211,
0.19129210710525513,
0.08373511582612991,
0.0010211861226707697,
-0.23189404606819153,
0.01969553530216217,
-0.06260296702384949,
-0.09938684850931168,
-0.0363583005964756,
0.00046163948718458414,
0.16206634044647217,
-0.13844645023345947,
-0.05370215326547623,
-0.13065795600414276,
0.054358504712581635,
-0.04460572078824043,
-0.09612198919057846,
0.030629416927695274,
-0.030720258131623268,
-0.0036183767952024937,
-0.14327536523342133,
0.08263444900512695,
-0.07401596754789352,
-0.007325760088860989,
0.041931770741939545,
-0.020901570096611977,
0.011973749846220016,
0.16751529276371002,
0.1793327033519745,
-0.027310427278280258,
0.1149238795042038,
-0.0590520054101944,
-0.05215929448604584,
-0.140386164188385,
0.004781829658895731,
-0.13213279843330383,
0.025743288919329643,
-0.2399933934211731,
-0.06780336052179337,
0.03136543184518814,
-0.07498371601104736,
-0.12972159683704376,
-0.059895679354667664,
0.033590856939554214,
-0.12780794501304626,
0.08303462713956833,
-0.11960617452859879,
-0.024955537170171738,
-0.04265935719013214,
-0.13393844664096832,
0.1176915094256401,
-0.0037552956491708755,
-0.054976578801870346,
0.00030845048604533076,
0.12084991484880447,
0.07611805200576782,
0.06967227905988693,
-0.08928336948156357,
0.131467804312706,
-0.04777209833264351,
0.008666840381920338,
-0.1099410280585289,
-0.002469119383022189,
-0.10108326375484467,
-0.030862882733345032,
0.0094357430934906,
0.3050498068332672,
0.10267268121242523,
0.04760202765464783,
0.169633150100708,
-0.018150731921195984,
0.013726077042520046,
0.04280702397227287,
-0.1337609887123108,
0.048925161361694336,
-0.0002526790776755661,
0.013085595332086086,
-0.032567478716373444,
0.0036706808023154736,
-0.01460232399404049,
-0.013899357058107853,
0.16387026011943817,
-0.04220959171652794,
0.10211814194917679,
-0.13046815991401672,
0.024028491228818893,
0.09461250901222229,
0.23460601270198822,
-0.0013189230812713504,
-0.12311568856239319,
0.07030410319566727,
0.08180858939886093,
-0.09610746055841446,
0.12972858548164368,
-0.21461760997772217,
-0.057005625218153,
0.16726306080818176,
0.1668834388256073,
0.01182597130537033,
-0.039806392043828964,
0.23367364704608917,
0.007462517824023962,
-0.08642753213644028,
-0.1761520355939865,
0.1365363895893097,
0.010651244781911373,
0.2032228410243988,
-0.07531937211751938,
0.07966692745685577,
-0.0726524144411087,
-0.04533608257770538,
-0.12973463535308838,
-0.11392379552125931,
0.024189509451389313,
-0.10856791585683823,
0.003097920911386609,
-0.10877843201160431,
-0.1819862425327301,
-0.12455809861421585,
0.023561177775263786,
0.1313999444246292,
0.04880185425281525,
-0.04866347834467888,
-0.0999949723482132,
-0.11206688731908798,
-0.012031658552587032,
0.024266857653856277,
-0.07662101835012436,
0.05284006521105766,
0.07652600854635239,
-0.20422492921352386,
-0.0923147201538086,
0.0338146798312664,
0.010015682317316532,
-0.056376103311777115,
-0.05319850146770477,
0.16997577250003815,
0.14000429213047028,
-0.17066875100135803,
-0.0974627286195755,
-0.11896053701639175,
0.1565447449684143,
0.05996367707848549,
-0.07468805462121964,
-0.019488491117954254,
0.13859139382839203,
0.03007546439766884,
0.03320947289466858,
0.06440143287181854,
0.09489467740058899,
0.17670713365077972,
-0.06377656757831573,
-0.1903676986694336,
0.16607339680194855,
-0.04905451834201813,
-0.055855005979537964,
-0.1474824696779251,
-0.1933237761259079,
-0.026219284161925316,
0.10401896387338638,
-0.09206917881965637,
-0.20114701986312866,
0.055808354169130325,
-0.16260389983654022,
0.14311031997203827,
-0.029101742431521416,
0.17352233827114105,
-0.1654123216867447,
-0.10060738027095795,
-0.1383236050605774,
-0.08249025046825409,
0.0858553797006607,
-0.0008635564590804279,
0.20206929743289948,
-0.19018834829330444,
-0.3654979169368744,
0.010529249906539917,
-0.023731674998998642,
0.17665940523147583,
-0.06414744257926941,
-0.14308485388755798,
0.05823220685124397,
0.06564141809940338,
-0.023142961785197258,
0.11404673755168915,
-0.01650884561240673,
-0.11054819077253342,
0.07156535238027573,
0.13120099902153015,
-0.07976723462343216,
-0.11302164196968079,
-0.07659496366977692,
-0.20660163462162018,
0.04685727134346962,
-0.03997358679771423,
-0.07987046241760254,
-0.13531973958015442,
-0.16020159423351288,
0.001108392607420683,
-0.12520843744277954,
-0.11028454452753067,
0.06558241695165634,
-0.01948482170701027,
-0.019894812256097794,
0.09172329306602478,
-0.08036389201879501,
-0.14578725397586823,
0.13984271883964539,
-0.03414657339453697,
0.09009797871112823,
-0.08995996415615082,
-0.047842368483543396,
0.0413966178894043,
-0.07809945940971375,
-0.036126065999269485,
-0.2517736852169037,
0.002588029718026519,
0.1772758811712265,
-0.06125945970416069,
-0.0070362696424126625,
0.0003731947799678892,
0.057942330837249756,
-0.1345638483762741,
0.1726003885269165,
0.12705716490745544,
0.05033672973513603,
-0.0254819318652153,
0.013432668522000313,
-0.33136725425720215,
0.12283885478973389,
0.1366385817527771,
-0.0978163331747055,
-0.0029959839303046465,
0.07703690230846405,
0.09136667102575302,
0.11885596066713333,
0.20447266101837158,
-0.16342534124851227,
0.18591280281543732,
-0.09334768354892731,
-0.02665838599205017,
0.08389981091022491,
-0.027671046555042267,
0.19477425515651703,
-0.040160294622182846,
0.11721353232860565,
-0.05613941699266434,
0.02993600443005562,
0.20447905361652374,
-0.10897539556026459,
0.2580406367778778,
-0.031621064990758896,
-0.05481536313891411,
-0.16604097187519073,
0.12607209384441376,
0.15000879764556885,
0.043762486428022385,
-0.0480237752199173,
0.10223696380853653,
-0.007500455714762211,
-0.0969245433807373,
0.03634627163410187,
-0.07384750247001648,
0.12690025568008423,
-0.1922970712184906,
-0.09418818354606628,
0.027001744136214256,
0.10194917768239975,
0.08166828006505966,
0.019176287576556206,
0.21116793155670166,
-0.03784047067165375,
0.07192336767911911,
0.096330925822258,
0.08871278911828995,
-0.10039637237787247,
0.10133305191993713,
0.01228177547454834,
0.05494355037808418,
-0.035329174250364304,
0.006932046264410019,
-0.09840121120214462,
0.06654442101716995,
-0.24927853047847748,
-0.11135900765657425,
-0.08225801587104797,
-0.09225538372993469,
-0.08043831586837769,
0.0756227895617485,
0.13156470656394958,
-0.026274271309375763,
0.1731879860162735,
-0.09829448163509369,
-0.23086030781269073,
0.16595493257045746,
-0.028526071459054947,
-0.03935426473617554,
-0.003997050225734711,
-0.06387128680944443,
-0.13076330721378326,
0.023233186453580856,
0.09981896728277206,
-0.0460074320435524,
-0.195365309715271,
-0.1321435123682022,
-0.09964156150817871,
0.11061737686395645,
0.11086616665124893,
0.07786757498979568,
0.0014716465957462788,
0.09467359632253647,
-0.03270324319601059,
-0.080007404088974,
-0.03866003081202507,
0.04529031738638878,
-0.23691794276237488,
0.11038675159215927,
0.014278057031333447,
0.12532077729701996,
-0.003006420796737075,
0.04992232844233513,
0.13510873913764954,
-0.00964137353003025,
0.07710013538599014,
-0.31888553500175476,
0.016858955845236778,
-0.07195717096328735,
0.3869456350803375,
0.29464492201805115,
0.1051872968673706,
-0.05032605305314064,
-0.0562896654009819,
0.14321960508823395,
0.12229445576667786,
-0.170027494430542,
-0.07636202871799469,
0.0001949089055415243,
-0.1394917219877243,
-0.03599470108747482,
-0.04576204717159271,
0.03394920751452446,
-0.024151524528861046,
-0.04730825871229172,
0.039930492639541626,
0.03072289004921913,
-0.1469936966896057,
0.11837859451770782,
-0.12080620974302292,
-0.06359609216451645,
0.0451999269425869,
-0.16460657119750977,
0.08398620784282684,
-0.0679464042186737,
0.11835261434316635,
-0.1322948932647705,
0.15318019688129425,
-0.008172063156962395,
0.19271217286586761,
0.12492837756872177,
0.006175470072776079,
0.1257883608341217,
-0.05564236640930176,
-0.13563945889472961,
-0.10026302188634872,
0.10112706571817398,
0.21053335070610046,
-0.035793550312519073,
-0.11699925363063812,
0.013750214129686356,
-0.0134719954803586,
-0.0686953067779541,
-0.09650018811225891,
-0.10722985863685608,
0.07356389611959457,
0.017916571348905563,
-0.01388601679354906,
-0.0208470169454813,
0.013584974221885204,
-0.10851216316223145,
-0.00913209281861782,
0.029263289645314217,
0.09939832240343094,
-0.018514931201934814,
-0.03264503926038742,
0.17688040435314178,
-0.1182597428560257,
-0.27463510632514954,
-0.09926457703113556,
0.09233670681715012,
0.06773267686367035,
-0.03387461602687836,
-0.029599538072943687,
-0.03335864096879959,
-0.1491854339838028,
0.19110506772994995,
-0.09003737568855286,
0.12536950409412384,
0.05715306103229523,
0.06445194035768509,
-0.05115695297718048,
0.08095311373472214,
-0.007387427147477865,
-0.011561490595340729,
-0.06321123987436295,
-0.11708629131317139,
0.05400500446557999,
-0.2388269603252411,
0.017334597185254097,
0.17749850451946259,
-0.14643754065036774,
0.04859018325805664,
-0.015698853880167007,
0.12947942316532135,
0.1081928014755249,
0.07985004037618637,
-0.014628521166741848,
-0.2022930383682251,
0.0490751713514328,
0.1112809106707573,
-0.08109838515520096,
0.22051316499710083,
-0.03974834084510803,
0.2694055140018463,
-0.0033819368109107018,
-0.09124398231506348,
0.10387927293777466,
0.09787178784608841,
-0.038974374532699585,
0.08161839842796326,
0.11062084883451462,
0.07795654237270355,
0.15869303047657013,
0.19204317033290863,
-0.11678508669137955,
-0.0012818602845072746,
-0.028400050476193428,
-0.06131364032626152,
-0.004779526498168707,
0.05090773105621338,
-0.08447340875864029,
0.11433833837509155,
0.150668665766716,
-0.15653222799301147,
-0.24465979635715485,
-0.032100725919008255,
-0.10644888877868652,
0.011845453642308712,
0.04479255527257919,
0.025612324476242065,
0.008263075724244118,
0.05472341924905777,
0.15966801345348358,
-0.0025837155990302563,
-0.005154344253242016,
0.033080343157052994,
0.1298511028289795,
-0.18515419960021973,
0.12393169850111008,
-0.17015497386455536,
0.04996578022837639,
0.21034950017929077,
-0.06118804216384888,
-0.003528764471411705,
-0.16274335980415344,
0.1879916936159134,
-0.07901985943317413,
0.043476417660713196,
0.06265384703874588,
0.11327723413705826,
-0.1020733192563057,
0.04827984794974327,
-0.10126104205846786,
0.015834791585803032,
-0.20632418990135193,
0.012416774407029152,
0.11324086785316467,
0.0070525058545172215,
-0.08121917396783829,
0.05825885757803917,
-0.10981345921754837,
0.035688918083906174,
-0.017864923924207687,
0.12669488787651062,
-0.07745729386806488,
-0.18443141877651215,
-0.13574127852916718,
0.03853057324886322,
-0.03502459451556206,
0.16091600060462952,
-0.01849599927663803,
-0.055756568908691406,
-0.18358322978019714,
-0.02352830395102501,
-0.10730236768722534,
-0.1308917999267578,
-0.046171750873327255,
-0.021677104756236076,
0.1687680333852768,
-0.1099904328584671,
-0.14757506549358368,
-0.31046032905578613,
-0.05546020343899727,
-0.19352659583091736,
-0.10734257847070694,
0.06264592707157135,
0.06500966846942902,
-0.04346006363630295,
-0.21657201647758484,
-0.06245693564414978,
0.049909766763448715,
0.04748527333140373,
-0.06744975596666336,
0.10081583261489868,
-0.20798176527023315,
0.04108366742730141,
0.07813674956560135,
0.2754136323928833,
-0.05849381163716316,
-0.04948437213897705,
-0.043230924755334854,
-0.07001714408397675,
-2.507665935561862e-32,
0.2642337381839752,
0.15404167771339417,
-0.06746940314769745,
-0.040631406009197235,
-0.054858867079019547,
-0.10487551242113113,
-0.0654103010892868,
-0.23010633885860443,
0.028354229405522346,
-0.013436723500490189,
-0.09037737548351288,
-0.039533235132694244,
0.06023586168885231,
0.09347924590110779,
0.019869763404130936,
0.1354937106370926,
0.11346184462308884,
-0.13926918804645538,
-0.02379133366048336,
-0.05642254278063774,
-0.03600931540131569,
-0.10631231963634491,
0.1372683197259903,
0.10592979937791824,
-0.1319606751203537,
0.04875929653644562,
-0.09133888781070709,
0.24373945593833923,
0.11293873190879822,
-0.00745285302400589,
-0.139617457985878,
0.06325554102659225,
-0.04091445356607437,
0.036353226751089096,
0.0659717470407486,
0.08761107921600342,
-0.034970469772815704,
-0.10516014695167542,
-0.09066250175237656,
0.0033811910543590784,
-0.12163494527339935,
-0.07185322046279907,
0.0007043593213893473,
0.004147501662373543,
-0.05167171731591225,
0.1256381869316101,
0.1015021875500679,
0.07086453586816788,
0.040427304804325104,
-0.02796856127679348,
-0.14222998917102814,
-0.06510397791862488,
0.0526861846446991,
0.11577793955802917,
0.009135044179856777,
-0.015979936346411705,
0.1159922331571579,
-0.11295200139284134,
-0.03316698223352432,
0.03967255726456642,
0.03373844176530838,
0.02745264582335949,
0.031217604875564575,
-0.2011195719242096,
0.18477042019367218,
0.05958615615963936,
-0.1369515359401703,
-0.11189758777618408,
0.055370599031448364,
0.028901392593979836,
0.16027390956878662,
-0.21775831282138824,
0.00825098343193531,
0.013991040177643299,
0.1884785145521164,
0.03244046866893768,
0.05641836300492287,
0.09905292093753815,
0.04199011251330376,
0.1800326257944107,
-0.13721376657485962,
0.1506263017654419,
0.15033139288425446,
0.14716017246246338,
-0.07178999483585358,
0.030574467033147812,
-0.018559018149971962,
0.04314260184764862,
-0.0025978984776884317,
0.05465561896562576,
-0.001338048605248332,
0.05679749697446823,
0.008718297816812992,
-0.1342189460992813,
0.07354018837213516,
0.12635141611099243,
0.042946707457304,
0.05303546041250229,
0.054264504462480545,
-0.1743393987417221,
0.11731535941362381,
0.07389993965625763,
-0.08234620094299316,
-0.019501661881804466,
0.0931626632809639,
0.10923672467470169,
-0.03949666768312454,
0.0703945979475975,
-0.11797519773244858,
0.15031246840953827,
-0.10944980382919312,
0.06409603357315063,
0.2956523895263672,
-0.1398639976978302,
-0.1628044992685318,
0.030790815129876137,
0.002141930628567934,
-0.013065318576991558,
0.08271492272615433,
0.10566560178995132,
-0.1705790013074875,
0.011529328301548958,
0.010410747490823269,
-0.06571806967258453,
0.13856351375579834,
-0.10313555598258972,
0.07763718068599701,
0.09077440202236176,
-0.028996555134654045,
-0.052065107971429825,
0.02507067658007145,
-0.006566314958035946,
7.172621394602174e-7,
-0.11914432048797607,
-0.10860788077116013,
0.15767677128314972,
0.026283947750926018,
-0.042140405625104904,
0.08133558928966522,
-0.13798724114894867,
-0.10725604742765427,
-0.20069873332977295,
0.07409322261810303,
-0.008135843090713024,
-0.12107973545789719,
0.07357490807771683,
0.10921581089496613,
-0.017395909875631332,
0.04159604385495186,
-0.007653124630451202,
0.01908263936638832,
-0.10291045159101486,
0.09526149183511734,
0.11604538559913635,
0.13497097790241241,
0.0606238879263401,
-0.2843407392501831,
-0.14621959626674652,
-0.032335758209228516,
-0.034597571939229965,
-0.012393180280923843,
0.02873273380100727,
0.019897621124982834,
-0.08144455403089523,
0.028276603668928146,
-0.02752115949988365,
-0.293018639087677,
-0.055537670850753784,
-0.10984202474355698,
-0.025605415925383568,
0.05502370744943619,
0.07639273256063461,
-0.13850760459899902,
-0.06890341639518738,
-0.001159715699031949,
-0.09272309392690659,
0.08501577377319336,
0.01256916020065546,
-0.12328500300645828,
0.06616273522377014,
0.041309382766485214,
-0.1992577612400055,
-0.05731159448623657,
0.029068099334836006,
0.06131596863269806,
-0.011421884410083294,
0.20446021854877472,
-0.11003826558589935,
-0.09947415441274643,
-0.09087570011615753,
-0.016635114327073097,
-0.03492431715130806,
0.1028326079249382,
-0.1352718323469162,
0.1301095187664032,
0.15910518169403076,
0.16242949664592743,
0.09384785592556,
-0.03259339928627014,
0.21570007503032684,
8.875592193799945e-36,
0.0930074080824852,
0.05623788759112358,
0.04811004176735878,
0.042557042092084885,
-0.04087140038609505,
0.114309161901474,
0.019495226442813873,
0.14829280972480774,
0.05684219300746918,
0.09560322761535645,
-0.01363767683506012
] |
https://github.com/huggingface/datasets/issues/2480 | Set download/extracted paths configurable | For example to be able to send uncompressed and temp build files to another volume/partition, so that the user gets the minimal disk usage on their primary setup - and ends up with just the downloaded compressed data + arrow files, but outsourcing the huge files and building to another partition. e.g. on JZ there is a special partition for fast data, but it's also volatile, so only temp files should go there.
Think of it as `TMPDIR` so we need the equivalent for `datasets`. | As discussed with @stas00 and @lhoestq, setting these paths configurable may allow to overcome disk space limitation on different partitions/drives.
TODO:
- [x] Set configurable extracted datasets path: #2487
- [x] Set configurable downloaded datasets path: #2488
- [ ] Set configurable "incomplete" datasets path? | 85 | Set download/extracted paths configurable
As discussed with @stas00 and @lhoestq, setting these paths configurable may allow to overcome disk space limitation on different partitions/drives.
TODO:
- [x] Set configurable extracted datasets path: #2487
- [x] Set configurable downloaded datasets path: #2488
- [ ] Set configurable "incomplete" datasets path?
For example to be able to send uncompressed and temp build files to another volume/partition, so that the user gets the minimal disk usage on their primary setup - and ends up with just the downloaded compressed data + arrow files, but outsourcing the huge files and building to another partition. e.g. on JZ there is a special partition for fast data, but it's also volatile, so only temp files should go there.
Think of it as `TMPDIR` so we need the equivalent for `datasets`. | [
-0.029087215662002563,
0.30038636922836304,
-0.1208796352148056,
0.07634095102548599,
0.040422458201646805,
0.02458752691745758,
0.027296246960759163,
-0.07403911650180817,
-0.16750067472457886,
0.1498076170682907,
-0.16870765388011932,
0.13016584515571594,
-0.10979639738798141,
-0.0566895566880703,
0.09315308183431625,
-0.09964130073785782,
-0.08046174794435501,
0.07394181936979294,
-0.12748968601226807,
-0.04376073181629181,
0.026483401656150818,
0.10350281000137329,
0.23649954795837402,
0.03490009903907776,
0.171953946352005,
0.031027285382151604,
-0.06540607661008835,
0.0779540091753006,
-0.1318940818309784,
-0.050890594720840454,
0.27599644660949707,
0.12563857436180115,
0.10005632042884827,
0.12746891379356384,
0.000005362463070923695,
0.052591472864151,
0.02089127153158188,
-0.06490655988454819,
-0.1455131471157074,
-0.057516537606716156,
-0.007137581240385771,
-0.11867504566907883,
0.14955228567123413,
-0.016815422102808952,
0.07033456861972809,
-0.08261919766664505,
0.037526313215494156,
-0.21805396676063538,
-0.0698651447892189,
-0.11036335676908493,
0.008833980187773705,
0.006549551617354155,
-0.084816575050354,
-0.09095926582813263,
0.06247579678893089,
0.16698956489562988,
0.059407882392406464,
0.13476528227329254,
-0.10288145393133163,
-0.019985292106866837,
0.03844481706619263,
-0.023300237953662872,
0.11569715291261673,
0.20571160316467285,
0.008979343809187412,
0.056500960141420364,
-0.11036904901266098,
-0.23182667791843414,
0.05744175612926483,
0.15544602274894714,
0.23599262535572052,
-0.20030443370342255,
-0.11866828054189682,
0.027799615636467934,
0.017997007817029953,
-0.10147706419229507,
0.030880412086844444,
0.12389037013053894,
-0.07649452239274979,
-0.064227394759655,
-0.19789965450763702,
-0.04984406754374504,
-0.05764148384332657,
0.11282835155725479,
-0.17670167982578278,
-0.05326993390917778,
-0.036802925169467926,
0.020736578851938248,
0.03266359120607376,
0.01720542460680008,
0.12192773818969727,
-0.06736601144075394,
-0.009696707129478455,
0.019337933510541916,
0.1251482367515564,
0.058594029396772385,
-0.07395526021718979,
-0.062300052493810654,
0.05177905410528183,
0.009797404520213604,
0.17635242640972137,
0.02927258238196373,
-0.08402404189109802,
0.029805181547999382,
0.06311504542827606,
-0.12965570390224457,
-0.04372808709740639,
-0.07354007661342621,
0.12694144248962402,
-0.0797642394900322,
0.1355365663766861,
0.019109392538666725,
-0.09520646184682846,
-0.04470006376504898,
-0.1800127774477005,
0.10586552321910858,
0.07625546306371689,
0.2189675271511078,
-0.08306092023849487,
-0.2917674779891968,
0.1260543018579483,
0.1839563548564911,
-0.1842411309480667,
0.001001762691885233,
0.08247688412666321,
-0.1374727338552475,
-0.21293433010578156,
0.07667306810617447,
-0.12417597323656082,
-0.0007025056984275579,
0.023686818778514862,
0.05329699441790581,
0.17950500547885895,
0.005590181797742844,
0.1904979795217514,
0.075154609978199,
0.10451870411634445,
-0.26505225896835327,
-0.04543400928378105,
-0.15013545751571655,
0.28242912888526917,
0.009838337078690529,
-0.0890212133526802,
-0.061459582298994064,
0.08697938174009323,
0.09771016985177994,
-0.07224141061306,
0.07920348644256592,
-0.15741097927093506,
0.19024579226970673,
-0.0143416253849864,
0.029244624078273773,
0.01182345487177372,
-0.023045867681503296,
-0.06523127108812332,
0.053061407059431076,
-0.06355829536914825,
-0.061014268547296524,
-0.16310666501522064,
-0.007601159159094095,
0.022434620186686516,
0.03812289983034134,
0.04591788724064827,
-0.04544081166386604,
0.22543670237064362,
0.12427916377782822,
-0.09640458226203918,
0.12908785045146942,
0.021334651857614517,
-0.14159950613975525,
0.1253657341003418,
-0.1050400659441948,
-0.018208902329206467,
-0.01195752527564764,
-0.18963100016117096,
0.19224169850349426,
0.24134591221809387,
0.009702373296022415,
-0.06953538954257965,
-0.0113786980509758,
0.12315073609352112,
-0.03757373243570328,
0.1440112143754959,
0.005020694341510534,
0.1291363537311554,
-0.012314768508076668,
-0.18049481511116028,
0.2959352433681488,
0.0993536040186882,
0.028365539386868477,
-0.14172150194644928,
-0.13518694043159485,
0.09989934414625168,
0.09040410071611404,
-0.24461273849010468,
-0.04056708142161369,
0.026505189016461372,
-0.08359716087579727,
0.11766564846038818,
0.002090239431709051,
0.030945252627134323,
-0.06560750305652618,
-0.19677266478538513,
-0.08851747214794159,
-0.03457802161574364,
0.07001981139183044,
-0.11022602021694183,
0.11911823600530624,
0.024061832576990128,
-0.2755816876888275,
-0.19059884548187256,
-0.009819481521844864,
-0.02374853566288948,
-0.1207243949174881,
-0.17590101063251495,
0.017589805647730827,
-0.12689420580863953,
0.11956778168678284,
0.022485533729195595,
0.037624675780534744,
0.012592840939760208,
0.20204943418502808,
0.2394094467163086,
0.03433225303888321,
0.07183852046728134,
0.13853180408477783,
0.15486043691635132,
-0.07658688724040985,
0.13847048580646515,
-0.016838451847434044,
-0.1449662148952484,
-0.19140352308750153,
0.018209628760814667,
0.12553861737251282,
-0.04204726219177246,
0.08948923647403717,
0.1551436334848404,
-0.027615005150437355,
0.05811154097318649,
-0.10699497163295746,
0.04143892973661423,
0.027168385684490204,
-0.12115852534770966,
0.19104786217212677,
-0.07093667984008789,
-0.08838677406311035,
-0.10654469579458237,
-0.05067579820752144,
-0.054601915180683136,
-0.07791168987751007,
0.15075764060020447,
-0.06475848704576492,
-0.10457094758749008,
0.10936185717582703,
-0.031329356133937836,
0.16570007801055908,
0.055479247123003006,
0.11736202985048294,
0.10806281864643097,
0.17479947209358215,
0.14857880771160126,
0.11012392491102219,
-0.07864662259817123,
0.23271115124225616,
0.15057018399238586,
-0.015409407205879688,
0.017120879143476486,
0.2923316955566406,
-0.14362752437591553,
0.020909901708364487,
0.048406921327114105,
0.03678726404905319,
-0.03298766538500786,
-0.03495820611715317,
0.13693423569202423,
-0.11124694347381592,
-0.04125066101551056,
0.1387956142425537,
0.014692955650389194,
0.010452094487845898,
-0.1320323646068573,
0.11676421761512756,
0.05478808283805847,
-0.1786464899778366,
0.12535956501960754,
-0.08261940628290176,
-0.1612234264612198,
-0.10406005382537842,
-0.07344243675470352,
-0.14687174558639526,
0.03962838649749756,
-0.06481385231018066,
0.18495306372642517,
-0.05963980406522751,
-0.07960765063762665,
-0.1460939645767212,
-0.06749789416790009,
-0.048325344920158386,
-0.1407502144575119,
0.007512522861361504,
-0.07480611652135849,
0.024009257555007935,
-0.025309722870588303,
-0.08370066434144974,
0.01708837039768696,
0.05231597274541855,
0.0706581398844719,
-0.06625160574913025,
0.06256784498691559,
-0.31633612513542175,
0.049016207456588745,
0.014520475640892982,
0.22983615100383759,
0.02667967975139618,
-0.1655501276254654,
-0.046912599354982376,
-0.03149056062102318,
-0.060504745692014694,
-0.031264547258615494,
-0.0052351378835737705,
-0.009388846345245838,
-0.04076850786805153,
0.05732542276382446,
0.21599532663822174,
0.005224478431046009,
-0.08141586184501648,
-0.11268479377031326,
-0.2180287390947342,
-0.006781575735658407,
-0.04163666069507599,
0.13039955496788025,
-0.08403673768043518,
0.12426632642745972,
-0.1361689567565918,
0.03688906133174896,
-0.025741202756762505,
-0.039767153561115265,
-0.13038256764411926,
0.25500816106796265,
-0.11430753767490387,
0.20996864140033722,
0.018751922994852066,
0.006807663477957249,
0.07255869358778,
0.12454269081354141,
-0.13217362761497498,
0.19083724915981293,
-0.11226077377796173,
0.11925501376390457,
-0.047003064304590225,
0.14691567420959473,
-0.008124357089400291,
-0.02754024788737297,
-0.1065586656332016,
-0.09942961484193802,
0.009536929428577423,
0.08129482716321945,
0.23006756603717804,
-0.04320325702428818,
0.0941375344991684,
-0.16965746879577637,
0.08153203874826431,
0.09520663321018219,
-0.09992315620183945,
-0.04715694114565849,
-0.004752871580421925,
0.3540639579296112,
0.20723329484462738,
0.06425542384386063,
0.1376713365316391,
-0.03916613757610321,
-0.15289796888828278,
-0.043037865310907364,
-0.08471682667732239,
0.026577871292829514,
0.05187492072582245,
0.04565467685461044,
0.054800499230623245,
0.08310697972774506,
-0.10054906457662582,
0.1713770478963852,
-0.11929018795490265,
-0.08640021085739136,
0.04178636148571968,
0.13502813875675201,
-0.18550005555152893,
-0.03817011043429375,
-0.004875053185969591,
-0.08079171925783157,
0.15372851490974426,
0.12745030224323273,
0.11066768318414688,
0.042250245809555054,
0.025339342653751373,
0.08107685297727585,
-0.04871343448758125,
-0.09909973293542862,
0.08897655457258224,
0.03953633829951286,
0.06049985811114311,
0.1175883561372757,
0.03468405455350876,
0.032019004225730896,
-0.10235952585935593,
0.03464847058057785,
-0.01581851951777935,
-0.14786235988140106,
-0.14424313604831696,
0.1539015918970108,
0.019463637843728065,
-0.03897242248058319,
0.017064526677131653,
-0.12856891751289368,
0.009862851351499557,
-0.08462703973054886,
0.06031446531414986,
0.11535762995481491,
-0.04453715309500694,
0.055006153881549835,
-0.20628418028354645,
-0.18450044095516205,
-0.10076241195201874,
0.06538201123476028,
-0.1266409456729889,
0.0914713516831398,
-0.1416281908750534,
-0.07598187774419785,
-0.02322446182370186,
0.06263092160224915,
-0.11130131036043167,
0.12620404362678528,
0.06689126789569855,
0.10355626046657562,
-0.02232292853295803,
0.028544021770358086,
0.1306983083486557,
0.1529766321182251,
-0.23413193225860596,
-0.1313324272632599,
-0.04899696260690689,
-0.29664477705955505,
-0.03699903190135956,
0.2749686539173126,
-0.020482728257775307,
-0.18704743683338165,
-0.05277825519442558,
0.06874363869428635,
-0.02748567797243595,
0.07380984723567963,
-0.02713262289762497,
-0.16056334972381592,
-0.018242087215185165,
-0.11883459985256195,
-0.014305014163255692,
-0.09716280549764633,
-0.02781316451728344,
0.21244105696678162,
-0.049475133419036865,
-0.0485331229865551,
0.03331505507230759,
0.009428736753761768,
-0.10723171383142471,
0.10313909500837326,
0.028631098568439484,
-0.28390851616859436,
0.1028110682964325,
0.25707969069480896,
-0.19231095910072327,
-0.09550213813781738,
0.08253143727779388,
0.08189491182565689,
0.05381248891353607,
-0.0801360011100769,
-0.025682922452688217,
0.24273203313350677,
0.09841858595609665,
0.003017546609044075,
-0.1751476228237152,
-0.07097557187080383,
-0.027981212362647057,
0.14922261238098145,
-0.014405396766960621,
0.0001489698188379407,
-0.08595669269561768,
-0.007632911670953035,
0.10406919568777084,
0.11007693409919739,
0.11477476358413696,
-0.0819384828209877,
0.08933486044406891,
-0.0006245308904908597,
-0.06825368106365204,
-0.05987166985869408,
-0.11667189747095108,
0.10095207393169403,
-0.19518810510635376,
-0.09085050970315933,
-0.02606465294957161,
0.008788203820586205,
0.1578286737203598,
-0.0898745208978653,
0.013647875748574734,
0.02156265825033188,
-0.0843457579612732,
-0.017002301290631294,
-0.08080752938985825,
0.009516561403870583,
-0.1058909073472023,
0.08890757709741592,
0.03924616053700447,
-0.09538024663925171,
-0.062083326280117035,
0.039124663919210434,
0.14609487354755402,
-0.10737519711256027,
-0.09862988442182541,
0.03312082216143608,
0.08572065085172653,
-0.12143803387880325,
-0.03723718971014023,
-0.0661919116973877,
-0.03399476781487465,
-0.037274569272994995,
-0.014768161810934544,
-0.03990369662642479,
-0.12261936813592911,
-0.09600893408060074,
-0.10120860487222672,
-0.16270558536052704,
-0.09779178351163864,
-0.0431014783680439,
0.1766558140516281,
-0.20341892540454865,
-0.14166754484176636,
-0.039559293538331985,
-0.04051024094223976,
-0.05206470191478729,
0.016791576519608498,
0.07843662053346634,
-0.041654545813798904,
0.015605798922479153,
-0.28154048323631287,
-0.07854634523391724,
0.07688380777835846,
0.05903114005923271,
-0.19325800240039825,
-0.0003044087497983128,
-0.15526512265205383,
-0.0019719505216926336,
-0.05950862169265747,
0.16376104950904846,
0.030009636655449867,
0.1589609533548355,
0.05966699868440628,
-0.07892632484436035,
-2.530995971942632e-32,
0.21332572400569916,
0.19637134671211243,
-0.05137566477060318,
-0.00416910694912076,
0.018754148855805397,
0.004298479296267033,
0.08915135264396667,
-0.1905408650636673,
-0.01258331723511219,
-0.13987621665000916,
0.03951313719153404,
0.042100321501493454,
0.040405917912721634,
0.05887163430452347,
-0.05161284655332565,
0.09143432229757309,
-0.10680069774389267,
-0.07577882707118988,
-0.04416195675730705,
0.00596522307023406,
0.17181704938411713,
-0.08044986426830292,
0.10704340040683746,
-0.0638669952750206,
-0.07849567383527756,
-0.07023143023252487,
-0.08872997015714645,
0.08349213749170303,
0.16024604439735413,
0.08946235477924347,
0.08482629805803299,
0.03500397130846977,
-0.06504365056753159,
-0.25609368085861206,
-0.13719157874584198,
-0.07982856035232544,
-0.25302430987358093,
-0.12446430325508118,
-0.09788630902767181,
-0.0380425788462162,
-0.12106367200613022,
-0.07473310083150864,
0.08747059851884842,
0.10699187219142914,
-0.055648889392614365,
0.11609835177659988,
-0.1340334415435791,
0.16233286261558533,
0.08876900374889374,
-0.0683157816529274,
-0.1800219863653183,
-0.027429750189185143,
0.08889655768871307,
0.13680225610733032,
0.18461987376213074,
0.06275010108947754,
-0.03687261417508125,
0.03426995128393173,
0.020431647077202797,
-0.044044770300388336,
0.10178659111261368,
-0.04107416421175003,
0.20551371574401855,
0.03272533789277077,
0.2376805692911148,
-0.009015140123665333,
0.131581112742424,
-0.1086314469575882,
0.08302468806505203,
0.0888596922159195,
0.01807280257344246,
0.006636644713580608,
-0.02707694284617901,
0.0009458892745897174,
-0.05938810110092163,
-0.06699013710021973,
-0.022498439997434616,
-0.06966833025217056,
0.014934449456632137,
-0.05781634524464607,
-0.025219770148396492,
-0.1000407338142395,
0.10574469715356827,
0.042230166494846344,
0.009408898651599884,
0.06126723438501358,
-0.05231866240501404,
0.0795312374830246,
-0.006084086373448372,
-0.06289005279541016,
-0.043792616575956345,
-0.00418337807059288,
0.05884861573576927,
-0.05993643030524254,
-0.006569774355739355,
0.20504337549209595,
-0.022917233407497406,
-0.06524094194173813,
0.07516973465681076,
0.03028099425137043,
-0.08094805479049683,
-0.031375035643577576,
0.10211043059825897,
-0.05648167058825493,
-0.054488275200128555,
0.05609946325421333,
0.11586568504571915,
-0.008957778103649616,
-0.09371373057365417,
0.050483424216508865,
-0.14459143579006195,
0.061417896300554276,
0.005156196653842926,
-0.18291039764881134,
0.2655057907104492,
0.13969525694847107,
-0.046864863485097885,
-0.1327667385339737,
0.040403589606285095,
-0.005175972357392311,
-0.11795489490032196,
-0.017644960433244705,
-0.03147684782743454,
-0.010330005548894405,
0.2721465229988098,
-0.0595976822078228,
0.01454372052103281,
-0.15775181353092194,
-0.0006687744753435254,
-0.060582682490348816,
-0.006831700913608074,
-0.07645659148693085,
7.263836891979736e-7,
-0.08321167528629303,
0.10262276232242584,
-0.043189533054828644,
0.05107147619128227,
-0.11067461222410202,
-0.06425539404153824,
-0.03396829590201378,
0.06484728306531906,
-0.06968335807323456,
-0.01743113435804844,
0.06175661087036133,
0.009651669301092625,
-0.09671783447265625,
0.06182006374001503,
0.0052400133572518826,
0.12630818784236908,
-0.03875773400068283,
0.17577973008155823,
-0.047255370765924454,
0.04831796884536743,
0.14600588381290436,
0.17434485256671906,
-0.12899644672870636,
0.005366503726691008,
0.021724244579672813,
-0.015503814443945885,
-0.0879436731338501,
0.10085925459861755,
0.09928535670042038,
0.12584726512432098,
0.046843111515045166,
-0.06384456157684326,
-0.02513520047068596,
-0.09028004854917526,
0.04555084928870201,
-0.06405339390039444,
-0.17106376588344574,
-0.01606636308133602,
-0.04347607493400574,
-0.15394757688045502,
0.04962550848722458,
0.07513200491666794,
-0.13660986721515656,
0.19604302942752838,
0.04440799355506897,
-0.12251206487417221,
-0.08752734959125519,
0.07801921665668488,
0.04597362130880356,
-0.04435558244585991,
0.02362571842968464,
-0.04545962065458298,
0.10015404224395752,
0.025113476440310478,
-0.13082651793956757,
0.005217387340962887,
-0.09760254621505737,
-0.03728296607732773,
0.1992054283618927,
0.13894611597061157,
-0.024350546300411224,
-0.09031488746404648,
-0.09453203529119492,
-0.033789582550525665,
0.23421551287174225,
0.09461816400289536,
0.12760552763938904,
9.195645498586831e-35,
-0.014041464775800705,
-0.04607851058244705,
0.013776300475001335,
-0.06576428562402725,
0.0759466364979744,
-0.0373489148914814,
0.1079200878739357,
0.07076560705900192,
0.0673089474439621,
-0.03424106910824776,
-0.12621599435806274
] |
https://github.com/huggingface/datasets/issues/2478 | Create release script | I've aligned the release script with Transformers in #6004, so I think this issue can be closed. | Create a script so that releases can be done automatically (as done in `transformers`). | 17 | Create release script
Create a script so that releases can be done automatically (as done in `transformers`).
I've aligned the release script with Transformers in #6004, so I think this issue can be closed. | [
-0.0006573394639417529,
0.19185619056224823,
-0.027309462428092957,
-0.16319356858730316,
0.12173794209957123,
-0.15105584263801575,
-0.016469448804855347,
-0.13191504776477814,
-0.20425696671009064,
0.039657242596149445,
0.08383581787347794,
0.19532644748687744,
-0.10681940615177155,
0.1335047334432602,
-0.0515773743391037,
0.09391545504331589,
-0.04621797427535057,
0.037584830075502396,
-0.1766618937253952,
0.01405780017375946,
-0.07972759008407593,
0.1652410626411438,
0.10708318650722504,
0.06403464078903198,
-0.01936318725347519,
-0.004600390326231718,
0.023518811911344528,
-0.10727810859680176,
-0.01828288845717907,
-0.0057610138319432735,
0.02231612242758274,
0.013626069761812687,
0.1044393926858902,
0.08359842002391815,
0.000005866264473297633,
0.02365860901772976,
0.16530844569206238,
0.12671560049057007,
-0.13054262101650238,
-0.022920086979866028,
-0.059536609798669815,
-0.22680069506168365,
-0.08089345693588257,
0.12293917685747147,
0.022138521075248718,
0.0011278822785243392,
-0.004955361597239971,
0.053330548107624054,
0.19000273942947388,
-0.03305163234472275,
0.05651677027344704,
0.045924581587314606,
-0.13343445956707,
-0.1664157509803772,
0.038981836289167404,
-0.030080078169703484,
-0.08061099797487259,
-0.22020134329795837,
-0.08961032330989838,
-0.08406278491020203,
-0.015337483957409859,
0.06090480834245682,
0.02569848857820034,
-0.06982901692390442,
-0.024665892124176025,
0.09145396947860718,
-0.025002392008900642,
-0.34905722737312317,
0.027161335572600365,
0.010874132625758648,
0.15100163221359253,
-0.02338085137307644,
-0.13567529618740082,
0.11663069576025009,
0.007687061093747616,
0.018102308735251427,
0.08016564697027206,
0.03943018615245819,
-0.009297067299485207,
-0.05711017921566963,
-0.19015277922153473,
-0.07111804932355881,
-0.039049502462148666,
-0.1263234168291092,
-0.1391090601682663,
0.14890144765377045,
0.0014620687579736114,
0.043776366859674454,
0.0526343397796154,
-0.0916183590888977,
0.14556531608104706,
-0.04772794991731644,
-0.2267906665802002,
0.060671329498291016,
-0.020110901445150375,
-0.09511545300483704,
0.05190729349851608,
0.07603812962770462,
-0.022525323554873466,
0.0595526322722435,
-0.09439767152070999,
-0.07478216290473938,
-0.025713074952363968,
-0.09250779449939728,
0.057545650750398636,
0.07028590142726898,
0.09568173438310623,
0.14518843591213226,
0.03458844870328903,
0.14718106389045715,
0.02422390505671501,
0.13228967785835266,
-0.057632721960544586,
-0.11193878948688507,
0.1398128718137741,
0.09558865427970886,
0.045112740248441696,
0.16224540770053864,
-0.002381230005994439,
0.07591597735881805,
0.2617133557796478,
-0.0012840005801990628,
-0.3594222366809845,
0.07897772639989853,
0.06778797507286072,
0.009306042455136776,
-0.022288348525762558,
0.008370749652385712,
-0.07813864946365356,
0.11065222322940826,
-0.030996808782219887,
0.03124728612601757,
-0.08112766593694687,
0.05440395697951317,
-0.01659150794148445,
0.23452968895435333,
-0.07165326178073883,
-0.12090560048818588,
0.12614139914512634,
-0.030215086415410042,
0.10080491006374359,
-0.06219872459769249,
-0.10293585062026978,
0.0215332992374897,
-0.03363576531410217,
0.09508110582828522,
-0.026629911735653877,
0.12510114908218384,
-0.03681178390979767,
0.05860971286892891,
0.09354757517576218,
0.1192665845155716,
0.00023075705394148827,
0.047599345445632935,
-0.016542932018637657,
0.05719047412276268,
0.11340119689702988,
-0.11645174771547318,
-0.025167176499962807,
0.04945286735892296,
0.0013027264503762126,
0.029784008860588074,
0.23933979868888855,
0.026476634666323662,
-0.05582711473107338,
0.0874834805727005,
0.21374155580997467,
-0.048501238226890564,
-0.016552144661545753,
-0.0874071940779686,
0.0676257461309433,
-0.14926618337631226,
0.13901549577713013,
0.011372615583240986,
-0.085563525557518,
-0.08389779925346375,
-0.09595905989408493,
-0.03485170751810074,
-0.16533096134662628,
0.13869506120681763,
-0.1920050084590912,
-0.11579063534736633,
-0.03771635890007019,
-0.04991746321320534,
0.29927298426628113,
-0.02053479291498661,
-0.38038450479507446,
0.27030983567237854,
-0.014442015439271927,
0.12180164456367493,
-0.04926571995019913,
-0.1736317127943039,
-0.06411882489919662,
0.08259440213441849,
-0.037807539105415344,
0.08962811529636383,
0.07935641705989838,
0.29135531187057495,
0.07072041183710098,
-0.08581361174583435,
0.0021793765481561422,
-0.13727210462093353,
-0.06962809711694717,
-0.16632452607154846,
0.005448911804705858,
0.02708275243639946,
-0.112571120262146,
0.07787507772445679,
-0.18307197093963623,
0.10684725642204285,
-0.20537705719470978,
-0.06530527025461197,
-0.12649613618850708,
-0.03016308695077896,
-0.02856970950961113,
-0.04145308956503868,
0.028750143945217133,
0.08193345367908478,
-0.05084759369492531,
-0.10710324347019196,
-0.02130601927638054,
-0.00762593187391758,
0.2958570420742035,
0.07436168938875198,
0.035523924976587296,
0.002941158367320895,
-0.03807857632637024,
-0.08883870393037796,
0.047688957303762436,
-0.12733113765716553,
-0.11199500411748886,
-0.09233029931783676,
0.09260419756174088,
0.09881513565778732,
-0.08743031322956085,
0.15664665400981903,
0.0530872717499733,
0.09566526114940643,
0.08487972617149353,
-0.06217135861515999,
-0.03227173909544945,
0.14168335497379303,
-0.20228226482868195,
0.1923162341117859,
0.13120318949222565,
0.006213379092514515,
-0.042720433324575424,
0.016172636300325394,
0.08565259724855423,
0.0163347739726305,
0.16086411476135254,
-0.08164416998624802,
-0.173008531332016,
-0.09936098009347916,
-0.20942410826683044,
-0.1397482454776764,
-0.09911599010229111,
0.031551528722047806,
0.21711793541908264,
0.04290536418557167,
0.169191375374794,
-0.10818375647068024,
0.06474308669567108,
0.13845081627368927,
0.12397122383117676,
0.12868033349514008,
-0.13289481401443481,
0.1096615344285965,
-0.0301213338971138,
0.08459345996379852,
-0.035902515053749084,
-0.06798044592142105,
0.11346111446619034,
-0.030933735892176628,
-0.006843660958111286,
-0.020928744226694107,
0.14427253603935242,
0.10171622782945633,
-0.12809021770954132,
-0.10080155730247498,
-0.11763422936201096,
-0.05744202807545662,
0.025926262140274048,
-0.06380093842744827,
0.0854753702878952,
-0.052337922155857086,
0.016190459951758385,
0.06602424383163452,
-0.2586083710193634,
-0.005154942162334919,
-0.021103600040078163,
-0.020200029015541077,
-0.005165676586329937,
-0.17285506427288055,
-0.08795300871133804,
0.1655358374118805,
-0.13691668212413788,
-0.22537250816822052,
-0.0968029797077179,
0.00482405349612236,
0.049410078674554825,
0.06624609231948853,
0.07386807352304459,
-0.09652400016784668,
-0.06604140251874924,
-0.3305577337741852,
-0.07255718857049942,
0.03284228593111038,
-0.04794475436210632,
-0.07970820367336273,
0.003646628698334098,
0.0012114281998947263,
0.0023379300255328417,
-0.12404229491949081,
-0.03598734736442566,
-0.02165670320391655,
0.1670825332403183,
-0.014746957458555698,
-0.11325722187757492,
-0.09674675017595291,
0.011950352229177952,
-0.14147470891475677,
0.04895969107747078,
0.11581519991159439,
-0.018662571907043457,
-0.1006574034690857,
-0.026961488649249077,
-0.16587594151496887,
-0.1257409155368805,
-0.010955266654491425,
-0.05977223441004753,
0.07319442927837372,
-0.04040328040719032,
-0.1029023826122284,
0.13345424830913544,
-0.1015673279762268,
0.07858007401227951,
0.28455883264541626,
-0.016534289345145226,
-0.014414038509130478,
0.07414371520280838,
-0.005921301431953907,
-0.2049979567527771,
-0.06567401438951492,
-0.061929479241371155,
-0.07362683117389679,
0.1952810138463974,
-0.08394969999790192,
-0.15243981778621674,
-0.15263016521930695,
0.03920762240886688,
0.10080979764461517,
0.21019166707992554,
-0.10864853858947754,
-0.1582707017660141,
0.06516195833683014,
-0.09700462222099304,
0.17347678542137146,
-0.10611468553543091,
-0.08172451704740524,
0.0042411452159285545,
0.026278674602508545,
0.19530807435512543,
0.1539003998041153,
-0.029946323484182358,
-0.05218119919300079,
0.1280408501625061,
-0.006437037605792284,
0.06001969426870346,
0.036127325147390366,
-0.1296645998954773,
0.06433788686990738,
-0.09524393081665039,
0.18910035490989685,
-0.012414206750690937,
-0.0076132467947900295,
0.056064825505018234,
0.16889631748199463,
0.1519373655319214,
-0.04293311387300491,
0.14091214537620544,
-0.09407248347997665,
0.02090529538691044,
0.048533931374549866,
0.040994785726070404,
0.07769189774990082,
0.08710695803165436,
-0.0251065231859684,
-0.10314945131540298,
0.06856921315193176,
-0.13328054547309875,
-0.015218342654407024,
0.259087473154068,
-0.025033380836248398,
0.05953403562307358,
-0.10614920407533646,
-0.12992294132709503,
-0.012923956848680973,
-0.060067929327487946,
0.005585083272308111,
0.057001251727342606,
0.09671825170516968,
-0.05679721012711525,
0.09705469757318497,
-0.008152096532285213,
-0.06449969857931137,
0.12286362797021866,
-0.0559781938791275,
-0.012778454460203648,
-0.005692583974450827,
0.0005598824354819953,
0.005589237902313471,
-0.06811068207025528,
0.18046025931835175,
0.12793128192424774,
-0.14511701464653015,
-0.02754015102982521,
-0.09914054721593857,
0.044216588139534,
-0.17359083890914917,
-0.08692470192909241,
-0.04146067798137665,
0.10597523301839828,
-0.0663653314113617,
-0.11595277488231659,
-0.038422197103500366,
0.03477434441447258,
-0.07327023148536682,
-0.03419627249240875,
-0.1885378509759903,
-0.024257183074951172,
0.20904408395290375,
0.01470036618411541,
0.031007755547761917,
0.10126905888319016,
-0.08950667083263397,
0.15738876163959503,
-0.22453118860721588,
-0.24279741942882538,
-0.010998990386724472,
-0.06866106390953064,
-0.07280144840478897,
0.04615730792284012,
0.045634739100933075,
-0.25076186656951904,
0.12987644970417023,
0.011570832692086697,
-0.03520200774073601,
-0.013293392956256866,
-0.026657572016119957,
-0.09728657454252243,
-0.2236260026693344,
-0.10028775036334991,
-0.000982786761596799,
0.07530512660741806,
0.018373753875494003,
0.0926145389676094,
-0.010926018469035625,
-0.09853789955377579,
0.26952341198921204,
-0.03031773865222931,
-0.02710425667464733,
-0.08301667124032974,
-0.13349631428718567,
-0.028125545009970665,
0.1418951451778412,
0.36067822575569153,
0.007268701680004597,
0.06926165521144867,
-0.0797630175948143,
-0.11679113656282425,
-0.05394028127193451,
-0.05766286328434944,
0.015902839601039886,
0.28688377141952515,
-0.08655350655317307,
0.048625338822603226,
-0.12213577330112457,
-0.10589709132909775,
0.011993934400379658,
0.02269027568399906,
-0.008394083008170128,
-0.06528963893651962,
0.20575030148029327,
0.0005180903244763613,
-0.05807064101099968,
0.07720935344696045,
-0.06277129799127579,
0.050273723900318146,
0.01928008906543255,
-0.004713170696049929,
-0.15473982691764832,
0.1154652088880539,
0.13385669887065887,
0.07091866433620453,
0.11641322821378708,
0.1244417130947113,
-0.028572583571076393,
0.0192856565117836,
0.03555632382631302,
-0.009497137740254402,
0.012779991142451763,
0.0728994682431221,
-0.010253729298710823,
-0.027538210153579712,
-0.012158201076090336,
0.21316935122013092,
0.09302853047847748,
0.09401482343673706,
-0.057940609753131866,
0.004903783090412617,
-0.05949599668383598,
0.05127633735537529,
-0.019480712711811066,
-0.1006036177277565,
-0.10954196006059647,
-0.02357705496251583,
0.02975812368094921,
-0.031130166724324226,
-0.04123735800385475,
0.055464792996644974,
-0.019819190725684166,
-0.043414339423179626,
0.007264113053679466,
0.07046515494585037,
0.021702932193875313,
-0.05206166207790375,
0.07503620535135269,
-0.09411664307117462,
0.003669353434816003,
0.026977593079209328,
-0.05917000770568848,
0.020928720012307167,
-0.047076448798179626,
-0.14393824338912964,
-0.11188926547765732,
-0.1408974975347519,
-0.29952481389045715,
0.1028541773557663,
0.026119984686374664,
-0.08468320965766907,
-0.10631229728460312,
0.19651992619037628,
0.04590456187725067,
0.04962821304798126,
-0.10424751788377762,
0.2460995465517044,
-0.08139070123434067,
0.03911500796675682,
-0.25778138637542725,
-0.03796984255313873,
-0.06661736965179443,
0.15956246852874756,
0.045383092015981674,
-0.12146266549825668,
-2.4366255222170926e-32,
-0.10927988588809967,
0.02717537060379982,
-0.08138302713632584,
0.09620693325996399,
-0.19518710672855377,
-0.09636987745761871,
0.13374824821949005,
-0.13524393737316132,
-0.046629179269075394,
-0.07140776515007019,
0.15104970335960388,
0.01498945988714695,
0.04209368675947189,
-0.03693708777427673,
0.08928489685058594,
-0.04228527843952179,
0.12102894484996796,
-0.03074570745229721,
-0.16261404752731323,
0.047733888030052185,
0.05794517695903778,
-0.015821309760212898,
-0.0054962714202702045,
0.03252279385924339,
-0.09422343969345093,
-0.137984499335289,
-0.015517064370214939,
0.12773935496807098,
-0.03315742686390877,
0.07001885026693344,
0.003109315410256386,
0.023963743820786476,
-0.06882692128419876,
-0.043741896748542786,
-0.04818926006555557,
0.09675443917512894,
0.12396591156721115,
0.051338955760002136,
-0.2214311808347702,
-0.0008997135446406901,
0.08909189701080322,
0.11615654826164246,
-0.13246043026447296,
0.009902307763695717,
-0.15557101368904114,
-0.01085243746638298,
0.1656905561685562,
0.14114919304847717,
0.0597006119787693,
-0.07764939963817596,
-0.04326755926012993,
-0.0968034639954567,
0.07366910576820374,
-0.12765774130821228,
-0.09655409306287766,
0.009644419886171818,
0.30721718072891235,
-0.0023356371093541384,
-0.11204085499048233,
0.03923293948173523,
0.04467732831835747,
0.14169476926326752,
0.09754372388124466,
0.09147754311561584,
-0.007723089773207903,
-0.062116120010614395,
-0.19877329468727112,
0.09621266275644302,
-0.028006097301840782,
-0.08050144463777542,
0.0909123569726944,
0.023037957027554512,
-0.01666148751974106,
-0.05613149330019951,
-0.19396764039993286,
0.005432480946183205,
0.11301185935735703,
0.0013886898523196578,
-0.15180273354053497,
0.12998177111148834,
-0.009893186390399933,
-0.03151506185531616,
0.09337016940116882,
0.07653707265853882,
0.020917560905218124,
0.1634165495634079,
0.11332854628562927,
0.12091292440891266,
-0.105137899518013,
-0.07327862083911896,
0.08128838986158371,
-0.007033286616206169,
0.01932334154844284,
0.0034227895084768534,
-0.0030943630263209343,
0.10711415112018585,
0.09919559210538864,
0.06315607577562332,
-0.061788830906152725,
-0.0338953398168087,
0.06889078766107559,
0.11790376901626587,
0.08191333711147308,
-0.03893522545695305,
0.11919353902339935,
0.019761480391025543,
0.07639963924884796,
0.08547775447368622,
-0.10534092038869858,
0.1093795970082283,
-0.11171944439411163,
0.1291719228029251,
-0.015340268611907959,
0.07076519727706909,
-0.03940686210989952,
-0.018191639333963394,
0.008892953395843506,
-0.07375468313694,
0.10063983500003815,
0.055245283991098404,
-0.0748729556798935,
0.48334479331970215,
0.2233562469482422,
-0.013039592653512955,
0.06149659678339958,
0.11501463502645493,
-0.1002875491976738,
0.014872982166707516,
-0.02239924855530262,
-0.14873459935188293,
-0.11941917985677719,
-0.10080171376466751,
7.698439503656118e-7,
-0.16362641751766205,
0.05084921792149544,
0.03705707564949989,
0.09602833539247513,
-0.006753040011972189,
0.09776163846254349,
-0.07809105515480042,
0.0736842006444931,
0.09239567816257477,
0.03858606517314911,
-0.05251678079366684,
-0.020105253905057907,
0.0709553062915802,
0.07231680303812027,
0.08297131210565567,
0.005051919724792242,
-0.09722888469696045,
0.10402395576238632,
-0.10771796852350235,
0.0475914403796196,
0.04518091678619385,
-0.0017023090040311217,
0.13859717547893524,
0.03254469856619835,
-0.08576013892889023,
-0.017596391960978508,
-0.021248113363981247,
0.04274013265967369,
-0.053479161113500595,
0.2351422756910324,
-0.029137684032320976,
-0.0261528417468071,
-0.011761335656046867,
-0.11022276431322098,
-0.06096974387764931,
-0.18323472142219543,
-0.11314058303833008,
-0.13167636096477509,
0.02671244740486145,
-0.1141766682267189,
0.013554392382502556,
0.10160906612873077,
-0.009411826729774475,
0.14634938538074493,
-0.12883025407791138,
-0.20391635596752167,
-0.10205714404582977,
-0.03019203245639801,
-0.08633650094270706,
-0.16061177849769592,
-0.05038091167807579,
0.060934241861104965,
0.045836176723241806,
0.09441176056861877,
0.05704015865921974,
0.09529443830251694,
0.026844510808587074,
-0.15963611006736755,
0.008213512599468231,
0.10414750874042511,
-0.09548541903495789,
0.07921203225851059,
0.08292759954929352,
-0.255531907081604,
-0.039171431213617325,
-0.028980258852243423,
0.059824734926223755,
2.5599139962265242e-34,
0.1467321813106537,
0.035528864711523056,
-0.03057074546813965,
-0.036164965480566025,
0.022424906492233276,
-0.006845727097243071,
0.19842621684074402,
0.012909391894936562,
0.03377269208431244,
-0.1402389258146286,
-0.06365608423948288
] |
https://github.com/huggingface/datasets/issues/2474 | cache_dir parameter for load_from_disk ? | Hi ! `load_from_disk` doesn't move the data. If you specify a local path to your mounted drive, then the dataset is going to be loaded directly from the arrow file in this directory. The cache files that result from `map` operations are also stored in the same directory by default.
However note than writing data to your google drive actually fills the VM's disk (see https://github.com/huggingface/datasets/issues/643)
Given that, I don't think that changing the cache directory changes anything.
Let me know what you think | **Is your feature request related to a problem? Please describe.**
When using Google Colab big datasets can be an issue, as they won't fit on the VM's disk. Therefore mounting google drive could be a possible solution. Unfortunatly when loading my own dataset by using the _load_from_disk_ function, the data gets cached to the VM's disk:
`
from datasets import load_from_disk
myPreprocessedData = load_from_disk("/content/gdrive/MyDrive/ASR_data/myPreprocessedData")
`
I know that chaching on google drive could slow down learning. But at least it would run.
**Describe the solution you'd like**
Add cache_Dir parameter to the load_from_disk function.
**Describe alternatives you've considered**
It looks like you could write a custom loading script for the load_dataset function. But this seems to be much too complex for my use case. Is there perhaps a template here that uses the load_from_disk function?
| 84 | cache_dir parameter for load_from_disk ?
**Is your feature request related to a problem? Please describe.**
When using Google Colab big datasets can be an issue, as they won't fit on the VM's disk. Therefore mounting google drive could be a possible solution. Unfortunatly when loading my own dataset by using the _load_from_disk_ function, the data gets cached to the VM's disk:
`
from datasets import load_from_disk
myPreprocessedData = load_from_disk("/content/gdrive/MyDrive/ASR_data/myPreprocessedData")
`
I know that chaching on google drive could slow down learning. But at least it would run.
**Describe the solution you'd like**
Add cache_Dir parameter to the load_from_disk function.
**Describe alternatives you've considered**
It looks like you could write a custom loading script for the load_dataset function. But this seems to be much too complex for my use case. Is there perhaps a template here that uses the load_from_disk function?
Hi ! `load_from_disk` doesn't move the data. If you specify a local path to your mounted drive, then the dataset is going to be loaded directly from the arrow file in this directory. The cache files that result from `map` operations are also stored in the same directory by default.
However note than writing data to your google drive actually fills the VM's disk (see https://github.com/huggingface/datasets/issues/643)
Given that, I don't think that changing the cache directory changes anything.
Let me know what you think | [
0.13226744532585144,
0.09152897447347641,
-0.018628934398293495,
0.08703615516424179,
0.08064591139554977,
0.08748845010995865,
0.05049280822277069,
0.0412716269493103,
0.19167238473892212,
0.08687352389097214,
-0.07624755054712296,
-0.01212323922663927,
0.05071234703063965,
-0.03216351941227913,
0.09565646946430206,
-0.0577702559530735,
0.04864255711436272,
-0.07372795045375824,
-0.03854164853692055,
-0.060192663222551346,
-0.14059890806674957,
0.06550268083810806,
0.19312642514705658,
-0.01704712212085724,
0.10015158355236053,
-0.03160631284117699,
-0.02805584855377674,
0.11239071935415268,
0.08390464633703232,
0.058358609676361084,
0.039760772138834,
-0.08144696056842804,
-0.013316220603883266,
0.19526535272598267,
0.000005893990874028532,
-0.017688477411866188,
0.0005816096090711653,
0.05969330668449402,
-0.0722515806555748,
-0.01100158505141735,
0.08295145630836487,
-0.03140942007303238,
-0.026546098291873932,
0.04487603157758713,
-0.17149563133716583,
0.07739800214767456,
0.10489959269762039,
-0.10926513373851776,
0.016237517818808556,
-0.049863606691360474,
-0.0355391651391983,
-0.09179877489805222,
-0.2621954679489136,
0.1405792534351349,
-0.028795920312404633,
0.015982788056135178,
0.01595424674451351,
0.15297362208366394,
-0.17294567823410034,
-0.00010365359048591927,
-0.010645954869687557,
0.1222117692232132,
0.03008396364748478,
0.14836108684539795,
0.1937274932861328,
0.16151227056980133,
-0.19795745611190796,
0.05176546424627304,
-0.06701155751943588,
0.02281629480421543,
0.13570286333560944,
-0.1697969138622284,
-0.05174487829208374,
0.1321302205324173,
-0.05723022297024727,
-0.15435683727264404,
0.18960723280906677,
0.031822677701711655,
-0.02490762434899807,
-0.07064282894134521,
-0.05933651700615883,
-0.13717405498027802,
-0.036800067871809006,
0.027664577588438988,
-0.1404162049293518,
-0.10562644153833389,
0.006111636757850647,
-0.06510987132787704,
-0.03883037716150284,
0.04176372289657593,
0.15839913487434387,
-0.007240178529173136,
0.06204213947057724,
0.08889211714267731,
0.10550211369991302,
0.02044779062271118,
-0.05485113710165024,
0.08284878730773926,
-0.025225913152098656,
-0.22591157257556915,
0.19561785459518433,
0.021959813311696053,
0.025811629369854927,
0.07201777398586273,
-0.0037894409615546465,
0.058775611221790314,
-0.04295401647686958,
-0.0273168683052063,
0.1882699429988861,
0.06817001104354858,
-0.18067379295825958,
-0.03154144063591957,
-0.0035588957834988832,
-0.06281478703022003,
0.24204295873641968,
0.05887169390916824,
-0.029691964387893677,
0.1884327083826065,
0.19331614673137665,
-0.029308758676052094,
0.037092555314302444,
0.19245970249176025,
0.0641779825091362,
0.12192200124263763,
-0.016047799959778786,
-0.012063849717378616,
-0.05500131472945213,
-0.19032080471515656,
-0.17610862851142883,
0.024398066103458405,
-0.025515655055642128,
-0.09790819138288498,
0.0550934262573719,
0.16078758239746094,
0.1661881059408188,
0.028780825436115265,
0.0726667270064354,
-0.1527203917503357,
-0.07510261982679367,
0.0011874751653522253,
0.20850877463817596,
-0.029884161427617073,
-0.007988888770341873,
0.07449804246425629,
-0.0489523820579052,
0.07971200346946716,
0.059093229472637177,
0.021708622574806213,
-0.0853385180234909,
0.11019616574048996,
-0.049405649304389954,
-0.06680662930011749,
-0.016589533537626266,
0.027175236493349075,
0.1345880925655365,
-0.01587039977312088,
-0.11671578884124756,
-0.104765385389328,
-0.06955733150243759,
-0.13696718215942383,
-0.07648938149213791,
-0.14505408704280853,
-0.13980931043624878,
-0.07312844693660736,
-0.02317722700536251,
0.052155233919620514,
0.04885222017765045,
0.133791983127594,
0.1268686056137085,
0.018015624955296516,
-0.11115781962871552,
0.018850000575184822,
-0.07972811907529831,
0.028692197054624557,
-0.14621895551681519,
0.04150351881980896,
-0.07091570645570755,
-0.13281866908073425,
-0.09936603903770447,
-0.015577050857245922,
0.1045551523566246,
-0.14277558028697968,
0.10803120583295822,
0.08750875294208527,
0.16080449521541595,
-0.19240756332874298,
0.03400889411568642,
0.30573952198028564,
0.09127689152956009,
0.03907909244298935,
-0.07129234075546265,
-0.006973071955144405,
0.02865133248269558,
0.08516818284988403,
-0.12661464512348175,
-0.026543021202087402,
-0.04045742005109787,
-0.10197927057743073,
-0.1341414451599121,
-0.1396026909351349,
-0.05383996292948723,
0.11539940536022186,
-0.0664893314242363,
0.04009748995304108,
0.06273597478866577,
0.2055802345275879,
-0.26382988691329956,
0.1322278529405594,
-0.11954667419195175,
-0.27636170387268066,
0.07641761749982834,
0.034127771854400635,
0.15337146818637848,
-0.15775717794895172,
0.02366706356406212,
-0.07834301143884659,
-0.11786098033189774,
-0.0033479861449450254,
0.06686239689588547,
-0.03538817539811134,
0.06984866410493851,
0.13999034464359283,
0.22489002346992493,
-0.028017494827508926,
0.11323750764131546,
-0.04113270714879036,
0.014661393128335476,
-0.10327471047639847,
0.024507280439138412,
-0.18085132539272308,
-0.036507345736026764,
-0.07762401551008224,
0.025478722527623177,
0.1750229448080063,
0.03141012042760849,
0.10973957926034927,
-0.07336651533842087,
-0.08007342368364334,
0.09375957399606705,
0.006476921495050192,
0.055154915899038315,
-0.01038876362144947,
0.02717204950749874,
0.11378421634435654,
-0.05018528550863266,
0.07629598677158356,
0.034019216895103455,
0.25348734855651855,
0.1358984112739563,
-0.06514071673154831,
0.18212653696537018,
0.08476804196834564,
-0.03826776519417763,
0.08962861448526382,
0.14681093394756317,
0.1473502814769745,
0.2647583484649658,
0.2216428518295288,
0.053127165883779526,
0.19507570564746857,
0.2578607201576233,
0.046327173709869385,
0.17879877984523773,
0.02973463572561741,
-0.020056240260601044,
-0.11321555078029633,
0.054622866213321686,
0.10869421064853668,
-0.055093131959438324,
0.12285026907920837,
0.1456545889377594,
0.028874550014734268,
-0.13050825893878937,
-0.0872497633099556,
-0.14890669286251068,
-0.17653438448905945,
0.13134267926216125,
-0.05152447894215584,
-0.005797628778964281,
-0.10148672014474869,
-0.10729441791772842,
0.14980927109718323,
0.08079826831817627,
0.05720663070678711,
0.17604690790176392,
0.15633408725261688,
-0.007072204723954201,
0.037323083728551865,
-0.17048372328281403,
0.056407734751701355,
-0.09474623948335648,
-0.06614961475133896,
0.10579325258731842,
0.04399370029568672,
0.06086945906281471,
0.03174931928515434,
0.128473699092865,
0.03542671352624893,
-0.0833854228258133,
-0.2218349277973175,
-0.11812722682952881,
-0.10607248544692993,
-0.0347943939268589,
-0.26091283559799194,
0.07837758213281631,
-0.03823377937078476,
0.0860176831483841,
0.013147639110684395,
-0.06376075744628906,
-0.12248857319355011,
0.029355522245168686,
-0.06383265554904938,
0.059278760105371475,
0.13463591039180756,
-0.21182844042778015,
-0.2428082972764969,
-0.1196262463927269,
-0.10968763381242752,
0.02576839178800583,
-0.16045896708965302,
0.06634938716888428,
-0.12797854840755463,
0.037950169295072556,
0.01874273642897606,
-0.0753045380115509,
-0.08548690378665924,
-0.12051691859960556,
-0.13890834152698517,
-0.06330496072769165,
-0.056167684495449066,
0.04210714250802994,
0.06643881648778915,
-0.004599710460752249,
-0.1579314023256302,
0.12935277819633484,
-0.09476850926876068,
-0.1414535492658615,
-0.20404770970344543,
0.07389283180236816,
-0.03646092116832733,
0.10494611412286758,
-0.019616881385445595,
-0.0530349500477314,
0.006228008773177862,
0.07325814664363861,
-0.07677218317985535,
-0.06497947871685028,
-0.16380701959133148,
0.10544033348560333,
-0.11064799875020981,
0.010827901773154736,
0.12138079106807709,
-0.06764774024486542,
-0.17344079911708832,
0.006259223446249962,
-0.15411582589149475,
-0.09531930088996887,
0.12454963475465775,
-0.12101482599973679,
0.20064595341682434,
0.047371745109558105,
0.17194052040576935,
0.11543835699558258,
-0.1448451727628708,
-0.17152908444404602,
0.12365511059761047,
0.2528344690799713,
0.13307444751262665,
-0.007873115129768848,
0.010753421112895012,
-0.051535267382860184,
-0.12443999946117401,
-0.21207615733146667,
-0.12077395617961884,
0.06903146207332611,
-0.005255165044218302,
-0.07816656678915024,
-0.07028912752866745,
-0.025266539305448532,
-0.019274575635790825,
0.18243010342121124,
-0.11986759305000305,
-0.01528198178857565,
0.051679614931344986,
0.19382993876934052,
-0.16327700018882751,
0.043479032814502716,
0.05640058591961861,
-0.14563216269016266,
0.23447160422801971,
0.11876839399337769,
0.22765704989433289,
-0.015553290024399757,
-0.12461291998624802,
-0.09726835042238235,
-0.06022022292017937,
-0.048054978251457214,
0.03010774776339531,
0.011549781076610088,
-0.004808091092854738,
0.032349154353141785,
0.2257600575685501,
-0.03450590744614601,
-0.024142004549503326,
-0.13246890902519226,
-0.1128167062997818,
0.11899331957101822,
-0.08881542831659317,
0.15285000205039978,
-0.03962206840515137,
-0.23818843066692352,
0.004703953396528959,
0.0807771235704422,
-0.0785147026181221,
0.14020106196403503,
-0.042401108890771866,
-0.1335555613040924,
-0.0976703092455864,
0.03965652734041214,
-0.17554426193237305,
0.007629441563040018,
0.08327320963144302,
0.012583567760884762,
-0.19699332118034363,
-0.05044449865818024,
0.07521583884954453,
0.09010197222232819,
-0.11158601939678192,
-0.023078082129359245,
-0.0742524042725563,
0.18342134356498718,
0.03891751170158386,
-0.08873382955789566,
0.15007251501083374,
0.08741077035665512,
-0.11413256824016571,
0.005401358008384705,
-0.0343363992869854,
-0.05395764485001564,
-0.04564962908625603,
-0.06634948402643204,
0.045025091618299484,
0.11579897254705429,
-0.09505949169397354,
-0.08323389291763306,
-0.1477069854736328,
-0.1195393055677414,
-0.12551365792751312,
0.06731896847486496,
-0.13548819720745087,
0.008465318940579891,
0.03468085825443268,
-0.2280731052160263,
0.0347709096968174,
0.07249341160058975,
-0.04236328974366188,
0.0844583734869957,
0.0016165515407919884,
-0.14282119274139404,
0.1975778341293335,
0.022006670013070107,
-0.02535371482372284,
0.12667350471019745,
0.10376240313053131,
-0.04260027036070824,
0.14163051545619965,
0.09737008810043335,
-0.13303624093532562,
0.19974718987941742,
0.029197707772254944,
-0.1392737776041031,
0.01685928925871849,
-0.254338800907135,
-0.03419952094554901,
0.010900754481554031,
-0.10182494670152664,
-0.0041161286644637585,
-0.021356338635087013,
-0.000805094197858125,
-0.004537285305559635,
0.004428831394761801,
-0.012107191607356071,
0.07975644618272781,
-0.1865830421447754,
-0.05844411253929138,
0.15937237441539764,
0.13086028397083282,
0.059554923325777054,
0.10345600545406342,
0.04550538212060928,
0.043725792318582535,
0.003935202490538359,
-0.053935106843709946,
-0.19054199755191803,
0.049665506929159164,
-0.22812986373901367,
-0.12000396847724915,
-0.07887565344572067,
0.06942044943571091,
0.0011379511561244726,
0.09891156852245331,
0.033627886325120926,
-0.015803029760718346,
-0.029571644961833954,
0.04312722757458687,
-0.2502402663230896,
-0.03529629856348038,
0.03340981528162956,
0.02831905707716942,
-0.0007938461494632065,
-0.02219552733004093,
0.026378987357020378,
-0.185420423746109,
0.05140208452939987,
0.11554814130067825,
-0.16662059724330902,
0.02755209617316723,
-0.08320485055446625,
-0.13978725671768188,
-0.1483878344297409,
0.0424421951174736,
-0.03610779717564583,
-0.02195151150226593,
-0.02118658646941185,
-0.005690939258784056,
-0.12327227741479874,
-0.05544274300336838,
-0.058995794504880905,
0.06335533410310745,
-0.0674862414598465,
-0.010012430138885975,
0.13046708703041077,
0.04541618004441261,
-0.014184633269906044,
-0.10624769330024719,
0.03568783774971962,
-0.02087089605629444,
-0.13712657988071442,
0.13527077436447144,
-0.11569775640964508,
-0.0662529468536377,
-0.2707309424877167,
-0.0395260788500309,
-0.012244843877851963,
0.03770054131746292,
-0.22227317094802856,
0.0725683867931366,
0.00037918941234238446,
0.014534681104123592,
0.05979001894593239,
0.027465656399726868,
0.18486130237579346,
-0.10730741918087006,
0.02102247253060341,
-0.1215563639998436,
-2.85252541524e-32,
0.00891259778290987,
-0.06814820319414139,
-0.030356982722878456,
-0.00948597863316536,
-0.11928238719701767,
0.03653446212410927,
0.06566122174263,
-0.1581593155860901,
-0.05885237082839012,
-0.13005496561527252,
-0.02775111049413681,
0.08111625164747238,
0.10151463747024536,
-0.05938350409269333,
-0.15525007247924805,
-0.16001544892787933,
0.06782177835702896,
0.13017429411411285,
-0.018057644367218018,
0.043871182948350906,
0.1440388411283493,
0.23876431584358215,
0.04300794377923012,
-0.06825277209281921,
-0.04281151294708252,
-0.04786364361643791,
0.0478934645652771,
-0.2929542064666748,
-0.06046029180288315,
-0.029935887083411217,
-0.14485377073287964,
0.12481237947940826,
-0.09326902031898499,
-0.0735091120004654,
-0.06935953348875046,
-0.07712574303150177,
-0.12747809290885925,
0.025651760399341583,
-0.004521051421761513,
-0.12814904749393463,
-0.018203485757112503,
-0.03109530173242092,
-0.012030081823468208,
-0.10543300956487656,
-0.022716453298926353,
0.14078432321548462,
-0.04999440908432007,
-0.028062907978892326,
-0.04882675036787987,
-0.051258835941553116,
-0.12321633845567703,
0.08964411169290543,
0.0042790938168764114,
0.09543180465698242,
0.17770130932331085,
-0.08968404680490494,
0.12544570863246918,
0.2054886668920517,
-0.14418867230415344,
-0.03032662346959114,
0.002416877308860421,
0.1393989622592926,
0.12481311708688736,
0.16723398864269257,
0.10676679760217667,
-0.024693569168448448,
0.1616586148738861,
0.018885888159275055,
-0.0280885212123394,
-0.05927463248372078,
0.10055837780237198,
-0.16438739001750946,
0.08409145474433899,
-0.08346714079380035,
0.051740773022174835,
-0.15085114538669586,
0.1321491301059723,
-0.08250393718481064,
-0.03325638175010681,
-0.1177266463637352,
0.02625294402241707,
-0.06531374901533127,
-0.05154465138912201,
-0.0778111144900322,
-0.09074971824884415,
0.24422763288021088,
-0.003485593944787979,
0.13577111065387726,
-0.013570611365139484,
0.0022140296641737223,
0.008537868969142437,
0.10611448436975479,
-0.020210890099406242,
-0.05083393305540085,
0.06946753710508347,
0.1211017593741417,
0.05179130285978317,
0.07329441606998444,
0.02586640976369381,
0.260648250579834,
0.09487864375114441,
-0.0013616837095469236,
0.09654739499092102,
0.007618575822561979,
0.17138120532035828,
0.14485286176204681,
-0.058095142245292664,
0.03855283558368683,
-0.1649598926305771,
0.001998199848458171,
-0.11442238837480545,
-0.15270374715328217,
0.1883021891117096,
-0.024973083287477493,
-0.07176049053668976,
0.1098804622888565,
0.0852557048201561,
0.10676313191652298,
0.07055681943893433,
0.11819054931402206,
0.12014249712228775,
-0.15273858606815338,
0.01615026779472828,
0.012532709166407585,
-0.03782196342945099,
0.040705230087041855,
-0.013404401019215584,
-0.051165059208869934,
0.004057162906974554,
-0.11874845623970032,
-0.10570593178272247,
0.0629136860370636,
7.270955961757863e-7,
0.057314857840538025,
0.17795617878437042,
0.06449517607688904,
-0.028714889660477638,
-0.20005294680595398,
0.021642502397298813,
0.01617112010717392,
-0.022639751434326172,
0.04779262840747833,
0.0936783030629158,
-0.0781475156545639,
0.09026432037353516,
0.02468833699822426,
0.03716810792684555,
0.044759735465049744,
0.08507556468248367,
-0.10724595189094543,
-0.06049051508307457,
-0.07440648972988129,
0.07952088117599487,
-0.08357641100883484,
0.16271060705184937,
-0.041176337748765945,
0.020018381997942924,
-0.039957042783498764,
0.07455983757972717,
-0.0726965069770813,
-0.032966386526823044,
0.11593402177095413,
-0.07424938678741455,
0.11470884829759598,
0.1114955022931099,
-0.006208567880094051,
-0.023047657683491707,
-0.045574069023132324,
-0.047755490988492966,
-0.08419602364301682,
-0.12832538783550262,
0.04660589247941971,
-0.10792988538742065,
0.14819945394992828,
0.01327136717736721,
-0.08292175084352493,
0.02524232678115368,
0.010422207415103912,
0.01728799194097519,
-0.09298890084028244,
-0.06296457350254059,
0.056770458817481995,
-0.05091581493616104,
0.056314513087272644,
-0.1305416375398636,
0.07716576009988785,
0.20491617918014526,
-0.03856510668992996,
0.006538056302815676,
-0.030749192461371422,
-0.03248623013496399,
0.03021763451397419,
-0.08362136036157608,
-0.020693551748991013,
-0.04305369406938553,
-0.03705250471830368,
0.010298528708517551,
0.11370094865560532,
-0.09466163069009781,
0.13934844732284546,
5.429086092063747e-35,
0.04443083330988884,
-0.04942072182893753,
0.04079371318221092,
0.10190608352422714,
0.08410803228616714,
-0.07129205018281937,
0.19144456088542938,
0.02473335713148117,
-0.04023300111293793,
-0.28523391485214233,
-0.0889589712023735
] |
https://github.com/huggingface/datasets/issues/2474 | cache_dir parameter for load_from_disk ? | Thanks for your answer! I am a little surprised since I just want to read the dataset.
After debugging a bit, I noticed that the VM’s disk fills up when the tables (generator) are converted to a list:
https://github.com/huggingface/datasets/blob/5ba149773d23369617563d752aca922081277ec2/src/datasets/table.py#L850
If I try to iterate through the table’s generator e.g.:
`length = sum(1 for x in tables)`
the VM’s disk fills up as well.
I’m running out of Ideas 😄 | **Is your feature request related to a problem? Please describe.**
When using Google Colab big datasets can be an issue, as they won't fit on the VM's disk. Therefore mounting google drive could be a possible solution. Unfortunatly when loading my own dataset by using the _load_from_disk_ function, the data gets cached to the VM's disk:
`
from datasets import load_from_disk
myPreprocessedData = load_from_disk("/content/gdrive/MyDrive/ASR_data/myPreprocessedData")
`
I know that chaching on google drive could slow down learning. But at least it would run.
**Describe the solution you'd like**
Add cache_Dir parameter to the load_from_disk function.
**Describe alternatives you've considered**
It looks like you could write a custom loading script for the load_dataset function. But this seems to be much too complex for my use case. Is there perhaps a template here that uses the load_from_disk function?
| 69 | cache_dir parameter for load_from_disk ?
**Is your feature request related to a problem? Please describe.**
When using Google Colab big datasets can be an issue, as they won't fit on the VM's disk. Therefore mounting google drive could be a possible solution. Unfortunatly when loading my own dataset by using the _load_from_disk_ function, the data gets cached to the VM's disk:
`
from datasets import load_from_disk
myPreprocessedData = load_from_disk("/content/gdrive/MyDrive/ASR_data/myPreprocessedData")
`
I know that chaching on google drive could slow down learning. But at least it would run.
**Describe the solution you'd like**
Add cache_Dir parameter to the load_from_disk function.
**Describe alternatives you've considered**
It looks like you could write a custom loading script for the load_dataset function. But this seems to be much too complex for my use case. Is there perhaps a template here that uses the load_from_disk function?
Thanks for your answer! I am a little surprised since I just want to read the dataset.
After debugging a bit, I noticed that the VM’s disk fills up when the tables (generator) are converted to a list:
https://github.com/huggingface/datasets/blob/5ba149773d23369617563d752aca922081277ec2/src/datasets/table.py#L850
If I try to iterate through the table’s generator e.g.:
`length = sum(1 for x in tables)`
the VM’s disk fills up as well.
I’m running out of Ideas 😄 | [
0.10485098510980606,
0.0755329504609108,
-0.03418618068099022,
0.09805586189031601,
0.11037209630012512,
0.0536336824297905,
0.022626187652349472,
0.07600247114896774,
0.14596495032310486,
0.10707618296146393,
-0.04349762573838234,
-0.014951949939131737,
-0.0003106486692558974,
-0.06783464550971985,
0.10663154721260071,
0.03322533890604973,
0.0386141836643219,
-0.030115284025669098,
-0.08077390491962433,
-0.10572114586830139,
-0.16961225867271423,
0.10533129423856735,
0.21922923624515533,
-0.09057891368865967,
0.12580400705337524,
-0.055457018315792084,
-0.06315116584300995,
0.10285662114620209,
0.033428043127059937,
0.0565989688038826,
0.01799333468079567,
-0.06558382511138916,
-0.014037602581083775,
0.15786071121692657,
0.000005616507223749068,
-0.003141274442896247,
-0.01365609746426344,
0.03646146133542061,
-0.13724128901958466,
0.026097631081938744,
0.18720798194408417,
-0.08454328030347824,
-0.0240884218364954,
0.029389353469014168,
-0.07948318868875504,
0.06198308244347572,
0.035994261503219604,
-0.06738679856061935,
-0.023626940324902534,
-0.09364437311887741,
-0.01886368915438652,
-0.0633687674999237,
-0.2020687311887741,
0.14365996420383453,
-0.006597588304430246,
0.07193560898303986,
0.0007542385719716549,
0.136198952794075,
-0.11683657020330429,
-0.007578538730740547,
-0.01271477248519659,
0.1363232433795929,
0.04784637689590454,
0.15100178122520447,
0.18394994735717773,
0.19969268143177032,
-0.1685888022184372,
0.074089914560318,
-0.05797368660569191,
0.03036908619105816,
0.16402128338813782,
-0.2152383178472519,
-0.06637540459632874,
0.13721947371959686,
-0.006870265584439039,
-0.18359249830245972,
0.15053009986877441,
0.08098377287387848,
-0.04789542034268379,
-0.07326752692461014,
-0.017269961535930634,
-0.11432041227817535,
-0.0586073063313961,
-0.02188766933977604,
-0.11238006502389908,
-0.10864447057247162,
-0.019077997654676437,
-0.03723793476819992,
-0.03631263226270676,
-0.012119237333536148,
0.16255919635295868,
0.03636224940419197,
0.0035296946298331022,
0.03496486321091652,
0.0675993487238884,
-0.0239111315459013,
0.009272593073546886,
0.058924175798892975,
0.034217469394207,
-0.18492713570594788,
0.23908205330371857,
0.0244106687605381,
0.05426006764173508,
0.024836542084813118,
0.014455360360443592,
0.055973540991544724,
-0.06845129281282425,
-0.1030818372964859,
0.15862375497817993,
0.02222813107073307,
-0.11013390123844147,
0.020067373290657997,
-0.024498017504811287,
-0.10808493196964264,
0.24903903901576996,
0.058295369148254395,
0.0295600276440382,
0.2429242581129074,
0.12439883500337601,
-0.0038376569282263517,
0.023580240085721016,
0.2581600546836853,
0.1047581136226654,
0.16464903950691223,
-0.011696665547788143,
-0.0004937666235491633,
-0.0518646202981472,
-0.22566716372966766,
-0.22584344446659088,
-0.007831601426005363,
-0.033820878714323044,
-0.15255919098854065,
0.08258917927742004,
0.10793903470039368,
0.18325650691986084,
0.09402957558631897,
0.027074715122580528,
-0.16048744320869446,
-0.0739758312702179,
-0.08714297413825989,
0.16725696623325348,
-0.11513473093509674,
0.0624602809548378,
0.049183908849954605,
-0.03880154341459274,
0.036707453429698944,
0.08325080573558807,
-0.018688209354877472,
-0.06397388875484467,
0.12809133529663086,
-0.05073302239179611,
-0.10843237489461899,
-0.012077946215867996,
0.016974877566099167,
0.12402848899364471,
-0.030820127576589584,
-0.06793669611215591,
-0.06415829062461853,
-0.13017714023590088,
-0.1360640972852707,
-0.11096028983592987,
-0.1245504692196846,
-0.13510839641094208,
-0.05841589719057083,
0.004460710100829601,
0.032076526433229446,
-0.004593227989971638,
0.14141064882278442,
0.08343810588121414,
0.03501330688595772,
-0.09041435271501541,
0.012369739823043346,
-0.055125102400779724,
0.008922251872718334,
-0.13324002921581268,
0.025076577439904213,
-0.06868766993284225,
-0.047056060284376144,
-0.13599327206611633,
-0.06278293579816818,
0.1548997312784195,
-0.06397725641727448,
0.1438669115304947,
0.15730400383472443,
0.17750641703605652,
-0.1562243103981018,
0.07804255187511444,
0.27447542548179626,
0.07350677996873856,
-0.015336700715124607,
-0.03804388642311096,
-0.006499627139419317,
0.030285071581602097,
0.0830737054347992,
-0.10988127440214157,
-0.014793429523706436,
-0.05218803137540817,
-0.09441561251878738,
-0.08147323876619339,
-0.1345982849597931,
-0.052183330059051514,
0.1671077013015747,
-0.006939420010894537,
0.07721369713544846,
0.08133893460035324,
0.20069336891174316,
-0.1985986828804016,
0.08214229345321655,
-0.08492237329483032,
-0.2792969346046448,
0.05022462457418442,
0.039640918374061584,
0.12887175381183624,
-0.07405893504619598,
0.04531766474246979,
-0.05926264077425003,
-0.06456699967384338,
0.00728866271674633,
0.07477954030036926,
-0.09579884260892868,
0.07406263798475266,
0.14489838480949402,
0.1650703400373459,
-0.07217694818973541,
0.05877113714814186,
0.00446140905842185,
0.0731249526143074,
-0.127118319272995,
0.06169649958610535,
-0.11915617436170578,
-0.04492883384227753,
-0.0817878395318985,
0.02788510173559189,
0.13212789595127106,
0.05327577888965607,
0.08674225956201553,
-0.10870924592018127,
-0.06879237294197083,
0.07994458824396133,
0.06529885530471802,
0.050228916108608246,
-0.0161579716950655,
0.05343491584062576,
0.11120285093784332,
-0.004412426613271236,
-0.0015458234120160341,
0.007228577509522438,
0.1638627052307129,
0.12019728869199753,
-0.08801218122243881,
0.21504485607147217,
0.10591328889131546,
-0.034090805798769,
0.017313135787844658,
0.12981918454170227,
0.14797765016555786,
0.22754526138305664,
0.25291723012924194,
-0.013588783331215382,
0.17487893998622894,
0.24106816947460175,
0.024617237970232964,
0.23282769322395325,
0.08374185115098953,
0.00003854479291476309,
-0.15566210448741913,
0.0808473601937294,
0.09294407814741135,
-0.0419013649225235,
0.10812854766845703,
0.15093936026096344,
0.023366278037428856,
-0.12698118388652802,
-0.10917063802480698,
-0.14164884388446808,
-0.15233638882637024,
0.07712176442146301,
-0.010624824091792107,
0.003931551240384579,
-0.11201798915863037,
-0.10470665991306305,
0.11974775791168213,
0.09124163538217545,
0.05652303621172905,
0.15029935538768768,
0.11007890105247498,
-0.029860569164156914,
0.030278369784355164,
-0.11440658569335938,
0.056365277618169785,
-0.09606830030679703,
-0.04308394342660904,
0.11453502625226974,
0.05032659322023392,
0.05550207570195198,
0.014127600006759167,
0.18605555593967438,
0.042960066348314285,
-0.058243799954652786,
-0.23432660102844238,
-0.12836800515651703,
-0.08025877922773361,
-0.05935395509004593,
-0.219202920794487,
0.06998830288648605,
-0.09268144518136978,
0.14383746683597565,
-0.008888405747711658,
-0.10880142450332642,
-0.11249279230833054,
0.009794223122298717,
-0.0456942580640316,
0.08556361496448517,
0.12281063944101334,
-0.14047978818416595,
-0.18696890771389008,
-0.09555961936712265,
-0.061670638620853424,
0.06354458630084991,
-0.14730925858020782,
0.10608825087547302,
-0.09322882443666458,
0.005402050446718931,
0.026101432740688324,
-0.07424099743366241,
-0.06338561326265335,
-0.10312315076589584,
-0.17237897217273712,
-0.07438066601753235,
0.029851114377379417,
0.06567322462797165,
0.07720593363046646,
0.03759770840406418,
-0.1571117490530014,
0.1555536836385727,
-0.12034296244382858,
-0.15226492285728455,
-0.11159099638462067,
0.10505829006433487,
-0.02677772380411625,
0.1243729442358017,
0.021745510399341583,
-0.06374653428792953,
0.013640626333653927,
0.08559412509202957,
-0.06921011209487915,
-0.11706281453371048,
-0.15067559480667114,
0.06241102144122124,
-0.1358628273010254,
0.007782189641147852,
0.12507499754428864,
-0.06804007291793823,
-0.19373713433742523,
-0.01957319676876068,
-0.11759355664253235,
-0.1322375237941742,
0.09344100952148438,
-0.12372482568025589,
0.17668361961841583,
0.08591824769973755,
0.20309849083423615,
0.10994909703731537,
-0.09369687736034393,
-0.1586582511663437,
0.14266559481620789,
0.20284083485603333,
0.18551047146320343,
-0.0010308444034308195,
0.036110907793045044,
-0.15243352949619293,
-0.18055349588394165,
-0.20369917154312134,
-0.11666754633188248,
0.04127416014671326,
0.007202050648629665,
-0.042641475796699524,
-0.08423872292041779,
0.009361743927001953,
-0.004017532803118229,
0.15232108533382416,
-0.11543945223093033,
-0.02338659204542637,
0.04867260158061981,
0.1595388799905777,
-0.14513227343559265,
0.02199752815067768,
-0.0013511148281395435,
-0.1417415738105774,
0.2546692192554474,
0.11226418614387512,
0.17518655955791473,
-0.03423866629600525,
-0.10181383043527603,
-0.11124054342508316,
-0.07331669330596924,
-0.04756904020905495,
0.09140629321336746,
0.00869220681488514,
0.02604237198829651,
-0.002665958134457469,
0.22441700100898743,
-0.010482045821845531,
0.016245583072304726,
-0.15057778358459473,
-0.10290161520242691,
0.1188681498169899,
-0.029707932844758034,
0.14682795107364655,
-0.08156129717826843,
-0.2577924430370331,
-0.0722358301281929,
0.055323343724012375,
-0.08335726708173752,
0.1590074598789215,
0.014521840959787369,
-0.11912845820188522,
-0.05658727139234543,
0.05284963548183441,
-0.20093394815921783,
-0.039830636233091354,
0.025117628276348114,
0.03738782927393913,
-0.18966475129127502,
-0.03504467010498047,
0.08740286529064178,
0.0764186903834343,
-0.164777010679245,
-0.051025260239839554,
-0.06870158016681671,
0.2077326625585556,
0.0765678808093071,
-0.06354080885648727,
0.11550972610712051,
0.0794307291507721,
-0.07450751960277557,
0.02427128329873085,
-0.002728910418227315,
-0.07500455528497696,
0.034979868680238724,
-0.027142943814396858,
0.00014960522821638733,
0.12052588164806366,
-0.13510093092918396,
-0.03998049721121788,
-0.22554710507392883,
-0.14370068907737732,
-0.16446775197982788,
0.08084368705749512,
-0.1671035885810852,
0.004797834437340498,
0.05404095724225044,
-0.29657870531082153,
-0.0016917316243052483,
0.10940209776163101,
-0.046128422021865845,
0.105633445084095,
0.0003980211040470749,
-0.12749889492988586,
0.1647670418024063,
0.03055625595152378,
-0.02759893424808979,
0.11948953568935394,
0.12114132195711136,
0.004180732183158398,
0.1459951251745224,
0.08796056360006332,
-0.20911464095115662,
0.2669801414012909,
-0.0006389442132785916,
-0.15269982814788818,
0.048173338174819946,
-0.24728019535541534,
-0.021627893671393394,
-0.0017692375695332885,
-0.09993235766887665,
0.04807955026626587,
0.032683197408914566,
-0.017969032749533653,
-0.0019030176335945725,
-0.0012440532445907593,
-0.12354380637407303,
0.06196017190814018,
-0.23671096563339233,
-0.02725937031209469,
0.18363384902477264,
0.07149346172809601,
0.06912065297365189,
0.11314954608678818,
0.01968400366604328,
-0.05849683657288551,
-0.029227759689092636,
-0.09092739224433899,
-0.12624460458755493,
0.06884035468101501,
-0.1717921793460846,
-0.1420687586069107,
-0.14908796548843384,
0.10137103497982025,
-0.07520077377557755,
0.07211319357156754,
-0.00917062722146511,
0.022427354007959366,
-0.04940034821629524,
0.02645866945385933,
-0.2714483439922333,
-0.02824433147907257,
-0.029584737494587898,
0.018642889335751534,
0.005420302972197533,
-0.04124625399708748,
0.05925290659070015,
-0.19159597158432007,
0.020482711493968964,
0.10550375282764435,
-0.16435249149799347,
0.013006309047341347,
-0.07327903062105179,
-0.18225587904453278,
-0.1478687971830368,
0.03541795536875725,
-0.056222815066576004,
-0.0044737947173416615,
-0.04241371899843216,
-0.027977650985121727,
-0.12406677007675171,
-0.03790600970387459,
-0.09973885864019394,
0.08160370588302612,
-0.0046590534038841724,
0.04588804766535759,
0.1496933251619339,
0.04596668854355812,
0.035699184983968735,
-0.1396874189376831,
0.04737906530499458,
-0.09464171528816223,
-0.17249013483524323,
0.14980459213256836,
-0.10834123194217682,
-0.04344891756772995,
-0.3015531599521637,
-0.020556418225169182,
0.001113572041504085,
0.030384980142116547,
-0.17965172231197357,
0.05364663526415825,
0.009158208966255188,
-0.025201955810189247,
0.08523327857255936,
0.027901887893676758,
0.19766061007976532,
-0.14746980369091034,
-0.016460292041301727,
-0.14710059762001038,
-2.779355593878716e-32,
-0.01512359268963337,
-0.11792423576116562,
-0.06137347221374512,
-0.08961758762598038,
-0.12650726735591888,
0.0342090018093586,
0.010007727891206741,
-0.1901984065771103,
-0.005470464937388897,
-0.11212397366762161,
-0.06936417520046234,
0.06744950264692307,
0.09492973238229752,
-0.11285135895013809,
-0.09085460007190704,
-0.1965569704771042,
0.07735238969326019,
0.09613072872161865,
-0.01378727052360773,
0.08757544308900833,
0.18874943256378174,
0.26051217317581177,
-0.024741241708397865,
-0.03909744694828987,
-0.05755958333611488,
0.00012670783326029778,
0.055576447397470474,
-0.31418925523757935,
-0.030937254428863525,
-0.0013896157033741474,
-0.11599740386009216,
0.1466183066368103,
-0.07414683699607849,
-0.1738945096731186,
-0.0859198346734047,
-0.03664760664105415,
-0.1887003779411316,
0.053006693720817566,
0.007272775284945965,
-0.11197170615196228,
0.013655329123139381,
-0.022212499752640724,
-0.032217610627412796,
-0.10787469893693924,
-0.03287460654973984,
0.15042433142662048,
-0.026906676590442657,
-0.04830160737037659,
-0.0630003809928894,
-0.14449670910835266,
-0.060787927359342575,
0.0619092658162117,
0.005926270503550768,
0.09800656884908676,
0.18825984001159668,
-0.10209772735834122,
0.13068968057632446,
0.22334083914756775,
-0.12667421996593475,
-0.026677481830120087,
0.03572959825396538,
0.16802047193050385,
0.11276091635227203,
0.10982323437929153,
0.15837699174880981,
-0.01669290103018284,
0.18742302060127258,
-0.02417568862438202,
-0.05290665104985237,
-0.053579267114400864,
0.09406363219022751,
-0.16549016535282135,
0.0632113516330719,
-0.1046876311302185,
0.03321786969900131,
-0.11595531553030014,
0.0929313525557518,
-0.11040306836366653,
-0.13293449580669403,
-0.08074560761451721,
0.07154892385005951,
-0.11349745839834213,
0.008678145706653595,
-0.054523687809705734,
-0.12937431037425995,
0.20191533863544464,
0.02428942173719406,
0.13260266184806824,
-0.02318560890853405,
-0.005520576611161232,
0.018853284418582916,
0.002253661397844553,
0.007028303109109402,
-0.03583082556724548,
0.07399757206439972,
0.1959039866924286,
0.05333622917532921,
0.024566669017076492,
0.050346773117780685,
0.22378325462341309,
0.14940327405929565,
0.010062767192721367,
0.10302650928497314,
-0.05590856820344925,
0.1832054704427719,
0.16525965929031372,
-0.013006368651986122,
0.03817629814147949,
-0.15929044783115387,
-0.02210613712668419,
-0.19663837552070618,
-0.14201033115386963,
0.2159304916858673,
0.04182882979512215,
-0.027533743530511856,
0.141414076089859,
0.1307264268398285,
0.10235518217086792,
0.09555095434188843,
0.05532555654644966,
0.10532942414283752,
-0.08426782488822937,
0.007438343483954668,
0.03265560045838356,
-0.05643736198544502,
0.026827923953533173,
-0.010485127568244934,
-0.08951059728860855,
0.02677254006266594,
-0.08473231643438339,
-0.08564337342977524,
0.09031614661216736,
7.218840210043709e-7,
0.00473353685811162,
0.16100507974624634,
0.09455379843711853,
-0.058883391320705414,
-0.15311533212661743,
0.04546648636460304,
0.06726690381765366,
0.01837274059653282,
0.007286905776709318,
0.048408955335617065,
-0.06172528117895126,
0.12282463908195496,
0.0676729828119278,
0.0394618846476078,
0.020380420610308647,
0.09905344992876053,
-0.13811326026916504,
0.013151790015399456,
-0.0743369534611702,
0.010271738283336163,
-0.12512701749801636,
0.1478089541196823,
-0.06010613217949867,
-0.02461218647658825,
-0.04538287594914436,
0.04877191781997681,
-0.06936472654342651,
-0.05395379289984703,
0.14431896805763245,
-0.024523846805095673,
0.15856415033340454,
0.08441781252622604,
-0.015298377722501755,
-0.010004221461713314,
-0.04636619612574577,
-0.025232624262571335,
-0.1150481253862381,
-0.14218726754188538,
0.07645311206579208,
-0.10111135244369507,
0.17955778539180756,
-0.04791361466050148,
-0.07632084935903549,
0.024592652916908264,
0.05954720824956894,
-0.003850723383948207,
-0.055489398539066315,
0.004267541225999594,
0.062085747718811035,
-0.06179676577448845,
0.051818136125802994,
-0.11273681372404099,
0.06359555572271347,
0.28041383624076843,
-0.05789622291922569,
-0.01680014096200466,
0.036727920174598694,
-0.06710118055343628,
-0.007292682304978371,
-0.0532122440636158,
-0.053068727254867554,
-0.028024569153785706,
-0.04431376978754997,
0.023164136335253716,
0.13630348443984985,
-0.07894428074359894,
0.1082489863038063,
6.10852182683903e-35,
0.05099791660904884,
-0.007412239909172058,
0.05510013923048973,
0.10360527038574219,
0.11241895705461502,
-0.10299956798553467,
0.18205741047859192,
0.0731637254357338,
-0.07690565288066864,
-0.27855339646339417,
-0.11567497253417969
] |
https://github.com/huggingface/datasets/issues/2474 | cache_dir parameter for load_from_disk ? | Indeed reading the data shouldn't increase the VM's disk. Not sure what google colab does under the hood for that to happen | **Is your feature request related to a problem? Please describe.**
When using Google Colab big datasets can be an issue, as they won't fit on the VM's disk. Therefore mounting google drive could be a possible solution. Unfortunatly when loading my own dataset by using the _load_from_disk_ function, the data gets cached to the VM's disk:
`
from datasets import load_from_disk
myPreprocessedData = load_from_disk("/content/gdrive/MyDrive/ASR_data/myPreprocessedData")
`
I know that chaching on google drive could slow down learning. But at least it would run.
**Describe the solution you'd like**
Add cache_Dir parameter to the load_from_disk function.
**Describe alternatives you've considered**
It looks like you could write a custom loading script for the load_dataset function. But this seems to be much too complex for my use case. Is there perhaps a template here that uses the load_from_disk function?
| 22 | cache_dir parameter for load_from_disk ?
**Is your feature request related to a problem? Please describe.**
When using Google Colab big datasets can be an issue, as they won't fit on the VM's disk. Therefore mounting google drive could be a possible solution. Unfortunatly when loading my own dataset by using the _load_from_disk_ function, the data gets cached to the VM's disk:
`
from datasets import load_from_disk
myPreprocessedData = load_from_disk("/content/gdrive/MyDrive/ASR_data/myPreprocessedData")
`
I know that chaching on google drive could slow down learning. But at least it would run.
**Describe the solution you'd like**
Add cache_Dir parameter to the load_from_disk function.
**Describe alternatives you've considered**
It looks like you could write a custom loading script for the load_dataset function. But this seems to be much too complex for my use case. Is there perhaps a template here that uses the load_from_disk function?
Indeed reading the data shouldn't increase the VM's disk. Not sure what google colab does under the hood for that to happen | [
0.11658234894275665,
0.08187459409236908,
-0.03048415295779705,
0.10821264982223511,
0.08188024163246155,
0.03969522938132286,
0.012416278943419456,
0.08393111079931259,
0.15781980752944946,
0.09401379525661469,
-0.03354141116142273,
-0.033372048288583755,
0.029639601707458496,
-0.016513628885149956,
0.10422748327255249,
-0.024970481172204018,
0.05865703523159027,
-0.06605067849159241,
-0.030928660184144974,
-0.11237560957670212,
-0.1612718403339386,
0.0893232598900795,
0.19683608412742615,
-0.06729528307914734,
0.09950151294469833,
-0.08767173439264297,
-0.057595957070589066,
0.12007284164428711,
0.08189311623573303,
0.07432112842798233,
0.04222019389271736,
-0.09338228404521942,
-0.006531803868710995,
0.18644177913665771,
0.000005826361757499399,
-0.03799090161919594,
-0.01125781238079071,
0.04988618195056915,
-0.1091679260134697,
0.01246002595871687,
0.11111979931592941,
-0.06924162060022354,
-0.005922276992350817,
0.036198053508996964,
-0.1141141802072525,
0.08082372695207596,
0.07626454532146454,
-0.08610622584819794,
-0.01901938021183014,
-0.0630602017045021,
-0.047311216592788696,
-0.0782879963517189,
-0.19147127866744995,
0.1353648155927658,
-0.054756324738264084,
0.030804239213466644,
0.016011917963624,
0.19572265446186066,
-0.1244424432516098,
0.021408630535006523,
-0.025558428838849068,
0.12129911780357361,
0.04386273771524429,
0.14505410194396973,
0.17956793308258057,
0.17711585760116577,
-0.1756359189748764,
0.05104609951376915,
-0.06393469125032425,
-0.027860337868332863,
0.15021198987960815,
-0.1912728101015091,
-0.040020305663347244,
0.11290272325277328,
-0.02446703426539898,
-0.15622058510780334,
0.1853070706129074,
0.03840936720371246,
-0.030692312866449356,
-0.056642550975084305,
-0.06297566741704941,
-0.1490388661623001,
-0.03816075623035431,
0.027523333206772804,
-0.08805149048566818,
-0.09924790263175964,
-0.007667653262615204,
-0.07169637084007263,
-0.053510505706071854,
0.047762855887413025,
0.1926061511039734,
-0.004133906681090593,
0.05326586216688156,
0.07671695947647095,
0.08891981095075607,
-0.036344014108181,
-0.04390428587794304,
0.04709243401885033,
-0.020854484289884567,
-0.1963966339826584,
0.22609642148017883,
0.03193778917193413,
0.03363264724612236,
0.05854826793074608,
0.0066695562563836575,
0.09227676689624786,
-0.06830719858407974,
-0.0721932053565979,
0.171676903963089,
0.0329764261841774,
-0.13084860146045685,
0.006827717646956444,
-0.03960374742746353,
-0.05311431363224983,
0.24869263172149658,
0.06683655828237534,
0.004786440171301365,
0.19902464747428894,
0.14889535307884216,
-0.016826272010803223,
0.014397921971976757,
0.24982358515262604,
0.07614783942699432,
0.12702420353889465,
-0.016425732523202896,
0.013530334457755089,
-0.03608490154147148,
-0.2239270657300949,
-0.21861818432807922,
0.01901087909936905,
-0.019928060472011566,
-0.13751409947872162,
0.05912480875849724,
0.13298751413822174,
0.1757327914237976,
0.05070105567574501,
0.05312221497297287,
-0.1545376479625702,
-0.05977064371109009,
-0.08303993195295334,
0.18095208704471588,
-0.11554528772830963,
0.016802091151475906,
0.0743836909532547,
-0.032373685389757156,
0.037722062319517136,
0.05694807320833206,
-0.020113471895456314,
-0.07538256049156189,
0.10434417426586151,
-0.05345718562602997,
-0.0931117981672287,
-0.019618967548012733,
-0.0023766520898789167,
0.08929917216300964,
-0.03556060045957565,
-0.13091471791267395,
-0.07275156676769257,
-0.11098215728998184,
-0.12400827556848526,
-0.10077434778213501,
-0.11763361096382141,
-0.1537967026233673,
-0.04476575925946236,
-0.007659789640456438,
0.01961628906428814,
0.007730729412287474,
0.12515266239643097,
0.11058506369590759,
0.0327582061290741,
-0.09059761464595795,
0.035006582736968994,
-0.04683513939380646,
-0.013670305721461773,
-0.09985136240720749,
0.016925744712352753,
-0.07983582466840744,
-0.12409870326519012,
-0.11176690459251404,
0.0007159860106185079,
0.12434688210487366,
-0.10417111963033676,
0.09425615519285202,
0.10925999283790588,
0.15712235867977142,
-0.17072616517543793,
0.03965875506401062,
0.30844831466674805,
0.09850522130727768,
0.006967725232243538,
-0.06330304592847824,
-0.028467286378145218,
-0.011523452587425709,
0.08820132166147232,
-0.09144267439842224,
-0.048809874802827835,
-0.029653960838913918,
-0.09578558057546616,
-0.10259589552879333,
-0.10002664476633072,
-0.04015341028571129,
0.14487984776496887,
-0.0029501556418836117,
0.07764440774917603,
0.08320958912372589,
0.20059293508529663,
-0.19499576091766357,
0.08891758322715759,
-0.10194924473762512,
-0.2764061391353607,
0.09387223422527313,
0.042369380593299866,
0.1513742059469223,
-0.1295037716627121,
0.09027837216854095,
-0.0722779855132103,
-0.09555838257074356,
-0.011211090721189976,
0.07704757153987885,
-0.05359218269586563,
0.0856640636920929,
0.1895592212677002,
0.1719035655260086,
-0.06314335763454437,
0.11692938208580017,
-0.0025384563487023115,
0.05033658817410469,
-0.11897392570972443,
0.0316653810441494,
-0.14862996339797974,
-0.03290930017828941,
-0.08284632861614227,
0.025088293477892876,
0.1618025004863739,
0.04852089658379555,
0.09553661942481995,
-0.07340451329946518,
-0.056607119739055634,
0.11937081813812256,
0.03545278310775757,
0.05911566689610481,
-0.004550749436020851,
0.05462035536766052,
0.12613476812839508,
-0.04297034069895744,
0.013067375868558884,
0.06714228540658951,
0.19316352903842926,
0.11390074342489243,
-0.08715784549713135,
0.18766427040100098,
0.09566245973110199,
-0.02136838249862194,
0.04408051446080208,
0.11986254900693893,
0.1519283950328827,
0.23732000589370728,
0.22965729236602783,
0.02661713771522045,
0.1815328150987625,
0.22508671879768372,
0.05892354995012283,
0.21076403558254242,
0.030858995392918587,
-0.06103573366999626,
-0.1327441930770874,
0.07297510653734207,
0.1436731368303299,
-0.06850844621658325,
0.1039963886141777,
0.13301648199558258,
0.017520325258374214,
-0.12374889105558395,
-0.10178472101688385,
-0.14720317721366882,
-0.16023419797420502,
0.11520351469516754,
-0.021811509504914284,
0.018822897225618362,
-0.12501834332942963,
-0.08446303009986877,
0.15563946962356567,
0.10962136834859848,
0.06590614467859268,
0.15222515165805817,
0.15742310881614685,
-0.01822471246123314,
-0.003993453923612833,
-0.1754898875951767,
0.06551308184862137,
-0.09513426572084427,
-0.046211689710617065,
0.0915583074092865,
0.08162849396467209,
0.06497720628976822,
0.014965054579079151,
0.1687009185552597,
0.08811991661787033,
-0.09407351166009903,
-0.25364506244659424,
-0.11695853620767593,
-0.06816497445106506,
-0.07343371957540512,
-0.21693570911884308,
0.06407561153173447,
-0.06758172065019608,
0.11510848253965378,
-0.005552282556891441,
-0.0920596644282341,
-0.12150603532791138,
0.013425935991108418,
-0.0711187869310379,
0.07712673395872116,
0.17914064228534698,
-0.18235579133033752,
-0.211562380194664,
-0.13367636501789093,
-0.0912872925400734,
-0.017326287925243378,
-0.16167007386684418,
0.08435482531785965,
-0.14569124579429626,
0.04228194057941437,
0.006686870474368334,
-0.06355665624141693,
-0.09006182104349136,
-0.11800836771726608,
-0.12708263099193573,
-0.08040670305490494,
0.010672702454030514,
0.07008308917284012,
0.10247796028852463,
0.03093533031642437,
-0.14910808205604553,
0.18889811635017395,
-0.07841130346059799,
-0.16472633183002472,
-0.16140083968639374,
0.08343467116355896,
-0.03237350285053253,
0.13793756067752838,
-0.001365573494695127,
-0.05057967081665993,
0.0036952379159629345,
0.05299075320363045,
-0.07630548626184464,
-0.11919446289539337,
-0.1738143265247345,
0.07166164368391037,
-0.12724418938159943,
-0.009077957831323147,
0.11476383358240128,
-0.0799759030342102,
-0.15869539976119995,
0.017539970576763153,
-0.126216858625412,
-0.09883669763803482,
0.12263168394565582,
-0.1105496734380722,
0.15215599536895752,
0.032838042825460434,
0.20339004695415497,
0.12728111445903778,
-0.16152222454547882,
-0.15910977125167847,
0.11481576412916183,
0.21006342768669128,
0.1807786524295807,
0.0014990358613431454,
0.029289964586496353,
-0.0665709376335144,
-0.1673797369003296,
-0.19427311420440674,
-0.10958244651556015,
0.041789475828409195,
-0.02923719584941864,
-0.061071835458278656,
-0.09442832320928574,
-0.0318196564912796,
0.011312253773212433,
0.15897038578987122,
-0.09972831606864929,
-0.02062399685382843,
0.0293644480407238,
0.18413475155830383,
-0.1373455822467804,
0.040139876306056976,
0.03051675483584404,
-0.13270266354084015,
0.20884062349796295,
0.12475276738405228,
0.31093406677246094,
-0.030457908287644386,
-0.0733693391084671,
-0.11699363589286804,
-0.06667053699493408,
-0.11783956736326218,
0.05220436677336693,
0.003470777301117778,
0.02553577348589897,
0.01711495779454708,
0.21202416718006134,
-0.03533308580517769,
-0.006390333641320467,
-0.16509582102298737,
-0.10791720449924469,
0.10888249427080154,
-0.06330308318138123,
0.10152561217546463,
-0.08033917844295502,
-0.2535092830657959,
-0.03479509800672531,
0.06630630791187286,
-0.06551989167928696,
0.13103918731212616,
-0.01195240207016468,
-0.12733572721481323,
-0.06986888498067856,
0.03404007479548454,
-0.14421583712100983,
-0.0193755105137825,
0.07358232885599136,
0.03654949367046356,
-0.21477097272872925,
-0.040881458669900894,
0.10214851796627045,
0.07225000858306885,
-0.14730796217918396,
-0.016901591792702675,
-0.08821287006139755,
0.18072834610939026,
0.06845971196889877,
-0.0694890096783638,
0.1442178636789322,
0.057013820856809616,
-0.06372237205505371,
-0.04165380820631981,
0.007401087787002325,
-0.04036407917737961,
-0.013816894963383675,
-0.06791883707046509,
0.02657691389322281,
0.11661209911108017,
-0.107310950756073,
-0.10430785268545151,
-0.1738532930612564,
-0.134521946310997,
-0.17180413007736206,
0.09752379357814789,
-0.1644057184457779,
0.009135317988693714,
0.03861825913190842,
-0.23984692990779877,
0.007391595281660557,
0.09334653615951538,
-0.05189818888902664,
0.05223899707198143,
0.01622617617249489,
-0.16160182654857635,
0.1780850738286972,
0.04263758659362793,
-0.028636330738663673,
0.15145468711853027,
0.11582175642251968,
0.003243159269914031,
0.13344112038612366,
0.09600501507520676,
-0.18241241574287415,
0.23975421488285065,
-0.004298822954297066,
-0.14588187634944916,
0.009669646620750427,
-0.2424246221780777,
-0.04717200994491577,
-0.03160960227251053,
-0.10578116029500961,
0.025587035343050957,
0.022754842415452003,
-0.06845619529485703,
-0.01038155797868967,
-0.0136307617649436,
-0.08168952167034149,
0.08652608841657639,
-0.15504337847232819,
-0.023449145257472992,
0.16907300055027008,
0.1223699226975441,
0.08691871166229248,
0.12478318810462952,
0.01714690774679184,
-0.02402512915432453,
-0.0101782763376832,
-0.08426294475793839,
-0.13586674630641937,
0.05013292655348778,
-0.2289285808801651,
-0.16191621124744415,
-0.14873498678207397,
0.06879057735204697,
-0.008809861727058887,
0.09481944888830185,
0.028134198859333992,
0.0163851510733366,
-0.025555981323122978,
0.03404746204614639,
-0.2383519411087036,
-0.03799101337790489,
0.021382132545113564,
0.03036027029156685,
0.03221767395734787,
-0.0710320845246315,
0.03651433065533638,
-0.1556541472673416,
0.02681571990251541,
0.0914313867688179,
-0.13974806666374207,
0.03814704343676567,
-0.07428903132677078,
-0.1789148598909378,
-0.16719059646129608,
0.02307942695915699,
-0.06804259121417999,
-0.05016893148422241,
-0.030932744964957237,
-0.029796194285154343,
-0.11927652359008789,
-0.03132962808012962,
-0.10021226108074188,
0.08047120273113251,
-0.018376925960183144,
0.00869361124932766,
0.16685627400875092,
0.011388986371457577,
0.0031831341329962015,
-0.09358745813369751,
0.04305056482553482,
-0.11061932891607285,
-0.1173207014799118,
0.13172084093093872,
-0.10753162950277328,
-0.0906827300786972,
-0.29813456535339355,
-0.04495922848582268,
0.009848358109593391,
0.04698637127876282,
-0.19450624287128448,
0.023002585396170616,
0.0014231613604351878,
0.009507611393928528,
0.07418876141309738,
0.04159292206168175,
0.19687391817569733,
-0.12707476317882538,
0.012792067602276802,
-0.1528070867061615,
-2.7693597776664985e-32,
0.030171053484082222,
-0.09627888351678848,
-0.05422619730234146,
-0.05307859554886818,
-0.12051744759082794,
0.04769562929868698,
0.06207096204161644,
-0.1835448145866394,
-0.03707770258188248,
-0.10237672924995422,
-0.04440150037407875,
0.06006516516208649,
0.09883549064397812,
-0.06983117014169693,
-0.0783357247710228,
-0.16936349868774414,
0.09132590889930725,
0.11357937753200531,
-0.012272512540221214,
0.07078814506530762,
0.14668641984462738,
0.25515374541282654,
-0.009673385880887508,
-0.06273549795150757,
-0.03762765973806381,
-0.019739948213100433,
0.09092181921005249,
-0.2607211470603943,
-0.022637441754341125,
-0.013955923728644848,
-0.11333689838647842,
0.12442030757665634,
-0.053782567381858826,
-0.08378511667251587,
-0.1025940552353859,
-0.04629439488053322,
-0.16449403762817383,
0.05383073911070824,
0.01661951281130314,
-0.13463886082172394,
-0.028266603127121925,
-0.041058190166950226,
-0.030642857775092125,
-0.1071920245885849,
-0.01314280554652214,
0.13688009977340698,
-0.043043870478868484,
-0.015481984242796898,
-0.015896014869213104,
-0.11536803096532822,
-0.0908430814743042,
0.04615433141589165,
0.02644440159201622,
0.0955144613981247,
0.1968098282814026,
-0.09146161377429962,
0.11362481862306595,
0.24344909191131592,
-0.1227123960852623,
-0.017435427755117416,
-0.006078073754906654,
0.15404126048088074,
0.0999847874045372,
0.16967715322971344,
0.12076902389526367,
0.01944936253130436,
0.1436702460050583,
-0.031943757086992264,
-0.03837987035512924,
-0.065461665391922,
0.0996486097574234,
-0.1908840835094452,
0.04205234721302986,
-0.0889320820569992,
0.05415492132306099,
-0.1520082801580429,
0.15910124778747559,
-0.11452829092741013,
-0.10108159482479095,
-0.09566551446914673,
0.04358673095703125,
-0.08021078258752823,
-0.02895938977599144,
-0.06536438316106796,
-0.10392134636640549,
0.21168552339076996,
-0.003806792665272951,
0.1035529226064682,
0.020199410617351532,
0.008048350922763348,
-0.005621524062007666,
0.06148011237382889,
0.017718687653541565,
-0.07311296463012695,
0.08805795758962631,
0.1151665449142456,
0.06673481315374374,
0.02478570118546486,
0.017911966890096664,
0.22165547311306,
0.10850294679403305,
0.012626725248992443,
0.08407209068536758,
-0.021624932065606117,
0.20561031997203827,
0.14784947037696838,
-0.05792490392923355,
0.034180328249931335,
-0.14737121760845184,
0.003919673152267933,
-0.16546630859375,
-0.16446655988693237,
0.204593688249588,
-0.006645975634455681,
-0.06830377131700516,
0.14907783269882202,
0.11834805458784103,
0.1167663037776947,
0.0720449835062027,
0.06876280158758163,
0.11304906755685806,
-0.14233039319515228,
0.048377275466918945,
0.036671798676252365,
-0.07355166226625443,
0.017894787713885307,
0.03560526296496391,
-0.0397186279296875,
-0.005782445892691612,
-0.08086920529603958,
-0.08579646795988083,
0.12015562504529953,
7.346159804910712e-7,
0.05164496600627899,
0.1823672354221344,
0.07355646789073944,
-0.05722169205546379,
-0.14908969402313232,
0.03582604229450226,
0.06403496861457825,
0.013489974662661552,
0.03671031817793846,
0.05250290408730507,
-0.11799545586109161,
0.10696861147880554,
0.05542221665382385,
0.02849632129073143,
-0.031200017780065536,
0.13383729755878448,
-0.09454686939716339,
-0.03112982027232647,
-0.07882525771856308,
-0.01309230923652649,
-0.07130523771047592,
0.14671257138252258,
-0.01892050914466381,
-0.023314420133829117,
-0.05867641791701317,
0.06735796481370926,
-0.07849831879138947,
-0.004122513812035322,
0.09063922613859177,
-0.05855906754732132,
0.14576387405395508,
0.13683076202869415,
0.004238826222717762,
0.003455179277807474,
-0.04527941346168518,
-0.037945300340652466,
-0.10875961929559708,
-0.14623001217842102,
0.05593062937259674,
-0.10706432163715363,
0.15769034624099731,
-0.009950882755219936,
-0.09352554380893707,
0.0435568168759346,
0.03515450656414032,
0.018444877117872238,
-0.02935858815908432,
-0.03363944962620735,
0.07014860957860947,
-0.10127998143434525,
0.03551654517650604,
-0.12311351299285889,
0.049461912363767624,
0.2556156814098358,
-0.08215601742267609,
-0.005556018091738224,
0.017809318378567696,
-0.04022413119673729,
0.006229973863810301,
-0.03711408004164696,
-0.022317972034215927,
-0.05672181025147438,
-0.028311142697930336,
-0.01726289466023445,
0.14059247076511383,
-0.06747862696647644,
0.11972369253635406,
5.359174598697924e-35,
0.07447904348373413,
-0.04967615753412247,
0.025815045461058617,
0.13020487129688263,
0.07902354747056961,
-0.07996884733438492,
0.1609306037425995,
0.03199075907468796,
-0.07329249382019043,
-0.270985871553421,
-0.10531428456306458
] |
https://github.com/huggingface/datasets/issues/2474 | cache_dir parameter for load_from_disk ? | Apparently, Colab uses a local cache of the data files read/written from Google Drive. See:
- https://github.com/googlecolab/colabtools/issues/2087#issuecomment-860818457
- https://github.com/googlecolab/colabtools/issues/1915#issuecomment-804234540
- https://github.com/googlecolab/colabtools/issues/2147#issuecomment-885052636 | **Is your feature request related to a problem? Please describe.**
When using Google Colab big datasets can be an issue, as they won't fit on the VM's disk. Therefore mounting google drive could be a possible solution. Unfortunatly when loading my own dataset by using the _load_from_disk_ function, the data gets cached to the VM's disk:
`
from datasets import load_from_disk
myPreprocessedData = load_from_disk("/content/gdrive/MyDrive/ASR_data/myPreprocessedData")
`
I know that chaching on google drive could slow down learning. But at least it would run.
**Describe the solution you'd like**
Add cache_Dir parameter to the load_from_disk function.
**Describe alternatives you've considered**
It looks like you could write a custom loading script for the load_dataset function. But this seems to be much too complex for my use case. Is there perhaps a template here that uses the load_from_disk function?
| 21 | cache_dir parameter for load_from_disk ?
**Is your feature request related to a problem? Please describe.**
When using Google Colab big datasets can be an issue, as they won't fit on the VM's disk. Therefore mounting google drive could be a possible solution. Unfortunatly when loading my own dataset by using the _load_from_disk_ function, the data gets cached to the VM's disk:
`
from datasets import load_from_disk
myPreprocessedData = load_from_disk("/content/gdrive/MyDrive/ASR_data/myPreprocessedData")
`
I know that chaching on google drive could slow down learning. But at least it would run.
**Describe the solution you'd like**
Add cache_Dir parameter to the load_from_disk function.
**Describe alternatives you've considered**
It looks like you could write a custom loading script for the load_dataset function. But this seems to be much too complex for my use case. Is there perhaps a template here that uses the load_from_disk function?
Apparently, Colab uses a local cache of the data files read/written from Google Drive. See:
- https://github.com/googlecolab/colabtools/issues/2087#issuecomment-860818457
- https://github.com/googlecolab/colabtools/issues/1915#issuecomment-804234540
- https://github.com/googlecolab/colabtools/issues/2147#issuecomment-885052636 | [
0.11757749319076538,
0.08439420908689499,
-0.04117955267429352,
0.07753824442625046,
0.0481799840927124,
0.062376100569963455,
0.045633718371391296,
0.06656387448310852,
0.13009746372699738,
0.09869444370269775,
-0.03360740840435028,
-0.0033775202464312315,
0.03850928321480751,
-0.02482163906097412,
0.10293283313512802,
-0.00786772184073925,
0.018134495243430138,
-0.05193137004971504,
-0.04859066382050514,
-0.08276816457509995,
-0.16820332407951355,
0.09074658155441284,
0.19951555132865906,
-0.04745226725935936,
0.09467548131942749,
-0.09176745265722275,
-0.02409202605485916,
0.11176950484514236,
0.056860413402318954,
0.0861639454960823,
0.04930536076426506,
-0.07814578711986542,
-0.017924653366208076,
0.19216780364513397,
0.000005829946076119086,
-0.04926370084285736,
-0.022590935230255127,
0.04530033469200134,
-0.11773329973220825,
0.005156866740435362,
0.08762676268815994,
-0.053532689809799194,
-0.002390181878581643,
0.03298243135213852,
-0.1346880942583084,
0.12111575901508331,
0.10576483607292175,
-0.07639298588037491,
-0.027790017426013947,
-0.04802633449435234,
-0.03365122526884079,
-0.07202889025211334,
-0.24621126055717468,
0.11851336061954498,
-0.07204274088144302,
0.013914438895881176,
-0.00551922433078289,
0.20262159407138824,
-0.13337428867816925,
0.011868510395288467,
-0.009980596601963043,
0.10341678559780121,
0.04806172847747803,
0.14829804003238678,
0.17830334603786469,
0.15157173573970795,
-0.18434955179691315,
0.02496221475303173,
-0.06451243162155151,
0.001311675412580371,
0.12090560793876648,
-0.1938074231147766,
-0.04684985801577568,
0.08108078688383102,
-0.02075730264186859,
-0.15497110784053802,
0.20936496555805206,
0.031273312866687775,
-0.05485577881336212,
-0.046374473720788956,
-0.03335975483059883,
-0.14280588924884796,
-0.02215353399515152,
0.030324459075927734,
-0.0639929473400116,
-0.04535732418298721,
-0.007025351282209158,
-0.07046768069267273,
-0.040516819804906845,
0.0326126366853714,
0.2280384600162506,
0.009781870990991592,
0.05060688778758049,
0.07020944356918335,
0.10527990758419037,
-0.030158577486872673,
-0.05715039744973183,
0.06714335829019547,
-0.023365607485175133,
-0.19691038131713867,
0.2170584797859192,
0.011633538641035557,
0.03307345137000084,
0.06404232233762741,
-0.00930636003613472,
0.09373562783002853,
-0.052465539425611496,
-0.09416984766721725,
0.17923304438591003,
0.03741275519132614,
-0.16267377138137817,
0.019170811399817467,
-0.018394460901618004,
-0.09492441266775131,
0.2289898544549942,
0.07917583733797073,
-0.023017561063170433,
0.19640401005744934,
0.13241656124591827,
-0.026859942823648453,
0.023567836731672287,
0.23714473843574524,
0.07115376740694046,
0.12358252704143524,
0.0015111780958250165,
0.005607144441455603,
-0.024091793224215508,
-0.22375671565532684,
-0.2188238948583603,
0.04349389672279358,
-0.021138932555913925,
-0.11685141175985336,
0.0525970421731472,
0.15193644165992737,
0.18112730979919434,
0.03575735539197922,
0.061254799365997314,
-0.1630854606628418,
-0.029494471848011017,
-0.07361176609992981,
0.17375211417675018,
-0.11195239424705505,
0.033801473677158356,
0.07614755630493164,
-0.029845520853996277,
0.028443612158298492,
0.06058870255947113,
-0.04599082097411156,
-0.07662060856819153,
0.07116004824638367,
-0.02991502359509468,
-0.08690847456455231,
-0.0024305975530296564,
-0.001102053327485919,
0.056383632123470306,
-0.038475506007671356,
-0.13966554403305054,
-0.09285544604063034,
-0.0997951477766037,
-0.12966930866241455,
-0.10679799318313599,
-0.12826378643512726,
-0.13991034030914307,
-0.04186375439167023,
-0.009727371856570244,
0.03316418454051018,
0.009451711550354958,
0.1124049574136734,
0.09889719635248184,
0.026048311963677406,
-0.0787268802523613,
0.016683045774698257,
-0.04384744539856911,
-0.012529407627880573,
-0.13125212490558624,
-0.007069229148328304,
-0.06371190398931503,
-0.11427237093448639,
-0.06611273437738419,
-0.001836863812059164,
0.13597741723060608,
-0.0975026935338974,
0.10556155443191528,
0.08622147887945175,
0.14734940230846405,
-0.16777335107326508,
0.03511139750480652,
0.3159179985523224,
0.1004076898097992,
0.02211741730570793,
-0.055593766272068024,
-0.03312317281961441,
-0.01542220450937748,
0.07970333844423294,
-0.1056036651134491,
-0.040293823927640915,
-0.06463037431240082,
-0.11582159996032715,
-0.12760089337825775,
-0.08995304256677628,
-0.05172232165932655,
0.11686370521783829,
-0.006462198216468096,
0.07323566824197769,
0.05778506398200989,
0.2104421705007553,
-0.18851053714752197,
0.11102867871522903,
-0.11940350383520126,
-0.25226953625679016,
0.0825723186135292,
0.026073995977640152,
0.16311994194984436,
-0.13715800642967224,
0.05289081484079361,
-0.07932288944721222,
-0.07558462768793106,
0.03070129081606865,
0.06677687913179398,
-0.04017992317676544,
0.07792551815509796,
0.19862689077854156,
0.17523375153541565,
-0.049550220370292664,
0.11429671198129654,
-0.0363311730325222,
0.04785425215959549,
-0.11995836347341537,
0.01879196986556053,
-0.1431291103363037,
-0.03795888274908066,
-0.07430867105722427,
0.005931343417614698,
0.16567547619342804,
0.02441766858100891,
0.09568604826927185,
-0.07669486105442047,
-0.08085142821073532,
0.10094259679317474,
0.07214224338531494,
0.01348165050148964,
-0.0315362885594368,
0.0640733540058136,
0.13633021712303162,
-0.04749578237533569,
0.06415052711963654,
0.03352639079093933,
0.19829626381397247,
0.10682255029678345,
-0.08853456377983093,
0.1928626447916031,
0.09602634608745575,
-0.0367661751806736,
0.060103315860033035,
0.10682390630245209,
0.15342874825000763,
0.24806730449199677,
0.2160770297050476,
0.026370592415332794,
0.20462079346179962,
0.22577238082885742,
0.06738384068012238,
0.19920502603054047,
0.026702197268605232,
-0.03117489255964756,
-0.12370182573795319,
0.06297841668128967,
0.15231074392795563,
-0.041735611855983734,
0.12388701736927032,
0.12223626673221588,
0.018871335312724113,
-0.12808667123317719,
-0.09322480112314224,
-0.13918405771255493,
-0.16888737678527832,
0.13087709248065948,
-0.0318189412355423,
0.0011033694026991725,
-0.13414472341537476,
-0.1132766455411911,
0.12779463827610016,
0.09628348797559738,
0.06514646112918854,
0.16176080703735352,
0.18057812750339508,
-0.02646343782544136,
-0.00417126901447773,
-0.19468051195144653,
0.05685783550143242,
-0.08441365510225296,
-0.06095309928059578,
0.07409528642892838,
0.08487517386674881,
0.04927043244242668,
0.037535276263952255,
0.19265621900558472,
0.09084060043096542,
-0.09332821518182755,
-0.26884976029396057,
-0.1283579170703888,
-0.06722282618284225,
-0.06480381637811661,
-0.20587915182113647,
0.07177134603261948,
-0.054630450904369354,
0.13018129765987396,
-0.011899080127477646,
-0.09695986658334732,
-0.11099191755056381,
0.002799816196784377,
-0.06289016455411911,
0.08108707517385483,
0.18344132602214813,
-0.16810612380504608,
-0.22340016067028046,
-0.15004362165927887,
-0.13880054652690887,
0.0075043318793177605,
-0.16118364036083221,
0.060492537915706635,
-0.17433969676494598,
0.04628339409828186,
0.020675603300333023,
-0.05716688185930252,
-0.077004574239254,
-0.14247415959835052,
-0.12750816345214844,
-0.09144451469182968,
-0.01032183039933443,
0.05498705431818962,
0.12443225085735321,
0.03340014070272446,
-0.1430625021457672,
0.18365788459777832,
-0.06970639526844025,
-0.16521771252155304,
-0.19594420492649078,
0.10087549686431885,
-0.04777870327234268,
0.13825544714927673,
-0.023177320137619972,
-0.05209413915872574,
-0.007871548645198345,
0.05732624977827072,
-0.045361168682575226,
-0.12048514932394028,
-0.1683233380317688,
0.0721873939037323,
-0.13487260043621063,
-0.010873912833631039,
0.09690722078084946,
-0.06829755753278732,
-0.16141775250434875,
-0.007716523017734289,
-0.1276053637266159,
-0.12210041284561157,
0.11409817636013031,
-0.11229502409696579,
0.16065718233585358,
0.05434419959783554,
0.19818343222141266,
0.1348293274641037,
-0.1676848977804184,
-0.18865151703357697,
0.14155246317386627,
0.19862008094787598,
0.17591379582881927,
-0.010908796451985836,
0.04334856569766998,
-0.045497506856918335,
-0.15969859063625336,
-0.18131719529628754,
-0.10826640576124191,
0.04164498671889305,
-0.029398353770375252,
-0.061778128147125244,
-0.09524927288293839,
-0.04274548590183258,
-0.01335969939827919,
0.14205072820186615,
-0.06766407191753387,
-0.02620883658528328,
0.028811711817979813,
0.18384455144405365,
-0.14711150527000427,
0.05870668962597847,
0.03949065878987312,
-0.11216960102319717,
0.1711963713169098,
0.13311927020549774,
0.3451664447784424,
-0.01989012025296688,
-0.071773461997509,
-0.13007977604866028,
-0.06304605305194855,
-0.09222913533449173,
0.04123906046152115,
0.01352248340845108,
0.005026374012231827,
0.0017905185231938958,
0.21121039986610413,
-0.04542025923728943,
0.005003190599381924,
-0.15564469993114471,
-0.12256819754838943,
0.14453794062137604,
-0.07147534936666489,
0.10811762511730194,
-0.06795639544725418,
-0.26417672634124756,
-0.03463476151227951,
0.06392182409763336,
-0.07096927613019943,
0.11881692707538605,
-0.027923544868826866,
-0.1221260353922844,
-0.061422139406204224,
0.03674403950572014,
-0.17475327849388123,
-0.006938243750482798,
0.06465871632099152,
0.04512270167469978,
-0.20987676084041595,
-0.013253671117126942,
0.10724014788866043,
0.07348114252090454,
-0.12900517880916595,
-0.028108442202210426,
-0.09466797113418579,
0.1403062790632248,
0.06815262883901596,
-0.0421929806470871,
0.1271367073059082,
0.06667575985193253,
-0.0341792069375515,
-0.03453768417239189,
0.014431234449148178,
-0.04791001230478287,
-0.02579193003475666,
-0.05006079003214836,
0.013496761210262775,
0.12909367680549622,
-0.1304536908864975,
-0.11766181141138077,
-0.19954711198806763,
-0.1345674991607666,
-0.15757806599140167,
0.11991794407367706,
-0.16195718944072723,
0.0024353419430553913,
0.04060165584087372,
-0.23022355139255524,
-0.009602876380085945,
0.09327360987663269,
-0.05239686369895935,
0.06552712619304657,
0.00030258711194619536,
-0.14543485641479492,
0.18632693588733673,
0.02071353979408741,
-0.027607472613453865,
0.09786857664585114,
0.09765970706939697,
-0.010242286138236523,
0.1194799542427063,
0.09258753061294556,
-0.14885853230953217,
0.23330499231815338,
0.035812921822071075,
-0.1957683563232422,
0.011129450052976608,
-0.24602073431015015,
-0.03794468194246292,
-0.03549227863550186,
-0.11573900282382965,
0.03300533816218376,
0.051247309893369675,
-0.09483596682548523,
0.00859412644058466,
-0.030496081337332726,
-0.09324727207422256,
0.0893939808011055,
-0.18822772800922394,
-0.008396739140152931,
0.1511421799659729,
0.1339331865310669,
0.07490184158086777,
0.1022336408495903,
0.004085690714418888,
0.011440745554864407,
-0.006288775242865086,
-0.06200598552823067,
-0.1514882892370224,
0.04762692004442215,
-0.2165670096874237,
-0.1621963083744049,
-0.15716402232646942,
0.06884597986936569,
-0.012212637811899185,
0.08887530118227005,
0.017901625484228134,
0.019471241161227226,
-0.00143753073643893,
0.029761670157313347,
-0.26383471488952637,
-0.03876916319131851,
0.056305550038814545,
0.01939047873020172,
0.05171674117445946,
-0.07996056973934174,
0.03266684338450432,
-0.1596522480249405,
0.05532071366906166,
0.11173554509878159,
-0.15483985841274261,
0.09313442558050156,
-0.08712060749530792,
-0.13748787343502045,
-0.16270141303539276,
0.011603118851780891,
-0.062426358461380005,
-0.044528938829898834,
-0.0125333396717906,
-0.03798205778002739,
-0.14285551011562347,
-0.0461261160671711,
-0.09592809528112411,
0.10701277107000351,
0.0012823819415643811,
0.014078843407332897,
0.16071344912052155,
0.016248667612671852,
0.0017602336592972279,
-0.09146776050329208,
0.051537878811359406,
-0.1314491331577301,
-0.11813672631978989,
0.15712076425552368,
-0.09718526154756546,
-0.09497640281915665,
-0.29701516032218933,
0.009514980018138885,
0.009551679715514183,
0.038893356919288635,
-0.1921667456626892,
0.026423081755638123,
0.011180795729160309,
0.006359927821904421,
0.058049947023391724,
0.045351915061473846,
0.21740123629570007,
-0.09875456243753433,
0.046897970139980316,
-0.1753806620836258,
-2.7504322615031457e-32,
0.026561643928289413,
-0.10893051326274872,
-0.054545808583498,
-0.03291112557053566,
-0.10344259440898895,
0.026206567883491516,
0.0717124491930008,
-0.19049705564975739,
-0.013179381377995014,
-0.11006056517362595,
-0.058117397129535675,
0.0484595000743866,
0.08637011796236038,
-0.09007369726896286,
-0.08207760006189346,
-0.15441162884235382,
0.08617248386144638,
0.11691252142190933,
-0.03183767572045326,
0.07080604135990143,
0.1592104285955429,
0.23970921337604523,
-0.007391089107841253,
-0.014000468887388706,
-0.05807752162218094,
-0.03658442944288254,
0.06673706322908401,
-0.28264760971069336,
-0.025027280673384666,
0.0034225638955831528,
-0.11338312178850174,
0.11434571444988251,
-0.05894436687231064,
-0.047502677887678146,
-0.10872617363929749,
-0.04828779399394989,
-0.12509258091449738,
0.03308482468128204,
0.00201081158593297,
-0.15262223780155182,
-0.019167490303516388,
-0.05393180623650551,
-0.027034573256969452,
-0.08507953584194183,
-0.006918261293321848,
0.1578032523393631,
-0.06624060869216919,
-0.006853447761386633,
-0.022750945761799812,
-0.13162894546985626,
-0.08945991098880768,
0.06098223105072975,
0.027277110144495964,
0.0795934721827507,
0.1793176680803299,
-0.07062071561813354,
0.12165659666061401,
0.2406911849975586,
-0.10477640479803085,
-0.03225749731063843,
-0.017984753474593163,
0.1628308743238449,
0.09379338473081589,
0.14535440504550934,
0.1078539565205574,
0.015955815091729164,
0.15896780788898468,
0.02604771964251995,
-0.0064714387990534306,
-0.0705411285161972,
0.11256776750087738,
-0.16251438856124878,
0.05535747483372688,
-0.07395832985639572,
0.03621134161949158,
-0.1228887066245079,
0.12792271375656128,
-0.10143296420574188,
-0.07639821618795395,
-0.10675624758005142,
0.05688821151852608,
-0.06259837746620178,
-0.01943354494869709,
-0.05535252019762993,
-0.10873916745185852,
0.22525592148303986,
0.00905205961316824,
0.10155407339334488,
-0.000514763465616852,
0.004916972015053034,
0.02019835077226162,
0.07500895112752914,
0.023091483861207962,
-0.042396288365125656,
0.12092365324497223,
0.11965206265449524,
0.06446348875761032,
0.02768740989267826,
0.049690842628479004,
0.23235777020454407,
0.10429000109434128,
-0.00013185615534894168,
0.053038354963064194,
-0.01955062709748745,
0.21972060203552246,
0.1574929654598236,
-0.05606617033481598,
0.02011864259839058,
-0.1566220074892044,
-0.009935758076608181,
-0.15744535624980927,
-0.1626220941543579,
0.19767998158931732,
-0.0034844635520130396,
-0.03484164923429489,
0.15218809247016907,
0.0764126181602478,
0.13051950931549072,
0.06838037073612213,
0.07569559663534164,
0.10969583690166473,
-0.16265371441841125,
0.07859702408313751,
0.05316447466611862,
-0.04568656161427498,
0.033614229410886765,
0.02924269437789917,
-0.007493786048144102,
-0.02383912168443203,
-0.08268915861845016,
-0.09796123206615448,
0.09613318741321564,
7.405361088785867e-7,
0.03391977399587631,
0.18918907642364502,
0.05027049407362938,
-0.04971398413181305,
-0.12188519537448883,
0.028894521296024323,
0.04961320385336876,
-0.0018592099659144878,
0.05896695703268051,
0.052224304527044296,
-0.12718068063259125,
0.09167282283306122,
0.04574717953801155,
0.025110268965363503,
-0.02544836886227131,
0.13124702870845795,
-0.08905183523893356,
-0.0031730595510452986,
-0.06889791041612625,
-0.0011803865199908614,
-0.06880086660385132,
0.12039583921432495,
-0.00036506709875538945,
-0.010640156455338001,
-0.05766068398952484,
0.08403661847114563,
-0.060895886272192,
-0.015827227383852005,
0.05403073504567146,
-0.06550594419240952,
0.13128425180912018,
0.11007078737020493,
0.004205783829092979,
0.01863023452460766,
-0.059718310832977295,
-0.02314639650285244,
-0.09102657437324524,
-0.1312260627746582,
0.08303289115428925,
-0.11802192032337189,
0.1626748889684677,
0.005827780347317457,
-0.09056632220745087,
0.062151949852705,
0.00490640988573432,
0.022637702524662018,
-0.03729015961289406,
-0.010870789177715778,
0.059269435703754425,
-0.09723135083913803,
0.03777138143777847,
-0.11793989688158035,
0.04137182980775833,
0.22802087664604187,
-0.07872413843870163,
0.007765436079353094,
-0.002265123650431633,
-0.04756589233875275,
0.03383157402276993,
-0.07071593403816223,
-0.015044130384922028,
-0.08036550879478455,
-0.04099549725651741,
-0.034191470593214035,
0.16150188446044922,
-0.059440597891807556,
0.15100520849227905,
7.648365473062233e-35,
0.06634096801280975,
-0.05544225871562958,
0.06615998595952988,
0.11162841320037842,
0.062159061431884766,
-0.06615392863750458,
0.14014732837677002,
0.024291865527629852,
-0.03995615616440773,
-0.2880193293094635,
-0.11081545054912567
] |
https://github.com/huggingface/datasets/issues/2472 | Fix automatic generation of Zenodo DOI | I have received a reply from Zenodo support:
> We are currently investigating and fixing this issue related to GitHub releases. As soon as we have solved it we will reach back to you. | After the last release of Datasets (1.8.0), the automatic generation of the Zenodo DOI failed: it appears in yellow as "Received", instead of in green as "Published".
I have contacted Zenodo support to fix this issue.
TODO:
- [x] Check with Zenodo to fix the issue
- [x] Check BibTeX entry is right | 34 | Fix automatic generation of Zenodo DOI
After the last release of Datasets (1.8.0), the automatic generation of the Zenodo DOI failed: it appears in yellow as "Received", instead of in green as "Published".
I have contacted Zenodo support to fix this issue.
TODO:
- [x] Check with Zenodo to fix the issue
- [x] Check BibTeX entry is right
I have received a reply from Zenodo support:
> We are currently investigating and fixing this issue related to GitHub releases. As soon as we have solved it we will reach back to you. | [
-0.024358533322811127,
0.2109384536743164,
-0.08043841272592545,
0.00946434959769249,
0.11986017972230911,
0.08335041999816895,
-0.028160804882645607,
0.10081629455089569,
-0.1402481347322464,
0.12325655668973923,
0.06294061243534088,
0.11257950216531754,
-0.04212111234664917,
-0.018951620906591415,
-0.11452513933181763,
0.029657674953341484,
-0.15077194571495056,
0.13810375332832336,
-0.004276393912732601,
0.0011294718133285642,
-0.11263001710176468,
0.14133352041244507,
0.13320007920265198,
-0.10623713582754135,
0.14105281233787537,
-0.10665428638458252,
-0.09223411977291107,
-0.11899110674858093,
-0.09919409453868866,
-0.17861957848072052,
0.07261693477630615,
0.18022793531417847,
-0.19379958510398865,
0.07519090175628662,
0.000005201550266065169,
-0.14194355905056,
0.01364013459533453,
0.06643342971801758,
0.034889642149209976,
-0.09055210649967194,
-0.10139116644859314,
-0.1923537403345108,
-0.026902876794338226,
-0.00900309905409813,
0.12940485775470734,
-0.045016366988420486,
0.04740288481116295,
0.12225758284330368,
-0.10930361598730087,
0.17247849702835083,
0.10028476268053055,
0.0874374583363533,
0.3096380829811096,
-0.16934461891651154,
0.08255375176668167,
0.1355680674314499,
0.00015017675468698144,
0.10572050511837006,
-0.24738626182079315,
0.2017168402671814,
0.07435812056064606,
0.10976516455411911,
-0.13878591358661652,
0.11444546282291412,
-0.21882085502147675,
-0.10360358655452728,
-0.013635363429784775,
-0.18586499989032745,
0.05704907700419426,
0.1089593768119812,
0.10792157799005508,
0.03208145871758461,
-0.04322533681988716,
0.01908964104950428,
-0.022585416212677956,
-0.033424943685531616,
-0.03321981802582741,
-0.05663358047604561,
0.01809385046362877,
0.029689837247133255,
-0.0018147482769563794,
-0.09899438172578812,
0.07394211739301682,
0.005948774050921202,
0.03594527393579483,
0.08350129425525665,
-0.1265188306570053,
0.06792423129081726,
0.004093541298061609,
-0.15814176201820374,
0.21922647953033447,
-0.008063280954957008,
-0.19318468868732452,
-0.0527118518948555,
0.1370125710964203,
0.09843941777944565,
-0.006867019925266504,
-0.1417478322982788,
0.143062025308609,
-0.0028590967413038015,
0.11180143058300018,
-0.0037578800693154335,
-0.057112738490104675,
-0.10738703608512878,
-0.05698058381676674,
0.13869871199131012,
0.08084569126367569,
-0.12837262451648712,
0.12115203589200974,
0.0779469832777977,
0.11297164857387543,
0.09377311915159225,
0.11784958094358444,
-0.13971294462680817,
0.11716751009225845,
0.05921487137675285,
0.05993504077196121,
-0.02319670096039772,
-0.04495611414313316,
-0.03553583845496178,
0.14875616133213043,
0.041325632482767105,
-0.3284934461116791,
-0.04970609024167061,
-0.08087614923715591,
0.035166122019290924,
0.1412384957075119,
0.11127949506044388,
-0.13818642497062683,
-0.010779693722724915,
-0.07278136909008026,
-0.04360011965036392,
0.10712909698486328,
0.0640341266989708,
-0.047955844551324844,
-0.1157989352941513,
-0.005256785545498133,
0.1688370555639267,
0.09431102871894836,
-0.07390972226858139,
-0.03249041363596916,
-0.0167410746216774,
0.02101070247590542,
0.09098642319440842,
0.127006396651268,
0.10028526932001114,
0.19241571426391602,
-0.09699875861406326,
0.0034860011655837297,
0.07515014708042145,
-0.1779540479183197,
0.07037396728992462,
-0.3431217074394226,
-0.011998238041996956,
-0.15737737715244293,
-0.0788353681564331,
0.32058480381965637,
0.037332989275455475,
-0.022391295060515404,
-0.19069421291351318,
-0.1423870176076889,
0.12340611964464188,
0.12470842152833939,
0.016429254785180092,
0.2118370532989502,
0.09650205075740814,
0.27059343457221985,
-0.01613115333020687,
-0.10668296366930008,
0.1282833218574524,
0.16662751138210297,
-0.11091011762619019,
0.019213497638702393,
0.1015603318810463,
-0.15952710807323456,
0.07084742933511734,
0.020985351875424385,
-0.06917297095060349,
-0.13678935170173645,
-0.1655678004026413,
0.018755685538053513,
-0.14751401543617249,
-0.2005113959312439,
-0.074307382106781,
0.10179793834686279,
0.1478610336780548,
-0.12483265995979309,
0.01419888250529766,
0.00010554129403317347,
-0.03149975463747978,
-0.08373884111642838,
-0.07042282074689865,
-0.14891056716442108,
-0.07277536392211914,
0.06417015939950943,
0.1214468702673912,
0.02376519702374935,
0.10006824880838394,
-0.016135169193148613,
0.14072361588478088,
-0.03210720419883728,
-0.10677545517683029,
0.030326085165143013,
-0.07290208339691162,
0.0604388602077961,
-0.08322396129369736,
0.048480402678251266,
0.05052825063467026,
0.3135439455509186,
0.06316603720188141,
-0.11757189780473709,
-0.12323972582817078,
-0.20125071704387665,
-0.03558958321809769,
-0.2595733106136322,
0.033181361854076385,
-0.0016161213861778378,
0.0015891464427113533,
-0.09210065007209778,
0.09649533033370972,
0.07069219648838043,
0.0885842889547348,
-0.030330760404467583,
0.08843304961919785,
-0.015308190137147903,
-0.015683649107813835,
-0.0643165335059166,
-0.05387098714709282,
0.16845551133155823,
0.07745826244354248,
-0.02085195668041706,
0.08475896716117859,
-0.03837083280086517,
0.17028512060642242,
-0.11989448964595795,
0.04095106199383736,
0.13717694580554962,
-0.06108446046710014,
0.1809355914592743,
-0.04259654879570007,
0.03280719742178917,
-0.002488459460437298,
-0.1832856386899948,
0.09269311279058456,
0.0944228395819664,
-0.08316735923290253,
-0.17728421092033386,
-0.05117641016840935,
-0.019586162641644478,
0.0859832614660263,
0.2638935446739197,
0.04795972630381584,
-0.09861136972904205,
-0.14327050745487213,
-0.08603069186210632,
-0.14638233184814453,
0.01560618169605732,
0.13342474400997162,
-0.08522433787584305,
0.26661255955696106,
0.2087457776069641,
0.08399063348770142,
-0.025407953187823296,
0.06681426614522934,
0.13924334943294525,
0.0253975261002779,
0.013860794715583324,
0.19213248789310455,
-0.052354078739881516,
0.1518518626689911,
-0.038060255348682404,
-0.012096046470105648,
-0.17132702469825745,
-0.08381672203540802,
0.01192632969468832,
-0.03477872908115387,
0.20256789028644562,
0.09496715664863586,
-0.03345641866326332,
0.01222608145326376,
-0.34274718165397644,
0.14054372906684875,
0.05162079259753227,
0.0697619691491127,
0.02007877826690674,
-0.08572545647621155,
-0.03576483204960823,
0.19050593674182892,
-0.15942184627056122,
0.064742311835289,
-0.13855181634426117,
-0.08973444253206253,
0.12439323216676712,
-0.02938365563750267,
0.061781443655490875,
0.02327100932598114,
-0.0028286839369684458,
0.044500965625047684,
-0.02732490934431553,
0.06794779002666473,
-0.06186046451330185,
0.1114206537604332,
0.010826199315488338,
-0.05309507995843887,
-0.11297458410263062,
-0.14282061159610748,
0.24817299842834473,
-0.18250657618045807,
-0.09599705040454865,
-0.3449312448501587,
0.070367731153965,
-0.08115681260824203,
0.1334795504808426,
0.02939576655626297,
0.008730443194508553,
0.05783551558852196,
0.05545274168252945,
-0.09853427857160568,
-0.009364413097500801,
0.09330615401268005,
-0.10871519148349762,
-0.04296845570206642,
-0.19153247773647308,
0.10786984115839005,
0.04560793191194534,
-0.15394803881645203,
-0.0038865432143211365,
-0.08151306957006454,
-0.10014323145151138,
0.009330185130238533,
0.1759074330329895,
0.11338373273611069,
0.02930188924074173,
-0.22074155509471893,
0.04951159656047821,
-0.17758484184741974,
-0.0673784390091896,
-0.14959104359149933,
0.26275572180747986,
-0.04105948656797409,
0.10253799706697464,
-0.01730440929532051,
-0.02092019096016884,
0.1491066962480545,
0.10516669601202011,
-0.04550648480653763,
0.13047169148921967,
0.0916336178779602,
0.13266104459762573,
-0.0800940990447998,
0.02392733283340931,
0.10109858214855194,
-0.005029847379773855,
-0.16093750298023224,
-0.08308388292789459,
-0.0069718691520392895,
-0.10850612819194794,
-0.04061327129602432,
0.032362136989831924,
0.03870492801070213,
-0.11894461512565613,
-0.007323433179408312,
0.28353169560432434,
-0.135941743850708,
0.0018811760237440467,
0.08105769753456116,
0.07206452637910843,
0.18079112470149994,
-0.024251818656921387,
-0.1490555703639984,
-0.10236137360334396,
0.056132640689611435,
-0.019733546301722527,
0.23138795793056488,
0.07041022926568985,
-0.10885751247406006,
-0.04257617145776749,
-0.04751753807067871,
-0.07891511172056198,
-0.031414225697517395,
-0.0698685273528099,
-0.08943650126457214,
0.057349156588315964,
0.04758641496300697,
0.0756731629371643,
-0.11465109884738922,
-0.1566958725452423,
0.038057081401348114,
-0.19269151985645294,
-0.009316934272646904,
0.09618707746267319,
0.11838957667350769,
0.14079321920871735,
0.0048958673141896725,
-0.02400370128452778,
-0.05304424464702606,
0.009224971756339073,
-0.06904372572898865,
0.04745525121688843,
0.09102269262075424,
-0.031519144773483276,
0.1047687754034996,
-0.08560683578252792,
0.05192805454134941,
0.04770772159099579,
0.20994064211845398,
0.07225439697504044,
0.07506114989519119,
-0.04255019128322601,
0.07384949177503586,
0.0025104114320129156,
0.20681297779083252,
-0.05808205530047417,
-0.015249296091496944,
0.14448454976081848,
-0.13616615533828735,
0.04709013178944588,
-0.02703855372965336,
0.11126729846000671,
-0.0824301466345787,
-0.0566895455121994,
-0.04897553101181984,
-0.04494045674800873,
-0.045801643282175064,
-0.06508729606866837,
-0.0753595158457756,
0.016990547999739647,
0.013785984367132187,
-0.04805098846554756,
-0.2186867743730545,
0.14026011526584625,
0.010558578185737133,
0.08890054374933243,
0.24826310575008392,
-0.015007076784968376,
0.018175961449742317,
-0.012379317544400692,
-0.10939977318048477,
-0.2660139501094818,
-0.17114368081092834,
-0.14215269684791565,
-0.13553954660892487,
0.07072782516479492,
0.0035664814058691263,
0.0020027202554047108,
-0.0033763281535357237,
-0.1430727243423462,
0.01698106899857521,
0.10302334278821945,
0.03630996495485306,
-0.12795355916023254,
-0.20261047780513763,
-0.05923743546009064,
-0.12105996906757355,
-0.01824496127665043,
-0.04509495198726654,
0.24585217237472534,
0.020787762477993965,
-0.011399407871067524,
0.06198294833302498,
-0.0027923688758164644,
-0.02124151587486267,
-0.17407599091529846,
-0.018011227250099182,
-0.06530139595270157,
-0.010646414011716843,
0.27847951650619507,
-0.0883001908659935,
-0.028223440051078796,
-0.20324695110321045,
-0.2110547572374344,
0.02203350141644478,
0.06652668863534927,
0.10216382890939713,
0.20290140807628632,
-0.029364140704274178,
-0.12411853671073914,
0.0859859362244606,
-0.08601190149784088,
0.040926385670900345,
0.10437703132629395,
-0.001678818603977561,
0.02713438682258129,
0.027352333068847656,
-0.23884591460227966,
-0.1684207022190094,
-0.11296094208955765,
0.13721507787704468,
-0.007145219948142767,
0.012473020702600479,
-0.020453600212931633,
-0.15464532375335693,
0.004560752771794796,
0.16565671563148499,
0.04497089609503746,
-0.23227261006832123,
0.07247643172740936,
-0.30332452058792114,
0.1197536289691925,
0.08106778562068939,
0.10885705053806305,
-0.13437402248382568,
0.14859725534915924,
0.09928061813116074,
-0.028978636488318443,
-0.020054686814546585,
0.09032678604125977,
0.0013856923906132579,
0.07178738713264465,
-0.034327998757362366,
-0.15442797541618347,
0.05515949800610542,
-0.09242638200521469,
-0.0854555144906044,
-0.13024969398975372,
0.12800952792167664,
0.0689968690276146,
0.044590458273887634,
0.06589420884847641,
-0.009065987542271614,
-0.05520690232515335,
-0.02616371214389801,
-0.06441238522529602,
-0.0799117311835289,
0.2220320701599121,
-0.07568544149398804,
0.011184107512235641,
-0.009812611155211926,
0.17901816964149475,
0.18803995847702026,
0.28365087509155273,
0.1377520114183426,
-0.18330112099647522,
-0.1620691865682602,
-0.07216615974903107,
0.02209130860865116,
0.011991954408586025,
-0.05905483290553093,
-0.07325555384159088,
-0.08672656118869781,
0.115544393658638,
-0.31862524151802063,
-0.10785993188619614,
0.05885426327586174,
-0.010152325965464115,
-0.03988382965326309,
-0.025780579075217247,
0.03405974432826042,
-0.2427961379289627,
-0.18386323750019073,
0.14015528559684753,
0.12029595673084259,
-0.07264883816242218,
-0.026510251685976982,
-0.03265272453427315,
-2.36885988919692e-32,
-0.11987519264221191,
0.07170944660902023,
-0.10874433070421219,
-0.005603324621915817,
-0.007291269954293966,
-0.11304750293493271,
-0.028867211192846298,
-0.07234475761651993,
-0.05011918023228645,
-0.0822257548570633,
0.10291316360235214,
-0.04760223627090454,
-0.008279522880911827,
-0.08125881850719452,
0.18689927458763123,
0.19690273702144623,
0.02977047860622406,
-0.25868579745292664,
-0.06352349370718002,
-0.04386712238192558,
0.07605276256799698,
-0.06064615771174431,
-0.04817338287830353,
-0.00712179159745574,
0.1558249294757843,
0.042910099029541016,
-0.18382836878299713,
0.04455636069178581,
-0.016589418053627014,
-0.06934764236211777,
0.051210757344961166,
-0.08702066540718079,
-0.02953745797276497,
0.033588189631700516,
-0.15007129311561584,
-0.173346146941185,
-0.06295737624168396,
0.043460097163915634,
-0.19746042788028717,
0.01622280478477478,
0.07437102496623993,
0.03380323946475983,
0.13995398581027985,
-0.07922359555959702,
-0.13042087852954865,
0.09683644026517868,
-0.035058289766311646,
0.041506923735141754,
0.008695368655025959,
-0.11324984580278397,
-0.09804335236549377,
-0.1851748526096344,
0.017394503578543663,
-0.1025691032409668,
-0.10210909694433212,
-0.1572333425283432,
0.07227234542369843,
0.03292802348732948,
-0.00965343788266182,
0.03939975053071976,
0.07632820308208466,
-0.07990303635597229,
0.11402181535959244,
0.1212380975484848,
-0.0858004093170166,
-0.04800939932465553,
0.1101500391960144,
-0.044810086488723755,
0.22591321170330048,
0.14179667830467224,
0.025822853669524193,
0.050357360392808914,
0.06617425382137299,
0.024693166837096214,
-0.38178905844688416,
-0.014406890608370304,
-0.09381981939077377,
0.07512784004211426,
-0.0340164415538311,
0.04432819038629532,
-0.09714353084564209,
-0.04513179883360863,
0.037007350474596024,
-0.05213820934295654,
0.04790275916457176,
0.022697925567626953,
-0.06965035200119019,
0.08942445367574692,
0.03768724575638771,
-0.04245617240667343,
-0.011714314110577106,
0.046864718198776245,
-0.04406154528260231,
-0.08176100999116898,
-0.20502232015132904,
0.09211955964565277,
-0.022454530000686646,
0.06202351674437523,
-0.0615629144012928,
-0.03662814572453499,
-0.19245192408561707,
-0.12153801321983337,
0.005632762797176838,
0.08001293987035751,
0.12956367433071136,
0.17027901113033295,
0.2615703046321869,
0.007838455028831959,
-0.13433748483657837,
0.06697673350572586,
-0.014125611633062363,
-0.033186912536621094,
0.34834733605384827,
0.177168071269989,
-0.05317208170890808,
0.0030735312029719353,
0.015890061855316162,
-0.03606260567903519,
0.21826225519180298,
0.18300248682498932,
0.09871257096529007,
-0.10680161416530609,
0.16183532774448395,
0.0736815556883812,
0.10632666945457458,
0.06645626574754715,
-0.05005074292421341,
-0.11645817756652832,
-0.03410528227686882,
0.06809323281049728,
-0.02221183106303215,
-0.32832494378089905,
7.307146461243974e-7,
-0.07118913531303406,
0.14718198776245117,
-0.05750929191708565,
0.02797647751867771,
0.13967294991016388,
0.004300449509173632,
-0.21258336305618286,
0.23963811993598938,
0.009950608015060425,
0.1750781387090683,
0.03842325881123543,
-0.061069224029779434,
-0.03553749993443489,
-0.07642698287963867,
-0.08052320778369904,
-0.12548774480819702,
0.10573512315750122,
0.07370927929878235,
-0.15352894365787506,
0.09475104510784149,
-0.07608285546302795,
-0.07269799709320068,
0.06546293199062347,
0.11856900900602341,
0.06761433184146881,
0.023254720494151115,
-0.058844372630119324,
0.06511596590280533,
-0.03454619646072388,
0.043119266629219055,
-0.023012753576040268,
0.15993231534957886,
0.07576884329319,
-0.11325983703136444,
-0.01114825252443552,
0.031160913407802582,
0.014025155454874039,
-0.03386620059609413,
-0.14035557210445404,
0.06764334440231323,
0.044395335018634796,
0.05555462837219238,
0.012621701695024967,
-0.0678606927394867,
0.13293461501598358,
0.10160898417234421,
-0.027718449011445045,
0.11619576811790466,
-0.14446300268173218,
-0.03227321058511734,
0.2665061056613922,
-0.025737214833498,
-0.06868511438369751,
0.019521409645676613,
-0.09782958775758743,
0.10696577280759811,
-0.05167514458298683,
0.1771804690361023,
0.1270166039466858,
-0.17781215906143188,
-0.028955969959497452,
-0.14257517457008362,
0.04244747757911682,
0.15634265542030334,
0.025198031216859818,
0.04257572069764137,
-0.1135333776473999,
7.767923809622918e-35,
0.0010019814362749457,
0.1484070122241974,
0.05080913379788399,
-0.1977914571762085,
0.15436019003391266,
-0.18274463713169098,
0.09440279752016068,
0.013231108896434307,
-0.024739865213632584,
-0.07113276422023773,
-0.16292357444763184
] |
https://github.com/huggingface/datasets/issues/2472 | Fix automatic generation of Zenodo DOI | Other repo maintainers had the same problem with Zenodo.
There is an open issue on their GitHub repo: zenodo/zenodo#2181 | After the last release of Datasets (1.8.0), the automatic generation of the Zenodo DOI failed: it appears in yellow as "Received", instead of in green as "Published".
I have contacted Zenodo support to fix this issue.
TODO:
- [x] Check with Zenodo to fix the issue
- [x] Check BibTeX entry is right | 19 | Fix automatic generation of Zenodo DOI
After the last release of Datasets (1.8.0), the automatic generation of the Zenodo DOI failed: it appears in yellow as "Received", instead of in green as "Published".
I have contacted Zenodo support to fix this issue.
TODO:
- [x] Check with Zenodo to fix the issue
- [x] Check BibTeX entry is right
Other repo maintainers had the same problem with Zenodo.
There is an open issue on their GitHub repo: zenodo/zenodo#2181 | [
-0.030836673453450203,
0.22597210109233856,
-0.07392643392086029,
0.0091165816411376,
0.12053202837705612,
0.0833791196346283,
-0.027026165276765823,
0.09423606097698212,
-0.14340750873088837,
0.13460180163383484,
0.06388501077890396,
0.112329863011837,
-0.02539570815861225,
-0.043725185096263885,
-0.12561538815498352,
0.027689967304468155,
-0.14031702280044556,
0.13881582021713257,
-0.008678501471877098,
-0.01462341658771038,
-0.11712967604398727,
0.15700671076774597,
0.13098567724227905,
-0.11245512962341309,
0.14349567890167236,
-0.10742507129907608,
-0.09618313610553741,
-0.10512952506542206,
-0.09729427844285965,
-0.17430199682712555,
0.05972059816122055,
0.18514780700206757,
-0.19254258275032043,
0.08699596673250198,
0.000005173872523300815,
-0.15519793331623077,
0.0019786409102380276,
0.07841489464044571,
0.03383133187890053,
-0.06749064475297928,
-0.11277959495782852,
-0.2095525562763214,
-0.028002895414829254,
-0.02296367660164833,
0.14137227833271027,
-0.04985874146223068,
0.04737105965614319,
0.14455363154411316,
-0.09747041761875153,
0.16846144199371338,
0.09411217272281647,
0.09330736845731735,
0.3129315972328186,
-0.14936313033103943,
0.09200576692819595,
0.12257092446088791,
0.014549694024026394,
0.10837212949991226,
-0.2480606883764267,
0.19482041895389557,
0.07038692384958267,
0.11458799242973328,
-0.14584720134735107,
0.09982950240373611,
-0.223580002784729,
-0.09288174659013748,
-0.009104081429541111,
-0.17974062263965607,
0.057166073471307755,
0.11386590451002121,
0.11196968704462051,
0.03421584889292717,
-0.03655312955379486,
0.03573467954993248,
-0.03460048884153366,
-0.03223937377333641,
-0.007233973126858473,
-0.0458097867667675,
0.024598807096481323,
0.021019956097006798,
-0.004097043536603451,
-0.09862382709980011,
0.05983569100499153,
0.00016249591135419905,
0.0322270505130291,
0.11926569044589996,
-0.11993574351072311,
0.059145499020814896,
0.009193385019898415,
-0.1618596613407135,
0.2158929854631424,
-0.014607476070523262,
-0.1864279806613922,
-0.0626145675778389,
0.1314021199941635,
0.09728863090276718,
0.0075737107545137405,
-0.14458569884300232,
0.14410531520843506,
-0.00008109347254503518,
0.12337788939476013,
0.011040294542908669,
-0.04824431613087654,
-0.09106177091598511,
-0.05809994786977768,
0.13137415051460266,
0.07927323132753372,
-0.13632696866989136,
0.11225965619087219,
0.07727187126874924,
0.11272444576025009,
0.09185260534286499,
0.12668602168560028,
-0.16857469081878662,
0.14334659278392792,
0.06809677928686142,
0.057389575988054276,
-0.024685140699148178,
-0.04351893812417984,
-0.027812423184514046,
0.1401488482952118,
0.042655181139707565,
-0.32282504439353943,
-0.05447370558977127,
-0.08158336579799652,
0.05645110085606575,
0.13486939668655396,
0.09070988744497299,
-0.1487022042274475,
-0.017736049368977547,
-0.07119759172201157,
-0.04248892515897751,
0.11173934489488602,
0.053630247712135315,
-0.04380660504102707,
-0.10615162551403046,
0.0007526454865001142,
0.16788730025291443,
0.1110725849866867,
-0.09457813203334808,
-0.03261714056134224,
-0.005708477459847927,
0.019684337079524994,
0.09199207276105881,
0.11666281521320343,
0.09549234062433243,
0.19117504358291626,
-0.10269320011138916,
-0.017906514927744865,
0.0706116184592247,
-0.16303427517414093,
0.08399682492017746,
-0.34994491934776306,
-0.004155156668275595,
-0.15360744297504425,
-0.07962106168270111,
0.3286033570766449,
0.03915376588702202,
-0.024703947827219963,
-0.19821955263614655,
-0.1278396099805832,
0.12035730481147766,
0.13561291992664337,
0.01030657533556223,
0.20629675686359406,
0.10084408521652222,
0.25852978229522705,
-0.0055035012774169445,
-0.10508957505226135,
0.11913258582353592,
0.17019030451774597,
-0.10926230251789093,
0.02956554852426052,
0.07752671092748642,
-0.14833077788352966,
0.08596259355545044,
0.00509957130998373,
-0.06759287416934967,
-0.125955730676651,
-0.14216060936450958,
0.027904005721211433,
-0.1431276500225067,
-0.1920742243528366,
-0.07554259896278381,
0.08103381097316742,
0.1578589230775833,
-0.14338839054107666,
0.03282344341278076,
-0.00434079859405756,
-0.03996919095516205,
-0.09507210552692413,
-0.06903604418039322,
-0.15860731899738312,
-0.06390970200300217,
0.050736203789711,
0.11942106485366821,
0.0047006732784211636,
0.09644462168216705,
-0.015034493990242481,
0.14245329797267914,
-0.04080922156572342,
-0.11824262142181396,
0.03643001243472099,
-0.07447578758001328,
0.060565076768398285,
-0.09656841307878494,
0.025442736223340034,
0.054019443690776825,
0.3244194984436035,
0.05697541683912277,
-0.10689876228570938,
-0.11322452872991562,
-0.20348824560642242,
-0.046955086290836334,
-0.24131429195404053,
0.03130672127008438,
0.008876875042915344,
0.024907032027840614,
-0.11025084555149078,
0.07622082531452179,
0.06882631778717041,
0.09582404792308807,
-0.04830532893538475,
0.08893459290266037,
0.004830989986658096,
-0.034647028893232346,
-0.06255524605512619,
-0.04730900004506111,
0.16700027883052826,
0.08012298494577408,
-0.02011125348508358,
0.07136371731758118,
-0.040898580104112625,
0.18735991418361664,
-0.11133647710084915,
0.047998614609241486,
0.12987448275089264,
-0.050438836216926575,
0.18679271638393402,
-0.05535195395350456,
0.009887113235890865,
-0.0023161706048995256,
-0.17830318212509155,
0.09114397317171097,
0.08571353554725647,
-0.10211227834224701,
-0.1716630756855011,
-0.04119975119829178,
-0.017434336245059967,
0.089943066239357,
0.26569420099258423,
0.047700293362140656,
-0.10918931663036346,
-0.15772803127765656,
-0.07687665522098541,
-0.13766808807849884,
0.0070607466623187065,
0.14397674798965454,
-0.08772119134664536,
0.26033759117126465,
0.1992996782064438,
0.08294039964675903,
-0.02397923916578293,
0.05992180109024048,
0.15233035385608673,
0.0273112989962101,
0.01973239704966545,
0.22502876818180084,
-0.04620775580406189,
0.14722052216529846,
-0.041135940700769424,
-0.005777193699032068,
-0.1668386161327362,
-0.0876580998301506,
0.02039007842540741,
-0.03546704351902008,
0.19509102404117584,
0.10051935911178589,
-0.04864069074392319,
0.010725073516368866,
-0.3359050154685974,
0.12423476576805115,
0.06863779574632645,
0.07862211763858795,
0.03548445552587509,
-0.07746032625436783,
-0.03178846463561058,
0.1970977485179901,
-0.16364379227161407,
0.06843236088752747,
-0.139846533536911,
-0.09663307666778564,
0.11426157504320145,
-0.03907295688986778,
0.047970000654459,
0.011408641934394836,
-0.00631938548758626,
0.04447421431541443,
-0.03543626144528389,
0.06239718198776245,
-0.05664413422346115,
0.12027271836996078,
0.005878751631826162,
-0.06523431837558746,
-0.11685354262590408,
-0.134259894490242,
0.2708490192890167,
-0.19704408943653107,
-0.1159898191690445,
-0.32904237508773804,
0.052592743188142776,
-0.07224567979574203,
0.14480645954608917,
0.0330493301153183,
0.009570134803652763,
0.03549177944660187,
0.04138187691569328,
-0.09398288279771805,
-0.0035450283903628588,
0.10976990312337875,
-0.11090430617332458,
-0.06016857922077179,
-0.18682943284511566,
0.10393835604190826,
0.04688766226172447,
-0.15249305963516235,
-0.01099031325429678,
-0.07605763524770737,
-0.11865217238664627,
0.00261920434422791,
0.19174674153327942,
0.13450439274311066,
0.013224971480667591,
-0.23841460049152374,
0.052405163645744324,
-0.1792113035917282,
-0.048025958240032196,
-0.1445630043745041,
0.24749210476875305,
-0.03353581205010414,
0.10924476385116577,
-0.007077875547111034,
-0.033510930836200714,
0.14483223855495453,
0.11920180171728134,
-0.052286457270383835,
0.13093201816082,
0.09053045511245728,
0.1309618204832077,
-0.07135172933340073,
0.023359866812825203,
0.11176681518554688,
0.01562797650694847,
-0.17359739542007446,
-0.09123249351978302,
-0.015601380728185177,
-0.09745475649833679,
-0.015570320188999176,
0.0428975448012352,
0.03499407693743706,
-0.12584932148456573,
0.0019181156530976295,
0.2852759063243866,
-0.1333724558353424,
0.01807730831205845,
0.08837995678186417,
0.07530365139245987,
0.1695350557565689,
-0.013219017535448074,
-0.14753881096839905,
-0.09447310864925385,
0.05278778821229935,
-0.03485255315899849,
0.2278497815132141,
0.07651884853839874,
-0.12657496333122253,
-0.03435178101062775,
-0.04327154904603958,
-0.07572299242019653,
-0.03497469797730446,
-0.06432855129241943,
-0.0828794464468956,
0.07452142983675003,
0.05170324444770813,
0.08148140460252762,
-0.10726482421159744,
-0.13237819075584412,
0.030310330912470818,
-0.18542355298995972,
-0.014516732655465603,
0.08828150480985641,
0.11520769447088242,
0.1379692405462265,
0.014971739612519741,
-0.04080544039607048,
-0.054552629590034485,
0.03054632991552353,
-0.06682872027158737,
0.05126284435391426,
0.0885772705078125,
-0.06406904011964798,
0.11336038261651993,
-0.09275051951408386,
0.059120528399944305,
0.05391814559698105,
0.2046419084072113,
0.07979234308004379,
0.07594356685876846,
-0.02372126653790474,
0.06904341280460358,
-0.0015028190100565553,
0.20104210078716278,
-0.06450536847114563,
-0.02982311137020588,
0.14403130114078522,
-0.13568054139614105,
0.03540918976068497,
-0.044702354818582535,
0.1296112835407257,
-0.07532209903001785,
-0.046016667038202286,
-0.03968076780438423,
-0.05137839540839195,
-0.016272753477096558,
-0.04064011573791504,
-0.06437649577856064,
0.023630604147911072,
0.02032557874917984,
-0.017765309661626816,
-0.22563977539539337,
0.13555899262428284,
0.016290199011564255,
0.07723274827003479,
0.24328136444091797,
-0.019686801359057426,
0.000021754374756710604,
-0.025075603276491165,
-0.12149409204721451,
-0.2597329318523407,
-0.1606149822473526,
-0.12794561684131622,
-0.13698643445968628,
0.08621660619974136,
0.000763879856094718,
-0.03385332599282265,
-0.014892620965838432,
-0.13513000309467316,
0.023061789572238922,
0.11721908301115036,
0.03573337569832802,
-0.12052133679389954,
-0.20006808638572693,
-0.06197996437549591,
-0.12917783856391907,
-0.010614458471536636,
-0.04081737622618675,
0.2210765779018402,
0.03114924021065235,
-0.009569939225912094,
0.06959190964698792,
0.0019518089247867465,
-0.01890026591718197,
-0.14080065488815308,
-0.022987578064203262,
-0.06705334782600403,
-0.0016354895196855068,
0.2845923602581024,
-0.10605750977993011,
-0.029709693044424057,
-0.18773192167282104,
-0.2105264961719513,
0.002118881093338132,
0.06196407973766327,
0.11416996270418167,
0.19764426350593567,
-0.010346404276788235,
-0.14863081276416779,
0.05761781707406044,
-0.08505921065807343,
0.034463733434677124,
0.10560023039579391,
-0.008584104478359222,
0.016523851081728935,
0.04186992347240448,
-0.2289298176765442,
-0.16962066292762756,
-0.12077310681343079,
0.1395762413740158,
0.0007999736699275672,
0.009448317810893059,
-0.013007541187107563,
-0.149870365858078,
-0.004702809266746044,
0.18763667345046997,
0.03623459115624428,
-0.22589895129203796,
0.057010870426893234,
-0.30045178532600403,
0.11617235839366913,
0.06827585399150848,
0.1244421899318695,
-0.1415267437696457,
0.16651137173175812,
0.10264768451452255,
-0.04300796240568161,
-0.024167951196432114,
0.0878315269947052,
-0.003422406269237399,
0.08285769820213318,
-0.034705765545368195,
-0.15736129879951477,
0.058818478137254715,
-0.09410080313682556,
-0.0811779573559761,
-0.12491592019796371,
0.1389194279909134,
0.07610225677490234,
0.029255367815494537,
0.06947366893291473,
-0.015818903222680092,
-0.06547717750072479,
-0.014979822561144829,
-0.0693240836262703,
-0.08435466140508652,
0.20703159272670746,
-0.08154962211847305,
0.01980210840702057,
-0.02049844153225422,
0.17089888453483582,
0.19551900029182434,
0.27913913130760193,
0.12945184111595154,
-0.18782682716846466,
-0.1734987497329712,
-0.09310917556285858,
0.015641486272215843,
-0.014388622716069221,
-0.06239035725593567,
-0.07280895859003067,
-0.06673189997673035,
0.08903947472572327,
-0.32733792066574097,
-0.10865876078605652,
0.06653767079114914,
0.005068416707217693,
-0.04002527892589569,
-0.036029692739248276,
0.006297926418483257,
-0.23929034173488617,
-0.1727270781993866,
0.1527697890996933,
0.10863786935806274,
-0.0811399519443512,
-0.03409980982542038,
-0.037001512944698334,
-2.3619109543420342e-32,
-0.10516686737537384,
0.0550406388938427,
-0.11790439486503601,
-0.0016026366502046585,
-0.002551347017288208,
-0.11013254523277283,
-0.02641320787370205,
-0.07809775322675705,
-0.04705750197172165,
-0.07656969130039215,
0.09732208400964737,
-0.051297370344400406,
-0.008099732920527458,
-0.07369498908519745,
0.1675727516412735,
0.21081918478012085,
0.027559919282794,
-0.25201737880706787,
-0.06283458322286606,
-0.057884205132722855,
0.06552508473396301,
-0.0593266598880291,
-0.05242668092250824,
-0.007009417284280062,
0.14910516142845154,
0.05140971392393112,
-0.1839970201253891,
0.048717204481363297,
-0.02716217376291752,
-0.06675492972135544,
0.053960997611284256,
-0.09172312170267105,
-0.0336449034512043,
0.025097409263253212,
-0.14950674772262573,
-0.1706921011209488,
-0.09003536403179169,
0.04946069046854973,
-0.19562551379203796,
0.023930009454488754,
0.07517904788255692,
0.034952472895383835,
0.13593724370002747,
-0.07763347029685974,
-0.1329346001148224,
0.09654483199119568,
-0.039723873138427734,
0.056274205446243286,
0.0005508407484740019,
-0.10620404779911041,
-0.10772174596786499,
-0.1809699833393097,
0.012484041042625904,
-0.10330715775489807,
-0.1117880567908287,
-0.156442329287529,
0.08845202624797821,
0.031981971114873886,
-0.010649447329342365,
0.03952858969569206,
0.08778756111860275,
-0.09189847111701965,
0.12438179552555084,
0.131832093000412,
-0.07497677952051163,
-0.05838698148727417,
0.0929434522986412,
-0.04494456201791763,
0.22816850244998932,
0.14507706463336945,
0.01657709665596485,
0.03202488645911217,
0.0763431042432785,
0.03190390393137932,
-0.3660961091518402,
-0.014648170210421085,
-0.09636621177196503,
0.07387426495552063,
-0.017088232561945915,
0.04818759858608246,
-0.1075410395860672,
-0.04021700099110603,
0.033708374947309494,
-0.046694546937942505,
0.046784646809101105,
0.0283267293125391,
-0.07996410131454468,
0.09341664612293243,
0.04536502808332443,
-0.05948450043797493,
-0.030846402049064636,
0.06290040165185928,
-0.057902559638023376,
-0.06927614659070969,
-0.20815333724021912,
0.0724734216928482,
-0.023830708116292953,
0.05742552503943443,
-0.06007007881999016,
-0.04365021735429764,
-0.18992479145526886,
-0.11115887016057968,
0.015149208717048168,
0.08854223042726517,
0.1356564462184906,
0.19076350331306458,
0.26218506693840027,
-0.00036947958869859576,
-0.1343861222267151,
0.07202538847923279,
-0.0031047239899635315,
-0.021195605397224426,
0.3548053801059723,
0.1750878393650055,
-0.0569230318069458,
-0.006637810729444027,
0.020654913038015366,
-0.03535444661974907,
0.21112637221813202,
0.17805691063404083,
0.11150873452425003,
-0.10425763577222824,
0.1538301408290863,
0.06957662105560303,
0.09744866192340851,
0.07759818434715271,
-0.022041132673621178,
-0.11816059798002243,
-0.042042434215545654,
0.09297774732112885,
-0.026194781064987183,
-0.3334898352622986,
7.307921237043047e-7,
-0.0724760890007019,
0.14604459702968597,
-0.06081155315041542,
0.028268493711948395,
0.12977460026741028,
-0.0052276295609772205,
-0.21406424045562744,
0.23567001521587372,
0.005943458992987871,
0.14058378338813782,
0.03826763853430748,
-0.05909314751625061,
-0.02507101371884346,
-0.07916740328073502,
-0.08276793360710144,
-0.11710844933986664,
0.12465126067399979,
0.09817515313625336,
-0.16624201834201813,
0.09546719491481781,
-0.06318432092666626,
-0.07964686304330826,
0.05009153112769127,
0.11448495090007782,
0.07478877156972885,
0.0416988767683506,
-0.06873135268688202,
0.03411385789513588,
-0.04351941868662834,
0.03887981176376343,
-0.011566589586436749,
0.15563048422336578,
0.07322090864181519,
-0.11836355924606323,
-0.021996960043907166,
0.03770368918776512,
-0.0012409570626914501,
-0.020887305960059166,
-0.1371598243713379,
0.05950095131993294,
0.05093130096793175,
0.04059465602040291,
0.0036951706279069185,
-0.03931305557489395,
0.13099274039268494,
0.0965476781129837,
-0.041462741792201996,
0.10584032535552979,
-0.14615963399410248,
-0.03441115841269493,
0.268685519695282,
-0.02751902863383293,
-0.06888792663812637,
0.021799037232995033,
-0.0961320623755455,
0.09068497270345688,
-0.04853666201233864,
0.16458065807819366,
0.12743902206420898,
-0.1708466112613678,
-0.026852384209632874,
-0.14389511942863464,
0.05202871561050415,
0.16574013233184814,
0.03634052351117134,
0.043654609471559525,
-0.12379514425992966,
1.194948552739656e-34,
0.015456837601959705,
0.1348651498556137,
0.06154871731996536,
-0.2023019641637802,
0.16099606454372406,
-0.19236063957214355,
0.09718125313520432,
0.03121250867843628,
-0.03306658938527107,
-0.08837325125932693,
-0.17787879705429077
] |
https://github.com/huggingface/datasets/issues/2472 | Fix automatic generation of Zenodo DOI | I have received the following request from Zenodo support:
> Could you send us the link to the repository as well as the release tag?
My reply:
> Sure, here it is:
> - Link to the repository: https://github.com/huggingface/datasets
> - Link to the repository at the release tag: https://github.com/huggingface/datasets/releases/tag/1.8.0
> - Release tag: 1.8.0 | After the last release of Datasets (1.8.0), the automatic generation of the Zenodo DOI failed: it appears in yellow as "Received", instead of in green as "Published".
I have contacted Zenodo support to fix this issue.
TODO:
- [x] Check with Zenodo to fix the issue
- [x] Check BibTeX entry is right | 55 | Fix automatic generation of Zenodo DOI
After the last release of Datasets (1.8.0), the automatic generation of the Zenodo DOI failed: it appears in yellow as "Received", instead of in green as "Published".
I have contacted Zenodo support to fix this issue.
TODO:
- [x] Check with Zenodo to fix the issue
- [x] Check BibTeX entry is right
I have received the following request from Zenodo support:
> Could you send us the link to the repository as well as the release tag?
My reply:
> Sure, here it is:
> - Link to the repository: https://github.com/huggingface/datasets
> - Link to the repository at the release tag: https://github.com/huggingface/datasets/releases/tag/1.8.0
> - Release tag: 1.8.0 | [
0.0026867962442338467,
0.19820664823055267,
-0.11288221925497055,
0.031412627547979355,
0.14216217398643494,
0.07660891115665436,
-0.013357538729906082,
0.03775378689169884,
-0.08712104707956314,
0.13135728240013123,
0.05527409166097641,
0.11930388957262039,
0.009744297713041306,
0.062115639448165894,
-0.07538707554340363,
0.005820810794830322,
-0.13346494734287262,
0.1425095647573471,
-0.024576827883720398,
-0.048563264310359955,
-0.0454086996614933,
0.12271546572446823,
0.1261446177959442,
-0.1360015720129013,
0.09945723414421082,
-0.08896929770708084,
-0.10143469274044037,
-0.1113140732049942,
-0.0797138512134552,
-0.19116157293319702,
0.09750733524560928,
0.1813848614692688,
-0.18298405408859253,
0.07947468012571335,
0.000005093039817438694,
-0.13100844621658325,
-0.02545730397105217,
0.10013653337955475,
0.00785493478178978,
-0.0979735478758812,
-0.08884070813655853,
-0.1746281087398529,
-0.055561576038599014,
-0.016326647251844406,
0.09725712984800339,
-0.04252660647034645,
0.0436076857149601,
0.15770667791366577,
-0.024619778618216515,
0.14248287677764893,
0.10412926971912384,
0.12583181262016296,
0.3044290840625763,
-0.15293724834918976,
0.1455942988395691,
0.1691504865884781,
0.017339054495096207,
0.1289103478193283,
-0.22668689489364624,
0.24018380045890808,
0.08200129121541977,
0.150967076420784,
-0.09346955269575119,
0.11634891480207443,
-0.14209012687206268,
-0.0821826308965683,
-0.05425024405121803,
-0.23737800121307373,
0.036518845707178116,
0.11775057762861252,
0.15866747498512268,
0.0322694294154644,
-0.03290541470050812,
0.07183345407247543,
-0.008349567651748657,
-0.06396959722042084,
-0.03187372162938118,
-0.07124076783657074,
0.08504410088062286,
0.01518104039132595,
-0.04440377652645111,
-0.14417654275894165,
0.10893496125936508,
-0.0664493516087532,
0.02490709163248539,
0.12064553052186966,
-0.12495148926973343,
0.05965109169483185,
0.019056148827075958,
-0.17822064459323883,
0.13307887315750122,
-0.03571343049407005,
-0.1811625063419342,
-0.01596030965447426,
0.1593543142080307,
0.12098179757595062,
-0.05189230665564537,
-0.13997401297092438,
0.1632523238658905,
-0.0249069482088089,
0.1155734434723854,
-0.0066852266900241375,
-0.08915114402770996,
-0.11949547380208969,
-0.05248704180121422,
0.11520949751138687,
0.12934176623821259,
-0.13374994695186615,
0.10482826828956604,
0.10957840085029602,
0.15131935477256775,
0.05683936923742294,
0.12945209443569183,
-0.14561361074447632,
0.05165505036711693,
0.10396824777126312,
0.07126346975564957,
-0.019756490364670753,
-0.015980515629053116,
0.004968263208866119,
0.11956796795129776,
0.010191376321017742,
-0.3349912464618683,
-0.042352091521024704,
-0.13661755621433258,
0.0059550441801548,
0.09643242508172989,
0.09029890596866608,
-0.10894428938627243,
-0.09121094644069672,
-0.0692054033279419,
-0.0308018047362566,
0.10885903239250183,
0.06353375315666199,
-0.026769883930683136,
-0.1212654635310173,
0.018691254779696465,
0.2012183964252472,
0.06152724474668503,
-0.04924339801073074,
-0.026756595820188522,
-0.006429071072489023,
-0.01518308650702238,
0.0644710585474968,
0.12037763744592667,
0.09703439474105835,
0.16605156660079956,
-0.06096832454204559,
-0.022799523547291756,
0.05924755707383156,
-0.17205150425434113,
0.1334429234266281,
-0.3645766079425812,
-0.030544808134436607,
-0.10387186706066132,
-0.05577608942985535,
0.2811647057533264,
0.000938405457418412,
-0.051320746541023254,
-0.1669512540102005,
-0.10875387489795685,
0.14398491382598877,
0.12892527878284454,
0.015397774986922741,
0.22205419838428497,
0.14077673852443695,
0.24688620865345,
-0.006125358399003744,
-0.010436316020786762,
0.06638678163290024,
0.12672440707683563,
-0.07374586164951324,
0.000977116753347218,
0.09222567081451416,
-0.11473271250724792,
0.07174093276262283,
0.017849866300821304,
-0.09011773020029068,
-0.15815308690071106,
-0.18690241873264313,
-0.04828363284468651,
-0.17310714721679688,
-0.18509045243263245,
-0.07261659950017929,
0.0995808020234108,
0.12076859921216965,
-0.11655857414007187,
-0.029450083151459694,
0.008394449017941952,
-0.022117527201771736,
-0.09639079868793488,
-0.055418193340301514,
-0.12345763295888901,
-0.0458652563393116,
0.030749043449759483,
0.11044855415821075,
0.037829428911209106,
0.0668262466788292,
-0.006993657909333706,
0.12982091307640076,
-0.07698775827884674,
-0.11903633922338486,
0.036789506673812866,
-0.0346468947827816,
0.03203793242573738,
-0.1372247040271759,
-0.0053659463301301,
0.03398600220680237,
0.2960614860057831,
0.05528777465224266,
-0.1617308408021927,
-0.15325698256492615,
-0.21741241216659546,
-0.020082147791981697,
-0.24121013283729553,
0.061254601925611496,
-0.0188215933740139,
0.03608078882098198,
-0.08088437467813492,
0.1259147673845291,
0.04808749258518219,
0.05902336910367012,
0.012360704131424427,
0.088002048432827,
-0.041778452694416046,
-0.02274680882692337,
-0.026374587789177895,
-0.02961035631597042,
0.17190764844417572,
0.045120615512132645,
0.019040243700146675,
0.05023152753710747,
-0.0044589657336473465,
0.17068684101104736,
-0.13470427691936493,
0.07486828416585922,
0.1410267949104309,
-0.04870638623833656,
0.23290039598941803,
-0.036120157688856125,
0.03969147056341171,
-0.04693566635251045,
-0.18554602563381195,
0.069215789437294,
0.0835537388920784,
-0.11073438823223114,
-0.21142829954624176,
-0.04398418962955475,
-0.04105624184012413,
0.09172292798757553,
0.25667962431907654,
0.07140428572893143,
-0.14582617580890656,
-0.07551821321249008,
-0.07598382234573364,
-0.17276425659656525,
0.0507679246366024,
0.17296244204044342,
-0.11584087461233139,
0.24194678664207458,
0.21039728820323944,
0.07070125639438629,
-0.03551128879189491,
0.07118158042430878,
0.14600805938243866,
0.03483530879020691,
0.0026258709840476513,
0.21545766294002533,
-0.0693403109908104,
0.1288588047027588,
-0.030322935432195663,
0.011102329008281231,
-0.15736153721809387,
-0.09200554341077805,
0.023107150569558144,
-0.06133819371461868,
0.20900969207286835,
0.07231730222702026,
-0.057056501507759094,
0.04439593106508255,
-0.2778904438018799,
0.12409589439630508,
0.06137547641992569,
0.04053603485226631,
0.051518190652132034,
-0.10100574046373367,
-0.034492552280426025,
0.15214857459068298,
-0.1767435073852539,
0.023002469912171364,
-0.17379994690418243,
-0.038955364376306534,
0.09452401101589203,
-0.0981002002954483,
0.03188004717230797,
0.03262562304735184,
0.016167616471648216,
0.04120038077235222,
-0.06549078971147537,
0.10534867644309998,
-0.07114101201295853,
0.1275835782289505,
0.01432671956717968,
-0.06986536830663681,
-0.13150984048843384,
-0.12513777613639832,
0.2580967843532562,
-0.1798492819070816,
-0.09484884142875671,
-0.39919915795326233,
0.11538554728031158,
-0.0997108519077301,
0.1162441074848175,
0.002378190867602825,
0.036930426955223083,
0.035026539117097855,
0.07221367955207825,
-0.058635976165533066,
-0.018281888216733932,
0.13858172297477722,
-0.11672309041023254,
-0.07824584096670151,
-0.21669349074363708,
0.11621521413326263,
0.05242422968149185,
-0.18272456526756287,
0.040892817080020905,
-0.059653155505657196,
-0.07604311406612396,
-0.02111091837286949,
0.15652479231357574,
0.1663575917482376,
-0.02388913556933403,
-0.21695047616958618,
0.06922120600938797,
-0.188949853181839,
-0.0809914767742157,
-0.16508321464061737,
0.22988168895244598,
0.0006549797253683209,
0.07196973264217377,
0.005432012025266886,
-0.015875812619924545,
0.23313115537166595,
0.13636432588100433,
-0.05756125971674919,
0.10515902191400528,
0.09557323902845383,
0.13472487032413483,
-0.1170157715678215,
0.04039303958415985,
0.10017857700586319,
0.0007609113235957921,
-0.1712242215871811,
-0.056568220257759094,
-0.08347956091165543,
-0.12650805711746216,
-0.01597730442881584,
0.015056824311614037,
0.10094964504241943,
-0.0991566926240921,
0.005383869633078575,
0.36291995644569397,
-0.09110792726278305,
-0.043843161314725876,
0.09341040998697281,
0.10685006529092789,
0.18028588593006134,
-0.014316563494503498,
-0.17578516900539398,
-0.1450941264629364,
0.04605340212583542,
-0.016806062310934067,
0.2350461184978485,
0.08192157745361328,
-0.036218054592609406,
-0.047583095729351044,
-0.10381809622049332,
-0.09930245578289032,
-0.06216954067349434,
-0.08228661864995956,
-0.1313292533159256,
0.07938049733638763,
0.06269190460443497,
0.10731688141822815,
-0.04988082870841026,
-0.07441432774066925,
0.08120900392532349,
-0.1365472972393036,
0.00574539927765727,
0.08600366115570068,
0.10218515247106552,
0.12949109077453613,
-0.02335944026708603,
-0.028114277869462967,
-0.03164057806134224,
-0.040005993098020554,
-0.051296401768922806,
0.09397056698799133,
0.12489565461874008,
-0.05578465387225151,
0.2185184508562088,
-0.05999588221311569,
0.141664519906044,
0.0348944328725338,
0.2163156270980835,
0.13381144404411316,
0.1244494691491127,
-0.01835673674941063,
0.08268634229898453,
0.07296735048294067,
0.16781768202781677,
-0.08249877393245697,
-0.0235248114913702,
0.13514067232608795,
-0.16041934490203857,
0.07006936520338058,
-0.0017784804804250598,
0.11481847614049911,
-0.0940600261092186,
-0.04856069013476372,
-0.06000979617238045,
-0.04061861336231232,
-0.06362754106521606,
0.029920050874352455,
-0.005662393290549517,
0.044219665229320526,
-0.004325587302446365,
-0.03324860334396362,
-0.22466102242469788,
0.16029122471809387,
0.045319776982069016,
0.07601211965084076,
0.2751396894454956,
0.021042093634605408,
0.0666954442858696,
0.07650266587734222,
-0.114715076982975,
-0.2928294837474823,
-0.17128627002239227,
-0.14128480851650238,
-0.12990984320640564,
0.18731622397899628,
0.04773871600627899,
-0.020327752456068993,
0.037932004779577255,
-0.09821145236492157,
0.0793900266289711,
0.10845733433961868,
0.0292450450360775,
-0.1355842798948288,
-0.19963602721691132,
-0.09152428060770035,
-0.13819530606269836,
0.03934535011649132,
-0.04583771899342537,
0.18238471448421478,
0.09672742336988449,
-0.05281988903880119,
0.038491420447826385,
-0.004783820826560259,
-0.02111818641424179,
-0.16696065664291382,
0.026433933526277542,
-0.12673869729042053,
-0.06874895840883255,
0.35001569986343384,
-0.08619323372840881,
-0.027614079415798187,
-0.21636494994163513,
-0.18738338351249695,
0.014685841277241707,
0.05126647278666496,
0.07086989283561707,
0.22631263732910156,
-0.002850134624168277,
-0.12230494618415833,
0.05545949190855026,
-0.07211463898420334,
-0.016916189342737198,
0.12843340635299683,
-0.016907470300793648,
-0.02500317059457302,
-0.024228408932685852,
-0.23415185511112213,
-0.16790781915187836,
-0.05868863686919212,
0.10995879024267197,
-0.017879439517855644,
-0.012271901592612267,
-0.031707774847745895,
-0.21066401898860931,
-0.0048460084944963455,
0.07991977035999298,
-0.017430732026696205,
-0.1864466369152069,
0.04003957659006119,
-0.26385411620140076,
0.12120131403207779,
0.036030665040016174,
0.08912573754787445,
-0.11728428304195404,
0.1541997492313385,
0.042054276913404465,
-0.023647569119930267,
-0.0803268626332283,
0.04087425768375397,
-0.0019440462347120047,
0.10463417321443558,
-0.002839889610186219,
-0.13093052804470062,
0.06195385009050369,
-0.09173376113176346,
-0.10736106336116791,
-0.09116953611373901,
0.09312473982572556,
0.01858113706111908,
0.08946122974157333,
0.0394756905734539,
0.011411857791244984,
-0.04558524489402771,
-0.07641585171222687,
-0.04593818262219429,
-0.09091611951589584,
0.1226641833782196,
-0.055600445717573166,
0.018158359453082085,
0.01258165668696165,
0.1563086211681366,
0.13176262378692627,
0.21821418404579163,
0.11799716204404831,
-0.16107308864593506,
-0.1750940978527069,
-0.07646246999502182,
0.059024907648563385,
0.019620060920715332,
-0.0930371806025505,
-0.07845070213079453,
-0.11810440570116043,
0.12609811127185822,
-0.3072708547115326,
-0.07798713445663452,
0.10326199233531952,
0.011278161779046059,
-0.011641175486147404,
-0.02302393689751625,
0.049455802887678146,
-0.22107727825641632,
-0.2267007827758789,
0.16106244921684265,
0.1286620944738388,
-0.01005147211253643,
-0.011315526440739632,
-0.018088823184370995,
-2.4174060426443543e-32,
-0.12442465871572495,
0.08300893008708954,
-0.11759171634912491,
0.002764688804745674,
-0.020623071119189262,
-0.11185374855995178,
-0.06306104362010956,
-0.09957945346832275,
-0.06330087780952454,
-0.1165163516998291,
0.1549673080444336,
-0.026186320930719376,
0.010400702245533466,
-0.08492092043161392,
0.1878810077905655,
0.16280555725097656,
0.04221208393573761,
-0.2529812455177307,
-0.07417505979537964,
-0.03257783502340317,
0.09069976955652237,
-0.029395148158073425,
-0.05981374904513359,
0.04544483870267868,
0.18151316046714783,
0.0029927741270512342,
-0.20949015021324158,
0.054989252239465714,
0.026386428624391556,
-0.08135207742452621,
0.02274365909397602,
-0.12973497807979584,
-0.04302998632192612,
-0.03313182666897774,
-0.14997099339962006,
-0.13862240314483643,
-0.14341330528259277,
0.012851559557020664,
-0.23973114788532257,
0.04524492099881172,
0.16008076071739197,
0.0817958265542984,
0.11096751689910889,
-0.08339473605155945,
-0.1018618643283844,
0.06831573694944382,
-0.06299207359552383,
0.05518707260489464,
0.01749606430530548,
-0.11481509357690811,
-0.16072197258472443,
-0.1899348795413971,
0.04154533892869949,
-0.07876293361186981,
-0.03658254072070122,
-0.15405763685703278,
0.10018183290958405,
0.07198852300643921,
-0.02821369096636772,
-0.005890462081879377,
0.11362254619598389,
-0.08833812177181244,
0.11137823760509491,
0.1321323961019516,
-0.056621626019477844,
-0.09011758863925934,
0.01691322959959507,
-0.07001208513975143,
0.2102901190519333,
0.14904993772506714,
0.06629496812820435,
0.051680393517017365,
0.06743551045656204,
-0.045772768557071686,
-0.3784065246582031,
-0.038863688707351685,
-0.060515210032463074,
0.0772194117307663,
-0.022748610004782677,
0.0661761537194252,
-0.11710382252931595,
-0.03249901905655861,
0.07468144595623016,
-0.049327220767736435,
0.02240120619535446,
0.041143327951431274,
-0.08619841933250427,
0.08290752023458481,
0.045355141162872314,
-0.028612960129976273,
-0.022385889664292336,
0.06676001846790314,
-0.05945361405611038,
-0.07628624141216278,
-0.19927622377872467,
0.04767987132072449,
-0.014323502779006958,
0.07286357134580612,
-0.05544106662273407,
-0.034636665135622025,
-0.14610348641872406,
-0.1564999520778656,
0.05908863991498947,
0.0951145812869072,
0.13776789605617523,
0.1593545377254486,
0.28113988041877747,
0.030895808711647987,
-0.16905584931373596,
0.10683202743530273,
-0.01988941617310047,
-0.04076844081282616,
0.3161464035511017,
0.14580878615379333,
-0.08397666364908218,
0.008968017064034939,
0.043271858245134354,
-0.04897940531373024,
0.17821989953517914,
0.2087201178073883,
0.03657019883394241,
0.004300187341868877,
0.05134192481637001,
0.06318189948797226,
0.06483563035726547,
0.13443167507648468,
-0.012063052505254745,
-0.08342453092336655,
-0.08257885277271271,
0.06845632195472717,
-0.031464967876672745,
-0.31183502078056335,
7.132711061785812e-7,
-0.08568809926509857,
0.14415636658668518,
-0.04313148558139801,
0.05862520635128021,
0.15092790126800537,
0.04855228215456009,
-0.23821383714675903,
0.15082688629627228,
-0.016869748011231422,
0.10707047581672668,
0.013685381971299648,
-0.07097829878330231,
-0.03991056978702545,
-0.03745947405695915,
-0.07792260497808456,
-0.10824866592884064,
0.18999138474464417,
0.048344530165195465,
-0.19093894958496094,
0.06469234079122543,
-0.061306022107601166,
-0.06060444563627243,
0.07335954159498215,
0.13418307900428772,
0.08847536891698837,
0.048184629529714584,
-0.07642613351345062,
0.04337964206933975,
0.014391041360795498,
0.029451271519064903,
0.014079353772103786,
0.16005216538906097,
0.07517905533313751,
-0.14053018391132355,
-0.039245523512363434,
-0.06524726003408432,
-0.023831624537706375,
-0.002520666690543294,
-0.16963809728622437,
0.03503108397126198,
0.04323022440075874,
0.04783697798848152,
-0.010148908942937851,
-0.14706626534461975,
0.1540852189064026,
0.09624102711677551,
-0.045476723462343216,
0.1052197515964508,
-0.18128076195716858,
-0.037221428006887436,
0.2453145533800125,
-0.038117021322250366,
-0.0694381445646286,
0.06134085729718208,
-0.07573048770427704,
0.08773396164178848,
-0.03076835907995701,
0.12136723846197128,
0.1502467542886734,
-0.18246440589427948,
-0.030900372192263603,
-0.15093688666820526,
0.07080470025539398,
0.20357409119606018,
0.004467409569770098,
0.006133552175015211,
-0.14853695034980774,
9.511632499795396e-35,
-0.0005479012033902109,
0.12205006927251816,
0.022171074524521828,
-0.2143327295780182,
0.1205224096775055,
-0.22210225462913513,
0.11843591183423996,
0.02251286804676056,
-0.051022764295339584,
-0.05290002003312111,
-0.1583128571510315
] |
https://github.com/huggingface/datasets/issues/2470 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`. | Hi ! It looks like the issue comes from pyarrow. What version of pyarrow are you using ? How did you install it ? | ## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
| 24 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`.
## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
Hi ! It looks like the issue comes from pyarrow. What version of pyarrow are you using ? How did you install it ? | [
0.011318046599626541,
0.10271144658327103,
-0.012329691089689732,
0.041337139904499054,
0.35585370659828186,
-0.008259639143943787,
0.027178915217518806,
-0.024285394698381424,
-0.045940134674310684,
0.19255216419696808,
0.012394115328788757,
-0.07120618969202042,
-0.05647800490260124,
0.01065839547663927,
0.15428461134433746,
0.0018587977392598987,
0.003212282434105873,
-0.07804424315690994,
0.02795100025832653,
-0.045553285628557205,
-0.2427431344985962,
0.10322796553373337,
0.11582065373659134,
-0.023505279794335365,
-0.17480850219726562,
-0.08339650928974152,
-0.06927769631147385,
0.1469556838274002,
-0.062094613909721375,
-0.14161404967308044,
-0.09521027654409409,
-0.10965333878993988,
-0.078581303358078,
0.13445748388767242,
0.000005462626177177299,
0.013613193295896053,
0.152922123670578,
0.017314275726675987,
0.07565203309059143,
-0.14413583278656006,
0.12027613818645477,
-0.05901021882891655,
0.036386750638484955,
-0.03558122366666794,
0.1111254170536995,
-0.10033810883760452,
-0.0728636309504509,
0.02691679261624813,
0.030104074627161026,
0.030969973653554916,
0.011485633440315723,
-0.06988128274679184,
0.16840636730194092,
-0.11919539421796799,
0.08657075464725494,
0.13585339486598969,
0.07126352190971375,
-0.024714533239603043,
-0.06152790039777756,
-0.07760041952133179,
0.03317153826355934,
-0.07623549550771713,
-0.026876075193285942,
-0.08649050444364548,
-0.26287412643432617,
0.07856089621782303,
-0.13694274425506592,
-0.13494087755680084,
0.12879247963428497,
0.05371301621198654,
-0.0839691311120987,
0.005628677550703287,
-0.0038453543093055487,
0.04587414860725403,
0.0782821848988533,
-0.2174435406923294,
0.08440021425485611,
0.06432037055492401,
-0.05888541787862778,
0.006505592726171017,
-0.014321260154247284,
0.15123029053211212,
0.018211379647254944,
0.07182253897190094,
-0.12855783104896545,
0.03918042406439781,
-0.053875844925642014,
0.040131136775016785,
0.019138453528285027,
-0.043521951884031296,
-0.05605396255850792,
0.14521914720535278,
-0.056037936359643936,
-0.23264776170253754,
0.015223965048789978,
0.08502093702554703,
-0.05192882567644119,
-0.23044079542160034,
0.050112493336200714,
-0.16289234161376953,
-0.26157885789871216,
0.029163889586925507,
-0.07157561182975769,
0.08981592208147049,
0.0537668876349926,
-0.09503576904535294,
-0.09922144562005997,
0.031767722219228745,
0.01863969676196575,
-0.04919327050447464,
0.05335384979844093,
0.05546099692583084,
0.0010933415032923222,
0.148452028632164,
0.10996986925601959,
-0.06180198863148689,
0.14915141463279724,
0.054196685552597046,
0.07708295434713364,
0.22817249596118927,
-0.014569216407835484,
0.14687906205654144,
-0.09098395705223083,
-0.08815906941890717,
0.09930332750082016,
0.05326772853732109,
-0.05883299186825752,
-0.023153336718678474,
-0.1107243075966835,
0.04291268810629845,
-0.009935189038515091,
-0.08019617199897766,
-0.09199852496385574,
0.08993631601333618,
0.07912442088127136,
0.03385443985462189,
0.16544891893863678,
-0.1144985780119896,
-0.06407063454389572,
-0.14375512301921844,
0.0636783093214035,
-0.18420496582984924,
0.0632317066192627,
-0.01338804978877306,
0.022393563762307167,
0.08466543257236481,
0.1462847888469696,
0.06408056616783142,
0.13269132375717163,
-0.09620343893766403,
-0.20409834384918213,
0.13667704164981842,
-0.1973012089729309,
-0.008400543592870235,
-0.03812789544463158,
0.07564685493707657,
0.09688440710306168,
0.1443270593881607,
-0.17727170884609222,
-0.07171493768692017,
0.10887116938829422,
0.0174232367426157,
-0.0727027878165245,
-0.12810774147510529,
-0.004392923321574926,
0.08589428663253784,
-0.07014456391334534,
0.13117513060569763,
0.040640272200107574,
0.02530127391219139,
0.10549471527338028,
0.1207614317536354,
-0.007898584008216858,
-0.13572679460048676,
-0.08544068783521652,
0.13796116411685944,
-0.26035669445991516,
0.14572995901107788,
-0.44214779138565063,
0.014398849569261074,
0.047769177705049515,
-0.217201367020607,
-0.09423118084669113,
-0.19947932660579681,
0.27981066703796387,
-0.07490742951631546,
0.23323199152946472,
-0.02856704406440258,
-0.1806453913450241,
-0.07007158547639847,
-0.03311782330274582,
0.10062624514102936,
0.028522204607725143,
-0.0782817080616951,
0.06589697301387787,
-0.14028103649616241,
0.025308726355433464,
0.0233546681702137,
-0.1537470668554306,
-0.1302911788225174,
0.12961094081401825,
0.05940090864896774,
0.06205727532505989,
0.08109787106513977,
-0.07873395830392838,
-0.11471386253833771,
-0.17189791798591614,
0.06372011452913284,
0.04848369210958481,
-0.19960269331932068,
-0.19694840908050537,
0.1321173757314682,
0.07962091267108917,
0.27968111634254456,
-0.08537763357162476,
-0.13379749655723572,
-0.056877750903367996,
-0.0411541610956192,
-0.18773707747459412,
0.17824822664260864,
-0.13683703541755676,
-0.0049735805951058865,
0.09427136182785034,
0.03920120745897293,
0.02892465330660343,
-0.05700196698307991,
-0.022229209542274475,
-0.09445437043905258,
0.018175438046455383,
0.1442520022392273,
0.025259286165237427,
-0.023126253858208656,
0.12074825167655945,
-0.004289502277970314,
0.017956005409359932,
-0.08041554689407349,
-0.12156106531620026,
-0.1643897145986557,
0.09323947876691818,
-0.0736919492483139,
-0.08571893721818924,
0.01374682318419218,
-0.16658802330493927,
-0.1209726557135582,
0.14895805716514587,
-0.03495492413640022,
0.04516860842704773,
0.1323651671409607,
0.03969215974211693,
0.02681421861052513,
0.21486733853816986,
0.23553216457366943,
-0.1844327747821808,
0.006131927017122507,
0.05864637717604637,
-0.08047032356262207,
0.1430986225605011,
0.001401685643941164,
-0.029064087197184563,
-0.1135723665356636,
0.3059755265712738,
-0.07013478130102158,
0.04617808386683464,
-0.17463617026805878,
-0.04985174164175987,
-0.08011671900749207,
-0.02524368278682232,
0.0013868636451661587,
0.0013601870741695166,
0.08461546897888184,
0.12848059833049774,
-0.08570050448179245,
-0.07528792321681976,
-0.11559180915355682,
-0.14240479469299316,
-0.05005588382482529,
-0.1508808583021164,
0.013787904754281044,
0.019594771787524223,
0.0058743651024997234,
-0.009957182221114635,
-0.07055094093084335,
0.1727248579263687,
-0.002574297832325101,
0.14588913321495056,
0.1926119029521942,
-0.070641428232193,
0.08980292081832886,
-0.1898709386587143,
0.009961248375475407,
-0.009601905010640621,
-0.009402868337929249,
-0.007060753647238016,
-0.06818968802690506,
-0.053280651569366455,
-0.07305781543254852,
0.06169596314430237,
-0.1906656175851822,
0.04258764907717705,
0.025954190641641617,
0.1276487410068512,
0.02724633738398552,
-0.00913285557180643,
-0.04269944876432419,
0.1895902156829834,
-0.07124637812376022,
0.12454853951931,
0.1664981245994568,
-0.16430170834064484,
-0.10422264784574509,
-0.17767880856990814,
-0.027965141460299492,
0.024189312011003494,
0.0638854056596756,
0.13254974782466888,
0.08837762475013733,
0.13177552819252014,
-0.23101173341274261,
0.10013043135404587,
-0.10844678431749344,
0.02058938518166542,
0.1659410446882248,
-0.14334650337696075,
-0.0628398135304451,
-0.014684033580124378,
0.016980670392513275,
-0.11651422828435898,
-0.07836151123046875,
0.05661340430378914,
0.050466932356357574,
-0.09170229732990265,
0.10443753749132156,
0.023752599954605103,
-0.07595802843570709,
0.07223618775606155,
-0.29866936802864075,
-0.054592031985521317,
0.1315285563468933,
0.05237272009253502,
0.012968748807907104,
-0.04267822951078415,
-0.09139765799045563,
-0.03155350685119629,
-0.034377776086330414,
0.15304496884346008,
-0.04100698605179787,
0.18666236102581024,
-0.020052311941981316,
0.05739075317978859,
0.016857964918017387,
-0.08611606061458588,
0.06414848566055298,
0.03575897589325905,
-0.037870727479457855,
0.025559069588780403,
0.00487448601052165,
-0.01896413043141365,
-0.030949141830205917,
-0.1778613030910492,
0.07343783229589462,
0.11039470136165619,
0.10228010267019272,
0.15833275020122528,
0.05928331986069679,
-0.22467418015003204,
-0.09296795725822449,
0.12540274858474731,
-0.039745062589645386,
-0.1393793523311615,
-0.11065318435430527,
0.019803324714303017,
-0.0930398628115654,
-0.07078102231025696,
-0.050021085888147354,
-0.12472880631685257,
-0.15943434834480286,
0.03544413670897484,
-0.24089649319648743,
0.1570574790239334,
0.03455258905887604,
0.08335720002651215,
0.008563539944589138,
0.006072208750993013,
0.05864359438419342,
0.09204541146755219,
0.044785309582948685,
-0.05837173014879227,
0.0019306999165564775,
-0.1293657422065735,
-0.04479053616523743,
0.06983373314142227,
-0.026052037253975868,
-0.08645599335432053,
-0.03694653883576393,
0.03509427607059479,
-0.16247202455997467,
0.19598938524723053,
0.0782301127910614,
0.12402091175317764,
-0.04822158440947533,
0.24453195929527283,
0.23001687228679657,
-0.08050456643104553,
-0.006057338789105415,
-0.010705405846238136,
0.0748295933008194,
-0.19779981672763824,
-0.021586816757917404,
0.04221797361969948,
0.077106773853302,
0.08036193251609802,
0.2598896920681,
0.05640561506152153,
0.07046829909086227,
0.20809929072856903,
0.04013892263174057,
0.024046823382377625,
0.19300663471221924,
0.011300280690193176,
-0.1704075038433075,
-0.050268422812223434,
-0.11823958903551102,
-0.0585918128490448,
0.10294779390096664,
-0.030408333986997604,
-0.11400489509105682,
0.041197769343853,
-0.16413825750350952,
0.12920884788036346,
0.07079054415225983,
-0.06080968677997589,
-0.09673916548490524,
0.02008533664047718,
0.0404091402888298,
0.015390700660645962,
0.11226901412010193,
0.07289586216211319,
0.014605619944632053,
-0.014772441238164902,
0.11661756783723831,
0.07502163201570511,
0.001144780544564128,
-0.0648350641131401,
-0.2064664363861084,
0.02315719798207283,
-0.136042520403862,
-0.07816730439662933,
0.1071874350309372,
0.16892476379871368,
0.07695188373327255,
0.03708545118570328,
-0.17990642786026,
0.12965035438537598,
-0.1570681482553482,
0.11914189904928207,
0.10299035906791687,
0.14885248243808746,
-0.280000239610672,
0.026606259867548943,
0.18170799314975739,
0.11215350776910782,
-0.07977582514286041,
0.019171666353940964,
0.02734917216002941,
0.015656378120183945,
0.1097690612077713,
0.24603086709976196,
-0.07363367080688477,
0.04435586929321289,
0.04886215180158615,
-0.04419494792819023,
0.027596216648817062,
-0.0337323434650898,
0.00433250842615962,
0.0552499033510685,
0.05925868824124336,
-0.016633285209536552,
0.0815436840057373,
0.10640391707420349,
-0.04604361578822136,
0.06602262705564499,
0.02781694009900093,
-0.08118393272161484,
-0.10879652947187424,
0.10551729798316956,
0.24283142387866974,
-0.17558781802654266,
-0.07471805810928345,
-0.005162465386092663,
0.01157441921532154,
0.031636063009500504,
-0.10628712922334671,
0.005210834555327892,
-0.10992646962404251,
0.11182932555675507,
-0.07757814973592758,
0.2263529896736145,
-0.0005824879044666886,
0.07909820228815079,
0.0029641634318977594,
0.12663845717906952,
-0.10174547135829926,
-0.13950291275978088,
-0.14445362985134125,
0.007044733036309481,
0.008095361292362213,
-0.011205430142581463,
-0.11873403936624527,
0.10167797654867172,
-0.013700198382139206,
0.22934329509735107,
0.11158515512943268,
0.05880696699023247,
-0.007031378801912069,
0.013885807245969772,
-0.07014212757349014,
-0.1616154909133911,
0.00039554075920023024,
-0.035601187497377396,
-0.10048923641443253,
0.07644032686948776,
-0.04201146587729454,
-0.04041796922683716,
-0.12445800006389618,
-0.0029560464899986982,
-0.022233588621020317,
0.006332211662083864,
-0.04902824014425278,
0.20797544717788696,
0.06073091924190521,
0.15940161049365997,
-0.061094384640455246,
0.2620459794998169,
-0.12791353464126587,
-0.07025595754384995,
0.2045239955186844,
0.022550633177161217,
-0.03869599476456642,
-0.07934946566820145,
-0.0885998085141182,
-0.04195086658000946,
-0.19043105840682983,
-0.20718112587928772,
-0.018377285450696945,
-0.03643754869699478,
0.1094357818365097,
0.031831175088882446,
-0.11259108781814575,
-0.04096389189362526,
-0.14134876430034637,
0.0726809874176979,
0.10338097810745239,
0.0858382061123848,
-0.06718860566616058,
-0.026470161974430084,
-2.3386974388387895e-32,
-0.02210826426744461,
-0.20211443305015564,
-0.12804850935935974,
-0.14314718544483185,
-0.05976550653576851,
0.047967493534088135,
0.028735212981700897,
0.011023393832147121,
0.12889109551906586,
-0.10850545763969421,
-0.011742904782295227,
-0.09605146944522858,
0.035432763397693634,
0.020029965788125992,
0.022056225687265396,
0.02097809687256813,
0.10467909276485443,
0.14091482758522034,
-0.010433637537062168,
0.05398082360625267,
0.09635862708091736,
0.061973102390766144,
-0.21100543439388275,
0.15369610488414764,
0.11135778576135635,
0.06004510074853897,
0.06086106598377228,
-0.10324754565954208,
0.1816186010837555,
-0.05414346978068352,
0.00650033401325345,
0.23303723335266113,
-0.007353762164711952,
-0.08491426706314087,
0.013630964793264866,
-0.07540539652109146,
-0.19717372953891754,
-0.03545169159770012,
-0.025716649368405342,
-0.03530052304267883,
0.11206866800785065,
0.07711482048034668,
0.14173485338687897,
-0.020775817334651947,
0.07744432985782623,
0.016773512586951256,
0.028774436563253403,
-0.0002949527115561068,
-0.1570596694946289,
-0.003813730785623193,
0.17309854924678802,
-0.012420065701007843,
-0.0409163273870945,
0.14122766256332397,
-0.09057945013046265,
-0.22292107343673706,
0.07441405951976776,
0.14698724448680878,
-0.044334277510643005,
-0.09344709664583206,
0.017803829163312912,
-0.07574108988046646,
0.06074528396129608,
0.0174518171697855,
-0.03024941496551037,
0.05576951429247856,
0.4346052408218384,
0.03327791765332222,
-0.09450889378786087,
-0.10870694369077682,
-0.08212871104478836,
0.054732803255319595,
-0.12407401949167252,
-0.12591056525707245,
0.038968052715063095,
-0.03340844810009003,
0.0006479148287326097,
-0.07302328199148178,
-0.012458995915949345,
-0.06837993860244751,
0.10548900812864304,
-0.020324209704995155,
0.028758732602000237,
-0.13077957928180695,
-0.03951670974493027,
0.05723949149250984,
0.02067525126039982,
0.11254418641328812,
-0.10568928718566895,
-0.024327991530299187,
0.058818768709897995,
0.18931598961353302,
-0.18452976644039154,
-0.07840637117624283,
-0.07383660227060318,
0.01193178165704012,
-0.0821559801697731,
0.06467842310667038,
-0.20171226561069489,
0.10136140137910843,
-0.010856324806809425,
-0.09959762543439865,
0.0672883689403534,
-0.030617885291576385,
0.04735246300697327,
0.05827644094824791,
0.06686476618051529,
-0.0834311842918396,
-0.17145074903964996,
-0.12235970795154572,
0.05757033824920654,
-0.010643011890351772,
-0.0030096815899014473,
0.1622651070356369,
0.16352562606334686,
-0.03365940973162651,
0.04025015980005264,
-0.14740607142448425,
0.2256690263748169,
0.2089899778366089,
0.011738874949514866,
-0.09297043830156326,
-0.012553514912724495,
-0.07888225466012955,
0.03416547179222107,
0.050794851034879684,
-0.15094728767871857,
-0.024667827412486076,
0.23154477775096893,
-0.043757788836956024,
0.023947499692440033,
-0.04112112522125244,
7.721636734459025e-7,
-0.10858338326215744,
0.040245916694402695,
-0.043037544935941696,
-0.12936091423034668,
-0.049503933638334274,
0.046782877296209335,
-0.059654392302036285,
0.10714203864336014,
-0.16603265702724457,
0.16984674334526062,
0.12174226343631744,
-0.08755438774824142,
0.09124955534934998,
0.12659157812595367,
0.04923558607697487,
0.07697509229183197,
-0.14273418486118317,
0.16516657173633575,
-0.15309183299541473,
-0.022110814228653908,
-0.09449300169944763,
-0.027607113122940063,
0.1926569938659668,
-0.039108507335186005,
0.018497738987207413,
-0.20995306968688965,
-0.06662116199731827,
-0.12313313037157059,
0.09379611164331436,
-0.1398538500070572,
-0.012793448753654957,
0.06111178174614906,
0.0022264348808676004,
0.1465524286031723,
-0.0018781351391226053,
-0.029624462127685547,
-0.049863994121551514,
-0.01573415845632553,
0.10329087823629379,
0.01585356704890728,
0.05330060049891472,
0.0034109323751181364,
-0.006526460871100426,
-0.030256927013397217,
0.016065534204244614,
0.0032583381980657578,
-0.05558517202734947,
0.2769227921962738,
0.054428305476903915,
0.09198916703462601,
-0.0229677464812994,
0.1105051040649414,
0.03303860127925873,
0.2314433753490448,
0.031722962856292725,
-0.07514186203479767,
-0.014907155185937881,
-0.04727393388748169,
0.11418604105710983,
-0.13163264095783234,
-0.11928640305995941,
-0.16209924221038818,
-0.050754036754369736,
-0.03454698249697685,
-0.03424268960952759,
-0.19961050152778625,
-0.08671389520168304,
9.903163380143524e-35,
0.07196098566055298,
-0.09610214084386826,
-0.0923568531870842,
-0.2707972824573517,
0.04174435883760452,
-0.06088089570403099,
0.09822654724121094,
0.16523213684558868,
-0.01018617209047079,
-0.09146849811077118,
-0.03415731340646744
] |
https://github.com/huggingface/datasets/issues/2470 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`. | Thank you for the quick reply! I have `pyarrow==4.0.0`, and I am installing with `pip`. It's not one of my explicit dependencies, so I assume it came along with something else. | ## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
| 31 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`.
## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
Thank you for the quick reply! I have `pyarrow==4.0.0`, and I am installing with `pip`. It's not one of my explicit dependencies, so I assume it came along with something else. | [
0.011318046599626541,
0.10271144658327103,
-0.012329691089689732,
0.041337139904499054,
0.35585370659828186,
-0.008259639143943787,
0.027178915217518806,
-0.024285394698381424,
-0.045940134674310684,
0.19255216419696808,
0.012394115328788757,
-0.07120618969202042,
-0.05647800490260124,
0.01065839547663927,
0.15428461134433746,
0.0018587977392598987,
0.003212282434105873,
-0.07804424315690994,
0.02795100025832653,
-0.045553285628557205,
-0.2427431344985962,
0.10322796553373337,
0.11582065373659134,
-0.023505279794335365,
-0.17480850219726562,
-0.08339650928974152,
-0.06927769631147385,
0.1469556838274002,
-0.062094613909721375,
-0.14161404967308044,
-0.09521027654409409,
-0.10965333878993988,
-0.078581303358078,
0.13445748388767242,
0.000005462626177177299,
0.013613193295896053,
0.152922123670578,
0.017314275726675987,
0.07565203309059143,
-0.14413583278656006,
0.12027613818645477,
-0.05901021882891655,
0.036386750638484955,
-0.03558122366666794,
0.1111254170536995,
-0.10033810883760452,
-0.0728636309504509,
0.02691679261624813,
0.030104074627161026,
0.030969973653554916,
0.011485633440315723,
-0.06988128274679184,
0.16840636730194092,
-0.11919539421796799,
0.08657075464725494,
0.13585339486598969,
0.07126352190971375,
-0.024714533239603043,
-0.06152790039777756,
-0.07760041952133179,
0.03317153826355934,
-0.07623549550771713,
-0.026876075193285942,
-0.08649050444364548,
-0.26287412643432617,
0.07856089621782303,
-0.13694274425506592,
-0.13494087755680084,
0.12879247963428497,
0.05371301621198654,
-0.0839691311120987,
0.005628677550703287,
-0.0038453543093055487,
0.04587414860725403,
0.0782821848988533,
-0.2174435406923294,
0.08440021425485611,
0.06432037055492401,
-0.05888541787862778,
0.006505592726171017,
-0.014321260154247284,
0.15123029053211212,
0.018211379647254944,
0.07182253897190094,
-0.12855783104896545,
0.03918042406439781,
-0.053875844925642014,
0.040131136775016785,
0.019138453528285027,
-0.043521951884031296,
-0.05605396255850792,
0.14521914720535278,
-0.056037936359643936,
-0.23264776170253754,
0.015223965048789978,
0.08502093702554703,
-0.05192882567644119,
-0.23044079542160034,
0.050112493336200714,
-0.16289234161376953,
-0.26157885789871216,
0.029163889586925507,
-0.07157561182975769,
0.08981592208147049,
0.0537668876349926,
-0.09503576904535294,
-0.09922144562005997,
0.031767722219228745,
0.01863969676196575,
-0.04919327050447464,
0.05335384979844093,
0.05546099692583084,
0.0010933415032923222,
0.148452028632164,
0.10996986925601959,
-0.06180198863148689,
0.14915141463279724,
0.054196685552597046,
0.07708295434713364,
0.22817249596118927,
-0.014569216407835484,
0.14687906205654144,
-0.09098395705223083,
-0.08815906941890717,
0.09930332750082016,
0.05326772853732109,
-0.05883299186825752,
-0.023153336718678474,
-0.1107243075966835,
0.04291268810629845,
-0.009935189038515091,
-0.08019617199897766,
-0.09199852496385574,
0.08993631601333618,
0.07912442088127136,
0.03385443985462189,
0.16544891893863678,
-0.1144985780119896,
-0.06407063454389572,
-0.14375512301921844,
0.0636783093214035,
-0.18420496582984924,
0.0632317066192627,
-0.01338804978877306,
0.022393563762307167,
0.08466543257236481,
0.1462847888469696,
0.06408056616783142,
0.13269132375717163,
-0.09620343893766403,
-0.20409834384918213,
0.13667704164981842,
-0.1973012089729309,
-0.008400543592870235,
-0.03812789544463158,
0.07564685493707657,
0.09688440710306168,
0.1443270593881607,
-0.17727170884609222,
-0.07171493768692017,
0.10887116938829422,
0.0174232367426157,
-0.0727027878165245,
-0.12810774147510529,
-0.004392923321574926,
0.08589428663253784,
-0.07014456391334534,
0.13117513060569763,
0.040640272200107574,
0.02530127391219139,
0.10549471527338028,
0.1207614317536354,
-0.007898584008216858,
-0.13572679460048676,
-0.08544068783521652,
0.13796116411685944,
-0.26035669445991516,
0.14572995901107788,
-0.44214779138565063,
0.014398849569261074,
0.047769177705049515,
-0.217201367020607,
-0.09423118084669113,
-0.19947932660579681,
0.27981066703796387,
-0.07490742951631546,
0.23323199152946472,
-0.02856704406440258,
-0.1806453913450241,
-0.07007158547639847,
-0.03311782330274582,
0.10062624514102936,
0.028522204607725143,
-0.0782817080616951,
0.06589697301387787,
-0.14028103649616241,
0.025308726355433464,
0.0233546681702137,
-0.1537470668554306,
-0.1302911788225174,
0.12961094081401825,
0.05940090864896774,
0.06205727532505989,
0.08109787106513977,
-0.07873395830392838,
-0.11471386253833771,
-0.17189791798591614,
0.06372011452913284,
0.04848369210958481,
-0.19960269331932068,
-0.19694840908050537,
0.1321173757314682,
0.07962091267108917,
0.27968111634254456,
-0.08537763357162476,
-0.13379749655723572,
-0.056877750903367996,
-0.0411541610956192,
-0.18773707747459412,
0.17824822664260864,
-0.13683703541755676,
-0.0049735805951058865,
0.09427136182785034,
0.03920120745897293,
0.02892465330660343,
-0.05700196698307991,
-0.022229209542274475,
-0.09445437043905258,
0.018175438046455383,
0.1442520022392273,
0.025259286165237427,
-0.023126253858208656,
0.12074825167655945,
-0.004289502277970314,
0.017956005409359932,
-0.08041554689407349,
-0.12156106531620026,
-0.1643897145986557,
0.09323947876691818,
-0.0736919492483139,
-0.08571893721818924,
0.01374682318419218,
-0.16658802330493927,
-0.1209726557135582,
0.14895805716514587,
-0.03495492413640022,
0.04516860842704773,
0.1323651671409607,
0.03969215974211693,
0.02681421861052513,
0.21486733853816986,
0.23553216457366943,
-0.1844327747821808,
0.006131927017122507,
0.05864637717604637,
-0.08047032356262207,
0.1430986225605011,
0.001401685643941164,
-0.029064087197184563,
-0.1135723665356636,
0.3059755265712738,
-0.07013478130102158,
0.04617808386683464,
-0.17463617026805878,
-0.04985174164175987,
-0.08011671900749207,
-0.02524368278682232,
0.0013868636451661587,
0.0013601870741695166,
0.08461546897888184,
0.12848059833049774,
-0.08570050448179245,
-0.07528792321681976,
-0.11559180915355682,
-0.14240479469299316,
-0.05005588382482529,
-0.1508808583021164,
0.013787904754281044,
0.019594771787524223,
0.0058743651024997234,
-0.009957182221114635,
-0.07055094093084335,
0.1727248579263687,
-0.002574297832325101,
0.14588913321495056,
0.1926119029521942,
-0.070641428232193,
0.08980292081832886,
-0.1898709386587143,
0.009961248375475407,
-0.009601905010640621,
-0.009402868337929249,
-0.007060753647238016,
-0.06818968802690506,
-0.053280651569366455,
-0.07305781543254852,
0.06169596314430237,
-0.1906656175851822,
0.04258764907717705,
0.025954190641641617,
0.1276487410068512,
0.02724633738398552,
-0.00913285557180643,
-0.04269944876432419,
0.1895902156829834,
-0.07124637812376022,
0.12454853951931,
0.1664981245994568,
-0.16430170834064484,
-0.10422264784574509,
-0.17767880856990814,
-0.027965141460299492,
0.024189312011003494,
0.0638854056596756,
0.13254974782466888,
0.08837762475013733,
0.13177552819252014,
-0.23101173341274261,
0.10013043135404587,
-0.10844678431749344,
0.02058938518166542,
0.1659410446882248,
-0.14334650337696075,
-0.0628398135304451,
-0.014684033580124378,
0.016980670392513275,
-0.11651422828435898,
-0.07836151123046875,
0.05661340430378914,
0.050466932356357574,
-0.09170229732990265,
0.10443753749132156,
0.023752599954605103,
-0.07595802843570709,
0.07223618775606155,
-0.29866936802864075,
-0.054592031985521317,
0.1315285563468933,
0.05237272009253502,
0.012968748807907104,
-0.04267822951078415,
-0.09139765799045563,
-0.03155350685119629,
-0.034377776086330414,
0.15304496884346008,
-0.04100698605179787,
0.18666236102581024,
-0.020052311941981316,
0.05739075317978859,
0.016857964918017387,
-0.08611606061458588,
0.06414848566055298,
0.03575897589325905,
-0.037870727479457855,
0.025559069588780403,
0.00487448601052165,
-0.01896413043141365,
-0.030949141830205917,
-0.1778613030910492,
0.07343783229589462,
0.11039470136165619,
0.10228010267019272,
0.15833275020122528,
0.05928331986069679,
-0.22467418015003204,
-0.09296795725822449,
0.12540274858474731,
-0.039745062589645386,
-0.1393793523311615,
-0.11065318435430527,
0.019803324714303017,
-0.0930398628115654,
-0.07078102231025696,
-0.050021085888147354,
-0.12472880631685257,
-0.15943434834480286,
0.03544413670897484,
-0.24089649319648743,
0.1570574790239334,
0.03455258905887604,
0.08335720002651215,
0.008563539944589138,
0.006072208750993013,
0.05864359438419342,
0.09204541146755219,
0.044785309582948685,
-0.05837173014879227,
0.0019306999165564775,
-0.1293657422065735,
-0.04479053616523743,
0.06983373314142227,
-0.026052037253975868,
-0.08645599335432053,
-0.03694653883576393,
0.03509427607059479,
-0.16247202455997467,
0.19598938524723053,
0.0782301127910614,
0.12402091175317764,
-0.04822158440947533,
0.24453195929527283,
0.23001687228679657,
-0.08050456643104553,
-0.006057338789105415,
-0.010705405846238136,
0.0748295933008194,
-0.19779981672763824,
-0.021586816757917404,
0.04221797361969948,
0.077106773853302,
0.08036193251609802,
0.2598896920681,
0.05640561506152153,
0.07046829909086227,
0.20809929072856903,
0.04013892263174057,
0.024046823382377625,
0.19300663471221924,
0.011300280690193176,
-0.1704075038433075,
-0.050268422812223434,
-0.11823958903551102,
-0.0585918128490448,
0.10294779390096664,
-0.030408333986997604,
-0.11400489509105682,
0.041197769343853,
-0.16413825750350952,
0.12920884788036346,
0.07079054415225983,
-0.06080968677997589,
-0.09673916548490524,
0.02008533664047718,
0.0404091402888298,
0.015390700660645962,
0.11226901412010193,
0.07289586216211319,
0.014605619944632053,
-0.014772441238164902,
0.11661756783723831,
0.07502163201570511,
0.001144780544564128,
-0.0648350641131401,
-0.2064664363861084,
0.02315719798207283,
-0.136042520403862,
-0.07816730439662933,
0.1071874350309372,
0.16892476379871368,
0.07695188373327255,
0.03708545118570328,
-0.17990642786026,
0.12965035438537598,
-0.1570681482553482,
0.11914189904928207,
0.10299035906791687,
0.14885248243808746,
-0.280000239610672,
0.026606259867548943,
0.18170799314975739,
0.11215350776910782,
-0.07977582514286041,
0.019171666353940964,
0.02734917216002941,
0.015656378120183945,
0.1097690612077713,
0.24603086709976196,
-0.07363367080688477,
0.04435586929321289,
0.04886215180158615,
-0.04419494792819023,
0.027596216648817062,
-0.0337323434650898,
0.00433250842615962,
0.0552499033510685,
0.05925868824124336,
-0.016633285209536552,
0.0815436840057373,
0.10640391707420349,
-0.04604361578822136,
0.06602262705564499,
0.02781694009900093,
-0.08118393272161484,
-0.10879652947187424,
0.10551729798316956,
0.24283142387866974,
-0.17558781802654266,
-0.07471805810928345,
-0.005162465386092663,
0.01157441921532154,
0.031636063009500504,
-0.10628712922334671,
0.005210834555327892,
-0.10992646962404251,
0.11182932555675507,
-0.07757814973592758,
0.2263529896736145,
-0.0005824879044666886,
0.07909820228815079,
0.0029641634318977594,
0.12663845717906952,
-0.10174547135829926,
-0.13950291275978088,
-0.14445362985134125,
0.007044733036309481,
0.008095361292362213,
-0.011205430142581463,
-0.11873403936624527,
0.10167797654867172,
-0.013700198382139206,
0.22934329509735107,
0.11158515512943268,
0.05880696699023247,
-0.007031378801912069,
0.013885807245969772,
-0.07014212757349014,
-0.1616154909133911,
0.00039554075920023024,
-0.035601187497377396,
-0.10048923641443253,
0.07644032686948776,
-0.04201146587729454,
-0.04041796922683716,
-0.12445800006389618,
-0.0029560464899986982,
-0.022233588621020317,
0.006332211662083864,
-0.04902824014425278,
0.20797544717788696,
0.06073091924190521,
0.15940161049365997,
-0.061094384640455246,
0.2620459794998169,
-0.12791353464126587,
-0.07025595754384995,
0.2045239955186844,
0.022550633177161217,
-0.03869599476456642,
-0.07934946566820145,
-0.0885998085141182,
-0.04195086658000946,
-0.19043105840682983,
-0.20718112587928772,
-0.018377285450696945,
-0.03643754869699478,
0.1094357818365097,
0.031831175088882446,
-0.11259108781814575,
-0.04096389189362526,
-0.14134876430034637,
0.0726809874176979,
0.10338097810745239,
0.0858382061123848,
-0.06718860566616058,
-0.026470161974430084,
-2.3386974388387895e-32,
-0.02210826426744461,
-0.20211443305015564,
-0.12804850935935974,
-0.14314718544483185,
-0.05976550653576851,
0.047967493534088135,
0.028735212981700897,
0.011023393832147121,
0.12889109551906586,
-0.10850545763969421,
-0.011742904782295227,
-0.09605146944522858,
0.035432763397693634,
0.020029965788125992,
0.022056225687265396,
0.02097809687256813,
0.10467909276485443,
0.14091482758522034,
-0.010433637537062168,
0.05398082360625267,
0.09635862708091736,
0.061973102390766144,
-0.21100543439388275,
0.15369610488414764,
0.11135778576135635,
0.06004510074853897,
0.06086106598377228,
-0.10324754565954208,
0.1816186010837555,
-0.05414346978068352,
0.00650033401325345,
0.23303723335266113,
-0.007353762164711952,
-0.08491426706314087,
0.013630964793264866,
-0.07540539652109146,
-0.19717372953891754,
-0.03545169159770012,
-0.025716649368405342,
-0.03530052304267883,
0.11206866800785065,
0.07711482048034668,
0.14173485338687897,
-0.020775817334651947,
0.07744432985782623,
0.016773512586951256,
0.028774436563253403,
-0.0002949527115561068,
-0.1570596694946289,
-0.003813730785623193,
0.17309854924678802,
-0.012420065701007843,
-0.0409163273870945,
0.14122766256332397,
-0.09057945013046265,
-0.22292107343673706,
0.07441405951976776,
0.14698724448680878,
-0.044334277510643005,
-0.09344709664583206,
0.017803829163312912,
-0.07574108988046646,
0.06074528396129608,
0.0174518171697855,
-0.03024941496551037,
0.05576951429247856,
0.4346052408218384,
0.03327791765332222,
-0.09450889378786087,
-0.10870694369077682,
-0.08212871104478836,
0.054732803255319595,
-0.12407401949167252,
-0.12591056525707245,
0.038968052715063095,
-0.03340844810009003,
0.0006479148287326097,
-0.07302328199148178,
-0.012458995915949345,
-0.06837993860244751,
0.10548900812864304,
-0.020324209704995155,
0.028758732602000237,
-0.13077957928180695,
-0.03951670974493027,
0.05723949149250984,
0.02067525126039982,
0.11254418641328812,
-0.10568928718566895,
-0.024327991530299187,
0.058818768709897995,
0.18931598961353302,
-0.18452976644039154,
-0.07840637117624283,
-0.07383660227060318,
0.01193178165704012,
-0.0821559801697731,
0.06467842310667038,
-0.20171226561069489,
0.10136140137910843,
-0.010856324806809425,
-0.09959762543439865,
0.0672883689403534,
-0.030617885291576385,
0.04735246300697327,
0.05827644094824791,
0.06686476618051529,
-0.0834311842918396,
-0.17145074903964996,
-0.12235970795154572,
0.05757033824920654,
-0.010643011890351772,
-0.0030096815899014473,
0.1622651070356369,
0.16352562606334686,
-0.03365940973162651,
0.04025015980005264,
-0.14740607142448425,
0.2256690263748169,
0.2089899778366089,
0.011738874949514866,
-0.09297043830156326,
-0.012553514912724495,
-0.07888225466012955,
0.03416547179222107,
0.050794851034879684,
-0.15094728767871857,
-0.024667827412486076,
0.23154477775096893,
-0.043757788836956024,
0.023947499692440033,
-0.04112112522125244,
7.721636734459025e-7,
-0.10858338326215744,
0.040245916694402695,
-0.043037544935941696,
-0.12936091423034668,
-0.049503933638334274,
0.046782877296209335,
-0.059654392302036285,
0.10714203864336014,
-0.16603265702724457,
0.16984674334526062,
0.12174226343631744,
-0.08755438774824142,
0.09124955534934998,
0.12659157812595367,
0.04923558607697487,
0.07697509229183197,
-0.14273418486118317,
0.16516657173633575,
-0.15309183299541473,
-0.022110814228653908,
-0.09449300169944763,
-0.027607113122940063,
0.1926569938659668,
-0.039108507335186005,
0.018497738987207413,
-0.20995306968688965,
-0.06662116199731827,
-0.12313313037157059,
0.09379611164331436,
-0.1398538500070572,
-0.012793448753654957,
0.06111178174614906,
0.0022264348808676004,
0.1465524286031723,
-0.0018781351391226053,
-0.029624462127685547,
-0.049863994121551514,
-0.01573415845632553,
0.10329087823629379,
0.01585356704890728,
0.05330060049891472,
0.0034109323751181364,
-0.006526460871100426,
-0.030256927013397217,
0.016065534204244614,
0.0032583381980657578,
-0.05558517202734947,
0.2769227921962738,
0.054428305476903915,
0.09198916703462601,
-0.0229677464812994,
0.1105051040649414,
0.03303860127925873,
0.2314433753490448,
0.031722962856292725,
-0.07514186203479767,
-0.014907155185937881,
-0.04727393388748169,
0.11418604105710983,
-0.13163264095783234,
-0.11928640305995941,
-0.16209924221038818,
-0.050754036754369736,
-0.03454698249697685,
-0.03424268960952759,
-0.19961050152778625,
-0.08671389520168304,
9.903163380143524e-35,
0.07196098566055298,
-0.09610214084386826,
-0.0923568531870842,
-0.2707972824573517,
0.04174435883760452,
-0.06088089570403099,
0.09822654724121094,
0.16523213684558868,
-0.01018617209047079,
-0.09146849811077118,
-0.03415731340646744
] |
https://github.com/huggingface/datasets/issues/2470 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`. | Could you trying reinstalling pyarrow with pip ?
I'm not sure why it would check in your multicurtural-sc directory for source files. | ## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
| 22 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`.
## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
Could you trying reinstalling pyarrow with pip ?
I'm not sure why it would check in your multicurtural-sc directory for source files. | [
0.011318046599626541,
0.10271144658327103,
-0.012329691089689732,
0.041337139904499054,
0.35585370659828186,
-0.008259639143943787,
0.027178915217518806,
-0.024285394698381424,
-0.045940134674310684,
0.19255216419696808,
0.012394115328788757,
-0.07120618969202042,
-0.05647800490260124,
0.01065839547663927,
0.15428461134433746,
0.0018587977392598987,
0.003212282434105873,
-0.07804424315690994,
0.02795100025832653,
-0.045553285628557205,
-0.2427431344985962,
0.10322796553373337,
0.11582065373659134,
-0.023505279794335365,
-0.17480850219726562,
-0.08339650928974152,
-0.06927769631147385,
0.1469556838274002,
-0.062094613909721375,
-0.14161404967308044,
-0.09521027654409409,
-0.10965333878993988,
-0.078581303358078,
0.13445748388767242,
0.000005462626177177299,
0.013613193295896053,
0.152922123670578,
0.017314275726675987,
0.07565203309059143,
-0.14413583278656006,
0.12027613818645477,
-0.05901021882891655,
0.036386750638484955,
-0.03558122366666794,
0.1111254170536995,
-0.10033810883760452,
-0.0728636309504509,
0.02691679261624813,
0.030104074627161026,
0.030969973653554916,
0.011485633440315723,
-0.06988128274679184,
0.16840636730194092,
-0.11919539421796799,
0.08657075464725494,
0.13585339486598969,
0.07126352190971375,
-0.024714533239603043,
-0.06152790039777756,
-0.07760041952133179,
0.03317153826355934,
-0.07623549550771713,
-0.026876075193285942,
-0.08649050444364548,
-0.26287412643432617,
0.07856089621782303,
-0.13694274425506592,
-0.13494087755680084,
0.12879247963428497,
0.05371301621198654,
-0.0839691311120987,
0.005628677550703287,
-0.0038453543093055487,
0.04587414860725403,
0.0782821848988533,
-0.2174435406923294,
0.08440021425485611,
0.06432037055492401,
-0.05888541787862778,
0.006505592726171017,
-0.014321260154247284,
0.15123029053211212,
0.018211379647254944,
0.07182253897190094,
-0.12855783104896545,
0.03918042406439781,
-0.053875844925642014,
0.040131136775016785,
0.019138453528285027,
-0.043521951884031296,
-0.05605396255850792,
0.14521914720535278,
-0.056037936359643936,
-0.23264776170253754,
0.015223965048789978,
0.08502093702554703,
-0.05192882567644119,
-0.23044079542160034,
0.050112493336200714,
-0.16289234161376953,
-0.26157885789871216,
0.029163889586925507,
-0.07157561182975769,
0.08981592208147049,
0.0537668876349926,
-0.09503576904535294,
-0.09922144562005997,
0.031767722219228745,
0.01863969676196575,
-0.04919327050447464,
0.05335384979844093,
0.05546099692583084,
0.0010933415032923222,
0.148452028632164,
0.10996986925601959,
-0.06180198863148689,
0.14915141463279724,
0.054196685552597046,
0.07708295434713364,
0.22817249596118927,
-0.014569216407835484,
0.14687906205654144,
-0.09098395705223083,
-0.08815906941890717,
0.09930332750082016,
0.05326772853732109,
-0.05883299186825752,
-0.023153336718678474,
-0.1107243075966835,
0.04291268810629845,
-0.009935189038515091,
-0.08019617199897766,
-0.09199852496385574,
0.08993631601333618,
0.07912442088127136,
0.03385443985462189,
0.16544891893863678,
-0.1144985780119896,
-0.06407063454389572,
-0.14375512301921844,
0.0636783093214035,
-0.18420496582984924,
0.0632317066192627,
-0.01338804978877306,
0.022393563762307167,
0.08466543257236481,
0.1462847888469696,
0.06408056616783142,
0.13269132375717163,
-0.09620343893766403,
-0.20409834384918213,
0.13667704164981842,
-0.1973012089729309,
-0.008400543592870235,
-0.03812789544463158,
0.07564685493707657,
0.09688440710306168,
0.1443270593881607,
-0.17727170884609222,
-0.07171493768692017,
0.10887116938829422,
0.0174232367426157,
-0.0727027878165245,
-0.12810774147510529,
-0.004392923321574926,
0.08589428663253784,
-0.07014456391334534,
0.13117513060569763,
0.040640272200107574,
0.02530127391219139,
0.10549471527338028,
0.1207614317536354,
-0.007898584008216858,
-0.13572679460048676,
-0.08544068783521652,
0.13796116411685944,
-0.26035669445991516,
0.14572995901107788,
-0.44214779138565063,
0.014398849569261074,
0.047769177705049515,
-0.217201367020607,
-0.09423118084669113,
-0.19947932660579681,
0.27981066703796387,
-0.07490742951631546,
0.23323199152946472,
-0.02856704406440258,
-0.1806453913450241,
-0.07007158547639847,
-0.03311782330274582,
0.10062624514102936,
0.028522204607725143,
-0.0782817080616951,
0.06589697301387787,
-0.14028103649616241,
0.025308726355433464,
0.0233546681702137,
-0.1537470668554306,
-0.1302911788225174,
0.12961094081401825,
0.05940090864896774,
0.06205727532505989,
0.08109787106513977,
-0.07873395830392838,
-0.11471386253833771,
-0.17189791798591614,
0.06372011452913284,
0.04848369210958481,
-0.19960269331932068,
-0.19694840908050537,
0.1321173757314682,
0.07962091267108917,
0.27968111634254456,
-0.08537763357162476,
-0.13379749655723572,
-0.056877750903367996,
-0.0411541610956192,
-0.18773707747459412,
0.17824822664260864,
-0.13683703541755676,
-0.0049735805951058865,
0.09427136182785034,
0.03920120745897293,
0.02892465330660343,
-0.05700196698307991,
-0.022229209542274475,
-0.09445437043905258,
0.018175438046455383,
0.1442520022392273,
0.025259286165237427,
-0.023126253858208656,
0.12074825167655945,
-0.004289502277970314,
0.017956005409359932,
-0.08041554689407349,
-0.12156106531620026,
-0.1643897145986557,
0.09323947876691818,
-0.0736919492483139,
-0.08571893721818924,
0.01374682318419218,
-0.16658802330493927,
-0.1209726557135582,
0.14895805716514587,
-0.03495492413640022,
0.04516860842704773,
0.1323651671409607,
0.03969215974211693,
0.02681421861052513,
0.21486733853816986,
0.23553216457366943,
-0.1844327747821808,
0.006131927017122507,
0.05864637717604637,
-0.08047032356262207,
0.1430986225605011,
0.001401685643941164,
-0.029064087197184563,
-0.1135723665356636,
0.3059755265712738,
-0.07013478130102158,
0.04617808386683464,
-0.17463617026805878,
-0.04985174164175987,
-0.08011671900749207,
-0.02524368278682232,
0.0013868636451661587,
0.0013601870741695166,
0.08461546897888184,
0.12848059833049774,
-0.08570050448179245,
-0.07528792321681976,
-0.11559180915355682,
-0.14240479469299316,
-0.05005588382482529,
-0.1508808583021164,
0.013787904754281044,
0.019594771787524223,
0.0058743651024997234,
-0.009957182221114635,
-0.07055094093084335,
0.1727248579263687,
-0.002574297832325101,
0.14588913321495056,
0.1926119029521942,
-0.070641428232193,
0.08980292081832886,
-0.1898709386587143,
0.009961248375475407,
-0.009601905010640621,
-0.009402868337929249,
-0.007060753647238016,
-0.06818968802690506,
-0.053280651569366455,
-0.07305781543254852,
0.06169596314430237,
-0.1906656175851822,
0.04258764907717705,
0.025954190641641617,
0.1276487410068512,
0.02724633738398552,
-0.00913285557180643,
-0.04269944876432419,
0.1895902156829834,
-0.07124637812376022,
0.12454853951931,
0.1664981245994568,
-0.16430170834064484,
-0.10422264784574509,
-0.17767880856990814,
-0.027965141460299492,
0.024189312011003494,
0.0638854056596756,
0.13254974782466888,
0.08837762475013733,
0.13177552819252014,
-0.23101173341274261,
0.10013043135404587,
-0.10844678431749344,
0.02058938518166542,
0.1659410446882248,
-0.14334650337696075,
-0.0628398135304451,
-0.014684033580124378,
0.016980670392513275,
-0.11651422828435898,
-0.07836151123046875,
0.05661340430378914,
0.050466932356357574,
-0.09170229732990265,
0.10443753749132156,
0.023752599954605103,
-0.07595802843570709,
0.07223618775606155,
-0.29866936802864075,
-0.054592031985521317,
0.1315285563468933,
0.05237272009253502,
0.012968748807907104,
-0.04267822951078415,
-0.09139765799045563,
-0.03155350685119629,
-0.034377776086330414,
0.15304496884346008,
-0.04100698605179787,
0.18666236102581024,
-0.020052311941981316,
0.05739075317978859,
0.016857964918017387,
-0.08611606061458588,
0.06414848566055298,
0.03575897589325905,
-0.037870727479457855,
0.025559069588780403,
0.00487448601052165,
-0.01896413043141365,
-0.030949141830205917,
-0.1778613030910492,
0.07343783229589462,
0.11039470136165619,
0.10228010267019272,
0.15833275020122528,
0.05928331986069679,
-0.22467418015003204,
-0.09296795725822449,
0.12540274858474731,
-0.039745062589645386,
-0.1393793523311615,
-0.11065318435430527,
0.019803324714303017,
-0.0930398628115654,
-0.07078102231025696,
-0.050021085888147354,
-0.12472880631685257,
-0.15943434834480286,
0.03544413670897484,
-0.24089649319648743,
0.1570574790239334,
0.03455258905887604,
0.08335720002651215,
0.008563539944589138,
0.006072208750993013,
0.05864359438419342,
0.09204541146755219,
0.044785309582948685,
-0.05837173014879227,
0.0019306999165564775,
-0.1293657422065735,
-0.04479053616523743,
0.06983373314142227,
-0.026052037253975868,
-0.08645599335432053,
-0.03694653883576393,
0.03509427607059479,
-0.16247202455997467,
0.19598938524723053,
0.0782301127910614,
0.12402091175317764,
-0.04822158440947533,
0.24453195929527283,
0.23001687228679657,
-0.08050456643104553,
-0.006057338789105415,
-0.010705405846238136,
0.0748295933008194,
-0.19779981672763824,
-0.021586816757917404,
0.04221797361969948,
0.077106773853302,
0.08036193251609802,
0.2598896920681,
0.05640561506152153,
0.07046829909086227,
0.20809929072856903,
0.04013892263174057,
0.024046823382377625,
0.19300663471221924,
0.011300280690193176,
-0.1704075038433075,
-0.050268422812223434,
-0.11823958903551102,
-0.0585918128490448,
0.10294779390096664,
-0.030408333986997604,
-0.11400489509105682,
0.041197769343853,
-0.16413825750350952,
0.12920884788036346,
0.07079054415225983,
-0.06080968677997589,
-0.09673916548490524,
0.02008533664047718,
0.0404091402888298,
0.015390700660645962,
0.11226901412010193,
0.07289586216211319,
0.014605619944632053,
-0.014772441238164902,
0.11661756783723831,
0.07502163201570511,
0.001144780544564128,
-0.0648350641131401,
-0.2064664363861084,
0.02315719798207283,
-0.136042520403862,
-0.07816730439662933,
0.1071874350309372,
0.16892476379871368,
0.07695188373327255,
0.03708545118570328,
-0.17990642786026,
0.12965035438537598,
-0.1570681482553482,
0.11914189904928207,
0.10299035906791687,
0.14885248243808746,
-0.280000239610672,
0.026606259867548943,
0.18170799314975739,
0.11215350776910782,
-0.07977582514286041,
0.019171666353940964,
0.02734917216002941,
0.015656378120183945,
0.1097690612077713,
0.24603086709976196,
-0.07363367080688477,
0.04435586929321289,
0.04886215180158615,
-0.04419494792819023,
0.027596216648817062,
-0.0337323434650898,
0.00433250842615962,
0.0552499033510685,
0.05925868824124336,
-0.016633285209536552,
0.0815436840057373,
0.10640391707420349,
-0.04604361578822136,
0.06602262705564499,
0.02781694009900093,
-0.08118393272161484,
-0.10879652947187424,
0.10551729798316956,
0.24283142387866974,
-0.17558781802654266,
-0.07471805810928345,
-0.005162465386092663,
0.01157441921532154,
0.031636063009500504,
-0.10628712922334671,
0.005210834555327892,
-0.10992646962404251,
0.11182932555675507,
-0.07757814973592758,
0.2263529896736145,
-0.0005824879044666886,
0.07909820228815079,
0.0029641634318977594,
0.12663845717906952,
-0.10174547135829926,
-0.13950291275978088,
-0.14445362985134125,
0.007044733036309481,
0.008095361292362213,
-0.011205430142581463,
-0.11873403936624527,
0.10167797654867172,
-0.013700198382139206,
0.22934329509735107,
0.11158515512943268,
0.05880696699023247,
-0.007031378801912069,
0.013885807245969772,
-0.07014212757349014,
-0.1616154909133911,
0.00039554075920023024,
-0.035601187497377396,
-0.10048923641443253,
0.07644032686948776,
-0.04201146587729454,
-0.04041796922683716,
-0.12445800006389618,
-0.0029560464899986982,
-0.022233588621020317,
0.006332211662083864,
-0.04902824014425278,
0.20797544717788696,
0.06073091924190521,
0.15940161049365997,
-0.061094384640455246,
0.2620459794998169,
-0.12791353464126587,
-0.07025595754384995,
0.2045239955186844,
0.022550633177161217,
-0.03869599476456642,
-0.07934946566820145,
-0.0885998085141182,
-0.04195086658000946,
-0.19043105840682983,
-0.20718112587928772,
-0.018377285450696945,
-0.03643754869699478,
0.1094357818365097,
0.031831175088882446,
-0.11259108781814575,
-0.04096389189362526,
-0.14134876430034637,
0.0726809874176979,
0.10338097810745239,
0.0858382061123848,
-0.06718860566616058,
-0.026470161974430084,
-2.3386974388387895e-32,
-0.02210826426744461,
-0.20211443305015564,
-0.12804850935935974,
-0.14314718544483185,
-0.05976550653576851,
0.047967493534088135,
0.028735212981700897,
0.011023393832147121,
0.12889109551906586,
-0.10850545763969421,
-0.011742904782295227,
-0.09605146944522858,
0.035432763397693634,
0.020029965788125992,
0.022056225687265396,
0.02097809687256813,
0.10467909276485443,
0.14091482758522034,
-0.010433637537062168,
0.05398082360625267,
0.09635862708091736,
0.061973102390766144,
-0.21100543439388275,
0.15369610488414764,
0.11135778576135635,
0.06004510074853897,
0.06086106598377228,
-0.10324754565954208,
0.1816186010837555,
-0.05414346978068352,
0.00650033401325345,
0.23303723335266113,
-0.007353762164711952,
-0.08491426706314087,
0.013630964793264866,
-0.07540539652109146,
-0.19717372953891754,
-0.03545169159770012,
-0.025716649368405342,
-0.03530052304267883,
0.11206866800785065,
0.07711482048034668,
0.14173485338687897,
-0.020775817334651947,
0.07744432985782623,
0.016773512586951256,
0.028774436563253403,
-0.0002949527115561068,
-0.1570596694946289,
-0.003813730785623193,
0.17309854924678802,
-0.012420065701007843,
-0.0409163273870945,
0.14122766256332397,
-0.09057945013046265,
-0.22292107343673706,
0.07441405951976776,
0.14698724448680878,
-0.044334277510643005,
-0.09344709664583206,
0.017803829163312912,
-0.07574108988046646,
0.06074528396129608,
0.0174518171697855,
-0.03024941496551037,
0.05576951429247856,
0.4346052408218384,
0.03327791765332222,
-0.09450889378786087,
-0.10870694369077682,
-0.08212871104478836,
0.054732803255319595,
-0.12407401949167252,
-0.12591056525707245,
0.038968052715063095,
-0.03340844810009003,
0.0006479148287326097,
-0.07302328199148178,
-0.012458995915949345,
-0.06837993860244751,
0.10548900812864304,
-0.020324209704995155,
0.028758732602000237,
-0.13077957928180695,
-0.03951670974493027,
0.05723949149250984,
0.02067525126039982,
0.11254418641328812,
-0.10568928718566895,
-0.024327991530299187,
0.058818768709897995,
0.18931598961353302,
-0.18452976644039154,
-0.07840637117624283,
-0.07383660227060318,
0.01193178165704012,
-0.0821559801697731,
0.06467842310667038,
-0.20171226561069489,
0.10136140137910843,
-0.010856324806809425,
-0.09959762543439865,
0.0672883689403534,
-0.030617885291576385,
0.04735246300697327,
0.05827644094824791,
0.06686476618051529,
-0.0834311842918396,
-0.17145074903964996,
-0.12235970795154572,
0.05757033824920654,
-0.010643011890351772,
-0.0030096815899014473,
0.1622651070356369,
0.16352562606334686,
-0.03365940973162651,
0.04025015980005264,
-0.14740607142448425,
0.2256690263748169,
0.2089899778366089,
0.011738874949514866,
-0.09297043830156326,
-0.012553514912724495,
-0.07888225466012955,
0.03416547179222107,
0.050794851034879684,
-0.15094728767871857,
-0.024667827412486076,
0.23154477775096893,
-0.043757788836956024,
0.023947499692440033,
-0.04112112522125244,
7.721636734459025e-7,
-0.10858338326215744,
0.040245916694402695,
-0.043037544935941696,
-0.12936091423034668,
-0.049503933638334274,
0.046782877296209335,
-0.059654392302036285,
0.10714203864336014,
-0.16603265702724457,
0.16984674334526062,
0.12174226343631744,
-0.08755438774824142,
0.09124955534934998,
0.12659157812595367,
0.04923558607697487,
0.07697509229183197,
-0.14273418486118317,
0.16516657173633575,
-0.15309183299541473,
-0.022110814228653908,
-0.09449300169944763,
-0.027607113122940063,
0.1926569938659668,
-0.039108507335186005,
0.018497738987207413,
-0.20995306968688965,
-0.06662116199731827,
-0.12313313037157059,
0.09379611164331436,
-0.1398538500070572,
-0.012793448753654957,
0.06111178174614906,
0.0022264348808676004,
0.1465524286031723,
-0.0018781351391226053,
-0.029624462127685547,
-0.049863994121551514,
-0.01573415845632553,
0.10329087823629379,
0.01585356704890728,
0.05330060049891472,
0.0034109323751181364,
-0.006526460871100426,
-0.030256927013397217,
0.016065534204244614,
0.0032583381980657578,
-0.05558517202734947,
0.2769227921962738,
0.054428305476903915,
0.09198916703462601,
-0.0229677464812994,
0.1105051040649414,
0.03303860127925873,
0.2314433753490448,
0.031722962856292725,
-0.07514186203479767,
-0.014907155185937881,
-0.04727393388748169,
0.11418604105710983,
-0.13163264095783234,
-0.11928640305995941,
-0.16209924221038818,
-0.050754036754369736,
-0.03454698249697685,
-0.03424268960952759,
-0.19961050152778625,
-0.08671389520168304,
9.903163380143524e-35,
0.07196098566055298,
-0.09610214084386826,
-0.0923568531870842,
-0.2707972824573517,
0.04174435883760452,
-0.06088089570403099,
0.09822654724121094,
0.16523213684558868,
-0.01018617209047079,
-0.09146849811077118,
-0.03415731340646744
] |
https://github.com/huggingface/datasets/issues/2470 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`. | Sure! I tried reinstalling to get latest. pip was mad because it looks like Datasets currently wants <4.0.0 (which is interesting, because apparently I ended up with 4.0.0 already?), but I gave it a shot anyway:
```bash
$ pip install --upgrade --force-reinstall pyarrow
Collecting pyarrow
Downloading pyarrow-4.0.1-cp39-cp39-manylinux2014_x86_64.whl (21.9 MB)
|████████████████████████████████| 21.9 MB 23.8 MB/s
Collecting numpy>=1.16.6
Using cached numpy-1.20.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.4 MB)
Installing collected packages: numpy, pyarrow
Attempting uninstall: numpy
Found existing installation: numpy 1.20.3
Uninstalling numpy-1.20.3:
Successfully uninstalled numpy-1.20.3
Attempting uninstall: pyarrow
Found existing installation: pyarrow 3.0.0
Uninstalling pyarrow-3.0.0:
Successfully uninstalled pyarrow-3.0.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
datasets 1.8.0 requires pyarrow<4.0.0,>=1.0.0, but you have pyarrow 4.0.1 which is incompatible.
Successfully installed numpy-1.20.3 pyarrow-4.0.1
```
Trying it, the same issue:
![image](https://user-images.githubusercontent.com/1170062/121730226-3f470b80-caa4-11eb-85a5-684c44c816da.png)
I tried installing `"pyarrow<4.0.0"`, which gave me 3.0.0. Running, still, same issue.
I agree it's weird that pyarrow is checking the source code directory for its files. (There is no `pyarrow/` directory there.) To me, that makes it seem like an issue with how pyarrow is called.
Out of curiosity, I tried running this with fewer workers to see when the error arises:
- 1: ✅
- 2: ✅
- 4: ✅
- 8: ✅
- 10: ✅
- 11: ❌ 🤔
- 12: ❌
- 16: ❌
- 32: ❌
checking my datasets:
```python
>>> datasets
DatasetDict({
train: Dataset({
features: ['text'],
num_rows: 389290
})
validation.sc: Dataset({
features: ['text'],
num_rows: 10 # 🤔
})
validation.wvs: Dataset({
features: ['text'],
num_rows: 93928
})
})
```
New hypothesis: crash if `num_proc` > length of a dataset? 😅
If so, this might be totally my fault, as the caller. Could be a docs fix, or maybe this library could do a check to limit `num_proc` for this case? | ## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
| 305 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`.
## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
Sure! I tried reinstalling to get latest. pip was mad because it looks like Datasets currently wants <4.0.0 (which is interesting, because apparently I ended up with 4.0.0 already?), but I gave it a shot anyway:
```bash
$ pip install --upgrade --force-reinstall pyarrow
Collecting pyarrow
Downloading pyarrow-4.0.1-cp39-cp39-manylinux2014_x86_64.whl (21.9 MB)
|████████████████████████████████| 21.9 MB 23.8 MB/s
Collecting numpy>=1.16.6
Using cached numpy-1.20.3-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.4 MB)
Installing collected packages: numpy, pyarrow
Attempting uninstall: numpy
Found existing installation: numpy 1.20.3
Uninstalling numpy-1.20.3:
Successfully uninstalled numpy-1.20.3
Attempting uninstall: pyarrow
Found existing installation: pyarrow 3.0.0
Uninstalling pyarrow-3.0.0:
Successfully uninstalled pyarrow-3.0.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
datasets 1.8.0 requires pyarrow<4.0.0,>=1.0.0, but you have pyarrow 4.0.1 which is incompatible.
Successfully installed numpy-1.20.3 pyarrow-4.0.1
```
Trying it, the same issue:
![image](https://user-images.githubusercontent.com/1170062/121730226-3f470b80-caa4-11eb-85a5-684c44c816da.png)
I tried installing `"pyarrow<4.0.0"`, which gave me 3.0.0. Running, still, same issue.
I agree it's weird that pyarrow is checking the source code directory for its files. (There is no `pyarrow/` directory there.) To me, that makes it seem like an issue with how pyarrow is called.
Out of curiosity, I tried running this with fewer workers to see when the error arises:
- 1: ✅
- 2: ✅
- 4: ✅
- 8: ✅
- 10: ✅
- 11: ❌ 🤔
- 12: ❌
- 16: ❌
- 32: ❌
checking my datasets:
```python
>>> datasets
DatasetDict({
train: Dataset({
features: ['text'],
num_rows: 389290
})
validation.sc: Dataset({
features: ['text'],
num_rows: 10 # 🤔
})
validation.wvs: Dataset({
features: ['text'],
num_rows: 93928
})
})
```
New hypothesis: crash if `num_proc` > length of a dataset? 😅
If so, this might be totally my fault, as the caller. Could be a docs fix, or maybe this library could do a check to limit `num_proc` for this case? | [
0.011318046599626541,
0.10271144658327103,
-0.012329691089689732,
0.041337139904499054,
0.35585370659828186,
-0.008259639143943787,
0.027178915217518806,
-0.024285394698381424,
-0.045940134674310684,
0.19255216419696808,
0.012394115328788757,
-0.07120618969202042,
-0.05647800490260124,
0.01065839547663927,
0.15428461134433746,
0.0018587977392598987,
0.003212282434105873,
-0.07804424315690994,
0.02795100025832653,
-0.045553285628557205,
-0.2427431344985962,
0.10322796553373337,
0.11582065373659134,
-0.023505279794335365,
-0.17480850219726562,
-0.08339650928974152,
-0.06927769631147385,
0.1469556838274002,
-0.062094613909721375,
-0.14161404967308044,
-0.09521027654409409,
-0.10965333878993988,
-0.078581303358078,
0.13445748388767242,
0.000005462626177177299,
0.013613193295896053,
0.152922123670578,
0.017314275726675987,
0.07565203309059143,
-0.14413583278656006,
0.12027613818645477,
-0.05901021882891655,
0.036386750638484955,
-0.03558122366666794,
0.1111254170536995,
-0.10033810883760452,
-0.0728636309504509,
0.02691679261624813,
0.030104074627161026,
0.030969973653554916,
0.011485633440315723,
-0.06988128274679184,
0.16840636730194092,
-0.11919539421796799,
0.08657075464725494,
0.13585339486598969,
0.07126352190971375,
-0.024714533239603043,
-0.06152790039777756,
-0.07760041952133179,
0.03317153826355934,
-0.07623549550771713,
-0.026876075193285942,
-0.08649050444364548,
-0.26287412643432617,
0.07856089621782303,
-0.13694274425506592,
-0.13494087755680084,
0.12879247963428497,
0.05371301621198654,
-0.0839691311120987,
0.005628677550703287,
-0.0038453543093055487,
0.04587414860725403,
0.0782821848988533,
-0.2174435406923294,
0.08440021425485611,
0.06432037055492401,
-0.05888541787862778,
0.006505592726171017,
-0.014321260154247284,
0.15123029053211212,
0.018211379647254944,
0.07182253897190094,
-0.12855783104896545,
0.03918042406439781,
-0.053875844925642014,
0.040131136775016785,
0.019138453528285027,
-0.043521951884031296,
-0.05605396255850792,
0.14521914720535278,
-0.056037936359643936,
-0.23264776170253754,
0.015223965048789978,
0.08502093702554703,
-0.05192882567644119,
-0.23044079542160034,
0.050112493336200714,
-0.16289234161376953,
-0.26157885789871216,
0.029163889586925507,
-0.07157561182975769,
0.08981592208147049,
0.0537668876349926,
-0.09503576904535294,
-0.09922144562005997,
0.031767722219228745,
0.01863969676196575,
-0.04919327050447464,
0.05335384979844093,
0.05546099692583084,
0.0010933415032923222,
0.148452028632164,
0.10996986925601959,
-0.06180198863148689,
0.14915141463279724,
0.054196685552597046,
0.07708295434713364,
0.22817249596118927,
-0.014569216407835484,
0.14687906205654144,
-0.09098395705223083,
-0.08815906941890717,
0.09930332750082016,
0.05326772853732109,
-0.05883299186825752,
-0.023153336718678474,
-0.1107243075966835,
0.04291268810629845,
-0.009935189038515091,
-0.08019617199897766,
-0.09199852496385574,
0.08993631601333618,
0.07912442088127136,
0.03385443985462189,
0.16544891893863678,
-0.1144985780119896,
-0.06407063454389572,
-0.14375512301921844,
0.0636783093214035,
-0.18420496582984924,
0.0632317066192627,
-0.01338804978877306,
0.022393563762307167,
0.08466543257236481,
0.1462847888469696,
0.06408056616783142,
0.13269132375717163,
-0.09620343893766403,
-0.20409834384918213,
0.13667704164981842,
-0.1973012089729309,
-0.008400543592870235,
-0.03812789544463158,
0.07564685493707657,
0.09688440710306168,
0.1443270593881607,
-0.17727170884609222,
-0.07171493768692017,
0.10887116938829422,
0.0174232367426157,
-0.0727027878165245,
-0.12810774147510529,
-0.004392923321574926,
0.08589428663253784,
-0.07014456391334534,
0.13117513060569763,
0.040640272200107574,
0.02530127391219139,
0.10549471527338028,
0.1207614317536354,
-0.007898584008216858,
-0.13572679460048676,
-0.08544068783521652,
0.13796116411685944,
-0.26035669445991516,
0.14572995901107788,
-0.44214779138565063,
0.014398849569261074,
0.047769177705049515,
-0.217201367020607,
-0.09423118084669113,
-0.19947932660579681,
0.27981066703796387,
-0.07490742951631546,
0.23323199152946472,
-0.02856704406440258,
-0.1806453913450241,
-0.07007158547639847,
-0.03311782330274582,
0.10062624514102936,
0.028522204607725143,
-0.0782817080616951,
0.06589697301387787,
-0.14028103649616241,
0.025308726355433464,
0.0233546681702137,
-0.1537470668554306,
-0.1302911788225174,
0.12961094081401825,
0.05940090864896774,
0.06205727532505989,
0.08109787106513977,
-0.07873395830392838,
-0.11471386253833771,
-0.17189791798591614,
0.06372011452913284,
0.04848369210958481,
-0.19960269331932068,
-0.19694840908050537,
0.1321173757314682,
0.07962091267108917,
0.27968111634254456,
-0.08537763357162476,
-0.13379749655723572,
-0.056877750903367996,
-0.0411541610956192,
-0.18773707747459412,
0.17824822664260864,
-0.13683703541755676,
-0.0049735805951058865,
0.09427136182785034,
0.03920120745897293,
0.02892465330660343,
-0.05700196698307991,
-0.022229209542274475,
-0.09445437043905258,
0.018175438046455383,
0.1442520022392273,
0.025259286165237427,
-0.023126253858208656,
0.12074825167655945,
-0.004289502277970314,
0.017956005409359932,
-0.08041554689407349,
-0.12156106531620026,
-0.1643897145986557,
0.09323947876691818,
-0.0736919492483139,
-0.08571893721818924,
0.01374682318419218,
-0.16658802330493927,
-0.1209726557135582,
0.14895805716514587,
-0.03495492413640022,
0.04516860842704773,
0.1323651671409607,
0.03969215974211693,
0.02681421861052513,
0.21486733853816986,
0.23553216457366943,
-0.1844327747821808,
0.006131927017122507,
0.05864637717604637,
-0.08047032356262207,
0.1430986225605011,
0.001401685643941164,
-0.029064087197184563,
-0.1135723665356636,
0.3059755265712738,
-0.07013478130102158,
0.04617808386683464,
-0.17463617026805878,
-0.04985174164175987,
-0.08011671900749207,
-0.02524368278682232,
0.0013868636451661587,
0.0013601870741695166,
0.08461546897888184,
0.12848059833049774,
-0.08570050448179245,
-0.07528792321681976,
-0.11559180915355682,
-0.14240479469299316,
-0.05005588382482529,
-0.1508808583021164,
0.013787904754281044,
0.019594771787524223,
0.0058743651024997234,
-0.009957182221114635,
-0.07055094093084335,
0.1727248579263687,
-0.002574297832325101,
0.14588913321495056,
0.1926119029521942,
-0.070641428232193,
0.08980292081832886,
-0.1898709386587143,
0.009961248375475407,
-0.009601905010640621,
-0.009402868337929249,
-0.007060753647238016,
-0.06818968802690506,
-0.053280651569366455,
-0.07305781543254852,
0.06169596314430237,
-0.1906656175851822,
0.04258764907717705,
0.025954190641641617,
0.1276487410068512,
0.02724633738398552,
-0.00913285557180643,
-0.04269944876432419,
0.1895902156829834,
-0.07124637812376022,
0.12454853951931,
0.1664981245994568,
-0.16430170834064484,
-0.10422264784574509,
-0.17767880856990814,
-0.027965141460299492,
0.024189312011003494,
0.0638854056596756,
0.13254974782466888,
0.08837762475013733,
0.13177552819252014,
-0.23101173341274261,
0.10013043135404587,
-0.10844678431749344,
0.02058938518166542,
0.1659410446882248,
-0.14334650337696075,
-0.0628398135304451,
-0.014684033580124378,
0.016980670392513275,
-0.11651422828435898,
-0.07836151123046875,
0.05661340430378914,
0.050466932356357574,
-0.09170229732990265,
0.10443753749132156,
0.023752599954605103,
-0.07595802843570709,
0.07223618775606155,
-0.29866936802864075,
-0.054592031985521317,
0.1315285563468933,
0.05237272009253502,
0.012968748807907104,
-0.04267822951078415,
-0.09139765799045563,
-0.03155350685119629,
-0.034377776086330414,
0.15304496884346008,
-0.04100698605179787,
0.18666236102581024,
-0.020052311941981316,
0.05739075317978859,
0.016857964918017387,
-0.08611606061458588,
0.06414848566055298,
0.03575897589325905,
-0.037870727479457855,
0.025559069588780403,
0.00487448601052165,
-0.01896413043141365,
-0.030949141830205917,
-0.1778613030910492,
0.07343783229589462,
0.11039470136165619,
0.10228010267019272,
0.15833275020122528,
0.05928331986069679,
-0.22467418015003204,
-0.09296795725822449,
0.12540274858474731,
-0.039745062589645386,
-0.1393793523311615,
-0.11065318435430527,
0.019803324714303017,
-0.0930398628115654,
-0.07078102231025696,
-0.050021085888147354,
-0.12472880631685257,
-0.15943434834480286,
0.03544413670897484,
-0.24089649319648743,
0.1570574790239334,
0.03455258905887604,
0.08335720002651215,
0.008563539944589138,
0.006072208750993013,
0.05864359438419342,
0.09204541146755219,
0.044785309582948685,
-0.05837173014879227,
0.0019306999165564775,
-0.1293657422065735,
-0.04479053616523743,
0.06983373314142227,
-0.026052037253975868,
-0.08645599335432053,
-0.03694653883576393,
0.03509427607059479,
-0.16247202455997467,
0.19598938524723053,
0.0782301127910614,
0.12402091175317764,
-0.04822158440947533,
0.24453195929527283,
0.23001687228679657,
-0.08050456643104553,
-0.006057338789105415,
-0.010705405846238136,
0.0748295933008194,
-0.19779981672763824,
-0.021586816757917404,
0.04221797361969948,
0.077106773853302,
0.08036193251609802,
0.2598896920681,
0.05640561506152153,
0.07046829909086227,
0.20809929072856903,
0.04013892263174057,
0.024046823382377625,
0.19300663471221924,
0.011300280690193176,
-0.1704075038433075,
-0.050268422812223434,
-0.11823958903551102,
-0.0585918128490448,
0.10294779390096664,
-0.030408333986997604,
-0.11400489509105682,
0.041197769343853,
-0.16413825750350952,
0.12920884788036346,
0.07079054415225983,
-0.06080968677997589,
-0.09673916548490524,
0.02008533664047718,
0.0404091402888298,
0.015390700660645962,
0.11226901412010193,
0.07289586216211319,
0.014605619944632053,
-0.014772441238164902,
0.11661756783723831,
0.07502163201570511,
0.001144780544564128,
-0.0648350641131401,
-0.2064664363861084,
0.02315719798207283,
-0.136042520403862,
-0.07816730439662933,
0.1071874350309372,
0.16892476379871368,
0.07695188373327255,
0.03708545118570328,
-0.17990642786026,
0.12965035438537598,
-0.1570681482553482,
0.11914189904928207,
0.10299035906791687,
0.14885248243808746,
-0.280000239610672,
0.026606259867548943,
0.18170799314975739,
0.11215350776910782,
-0.07977582514286041,
0.019171666353940964,
0.02734917216002941,
0.015656378120183945,
0.1097690612077713,
0.24603086709976196,
-0.07363367080688477,
0.04435586929321289,
0.04886215180158615,
-0.04419494792819023,
0.027596216648817062,
-0.0337323434650898,
0.00433250842615962,
0.0552499033510685,
0.05925868824124336,
-0.016633285209536552,
0.0815436840057373,
0.10640391707420349,
-0.04604361578822136,
0.06602262705564499,
0.02781694009900093,
-0.08118393272161484,
-0.10879652947187424,
0.10551729798316956,
0.24283142387866974,
-0.17558781802654266,
-0.07471805810928345,
-0.005162465386092663,
0.01157441921532154,
0.031636063009500504,
-0.10628712922334671,
0.005210834555327892,
-0.10992646962404251,
0.11182932555675507,
-0.07757814973592758,
0.2263529896736145,
-0.0005824879044666886,
0.07909820228815079,
0.0029641634318977594,
0.12663845717906952,
-0.10174547135829926,
-0.13950291275978088,
-0.14445362985134125,
0.007044733036309481,
0.008095361292362213,
-0.011205430142581463,
-0.11873403936624527,
0.10167797654867172,
-0.013700198382139206,
0.22934329509735107,
0.11158515512943268,
0.05880696699023247,
-0.007031378801912069,
0.013885807245969772,
-0.07014212757349014,
-0.1616154909133911,
0.00039554075920023024,
-0.035601187497377396,
-0.10048923641443253,
0.07644032686948776,
-0.04201146587729454,
-0.04041796922683716,
-0.12445800006389618,
-0.0029560464899986982,
-0.022233588621020317,
0.006332211662083864,
-0.04902824014425278,
0.20797544717788696,
0.06073091924190521,
0.15940161049365997,
-0.061094384640455246,
0.2620459794998169,
-0.12791353464126587,
-0.07025595754384995,
0.2045239955186844,
0.022550633177161217,
-0.03869599476456642,
-0.07934946566820145,
-0.0885998085141182,
-0.04195086658000946,
-0.19043105840682983,
-0.20718112587928772,
-0.018377285450696945,
-0.03643754869699478,
0.1094357818365097,
0.031831175088882446,
-0.11259108781814575,
-0.04096389189362526,
-0.14134876430034637,
0.0726809874176979,
0.10338097810745239,
0.0858382061123848,
-0.06718860566616058,
-0.026470161974430084,
-2.3386974388387895e-32,
-0.02210826426744461,
-0.20211443305015564,
-0.12804850935935974,
-0.14314718544483185,
-0.05976550653576851,
0.047967493534088135,
0.028735212981700897,
0.011023393832147121,
0.12889109551906586,
-0.10850545763969421,
-0.011742904782295227,
-0.09605146944522858,
0.035432763397693634,
0.020029965788125992,
0.022056225687265396,
0.02097809687256813,
0.10467909276485443,
0.14091482758522034,
-0.010433637537062168,
0.05398082360625267,
0.09635862708091736,
0.061973102390766144,
-0.21100543439388275,
0.15369610488414764,
0.11135778576135635,
0.06004510074853897,
0.06086106598377228,
-0.10324754565954208,
0.1816186010837555,
-0.05414346978068352,
0.00650033401325345,
0.23303723335266113,
-0.007353762164711952,
-0.08491426706314087,
0.013630964793264866,
-0.07540539652109146,
-0.19717372953891754,
-0.03545169159770012,
-0.025716649368405342,
-0.03530052304267883,
0.11206866800785065,
0.07711482048034668,
0.14173485338687897,
-0.020775817334651947,
0.07744432985782623,
0.016773512586951256,
0.028774436563253403,
-0.0002949527115561068,
-0.1570596694946289,
-0.003813730785623193,
0.17309854924678802,
-0.012420065701007843,
-0.0409163273870945,
0.14122766256332397,
-0.09057945013046265,
-0.22292107343673706,
0.07441405951976776,
0.14698724448680878,
-0.044334277510643005,
-0.09344709664583206,
0.017803829163312912,
-0.07574108988046646,
0.06074528396129608,
0.0174518171697855,
-0.03024941496551037,
0.05576951429247856,
0.4346052408218384,
0.03327791765332222,
-0.09450889378786087,
-0.10870694369077682,
-0.08212871104478836,
0.054732803255319595,
-0.12407401949167252,
-0.12591056525707245,
0.038968052715063095,
-0.03340844810009003,
0.0006479148287326097,
-0.07302328199148178,
-0.012458995915949345,
-0.06837993860244751,
0.10548900812864304,
-0.020324209704995155,
0.028758732602000237,
-0.13077957928180695,
-0.03951670974493027,
0.05723949149250984,
0.02067525126039982,
0.11254418641328812,
-0.10568928718566895,
-0.024327991530299187,
0.058818768709897995,
0.18931598961353302,
-0.18452976644039154,
-0.07840637117624283,
-0.07383660227060318,
0.01193178165704012,
-0.0821559801697731,
0.06467842310667038,
-0.20171226561069489,
0.10136140137910843,
-0.010856324806809425,
-0.09959762543439865,
0.0672883689403534,
-0.030617885291576385,
0.04735246300697327,
0.05827644094824791,
0.06686476618051529,
-0.0834311842918396,
-0.17145074903964996,
-0.12235970795154572,
0.05757033824920654,
-0.010643011890351772,
-0.0030096815899014473,
0.1622651070356369,
0.16352562606334686,
-0.03365940973162651,
0.04025015980005264,
-0.14740607142448425,
0.2256690263748169,
0.2089899778366089,
0.011738874949514866,
-0.09297043830156326,
-0.012553514912724495,
-0.07888225466012955,
0.03416547179222107,
0.050794851034879684,
-0.15094728767871857,
-0.024667827412486076,
0.23154477775096893,
-0.043757788836956024,
0.023947499692440033,
-0.04112112522125244,
7.721636734459025e-7,
-0.10858338326215744,
0.040245916694402695,
-0.043037544935941696,
-0.12936091423034668,
-0.049503933638334274,
0.046782877296209335,
-0.059654392302036285,
0.10714203864336014,
-0.16603265702724457,
0.16984674334526062,
0.12174226343631744,
-0.08755438774824142,
0.09124955534934998,
0.12659157812595367,
0.04923558607697487,
0.07697509229183197,
-0.14273418486118317,
0.16516657173633575,
-0.15309183299541473,
-0.022110814228653908,
-0.09449300169944763,
-0.027607113122940063,
0.1926569938659668,
-0.039108507335186005,
0.018497738987207413,
-0.20995306968688965,
-0.06662116199731827,
-0.12313313037157059,
0.09379611164331436,
-0.1398538500070572,
-0.012793448753654957,
0.06111178174614906,
0.0022264348808676004,
0.1465524286031723,
-0.0018781351391226053,
-0.029624462127685547,
-0.049863994121551514,
-0.01573415845632553,
0.10329087823629379,
0.01585356704890728,
0.05330060049891472,
0.0034109323751181364,
-0.006526460871100426,
-0.030256927013397217,
0.016065534204244614,
0.0032583381980657578,
-0.05558517202734947,
0.2769227921962738,
0.054428305476903915,
0.09198916703462601,
-0.0229677464812994,
0.1105051040649414,
0.03303860127925873,
0.2314433753490448,
0.031722962856292725,
-0.07514186203479767,
-0.014907155185937881,
-0.04727393388748169,
0.11418604105710983,
-0.13163264095783234,
-0.11928640305995941,
-0.16209924221038818,
-0.050754036754369736,
-0.03454698249697685,
-0.03424268960952759,
-0.19961050152778625,
-0.08671389520168304,
9.903163380143524e-35,
0.07196098566055298,
-0.09610214084386826,
-0.0923568531870842,
-0.2707972824573517,
0.04174435883760452,
-0.06088089570403099,
0.09822654724121094,
0.16523213684558868,
-0.01018617209047079,
-0.09146849811077118,
-0.03415731340646744
] |
https://github.com/huggingface/datasets/issues/2470 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`. | Good catch ! Not sure why it could raise such a weird issue from pyarrow though
We should definitely reduce num_proc to the length of the dataset if needed and log a warning. | ## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
| 33 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`.
## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
Good catch ! Not sure why it could raise such a weird issue from pyarrow though
We should definitely reduce num_proc to the length of the dataset if needed and log a warning. | [
0.011318046599626541,
0.10271144658327103,
-0.012329691089689732,
0.041337139904499054,
0.35585370659828186,
-0.008259639143943787,
0.027178915217518806,
-0.024285394698381424,
-0.045940134674310684,
0.19255216419696808,
0.012394115328788757,
-0.07120618969202042,
-0.05647800490260124,
0.01065839547663927,
0.15428461134433746,
0.0018587977392598987,
0.003212282434105873,
-0.07804424315690994,
0.02795100025832653,
-0.045553285628557205,
-0.2427431344985962,
0.10322796553373337,
0.11582065373659134,
-0.023505279794335365,
-0.17480850219726562,
-0.08339650928974152,
-0.06927769631147385,
0.1469556838274002,
-0.062094613909721375,
-0.14161404967308044,
-0.09521027654409409,
-0.10965333878993988,
-0.078581303358078,
0.13445748388767242,
0.000005462626177177299,
0.013613193295896053,
0.152922123670578,
0.017314275726675987,
0.07565203309059143,
-0.14413583278656006,
0.12027613818645477,
-0.05901021882891655,
0.036386750638484955,
-0.03558122366666794,
0.1111254170536995,
-0.10033810883760452,
-0.0728636309504509,
0.02691679261624813,
0.030104074627161026,
0.030969973653554916,
0.011485633440315723,
-0.06988128274679184,
0.16840636730194092,
-0.11919539421796799,
0.08657075464725494,
0.13585339486598969,
0.07126352190971375,
-0.024714533239603043,
-0.06152790039777756,
-0.07760041952133179,
0.03317153826355934,
-0.07623549550771713,
-0.026876075193285942,
-0.08649050444364548,
-0.26287412643432617,
0.07856089621782303,
-0.13694274425506592,
-0.13494087755680084,
0.12879247963428497,
0.05371301621198654,
-0.0839691311120987,
0.005628677550703287,
-0.0038453543093055487,
0.04587414860725403,
0.0782821848988533,
-0.2174435406923294,
0.08440021425485611,
0.06432037055492401,
-0.05888541787862778,
0.006505592726171017,
-0.014321260154247284,
0.15123029053211212,
0.018211379647254944,
0.07182253897190094,
-0.12855783104896545,
0.03918042406439781,
-0.053875844925642014,
0.040131136775016785,
0.019138453528285027,
-0.043521951884031296,
-0.05605396255850792,
0.14521914720535278,
-0.056037936359643936,
-0.23264776170253754,
0.015223965048789978,
0.08502093702554703,
-0.05192882567644119,
-0.23044079542160034,
0.050112493336200714,
-0.16289234161376953,
-0.26157885789871216,
0.029163889586925507,
-0.07157561182975769,
0.08981592208147049,
0.0537668876349926,
-0.09503576904535294,
-0.09922144562005997,
0.031767722219228745,
0.01863969676196575,
-0.04919327050447464,
0.05335384979844093,
0.05546099692583084,
0.0010933415032923222,
0.148452028632164,
0.10996986925601959,
-0.06180198863148689,
0.14915141463279724,
0.054196685552597046,
0.07708295434713364,
0.22817249596118927,
-0.014569216407835484,
0.14687906205654144,
-0.09098395705223083,
-0.08815906941890717,
0.09930332750082016,
0.05326772853732109,
-0.05883299186825752,
-0.023153336718678474,
-0.1107243075966835,
0.04291268810629845,
-0.009935189038515091,
-0.08019617199897766,
-0.09199852496385574,
0.08993631601333618,
0.07912442088127136,
0.03385443985462189,
0.16544891893863678,
-0.1144985780119896,
-0.06407063454389572,
-0.14375512301921844,
0.0636783093214035,
-0.18420496582984924,
0.0632317066192627,
-0.01338804978877306,
0.022393563762307167,
0.08466543257236481,
0.1462847888469696,
0.06408056616783142,
0.13269132375717163,
-0.09620343893766403,
-0.20409834384918213,
0.13667704164981842,
-0.1973012089729309,
-0.008400543592870235,
-0.03812789544463158,
0.07564685493707657,
0.09688440710306168,
0.1443270593881607,
-0.17727170884609222,
-0.07171493768692017,
0.10887116938829422,
0.0174232367426157,
-0.0727027878165245,
-0.12810774147510529,
-0.004392923321574926,
0.08589428663253784,
-0.07014456391334534,
0.13117513060569763,
0.040640272200107574,
0.02530127391219139,
0.10549471527338028,
0.1207614317536354,
-0.007898584008216858,
-0.13572679460048676,
-0.08544068783521652,
0.13796116411685944,
-0.26035669445991516,
0.14572995901107788,
-0.44214779138565063,
0.014398849569261074,
0.047769177705049515,
-0.217201367020607,
-0.09423118084669113,
-0.19947932660579681,
0.27981066703796387,
-0.07490742951631546,
0.23323199152946472,
-0.02856704406440258,
-0.1806453913450241,
-0.07007158547639847,
-0.03311782330274582,
0.10062624514102936,
0.028522204607725143,
-0.0782817080616951,
0.06589697301387787,
-0.14028103649616241,
0.025308726355433464,
0.0233546681702137,
-0.1537470668554306,
-0.1302911788225174,
0.12961094081401825,
0.05940090864896774,
0.06205727532505989,
0.08109787106513977,
-0.07873395830392838,
-0.11471386253833771,
-0.17189791798591614,
0.06372011452913284,
0.04848369210958481,
-0.19960269331932068,
-0.19694840908050537,
0.1321173757314682,
0.07962091267108917,
0.27968111634254456,
-0.08537763357162476,
-0.13379749655723572,
-0.056877750903367996,
-0.0411541610956192,
-0.18773707747459412,
0.17824822664260864,
-0.13683703541755676,
-0.0049735805951058865,
0.09427136182785034,
0.03920120745897293,
0.02892465330660343,
-0.05700196698307991,
-0.022229209542274475,
-0.09445437043905258,
0.018175438046455383,
0.1442520022392273,
0.025259286165237427,
-0.023126253858208656,
0.12074825167655945,
-0.004289502277970314,
0.017956005409359932,
-0.08041554689407349,
-0.12156106531620026,
-0.1643897145986557,
0.09323947876691818,
-0.0736919492483139,
-0.08571893721818924,
0.01374682318419218,
-0.16658802330493927,
-0.1209726557135582,
0.14895805716514587,
-0.03495492413640022,
0.04516860842704773,
0.1323651671409607,
0.03969215974211693,
0.02681421861052513,
0.21486733853816986,
0.23553216457366943,
-0.1844327747821808,
0.006131927017122507,
0.05864637717604637,
-0.08047032356262207,
0.1430986225605011,
0.001401685643941164,
-0.029064087197184563,
-0.1135723665356636,
0.3059755265712738,
-0.07013478130102158,
0.04617808386683464,
-0.17463617026805878,
-0.04985174164175987,
-0.08011671900749207,
-0.02524368278682232,
0.0013868636451661587,
0.0013601870741695166,
0.08461546897888184,
0.12848059833049774,
-0.08570050448179245,
-0.07528792321681976,
-0.11559180915355682,
-0.14240479469299316,
-0.05005588382482529,
-0.1508808583021164,
0.013787904754281044,
0.019594771787524223,
0.0058743651024997234,
-0.009957182221114635,
-0.07055094093084335,
0.1727248579263687,
-0.002574297832325101,
0.14588913321495056,
0.1926119029521942,
-0.070641428232193,
0.08980292081832886,
-0.1898709386587143,
0.009961248375475407,
-0.009601905010640621,
-0.009402868337929249,
-0.007060753647238016,
-0.06818968802690506,
-0.053280651569366455,
-0.07305781543254852,
0.06169596314430237,
-0.1906656175851822,
0.04258764907717705,
0.025954190641641617,
0.1276487410068512,
0.02724633738398552,
-0.00913285557180643,
-0.04269944876432419,
0.1895902156829834,
-0.07124637812376022,
0.12454853951931,
0.1664981245994568,
-0.16430170834064484,
-0.10422264784574509,
-0.17767880856990814,
-0.027965141460299492,
0.024189312011003494,
0.0638854056596756,
0.13254974782466888,
0.08837762475013733,
0.13177552819252014,
-0.23101173341274261,
0.10013043135404587,
-0.10844678431749344,
0.02058938518166542,
0.1659410446882248,
-0.14334650337696075,
-0.0628398135304451,
-0.014684033580124378,
0.016980670392513275,
-0.11651422828435898,
-0.07836151123046875,
0.05661340430378914,
0.050466932356357574,
-0.09170229732990265,
0.10443753749132156,
0.023752599954605103,
-0.07595802843570709,
0.07223618775606155,
-0.29866936802864075,
-0.054592031985521317,
0.1315285563468933,
0.05237272009253502,
0.012968748807907104,
-0.04267822951078415,
-0.09139765799045563,
-0.03155350685119629,
-0.034377776086330414,
0.15304496884346008,
-0.04100698605179787,
0.18666236102581024,
-0.020052311941981316,
0.05739075317978859,
0.016857964918017387,
-0.08611606061458588,
0.06414848566055298,
0.03575897589325905,
-0.037870727479457855,
0.025559069588780403,
0.00487448601052165,
-0.01896413043141365,
-0.030949141830205917,
-0.1778613030910492,
0.07343783229589462,
0.11039470136165619,
0.10228010267019272,
0.15833275020122528,
0.05928331986069679,
-0.22467418015003204,
-0.09296795725822449,
0.12540274858474731,
-0.039745062589645386,
-0.1393793523311615,
-0.11065318435430527,
0.019803324714303017,
-0.0930398628115654,
-0.07078102231025696,
-0.050021085888147354,
-0.12472880631685257,
-0.15943434834480286,
0.03544413670897484,
-0.24089649319648743,
0.1570574790239334,
0.03455258905887604,
0.08335720002651215,
0.008563539944589138,
0.006072208750993013,
0.05864359438419342,
0.09204541146755219,
0.044785309582948685,
-0.05837173014879227,
0.0019306999165564775,
-0.1293657422065735,
-0.04479053616523743,
0.06983373314142227,
-0.026052037253975868,
-0.08645599335432053,
-0.03694653883576393,
0.03509427607059479,
-0.16247202455997467,
0.19598938524723053,
0.0782301127910614,
0.12402091175317764,
-0.04822158440947533,
0.24453195929527283,
0.23001687228679657,
-0.08050456643104553,
-0.006057338789105415,
-0.010705405846238136,
0.0748295933008194,
-0.19779981672763824,
-0.021586816757917404,
0.04221797361969948,
0.077106773853302,
0.08036193251609802,
0.2598896920681,
0.05640561506152153,
0.07046829909086227,
0.20809929072856903,
0.04013892263174057,
0.024046823382377625,
0.19300663471221924,
0.011300280690193176,
-0.1704075038433075,
-0.050268422812223434,
-0.11823958903551102,
-0.0585918128490448,
0.10294779390096664,
-0.030408333986997604,
-0.11400489509105682,
0.041197769343853,
-0.16413825750350952,
0.12920884788036346,
0.07079054415225983,
-0.06080968677997589,
-0.09673916548490524,
0.02008533664047718,
0.0404091402888298,
0.015390700660645962,
0.11226901412010193,
0.07289586216211319,
0.014605619944632053,
-0.014772441238164902,
0.11661756783723831,
0.07502163201570511,
0.001144780544564128,
-0.0648350641131401,
-0.2064664363861084,
0.02315719798207283,
-0.136042520403862,
-0.07816730439662933,
0.1071874350309372,
0.16892476379871368,
0.07695188373327255,
0.03708545118570328,
-0.17990642786026,
0.12965035438537598,
-0.1570681482553482,
0.11914189904928207,
0.10299035906791687,
0.14885248243808746,
-0.280000239610672,
0.026606259867548943,
0.18170799314975739,
0.11215350776910782,
-0.07977582514286041,
0.019171666353940964,
0.02734917216002941,
0.015656378120183945,
0.1097690612077713,
0.24603086709976196,
-0.07363367080688477,
0.04435586929321289,
0.04886215180158615,
-0.04419494792819023,
0.027596216648817062,
-0.0337323434650898,
0.00433250842615962,
0.0552499033510685,
0.05925868824124336,
-0.016633285209536552,
0.0815436840057373,
0.10640391707420349,
-0.04604361578822136,
0.06602262705564499,
0.02781694009900093,
-0.08118393272161484,
-0.10879652947187424,
0.10551729798316956,
0.24283142387866974,
-0.17558781802654266,
-0.07471805810928345,
-0.005162465386092663,
0.01157441921532154,
0.031636063009500504,
-0.10628712922334671,
0.005210834555327892,
-0.10992646962404251,
0.11182932555675507,
-0.07757814973592758,
0.2263529896736145,
-0.0005824879044666886,
0.07909820228815079,
0.0029641634318977594,
0.12663845717906952,
-0.10174547135829926,
-0.13950291275978088,
-0.14445362985134125,
0.007044733036309481,
0.008095361292362213,
-0.011205430142581463,
-0.11873403936624527,
0.10167797654867172,
-0.013700198382139206,
0.22934329509735107,
0.11158515512943268,
0.05880696699023247,
-0.007031378801912069,
0.013885807245969772,
-0.07014212757349014,
-0.1616154909133911,
0.00039554075920023024,
-0.035601187497377396,
-0.10048923641443253,
0.07644032686948776,
-0.04201146587729454,
-0.04041796922683716,
-0.12445800006389618,
-0.0029560464899986982,
-0.022233588621020317,
0.006332211662083864,
-0.04902824014425278,
0.20797544717788696,
0.06073091924190521,
0.15940161049365997,
-0.061094384640455246,
0.2620459794998169,
-0.12791353464126587,
-0.07025595754384995,
0.2045239955186844,
0.022550633177161217,
-0.03869599476456642,
-0.07934946566820145,
-0.0885998085141182,
-0.04195086658000946,
-0.19043105840682983,
-0.20718112587928772,
-0.018377285450696945,
-0.03643754869699478,
0.1094357818365097,
0.031831175088882446,
-0.11259108781814575,
-0.04096389189362526,
-0.14134876430034637,
0.0726809874176979,
0.10338097810745239,
0.0858382061123848,
-0.06718860566616058,
-0.026470161974430084,
-2.3386974388387895e-32,
-0.02210826426744461,
-0.20211443305015564,
-0.12804850935935974,
-0.14314718544483185,
-0.05976550653576851,
0.047967493534088135,
0.028735212981700897,
0.011023393832147121,
0.12889109551906586,
-0.10850545763969421,
-0.011742904782295227,
-0.09605146944522858,
0.035432763397693634,
0.020029965788125992,
0.022056225687265396,
0.02097809687256813,
0.10467909276485443,
0.14091482758522034,
-0.010433637537062168,
0.05398082360625267,
0.09635862708091736,
0.061973102390766144,
-0.21100543439388275,
0.15369610488414764,
0.11135778576135635,
0.06004510074853897,
0.06086106598377228,
-0.10324754565954208,
0.1816186010837555,
-0.05414346978068352,
0.00650033401325345,
0.23303723335266113,
-0.007353762164711952,
-0.08491426706314087,
0.013630964793264866,
-0.07540539652109146,
-0.19717372953891754,
-0.03545169159770012,
-0.025716649368405342,
-0.03530052304267883,
0.11206866800785065,
0.07711482048034668,
0.14173485338687897,
-0.020775817334651947,
0.07744432985782623,
0.016773512586951256,
0.028774436563253403,
-0.0002949527115561068,
-0.1570596694946289,
-0.003813730785623193,
0.17309854924678802,
-0.012420065701007843,
-0.0409163273870945,
0.14122766256332397,
-0.09057945013046265,
-0.22292107343673706,
0.07441405951976776,
0.14698724448680878,
-0.044334277510643005,
-0.09344709664583206,
0.017803829163312912,
-0.07574108988046646,
0.06074528396129608,
0.0174518171697855,
-0.03024941496551037,
0.05576951429247856,
0.4346052408218384,
0.03327791765332222,
-0.09450889378786087,
-0.10870694369077682,
-0.08212871104478836,
0.054732803255319595,
-0.12407401949167252,
-0.12591056525707245,
0.038968052715063095,
-0.03340844810009003,
0.0006479148287326097,
-0.07302328199148178,
-0.012458995915949345,
-0.06837993860244751,
0.10548900812864304,
-0.020324209704995155,
0.028758732602000237,
-0.13077957928180695,
-0.03951670974493027,
0.05723949149250984,
0.02067525126039982,
0.11254418641328812,
-0.10568928718566895,
-0.024327991530299187,
0.058818768709897995,
0.18931598961353302,
-0.18452976644039154,
-0.07840637117624283,
-0.07383660227060318,
0.01193178165704012,
-0.0821559801697731,
0.06467842310667038,
-0.20171226561069489,
0.10136140137910843,
-0.010856324806809425,
-0.09959762543439865,
0.0672883689403534,
-0.030617885291576385,
0.04735246300697327,
0.05827644094824791,
0.06686476618051529,
-0.0834311842918396,
-0.17145074903964996,
-0.12235970795154572,
0.05757033824920654,
-0.010643011890351772,
-0.0030096815899014473,
0.1622651070356369,
0.16352562606334686,
-0.03365940973162651,
0.04025015980005264,
-0.14740607142448425,
0.2256690263748169,
0.2089899778366089,
0.011738874949514866,
-0.09297043830156326,
-0.012553514912724495,
-0.07888225466012955,
0.03416547179222107,
0.050794851034879684,
-0.15094728767871857,
-0.024667827412486076,
0.23154477775096893,
-0.043757788836956024,
0.023947499692440033,
-0.04112112522125244,
7.721636734459025e-7,
-0.10858338326215744,
0.040245916694402695,
-0.043037544935941696,
-0.12936091423034668,
-0.049503933638334274,
0.046782877296209335,
-0.059654392302036285,
0.10714203864336014,
-0.16603265702724457,
0.16984674334526062,
0.12174226343631744,
-0.08755438774824142,
0.09124955534934998,
0.12659157812595367,
0.04923558607697487,
0.07697509229183197,
-0.14273418486118317,
0.16516657173633575,
-0.15309183299541473,
-0.022110814228653908,
-0.09449300169944763,
-0.027607113122940063,
0.1926569938659668,
-0.039108507335186005,
0.018497738987207413,
-0.20995306968688965,
-0.06662116199731827,
-0.12313313037157059,
0.09379611164331436,
-0.1398538500070572,
-0.012793448753654957,
0.06111178174614906,
0.0022264348808676004,
0.1465524286031723,
-0.0018781351391226053,
-0.029624462127685547,
-0.049863994121551514,
-0.01573415845632553,
0.10329087823629379,
0.01585356704890728,
0.05330060049891472,
0.0034109323751181364,
-0.006526460871100426,
-0.030256927013397217,
0.016065534204244614,
0.0032583381980657578,
-0.05558517202734947,
0.2769227921962738,
0.054428305476903915,
0.09198916703462601,
-0.0229677464812994,
0.1105051040649414,
0.03303860127925873,
0.2314433753490448,
0.031722962856292725,
-0.07514186203479767,
-0.014907155185937881,
-0.04727393388748169,
0.11418604105710983,
-0.13163264095783234,
-0.11928640305995941,
-0.16209924221038818,
-0.050754036754369736,
-0.03454698249697685,
-0.03424268960952759,
-0.19961050152778625,
-0.08671389520168304,
9.903163380143524e-35,
0.07196098566055298,
-0.09610214084386826,
-0.0923568531870842,
-0.2707972824573517,
0.04174435883760452,
-0.06088089570403099,
0.09822654724121094,
0.16523213684558868,
-0.01018617209047079,
-0.09146849811077118,
-0.03415731340646744
] |
https://github.com/huggingface/datasets/issues/2470 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`. | This has been fixed in #2566, thanks @connor-mccarthy !
We'll make a new release soon that includes the fix ;) | ## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
| 20 | Crash when `num_proc` > dataset length for `map()` on a `datasets.Dataset`.
## Describe the bug
Crash if when using `num_proc` > 1 (I used 16) for `map()` on a `datasets.Dataset`.
I believe I've had cases where `num_proc` > 1 works before, but now it seems either inconsistent, or depends on my data. I'm not sure whether the issue is on my end, because it's difficult for me to debug! Any tips greatly appreciated, I'm happy to provide more info if it would helps us diagnose.
## Steps to reproduce the bug
```python
# this function will be applied with map()
def tokenize_function(examples):
return tokenizer(
examples["text"],
padding=PaddingStrategy.DO_NOT_PAD,
truncation=True,
)
# data_files is a Dict[str, str] mapping name -> path
datasets = load_dataset("text", data_files={...})
# this is where the error happens if num_proc = 16,
# but is fine if num_proc = 1
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=num_workers,
)
```
## Expected results
The `map()` function succeeds with `num_proc` > 1.
## Actual results
![image](https://user-images.githubusercontent.com/1170062/121404271-a6cc5200-c910-11eb-8e27-5c893bd04042.png)
![image](https://user-images.githubusercontent.com/1170062/121404362-be0b3f80-c910-11eb-9117-658943029aef.png)
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-glibc2.31
- Python version: 3.9.5
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes, but I think N/A for this issue
- Using distributed or parallel set-up in script?: Multi-GPU on one machine, but I think also N/A for this issue
This has been fixed in #2566, thanks @connor-mccarthy !
We'll make a new release soon that includes the fix ;) | [
0.011318046599626541,
0.10271144658327103,
-0.012329691089689732,
0.041337139904499054,
0.35585370659828186,
-0.008259639143943787,
0.027178915217518806,
-0.024285394698381424,
-0.045940134674310684,
0.19255216419696808,
0.012394115328788757,
-0.07120618969202042,
-0.05647800490260124,
0.01065839547663927,
0.15428461134433746,
0.0018587977392598987,
0.003212282434105873,
-0.07804424315690994,
0.02795100025832653,
-0.045553285628557205,
-0.2427431344985962,
0.10322796553373337,
0.11582065373659134,
-0.023505279794335365,
-0.17480850219726562,
-0.08339650928974152,
-0.06927769631147385,
0.1469556838274002,
-0.062094613909721375,
-0.14161404967308044,
-0.09521027654409409,
-0.10965333878993988,
-0.078581303358078,
0.13445748388767242,
0.000005462626177177299,
0.013613193295896053,
0.152922123670578,
0.017314275726675987,
0.07565203309059143,
-0.14413583278656006,
0.12027613818645477,
-0.05901021882891655,
0.036386750638484955,
-0.03558122366666794,
0.1111254170536995,
-0.10033810883760452,
-0.0728636309504509,
0.02691679261624813,
0.030104074627161026,
0.030969973653554916,
0.011485633440315723,
-0.06988128274679184,
0.16840636730194092,
-0.11919539421796799,
0.08657075464725494,
0.13585339486598969,
0.07126352190971375,
-0.024714533239603043,
-0.06152790039777756,
-0.07760041952133179,
0.03317153826355934,
-0.07623549550771713,
-0.026876075193285942,
-0.08649050444364548,
-0.26287412643432617,
0.07856089621782303,
-0.13694274425506592,
-0.13494087755680084,
0.12879247963428497,
0.05371301621198654,
-0.0839691311120987,
0.005628677550703287,
-0.0038453543093055487,
0.04587414860725403,
0.0782821848988533,
-0.2174435406923294,
0.08440021425485611,
0.06432037055492401,
-0.05888541787862778,
0.006505592726171017,
-0.014321260154247284,
0.15123029053211212,
0.018211379647254944,
0.07182253897190094,
-0.12855783104896545,
0.03918042406439781,
-0.053875844925642014,
0.040131136775016785,
0.019138453528285027,
-0.043521951884031296,
-0.05605396255850792,
0.14521914720535278,
-0.056037936359643936,
-0.23264776170253754,
0.015223965048789978,
0.08502093702554703,
-0.05192882567644119,
-0.23044079542160034,
0.050112493336200714,
-0.16289234161376953,
-0.26157885789871216,
0.029163889586925507,
-0.07157561182975769,
0.08981592208147049,
0.0537668876349926,
-0.09503576904535294,
-0.09922144562005997,
0.031767722219228745,
0.01863969676196575,
-0.04919327050447464,
0.05335384979844093,
0.05546099692583084,
0.0010933415032923222,
0.148452028632164,
0.10996986925601959,
-0.06180198863148689,
0.14915141463279724,
0.054196685552597046,
0.07708295434713364,
0.22817249596118927,
-0.014569216407835484,
0.14687906205654144,
-0.09098395705223083,
-0.08815906941890717,
0.09930332750082016,
0.05326772853732109,
-0.05883299186825752,
-0.023153336718678474,
-0.1107243075966835,
0.04291268810629845,
-0.009935189038515091,
-0.08019617199897766,
-0.09199852496385574,
0.08993631601333618,
0.07912442088127136,
0.03385443985462189,
0.16544891893863678,
-0.1144985780119896,
-0.06407063454389572,
-0.14375512301921844,
0.0636783093214035,
-0.18420496582984924,
0.0632317066192627,
-0.01338804978877306,
0.022393563762307167,
0.08466543257236481,
0.1462847888469696,
0.06408056616783142,
0.13269132375717163,
-0.09620343893766403,
-0.20409834384918213,
0.13667704164981842,
-0.1973012089729309,
-0.008400543592870235,
-0.03812789544463158,
0.07564685493707657,
0.09688440710306168,
0.1443270593881607,
-0.17727170884609222,
-0.07171493768692017,
0.10887116938829422,
0.0174232367426157,
-0.0727027878165245,
-0.12810774147510529,
-0.004392923321574926,
0.08589428663253784,
-0.07014456391334534,
0.13117513060569763,
0.040640272200107574,
0.02530127391219139,
0.10549471527338028,
0.1207614317536354,
-0.007898584008216858,
-0.13572679460048676,
-0.08544068783521652,
0.13796116411685944,
-0.26035669445991516,
0.14572995901107788,
-0.44214779138565063,
0.014398849569261074,
0.047769177705049515,
-0.217201367020607,
-0.09423118084669113,
-0.19947932660579681,
0.27981066703796387,
-0.07490742951631546,
0.23323199152946472,
-0.02856704406440258,
-0.1806453913450241,
-0.07007158547639847,
-0.03311782330274582,
0.10062624514102936,
0.028522204607725143,
-0.0782817080616951,
0.06589697301387787,
-0.14028103649616241,
0.025308726355433464,
0.0233546681702137,
-0.1537470668554306,
-0.1302911788225174,
0.12961094081401825,
0.05940090864896774,
0.06205727532505989,
0.08109787106513977,
-0.07873395830392838,
-0.11471386253833771,
-0.17189791798591614,
0.06372011452913284,
0.04848369210958481,
-0.19960269331932068,
-0.19694840908050537,
0.1321173757314682,
0.07962091267108917,
0.27968111634254456,
-0.08537763357162476,
-0.13379749655723572,
-0.056877750903367996,
-0.0411541610956192,
-0.18773707747459412,
0.17824822664260864,
-0.13683703541755676,
-0.0049735805951058865,
0.09427136182785034,
0.03920120745897293,
0.02892465330660343,
-0.05700196698307991,
-0.022229209542274475,
-0.09445437043905258,
0.018175438046455383,
0.1442520022392273,
0.025259286165237427,
-0.023126253858208656,
0.12074825167655945,
-0.004289502277970314,
0.017956005409359932,
-0.08041554689407349,
-0.12156106531620026,
-0.1643897145986557,
0.09323947876691818,
-0.0736919492483139,
-0.08571893721818924,
0.01374682318419218,
-0.16658802330493927,
-0.1209726557135582,
0.14895805716514587,
-0.03495492413640022,
0.04516860842704773,
0.1323651671409607,
0.03969215974211693,
0.02681421861052513,
0.21486733853816986,
0.23553216457366943,
-0.1844327747821808,
0.006131927017122507,
0.05864637717604637,
-0.08047032356262207,
0.1430986225605011,
0.001401685643941164,
-0.029064087197184563,
-0.1135723665356636,
0.3059755265712738,
-0.07013478130102158,
0.04617808386683464,
-0.17463617026805878,
-0.04985174164175987,
-0.08011671900749207,
-0.02524368278682232,
0.0013868636451661587,
0.0013601870741695166,
0.08461546897888184,
0.12848059833049774,
-0.08570050448179245,
-0.07528792321681976,
-0.11559180915355682,
-0.14240479469299316,
-0.05005588382482529,
-0.1508808583021164,
0.013787904754281044,
0.019594771787524223,
0.0058743651024997234,
-0.009957182221114635,
-0.07055094093084335,
0.1727248579263687,
-0.002574297832325101,
0.14588913321495056,
0.1926119029521942,
-0.070641428232193,
0.08980292081832886,
-0.1898709386587143,
0.009961248375475407,
-0.009601905010640621,
-0.009402868337929249,
-0.007060753647238016,
-0.06818968802690506,
-0.053280651569366455,
-0.07305781543254852,
0.06169596314430237,
-0.1906656175851822,
0.04258764907717705,
0.025954190641641617,
0.1276487410068512,
0.02724633738398552,
-0.00913285557180643,
-0.04269944876432419,
0.1895902156829834,
-0.07124637812376022,
0.12454853951931,
0.1664981245994568,
-0.16430170834064484,
-0.10422264784574509,
-0.17767880856990814,
-0.027965141460299492,
0.024189312011003494,
0.0638854056596756,
0.13254974782466888,
0.08837762475013733,
0.13177552819252014,
-0.23101173341274261,
0.10013043135404587,
-0.10844678431749344,
0.02058938518166542,
0.1659410446882248,
-0.14334650337696075,
-0.0628398135304451,
-0.014684033580124378,
0.016980670392513275,
-0.11651422828435898,
-0.07836151123046875,
0.05661340430378914,
0.050466932356357574,
-0.09170229732990265,
0.10443753749132156,
0.023752599954605103,
-0.07595802843570709,
0.07223618775606155,
-0.29866936802864075,
-0.054592031985521317,
0.1315285563468933,
0.05237272009253502,
0.012968748807907104,
-0.04267822951078415,
-0.09139765799045563,
-0.03155350685119629,
-0.034377776086330414,
0.15304496884346008,
-0.04100698605179787,
0.18666236102581024,
-0.020052311941981316,
0.05739075317978859,
0.016857964918017387,
-0.08611606061458588,
0.06414848566055298,
0.03575897589325905,
-0.037870727479457855,
0.025559069588780403,
0.00487448601052165,
-0.01896413043141365,
-0.030949141830205917,
-0.1778613030910492,
0.07343783229589462,
0.11039470136165619,
0.10228010267019272,
0.15833275020122528,
0.05928331986069679,
-0.22467418015003204,
-0.09296795725822449,
0.12540274858474731,
-0.039745062589645386,
-0.1393793523311615,
-0.11065318435430527,
0.019803324714303017,
-0.0930398628115654,
-0.07078102231025696,
-0.050021085888147354,
-0.12472880631685257,
-0.15943434834480286,
0.03544413670897484,
-0.24089649319648743,
0.1570574790239334,
0.03455258905887604,
0.08335720002651215,
0.008563539944589138,
0.006072208750993013,
0.05864359438419342,
0.09204541146755219,
0.044785309582948685,
-0.05837173014879227,
0.0019306999165564775,
-0.1293657422065735,
-0.04479053616523743,
0.06983373314142227,
-0.026052037253975868,
-0.08645599335432053,
-0.03694653883576393,
0.03509427607059479,
-0.16247202455997467,
0.19598938524723053,
0.0782301127910614,
0.12402091175317764,
-0.04822158440947533,
0.24453195929527283,
0.23001687228679657,
-0.08050456643104553,
-0.006057338789105415,
-0.010705405846238136,
0.0748295933008194,
-0.19779981672763824,
-0.021586816757917404,
0.04221797361969948,
0.077106773853302,
0.08036193251609802,
0.2598896920681,
0.05640561506152153,
0.07046829909086227,
0.20809929072856903,
0.04013892263174057,
0.024046823382377625,
0.19300663471221924,
0.011300280690193176,
-0.1704075038433075,
-0.050268422812223434,
-0.11823958903551102,
-0.0585918128490448,
0.10294779390096664,
-0.030408333986997604,
-0.11400489509105682,
0.041197769343853,
-0.16413825750350952,
0.12920884788036346,
0.07079054415225983,
-0.06080968677997589,
-0.09673916548490524,
0.02008533664047718,
0.0404091402888298,
0.015390700660645962,
0.11226901412010193,
0.07289586216211319,
0.014605619944632053,
-0.014772441238164902,
0.11661756783723831,
0.07502163201570511,
0.001144780544564128,
-0.0648350641131401,
-0.2064664363861084,
0.02315719798207283,
-0.136042520403862,
-0.07816730439662933,
0.1071874350309372,
0.16892476379871368,
0.07695188373327255,
0.03708545118570328,
-0.17990642786026,
0.12965035438537598,
-0.1570681482553482,
0.11914189904928207,
0.10299035906791687,
0.14885248243808746,
-0.280000239610672,
0.026606259867548943,
0.18170799314975739,
0.11215350776910782,
-0.07977582514286041,
0.019171666353940964,
0.02734917216002941,
0.015656378120183945,
0.1097690612077713,
0.24603086709976196,
-0.07363367080688477,
0.04435586929321289,
0.04886215180158615,
-0.04419494792819023,
0.027596216648817062,
-0.0337323434650898,
0.00433250842615962,
0.0552499033510685,
0.05925868824124336,
-0.016633285209536552,
0.0815436840057373,
0.10640391707420349,
-0.04604361578822136,
0.06602262705564499,
0.02781694009900093,
-0.08118393272161484,
-0.10879652947187424,
0.10551729798316956,
0.24283142387866974,
-0.17558781802654266,
-0.07471805810928345,
-0.005162465386092663,
0.01157441921532154,
0.031636063009500504,
-0.10628712922334671,
0.005210834555327892,
-0.10992646962404251,
0.11182932555675507,
-0.07757814973592758,
0.2263529896736145,
-0.0005824879044666886,
0.07909820228815079,
0.0029641634318977594,
0.12663845717906952,
-0.10174547135829926,
-0.13950291275978088,
-0.14445362985134125,
0.007044733036309481,
0.008095361292362213,
-0.011205430142581463,
-0.11873403936624527,
0.10167797654867172,
-0.013700198382139206,
0.22934329509735107,
0.11158515512943268,
0.05880696699023247,
-0.007031378801912069,
0.013885807245969772,
-0.07014212757349014,
-0.1616154909133911,
0.00039554075920023024,
-0.035601187497377396,
-0.10048923641443253,
0.07644032686948776,
-0.04201146587729454,
-0.04041796922683716,
-0.12445800006389618,
-0.0029560464899986982,
-0.022233588621020317,
0.006332211662083864,
-0.04902824014425278,
0.20797544717788696,
0.06073091924190521,
0.15940161049365997,
-0.061094384640455246,
0.2620459794998169,
-0.12791353464126587,
-0.07025595754384995,
0.2045239955186844,
0.022550633177161217,
-0.03869599476456642,
-0.07934946566820145,
-0.0885998085141182,
-0.04195086658000946,
-0.19043105840682983,
-0.20718112587928772,
-0.018377285450696945,
-0.03643754869699478,
0.1094357818365097,
0.031831175088882446,
-0.11259108781814575,
-0.04096389189362526,
-0.14134876430034637,
0.0726809874176979,
0.10338097810745239,
0.0858382061123848,
-0.06718860566616058,
-0.026470161974430084,
-2.3386974388387895e-32,
-0.02210826426744461,
-0.20211443305015564,
-0.12804850935935974,
-0.14314718544483185,
-0.05976550653576851,
0.047967493534088135,
0.028735212981700897,
0.011023393832147121,
0.12889109551906586,
-0.10850545763969421,
-0.011742904782295227,
-0.09605146944522858,
0.035432763397693634,
0.020029965788125992,
0.022056225687265396,
0.02097809687256813,
0.10467909276485443,
0.14091482758522034,
-0.010433637537062168,
0.05398082360625267,
0.09635862708091736,
0.061973102390766144,
-0.21100543439388275,
0.15369610488414764,
0.11135778576135635,
0.06004510074853897,
0.06086106598377228,
-0.10324754565954208,
0.1816186010837555,
-0.05414346978068352,
0.00650033401325345,
0.23303723335266113,
-0.007353762164711952,
-0.08491426706314087,
0.013630964793264866,
-0.07540539652109146,
-0.19717372953891754,
-0.03545169159770012,
-0.025716649368405342,
-0.03530052304267883,
0.11206866800785065,
0.07711482048034668,
0.14173485338687897,
-0.020775817334651947,
0.07744432985782623,
0.016773512586951256,
0.028774436563253403,
-0.0002949527115561068,
-0.1570596694946289,
-0.003813730785623193,
0.17309854924678802,
-0.012420065701007843,
-0.0409163273870945,
0.14122766256332397,
-0.09057945013046265,
-0.22292107343673706,
0.07441405951976776,
0.14698724448680878,
-0.044334277510643005,
-0.09344709664583206,
0.017803829163312912,
-0.07574108988046646,
0.06074528396129608,
0.0174518171697855,
-0.03024941496551037,
0.05576951429247856,
0.4346052408218384,
0.03327791765332222,
-0.09450889378786087,
-0.10870694369077682,
-0.08212871104478836,
0.054732803255319595,
-0.12407401949167252,
-0.12591056525707245,
0.038968052715063095,
-0.03340844810009003,
0.0006479148287326097,
-0.07302328199148178,
-0.012458995915949345,
-0.06837993860244751,
0.10548900812864304,
-0.020324209704995155,
0.028758732602000237,
-0.13077957928180695,
-0.03951670974493027,
0.05723949149250984,
0.02067525126039982,
0.11254418641328812,
-0.10568928718566895,
-0.024327991530299187,
0.058818768709897995,
0.18931598961353302,
-0.18452976644039154,
-0.07840637117624283,
-0.07383660227060318,
0.01193178165704012,
-0.0821559801697731,
0.06467842310667038,
-0.20171226561069489,
0.10136140137910843,
-0.010856324806809425,
-0.09959762543439865,
0.0672883689403534,
-0.030617885291576385,
0.04735246300697327,
0.05827644094824791,
0.06686476618051529,
-0.0834311842918396,
-0.17145074903964996,
-0.12235970795154572,
0.05757033824920654,
-0.010643011890351772,
-0.0030096815899014473,
0.1622651070356369,
0.16352562606334686,
-0.03365940973162651,
0.04025015980005264,
-0.14740607142448425,
0.2256690263748169,
0.2089899778366089,
0.011738874949514866,
-0.09297043830156326,
-0.012553514912724495,
-0.07888225466012955,
0.03416547179222107,
0.050794851034879684,
-0.15094728767871857,
-0.024667827412486076,
0.23154477775096893,
-0.043757788836956024,
0.023947499692440033,
-0.04112112522125244,
7.721636734459025e-7,
-0.10858338326215744,
0.040245916694402695,
-0.043037544935941696,
-0.12936091423034668,
-0.049503933638334274,
0.046782877296209335,
-0.059654392302036285,
0.10714203864336014,
-0.16603265702724457,
0.16984674334526062,
0.12174226343631744,
-0.08755438774824142,
0.09124955534934998,
0.12659157812595367,
0.04923558607697487,
0.07697509229183197,
-0.14273418486118317,
0.16516657173633575,
-0.15309183299541473,
-0.022110814228653908,
-0.09449300169944763,
-0.027607113122940063,
0.1926569938659668,
-0.039108507335186005,
0.018497738987207413,
-0.20995306968688965,
-0.06662116199731827,
-0.12313313037157059,
0.09379611164331436,
-0.1398538500070572,
-0.012793448753654957,
0.06111178174614906,
0.0022264348808676004,
0.1465524286031723,
-0.0018781351391226053,
-0.029624462127685547,
-0.049863994121551514,
-0.01573415845632553,
0.10329087823629379,
0.01585356704890728,
0.05330060049891472,
0.0034109323751181364,
-0.006526460871100426,
-0.030256927013397217,
0.016065534204244614,
0.0032583381980657578,
-0.05558517202734947,
0.2769227921962738,
0.054428305476903915,
0.09198916703462601,
-0.0229677464812994,
0.1105051040649414,
0.03303860127925873,
0.2314433753490448,
0.031722962856292725,
-0.07514186203479767,
-0.014907155185937881,
-0.04727393388748169,
0.11418604105710983,
-0.13163264095783234,
-0.11928640305995941,
-0.16209924221038818,
-0.050754036754369736,
-0.03454698249697685,
-0.03424268960952759,
-0.19961050152778625,
-0.08671389520168304,
9.903163380143524e-35,
0.07196098566055298,
-0.09610214084386826,
-0.0923568531870842,
-0.2707972824573517,
0.04174435883760452,
-0.06088089570403099,
0.09822654724121094,
0.16523213684558868,
-0.01018617209047079,
-0.09146849811077118,
-0.03415731340646744
] |
https://github.com/huggingface/datasets/issues/2462 | Merge DatasetDict and Dataset | Unless there is high demande I don't think we will end up implementing this. This is a lot of work with very few advantages | As discussed in #2424 and #2437 (please see there for detailed conversation):
- It would be desirable to improve UX with respect the confusion between DatasetDict and Dataset.
- The difference between Dataset and DatasetDict is an additional abstraction complexity that confuses "typical" end users.
- A user expects a "Dataset" (whatever it contains multiple or a single split) and maybe it could be interesting to try to simplify the user-facing API as much as possible to hide this complexity from the end user.
Here is a proposal for discussion and refined (and potential abandon if it's not good enough):
- let's consider that a DatasetDict is also a Dataset with the various split concatenated one after the other
- let's disallow the use of integers in split names (probably not a very big breaking change)
- when you index with integers you access the examples progressively in split after the other is finished (in a deterministic order)
- when you index with strings/split name you have the same behavior as now (full backward compat)
- let's then also have all the methods of a Dataset on the DatasetDict
The end goal would be to merge both Dataset and DatasetDict object in a single object that would be (pretty much totally) backward compatible with both.
There are a few things that we could discuss if we want to merge Dataset and DatasetDict:
1. what happens if you index by a string ? Does it return the column or the split ? We could disallow conflicts between column names and split names to avoid ambiguities. It can be surprising to be able to get a column or a split using the same indexing feature
```
from datasets import load_dataset
dataset = load_dataset(...)
dataset["train"]
dataset["input_ids"]
```
2. what happens when you iterate over the object ? I guess it should iterate over the examples as a Dataset object, but a DatasetDict used to iterate over the splits as they are the dictionary keys. This is a breaking change that we can discuss.
Moreover regarding your points:
- integers are not allowed as split names already
- it's definitely doable to have all the methods. Maybe some of them like train_test_split that is currently only available for Dataset can be tweaked to work for a split dataset
cc: @thomwolf @lhoestq | 24 | Merge DatasetDict and Dataset
As discussed in #2424 and #2437 (please see there for detailed conversation):
- It would be desirable to improve UX with respect the confusion between DatasetDict and Dataset.
- The difference between Dataset and DatasetDict is an additional abstraction complexity that confuses "typical" end users.
- A user expects a "Dataset" (whatever it contains multiple or a single split) and maybe it could be interesting to try to simplify the user-facing API as much as possible to hide this complexity from the end user.
Here is a proposal for discussion and refined (and potential abandon if it's not good enough):
- let's consider that a DatasetDict is also a Dataset with the various split concatenated one after the other
- let's disallow the use of integers in split names (probably not a very big breaking change)
- when you index with integers you access the examples progressively in split after the other is finished (in a deterministic order)
- when you index with strings/split name you have the same behavior as now (full backward compat)
- let's then also have all the methods of a Dataset on the DatasetDict
The end goal would be to merge both Dataset and DatasetDict object in a single object that would be (pretty much totally) backward compatible with both.
There are a few things that we could discuss if we want to merge Dataset and DatasetDict:
1. what happens if you index by a string ? Does it return the column or the split ? We could disallow conflicts between column names and split names to avoid ambiguities. It can be surprising to be able to get a column or a split using the same indexing feature
```
from datasets import load_dataset
dataset = load_dataset(...)
dataset["train"]
dataset["input_ids"]
```
2. what happens when you iterate over the object ? I guess it should iterate over the examples as a Dataset object, but a DatasetDict used to iterate over the splits as they are the dictionary keys. This is a breaking change that we can discuss.
Moreover regarding your points:
- integers are not allowed as split names already
- it's definitely doable to have all the methods. Maybe some of them like train_test_split that is currently only available for Dataset can be tweaked to work for a split dataset
cc: @thomwolf @lhoestq
Unless there is high demande I don't think we will end up implementing this. This is a lot of work with very few advantages | [
-0.006423499435186386,
0.3579995632171631,
-0.03177792951464653,
0.12527576088905334,
0.09157036244869232,
0.015027804300189018,
0.20912134647369385,
0.11492923647165298,
-0.023235587403178215,
0.1540384292602539,
-0.07979222387075424,
0.034895166754722595,
-0.03933110460639,
0.2261626422405243,
0.07904040068387985,
-0.29345858097076416,
0.08100442588329315,
-0.015742337331175804,
-0.029134223237633705,
0.17813260853290558,
-0.04059547185897827,
0.03907744586467743,
0.0774138942360878,
0.09643810242414474,
-0.0438448041677475,
-0.16551001369953156,
-0.09522754698991776,
0.05582335591316223,
-0.06639532744884491,
0.1445809006690979,
0.11466425657272339,
0.11353817582130432,
0.13405609130859375,
0.06827854365110397,
0.0000060872007452417165,
0.09591048955917358,
0.1816503405570984,
-0.10449213534593582,
-0.10356859862804413,
-0.11823736876249313,
0.036791324615478516,
0.01063938532024622,
0.18486288189888,
-0.05090566352009773,
-0.10434117168188095,
-0.12160677462816238,
0.0009963479824364185,
0.01044385600835085,
0.1862715780735016,
0.005750812590122223,
-0.046332553029060364,
-0.12436702847480774,
-0.07732575386762619,
-0.06150031089782715,
-0.010933971963822842,
0.20235343277454376,
0.0419449657201767,
0.08080043643712997,
-0.1687076836824417,
-0.15514464676380157,
0.1433888077735901,
0.006302296184003353,
0.070194311439991,
-0.07925695180892944,
-0.03832259774208069,
0.05993853136897087,
-0.27855801582336426,
-0.053752437233924866,
-0.03868903964757919,
0.11282585561275482,
0.08515717834234238,
-0.016066687181591988,
0.005214028991758823,
0.06712182611227036,
-0.07599177956581116,
-0.13350677490234375,
-0.13116692006587982,
-0.09031932055950165,
0.05301927030086517,
0.1119796559214592,
-0.015005037188529968,
-0.02983432076871395,
0.0062205553986132145,
0.0925121158361435,
-0.18647262454032898,
-0.06088251620531082,
-0.08515704423189163,
0.2025652676820755,
-0.08010315895080566,
-0.0014245633501559496,
0.164907306432724,
-0.08590404689311981,
-0.13585790991783142,
0.029090510681271553,
-0.08914859592914581,
0.03481989726424217,
-0.0634978860616684,
-0.15922793745994568,
-0.034868184477090836,
0.060721345245838165,
-0.098745197057724,
-0.06723151355981827,
-0.035022709518671036,
-0.06775713711977005,
-0.027581479400396347,
-0.12002119421958923,
-0.07940639555454254,
0.062303170561790466,
-0.10236913710832596,
0.1133948415517807,
-0.06397731602191925,
0.08544570952653885,
0.02667110227048397,
-0.013933711685240269,
0.09280698001384735,
0.1029418483376503,
-0.009912782348692417,
0.11475900560617447,
-0.13650695979595184,
-0.11065354943275452,
0.048148609697818756,
0.006384938955307007,
0.18639825284481049,
0.0549297071993351,
-0.0652603805065155,
-0.042180463671684265,
0.03102567233145237,
0.023972149938344955,
0.052230820059776306,
-0.03625465929508209,
-0.005496548023074865,
0.07842458039522171,
0.10350348055362701,
0.03584950044751167,
0.04855314642190933,
0.0203649140894413,
-0.058371566236019135,
0.03283895179629326,
-0.14877958595752716,
-0.12119545787572861,
0.09559103846549988,
0.0199099313467741,
-0.07828669995069504,
-0.011597178876399994,
0.19973310828208923,
-0.1042172983288765,
-0.032807834446430206,
0.05217360332608223,
-0.10876701027154922,
0.06439386308193207,
-0.11832524091005325,
0.037674032151699066,
-0.2297547608613968,
0.3058212995529175,
0.06192304193973541,
0.06422798335552216,
-0.04629646986722946,
0.009187629446387291,
-0.1775853931903839,
0.0406549796462059,
0.09612865746021271,
-0.12188231199979782,
-0.026068374514579773,
0.02038155496120453,
0.00451551703736186,
0.13745611906051636,
-0.09988181293010712,
-0.0013466407544910908,
-0.17456670105457306,
-0.12457636743783951,
-0.012137103825807571,
-0.021339865401387215,
-0.1534973829984665,
-0.002127602230757475,
-0.026919709518551826,
0.005986927542835474,
-0.0018831960624083877,
0.08137823641300201,
-0.19735229015350342,
0.024756865575909615,
0.053921665996313095,
-0.10777735710144043,
0.08489537984132767,
-0.037611447274684906,
0.18789969384670258,
0.05162268877029419,
0.09368965774774551,
0.06819368898868561,
-0.10766274482011795,
-0.19345101714134216,
-0.04888973757624626,
0.025288889184594154,
0.05835491046309471,
0.24447456002235413,
0.07911340147256851,
-0.12672263383865356,
0.05091381445527077,
-0.06742452830076218,
0.058834049850702286,
-0.08631236851215363,
-0.07399272918701172,
-0.19070777297019958,
-0.03659794479608536,
-0.04581480473279953,
0.013120449148118496,
-0.11072665452957153,
-0.1735808104276657,
-0.09750615060329437,
0.15572547912597656,
-0.10192570835351944,
-0.07303036749362946,
-0.12152339518070221,
-0.10111352056264877,
-0.03901142627000809,
-0.12830311059951782,
0.07930589467287064,
-0.08884856849908829,
-0.04697193577885628,
0.026437358930706978,
0.1027982234954834,
-0.030720015987753868,
0.0331735797226429,
-0.0216054767370224,
0.14140476286411285,
0.11208301782608032,
0.12065606564283371,
-0.0847022533416748,
0.07596690207719803,
0.10462149977684021,
0.1308438777923584,
-0.0006480129668489099,
-0.012600877322256565,
0.038063887506723404,
0.18406561017036438,
-0.04268414154648781,
-0.05211634933948517,
0.16546203196048737,
-0.11502908915281296,
0.17961864173412323,
0.05773531645536423,
-0.11082875728607178,
0.03396257013082504,
-0.06529451161623001,
-0.09023135155439377,
-0.08774371445178986,
0.21215257048606873,
-0.008164705708622932,
0.07618693262338638,
-0.036109473556280136,
-0.11666510999202728,
-0.00006842971924925223,
0.20045419037342072,
-0.011388893239200115,
-0.01515210047364235,
-0.10539677739143372,
-0.09048634022474289,
0.007489720359444618,
0.15081432461738586,
0.09981922060251236,
0.07972002029418945,
0.048066798597574234,
-0.031036127358675003,
-0.012196465395390987,
-0.005068094469606876,
0.08310893177986145,
-0.048127029091119766,
0.08507507294416428,
0.1803666204214096,
-0.008642857894301414,
0.0388110876083374,
0.22311358153820038,
0.016582593321800232,
-0.18085989356040955,
-0.04347533360123634,
0.02499653398990631,
0.06769897043704987,
-0.00120639824308455,
0.06270071119070053,
0.03196132928133011,
-0.05954147130250931,
-0.19442082941532135,
0.024888427928090096,
0.04395683854818344,
-0.08162306249141693,
0.11298353224992752,
0.07577700912952423,
-0.17243602871894836,
-0.09573949128389359,
-0.07710764557123184,
-0.017881106585264206,
-0.10234049707651138,
-0.06736918538808823,
-0.014627238735556602,
-0.20571692287921906,
0.1973962038755417,
0.044341813772916794,
-0.021852808073163033,
-0.04622471332550049,
-0.2175234705209732,
-0.06382393091917038,
0.10561748594045639,
0.018570275977253914,
0.212890625,
0.06614897400140762,
0.054633647203445435,
0.15845581889152527,
0.1676367074251175,
0.08385851234197617,
-0.19733203947544098,
-0.14565828442573547,
-0.00404625479131937,
-0.0786357969045639,
0.00034614524338394403,
-0.06121057644486427,
0.038929473608732224,
-0.07683323323726654,
-0.07873538881540298,
-0.30352768301963806,
0.0526147186756134,
0.11220577359199524,
-0.14128224551677704,
-0.03813238814473152,
-0.0008829040452837944,
0.044753625988960266,
0.026659850031137466,
0.00484076701104641,
-0.20872674882411957,
-0.11097992211580276,
0.140377938747406,
-0.09690890461206436,
-0.11934021860361099,
-0.004019707441329956,
0.0054547544568777084,
-0.10126657038927078,
0.2203386425971985,
-0.09177479147911072,
-0.17290957272052765,
0.17973126471042633,
0.04508266597986221,
0.03310593217611313,
-0.09575425833463669,
-0.0411100909113884,
-0.07817428559064865,
-0.0486438013613224,
0.10899951308965683,
-0.04899881035089493,
0.023153074085712433,
-0.12125609815120697,
0.18888144195079803,
0.08135910332202911,
-0.06143646687269211,
0.12410465627908707,
0.05732986703515053,
0.12113966047763824,
0.07019934058189392,
-0.024928409606218338,
-0.21584491431713104,
0.0773080512881279,
-0.15226219594478607,
0.11958563327789307,
0.08397272229194641,
-0.059322141110897064,
0.25048941373825073,
-0.008302334696054459,
-0.00936178956180811,
-0.08874223381280899,
0.14565744996070862,
0.08568373322486877,
-0.017971204593777657,
-0.23751215636730194,
-0.06124483793973923,
-0.24257469177246094,
0.17249661684036255,
-0.047492776066064835,
0.022671353071928024,
-0.013581819832324982,
-0.06431666016578674,
-0.07137636095285416,
0.0027253965381532907,
-0.09471280127763748,
0.02578268013894558,
-0.14869698882102966,
0.021104935556650162,
0.02078624628484249,
-0.03821016475558281,
0.07862042635679245,
0.02813638187944889,
0.14493310451507568,
0.020013215020298958,
0.0796634778380394,
-0.0782681256532669,
-0.0763009563088417,
0.04732672870159149,
-0.1498745232820511,
-0.0044828783720731735,
0.10800020396709442,
0.08207704871892929,
0.10246341675519943,
0.0983276516199112,
-0.02371520921587944,
0.06119625270366669,
0.11090154945850372,
-0.018794415518641472,
-0.13699236512184143,
0.0710381418466568,
-0.04366776719689369,
0.13553456962108612,
0.15982790291309357,
0.1408722996711731,
0.0072823213413357735,
0.10846170037984848,
-0.07784310728311539,
-0.15880993008613586,
0.058724939823150635,
0.2944450080394745,
0.017771203070878983,
-0.0870102122426033,
-0.03125736489892006,
0.15680351853370667,
-0.09166064858436584,
-0.10789699107408524,
-0.1725429892539978,
0.08250799775123596,
0.21287822723388672,
-0.030415667220950127,
-0.08232031762599945,
-0.18529999256134033,
0.11640993505716324,
0.09959058463573456,
0.04026239737868309,
0.249508336186409,
-0.0049319337122142315,
0.1302061676979065,
0.09302216023206711,
0.14335040748119354,
0.037414971739053726,
0.13166648149490356,
-0.17428745329380035,
-0.13238050043582916,
-0.07645195722579956,
-0.16425901651382446,
0.11400037258863449,
0.09324155747890472,
-0.01890779472887516,
0.10005256533622742,
-0.12153791636228561,
0.00480634206905961,
0.06118527427315712,
-0.006273695733398199,
0.1321113556623459,
-0.12799468636512756,
-0.16386131942272186,
-0.2277538925409317,
0.0021814899519085884,
0.20483069121837616,
-0.020319433882832527,
0.15123488008975983,
-0.0423668809235096,
-0.04023180902004242,
-0.01501578651368618,
-0.11585510522127151,
-0.05963422730565071,
0.024553732946515083,
0.05509727820754051,
-0.14951670169830322,
0.12698453664779663,
0.08544746041297913,
-0.023446744307875633,
-0.22042284905910492,
-0.1372700333595276,
-0.008141721598803997,
0.11512013524770737,
0.08983004838228226,
-0.058594491332769394,
0.12577642500400543,
0.07055070996284485,
-0.09912403672933578,
-0.15865986049175262,
0.08675598353147507,
0.08076407015323639,
0.10725471377372742,
0.06809311360120773,
-0.02518010325729847,
0.011385293677449226,
-0.14804182946681976,
0.05122200399637222,
-0.1272159069776535,
0.009967059828341007,
-0.10243919491767883,
0.06553012877702713,
0.005834794603288174,
-0.06992117315530777,
-0.006339964456856251,
0.20900247991085052,
0.12423242628574371,
-0.1507853865623474,
-0.09562192857265472,
0.07717517763376236,
-0.06518276035785675,
0.2075519859790802,
0.10151417553424835,
0.03942950442433357,
0.05025102570652962,
-0.18887828290462494,
-0.15220613777637482,
-0.15060211718082428,
-0.023796197026968002,
-0.04331612586975098,
0.07972538471221924,
-0.16928015649318695,
0.03934473544359207,
0.10593022406101227,
-0.012888201512396336,
-0.2088281214237213,
0.08089936524629593,
0.12388557940721512,
-0.2552976608276367,
-0.05616731941699982,
0.08100033551454544,
-0.011732494458556175,
-0.16094592213630676,
-0.06252840906381607,
0.03069951944053173,
-0.05275028944015503,
0.034246958792209625,
0.06415265798568726,
-0.00503565976396203,
-0.08667565882205963,
0.001966330222785473,
0.11778046935796738,
0.01569145731627941,
0.08713529258966446,
0.050661638379096985,
-0.09440280497074127,
0.09542015939950943,
0.14802442491054535,
0.0951637327671051,
-0.17299428582191467,
0.19047968089580536,
-0.040482137352228165,
-0.1116529256105423,
-0.1940533071756363,
-0.22632759809494019,
0.13045208156108856,
0.20749370753765106,
-0.10103104263544083,
-0.021833278238773346,
0.09181873500347137,
-0.038087405264377594,
-0.006824012380093336,
0.06178800016641617,
0.14911115169525146,
-0.015801487490534782,
-0.17404168844223022,
-0.10437846183776855,
-2.3883379775268393e-32,
0.08549276739358902,
0.14997728168964386,
0.0291649978607893,
-0.05639195442199707,
-0.19488400220870972,
-0.034732431173324585,
-0.05170462653040886,
-0.05995630472898483,
-0.20662714540958405,
0.031161658465862274,
-0.17557640373706818,
0.1345277726650238,
0.058850206434726715,
-0.029025748372077942,
-0.0831720158457756,
-0.12663646042346954,
-0.022209228947758675,
-0.13698823750019073,
0.08843575417995453,
0.05413472279906273,
0.13278761506080627,
-0.06343124061822891,
0.21426932513713837,
-0.028658954426646233,
-0.1904926598072052,
-0.06429058313369751,
0.02100079134106636,
0.05421484261751175,
-0.0021166226360946894,
-0.08369512856006622,
-0.023914193734526634,
0.037921078503131866,
0.08106330037117004,
-0.07646005600690842,
-0.10113590955734253,
0.05528680980205536,
-0.07482185959815979,
0.03797638788819313,
-0.11482885479927063,
-0.013600914739072323,
-0.025453822687268257,
0.07052268087863922,
0.3417726755142212,
-0.030706027522683144,
0.18300971388816833,
-0.010694453492760658,
-0.07158200442790985,
-0.06734926253557205,
-0.08122923225164413,
0.05230700969696045,
0.11562521755695343,
0.02839123271405697,
0.035227708518505096,
-0.029825467616319656,
0.20900066196918488,
0.022587070241570473,
-0.0600709468126297,
-0.06760149449110031,
-0.015482370741665363,
0.16650858521461487,
0.21724870800971985,
-0.011236725375056267,
0.0057989247143268585,
-0.0648738220334053,
0.0720454677939415,
0.09697407484054565,
0.11336443573236465,
-0.13998837769031525,
0.07395606487989426,
-0.08423510938882828,
-0.013023857027292252,
0.2389104664325714,
-0.018678391352295876,
-0.007623642683029175,
-0.05451900139451027,
-0.23957940936088562,
-0.2077825963497162,
0.08623594790697098,
-0.03704947605729103,
-0.1152963861823082,
-0.3071035146713257,
0.018021412193775177,
0.06592784076929092,
0.06744444370269775,
0.05602367967367172,
-0.09559538215398788,
0.07207311689853668,
0.06843654811382294,
-0.013045597821474075,
-0.0935443639755249,
-0.22466184198856354,
0.06310685724020004,
-0.000459641742054373,
-0.0834658145904541,
-0.11171197146177292,
0.09086758643388748,
-0.06782509386539459,
0.19754178822040558,
0.032558102160692215,
-0.11939810961484909,
-0.05127474665641785,
0.08883892744779587,
0.20442844927310944,
0.12074526399374008,
0.005056386813521385,
-0.0025769053027033806,
0.02998717688024044,
0.07857828587293625,
-0.08536728471517563,
0.05897990241646767,
-0.09550148993730545,
-0.15922029316425323,
0.04517630860209465,
-0.04743669182062149,
0.12690123915672302,
0.01910516619682312,
0.15059609711170197,
-0.19350193440914154,
0.11008361726999283,
-0.05998711287975311,
-0.17005571722984314,
0.13297179341316223,
-0.03560056537389755,
-0.04974810406565666,
0.14059723913669586,
0.10831276327371597,
-0.13734957575798035,
-0.1157594844698906,
0.213730588555336,
-0.016353996470570564,
-0.008892540819942951,
0.01877731829881668,
7.338921363952977e-7,
-0.2093491107225418,
-0.18188384175300598,
0.03137535974383354,
0.017001384869217873,
-0.0796770453453064,
0.10259924083948135,
-0.08310011774301529,
-0.04111390560865402,
0.02208312414586544,
-0.09899888187646866,
0.2017340362071991,
-0.1469717025756836,
-0.0026831647846847773,
-0.09204664826393127,
0.000004347209141997155,
-0.0406842902302742,
-0.07888809591531754,
-0.02840600535273552,
-0.12512962520122528,
-0.17451722919940948,
0.1519961655139923,
0.009003500454127789,
0.10349292308092117,
-0.14562687277793884,
-0.034266065806150436,
0.05071191489696503,
-0.23457597196102142,
-0.007860053330659866,
0.04493231698870659,
0.10309948772192001,
0.017583437263965607,
-0.06489864736795425,
-0.00860130600631237,
-0.01323694922029972,
-0.11202840507030487,
-0.13283774256706238,
0.027690796181559563,
-0.020624278113245964,
-0.1075437143445015,
0.16353312134742737,
0.029282858595252037,
-0.06899324804544449,
-0.014085226692259312,
0.012105157598853111,
0.22708110511302948,
0.17647355794906616,
0.03935915604233742,
0.029432453215122223,
-0.17237798869609833,
0.1579018384218216,
-0.0173649899661541,
0.07875826209783554,
0.034914132207632065,
0.34492555260658264,
-0.1900789886713028,
0.008191599510610104,
0.06975126266479492,
-0.11375361680984497,
0.08934486657381058,
0.029114654287695885,
-0.16809451580047607,
0.03488873317837715,
-0.09112481772899628,
-0.0013020846527069807,
0.009973559528589249,
-0.014929699711501598,
-0.04740982875227928,
8.785723412189362e-35,
-0.19109636545181274,
0.03671899437904358,
-0.03550216183066368,
0.08582514524459839,
0.05197979137301445,
-0.04796966537833214,
0.01754150167107582,
0.15705426037311554,
-0.058932576328516006,
0.1515580415725708,
-0.00785552803426981
] |
https://github.com/huggingface/datasets/issues/2450 | BLUE file not found | Hi ! The `blue` metric doesn't exist, but the `bleu` metric does.
You can get the full list of metrics [here](https://github.com/huggingface/datasets/tree/master/metrics) or by running
```python
from datasets import list_metrics
print(list_metrics())
``` | Hi, I'm having the following issue when I try to load the `blue` metric.
```shell
import datasets
metric = datasets.load_metric('blue')
Traceback (most recent call last):
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/load.py", line 320, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 291, in cached_path
use_auth_token=download_config.use_auth_token,
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 621, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.7.0/metrics/blue/blue.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/load.py", line 332, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 291, in cached_path
use_auth_token=download_config.use_auth_token,
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 621, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/metrics/blue/blue.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/load.py", line 605, in load_metric
dataset=False,
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/load.py", line 343, in prepare_module
combined_path, github_file_path
FileNotFoundError: Couldn't find file locally at blue/blue.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.7.0/metrics/blue/blue.py.
The file is also not present on the master branch on github.
```
Here is dataset installed version info
```shell
pip freeze | grep datasets
datasets==1.7.0
```
| 31 | BLUE file not found
Hi, I'm having the following issue when I try to load the `blue` metric.
```shell
import datasets
metric = datasets.load_metric('blue')
Traceback (most recent call last):
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/load.py", line 320, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 291, in cached_path
use_auth_token=download_config.use_auth_token,
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 621, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.7.0/metrics/blue/blue.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/load.py", line 332, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 291, in cached_path
use_auth_token=download_config.use_auth_token,
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 621, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/metrics/blue/blue.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/load.py", line 605, in load_metric
dataset=False,
File "/home/irfan/environments/Perplexity_Transformers/lib/python3.6/site-packages/datasets/load.py", line 343, in prepare_module
combined_path, github_file_path
FileNotFoundError: Couldn't find file locally at blue/blue.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.7.0/metrics/blue/blue.py.
The file is also not present on the master branch on github.
```
Here is dataset installed version info
```shell
pip freeze | grep datasets
datasets==1.7.0
```
Hi ! The `blue` metric doesn't exist, but the `bleu` metric does.
You can get the full list of metrics [here](https://github.com/huggingface/datasets/tree/master/metrics) or by running
```python
from datasets import list_metrics
print(list_metrics())
``` | [
0.24215956032276154,
0.0988580510020256,
-0.03626606985926628,
-0.14412929117679596,
0.04472561180591583,
0.04421915113925934,
0.13121075928211212,
0.04658505320549011,
-0.04257911071181297,
0.036089807748794556,
-0.1574631929397583,
-0.15677890181541443,
-0.0002927293535321951,
-0.026031896471977234,
0.07221730798482895,
-0.043301645666360855,
-0.17060139775276184,
0.12538670003414154,
0.00022727066243533045,
0.024141116067767143,
0.019463520497083664,
0.1506141871213913,
-0.01354286726564169,
-0.0793212428689003,
-0.09519729018211365,
0.04733676463365555,
-0.00964024756103754,
0.02726089581847191,
-0.07096995413303375,
-0.1672373116016388,
0.1274764984846115,
0.10927610844373703,
-0.03541739284992218,
0.318551629781723,
0.000005457210590975592,
-0.07214415073394775,
0.12959253787994385,
0.150228351354599,
0.041435156017541885,
-0.2853294909000397,
0.09524223208427429,
0.02412070706486702,
-0.02767506241798401,
0.08309885859489441,
-0.01769883744418621,
-0.0715724304318428,
0.029832009226083755,
0.21283087134361267,
-0.007493298966437578,
0.16000021994113922,
0.05515062063932419,
0.10469181090593338,
0.031540170311927795,
-0.09112942963838577,
0.07926430553197861,
-0.08316212892532349,
0.008933932520449162,
0.19042032957077026,
-0.14514853060245514,
-0.02424839697778225,
0.08547280728816986,
0.03837857395410538,
0.11099357903003693,
0.12566307187080383,
-0.1069970652461052,
-0.036509592086076736,
0.10325051099061966,
-0.06780009716749191,
-0.026776393875479698,
0.28211063146591187,
-0.08568921685218811,
0.12013181298971176,
-0.28565022349357605,
0.043375663459300995,
-0.030734648928046227,
-0.156769260764122,
0.09882660955190659,
0.13153676688671112,
0.0870179682970047,
0.03046390227973461,
-0.23933576047420502,
-0.2127583771944046,
0.041773710399866104,
0.014407634735107422,
-0.10804130882024765,
0.02733703702688217,
-0.18687663972377777,
-0.027977317571640015,
-0.07988574355840683,
-0.14745360612869263,
0.062389276921749115,
-0.007445757742971182,
-0.05081252008676529,
-0.15767133235931396,
0.21416129171848297,
0.176151841878891,
0.01927436888217926,
-0.061593905091285706,
-0.05178708955645561,
0.0498059019446373,
-0.041590895503759384,
-0.13244053721427917,
-0.1484748274087906,
0.1809401959180832,
0.10132437944412231,
0.08287196606397629,
0.033426959067583084,
-0.04438451677560806,
0.17911458015441895,
0.09561391919851303,
-0.05087192356586456,
-0.002526292111724615,
-0.06740109622478485,
-0.19825279712677002,
0.23206818103790283,
-0.11616896837949753,
0.1227441132068634,
-0.11560158431529999,
-0.1679600030183792,
-0.005415521562099457,
0.17864589393138885,
0.19441352784633636,
-0.04013559967279434,
0.18080393970012665,
-0.04793483391404152,
-0.13145682215690613,
0.09561807662248611,
0.23085302114486694,
-0.012907580472528934,
0.05690397694706917,
0.0040503316558897495,
0.06806834042072296,
-0.0971919372677803,
-0.007270976435393095,
0.0864560529589653,
-0.06039624288678169,
0.07727108150720596,
-0.22634054720401764,
0.07391143590211868,
0.009226392023265362,
0.06490567326545715,
-0.16879616677761078,
-0.17350324988365173,
0.07619598507881165,
0.11582590639591217,
0.030792634934186935,
0.11492664366960526,
-0.04748479276895523,
0.005024154204875231,
-0.035695452243089676,
-0.15929681062698364,
0.12115646153688431,
-0.21592646837234497,
0.067029669880867,
-0.16088835895061493,
0.01859235018491745,
-0.06313064694404602,
0.07985334098339081,
-0.12623360753059387,
-0.29884400963783264,
0.00969971064478159,
-0.2129301279783249,
0.047436751425266266,
0.0064396061934530735,
0.07514914870262146,
0.13356256484985352,
0.07268848270177841,
-0.04125168174505234,
0.04929233342409134,
-0.02255241945385933,
0.008373512886464596,
0.03754958510398865,
-0.060603395104408264,
0.08872906118631363,
-0.304324209690094,
0.08933638036251068,
0.05498884245753288,
-0.10957435518503189,
-0.24246343970298767,
0.10328370332717896,
-0.02496160939335823,
-0.01413000002503395,
0.01414310373365879,
-0.05364552140235901,
0.10538778454065323,
-0.060975346714258194,
0.009651824831962585,
0.042790140956640244,
0.09213043749332428,
-0.019694659858942032,
-0.059508174657821655,
-0.009037167765200138,
0.04634957015514374,
-0.018744276836514473,
0.13197024166584015,
-0.13012011349201202,
0.08655521273612976,
-0.06610811501741409,
0.12394969910383224,
-0.19923178851604462,
0.16254672408103943,
-0.10666332393884659,
-0.04736588895320892,
0.00567183643579483,
0.06923454254865646,
0.06082654744386673,
0.09509648382663727,
0.16792409121990204,
-0.08471080660820007,
-0.20319993793964386,
-0.22724661231040955,
0.017410317435860634,
-0.0956418439745903,
-0.058465778827667236,
-0.08268134295940399,
-0.0835711881518364,
-0.10453373193740845,
-0.052048247307538986,
-0.03765846788883209,
0.08980532735586166,
0.0026030666194856167,
0.029342757537961006,
0.14660930633544922,
0.0075865574181079865,
0.10403857380151749,
0.11426479369401932,
0.030196739360690117,
0.002941484097391367,
0.07802805304527283,
0.14087113738059998,
-0.1370522528886795,
-0.026375312358140945,
-0.01999586448073387,
0.06662191450595856,
0.029893649742007256,
0.04991479963064194,
0.03406902030110359,
-0.203851118683815,
0.08026116341352463,
-0.0022988489363342524,
0.0231449156999588,
0.14106230437755585,
0.0062634688802063465,
-0.06578636914491653,
0.11450813710689545,
-0.0797516256570816,
-0.07241072505712509,
0.028127383440732956,
-0.0502428375184536,
-0.12256550043821335,
0.22900444269180298,
-0.0668419599533081,
-0.16595469415187836,
0.12860094010829926,
0.19746123254299164,
-0.1548013836145401,
0.013471411541104317,
0.04661392420530319,
-0.01040587853640318,
-0.11570706963539124,
0.18485413491725922,
-0.08001261204481125,
-0.07204988598823547,
-0.03341227024793625,
-0.010321847163140774,
-0.13114921748638153,
0.030762163922190666,
0.10899069160223007,
0.05612839385867119,
0.09772636741399765,
-0.013879131525754929,
0.0199944656342268,
-0.10584194213151932,
-0.07732608914375305,
0.1083972230553627,
-0.03437206149101257,
0.05279351398348808,
0.14621813595294952,
0.05878960341215134,
0.030217280611395836,
-0.10306591540575027,
0.07722187787294388,
0.08134488761425018,
-0.15231093764305115,
0.010418637655675411,
0.07458578795194626,
-0.09196063876152039,
-0.010190495289862156,
-0.09293622523546219,
0.0944504663348198,
-0.03953638672828674,
-0.0048082382418215275,
0.07386375963687897,
-0.07299941778182983,
-0.1035686656832695,
-0.1122826412320137,
0.13327628374099731,
-0.053774770349264145,
0.00848687905818224,
-0.04829120635986328,
-0.012535089626908302,
-0.012784749269485474,
-0.03627524524927139,
-0.09626800566911697,
0.004224145784974098,
0.09488791972398758,
0.2051069289445877,
0.024333858862519264,
-0.017511988058686256,
-0.2469714730978012,
0.10965054482221603,
-0.14620041847229004,
0.09382869303226471,
0.26812031865119934,
0.0004020389460492879,
-0.16191568970680237,
0.059969983994960785,
0.009606854990124702,
0.20274552702903748,
0.04619032144546509,
-0.026082003489136696,
-0.008223037235438824,
-0.11390364170074463,
0.0060669491067528725,
0.09765760600566864,
0.010906425304710865,
-0.19753065705299377,
-0.1622447669506073,
-0.17049820721149445,
-0.13458290696144104,
0.0030301157385110855,
-0.05315417796373367,
-0.045065704733133316,
-0.051999397575855255,
-0.04260088503360748,
-0.04203368350863457,
-0.055344726890325546,
-0.18029049038887024,
0.37114429473876953,
-0.039933107793331146,
-0.04911911487579346,
0.13062869012355804,
-0.03046085499227047,
0.12585236132144928,
-0.006730119232088327,
-0.10447311401367188,
0.043989986181259155,
0.014484681189060211,
-0.003726603463292122,
-0.00939208921045065,
0.19055961072444916,
-0.0012439851416274905,
-0.09379767626523972,
-0.03982740640640259,
0.12409453094005585,
0.0249839648604393,
-0.15050771832466125,
0.052764974534511566,
0.18428412079811096,
0.16354107856750488,
0.1451951116323471,
0.045205868780612946,
0.14762012660503387,
-0.045121174305677414,
-0.06117352098226547,
0.16708117723464966,
0.20496219396591187,
0.22362020611763,
0.007068334147334099,
0.06477098912000656,
0.09338340163230896,
0.060193080455064774,
0.01676025427877903,
0.006768644321709871,
0.09081219136714935,
0.12324942648410797,
-0.19897139072418213,
-0.1771562248468399,
-0.08977949619293213,
0.005867261905223131,
-0.05284414067864418,
-0.12296781688928604,
-0.05404425039887428,
0.10951095074415207,
-0.058027561753988266,
0.00963546708226204,
-0.034719232469797134,
0.03795194625854492,
0.1684587150812149,
0.06795210391283035,
-0.008384400978684425,
0.15389078855514526,
-0.042793989181518555,
-0.04774317517876625,
0.15475663542747498,
-0.05378224700689316,
0.16780225932598114,
-0.015255959704518318,
0.15498670935630798,
-0.016702383756637573,
-0.05494847893714905,
0.010893018916249275,
0.08307500928640366,
0.09457674622535706,
0.03482694551348686,
-0.11810341477394104,
0.1526937037706375,
-0.12569385766983032,
0.06954367458820343,
-0.07264125347137451,
-0.03591205179691315,
0.060166940093040466,
0.08325876295566559,
-0.004544797819107771,
0.10689838975667953,
0.11765294522047043,
0.010937155224382877,
-0.2010708451271057,
-0.16549572348594666,
-0.09378774464130402,
-0.22152411937713623,
-0.1703333556652069,
0.059020183980464935,
0.09346172958612442,
-0.05798420310020447,
-0.020888008177280426,
0.10209453105926514,
0.020721975713968277,
0.0958121195435524,
-0.11082898825407028,
-0.04866880178451538,
-0.027540024369955063,
0.10259198397397995,
0.21865640580654144,
-0.049323830753564835,
-0.04277146980166435,
0.22663360834121704,
-0.14592652022838593,
-0.21501126885414124,
0.13864754140377045,
-0.0813479870557785,
0.023549990728497505,
0.224807471036911,
-0.014760917983949184,
-0.06892330199480057,
-0.007468786556273699,
-0.09332059323787689,
0.08381986618041992,
0.0632186159491539,
0.028148667886853218,
0.008033827878534794,
-0.15764060616493225,
-0.1212707981467247,
-0.22568702697753906,
0.08047383278608322,
0.10675522685050964,
0.19050845503807068,
-0.02409891039133072,
0.08835794031620026,
0.01593373343348503,
-0.14515037834644318,
-0.08086811006069183,
-0.27573513984680176,
-0.004357935395091772,
0.05907878652215004,
-0.10990242660045624,
0.13293516635894775,
-0.20295023918151855,
0.1757461577653885,
0.022429626435041428,
-0.07128332555294037,
0.0926741510629654,
-0.11040704697370529,
0.14336882531642914,
0.06186152249574661,
0.11855149269104004,
0.08064870536327362,
-0.08413617312908173,
0.05792583152651787,
-0.05084778368473053,
0.20655086636543274,
0.04762738570570946,
0.024468768388032913,
0.049244433641433716,
-0.003970555029809475,
0.07597804069519043,
0.16639819741249084,
-0.14933732151985168,
-0.11316563934087753,
-0.1566692590713501,
0.222397118806839,
0.1121327131986618,
0.004304059781134129,
0.07272026687860489,
0.2051374912261963,
-0.10451601445674896,
-0.09846879541873932,
0.006519061513245106,
0.0935802087187767,
-0.04674915969371796,
0.12382484972476959,
-0.013571676798164845,
0.1270556002855301,
-0.09905604273080826,
-0.09714255481958389,
-0.23023757338523865,
0.15814650058746338,
0.025675324723124504,
-0.027730079367756844,
-0.2722557485103607,
0.0173098836094141,
0.06340739876031876,
-0.049259983003139496,
0.005475022830069065,
0.05712036415934563,
-0.09994480013847351,
0.10117466747760773,
0.07553428411483765,
-0.1202632263302803,
0.05511076748371124,
-0.01943395286798477,
-0.015407283790409565,
0.08275541663169861,
-0.09849072992801666,
-0.09786637872457504,
0.07225397974252701,
-0.15552888810634613,
-0.049923527985811234,
0.16405396163463593,
-0.051620643585920334,
-0.007015199866145849,
0.3012578785419464,
-0.003007421735674143,
0.04158483445644379,
-0.11119537800550461,
0.12291329354047775,
-0.022957421839237213,
0.026547871530056,
0.11834228783845901,
0.06543820351362228,
0.029317684471607208,
-0.2050115168094635,
0.11049191653728485,
0.13120137155056,
-0.048161089420318604,
0.14303752779960632,
-0.09731082618236542,
0.007194758392870426,
-0.11746509373188019,
-0.18879874050617218,
-0.04429112374782562,
0.11477863788604736,
-0.08742140978574753,
0.0895921066403389,
-0.00373457302339375,
-2.4546483485406938e-32,
-0.09022301435470581,
-0.06671365350484848,
-0.06449595838785172,
-0.008364480920135975,
-0.19109629094600677,
0.15783903002738953,
-0.07079794257879257,
-0.05097236484289169,
-0.17113538086414337,
-0.18634071946144104,
-0.007393664680421352,
-0.019742710515856743,
-0.009577163495123386,
0.07375317811965942,
-0.0069746836088597775,
-0.07167552411556244,
-0.23796901106834412,
-0.005441166460514069,
-0.023615965619683266,
-0.12633515894412994,
0.011452277190983295,
0.010733903385698795,
0.015277831815183163,
-0.08268062770366669,
-0.17163102328777313,
0.06883248686790466,
-0.2648877203464508,
-0.03531404957175255,
-0.026214081794023514,
-0.04655590280890465,
-0.03379093110561371,
0.05168706178665161,
0.0330485999584198,
0.008521205745637417,
-0.17751510441303253,
0.03775772824883461,
-0.052573222666978836,
-0.07936063408851624,
-0.20519186556339264,
0.13395896553993225,
-0.0008993339724838734,
0.13069716095924377,
-0.14467699825763702,
-0.10935548692941666,
0.071649931371212,
0.1811240017414093,
-0.10418365150690079,
-0.07023677229881287,
0.06086639314889908,
-0.1160007193684578,
0.06858853995800018,
0.09101215749979019,
0.001903542666696012,
0.12546148896217346,
0.004296347498893738,
0.017525628209114075,
0.03382483869791031,
0.16478276252746582,
-0.05469730123877525,
-0.0005566169274970889,
0.12653571367263794,
-0.1092008724808693,
0.14851760864257812,
0.12790808081626892,
0.23609936237335205,
-0.09663943946361542,
0.3211425542831421,
0.06606828421354294,
0.09681042283773422,
0.002863924019038677,
0.22211125493049622,
-0.03625189885497093,
-0.08136361837387085,
-0.03323008865118027,
-0.2775787115097046,
-0.03153281658887863,
-0.18216432631015778,
-0.04789942875504494,
0.18624885380268097,
-0.1408202201128006,
-0.03951580822467804,
-0.07417740672826767,
-0.01969507336616516,
-0.044764235615730286,
-0.05880993604660034,
0.1238083466887474,
-0.13243550062179565,
0.0007625548169016838,
-0.15268199145793915,
0.11724341660737991,
0.04957148805260658,
-0.020832078531384468,
-0.09704208374023438,
-0.024086417630314827,
-0.12094602733850479,
0.0846504345536232,
-0.0289701446890831,
0.045665182173252106,
-0.010414404794573784,
0.02125309221446514,
-0.13932089507579803,
0.05283425748348236,
0.10075388103723526,
0.09136708825826645,
0.03446182608604431,
-0.014233632013201714,
0.06629687547683716,
-0.04717302694916725,
-0.11909972876310349,
-0.06831897795200348,
0.00998620130121708,
0.06321296840906143,
0.19126611948013306,
-0.04293237626552582,
0.04089266434311867,
0.1490943282842636,
-0.16684487462043762,
0.1046762466430664,
0.12736015021800995,
0.024456875398755074,
-0.08870184421539307,
-0.05841163173317909,
-0.2855566740036011,
0.015136403031647205,
-0.1116553395986557,
-0.09810769557952881,
-0.18849238753318787,
-0.09888964891433716,
-0.023836839944124222,
0.09780693799257278,
-0.0415385439991951,
-0.10956326127052307,
7.222284921226674e-7,
-0.10394442081451416,
-0.041908927261829376,
0.0979297012090683,
-0.047081924974918365,
-0.24752183258533478,
0.033885207027196884,
-0.28243738412857056,
-0.030105609446763992,
-0.1116335466504097,
0.13649262487888336,
0.08763514459133148,
0.04124901071190834,
-0.20576058328151703,
-0.15229251980781555,
0.20926405489444733,
0.028376668691635132,
0.06661812216043472,
0.024721337482333183,
0.07028775662183762,
0.11765555292367935,
0.037672027945518494,
0.1582770049571991,
0.12238295376300812,
-0.025725863873958588,
-0.09761922806501389,
-0.009646553546190262,
0.012576797977089882,
-0.04786575958132744,
0.0790989026427269,
-0.03489764779806137,
-0.03569469600915909,
0.0972445011138916,
-0.10696342587471008,
0.18776065111160278,
0.05134003609418869,
0.05719319358468056,
-0.13448165357112885,
-0.14239127933979034,
0.13909965753555298,
-0.06476350873708725,
-0.02191084623336792,
0.06373024731874466,
0.028547365218400955,
-0.0101917190477252,
0.15746623277664185,
0.18428325653076172,
-0.09856322407722473,
-0.24374817311763763,
-0.04971730709075928,
0.010397758334875107,
0.1374618113040924,
0.10634919255971909,
0.11449215561151505,
0.08793194591999054,
-0.11408034712076187,
-0.10504285246133804,
0.0006244411342777312,
-0.0014859653310850263,
0.0017171234358102083,
-0.006059980485588312,
-0.06563548743724823,
-0.05952795222401619,
-0.06516945362091064,
0.1149572804570198,
0.1581989824771881,
0.06155776232481003,
0.09420964121818542,
1.1179055308717946e-35,
-0.07293345034122467,
-0.03862744942307472,
0.04958759993314743,
-0.21983402967453003,
0.0021653680596500635,
-0.0014372089644894004,
0.0824546292424202,
-0.1196904331445694,
0.01029649656265974,
-0.1790103167295456,
-0.010280727408826351
] |
https://github.com/huggingface/datasets/issues/2447 | dataset adversarial_qa has no answers in the "test" set | Hi ! I'm pretty sure that the answers are not made available for the test set on purpose because it is part of the DynaBench benchmark, for which you can submit your predictions on the website.
In any case we should mention this in the dataset card of this dataset. | ## Describe the bug
When loading the adversarial_qa dataset the 'test' portion has no answers. Only the 'train' and 'validation' portions do. This occurs with all four of the configs ('adversarialQA', 'dbidaf', 'dbert', 'droberta')
## Steps to reproduce the bug
```
from datasets import load_dataset
examples = load_dataset('adversarial_qa', 'adversarialQA', script_version="master")['test']
print('Loaded {:,} examples'.format(len(examples)))
has_answers = 0
for e in examples:
if e['answers']['text']:
has_answers += 1
print('{:,} have answers'.format(has_answers))
>>> Loaded 3,000 examples
>>> 0 have answers
examples = load_dataset('adversarial_qa', 'adversarialQA', script_version="master")['validation']
<...code above...>
>>> Loaded 3,000 examples
>>> 3,000 have answers
```
## Expected results
If 'test' is a valid dataset, it should have answers. Also note that all of the 'train' and 'validation' sets have answers, there are no "no answer" questions with this set (not sure if this is correct or not).
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.8.0-53-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyArrow version: 1.0.0
| 50 | dataset adversarial_qa has no answers in the "test" set
## Describe the bug
When loading the adversarial_qa dataset the 'test' portion has no answers. Only the 'train' and 'validation' portions do. This occurs with all four of the configs ('adversarialQA', 'dbidaf', 'dbert', 'droberta')
## Steps to reproduce the bug
```
from datasets import load_dataset
examples = load_dataset('adversarial_qa', 'adversarialQA', script_version="master")['test']
print('Loaded {:,} examples'.format(len(examples)))
has_answers = 0
for e in examples:
if e['answers']['text']:
has_answers += 1
print('{:,} have answers'.format(has_answers))
>>> Loaded 3,000 examples
>>> 0 have answers
examples = load_dataset('adversarial_qa', 'adversarialQA', script_version="master")['validation']
<...code above...>
>>> Loaded 3,000 examples
>>> 3,000 have answers
```
## Expected results
If 'test' is a valid dataset, it should have answers. Also note that all of the 'train' and 'validation' sets have answers, there are no "no answer" questions with this set (not sure if this is correct or not).
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.8.0-53-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyArrow version: 1.0.0
Hi ! I'm pretty sure that the answers are not made available for the test set on purpose because it is part of the DynaBench benchmark, for which you can submit your predictions on the website.
In any case we should mention this in the dataset card of this dataset. | [
0.07129092514514923,
0.10810749232769012,
-0.05550377070903778,
0.07013538479804993,
0.19237621128559113,
-0.028115004301071167,
0.1277737319469452,
0.04508420452475548,
0.0963422879576683,
0.161660298705101,
0.1313326209783554,
-0.047261714935302734,
-0.15258651971817017,
0.020895937457680702,
0.00981131661683321,
0.09511268138885498,
0.018433645367622375,
0.01150537095963955,
-0.0849488154053688,
-0.11634430289268494,
-0.10919421166181564,
-0.05715206637978554,
-0.028175031766295433,
-0.08149316906929016,
-0.11351200938224792,
-0.0972595363855362,
-0.16229231655597687,
-0.01782698556780815,
0.05054222419857979,
-0.0561535581946373,
0.024131452664732933,
-0.0015332758193835616,
-0.06798105686903,
0.06296320259571075,
0.000006294123977568233,
-0.0025430433452129364,
0.15349844098091125,
-0.025722941383719444,
-0.14830602705478668,
0.006325563881546259,
-0.0529928058385849,
0.10272669047117233,
0.06337155401706696,
0.013954654335975647,
-0.08273299783468246,
-0.05828554555773735,
-0.01154252327978611,
0.012515679933130741,
0.07227402180433273,
0.14600516855716705,
-0.029266681522130966,
0.06344491243362427,
0.002471962943673134,
-0.13857421278953552,
0.059758108109235764,
-0.12577974796295166,
0.07217728346586227,
0.09167762100696564,
-0.13057659566402435,
-0.19943833351135254,
0.1502516120672226,
-0.09387832134962082,
0.1194089949131012,
0.10522143542766571,
-0.16032946109771729,
0.03231135383248329,
-0.08556848764419556,
-0.06923758238554001,
0.07911957055330276,
0.10434585809707642,
-0.11135626584291458,
0.014135826379060745,
-0.07789427042007446,
-0.06395846605300903,
0.04779239371418953,
0.04749198257923126,
-0.06276319921016693,
-0.013286926783621311,
0.02736203372478485,
0.030262766405940056,
-0.05661037564277649,
0.04682576283812523,
-0.0725092887878418,
-0.09952571988105774,
-0.12681055068969727,
0.05023804306983948,
-0.03223985806107521,
0.0718315914273262,
-0.08744283765554428,
0.004369071684777737,
-0.030560828745365143,
-0.12245719879865646,
-0.13325591385364532,
-0.08414255827665329,
-0.13011834025382996,
0.007795069832354784,
-0.14899834990501404,
-0.11514996737241745,
0.18471010029315948,
0.08707568794488907,
0.06836116313934326,
-0.10348246991634369,
-0.0651884600520134,
0.11040669679641724,
-0.018268736079335213,
0.10121385008096695,
-0.04171270504593849,
0.15451492369174957,
-0.10094277560710907,
0.07388673722743988,
-0.052642032504081726,
0.08879411965608597,
-0.18688589334487915,
-0.0498557984828949,
0.08015953749418259,
0.17834316194057465,
0.07155556231737137,
0.038742780685424805,
-0.05293915793299675,
0.11712521314620972,
-0.044645391404628754,
0.16808578372001648,
-0.03226202726364136,
0.13176250457763672,
-0.07303789258003235,
-0.011134735308587551,
-0.006391887553036213,
0.11294649541378021,
-0.0458633117377758,
-0.17053596675395966,
-0.10661680996417999,
0.009712590835988522,
-0.029022719711065292,
-0.08621072769165039,
0.03792930021882057,
0.25289666652679443,
0.016469333320856094,
-0.06845869868993759,
0.028900979086756706,
-0.10808150470256805,
0.09717836230993271,
-0.11336015164852142,
0.04706452414393425,
0.08618243038654327,
0.12257488816976547,
0.07140029221773148,
0.0844423770904541,
-0.13130834698677063,
0.000042455943912500516,
0.12294299155473709,
0.0012784614227712154,
0.18976475298404694,
0.005482061766088009,
0.14745014905929565,
-0.007359735202044249,
0.08244377374649048,
0.05481884256005287,
0.11231627315282822,
-0.07356029003858566,
0.09678303450345993,
0.09665556252002716,
0.009179661981761456,
0.06075279787182808,
-0.041964348405599594,
0.2933781147003174,
0.18056276440620422,
-0.06963272392749786,
0.13004177808761597,
-0.034784480929374695,
-0.01290767639875412,
-0.006366229150444269,
-0.07735708355903625,
-0.06732736527919769,
-0.1470879316329956,
-0.03985680639743805,
-0.01684061624109745,
-0.07339662313461304,
0.016300348564982414,
-0.2729713022708893,
-0.1467789113521576,
0.14509469270706177,
-0.022919217124581337,
0.017219003289937973,
-0.12565667927265167,
0.04577518627047539,
-0.03800645470619202,
-0.04979502037167549,
0.023816924542188644,
-0.06278657913208008,
-0.11031892150640488,
-0.05999494343996048,
0.04227123409509659,
-0.04154637083411217,
0.1119680255651474,
0.06604790687561035,
-0.04723718762397766,
-0.14071165025234222,
-0.1497725248336792,
-0.037128087133169174,
-0.15550380945205688,
-0.09539856016635895,
-0.14424791932106018,
0.16513913869857788,
-0.08040636032819748,
0.03363319858908653,
-0.13641847670078278,
-0.13513949513435364,
0.13118943572044373,
0.010515936650335789,
-0.05952794477343559,
-0.008303274400532246,
-0.009026912972331047,
-0.04782599210739136,
-0.02132354862987995,
-0.14225135743618011,
-0.15256845951080322,
0.04097000136971474,
0.06218923628330231,
-0.06868433207273483,
0.17065085470676422,
-0.11421360075473785,
0.0002582246088422835,
-0.06556697934865952,
0.08961426466703415,
0.025256669148802757,
-0.009265348315238953,
0.0379633866250515,
0.014131831005215645,
0.1113225445151329,
0.05685439333319664,
-0.06516136974096298,
-0.017354397103190422,
0.15453998744487762,
0.00013520695210900158,
-0.10308417677879333,
-0.1559307873249054,
0.0876292884349823,
-0.12473777681589127,
0.10643641650676727,
-0.07961839437484741,
-0.003027312457561493,
0.16597481071949005,
-0.04228951781988144,
-0.1053246334195137,
0.10334744304418564,
0.03157290816307068,
-0.13896331191062927,
0.1816854178905487,
-0.13138732314109802,
0.03351840749382973,
0.16949065029621124,
0.09322980791330338,
0.04674070328474045,
0.05148950219154358,
-0.06940722465515137,
-0.014480016194283962,
0.06911055743694305,
0.20179738104343414,
-0.011825565248727798,
-0.05757680535316467,
0.20304948091506958,
-0.005191359668970108,
-0.027104951441287994,
-0.15618500113487244,
0.12360135465860367,
-0.14639975130558014,
0.11904135346412659,
0.03386811539530754,
-0.13879160583019257,
0.01811355911195278,
0.09353256225585938,
0.07124321162700653,
-0.11299099028110504,
-0.08502249419689178,
-0.03677676245570183,
-0.09935129433870316,
-0.01336913276463747,
0.03894991800189018,
0.09634517878293991,
0.09158339351415634,
-0.12371401488780975,
0.16898025572299957,
0.10422015190124512,
-0.006915791425853968,
0.1287452131509781,
0.14490416646003723,
-0.11242427676916122,
0.0738673135638237,
0.10991518944501877,
0.012605278752744198,
-0.005084767937660217,
-0.016243960708379745,
-0.04265277460217476,
-0.18340471386909485,
-0.05628258362412453,
0.05742271989583969,
-0.07259751856327057,
0.09620245546102524,
-0.10057776421308517,
0.06659920513629913,
-0.02926468290388584,
0.22158017754554749,
0.007216657977551222,
0.03070046566426754,
0.022427329793572426,
-0.04767423868179321,
0.17553746700286865,
0.0677504613995552,
-0.22738224267959595,
0.03448576107621193,
0.17031189799308777,
-0.0331735797226429,
0.03081517294049263,
0.27579039335250854,
-0.028914310038089752,
-0.057298384606838226,
-0.20692282915115356,
-0.1154470220208168,
0.03295043483376503,
0.16804751753807068,
0.07184561342000961,
0.08884452283382416,
0.021587640047073364,
-0.00039404648123309016,
-0.061833228915929794,
-0.0335933119058609,
-0.125299334526062,
-0.04203055053949356,
-0.0161515511572361,
-0.04103340953588486,
-0.029367124661803246,
0.07072382420301437,
-0.009801046922802925,
-0.15249374508857727,
-0.1187414899468422,
-0.07373666763305664,
-0.16504070162773132,
0.017745699733495712,
0.30422064661979675,
-0.00023641982988920063,
-0.15758831799030304,
0.16303803026676178,
-0.14893224835395813,
0.01944846287369728,
-0.016126802191138268,
-0.0728001520037651,
-0.11639250814914703,
-0.031909555196762085,
-0.09864263981580734,
0.06543727964162827,
-0.020521724596619606,
0.11530398577451706,
-0.17995066940784454,
0.0961909145116806,
-0.07423180341720581,
0.12999390065670013,
0.0033219787292182446,
0.15119245648384094,
-0.05353561043739319,
-0.001849007559940219,
0.09407292306423187,
0.04859457165002823,
0.057273443788290024,
0.08092989772558212,
0.03476868197321892,
0.02645123191177845,
-0.08521803468465805,
0.09312228113412857,
0.12040022760629654,
-0.17797483503818512,
0.11490613967180252,
0.06478887051343918,
0.0333009734749794,
-0.06844402849674225,
0.03311113640666008,
0.12845712900161743,
0.03037603385746479,
-0.02991950325667858,
-0.07789787650108337,
-0.030725868418812752,
0.11071987450122833,
-0.31139856576919556,
-0.12233296781778336,
0.04458814486861229,
0.15323950350284576,
0.04447610676288605,
0.016835277900099754,
-0.054710857570171356,
-0.13439394533634186,
0.08468791842460632,
-0.020790114998817444,
-0.057858459651470184,
-0.025323355570435524,
0.10564419627189636,
0.0013018918689340353,
-0.2580157220363617,
0.15796305239200592,
-0.005562964826822281,
0.07046879082918167,
0.06282265484333038,
0.04626483470201492,
0.20619167387485504,
0.04540899395942688,
0.08965543657541275,
0.0928972065448761,
-0.018900221213698387,
0.1356285959482193,
0.018218891695141792,
0.01919512078166008,
-0.13534438610076904,
0.011574454605579376,
-0.19642797112464905,
-0.0072540645487606525,
0.10056280344724655,
0.17777295410633087,
-0.008541954681277275,
-0.11933843046426773,
0.16446278989315033,
-0.024129074066877365,
-0.21113279461860657,
-0.06862066686153412,
0.0639122724533081,
0.13797691464424133,
0.17108026146888733,
-0.03589297831058502,
-0.2034216970205307,
-0.06734467297792435,
-0.006829464342445135,
0.08108256757259369,
0.07902798801660538,
0.0559382326900959,
-0.08336831629276276,
-0.036642640829086304,
0.00015404612349811941,
0.011022110469639301,
-0.022234398871660233,
0.21654191613197327,
-0.0162952933460474,
-0.05086073279380798,
-0.07037718594074249,
-0.22987999022006989,
0.1541927009820938,
0.08651299774646759,
-0.12666861712932587,
-0.012369474396109581,
-0.12004291266202927,
0.01718278042972088,
-0.010486053302884102,
0.027327977120876312,
-0.08024369180202484,
-0.028065605089068413,
-0.038074836134910583,
-0.07914076000452042,
-0.14706957340240479,
-0.11907240003347397,
-0.05864930897951126,
0.01636120304465294,
-0.06901290267705917,
0.016157276928424835,
-0.014409082941710949,
-0.17205660045146942,
-0.013029572553932667,
-0.06005292013287544,
-0.047037750482559204,
-0.047236643731594086,
0.06683080643415451,
0.21399849653244019,
-0.03627936169505119,
-0.03503387048840523,
-0.002808978781104088,
-0.1501515805721283,
0.0913904532790184,
-0.019736506044864655,
0.03388712927699089,
0.17099300026893616,
0.04727231711149216,
-0.013638674281537533,
0.026671692728996277,
0.03346151113510132,
-0.05458983778953552,
0.20850351452827454,
0.04417470097541809,
0.25843778252601624,
-0.11297085881233215,
-0.06776897609233856,
0.24820372462272644,
-0.020589442923665047,
-0.0024399009998887777,
-0.1657598614692688,
0.0214944239705801,
0.02440483681857586,
0.034094978123903275,
0.05606551468372345,
-0.008349169045686722,
-0.10196992754936218,
0.027356505393981934,
-0.01691647432744503,
0.009380022063851357,
0.22322432696819305,
0.2017383724451065,
0.09807124733924866,
0.001540265278890729,
0.19873934984207153,
0.05484914779663086,
-0.012613310478627682,
-0.0641913190484047,
0.07933395355939865,
0.001395741361193359,
-0.050626154989004135,
-0.058653488755226135,
0.08822090178728104,
0.02943747118115425,
-0.08106561005115509,
-0.11311545968055725,
-0.15081827342510223,
0.1459837704896927,
-0.08691205084323883,
0.03467633202672005,
0.046235717833042145,
0.07511021196842194,
0.06332303583621979,
0.1252024620771408,
-0.017796969041228294,
-0.10201098769903183,
0.1981240063905716,
0.19263790547847748,
0.028736351057887077,
0.06026013195514679,
0.15342336893081665,
0.16524440050125122,
0.1384149193763733,
0.26675066351890564,
0.09968995302915573,
0.032714132219552994,
-0.111779123544693,
0.00012870690261479467,
0.2596869170665741,
-0.16383163630962372,
-0.007066906895488501,
-0.07354876399040222,
0.05829261243343353,
-0.17004281282424927,
-0.08210445195436478,
0.14691787958145142,
0.062426358461380005,
0.027031822130084038,
-0.11060483753681183,
-0.022137505933642387,
-0.035324450582265854,
-0.11632099747657776,
-0.04161965474486351,
0.16154591739177704,
-0.14740441739559174,
-0.1214253380894661,
0.0022823254112154245,
-2.7092191356897286e-32,
-0.07995147258043289,
-0.11889553815126419,
0.01964559592306614,
-0.3328363597393036,
-0.0799320787191391,
0.05410610884428024,
-0.008293860591948032,
-0.15588301420211792,
-0.19017206132411957,
-0.05121692270040512,
-0.16903798282146454,
0.09477519243955612,
0.10424832999706268,
0.004957746248692274,
-0.018052922561764717,
-0.199101522564888,
-0.033387694507837296,
-0.16866223514080048,
0.008577960543334484,
0.12605567276477814,
-0.05444604903459549,
-0.010431302711367607,
-0.009469659999012947,
-0.0021871670614928007,
-0.02732612006366253,
-0.07016950845718384,
-0.1526755690574646,
-0.13672398030757904,
-0.20726273953914642,
0.04371005296707153,
-0.18287897109985352,
0.15189239382743835,
-0.012252421118319035,
0.060935117304325104,
-0.08135174214839935,
-0.18939460813999176,
-0.03018585406243801,
-0.07565085589885712,
0.038115404546260834,
-0.01856251060962677,
-0.06165770813822746,
-0.004686890635639429,
0.062355056405067444,
-0.06131329759955406,
0.052254557609558105,
0.07142679393291473,
0.010178484953939915,
-0.03425639867782593,
-0.023580780252814293,
-0.07306868582963943,
0.1568606048822403,
0.025520430877804756,
-0.009198210202157497,
-0.030132154002785683,
-0.09842972457408905,
0.0040390342473983765,
0.1598791927099228,
-0.10176575928926468,
-0.10310875624418259,
0.11102109402418137,
0.18464210629463196,
-0.10760398209095001,
0.11993296444416046,
-0.06580448895692825,
0.003929516300559044,
-0.03198711574077606,
0.19310864806175232,
0.03278409689664841,
0.27803292870521545,
-0.009407607838511467,
-0.11404433101415634,
0.05772988498210907,
0.03177214786410332,
0.024276254698634148,
-0.0889144241809845,
-0.048569366335868835,
-0.07203277200460434,
0.028642235323786736,
-0.11272485554218292,
0.0011548559414222836,
0.08104825019836426,
-0.04367357864975929,
-0.09141915291547775,
0.011526153422892094,
0.016053371131420135,
-0.06749333441257477,
-0.026301918551325798,
-0.1083802804350853,
-0.024997204542160034,
-0.14679770171642303,
-0.11477475613355637,
-0.00443258648738265,
-0.18409794569015503,
-0.1837000846862793,
0.033793918788433075,
0.15185710787773132,
-0.12535148859024048,
-0.0011786621762439609,
-0.05995003879070282,
-0.029100989922881126,
-0.07371019572019577,
-0.07636647671461105,
0.13353842496871948,
0.10994360595941544,
-0.010906701907515526,
-0.05288087576627731,
0.02551496960222721,
0.07217039912939072,
-0.08149871230125427,
-0.054248761385679245,
-0.06980434060096741,
0.19973771274089813,
0.10101795196533203,
0.16889776289463043,
0.006949514616280794,
0.023932060226798058,
0.03300502896308899,
-0.04107297956943512,
0.07526931911706924,
0.0834151953458786,
-0.09005022048950195,
0.03393789380788803,
-0.04969668760895729,
0.038654863834381104,
-0.08002214133739471,
0.04889456555247307,
-0.24455320835113525,
-0.01352771744132042,
0.019777562469244003,
-0.09177406132221222,
0.07419589161872864,
-0.10012366622686386,
7.770642582727305e-7,
-0.2216721475124359,
0.06980600208044052,
-0.04282807931303978,
0.03567017614841461,
-0.01646418869495392,
0.11624989658594131,
-0.11534548550844193,
0.16172820329666138,
0.08402109891176224,
0.18375997245311737,
0.07443441450595856,
-0.14710617065429688,
-0.09096622467041016,
-0.005041120108217001,
0.00984354317188263,
-0.029935568571090698,
-0.1523737609386444,
0.049437250941991806,
-0.10563340783119202,
0.06606324017047882,
0.019453082233667374,
0.11625666171312332,
0.03124353662133217,
-0.07871058583259583,
0.005057150032371283,
-0.052854590117931366,
-0.09177737683057785,
0.023895317688584328,
-0.04555822163820267,
-0.01416558027267456,
0.11186723411083221,
0.07301288098096848,
0.06098137050867081,
0.12889447808265686,
0.0681813433766365,
0.12444417178630829,
-0.1354307383298874,
-0.010721842758357525,
0.11280455440282822,
-0.0408000648021698,
-0.06943441182374954,
0.001180242863483727,
0.049993060529232025,
-0.04534856602549553,
0.3001479208469391,
0.12579090893268585,
-0.07314667850732803,
-0.11043640226125717,
0.02708149142563343,
-0.07422582060098648,
0.09405658394098282,
0.09132326394319534,
0.17522618174552917,
0.03147275373339653,
-0.1178838238120079,
-0.10988900065422058,
-0.005996271036565304,
-0.046145129948854446,
0.055760569870471954,
0.0892895758152008,
-0.09052745252847672,
-0.042866550385951996,
0.0443904772400856,
0.01769419200718403,
0.05746922641992569,
-0.1660139411687851,
-0.12932254374027252,
4.132163978362109e-35,
0.015934159979224205,
0.02772674150764942,
-0.012287029065191746,
-0.2099752575159073,
-0.009604580700397491,
-0.1317368596792221,
0.2579348385334015,
-0.009000302292406559,
0.03763386234641075,
-0.1872263103723526,
-0.11572293937206268
] |
https://github.com/huggingface/datasets/issues/2447 | dataset adversarial_qa has no answers in the "test" set | Makes sense, but not intuitive for someone searching through the datasets. Thanks for adding the note to clarify. | ## Describe the bug
When loading the adversarial_qa dataset the 'test' portion has no answers. Only the 'train' and 'validation' portions do. This occurs with all four of the configs ('adversarialQA', 'dbidaf', 'dbert', 'droberta')
## Steps to reproduce the bug
```
from datasets import load_dataset
examples = load_dataset('adversarial_qa', 'adversarialQA', script_version="master")['test']
print('Loaded {:,} examples'.format(len(examples)))
has_answers = 0
for e in examples:
if e['answers']['text']:
has_answers += 1
print('{:,} have answers'.format(has_answers))
>>> Loaded 3,000 examples
>>> 0 have answers
examples = load_dataset('adversarial_qa', 'adversarialQA', script_version="master")['validation']
<...code above...>
>>> Loaded 3,000 examples
>>> 3,000 have answers
```
## Expected results
If 'test' is a valid dataset, it should have answers. Also note that all of the 'train' and 'validation' sets have answers, there are no "no answer" questions with this set (not sure if this is correct or not).
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.8.0-53-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyArrow version: 1.0.0
| 18 | dataset adversarial_qa has no answers in the "test" set
## Describe the bug
When loading the adversarial_qa dataset the 'test' portion has no answers. Only the 'train' and 'validation' portions do. This occurs with all four of the configs ('adversarialQA', 'dbidaf', 'dbert', 'droberta')
## Steps to reproduce the bug
```
from datasets import load_dataset
examples = load_dataset('adversarial_qa', 'adversarialQA', script_version="master")['test']
print('Loaded {:,} examples'.format(len(examples)))
has_answers = 0
for e in examples:
if e['answers']['text']:
has_answers += 1
print('{:,} have answers'.format(has_answers))
>>> Loaded 3,000 examples
>>> 0 have answers
examples = load_dataset('adversarial_qa', 'adversarialQA', script_version="master")['validation']
<...code above...>
>>> Loaded 3,000 examples
>>> 3,000 have answers
```
## Expected results
If 'test' is a valid dataset, it should have answers. Also note that all of the 'train' and 'validation' sets have answers, there are no "no answer" questions with this set (not sure if this is correct or not).
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.8.0-53-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyArrow version: 1.0.0
Makes sense, but not intuitive for someone searching through the datasets. Thanks for adding the note to clarify. | [
0.0756618082523346,
0.08613917976617813,
-0.04502297192811966,
0.07978564500808716,
0.18498705327510834,
-0.014266238547861576,
0.14115546643733978,
0.021294036880135536,
0.1001397967338562,
0.17847126722335815,
0.13686618208885193,
-0.03268560767173767,
-0.14896336197853088,
0.01192514318972826,
0.016768192872405052,
0.10061829537153244,
0.03317203000187874,
0.0029743092600256205,
-0.08844996243715286,
-0.0996309220790863,
-0.10675652325153351,
-0.058334968984127045,
-0.04043910279870033,
-0.0772918313741684,
-0.09798891842365265,
-0.09031659364700317,
-0.17051704227924347,
-0.021948397159576416,
0.06363358348608017,
-0.03891787305474281,
0.004361193627119064,
-0.009129512123763561,
-0.07514163106679916,
0.08712071180343628,
0.000006425562787626404,
0.01872960850596428,
0.14609485864639282,
-0.02577916719019413,
-0.1426721215248108,
0.023144053295254707,
-0.04627728834748268,
0.08714523166418076,
0.07285261899232864,
0.01758604310452938,
-0.08516138792037964,
-0.03876492753624916,
0.006089851725846529,
0.04955492913722992,
0.07073814421892166,
0.13931086659431458,
-0.042283255606889725,
0.05040798336267471,
-0.0361432321369648,
-0.12273170799016953,
0.08809252083301544,
-0.12983298301696777,
0.06288348138332367,
0.07084961980581284,
-0.138080894947052,
-0.18185286223888397,
0.17234821617603302,
-0.08401937037706375,
0.1278889924287796,
0.08884048461914062,
-0.1975170373916626,
0.030134838074445724,
-0.09951440244913101,
-0.06046310067176819,
0.09635492414236069,
0.09289291501045227,
-0.06952699273824692,
0.03127116337418556,
-0.07261161506175995,
-0.04246949777007103,
0.0766948014497757,
0.08099496364593506,
-0.057156119495630264,
-0.019966334104537964,
0.010569951497018337,
0.059511709958314896,
-0.07085204124450684,
0.04036298021674156,
-0.0599796436727047,
-0.09298808127641678,
-0.14216122031211853,
0.026313893496990204,
-0.0444888211786747,
0.04600178450345993,
-0.10208848118782043,
-0.014720083214342594,
-0.0672508031129837,
-0.10560370981693268,
-0.10535645484924316,
-0.08337631076574326,
-0.12412834167480469,
0.006673309486359358,
-0.15701517462730408,
-0.0834258422255516,
0.1806071698665619,
0.1075509637594223,
0.056890279054641724,
-0.10626561939716339,
-0.08733470737934113,
0.10954442620277405,
0.01684604026377201,
0.06738592684268951,
-0.03051181323826313,
0.1529243439435959,
-0.09354858100414276,
0.05872362107038498,
-0.05586063489317894,
0.07586786150932312,
-0.20421870052814484,
-0.06318061053752899,
0.09819062799215317,
0.15843211114406586,
0.06270834058523178,
0.042125578969717026,
-0.039400700479745865,
0.1210549920797348,
-0.06597716361284256,
0.14473788440227509,
-0.017755284905433655,
0.13539005815982819,
-0.05806129425764084,
-0.00393079686909914,
-0.003180611878633499,
0.11293511092662811,
-0.037266626954078674,
-0.13831134140491486,
-0.11948788166046143,
0.006854313425719738,
-0.0093850027769804,
-0.08338181674480438,
0.021730776876211166,
0.21029679477214813,
0.01717480830848217,
-0.044126782566308975,
0.007555297575891018,
-0.09426045417785645,
0.09554845839738846,
-0.10332509130239487,
0.04038890451192856,
0.0894535481929779,
0.12607982754707336,
0.0759417712688446,
0.07976366579532623,
-0.12442321330308914,
-0.010100096464157104,
0.13515588641166687,
-0.03292028605937958,
0.2145979404449463,
-0.0031861932948231697,
0.15198974311351776,
0.011971241794526577,
0.07441111654043198,
0.09073542058467865,
0.13403406739234924,
-0.07482720911502838,
0.0712570771574974,
0.09541033208370209,
0.011269028298556805,
0.059877991676330566,
-0.0549946166574955,
0.2774052321910858,
0.20600637793540955,
-0.05322820693254471,
0.10262434929609299,
-0.06109609082341194,
-0.007034186739474535,
-0.008834714069962502,
-0.08017376810312271,
-0.06356016546487808,
-0.1554829478263855,
-0.05340071767568588,
-0.007067287340760231,
-0.083198182284832,
0.002328332979232073,
-0.255144327878952,
-0.1177062839269638,
0.16260628402233124,
-0.005742527078837156,
0.008148765191435814,
-0.1319945901632309,
0.020620396360754967,
-0.0648772343993187,
-0.055094100534915924,
0.011443736031651497,
-0.06444991379976273,
-0.11841936409473419,
-0.07430694252252579,
0.06232107803225517,
-0.024354228749871254,
0.10685694962739944,
0.05871780216693878,
-0.04940204322338104,
-0.14899152517318726,
-0.16064023971557617,
-0.04108680039644241,
-0.16393131017684937,
-0.13069887459278107,
-0.1309533417224884,
0.16052621603012085,
-0.06102444604039192,
0.0271129310131073,
-0.15132124722003937,
-0.14679932594299316,
0.14921675622463226,
0.042107291519641876,
-0.06202895939350128,
-0.011264186352491379,
-0.0004816841392312199,
-0.03765185549855232,
-0.021956685930490494,
-0.15570217370986938,
-0.11576078087091446,
0.047516193240880966,
0.08957307785749435,
-0.11425652354955673,
0.16847987473011017,
-0.10875865817070007,
0.006538803689181805,
-0.07702197134494781,
0.09575963020324707,
0.024765651673078537,
-0.007793540600687265,
0.03354842588305473,
0.038703784346580505,
0.0674361065030098,
0.06179484724998474,
-0.06582029163837433,
-0.009264269843697548,
0.17142097651958466,
0.0008407318382523954,
-0.07690314948558807,
-0.15994641184806824,
0.09516735374927521,
-0.11073312908411026,
0.09934637695550919,
-0.04091472178697586,
0.00472228042781353,
0.15954439342021942,
-0.03978322073817253,
-0.09477172046899796,
0.11382036656141281,
0.027903830632567406,
-0.12180382013320923,
0.19678816199302673,
-0.1415732502937317,
0.04757331311702728,
0.15624895691871643,
0.08789638429880142,
0.05373008921742439,
0.042922332882881165,
-0.07690848410129547,
-0.0014319162582978606,
0.0826667845249176,
0.20972424745559692,
-0.00018809261382557452,
-0.05010087788105011,
0.1864098310470581,
-0.03366119787096977,
-0.014483945444226265,
-0.16294048726558685,
0.11531881242990494,
-0.11097079515457153,
0.09573283791542053,
0.005508709233254194,
-0.13250426948070526,
0.0210794098675251,
0.10005132853984833,
0.059654559940099716,
-0.12615486979484558,
-0.082198366522789,
-0.03865373134613037,
-0.08542448282241821,
-0.03134005516767502,
0.038614146411418915,
0.1117490828037262,
0.0942373126745224,
-0.14725281298160553,
0.16459235548973083,
0.0927465483546257,
-0.0080071110278368,
0.12613148987293243,
0.15496312081813812,
-0.11502543836832047,
0.08577777445316315,
0.0839560404419899,
0.037597618997097015,
-0.02859966643154621,
-0.03405739739537239,
-0.07201588898897171,
-0.2130788266658783,
-0.06509551405906677,
0.055663641542196274,
-0.0729067251086235,
0.10228276252746582,
-0.0961991623044014,
0.09259478002786636,
-0.031212594360113144,
0.240535169839859,
0.012064594775438309,
0.02568332478404045,
0.04809664189815521,
-0.06960238516330719,
0.16347332298755646,
0.052079617977142334,
-0.2378600686788559,
0.03594432771205902,
0.16035771369934082,
-0.013259291648864746,
0.0177187230437994,
0.2825421690940857,
-0.017679933458566666,
-0.03818061575293541,
-0.21146588027477264,
-0.10646434128284454,
0.02241656742990017,
0.18134507536888123,
0.032239846885204315,
0.1030978262424469,
0.02172980085015297,
-0.00974611472338438,
-0.05891050770878792,
-0.03855161368846893,
-0.11165543645620346,
-0.022292861714959145,
-0.02171110361814499,
-0.005070243496447802,
-0.044416870921850204,
0.10694661736488342,
0.006520525552332401,
-0.14684052765369415,
-0.10867162048816681,
-0.05412200838327408,
-0.17211228609085083,
0.02641182206571102,
0.30101507902145386,
0.016963312402367592,
-0.14447741210460663,
0.16351959109306335,
-0.1526213139295578,
0.01111601758748293,
0.01892314851284027,
-0.06550785899162292,
-0.11619895696640015,
-0.04355325922369957,
-0.12076792865991592,
0.05412893369793892,
0.0070059471763670444,
0.1166469156742096,
-0.17614935338497162,
0.08454713970422745,
-0.07098782807588577,
0.1002163290977478,
-0.005616876762360334,
0.12662506103515625,
-0.06273447722196579,
0.018628669902682304,
0.09839966148138046,
0.021535823121666908,
0.029111655429005623,
0.06672731041908264,
0.048887286335229874,
0.028811853379011154,
-0.09751792252063751,
0.10557299852371216,
0.11301535367965698,
-0.1750674694776535,
0.12795446813106537,
0.06197855621576309,
0.023769928142428398,
-0.07016412913799286,
0.05918320640921593,
0.12410229444503784,
0.03732709959149361,
-0.0436994768679142,
-0.08834028244018555,
-0.0008600828587077558,
0.12830261886119843,
-0.2999853193759918,
-0.1101105809211731,
0.038963682949543,
0.16068804264068604,
0.04059432074427605,
0.013642043806612492,
-0.04667332023382187,
-0.1154741644859314,
0.11238154023885727,
-0.02036100998520851,
-0.07334112375974655,
-0.03621315583586693,
0.061970047652721405,
-0.006530500948429108,
-0.2608407437801361,
0.16288641095161438,
-0.0035975028295069933,
0.04390906170010567,
0.07164181023836136,
0.0653751939535141,
0.20564010739326477,
0.03049771673977375,
0.07631208747625351,
0.10074057430028915,
-0.03301461040973663,
0.1464279741048813,
0.0036052758805453777,
0.0008841218077577651,
-0.13808263838291168,
0.004986605141311884,
-0.1990874856710434,
-0.01704147458076477,
0.08275927603244781,
0.20475541055202484,
0.008890697732567787,
-0.1204470619559288,
0.16680392622947693,
-0.04580088332295418,
-0.19752848148345947,
-0.07062949985265732,
0.06764749437570572,
0.12159328162670135,
0.14758914709091187,
-0.01776139810681343,
-0.1955694556236267,
-0.07903419435024261,
-0.006531571503728628,
0.08131816238164902,
0.09493633359670639,
0.045411255210638046,
-0.08666451275348663,
-0.06559841334819794,
-0.0061480156145989895,
-0.005520803388208151,
-0.027868030592799187,
0.22310121357440948,
-0.026808390393853188,
-0.07404137402772903,
-0.04988038167357445,
-0.23160536587238312,
0.15914446115493774,
0.06912041455507278,
-0.11905045062303543,
-0.023482410237193108,
-0.13215410709381104,
0.010029428638517857,
-0.008245124481618404,
0.011221151798963547,
-0.050461944192647934,
-0.05157410725951195,
-0.034710366278886795,
-0.09694124013185501,
-0.14225918054580688,
-0.13538236916065216,
-0.07115534693002701,
-0.026659870520234108,
-0.06947298347949982,
0.03238304704427719,
-0.005347867030650377,
-0.19513197243213654,
-0.017297178506851196,
-0.07545384019613266,
-0.028365444391965866,
-0.03503694012761116,
0.051740121096372604,
0.228120356798172,
-0.018264327198266983,
-0.04705444723367691,
0.002952463459223509,
-0.14337418973445892,
0.10613960772752762,
-0.0034197859931737185,
0.034961868077516556,
0.1661103069782257,
0.0406506210565567,
-0.024122590199112892,
0.0003569240216165781,
0.0697026178240776,
-0.0442606620490551,
0.1987179070711136,
0.04734920337796211,
0.25194257497787476,
-0.1075090691447258,
-0.06045722961425781,
0.24896816909313202,
-0.03446367010474205,
-0.0387553870677948,
-0.17323936522006989,
0.01025659590959549,
0.017570503056049347,
0.03175985440611839,
0.06649687886238098,
0.028445245698094368,
-0.10334600508213043,
0.07848285138607025,
-0.04275568202137947,
0.01363375410437584,
0.18867649137973785,
0.1786949187517166,
0.11212572455406189,
-0.007628800813108683,
0.19528870284557343,
0.060828953981399536,
0.0008224055054597557,
-0.07660674303770065,
0.06676878035068512,
0.05739089474081993,
-0.028754670172929764,
-0.02780492976307869,
0.07621358335018158,
0.03818940743803978,
-0.08793268352746964,
-0.10134158283472061,
-0.09181858599185944,
0.14981719851493835,
-0.0768488273024559,
0.002155052265152335,
0.07492299377918243,
0.06978315860033035,
0.05917764827609062,
0.10753646492958069,
0.0014735263539478183,
-0.0819365531206131,
0.18121564388275146,
0.1802113801240921,
0.023979192599654198,
0.057224493473768234,
0.14777594804763794,
0.1845461130142212,
0.1379566341638565,
0.2759912312030792,
0.07182607799768448,
0.019534144550561905,
-0.10388512909412384,
-0.00543762044981122,
0.27704092860221863,
-0.16866041719913483,
0.0011791362194344401,
-0.06721551716327667,
0.055315472185611725,
-0.15138213336467743,
-0.10692407935857773,
0.11454012244939804,
0.04958200082182884,
0.013037584722042084,
-0.11238713562488556,
0.022177567705512047,
-0.04525620862841606,
-0.11857713013887405,
-0.05475196614861488,
0.14243680238723755,
-0.14264993369579315,
-0.14732062816619873,
0.0028037289157509804,
-2.681980286718887e-32,
-0.07637564837932587,
-0.11103437840938568,
0.021375324577093124,
-0.3385498523712158,
-0.03510448709130287,
0.04222569614648819,
-0.009382051415741444,
-0.1435905396938324,
-0.19432716071605682,
-0.05574317276477814,
-0.16473495960235596,
0.09734603017568588,
0.10780975967645645,
-0.0175000112503767,
-0.014666968025267124,
-0.21503445506095886,
-0.0074333688244223595,
-0.17707385122776031,
0.02222529426217079,
0.11974235624074936,
-0.05445545166730881,
-0.020135758444666862,
-0.006127065513283014,
-0.017254825681447983,
-0.0005948595353402197,
-0.05823672562837601,
-0.14432333409786224,
-0.13473562896251678,
-0.2087768018245697,
0.06817798316478729,
-0.16561655700206757,
0.1379556506872177,
-0.009556558914482594,
0.0797111839056015,
-0.07409167289733887,
-0.20992285013198853,
-0.038055647164583206,
-0.067940354347229,
0.05498975142836571,
-0.010542250238358974,
-0.08609431982040405,
-0.0034641509409993887,
0.07392581552267075,
-0.05585272237658501,
0.04177912324666977,
0.08923958986997604,
0.010228307917714119,
-0.034202925860881805,
-0.03528513386845589,
-0.07118381559848785,
0.17338070273399353,
0.022990494966506958,
-0.010218105278909206,
-0.05156153067946434,
-0.11036380380392075,
-0.016691144555807114,
0.14093300700187683,
-0.08846017718315125,
-0.08061939477920532,
0.11053317040205002,
0.18848906457424164,
-0.09498615562915802,
0.1211521252989769,
-0.06564883887767792,
0.0021087778732180595,
-0.015078474767506123,
0.19759297370910645,
0.02895064651966095,
0.24210026860237122,
-0.02130310796201229,
-0.10218782722949982,
0.0610787607729435,
0.005455546081066132,
0.01862066611647606,
-0.09258246421813965,
-0.06264784187078476,
-0.0988432839512825,
0.015498663298785686,
-0.13862107694149017,
-0.00819869339466095,
0.06391899287700653,
-0.045925259590148926,
-0.10989262163639069,
0.0023293225094676018,
0.0238075852394104,
-0.09848868101835251,
-0.03567590191960335,
-0.1143541932106018,
-0.011160695925354958,
-0.13372047245502472,
-0.1315625011920929,
-0.010997572913765907,
-0.19015666842460632,
-0.14943130314350128,
0.010459586046636105,
0.14599117636680603,
-0.14236310124397278,
-0.029598418623209,
-0.06225566193461418,
-0.044326357543468475,
-0.0785687044262886,
-0.08618371188640594,
0.131524458527565,
0.07320349663496017,
-0.0025439492892473936,
-0.041357170790433884,
0.05996648594737053,
0.08232470601797104,
-0.09855125844478607,
-0.02820935845375061,
-0.07681982964277267,
0.21283692121505737,
0.09182293713092804,
0.14277833700180054,
0.0026207061018794775,
0.03169196471571922,
0.04480869323015213,
-0.029384417459368706,
0.09532316774129868,
0.05825164541602135,
-0.10315173864364624,
-0.001543471240438521,
-0.09505739063024521,
0.05019887164235115,
-0.0856003612279892,
0.05808743089437485,
-0.24403251707553864,
-0.025970112532377243,
0.027731051668524742,
-0.07666151225566864,
0.0584309957921505,
-0.09286629408597946,
7.784573199387523e-7,
-0.1974070966243744,
0.056232891976833344,
-0.034768808633089066,
0.045088447630405426,
-0.010084551759064198,
0.13971921801567078,
-0.11903348565101624,
0.15053746104240417,
0.08489518612623215,
0.19149279594421387,
0.0757811889052391,
-0.13352824747562408,
-0.08325759321451187,
-0.002688254229724407,
0.01467543188482523,
-0.02117750234901905,
-0.16347487270832062,
0.0343606062233448,
-0.11826074123382568,
0.07800835371017456,
0.050774384289979935,
0.10795994848012924,
0.030943680554628372,
-0.06802713871002197,
-0.019930437207221985,
-0.09741409122943878,
-0.09362563490867615,
0.02848164550960064,
-0.036212008446455,
-0.011998049914836884,
0.08474956452846527,
0.061858948320150375,
0.08032714575529099,
0.12757612764835358,
0.07423540204763412,
0.10094691812992096,
-0.14716288447380066,
0.01866508647799492,
0.09699075669050217,
-0.03081417828798294,
-0.07699856162071228,
-0.014153716154396534,
0.04024768993258476,
-0.02713862992823124,
0.32607021927833557,
0.13221269845962524,
-0.06132490560412407,
-0.0850914940237999,
0.03530694544315338,
-0.07302400469779968,
0.09672164916992188,
0.09603956341743469,
0.16751046478748322,
0.030016858130693436,
-0.1257367879152298,
-0.12603400647640228,
0.00546263437718153,
-0.02971380576491356,
0.06849975883960724,
0.08234167098999023,
-0.07309944927692413,
-0.04664520174264908,
0.036516766995191574,
-0.0058161611668765545,
0.06199163571000099,
-0.15060992538928986,
-0.14017492532730103,
4.599767652910486e-35,
0.041828349232673645,
0.012635269202291965,
0.006465489976108074,
-0.23346786201000214,
-0.02562258578836918,
-0.12364719808101654,
0.24685782194137573,
-0.013103794306516647,
-0.00015516008716076612,
-0.15349775552749634,
-0.09092538803815842
] |
https://github.com/huggingface/datasets/issues/2446 | `yelp_polarity` is broken | ```
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/script_runner.py", line 332, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 233, in <module>
configs = get_confs(option)
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 604, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 588, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp-viewer/run.py", line 148, in get_confs
builder_cls = nlp.load.import_main_class(module_path[0], dataset=True)
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/datasets/load.py", line 85, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/sasha/.cache/huggingface/modules/datasets_modules/datasets/yelp_polarity/a770787b2526bdcbfc29ac2d9beb8e820fbc15a03afd3ebc4fb9d8529de57544/yelp_polarity.py", line 36, in <module>
from datasets.tasks import TextClassification
``` | ![image](https://user-images.githubusercontent.com/22514219/120828150-c4a35b00-c58e-11eb-8083-a537cee4dbb3.png)
| 118 | `yelp_polarity` is broken
![image](https://user-images.githubusercontent.com/22514219/120828150-c4a35b00-c58e-11eb-8083-a537cee4dbb3.png)
```
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/script_runner.py", line 332, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 233, in <module>
configs = get_confs(option)
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 604, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/streamlit/caching.py", line 588, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp-viewer/run.py", line 148, in get_confs
builder_cls = nlp.load.import_main_class(module_path[0], dataset=True)
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/datasets/load.py", line 85, in import_main_class
module = importlib.import_module(module_path)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/sasha/.cache/huggingface/modules/datasets_modules/datasets/yelp_polarity/a770787b2526bdcbfc29ac2d9beb8e820fbc15a03afd3ebc4fb9d8529de57544/yelp_polarity.py", line 36, in <module>
from datasets.tasks import TextClassification
``` | [
0.05542929098010063,
0.11911621689796448,
-0.0034742322750389576,
-0.031786173582077026,
0.17701704800128937,
0.16727158427238464,
-0.015810173004865646,
0.18152692914009094,
-0.06783143430948257,
-0.08949705213308334,
-0.03911462053656578,
0.022751234471797943,
0.027794353663921356,
0.08334596455097198,
-0.03708156198263168,
0.0472322478890419,
-0.06782994419336319,
0.11043760925531387,
0.054464176297187805,
0.017325615510344505,
-0.11775733530521393,
0.0929732397198677,
0.06804703921079636,
-0.02381267584860325,
0.12716788053512573,
0.009538169018924236,
0.0012462016893550754,
-0.006216993555426598,
-0.017843695357441902,
-0.1360604614019394,
-0.07481518387794495,
0.05993138253688812,
-0.14818952977657318,
0.049051497131586075,
0.000005816676548420219,
0.04846550524234772,
-0.051045577973127365,
0.04548458755016327,
0.143243670463562,
-0.15000692009925842,
0.1468353420495987,
0.013137446716427803,
0.08947471529245377,
-0.08250436186790466,
-0.12686671316623688,
-0.13265103101730347,
-0.1457315981388092,
0.12666045129299164,
-0.13064759969711304,
0.06658287346363068,
0.09867884963750839,
-0.05673559010028839,
-0.027555780485272408,
0.0633450448513031,
-0.010835856199264526,
-0.014957483857870102,
-0.02357877977192402,
-0.06429797410964966,
-0.14124038815498352,
-0.04133318364620209,
-0.02859356440603733,
0.08605312556028366,
-0.014999888837337494,
0.03045779839158058,
-0.11545983701944351,
-0.017942732200026512,
0.22525334358215332,
-0.07743541896343231,
0.06884528696537018,
0.06237166002392769,
-0.1464068442583084,
0.08130092918872833,
-0.10954072326421738,
-0.002171390922740102,
-0.0327712744474411,
-0.20924340188503265,
0.051568128168582916,
0.2987309396266937,
-0.061794668436050415,
0.06179988011717796,
-0.04864485561847687,
-0.010699735023081303,
0.007936432026326656,
0.005828793626278639,
0.10538261383771896,
0.2898355722427368,
-0.06890028715133667,
0.0481744222342968,
0.21693840622901917,
-0.08679885417222977,
0.20628558099269867,
0.1425812691450119,
-0.12355592846870422,
-0.1258624643087387,
0.07366573065519333,
0.04811067879199982,
0.04624328017234802,
-0.05251748859882355,
0.003668869147077203,
-0.015996800735592842,
0.03019842691719532,
-0.1751500517129898,
0.03005899302661419,
-0.06857065111398697,
0.08393358439207077,
0.04292198270559311,
0.08851324021816254,
0.06280883401632309,
0.11246374249458313,
0.17538908123970032,
0.1108735054731369,
0.09262045472860336,
0.058649297803640366,
-0.10268014669418335,
0.10486417263746262,
0.0986189991235733,
0.09218088537454605,
0.049672286957502365,
-0.08816124498844147,
0.08803731948137283,
0.0978829562664032,
0.10031268000602722,
0.12692898511886597,
0.04655127599835396,
-0.014192833565175533,
0.09254834055900574,
0.034410327672958374,
0.05035236477851868,
-0.06242050975561142,
0.10515297204256058,
0.10856666415929794,
0.1668974757194519,
-0.0012621330097317696,
-0.06673968583345413,
0.01307311188429594,
0.045470915734767914,
0.15941575169563293,
-0.1613217443227768,
0.046920131891965866,
0.08780225366353989,
0.018830198794603348,
-0.0560983382165432,
-0.20574627816677094,
-0.056109435856342316,
-0.050169073045253754,
-0.07197658717632294,
0.1554887890815735,
0.08380500972270966,
0.03632482886314392,
-0.020461158826947212,
-0.23617029190063477,
0.2367449402809143,
-0.1791904717683792,
0.10253386944532394,
-0.10924068838357925,
0.09023354202508926,
-0.017210062593221664,
0.05038367211818695,
-0.08801697194576263,
-0.18084727227687836,
0.11369974911212921,
-0.09855181723833084,
0.07700011879205704,
-0.13300283253192902,
-0.04924679175019264,
0.09579937905073166,
0.04291575029492378,
-0.18989434838294983,
-0.24869473278522491,
-0.17049461603164673,
0.01308535784482956,
-0.002917894395068288,
0.020337924361228943,
0.011608711443841457,
-0.12576355040073395,
-0.011939974501729012,
-0.006474096328020096,
-0.06924404948949814,
-0.08062902837991714,
-0.1568731814622879,
-0.040675707161426544,
-0.08310320228338242,
-0.1707434356212616,
0.02439134567975998,
-0.024304114282131195,
0.08491774648427963,
-0.0262210201472044,
0.14384062588214874,
0.040205758064985275,
-0.02121599018573761,
-0.08686401695013046,
0.05234207585453987,
0.11537602543830872,
-0.04350820928812027,
0.052658721804618835,
-0.03893660008907318,
-0.05715504288673401,
-0.19017067551612854,
0.0838216245174408,
-0.056628476828336716,
0.11376579105854034,
-0.0205229464918375,
0.17944775521755219,
0.11422622203826904,
0.007745410315692425,
0.1685851365327835,
0.011972249485552311,
-0.1106850728392601,
-0.2736766040325165,
-0.041773438453674316,
-0.15728220343589783,
0.1417514681816101,
0.06550789624452591,
0.05657261610031128,
-0.12810088694095612,
0.020136628299951553,
0.13182909786701202,
-0.13598230481147766,
-0.010436506010591984,
0.13835030794143677,
0.05422867834568024,
-0.029477311298251152,
-0.05691219121217728,
-0.06323108822107315,
0.2132718861103058,
0.039569977670907974,
-0.11493856459856033,
0.041787996888160706,
0.0566098690032959,
0.1411365419626236,
-0.14767341315746307,
0.022051170468330383,
0.03431963548064232,
0.11400439590215683,
-0.24567793309688568,
0.12212114781141281,
-0.10268226265907288,
-0.21780164539813995,
0.05150328204035759,
-0.08610814809799194,
-0.1890476793050766,
0.051991187036037445,
0.06045704334974289,
0.04076662287116051,
0.10201758146286011,
-0.019870875403285027,
-0.05494017153978348,
0.04330633208155632,
0.028647981584072113,
0.03262493759393692,
0.2089332640171051,
-0.08109795302152634,
-0.06274788826704025,
-0.14948341250419617,
-0.005679300520569086,
-0.02460630051791668,
-0.06431537866592407,
-0.06166953220963478,
-0.03187188878655434,
-0.10193027555942535,
0.11689408123493195,
0.037677500396966934,
0.004409496672451496,
0.007612357847392559,
0.2148973047733307,
-0.13898965716362,
0.05022941902279854,
0.029905539005994797,
0.01995828188955784,
0.010826465673744678,
-0.022037871181964874,
0.027639565989375114,
-0.07131180912256241,
-0.02419367805123329,
0.004110362380743027,
-0.04519003629684448,
0.07337986677885056,
0.057091228663921356,
0.19746853411197662,
0.03323955461382866,
-0.0704469308257103,
0.0953756719827652,
-0.03633388876914978,
-0.046198830008506775,
-0.009273285046219826,
0.0440702848136425,
-0.17651577293872833,
-0.04642924666404724,
-0.08453990519046783,
0.12612900137901306,
0.07021176815032959,
-0.04481714591383934,
0.06987731158733368,
-0.25610265135765076,
-0.12036681175231934,
0.04973362013697624,
0.1433822363615036,
0.052527762949466705,
0.0178566575050354,
-0.06690313667058945,
-0.009245749562978745,
-0.041276443749666214,
-0.010583075694739819,
0.0077260700054466724,
0.0027343728579580784,
-0.019226867705583572,
0.18680541217327118,
-0.07192479819059372,
0.0000019241990685259225,
-0.19295333325862885,
-0.0005330793792381883,
0.02527613937854767,
-0.031642310321331024,
0.040379561483860016,
-0.16117796301841736,
-0.007670649792999029,
0.07026241719722748,
0.017168616876006126,
0.05220525711774826,
0.07428710907697678,
0.11184491217136383,
0.02443103864789009,
-0.22511403262615204,
0.0955299511551857,
0.00359356845729053,
-0.04231924191117287,
-0.1511448174715042,
-0.09827831387519836,
0.0016978603089228272,
0.008618613705039024,
0.05913197621703148,
0.05036424100399017,
0.04340584576129913,
-0.17186415195465088,
-0.07364153861999512,
-0.07353467494249344,
0.0026498029474169016,
0.1182076632976532,
0.29714593291282654,
-0.10407941043376923,
-0.038512665778398514,
0.09628257155418396,
-0.008492483757436275,
-0.021409915760159492,
0.01824285462498665,
-0.03771418333053589,
-0.025102222338318825,
0.0539424791932106,
0.023257924243807793,
-0.033673226833343506,
0.06008719280362129,
-0.026658017188310623,
0.07727548480033875,
-0.07135285437107086,
0.022563325241208076,
0.12503618001937866,
0.007474531419575214,
0.038246043026447296,
0.05543503910303116,
0.13005630671977997,
0.11562854796648026,
0.050301507115364075,
0.024708064272999763,
0.02253011241555214,
-0.09650661796331406,
0.12866714596748352,
0.08370601385831833,
0.06982125341892242,
0.0022617855574935675,
-0.03794509917497635,
-0.09038757532835007,
0.11630494147539139,
0.2564142048358917,
0.11640305072069168,
-0.014290310442447662,
-0.08268756419420242,
-0.09996610134840012,
-0.02518097497522831,
-0.07887908071279526,
0.05778748542070389,
-0.10533835738897324,
-0.040651772171258926,
0.020913703367114067,
-0.013220562599599361,
0.11030314117670059,
0.14789310097694397,
-0.012597809545695782,
0.06781736761331558,
-0.1699536293745041,
-0.21276849508285522,
0.07987704128026962,
0.05421966686844826,
-0.24370744824409485,
0.04973474144935608,
-0.053496647626161575,
-0.14783109724521637,
0.10805557668209076,
0.10849510133266449,
-0.01935740001499653,
-0.05092814564704895,
-0.15962697565555573,
0.0048251086845994,
0.16216102242469788,
0.0770675465464592,
-0.014465399086475372,
0.11889858543872833,
0.13271428644657135,
-0.05653558298945427,
-0.02888573706150055,
-0.16749799251556396,
0.08856327831745148,
-0.05483062192797661,
-0.0032867086119949818,
0.04106744006276131,
0.27332577109336853,
0.024653274565935135,
-0.0400460921227932,
-0.09182440489530563,
-0.12296966463327408,
-0.10701413452625275,
-0.03410285711288452,
-0.1944390833377838,
0.08852993696928024,
0.16877570748329163,
-0.08440280705690384,
0.057958923280239105,
0.24200855195522308,
-0.1351783275604248,
0.04861358180642128,
-0.022308437153697014,
0.038668714463710785,
-0.19852524995803833,
0.04168570414185524,
0.08782484382390976,
-0.1359049677848816,
-0.18978655338287354,
0.2636644244194031,
-0.07126177847385406,
-0.1096884161233902,
-0.013003919273614883,
-0.024673238396644592,
-0.1473701149225235,
0.10484586656093597,
-0.2465410828590393,
0.08805287629365921,
-0.13253678381443024,
-0.11231601983308792,
0.0975494310259819,
-0.08146477490663528,
-0.022244896739721298,
-0.03413012996315956,
-0.10814929008483887,
-0.18288949131965637,
-0.04353662580251694,
0.030286146327853203,
0.0671037882566452,
0.06637100130319595,
0.041383374482393265,
-0.0008519469993188977,
0.007102672476321459,
0.22060570120811462,
-0.06913453340530396,
-0.1410103291273117,
-0.09557115286588669,
0.1070995181798935,
-0.08909431099891663,
0.2157619297504425,
-0.16140711307525635,
0.07371944934129715,
0.07633752375841141,
0.3497420847415924,
0.12586680054664612,
0.09678029268980026,
0.16718442738056183,
0.06576502323150635,
-0.03585520386695862,
-0.013603923842310905,
-0.02453848533332348,
-0.0933547392487526,
-0.05803559347987175,
0.10518054664134979,
0.016459407284855843,
-0.02555629052221775,
-0.030629795044660568,
-0.057832758873701096,
-0.13707922399044037,
0.029005981981754303,
-0.1424950361251831,
-0.05699159950017929,
-0.026269277557730675,
0.12474476546049118,
-0.06907783448696136,
0.021862445399165154,
0.016222095116972923,
0.0947922095656395,
0.0761425718665123,
-0.10747310519218445,
0.04121074452996254,
0.1434703916311264,
-0.1461179107427597,
0.040317509323358536,
-0.08958476036787033,
0.058457255363464355,
0.015031286515295506,
-0.11716072261333466,
-0.2019578516483307,
0.15146608650684357,
-0.12255130708217621,
-0.13849999010562897,
-0.19637352228164673,
-0.06661999970674515,
0.027753453701734543,
-0.04602247104048729,
-0.1784186065196991,
0.12357060611248016,
0.12551160156726837,
-0.015289973467588425,
-0.0551166832447052,
0.0028567917179316282,
0.06498897820711136,
0.0502132810652256,
0.03229457885026932,
-0.13409970700740814,
0.023043787106871605,
0.0602804571390152,
0.2210056185722351,
-0.022508924826979637,
-0.01419888250529766,
0.024475285783410072,
0.10828206688165665,
0.025218242779374123,
0.055198200047016144,
0.27890458703041077,
-0.15166445076465607,
-0.024791421368718147,
0.18843425810337067,
0.06741953641176224,
-0.06132521480321884,
-0.010998690500855446,
0.059429243206977844,
-0.014466087333858013,
-0.16018305718898773,
-0.07312402874231339,
0.005635687615722418,
0.2106991559267044,
0.17201566696166992,
-0.12636440992355347,
-0.028321415185928345,
-0.040523067116737366,
-0.11894017457962036,
-0.16364741325378418,
0.16853973269462585,
0.0548219233751297,
0.08885374665260315,
0.0781821608543396,
-2.531970162885876e-32,
-0.1035170927643776,
-0.11895960569381714,
-0.07074780017137527,
0.029938336461782455,
-0.13906002044677734,
0.09000295400619507,
0.03965490311384201,
0.14188209176063538,
-0.12168446183204651,
-0.0832800641655922,
0.07263143360614777,
-0.012773566879332066,
0.014222185127437115,
0.06271658092737198,
0.05342738702893257,
-0.03772973269224167,
-0.12230141460895538,
0.13440412282943726,
-0.013280599378049374,
-0.014667117968201637,
0.04367506876587868,
0.06838906556367874,
0.15387849509716034,
-0.11706937849521637,
-0.1664402037858963,
0.1494479775428772,
-0.1906881183385849,
-0.078282929956913,
0.029736462980508804,
-0.017052065581083298,
0.019962415099143982,
0.06877139955759048,
0.04735833406448364,
-0.03645739704370499,
-0.14746129512786865,
-0.11647457629442215,
-0.03413727134466171,
-0.12911860644817352,
-0.07864478975534439,
0.2394307553768158,
-0.09524288773536682,
0.1190100610256195,
-0.023756807669997215,
-0.28154730796813965,
0.08426298946142197,
0.045708440244197845,
-0.04429670795798302,
-0.059817682951688766,
0.07709193229675293,
-0.028636839240789413,
0.047993455082178116,
0.1505891978740692,
-0.010918891988694668,
0.042660895735025406,
0.0362543985247612,
-0.11668030917644501,
0.08205407857894897,
0.2249506711959839,
-0.17042343318462372,
-0.03206293284893036,
-0.07543376833200455,
-0.12523916363716125,
0.14940090477466583,
-0.05963440611958504,
-0.013722587376832962,
0.03215485066175461,
0.1714118868112564,
0.07582610845565796,
-0.0066620055586099625,
-0.1134127750992775,
-0.003234723350033164,
0.04184931516647339,
-0.09156594425439835,
-0.018295040354132652,
-0.1772504299879074,
-0.1676589846611023,
0.030173545703291893,
0.041080038994550705,
0.1542966365814209,
0.01679389923810959,
0.005391338374465704,
0.09674076735973358,
-0.006661605089902878,
-0.04987609386444092,
-0.00156268454156816,
-0.049110040068626404,
-0.08723974972963333,
-0.05284273251891136,
-0.06086675450205803,
-0.02201499603688717,
0.0160785261541605,
0.03779652342200279,
-0.07798358052968979,
-0.15598343312740326,
0.03604031726717949,
0.17411410808563232,
-0.19508887827396393,
0.08219203352928162,
-0.11463288962841034,
-0.01704905554652214,
0.00945359654724598,
-0.03560987114906311,
-0.07689826190471649,
-0.006033392157405615,
-0.0009878267301246524,
0.04756874963641167,
0.13918568193912506,
-0.033075880259275436,
-0.22354425489902496,
-0.12102048844099045,
0.07883427292108536,
-0.0491928867995739,
0.20545414090156555,
0.13005883991718292,
-0.03389386087656021,
-0.01389955822378397,
-0.2257443368434906,
0.16567671298980713,
0.14293453097343445,
0.2582979202270508,
0.03053276054561138,
-0.07171141356229782,
-0.23774555325508118,
-0.04060521349310875,
-0.09777756780385971,
0.03726473078131676,
-0.06734903156757355,
-0.10360793024301529,
-0.2619994878768921,
0.11345725506544113,
-0.018655622377991676,
-0.10094807296991348,
7.644773631909629e-7,
-0.008421052247285843,
0.05694996938109398,
-0.01972837932407856,
-0.25925424695014954,
0.024327551946043968,
0.11636001616716385,
-0.13582511246204376,
-0.009025519713759422,
-0.232619509100914,
0.19119814038276672,
-0.13759130239486694,
-0.1314868927001953,
-0.1201605573296547,
0.06138131767511368,
0.1305074244737625,
0.03562690317630768,
-0.004179157316684723,
-0.18208323419094086,
-0.03361445665359497,
0.03614777326583862,
0.13711637258529663,
0.038270898163318634,
0.17018145322799683,
0.09566760808229446,
-0.06661999970674515,
-0.07409688830375671,
-0.05809424817562103,
-0.1326064169406891,
-0.063137948513031,
-0.01219143532216549,
-0.10474614053964615,
-0.0773359090089798,
-0.09083079546689987,
-0.03945882245898247,
0.07600587606430054,
-0.040478892624378204,
-0.13933983445167542,
-0.14553524553775787,
0.1488901525735855,
-0.039031822234392166,
0.027601217851042747,
0.06649739295244217,
0.07787295430898666,
-0.28781723976135254,
0.04559783637523651,
0.13989584147930145,
-0.1322321742773056,
-0.1115780621767044,
-0.20346619188785553,
0.08869984745979309,
0.17973226308822632,
0.11929532140493393,
-0.059835486114025116,
0.07533261179924011,
-0.009108307771384716,
-0.13076144456863403,
-0.14144405722618103,
0.007464619819074869,
0.10717417299747467,
-0.033160995692014694,
0.035114675760269165,
-0.0756215825676918,
-0.017941314727067947,
0.021727304905653,
0.13972407579421997,
-0.09578371047973633,
0.06899009644985199,
1.3072048194120785e-34,
0.17587591707706451,
0.05506889894604683,
0.050136271864175797,
-0.13780531287193298,
-0.007042435929179192,
0.041078027337789536,
-0.0018260355573147535,
-0.03515366092324257,
0.16361884772777557,
-0.1893240362405777,
-0.004588262178003788
] |
https://github.com/huggingface/datasets/issues/2444 | Sentence Boundaries missing in Dataset: xtreme / udpos | Hi,
This is a known issue. More info on this issue can be found in #2061. If you are looking for an open-source contribution, there are step-by-step instructions in the linked issue that you can follow to fix it. | I was browsing through annotation guidelines, as suggested by the datasets introduction.
The guidlines saids "There must be exactly one blank line after every sentence, including the last sentence in the file. Empty sentences are not allowed." in the [Sentence Boundaries and Comments section](https://universaldependencies.org/format.html#sentence-boundaries-and-comments)
But the sentence boundaries seems not to be represented by huggingface datasets features well. I found out that multiple sentence are concatenated together as a 1D array, without any delimiter.
PAN-x, which is another token classification subset from xtreme do represent the sentence boundary using a 2D array.
You may compare in PAN-x.en and udpos.English in the explorer:
https://huggingface.co/datasets/viewer/?dataset=xtreme | 39 | Sentence Boundaries missing in Dataset: xtreme / udpos
I was browsing through annotation guidelines, as suggested by the datasets introduction.
The guidlines saids "There must be exactly one blank line after every sentence, including the last sentence in the file. Empty sentences are not allowed." in the [Sentence Boundaries and Comments section](https://universaldependencies.org/format.html#sentence-boundaries-and-comments)
But the sentence boundaries seems not to be represented by huggingface datasets features well. I found out that multiple sentence are concatenated together as a 1D array, without any delimiter.
PAN-x, which is another token classification subset from xtreme do represent the sentence boundary using a 2D array.
You may compare in PAN-x.en and udpos.English in the explorer:
https://huggingface.co/datasets/viewer/?dataset=xtreme
Hi,
This is a known issue. More info on this issue can be found in #2061. If you are looking for an open-source contribution, there are step-by-step instructions in the linked issue that you can follow to fix it. | [
-0.006430481560528278,
-0.10268907994031906,
0.005521501414477825,
0.002288655610755086,
0.04167266562581062,
-0.20836466550827026,
0.07429192960262299,
-0.023103132843971252,
0.042544614523649216,
0.04325861111283302,
0.0005172633100301027,
-0.05957006290555,
-0.024443821981549263,
0.04149923473596573,
0.148948073387146,
-0.07766242325305939,
-0.10198971629142761,
0.03180191293358803,
-0.03027283400297165,
-0.06083036959171295,
0.05223137140274048,
0.0014462277758866549,
0.07074401527643204,
0.14571410417556763,
-0.18545301258563995,
-0.11070570349693298,
-0.12271386384963989,
-0.06875324249267578,
-0.039716772735118866,
-0.1863272339105606,
0.1424994170665741,
0.03786125034093857,
0.004053064156323671,
-0.16815288364887238,
0.000005884681286261184,
-0.07102224230766296,
-0.2101253718137741,
-0.12022004276514053,
0.19048935174942017,
0.12602126598358154,
0.14411437511444092,
-0.09857427328824997,
0.0819753035902977,
0.11016710847616196,
-0.055608119815588,
0.032604657113552094,
0.06786133348941803,
0.038199879229068756,
0.07050985842943192,
0.09689122438430786,
-0.008698010817170143,
0.014844589866697788,
0.17036172747612,
-0.16858011484146118,
-0.0074520353227853775,
0.12038688361644745,
-0.045884422957897186,
-0.14321331679821014,
0.03365390747785568,
0.036715589463710785,
0.04670008271932602,
-0.2198403775691986,
0.10797588527202606,
0.06967300176620483,
-0.06577496230602264,
0.023887084797024727,
-0.11680735647678375,
-0.10572939366102219,
-0.08354027569293976,
-0.02322760783135891,
0.18053434789180756,
0.19893985986709595,
0.06313446164131165,
0.018682004883885384,
0.08706022799015045,
-0.09140226989984512,
-0.05643076449632645,
0.09600567072629929,
0.07261873781681061,
-0.010802699252963066,
-0.02382507175207138,
0.1732587069272995,
-0.0689789205789566,
0.1221761479973793,
-0.1877438724040985,
0.23660477995872498,
-0.1262744814157486,
-0.14835478365421295,
-0.045815180987119675,
0.021340247243642807,
0.07316655665636063,
0.12417838722467422,
0.005208427086472511,
-0.04163051024079323,
0.08745796978473663,
0.008232176303863525,
-0.08491049706935883,
-0.1536116600036621,
0.22979868948459625,
0.04554423689842224,
0.03059910051524639,
-0.056868843734264374,
-0.14520002901554108,
-0.04020804911851883,
0.012599979527294636,
0.09062062203884125,
0.12000125646591187,
-0.0911000519990921,
0.08120860904455185,
0.05495604872703552,
0.04595554992556572,
-0.09930942207574844,
-0.012166152708232403,
0.06630651652812958,
-0.01739569380879402,
-0.1473173201084137,
-0.08251023292541504,
-0.02870784141123295,
0.11264108121395111,
-0.0979587659239769,
0.1109718605875969,
0.050412923097610474,
0.0028758689295500517,
0.008607937954366207,
0.03303835541009903,
0.09253610670566559,
-0.004852833226323128,
0.0668058916926384,
0.009885186329483986,
-0.14490662515163422,
-0.10595886409282684,
0.18390010297298431,
-0.04091637209057808,
0.0196986086666584,
0.13423703610897064,
-0.09124766290187836,
0.0548289492726326,
-0.14722709357738495,
0.22660481929779053,
-0.14204862713813782,
-0.2427029311656952,
-0.08470845967531204,
0.054096341133117676,
0.045297861099243164,
0.011764009483158588,
0.049563538283109665,
0.038358937948942184,
0.12209822237491608,
0.13357627391815186,
0.015649806708097458,
-0.2505210041999817,
0.13567018508911133,
-0.10098230093717575,
-0.03897891566157341,
-0.29121753573417664,
-0.175188347697258,
0.06983335316181183,
-0.0001498645287938416,
-0.005694291554391384,
-0.1296122670173645,
0.15515394508838654,
0.35841187834739685,
0.020207811146974564,
-0.035287048667669296,
0.008253511041402817,
-0.02790062315762043,
-0.08058411628007889,
-0.1279478818178177,
-0.05457567796111107,
0.08245027810335159,
-0.0024351123720407486,
0.11520586907863617,
0.0013248194009065628,
0.16942301392555237,
-0.1302453726530075,
0.208821639418602,
-0.05823421850800514,
-0.0020471157040446997,
-0.08638769388198853,
-0.05022583529353142,
0.043535150587558746,
-0.025759367272257805,
0.08544846624135971,
-0.30664321780204773,
0.3650742769241333,
0.19116322696208954,
0.06690604984760284,
0.07946887612342834,
0.12847891449928284,
-0.05744641274213791,
-0.01910324953496456,
-0.09028935432434082,
-0.05973225086927414,
-0.1476765275001526,
0.07714522629976273,
0.013161654584109783,
-0.07402154058218002,
0.03662050887942314,
-0.00035319977905601263,
-0.07691065967082977,
-0.11992380768060684,
0.2191164344549179,
0.05337312072515488,
0.10087713599205017,
-0.04216834902763367,
-0.1226145550608635,
-0.040198326110839844,
0.06342645734548569,
0.14194124937057495,
0.18694795668125153,
0.06975185871124268,
0.24456189572811127,
0.0002574801037553698,
-0.04028115049004555,
-0.15395382046699524,
-0.20648203790187836,
0.12278302758932114,
-0.11317119002342224,
0.005860947072505951,
-0.008054972626268864,
0.020804468542337418,
-0.05053238943219185,
-0.040333639830350876,
0.12063027173280716,
0.07328218966722488,
0.18733102083206177,
-0.010977314785122871,
0.030575476586818695,
0.04655717685818672,
0.279728502035141,
0.03325599059462547,
0.08274120837450027,
0.17391103506088257,
-0.1619764119386673,
-0.06385480612516403,
0.031568802893161774,
-0.0035496773198246956,
-0.08233317732810974,
0.13412411510944366,
-0.19470426440238953,
-0.08685515075922012,
0.13099506497383118,
-0.06935767829418182,
0.055507246404886246,
-0.06434376537799835,
0.04623127356171608,
0.01936333253979683,
-0.10206534713506699,
0.005231684073805809,
0.04879847541451454,
0.1796809583902359,
-0.015781164169311523,
-0.0672815814614296,
-0.04240652173757553,
0.1303025186061859,
-0.286850243806839,
-0.07594702392816544,
0.10510928183794022,
0.10024964064359665,
-0.001315977657213807,
0.013282593339681625,
-0.037800319492816925,
0.09457018971443176,
0.025372173637151718,
0.106529101729393,
-0.120268315076828,
0.05901655927300453,
-0.12410995364189148,
0.07767219096422195,
0.1689482033252716,
0.04686737805604935,
-0.06656263023614883,
0.03863086551427841,
-0.0917179062962532,
-0.07464393973350525,
-0.07234273105859756,
-0.055406223982572556,
0.08016185462474823,
-0.07597404718399048,
0.2784408926963806,
-0.17567788064479828,
0.05331619828939438,
0.04444344714283943,
-0.05828826501965523,
-0.014145401306450367,
-0.07372258603572845,
-0.2400391399860382,
-0.1681210696697235,
-0.11881411820650101,
0.12922221422195435,
0.024692438542842865,
-0.08423235267400742,
-0.017045684158802032,
-0.1110270544886589,
0.11138907819986343,
-0.039673663675785065,
-0.03141900897026062,
0.116678386926651,
0.03260178491473198,
0.15421433746814728,
-0.11665408313274384,
0.0874745175242424,
0.08016360551118851,
0.008701193146407604,
-0.1730794906616211,
0.1481977254152298,
0.06301841139793396,
0.12723366916179657,
-0.025261273607611656,
-0.044590771198272705,
0.014774644747376442,
-0.12714388966560364,
0.09489358961582184,
0.025387290865182877,
0.006528281606733799,
0.16635753214359283,
-0.06376856565475464,
-0.1013355404138565,
-0.04628052935004234,
0.04308434948325157,
0.03464162349700928,
-0.02577175572514534,
-0.046794068068265915,
-0.10717090964317322,
0.05962638929486275,
-0.16443945467472076,
0.02038777992129326,
-0.22207823395729065,
-0.0664830431342125,
-0.07061555236577988,
-0.016375429928302765,
0.010975390672683716,
-0.051129162311553955,
-0.05207451432943344,
-0.08405522257089615,
-0.11519885063171387,
0.031828537583351135,
-0.10214933753013611,
0.39865148067474365,
-0.09521931409835815,
-0.04985273629426956,
-0.0074196564964950085,
0.052919648587703705,
-0.027996882796287537,
-0.03604665771126747,
-0.09549162536859512,
-0.04218977317214012,
-0.14194078743457794,
-0.17081017792224884,
-0.014672563411295414,
0.009293491020798683,
0.015323156490921974,
-0.09918513149023056,
0.057908933609724045,
-0.2448868602514267,
0.049807678908109665,
-0.0633566677570343,
0.07739855349063873,
-0.11376266926527023,
-0.37563833594322205,
0.05054716765880585,
0.06284686177968979,
-0.12635716795921326,
0.009843996725976467,
-0.008402829989790916,
-0.034997712820768356,
-0.015791086480021477,
0.024961432442069054,
-0.15643872320652008,
-0.09545072913169861,
0.20871996879577637,
0.0061108809895813465,
0.026415502652525902,
0.2193962186574936,
0.041520100086927414,
0.21082739531993866,
0.1098242849111557,
0.02072170376777649,
0.1413707733154297,
0.029903747141361237,
-0.08947095274925232,
-0.21685199439525604,
-0.13882671296596527,
-0.011964201927185059,
0.12044494599103928,
0.010691112838685513,
0.07609941065311432,
-0.10612461715936661,
-0.18248748779296875,
0.03338632360100746,
0.09406482428312302,
-0.16935127973556519,
0.19160722196102142,
0.09145098179578781,
-0.01978045515716076,
0.06201813742518425,
0.2360217124223709,
-0.13036783039569855,
-0.006939849816262722,
0.08637721091508865,
0.03252561762928963,
-0.0987916886806488,
0.04396415874361992,
-0.08241473883390427,
-0.07697072625160217,
-0.08770383149385452,
0.14450441300868988,
0.046736110001802444,
-0.04489816725254059,
-0.221261665225029,
0.26424869894981384,
0.0028064483776688576,
0.0858311578631401,
0.08857018500566483,
0.10504734516143799,
-0.1090671643614769,
-0.020491445437073708,
0.044263098388910294,
0.08353361487388611,
-0.2738294303417206,
-0.09113742411136627,
-0.04734209179878235,
0.16378800570964813,
0.08871724456548691,
0.012779428623616695,
-0.06078937277197838,
0.054307252168655396,
-0.13810454308986664,
0.10390616208314896,
-0.008948283270001411,
-0.014849255792796612,
-0.15619079768657684,
-0.05748697742819786,
0.07615362107753754,
-0.07234953343868256,
0.08150921761989594,
0.06504710018634796,
-0.10240931063890457,
-0.19571737945079803,
-0.05702842026948929,
-0.15967465937137604,
0.062344204634428024,
0.11685354262590408,
-0.09453880041837692,
0.14542783796787262,
-0.07908022403717041,
-0.05555334687232971,
-0.020985232666134834,
-0.04355588182806969,
0.06396178901195526,
-0.00563160190358758,
-0.04910791665315628,
0.08593350648880005,
-0.2938733398914337,
0.043590545654296875,
0.01249211560934782,
0.05775275081396103,
-0.021309027448296547,
-0.17945045232772827,
0.00752089312300086,
-0.07116314768791199,
-0.007969153113663197,
-0.07130426913499832,
0.04619725048542023,
-0.010690206661820412,
-0.014602006413042545,
0.3414723575115204,
-0.0008661915198899806,
-0.0037152015138417482,
0.05227141082286835,
-0.0641690194606781,
0.09018010646104813,
0.02015070617198944,
0.1434338390827179,
0.17060400545597076,
-0.0460578054189682,
0.14344431459903717,
0.006469492334872484,
-0.07844556868076324,
-0.010094561614096165,
-0.0948200672864914,
0.21414342522621155,
-0.13916358351707458,
-0.06985441595315933,
-0.064724400639534,
-0.0180654376745224,
0.00004968012581230141,
-0.08707014471292496,
-0.03958403691649437,
0.16991785168647766,
-0.10229990631341934,
0.026168188080191612,
0.05103590339422226,
-0.11694282293319702,
-0.0076081114821136,
0.12794384360313416,
0.012736648321151733,
-0.10415417701005936,
0.08203621208667755,
0.05870594084262848,
0.019447166472673416,
-0.0923820212483406,
0.20061032474040985,
0.15688079595565796,
-0.2716323137283325,
-0.12315639108419418,
0.18885596096515656,
0.08541405200958252,
0.01866457611322403,
0.07655593007802963,
-0.10655391961336136,
0.08269017189741135,
-0.03625423461198807,
-0.027818579226732254,
-0.09547162801027298,
-0.07090931385755539,
-0.1294339895248413,
0.09434952586889267,
-0.00588609091937542,
0.018048154190182686,
-0.056851789355278015,
0.08884389698505402,
0.037144750356674194,
-0.07967760413885117,
0.020023765042424202,
0.01072763279080391,
0.06611532717943192,
-0.18828892707824707,
0.10844314843416214,
0.1985817551612854,
0.01285144779831171,
0.14297336339950562,
0.004118439741432667,
-0.16021078824996948,
-0.09974710643291473,
0.04569658637046814,
0.15417420864105225,
-0.13690616190433502,
0.06187038868665695,
-0.09448302537202835,
0.08903965353965759,
-0.07079265266656876,
0.09773492068052292,
0.06537630409002304,
0.05097033455967903,
0.014688489958643913,
-0.15264928340911865,
-0.052514608949422836,
-0.011409751139581203,
-0.15321719646453857,
-0.014904810115695,
0.0872626081109047,
0.20957280695438385,
0.06441470235586166,
-0.03451862558722496,
-2.4548542069888815e-32,
0.004825100302696228,
0.018146632239222527,
-0.17646671831607819,
-0.041227053850889206,
-0.22600217163562775,
0.008661787025630474,
0.05201168730854988,
-0.028926920145750046,
0.13240252435207367,
0.07251141965389252,
0.05784493684768677,
0.09670063853263855,
0.06792508810758591,
0.07135998457670212,
-0.012748250737786293,
-0.04871070757508278,
0.08993327617645264,
0.0011461650719866157,
0.03585240617394447,
-0.02844136208295822,
0.07313304394483566,
0.10945378988981247,
-0.0736391693353653,
0.0528358556330204,
0.10818152129650116,
0.002966400934383273,
-0.19254177808761597,
0.04567426070570946,
0.1059374287724495,
0.03192891553044319,
0.007626046426594257,
-0.017627259716391563,
-0.01779567264020443,
0.11958774924278259,
-0.07497473806142807,
0.03970766440033913,
0.01652722805738449,
-0.005566262640058994,
0.06565799564123154,
0.027859341353178024,
0.06802456825971603,
-0.15387672185897827,
0.030360763892531395,
-0.06721986830234528,
-0.055526189506053925,
0.07122962921857834,
0.020268961787223816,
-0.0650281235575676,
-0.007660493720322847,
-0.025372864678502083,
0.016120290383696556,
-0.013649296015501022,
0.054141588509082794,
0.10792526602745056,
-0.1327582150697708,
-0.019113250076770782,
-0.0516456700861454,
-0.045881032943725586,
0.006467850413173437,
0.16020996868610382,
0.21427859365940094,
0.10572092980146408,
-0.014116818085312843,
-0.03625034913420677,
-0.052584294229745865,
0.04914168640971184,
0.22832418978214264,
0.12422708421945572,
0.13638640940189362,
0.05305417254567146,
0.0627407655119896,
0.06584227085113525,
-0.04184040054678917,
-0.05242396891117096,
-0.12627586722373962,
-0.05292639508843422,
-0.18041230738162994,
-0.09040288627147675,
-0.09126993268728256,
-0.12326143682003021,
0.12947529554367065,
-0.010184857994318008,
-0.05843622237443924,
-0.08405061066150665,
0.12392588704824448,
-0.021959712728857994,
0.03569400683045387,
0.05194871127605438,
0.049457255750894547,
-0.021358774974942207,
0.012931521050632,
0.08550744503736496,
-0.24726006388664246,
-0.07457006722688675,
-0.06418406218290329,
-0.04918906092643738,
-0.09575841575860977,
0.02380477264523506,
-0.021410493180155754,
0.006645565386861563,
-0.1427898406982422,
-0.179344043135643,
-0.003496437333524227,
0.09025920182466507,
0.09214833378791809,
-0.007553785108029842,
0.28059718012809753,
-0.004865190479904413,
-0.12378796190023422,
-0.041855696588754654,
-0.024705907329916954,
0.08336290717124939,
0.0702185407280922,
0.2198830097913742,
0.005121483001857996,
-0.010331896133720875,
-0.0018121033208444715,
0.022012166678905487,
0.09751921892166138,
0.10054997354745865,
-0.054436810314655304,
-0.09469688683748245,
-0.06283500790596008,
-0.02507917955517769,
0.06637273728847504,
-0.0470065213739872,
-0.060267627239227295,
-0.060195378959178925,
-0.04376436397433281,
-0.06091391295194626,
-0.05982687696814537,
-0.12947633862495422,
7.331865958803974e-7,
-0.13974407315254211,
0.1587374210357666,
0.16455741226673126,
-0.10229158401489258,
0.08551643788814545,
0.028423309326171875,
-0.11782374233007431,
0.1692466139793396,
-0.1285931020975113,
0.14521482586860657,
0.0678873211145401,
-0.07740813493728638,
0.22718007862567902,
-0.19050335884094238,
-0.20562683045864105,
-0.04365164041519165,
-0.009519042447209358,
-0.1323169469833374,
-0.3170737326145172,
0.19163469970226288,
0.1659909188747406,
0.043451711535453796,
-0.038987897336483,
0.07149026542901993,
-0.07797868549823761,
-0.07352045923471451,
-0.055181171745061874,
0.04390732944011688,
-0.017899740487337112,
-0.10161332786083221,
0.07219591736793518,
-0.14501383900642395,
-0.019280944019556046,
0.057953059673309326,
0.007114081643521786,
0.30389687418937683,
-0.16139796376228333,
-0.05193827673792839,
0.1559138149023056,
0.00757270772010088,
0.05877552181482315,
0.029528209939599037,
-0.06495629996061325,
-0.044095758348703384,
0.11518880724906921,
0.12728309631347656,
0.08796830475330353,
0.021300746127963066,
0.07468725740909576,
-0.05101417750120163,
0.10999739915132523,
-0.13529033958911896,
0.04877399280667305,
-0.03401170298457146,
-0.024594834074378014,
-0.12899622321128845,
0.05314870551228523,
-0.04123310372233391,
-0.24823446571826935,
-0.017832722514867783,
-0.15105727314949036,
-0.08266732096672058,
-0.16771702468395233,
0.3274208605289459,
-0.012973379343748093,
-0.2723141610622406,
-0.06121191754937172,
3.1749994509002e-34,
-0.002023041946813464,
-0.16021355986595154,
-0.06655532121658325,
-0.15145795047283173,
0.0027330962475389242,
-0.004598235245794058,
0.2901781499385834,
0.08153028786182404,
-0.014348291791975498,
-0.12510745227336884,
0.02671407163143158
] |
https://github.com/huggingface/datasets/issues/2443 | Some tests hang on Windows | Hi ! That would be nice indeed to at least have a warning, since we don't handle the max path length limit.
Also if we could have an error instead of an infinite loop I'm sure windows users will appreciate that | Currently, several tests hang on Windows if the max path limit of 260 characters is not disabled. This happens due to the changes introduced by #2223 that cause an infinite loop in `WindowsFileLock` described in #2220. This can be very tricky to debug, so I think now is a good time to address these issues/PRs. IMO throwing an error is too harsh, but maybe we can emit a warning in the top-level `__init__.py ` on startup if long paths are not enabled.
| 41 | Some tests hang on Windows
Currently, several tests hang on Windows if the max path limit of 260 characters is not disabled. This happens due to the changes introduced by #2223 that cause an infinite loop in `WindowsFileLock` described in #2220. This can be very tricky to debug, so I think now is a good time to address these issues/PRs. IMO throwing an error is too harsh, but maybe we can emit a warning in the top-level `__init__.py ` on startup if long paths are not enabled.
Hi ! That would be nice indeed to at least have a warning, since we don't handle the max path length limit.
Also if we could have an error instead of an infinite loop I'm sure windows users will appreciate that | [
0.008172761648893356,
0.22928911447525024,
-0.15601764619350433,
-0.0727127268910408,
0.0984199270606041,
0.05964473634958267,
-0.001615928951650858,
0.16426213085651398,
0.07915686815977097,
0.10188572853803635,
0.21034352481365204,
-0.16755180060863495,
-0.13707220554351807,
-0.02365599200129509,
-0.06302676349878311,
-0.1003476157784462,
-0.13020110130310059,
-0.1639658510684967,
-0.17995569109916687,
-0.10524843633174896,
-0.1657927930355072,
0.024531690403819084,
-0.03827011585235596,
-0.008665239438414574,
-0.10327859222888947,
0.1163940578699112,
-0.047824013978242874,
0.049502018839120865,
-0.09672123193740845,
-0.16718167066574097,
-0.030971305444836617,
-0.05079774931073189,
0.029568754136562347,
0.2919774353504181,
0.000005873623194929678,
-0.07298397272825241,
0.27051830291748047,
0.16846676170825958,
-0.05129527300596237,
0.037969205528497696,
0.09912601858377457,
0.0015801406698301435,
0.12116128206253052,
0.039413634687662125,
0.024490561336278915,
0.09172460436820984,
0.006455571856349707,
-0.07751549035310745,
0.039299994707107544,
0.0918358564376831,
0.04225049912929535,
0.09803109616041183,
-0.017258021980524063,
-0.1887103021144867,
0.013824257999658585,
-0.0733167827129364,
-0.0517231710255146,
0.07687576115131378,
0.16195134818553925,
-0.15245811641216278,
-0.026089541614055634,
-0.09675319492816925,
0.14009252190589905,
-0.08179859071969986,
-0.2267003357410431,
0.02572271227836609,
0.024111583828926086,
-0.04709921404719353,
0.06578551232814789,
-0.020969916135072708,
-0.18960453569889069,
-0.020759079605340958,
0.002682901220396161,
0.00013599000521935523,
-0.03407726064324379,
-0.11486565321683884,
0.15548813343048096,
0.09469981491565704,
0.010507547296583652,
-0.14615166187286377,
-0.0031491273548454046,
0.07861208915710449,
-0.06301077455282211,
-0.023878313601017,
-0.14463703334331512,
0.015754565596580505,
0.007188687101006508,
-0.006701785605400801,
0.12465105950832367,
0.16728068888187408,
0.08506781607866287,
0.03743297606706619,
-0.05542731285095215,
-0.07896363735198975,
-0.047199223190546036,
-0.011501461267471313,
0.008676201105117798,
0.06812872737646103,
0.10772598534822464,
-0.06174582242965698,
-0.21707989275455475,
-0.09613502770662308,
0.050841074436903,
-0.026034442707896233,
-0.1648116558790207,
-0.005412156693637371,
-0.08940446376800537,
-0.12057942897081375,
0.1468520611524582,
0.10149654000997543,
-0.11956517398357391,
0.0964624211192131,
-0.1415088027715683,
-0.241866797208786,
0.14482659101486206,
-0.10384510457515717,
0.17624814808368683,
0.01800725795328617,
0.009695273824036121,
0.21240448951721191,
-0.15877744555473328,
0.0956820696592331,
0.04858608543872833,
0.10326050221920013,
0.02741817757487297,
-0.0765707865357399,
-0.04488956555724144,
-0.052840013056993484,
-0.1021118089556694,
0.18214978277683258,
-0.026764869689941406,
0.01054844819009304,
-0.14802637696266174,
-0.08875785022974014,
0.23928730189800262,
0.07952573895454407,
0.10447167605161667,
-0.010219767689704895,
0.19113585352897644,
-0.15528510510921478,
-0.06692908704280853,
-0.24329178035259247,
0.19751350581645966,
-0.11876644194126129,
-0.03896893933415413,
0.04665674641728401,
0.09216949343681335,
-0.11329374462366104,
-0.059698037803173065,
-0.12695224583148956,
-0.04692508652806282,
0.18530122935771942,
0.08613812178373337,
-0.12857507169246674,
-0.1135813519358635,
0.1064784899353981,
0.06392554938793182,
-0.15403391420841217,
-0.12452036142349243,
0.02375839650630951,
0.21731287240982056,
-0.1254499852657318,
0.042098283767700195,
0.0011261265026405454,
0.1578075885772705,
0.0858769416809082,
0.22635287046432495,
-0.0034061495680361986,
0.090268574655056,
0.130975604057312,
-0.08408298343420029,
0.10890346020460129,
0.019992833957076073,
-0.05843496695160866,
-0.08754286170005798,
0.14456626772880554,
-0.21748940646648407,
-0.008707564324140549,
0.007265352178364992,
-0.05651674047112465,
0.04851203039288521,
0.15250816941261292,
-0.020327890291810036,
-0.1406792253255844,
0.18639017641544342,
0.05932571366429329,
-0.07402034848928452,
0.051813527941703796,
0.01995789259672165,
-0.05241851881146431,
-0.029580365866422653,
-0.06968490779399872,
0.10063647478818893,
0.08482580631971359,
0.12272242456674576,
-0.3074798583984375,
0.027958709746599197,
-0.052120011299848557,
0.1467374712228775,
-0.19526754319667816,
0.03740248084068298,
-0.020780673250555992,
-0.009823115542531013,
0.021481875330209732,
0.010735460557043552,
-0.002227905672043562,
-0.11396045982837677,
0.17568597197532654,
-0.0316484160721302,
-0.08322115242481232,
-0.0470033623278141,
-0.02058192528784275,
0.054131269454956055,
0.03304271399974823,
0.07805813103914261,
0.004980953875929117,
0.052008360624313354,
-0.1046290472149849,
0.014760291203856468,
-0.018834048882126808,
0.06418604403734207,
-0.14567986130714417,
-0.05484773591160774,
0.0221408624202013,
-0.01674005202949047,
0.08406232297420502,
-0.1673341989517212,
0.04866940900683403,
-0.08971439301967621,
0.04280736669898033,
-0.06275251507759094,
-0.11403011530637741,
0.0310951117426157,
-0.1653493046760559,
-0.057684868574142456,
-0.1494988054037094,
-0.019434288144111633,
-0.0030551906675100327,
0.04522503539919853,
-0.0004399051540531218,
-0.09127722680568695,
0.02638266608119011,
-0.08319706469774246,
-0.13765551149845123,
0.016656415536999702,
-0.11726642400026321,
-0.2360832542181015,
0.2545173168182373,
-0.0533258356153965,
-0.05929245799779892,
0.23299330472946167,
-0.035547010600566864,
-0.20605464279651642,
0.2501258850097656,
0.11741387099027634,
-0.023767193779349327,
-0.06392472237348557,
0.08240540325641632,
0.0004660049162339419,
-0.11240255832672119,
0.21046780049800873,
0.07717403769493103,
-0.12567360699176788,
0.005365191027522087,
0.024051329120993614,
0.10269716382026672,
0.03599022328853607,
-0.028351495042443275,
-0.05045041814446449,
0.007788163144141436,
-0.003907492384314537,
-0.11986595392227173,
0.0010925832903012633,
-0.05206786468625069,
0.13071557879447937,
0.1381804496049881,
-0.03927239030599594,
0.06512188166379929,
0.07395870983600616,
-0.09261764585971832,
-0.009546742774546146,
-0.12154369056224823,
0.11360042542219162,
-0.09218749403953552,
0.022832417860627174,
0.10387390851974487,
-0.009453355334699154,
-0.12279324978590012,
-0.04206129536032677,
-0.009856387041509151,
0.07308496534824371,
0.0009636039030738175,
-0.1002003625035286,
0.11371984332799911,
-0.11436469107866287,
0.023149941116571426,
0.1205393597483635,
0.11286889761686325,
0.043484531342983246,
0.025628134608268738,
-0.003460615873336792,
0.2557179629802704,
-0.05844036862254143,
-0.012574700638651848,
0.17077204585075378,
-0.08464675396680832,
0.06868539750576019,
0.1332138329744339,
0.03956319019198418,
-0.09314259141683578,
-0.034836187958717346,
-0.05501622334122658,
-0.05564318224787712,
0.12692947685718536,
-0.05832527577877045,
0.11623962223529816,
-0.04651444032788277,
-0.21010702848434448,
-0.004318612162023783,
-0.067513108253479,
0.07254014164209366,
0.0698477029800415,
0.1774379312992096,
-0.12041381001472473,
0.030803479254245758,
0.05365289747714996,
-0.22428946197032928,
-0.05626877024769783,
0.11575133353471756,
0.14080390334129333,
-0.12862373888492584,
0.06615336239337921,
-0.10861597955226898,
-0.07540064305067062,
-0.02035946026444435,
-0.11249327659606934,
0.041465818881988525,
0.057325515896081924,
0.14053641259670258,
0.054686106741428375,
-0.1072240024805069,
-0.18425962328910828,
-0.0062318588607013226,
-0.23553307354450226,
-0.0019180654780939221,
0.13245514035224915,
0.14440807700157166,
-0.18055804073810577,
0.24832667410373688,
-0.11096522212028503,
-0.07468710839748383,
0.17810344696044922,
0.06092371419072151,
-0.018731581047177315,
0.15133793652057648,
0.08978526294231415,
-0.0024082742165774107,
0.06197996437549591,
-0.009773248806595802,
-0.16487762331962585,
-0.03555014356970787,
-0.08807461708784103,
-0.07550666481256485,
-0.026463279500603676,
0.045727428048849106,
-0.10018196702003479,
0.09662292152643204,
-0.0024897539988160133,
-0.1711868792772293,
0.014738948084414005,
0.0020133177749812603,
-0.2784852683544159,
-0.2095504254102707,
0.11089860647916794,
0.09138897061347961,
0.02893895097076893,
0.2161502093076706,
-0.0694340318441391,
0.1738266944885254,
-0.040365900844335556,
0.10889483988285065,
0.08189606666564941,
-0.07597372680902481,
-0.012408620677888393,
0.11442305147647858,
0.060216400772333145,
-0.01195446029305458,
0.10202697664499283,
-0.07219050824642181,
-0.021869882941246033,
-0.0016362422611564398,
0.20462048053741455,
-0.0213881004601717,
-0.02417805604636669,
-0.24495191872119904,
-0.029399199411273003,
0.15846233069896698,
-0.04428134486079216,
-0.09503394365310669,
0.042769405990839005,
0.02009745128452778,
0.05106900632381439,
0.03473054990172386,
0.15133489668369293,
0.12330164760351181,
-0.1146380826830864,
-0.07897969335317612,
-0.08161012828350067,
0.07056976854801178,
-0.07513220608234406,
0.18926894664764404,
0.10994651168584824,
0.1180255264043808,
-0.10164371877908707,
0.09111679345369339,
0.21674923598766327,
-0.03445596620440483,
0.08139970898628235,
0.05157160758972168,
0.021553317084908485,
-0.1519039422273636,
0.14950235188007355,
-0.01937149651348591,
0.06069197505712509,
-0.23198671638965607,
0.038725342601537704,
0.040085554122924805,
-0.07015108317136765,
0.17432256042957306,
0.11671482771635056,
-0.16085684299468994,
-0.10135752707719803,
0.12291280180215836,
-0.1267358958721161,
0.01896345429122448,
-0.08054561913013458,
0.037505000829696655,
-0.02148372307419777,
0.21155591309070587,
0.12124145776033401,
-0.13981236517429352,
0.033204950392246246,
0.06129172444343567,
-0.2113199681043625,
-0.09882473945617676,
-0.08188078552484512,
0.08941072225570679,
-0.09080912172794342,
0.1268841177225113,
0.07192414253950119,
0.07686752080917358,
0.019066758453845978,
0.30762413144111633,
0.003196840174496174,
0.014950250275433064,
0.011154593899846077,
0.2087855488061905,
-0.14833113551139832,
-0.08935265988111496,
0.09991603344678879,
-0.02283945493400097,
-0.048272497951984406,
-0.04139072075486183,
0.0843895673751831,
0.0000110387272798107,
0.0028650490567088127,
-0.05365900322794914,
0.04806751757860184,
0.012766771949827671,
0.1012798324227333,
-0.047572795301675797,
0.056802261620759964,
-0.03902676701545715,
0.09036102145910263,
-0.08188993483781815,
0.034828878939151764,
-0.07161911576986313,
0.1334831863641739,
-0.11526314169168472,
0.018789559602737427,
0.0908491387963295,
-0.1731756031513214,
-0.06642556935548782,
-0.1569347083568573,
-0.056656114757061005,
0.31671056151390076,
0.03644741326570511,
-0.0459132082760334,
-0.011540248058736324,
-0.004327510949224234,
0.01836845651268959,
0.047632843255996704,
-0.05149881914258003,
-0.008081333711743355,
0.15774238109588623,
-0.048629146069288254,
-0.004281050991266966,
0.08916039764881134,
-0.05030756816267967,
-0.09954831749200821,
0.12190341204404831,
-0.175004243850708,
-0.006390552502125502,
-0.001623757416382432,
0.008865104988217354,
0.1930883526802063,
-0.07313644886016846,
0.027771716937422752,
0.014502706937491894,
0.022983158007264137,
-0.047976285219192505,
0.07075275480747223,
0.09333844482898712,
-0.10020440071821213,
-0.03317379578948021,
0.1270633041858673,
0.05700203776359558,
-0.035891544073820114,
-0.06087379902601242,
-0.2278556227684021,
-0.04698347672820091,
-0.011969109997153282,
-0.032982178032398224,
-0.021972861140966415,
0.03732358664274216,
-0.10188593715429306,
-0.04316847026348114,
-0.13240064680576324,
0.10248260200023651,
0.06908705830574036,
0.16889269649982452,
0.17376457154750824,
0.20497530698776245,
0.08963499218225479,
-0.1788264811038971,
0.11112656444311142,
-0.049624763429164886,
-0.1234908327460289,
0.1231469064950943,
0.17803746461868286,
-0.014566218480467796,
-0.17218388617038727,
-0.07289726287126541,
0.068338543176651,
-0.1548631340265274,
0.02098650112748146,
0.01289642509073019,
-0.06499621272087097,
-0.016769787296652794,
0.12828706204891205,
0.17376835644245148,
-0.024837186560034752,
0.013847021386027336,
-0.058291245251894,
-0.21996605396270752,
-2.1392758507793454e-32,
-0.061611756682395935,
-0.2241416573524475,
-0.043512798845767975,
-0.06954951584339142,
-0.19091878831386566,
-0.015121099539101124,
-0.23632028698921204,
-0.003374339547008276,
0.020166195929050446,
0.060572315007448196,
0.005370286293327808,
-0.07675623893737793,
-0.03784327581524849,
-0.009341545403003693,
0.012543541379272938,
0.15754777193069458,
0.06824538856744766,
0.2474069893360138,
-0.18014268577098846,
-0.0301788579672575,
-0.001833653193898499,
-0.10293764621019363,
-0.0733184814453125,
0.0026811189018189907,
0.04907827079296112,
-0.0591210201382637,
0.05072614178061485,
-0.11694110184907913,
-0.014655589126050472,
0.02917812019586563,
0.020568067207932472,
0.04786708950996399,
0.14837758243083954,
0.013469594530761242,
0.02976391464471817,
-0.010893016122281551,
-0.023535024374723434,
0.03129977360367775,
-0.0030269899871200323,
-0.1504022628068924,
0.09146945923566818,
-0.0680031031370163,
0.14057548344135284,
0.0018596586305648088,
0.10064980387687683,
0.09957234561443329,
0.039514876902103424,
-0.03703589737415314,
0.04102545604109764,
-0.2414322793483734,
-0.13349872827529907,
0.04027366265654564,
-0.10161618143320084,
-0.031788866966962814,
-0.10500998049974442,
-0.12947417795658112,
0.016745569184422493,
0.0008732942515052855,
-0.04016447439789772,
-0.18170040845870972,
0.11859897524118423,
0.1251956671476364,
-0.06639033555984497,
-0.16781523823738098,
-0.07333202660083771,
-0.036433786153793335,
0.10489267110824585,
0.1603805273771286,
0.22368526458740234,
-0.028371427208185196,
0.03397855907678604,
0.01063866913318634,
0.11586441844701767,
-0.010045833885669708,
-0.018335161730647087,
0.08570476621389389,
-0.061805449426174164,
-0.023914696648716927,
0.129356250166893,
-0.16821031272411346,
-0.0194025207310915,
-0.10669878870248795,
-0.1444295346736908,
0.02756229043006897,
-0.19280047714710236,
0.137651264667511,
0.000516176747623831,
0.09276574850082397,
0.048009611666202545,
0.07768791168928146,
0.08146124333143234,
0.15643015503883362,
0.05641213059425354,
-0.0508948490023613,
0.02368023246526718,
-0.01223087590187788,
-0.049567174166440964,
0.03759145736694336,
-0.019737597554922104,
-0.0019440475152805448,
0.04528886079788208,
0.015217735432088375,
-0.024074094370007515,
0.12807036936283112,
0.17108093202114105,
-0.18910881876945496,
-0.16240350902080536,
-0.08082462847232819,
-0.08977329730987549,
-0.0051375520415604115,
0.021926913410425186,
0.0898243710398674,
0.043988268822431564,
0.0965549647808075,
0.19936004281044006,
0.0765179917216301,
-0.029552366584539413,
0.03003860078752041,
0.09868660569190979,
-0.09142670780420303,
0.013719532638788223,
-0.060178522020578384,
0.13479027152061462,
0.011323723010718822,
0.006801032926887274,
0.014290490187704563,
-0.04102504625916481,
-0.011176002211868763,
0.010314336977899075,
-0.17587126791477203,
0.024377986788749695,
-0.03461342304944992,
7.756660238555924e-7,
-0.17979644238948822,
0.19023117423057556,
-0.016909416764974594,
0.13130590319633484,
0.04841047525405884,
0.0501282699406147,
0.008877511136233807,
-0.18777388334274292,
-0.0941157117486,
-0.07574660331010818,
0.03361646458506584,
-0.058514103293418884,
0.07857021689414978,
-0.05561910197138786,
0.04628914222121239,
0.05686134099960327,
0.01575501821935177,
0.0545792318880558,
-0.13216979801654816,
0.039881639182567596,
0.18619517982006073,
-0.0076854536309838295,
-0.07893737405538559,
0.0209821630269289,
0.06495371460914612,
-0.10794646292924881,
-0.013367162086069584,
0.08234651386737823,
-0.015079070813953876,
0.013720575720071793,
-0.08932535350322723,
-0.041842419654130936,
0.03098943457007408,
0.07126311212778091,
-0.030084434896707535,
-0.002645463915541768,
-0.24190908670425415,
-0.056779906153678894,
0.39354389905929565,
-0.06906095892190933,
-0.13713811337947845,
-0.16714102029800415,
0.0003904699406120926,
0.014783796854317188,
0.008323810994625092,
-0.07495682686567307,
-0.157771497964859,
0.09737610816955566,
0.03615587577223778,
-0.07764426618814468,
-0.054916009306907654,
0.09316738694906235,
0.013283754698932171,
0.044401150196790695,
-0.10789015889167786,
-0.02998199313879013,
0.19771605730056763,
-0.05104047432541847,
-0.11389986425638199,
-0.008069273084402084,
-0.1091863214969635,
-0.07572869211435318,
0.13933834433555603,
-0.12070457637310028,
0.04425264522433281,
-0.03609204664826393,
-0.02522246353328228,
2.3289194839741078e-34,
-0.011014255695044994,
-0.020563390105962753,
0.2366916835308075,
-0.13736718893051147,
-0.11951746046543121,
-0.017615702003240585,
0.0021886760368943214,
-0.0620131753385067,
0.047583166509866714,
-0.00883755087852478,
-0.059475332498550415
] |
https://github.com/huggingface/datasets/issues/2443 | Some tests hang on Windows | Unfortunately, I know this problem very well... 😅
I remember having proposed to throw an error instead of hanging in an infinite loop #2220: 60c7d1b6b71469599a27147a08100f594e7a3f84, 8c8ab60018b00463edf1eca500e434ff061546fc
but @lhoestq told me:
> Note that the filelock module comes from this project that hasn't changed in years - while still being used by ten of thousands of projects:
https://github.com/benediktschmitt/py-filelock
>
> Unless we have proper tests for this, I wouldn't recommend to change it
I opened an Issue requesting a warning/error at startup for that case: #2224 | Currently, several tests hang on Windows if the max path limit of 260 characters is not disabled. This happens due to the changes introduced by #2223 that cause an infinite loop in `WindowsFileLock` described in #2220. This can be very tricky to debug, so I think now is a good time to address these issues/PRs. IMO throwing an error is too harsh, but maybe we can emit a warning in the top-level `__init__.py ` on startup if long paths are not enabled.
| 85 | Some tests hang on Windows
Currently, several tests hang on Windows if the max path limit of 260 characters is not disabled. This happens due to the changes introduced by #2223 that cause an infinite loop in `WindowsFileLock` described in #2220. This can be very tricky to debug, so I think now is a good time to address these issues/PRs. IMO throwing an error is too harsh, but maybe we can emit a warning in the top-level `__init__.py ` on startup if long paths are not enabled.
Unfortunately, I know this problem very well... 😅
I remember having proposed to throw an error instead of hanging in an infinite loop #2220: 60c7d1b6b71469599a27147a08100f594e7a3f84, 8c8ab60018b00463edf1eca500e434ff061546fc
but @lhoestq told me:
> Note that the filelock module comes from this project that hasn't changed in years - while still being used by ten of thousands of projects:
https://github.com/benediktschmitt/py-filelock
>
> Unless we have proper tests for this, I wouldn't recommend to change it
I opened an Issue requesting a warning/error at startup for that case: #2224 | [
0.05344820022583008,
0.2698095142841339,
-0.15522894263267517,
-0.08190133422613144,
0.08309681713581085,
0.07212051004171371,
0.06300657987594604,
0.1551017463207245,
0.12313815951347351,
0.09146472811698914,
0.1786957085132599,
-0.18616624176502228,
-0.13654182851314545,
-0.042742252349853516,
-0.05280063673853874,
-0.11698085814714432,
-0.13044552505016327,
-0.1546323597431183,
-0.1485174149274826,
-0.07193192839622498,
-0.1491977721452713,
0.012582791969180107,
-0.046440742909908295,
-0.035665471106767654,
-0.17274510860443115,
0.12499942630529404,
-0.04980719834566116,
0.039802923798561096,
-0.07156290113925934,
-0.1613798588514328,
-0.03466936573386192,
-0.04691692441701889,
0.009548661299049854,
0.26045599579811096,
0.000005762431555922376,
-0.06508874148130417,
0.23507113754749298,
0.16881471872329712,
-0.02736443653702736,
0.045381687581539154,
0.0809873640537262,
0.001311571104452014,
0.11369922757148743,
0.043308015912771225,
0.029339438304305077,
0.044862404465675354,
0.02201753295958042,
-0.052546121180057526,
0.024040907621383667,
0.0857032909989357,
0.046328842639923096,
0.12142758071422577,
-0.004602008033543825,
-0.20364725589752197,
0.03541933000087738,
-0.09904145449399948,
-0.024966968223452568,
0.12382500618696213,
0.17338168621063232,
-0.12961286306381226,
-0.04760846868157387,
-0.10062892735004425,
0.13594618439674377,
-0.09365059435367584,
-0.15428905189037323,
0.04601702839136124,
0.01134516578167677,
-0.08593346178531647,
0.046991799026727676,
-0.012584581039845943,
-0.212162047624588,
-0.03660215437412262,
-0.005577285308390856,
-0.003377901390194893,
0.0003638490743469447,
-0.06851640343666077,
0.13422536849975586,
0.06002350151538849,
0.027155965566635132,
-0.1316978931427002,
0.020796656608581543,
0.11746164411306381,
-0.05821527540683746,
-0.04950146749615669,
-0.15702950954437256,
0.05830953270196915,
-0.011346577666699886,
-0.0028609619475901127,
0.1163550540804863,
0.1512153595685959,
0.12220007926225662,
0.014185892418026924,
-0.0416489876806736,
-0.08043619990348816,
0.013134198263287544,
-0.015542944893240929,
0.0289920624345541,
0.011553231626749039,
0.10526825487613678,
-0.07060425728559494,
-0.2703130543231964,
-0.06500915437936783,
0.06928427517414093,
-0.02233012206852436,
-0.1780611276626587,
0.019599733874201775,
-0.0637211725115776,
-0.09761659801006317,
0.14193283021450043,
0.10230548679828644,
-0.1225752979516983,
0.1016089916229248,
-0.15505178272724152,
-0.250360906124115,
0.1724177747964859,
-0.0954589918255806,
0.1891697198152542,
0.051248129457235336,
0.0004378663143143058,
0.25585439801216125,
-0.21516959369182587,
0.08001459389925003,
0.01690143346786499,
0.07385559380054474,
0.04112662002444267,
-0.06181780993938446,
-0.01185679528862238,
-0.10399306565523148,
-0.10888081043958664,
0.16899614036083221,
-0.036673419177532196,
0.007036589551717043,
-0.13493265211582184,
-0.06531046330928802,
0.24100978672504425,
0.056431353092193604,
0.10764180123806,
-0.04233558475971222,
0.24338561296463013,
-0.14896932244300842,
-0.04607528820633888,
-0.2151566594839096,
0.15765058994293213,
-0.11681008338928223,
-0.049914341419935226,
0.029611309990286827,
0.10456107556819916,
-0.1282399296760559,
-0.043627407401800156,
-0.12369564175605774,
-0.0959383025765419,
0.1948232799768448,
0.09324859082698822,
-0.14780889451503754,
-0.13884514570236206,
0.12185106426477432,
0.09405272454023361,
-0.19008973240852356,
-0.10430226475000381,
0.043495990335941315,
0.1995891034603119,
-0.16576044261455536,
0.04825102910399437,
-0.0011273121926933527,
0.14299941062927246,
0.12363187968730927,
0.23982283473014832,
0.019761016592383385,
0.17282335460186005,
0.08332177251577377,
-0.0805082842707634,
0.09496120363473892,
0.021396486088633537,
-0.04937000572681427,
-0.08084578812122345,
0.1596471071243286,
-0.19666999578475952,
-0.013611891306936741,
-0.0306872371584177,
-0.06395450979471207,
0.0692872628569603,
0.17771105468273163,
-0.02854396589100361,
-0.1425395905971527,
0.19124257564544678,
0.05243811756372452,
0.0041007292456924915,
0.050851400941610336,
0.019362306222319603,
-0.07053311169147491,
-0.04684900864958763,
-0.03835568577051163,
0.03995790705084801,
0.10687194764614105,
0.12691310048103333,
-0.340978741645813,
0.03750760480761528,
0.012398341670632362,
0.1545831859111786,
-0.1752866804599762,
0.05543133616447449,
-0.06515318900346756,
0.03255229443311691,
0.0124503830447793,
-0.0013064335798844695,
-0.07230795919895172,
-0.16755487024784088,
0.15921272337436676,
-0.10534441471099854,
-0.10617516934871674,
-0.03425643593072891,
0.007261349819600582,
0.04425160586833954,
0.037946343421936035,
0.07817555963993073,
0.045421116054058075,
0.07192015647888184,
-0.09392312169075012,
-0.021185923367738724,
0.006647814996540546,
0.052913349121809006,
-0.11792004108428955,
-0.07145459204912186,
0.024020966142416,
-0.0029083106201142073,
0.08111696690320969,
-0.15088912844657898,
0.02561962604522705,
-0.11140844225883484,
0.03864092379808426,
-0.05215173959732056,
-0.12562622129917145,
0.046333085745573044,
-0.13611938059329987,
-0.030182315036654472,
-0.1494871973991394,
-0.10023105889558792,
-0.011994720436632633,
0.02870159037411213,
0.03837040439248085,
-0.10501705855131149,
0.0025566492695361376,
-0.12434069067239761,
-0.14428913593292236,
-0.0030274654272943735,
-0.11434081196784973,
-0.23811161518096924,
0.2198464423418045,
-0.09301392734050751,
-0.0534418523311615,
0.20762695372104645,
-0.02687244862318039,
-0.19902145862579346,
0.22266411781311035,
0.08874227851629257,
0.013688848353922367,
-0.039081115275621414,
0.10229592025279999,
0.05401820316910744,
-0.1297532021999359,
0.22994862496852875,
0.07359323650598526,
-0.12530015408992767,
0.02712148427963257,
0.0327824130654335,
0.07504359632730484,
0.025419292971491814,
-0.01296074315905571,
-0.029974061995744705,
0.023235490545630455,
0.014456383883953094,
-0.10116792470216751,
0.03734305128455162,
-0.06562872231006622,
0.12208987027406693,
0.11078906804323196,
-0.07619769871234894,
0.09303558617830276,
0.046215467154979706,
-0.09408469498157501,
0.04449974745512009,
-0.175311878323555,
0.11246403306722641,
-0.08661757409572601,
0.05967789888381958,
0.08706037700176239,
-0.03534824028611183,
-0.09458896517753601,
-0.03380013629794121,
0.05703836679458618,
0.08750680088996887,
-0.016667820513248444,
-0.10985662043094635,
0.12157828360795975,
-0.11829433590173721,
-0.0356578528881073,
0.06647321581840515,
0.11527886241674423,
0.029202044010162354,
0.062278032302856445,
0.0017815277678892016,
0.23899070918560028,
-0.08822670578956604,
-0.008218498900532722,
0.1786118447780609,
-0.019351258873939514,
0.09066708385944366,
0.09671508520841599,
-0.0013294578529894352,
-0.10117742419242859,
-0.04748905822634697,
-0.07691016793251038,
-0.06729703396558762,
0.15234799683094025,
-0.020907845348119736,
0.08811130374670029,
-0.030272863805294037,
-0.23589660227298737,
-0.011706775985658169,
-0.04844686761498451,
0.056793682277202606,
0.03396105021238327,
0.11171656847000122,
-0.10043404996395111,
0.0010531323496252298,
0.08612740784883499,
-0.21483631432056427,
-0.04832929000258446,
0.11366346478462219,
0.160241961479187,
-0.13810767233371735,
0.0992341861128807,
-0.15330249071121216,
-0.06965576857328415,
-0.039500270038843155,
-0.09872524440288544,
0.040514230728149414,
0.04650067538022995,
0.1241089403629303,
0.05019448697566986,
-0.12305880337953568,
-0.1866377890110016,
-0.027842450886964798,
-0.24288086593151093,
0.013349213637411594,
0.15515506267547607,
0.10037507861852646,
-0.17344342172145844,
0.2039528340101242,
-0.11530100554227829,
-0.06679705530405045,
0.14087605476379395,
0.05178707465529442,
-0.04797854647040367,
0.12500791251659393,
0.0909380093216896,
0.008000831119716167,
0.09968820214271545,
-0.026266595348715782,
-0.0999172031879425,
-0.026573508977890015,
-0.03313243389129639,
-0.03453705459833145,
-0.0006211294676177204,
0.04277888312935829,
-0.09997721761465073,
0.12342047691345215,
-0.00798561330884695,
-0.19437314569950104,
0.0464390367269516,
-0.020121147856116295,
-0.26249709725379944,
-0.19425860047340393,
0.10802774131298065,
0.08581790328025818,
0.06806190311908722,
0.1964811384677887,
-0.07123210281133652,
0.19769226014614105,
-0.09160500019788742,
0.11588310450315475,
0.08294077217578888,
-0.07015985250473022,
-0.004915162455290556,
0.10414005070924759,
0.06179780513048172,
0.014821019023656845,
0.10021018236875534,
-0.05933934077620506,
-0.01980612240731716,
0.01768358238041401,
0.2028532177209854,
0.04534536600112915,
0.0017839884385466576,
-0.21469435095787048,
-0.026410549879074097,
0.1386639028787613,
-0.057139161974191666,
-0.07109427452087402,
0.04507601633667946,
0.012246199883520603,
0.04518546909093857,
0.06739606708288193,
0.15797927975654602,
0.1063971295952797,
-0.09911281615495682,
-0.033989015966653824,
-0.07523836195468903,
0.05901924520730972,
-0.06976187974214554,
0.18772412836551666,
0.119116872549057,
0.10097596794366837,
-0.12022919207811356,
0.08098725974559784,
0.18416622281074524,
-0.023941677063703537,
0.05682753771543503,
0.06110970303416252,
0.044753771275281906,
-0.18322090804576874,
0.09524688869714737,
0.0008978400728665292,
0.08926771581172943,
-0.1816602349281311,
0.031557049602270126,
0.07610494643449783,
-0.09078611433506012,
0.1516900658607483,
0.12631329894065857,
-0.1448790282011032,
-0.08892403542995453,
0.14229047298431396,
-0.11101198196411133,
-0.009051782079041004,
-0.057716645300388336,
0.009973837062716484,
-0.03127727285027504,
0.23296482861042023,
0.17023205757141113,
-0.15066717565059662,
0.031417690217494965,
0.07784565538167953,
-0.21482975780963898,
-0.10854794085025787,
-0.06347720324993134,
0.07574924826622009,
-0.028747698292136192,
0.10740330070257187,
0.055097587406635284,
0.03869200870394707,
0.032403260469436646,
0.3084408938884735,
-0.023712772876024246,
0.026483433321118355,
-0.006290252786129713,
0.19241583347320557,
-0.12564219534397125,
-0.09947813302278519,
0.12737742066383362,
0.010337680578231812,
-0.05616764351725578,
-0.017963087186217308,
0.09257611632347107,
0.004747375845909119,
-0.005537066143006086,
-0.03590162470936775,
0.06398626416921616,
-0.01864260993897915,
0.06979954242706299,
-0.08316248655319214,
0.08097332715988159,
-0.058670774102211,
0.10495919734239578,
-0.09527380764484406,
0.0809125304222107,
-0.071383997797966,
0.12341485917568207,
-0.19334284961223602,
0.012510338798165321,
0.090386763215065,
-0.20709523558616638,
-0.05185309424996376,
-0.1385960578918457,
-0.037491220980882645,
0.3288247883319855,
0.025499897077679634,
-0.0586295910179615,
-0.01951686106622219,
-0.005353925749659538,
0.009197000414133072,
0.023266294971108437,
-0.07631818950176239,
0.039863359183073044,
0.14177189767360687,
-0.045396920293569565,
0.044748228043317795,
0.07277686148881912,
-0.08461654931306839,
-0.1054001972079277,
0.13852719962596893,
-0.16868197917938232,
-0.008774599060416222,
-0.030415769666433334,
0.016167283058166504,
0.1570981740951538,
-0.08440864831209183,
0.03071582317352295,
0.02555636316537857,
0.014643527567386627,
-0.0564056895673275,
0.10315091907978058,
0.016461368650197983,
-0.09264752268791199,
-0.01000857912003994,
0.08085926622152328,
0.08275680989027023,
-0.06875140964984894,
-0.04788558930158615,
-0.24917761981487274,
-0.032095350325107574,
-0.018835406750440598,
-0.015844864770770073,
-0.011379461735486984,
0.03225404769182205,
-0.11470206081867218,
-0.06251838803291321,
-0.10088778287172318,
0.06428027153015137,
0.08268318325281143,
0.13233260810375214,
0.18119660019874573,
0.2186013162136078,
0.06481846421957016,
-0.1667158156633377,
0.13807520270347595,
-0.013621555641293526,
-0.15047390758991241,
0.12306419014930725,
0.20435912907123566,
-0.030348800122737885,
-0.15710434317588806,
-0.02243984118103981,
0.023124616593122482,
-0.1208752766251564,
0.006126211956143379,
0.010254180990159512,
-0.07355832308530807,
-0.016326846554875374,
0.12198593467473984,
0.2110234498977661,
-0.00174615066498518,
0.04084347188472748,
-0.09565237164497375,
-0.21302206814289093,
-2.1607228921468919e-32,
-0.03405110165476799,
-0.24782675504684448,
-0.06224507838487625,
-0.10950979590415955,
-0.21870675683021545,
-0.05771459639072418,
-0.196012943983078,
0.0061372690834105015,
0.036548320204019547,
0.06277047842741013,
0.008002407848834991,
-0.11530683934688568,
-0.027386542409658432,
-0.005059076938778162,
0.005055814515799284,
0.16642053425312042,
0.042867954820394516,
0.24018044769763947,
-0.1801590472459793,
-0.014881436713039875,
0.031621240079402924,
-0.07035516947507858,
-0.06578496098518372,
0.03823646157979965,
0.06283953785896301,
-0.05143100023269653,
0.0812215507030487,
-0.09465097635984421,
-0.036091968417167664,
-0.00019360266742296517,
0.01963728293776512,
0.023517565801739693,
0.15854071080684662,
-0.03050118312239647,
0.049746323376894,
0.0071588302962481976,
-0.035250224173069,
0.03311704844236374,
-0.001335341134108603,
-0.13843269646167755,
0.11264625191688538,
-0.09306368231773376,
0.1203535869717598,
0.023174332454800606,
0.121689572930336,
0.0615815669298172,
0.01587173342704773,
-0.03792755305767059,
0.05547661334276199,
-0.2696036398410797,
-0.14831575751304626,
0.057608772069215775,
-0.08621720224618912,
-0.02113329991698265,
-0.11383482068777084,
-0.12025943398475647,
0.07224283367395401,
-0.0309817586094141,
-0.06330441683530807,
-0.19604723155498505,
0.14190547168254852,
0.12719963490962982,
-0.05158178508281708,
-0.1440049260854721,
-0.09907406568527222,
-0.027607092633843422,
0.08371534943580627,
0.12137878686189651,
0.20681063830852509,
-0.05914853885769844,
0.037269476801157,
0.01977219432592392,
0.14016488194465637,
-0.007585183251649141,
-0.0087490975856781,
0.09198112785816193,
-0.08166570961475372,
-0.018486354500055313,
0.07076948881149292,
-0.10722720623016357,
0.005766565445810556,
-0.08727613836526871,
-0.14036798477172852,
0.03910158574581146,
-0.18446776270866394,
0.17644526064395905,
-0.0011932936031371355,
0.06889187544584274,
0.05880695581436157,
0.047462061047554016,
0.08606062829494476,
0.1137189269065857,
0.08762139081954956,
-0.07845668494701385,
0.04782560467720032,
-0.0709078386425972,
-0.05102930963039398,
0.03239724412560463,
-0.019583862274885178,
-0.007380957715213299,
0.07384487241506577,
-0.0005666607758030295,
0.02141341008245945,
0.11851894110441208,
0.17108482122421265,
-0.18089817464351654,
-0.17059046030044556,
-0.07160428911447525,
-0.10194513201713562,
0.00006185308302519843,
-0.013905815780162811,
0.10732904076576233,
0.08212316781282425,
0.0692431628704071,
0.1469220519065857,
0.1095297634601593,
-0.04502822458744049,
-0.004790390841662884,
0.09112536907196045,
-0.09058701246976852,
-0.006233227904886007,
-0.006845666561275721,
0.1443714201450348,
0.03311117738485336,
0.003581392113119364,
0.026327865198254585,
-0.02372346632182598,
-0.04664156958460808,
-0.04843517765402794,
-0.14542104303836823,
0.024618670344352722,
-0.009266923181712627,
7.798632282174367e-7,
-0.17550046741962433,
0.14694763720035553,
-0.029604114592075348,
0.13368897140026093,
0.04524807631969452,
0.10551425069570541,
-0.02762565016746521,
-0.1583864688873291,
-0.0602562315762043,
-0.05827123671770096,
0.042946863919496536,
-0.06763988733291626,
0.07399729639291763,
-0.06439652293920517,
0.06048225238919258,
0.01796065643429756,
0.048317138105630875,
0.03959067165851593,
-0.1243172138929367,
0.056241218000650406,
0.218672975897789,
-0.022958040237426758,
-0.09156757593154907,
-0.006289523560553789,
0.055909641087055206,
-0.11145336180925369,
-0.014455866999924183,
0.07259731739759445,
-0.02626720443367958,
0.008373260498046875,
-0.07304210215806961,
-0.04686727747321129,
0.018659112975001335,
0.05625623092055321,
-0.035610754042863846,
-0.01335067581385374,
-0.26911213994026184,
-0.044518183916807175,
0.42551857233047485,
-0.08918341994285583,
-0.15908919274806976,
-0.14224937558174133,
0.016620690003037453,
-0.039625003933906555,
0.013849032111465931,
-0.014331219717860222,
-0.144240602850914,
0.1111396998167038,
0.040668897330760956,
-0.04882458969950676,
-0.058565616607666016,
0.10054492205381393,
0.0019663041457533836,
0.03477689251303673,
-0.09366396814584732,
-0.04010531306266785,
0.18342556059360504,
-0.04516933485865593,
-0.08790212124586105,
-0.05740252509713173,
-0.11929866671562195,
-0.08273808658123016,
0.1386532336473465,
-0.1295197457075119,
-0.016138164326548576,
-0.021143335849046707,
0.004022120963782072,
2.085494348550486e-34,
-0.01661008410155773,
-0.01931217685341835,
0.2000548094511032,
-0.11906826496124268,
-0.12843526899814606,
-0.024753104895353317,
-0.02973017282783985,
-0.01001337543129921,
0.0687357559800148,
-0.044605519622564316,
-0.08386407792568207
] |
https://github.com/huggingface/datasets/issues/2443 | Some tests hang on Windows | @albertvillanova Thanks for additional info on this issue.
Yes, I think the best option is to throw an error instead of suppressing it in a loop. I've considered 2 more options, but I don't really like them:
1. create a temporary file with a filename longer than 255 characters on import; if this fails, long paths are not enabled and raise a warning. I'm not sure about this approach because I don't like the idea of creating a temporary file on import for this purpose.
2. check if long paths are enabled with [this code](https://stackoverflow.com/a/46546731/14095927). As mentioned in the comment, this code relies on an undocumented function and Win10-specific. | Currently, several tests hang on Windows if the max path limit of 260 characters is not disabled. This happens due to the changes introduced by #2223 that cause an infinite loop in `WindowsFileLock` described in #2220. This can be very tricky to debug, so I think now is a good time to address these issues/PRs. IMO throwing an error is too harsh, but maybe we can emit a warning in the top-level `__init__.py ` on startup if long paths are not enabled.
| 109 | Some tests hang on Windows
Currently, several tests hang on Windows if the max path limit of 260 characters is not disabled. This happens due to the changes introduced by #2223 that cause an infinite loop in `WindowsFileLock` described in #2220. This can be very tricky to debug, so I think now is a good time to address these issues/PRs. IMO throwing an error is too harsh, but maybe we can emit a warning in the top-level `__init__.py ` on startup if long paths are not enabled.
@albertvillanova Thanks for additional info on this issue.
Yes, I think the best option is to throw an error instead of suppressing it in a loop. I've considered 2 more options, but I don't really like them:
1. create a temporary file with a filename longer than 255 characters on import; if this fails, long paths are not enabled and raise a warning. I'm not sure about this approach because I don't like the idea of creating a temporary file on import for this purpose.
2. check if long paths are enabled with [this code](https://stackoverflow.com/a/46546731/14095927). As mentioned in the comment, this code relies on an undocumented function and Win10-specific. | [
0.03102795034646988,
0.2557678520679474,
-0.17968392372131348,
-0.06908184289932251,
0.11586881428956985,
0.06184109300374985,
0.0006710176821798086,
0.13613004982471466,
0.08801092952489853,
0.10509216785430908,
0.20860815048217773,
-0.1763620227575302,
-0.11145152896642685,
-0.042036719620227814,
-0.05250667408108711,
-0.0986878052353859,
-0.10840865969657898,
-0.16746225953102112,
-0.14630162715911865,
-0.1170877143740654,
-0.19987250864505768,
-0.007862797006964684,
-0.018025735393166542,
-0.07027378678321838,
-0.09388641268014908,
0.15050119161605835,
-0.03521048650145531,
-0.0038707288913428783,
-0.10190983861684799,
-0.12809930741786957,
-0.056668300181627274,
-0.04416893795132637,
-0.01928679645061493,
0.3316483795642853,
0.000005722670721297618,
-0.09526465088129044,
0.2479444444179535,
0.14650124311447144,
-0.030673936009407043,
0.014097090810537338,
0.08089131116867065,
-0.034629154950380325,
0.08425088971853256,
0.0005616273847408593,
0.06678229570388794,
0.0640452653169632,
-0.004153415095061064,
-0.1077364906668663,
-0.015790337696671486,
0.0792737677693367,
0.02623036317527294,
0.0941014364361763,
-0.0012770366156473756,
-0.1805051565170288,
0.011940641328692436,
-0.08347969502210617,
-0.01347676943987608,
0.0976782962679863,
0.19914871454238892,
-0.13957133889198303,
-0.018138714134693146,
-0.0788782462477684,
0.1364744007587433,
-0.1119515597820282,
-0.22931672632694244,
0.003132616402581334,
0.00863287691026926,
-0.0543287917971611,
0.06287479400634766,
0.004150141030550003,
-0.1900160014629364,
0.014433731324970722,
0.015109806321561337,
0.015165737830102444,
-0.016507793217897415,
-0.11270884424448013,
0.162327378988266,
0.07437262684106827,
0.06012548506259918,
-0.1359727829694748,
0.026074282824993134,
0.08119606971740723,
-0.0754518061876297,
-0.02746623195707798,
-0.21532626450061798,
0.00420893682166934,
-0.01792031340301037,
-0.00047956741764210165,
0.1686576008796692,
0.12412169575691223,
0.06654529273509979,
0.008924749679863453,
-0.01355014555156231,
-0.05422196909785271,
-0.0215816218405962,
0.025526797398924828,
0.031625181436538696,
0.01780703477561474,
0.07886335253715515,
-0.08311105519533157,
-0.23361605405807495,
-0.0780026912689209,
0.02650853991508484,
-0.01357289869338274,
-0.18379348516464233,
0.028838708996772766,
-0.11837262660264969,
-0.11218516528606415,
0.14260178804397583,
0.1255708783864975,
-0.12196050584316254,
0.13256826996803284,
-0.13805902004241943,
-0.2084774523973465,
0.14021462202072144,
-0.11524152010679245,
0.16714148223400116,
-0.009411145932972431,
-0.007854882627725601,
0.2525533437728882,
-0.16785617172718048,
0.07435406744480133,
0.049989327788352966,
0.1422167271375656,
0.011047222651541233,
-0.05092031508684158,
-0.04942987859249115,
-0.07259799540042877,
-0.12071158736944199,
0.17669688165187836,
-0.0035098870284855366,
0.025075942277908325,
-0.11294611543416977,
-0.11363080888986588,
0.2392926961183548,
0.060982149094343185,
0.09908872842788696,
0.010830375365912914,
0.16116230189800262,
-0.15758003294467926,
-0.08653701096773148,
-0.26828742027282715,
0.23051024973392487,
-0.10548923164606094,
-0.009830974042415619,
0.02842140942811966,
0.07398038357496262,
-0.15238729119300842,
-0.05280373990535736,
-0.14792780578136444,
-0.0589718371629715,
0.19290336966514587,
0.08360938727855682,
-0.12879598140716553,
-0.09922933578491211,
0.11965707689523697,
0.1012844517827034,
-0.1381615847349167,
-0.142660453915596,
0.0369696319103241,
0.20338866114616394,
-0.1265949308872223,
0.026640402153134346,
-0.003792386269196868,
0.1440112441778183,
0.10825837403535843,
0.191578209400177,
0.014467095024883747,
0.09282704442739487,
0.1596469134092331,
-0.0970049798488617,
0.08874734491109848,
0.04548296332359314,
-0.05736016482114792,
-0.0958200991153717,
0.11674357205629349,
-0.2292962223291397,
-0.017981743440032005,
-0.011510173790156841,
-0.06457875669002533,
0.043482691049575806,
0.19688072800636292,
-0.03966309502720833,
-0.1660589575767517,
0.17065052688121796,
0.057116974145174026,
-0.009057083167135715,
0.03175223618745804,
0.027606887742877007,
-0.07059446722269058,
-0.007885751314461231,
-0.07560159265995026,
0.09392108023166656,
0.10408101230859756,
0.1493263691663742,
-0.31686103343963623,
0.02223861962556839,
-0.05023304745554924,
0.15861715376377106,
-0.16597804427146912,
0.02557508274912834,
-0.02392548881471157,
0.03532620519399643,
-0.0014152373187243938,
-0.02717629447579384,
-0.015706758946180344,
-0.1568434089422226,
0.16392171382904053,
-0.030841141939163208,
-0.06806036084890366,
-0.055051278322935104,
-0.014908479526638985,
0.0663120299577713,
0.07180112600326538,
0.06312985718250275,
0.005002086982131004,
0.05232878029346466,
-0.09424471855163574,
0.012279759161174297,
-0.021987896412611008,
0.04806508496403694,
-0.10410306602716446,
-0.051236383616924286,
0.008563331328332424,
-0.016130119562149048,
0.07055597007274628,
-0.1679142862558365,
0.03993799164891243,
-0.05617387220263481,
0.05441382899880409,
-0.052484650164842606,
-0.1303423047065735,
0.03318619355559349,
-0.17920920252799988,
-0.05566947162151337,
-0.12288480997085571,
-0.06004277244210243,
0.004254375118762255,
0.0345199815928936,
0.03891587257385254,
-0.11193940043449402,
0.028380122035741806,
-0.05257710814476013,
-0.1755874902009964,
0.028156016021966934,
-0.05646594986319542,
-0.20931510627269745,
0.26594287157058716,
-0.06351055204868317,
-0.05563206598162651,
0.19935213029384613,
-0.020053377375006676,
-0.21081827580928802,
0.243332639336586,
0.15452095866203308,
-0.002476760186254978,
-0.04378519952297211,
0.09606494009494781,
0.030442843213677406,
-0.10961240530014038,
0.2375272512435913,
0.049964867532253265,
-0.15170304477214813,
-0.025600075721740723,
0.007702614646404982,
0.12001659721136093,
0.007338653784245253,
0.012675561010837555,
-0.0735708475112915,
0.02368241548538208,
0.028893737122416496,
-0.13461780548095703,
-0.007552978582680225,
-0.04822351038455963,
0.12528710067272186,
0.1582261621952057,
-0.04004998132586479,
0.10484045743942261,
0.052049119025468826,
-0.09262995421886444,
0.036815155297517776,
-0.11638322472572327,
0.13284026086330414,
-0.08720898628234863,
0.02829475700855255,
0.12184285372495651,
-0.028281327337026596,
-0.10411342978477478,
-0.04768843576312065,
0.03575887903571129,
0.062125612050294876,
0.012830592691898346,
-0.13788340985774994,
0.11560385674238205,
-0.1420881599187851,
0.005020939279347658,
0.1104753166437149,
0.09272685647010803,
-0.0038163415156304836,
-0.023188326507806778,
0.01718028075993061,
0.19929586350917816,
-0.07645943760871887,
-0.015595386736094952,
0.19826629757881165,
-0.058823030441999435,
0.07652702927589417,
0.13211560249328613,
0.04167881980538368,
-0.0973009392619133,
-0.04596451297402382,
-0.04749215394258499,
-0.06688066571950912,
0.11687071621417999,
-0.05974097549915314,
0.11487781256437302,
0.004237750079482794,
-0.2066006362438202,
-0.0004102635430172086,
-0.08060105890035629,
0.05438437685370445,
0.10397373884916306,
0.1357099562883377,
-0.12650640308856964,
0.032083868980407715,
0.07848691195249557,
-0.22881650924682617,
-0.0510304719209671,
0.09462158381938934,
0.1363542228937149,
-0.1492404043674469,
0.09910974651575089,
-0.09041374176740646,
-0.0420822910964489,
-0.013082045130431652,
-0.12860152125358582,
0.02392195537686348,
0.06424243748188019,
0.18432630598545074,
0.05875768885016441,
-0.1421171873807907,
-0.17079567909240723,
-0.020782629027962685,
-0.2142316997051239,
0.004871049430221319,
0.14965537190437317,
0.17013150453567505,
-0.20399226248264313,
0.24176636338233948,
-0.08337736874818802,
-0.09183955937623978,
0.17689871788024902,
0.03377363830804825,
-0.010611671023070812,
0.15797732770442963,
0.13203440606594086,
-0.0027482646983116865,
0.05737139284610748,
0.012030161917209625,
-0.12451674044132233,
-0.05095332860946655,
-0.09224453568458557,
-0.07519122958183289,
-0.004041774198412895,
0.017991814762353897,
-0.11544528603553772,
0.11883372068405151,
-0.006229808088392019,
-0.1971019059419632,
0.0023941071704030037,
0.00039125632611103356,
-0.2965376079082489,
-0.19328533113002777,
0.10515784472227097,
0.07505113631486893,
0.024703724309802055,
0.1764334887266159,
-0.09147568047046661,
0.1833156794309616,
-0.07154953479766846,
0.1465386301279068,
0.096132792532444,
-0.08861779421567917,
-0.0009265013504773378,
0.0755336657166481,
0.051989804953336716,
-0.009442096576094627,
0.09023434668779373,
-0.09828076511621475,
-0.0373883880674839,
0.026756424456834793,
0.22185875475406647,
-0.011329441331326962,
-0.004587857984006405,
-0.20232750475406647,
-0.018114710226655006,
0.17896431684494019,
-0.045198217034339905,
-0.05587374418973923,
0.04743412509560585,
-0.018968241289258003,
0.050643131136894226,
0.04761683568358421,
0.14247944951057434,
0.13287942111492157,
-0.10250506550073624,
-0.09911850094795227,
-0.07810397446155548,
0.06415361166000366,
-0.08992715179920197,
0.16393254697322845,
0.09440288692712784,
0.11107618361711502,
-0.12289540469646454,
0.09638416767120361,
0.21607476472854614,
-0.013426010496914387,
0.11882179230451584,
0.029090728610754013,
0.03526582196354866,
-0.17800557613372803,
0.15697814524173737,
-0.008012940175831318,
0.11142787337303162,
-0.2558126449584961,
0.0592915304005146,
0.06162387877702713,
-0.06910235434770584,
0.20191432535648346,
0.11627279222011566,
-0.14769646525382996,
-0.11079540848731995,
0.13709454238414764,
-0.12406615912914276,
-0.018891766667366028,
-0.06763267517089844,
0.036438796669244766,
-0.01701291836798191,
0.16911233961582184,
0.15530675649642944,
-0.12206632643938065,
0.07021891325712204,
0.051896318793296814,
-0.18837988376617432,
-0.10951725393533707,
-0.07779033482074738,
0.07510748505592346,
-0.055822599679231644,
0.1155083104968071,
0.06394635885953903,
0.09294573962688446,
0.029281621798872948,
0.29854488372802734,
0.011693630367517471,
0.013734515756368637,
0.015648595988750458,
0.176716148853302,
-0.12715807557106018,
-0.09496864676475525,
0.11016478389501572,
-0.026112619787454605,
-0.0619487427175045,
-0.030372507870197296,
0.08851376920938492,
-0.019790170714259148,
0.0198501106351614,
-0.03619135916233063,
0.020444070920348167,
-0.02274652197957039,
0.13410471379756927,
-0.044508196413517,
0.061903152614831924,
-0.02883528359234333,
0.1325291246175766,
-0.07482542097568512,
0.08254098892211914,
-0.08563165366649628,
0.1303778439760208,
-0.07447672635316849,
0.018318159505724907,
0.10183022916316986,
-0.21216902136802673,
-0.07645152509212494,
-0.17618906497955322,
-0.05195754021406174,
0.3352774381637573,
0.0341954343020916,
-0.06459654122591019,
-0.016050290316343307,
-0.011691948398947716,
0.02268604189157486,
0.034618403762578964,
-0.04097608104348183,
-0.010231195017695427,
0.14326781034469604,
-0.08794213831424713,
-0.03893062472343445,
0.08041533082723618,
-0.027057405561208725,
-0.1283322423696518,
0.11701974272727966,
-0.17498406767845154,
-0.007364041171967983,
-0.004504496231675148,
0.007450047414749861,
0.1800539195537567,
-0.07594180107116699,
0.005814970470964909,
-0.0001010624910122715,
0.01197856105864048,
-0.03819820657372475,
0.07939324527978897,
0.09950874000787735,
-0.06329931318759918,
-0.01901768147945404,
0.15141160786151886,
0.1072983667254448,
-0.043726664036512375,
-0.03670173138380051,
-0.20289921760559082,
-0.06547491997480392,
0.0065981498919427395,
-0.07864967733621597,
-0.018863961100578308,
0.06831265985965729,
-0.08633413165807724,
-0.04822728782892227,
-0.09044890850782394,
0.1034959927201271,
0.0467187725007534,
0.17072948813438416,
0.14034566283226013,
0.24949637055397034,
0.07402405887842178,
-0.20382684469223022,
0.10456030815839767,
-0.03913428634405136,
-0.12267249822616577,
0.12469667941331863,
0.1852927953004837,
-0.02109977789223194,
-0.16908477246761322,
-0.08328645676374435,
0.05333934724330902,
-0.1719985157251358,
0.0251113660633564,
-0.015325751155614853,
-0.08189763128757477,
-0.007918181829154491,
0.14752081036567688,
0.15164786577224731,
0.0035195646341890097,
0.030779698863625526,
-0.058697644621133804,
-0.18513253331184387,
-2.1752160028085614e-32,
-0.04822305217385292,
-0.218641996383667,
-0.018724020570516586,
-0.09200970828533173,
-0.2217079997062683,
-0.03875243663787842,
-0.22815045714378357,
-0.015050049871206284,
0.03187931701540947,
0.05467040836811066,
-0.01738343946635723,
-0.1314058005809784,
-0.038339484483003616,
-0.01621970534324646,
-0.0027997458819299936,
0.16281718015670776,
0.054497409611940384,
0.24262729287147522,
-0.1704844832420349,
-0.04748415946960449,
-0.013437150046229362,
-0.0877065509557724,
-0.0774255320429802,
-0.009710155427455902,
0.05212828144431114,
-0.021407533437013626,
0.05654897168278694,
-0.07298655807971954,
0.026787474751472473,
0.05858871340751648,
0.010842012241482735,
0.041500404477119446,
0.15686266124248505,
0.00031719618709757924,
0.03379064425826073,
0.003137421328574419,
-0.037221044301986694,
0.036284904927015305,
0.0035973750054836273,
-0.13053381443023682,
0.050647005438804626,
-0.09490285813808441,
0.17592348158359528,
0.0012592668645083904,
0.1437993347644806,
0.10149558633565903,
0.02342522144317627,
-0.05622369423508644,
0.04654951021075249,
-0.22565463185310364,
-0.1281546950340271,
0.06699857860803604,
-0.08957012742757797,
-0.0020436812192201614,
-0.04364417865872383,
-0.14999938011169434,
0.029071124270558357,
0.0018645812524482608,
0.013851444236934185,
-0.16456440091133118,
0.11741280555725098,
0.1651984602212906,
-0.04669671505689621,
-0.16527162492275238,
-0.0547393336892128,
-0.02529534325003624,
0.1184539943933487,
0.12646494805812836,
0.21517831087112427,
-0.06898675858974457,
0.03501865267753601,
0.014725049957633018,
0.13699065148830414,
-0.017335737124085426,
0.013620835728943348,
0.049713101238012314,
-0.050760142505168915,
-0.023356877267360687,
0.0869176983833313,
-0.18037478625774384,
-0.01022411696612835,
-0.0825863778591156,
-0.12182316184043884,
0.05001512169837952,
-0.15120530128479004,
0.12771186232566833,
0.014486891217529774,
0.08598968386650085,
0.03771793842315674,
0.10133488476276398,
0.03593014180660248,
0.1478622853755951,
0.07049665600061417,
-0.06421905755996704,
0.014411327429115772,
-0.03183365613222122,
-0.09150435775518417,
0.03594789281487465,
-0.02788902260363102,
-0.011882237158715725,
0.06152363494038582,
-0.006147331092506647,
-0.01656847447156906,
0.14868447184562683,
0.15716828405857086,
-0.1602645218372345,
-0.15330053865909576,
-0.06992190331220627,
-0.07943850755691528,
-0.00420042360201478,
-0.028994806110858917,
0.09609635174274445,
0.03314100205898285,
0.10157206654548645,
0.16616202890872955,
0.06503336131572723,
-0.041608188301324844,
-0.04437851905822754,
0.13372386991977692,
-0.07632824033498764,
0.030253835022449493,
-0.050008710473775864,
0.13991780579090118,
0.029860472306609154,
0.0006653064046986401,
-0.005168963689357042,
-0.024753257632255554,
0.023584607988595963,
0.004272399935871363,
-0.17200031876564026,
0.04702683538198471,
-0.03584309294819832,
7.709852525294991e-7,
-0.2050522118806839,
0.13980050384998322,
-0.030448630452156067,
0.09949924051761627,
0.00956229493021965,
0.05059915408492088,
-0.01611713320016861,
-0.17894236743450165,
-0.09685239940881729,
-0.07916970551013947,
0.03130187466740608,
-0.03141127899289131,
0.08805078268051147,
-0.046739015728235245,
0.04295426979660988,
0.026467693969607353,
0.07167522609233856,
0.05584149807691574,
-0.14400549232959747,
0.0014742981875315309,
0.17163771390914917,
-0.030573580414056778,
-0.09175576269626617,
0.006260286085307598,
0.038659628480672836,
-0.13104751706123352,
-0.03330332413315773,
0.058418069034814835,
-0.009403886273503304,
-0.003735150443390012,
-0.11494748294353485,
-0.05608479306101799,
0.0315299928188324,
0.054854318499565125,
-0.024991953745484352,
0.019402068108320236,
-0.24146249890327454,
0.0078098648227751255,
0.3771608769893646,
-0.048464227467775345,
-0.13504987955093384,
-0.16570830345153809,
0.0038848379626870155,
0.03559853136539459,
0.03467313200235367,
-0.05299418419599533,
-0.1466023325920105,
0.11220677196979523,
0.038145214319229126,
-0.058628879487514496,
-0.04851820692420006,
0.11783614754676819,
0.002710481407120824,
0.049741897732019424,
-0.12513014674186707,
-0.04523997753858566,
0.16748233139514923,
-0.05038018524646759,
-0.1299310326576233,
-0.025820797309279442,
-0.13780128955841064,
-0.04148736596107483,
0.14406591653823853,
-0.13803991675376892,
-0.02927013486623764,
-0.03360991179943085,
-0.009013663046061993,
2.6101229874522424e-34,
-0.038480665534734726,
-0.025969577953219414,
0.22521336376667023,
-0.16512805223464966,
-0.10031973570585251,
-0.015047944150865078,
-0.009970633313059807,
-0.044865142554044724,
0.05513620749115944,
-0.007579529657959938,
-0.045341454446315765
] |
https://github.com/huggingface/datasets/issues/2441 | DuplicatedKeysError on personal dataset | Hi ! In your dataset script you must be yielding examples like
```python
for line in file:
...
yield key, {...}
```
Since `datasets` 1.7.0 we enforce the keys to be unique.
However it looks like your examples generator creates duplicate keys: at least two examples have key 0.
You can fix that by making sure that your keys are unique.
For example if you use a counter to define the key of each example, make sure that your counter is not reset to 0 in during examples generation (between two open files for examples).
Let me know if you have other questions :) | ## Describe the bug
Ever since today, I have been getting a DuplicatedKeysError while trying to load my dataset from my own script.
Error returned when running this line: `dataset = load_dataset('/content/drive/MyDrive/Thesis/Datasets/book_preprocessing/goodreads_maharjan_trimmed_and_nered/goodreadsnered.py')`
Note that my script was working fine with earlier versions of the Datasets library. Cannot say with 100% certainty if I have been doing something wrong with my dataset script this whole time or if this is simply a bug with the new version of datasets.
## Steps to reproduce the bug
I cannot provide code to reproduce the error as I am working with my own dataset. I can however provide my script if requested.
## Expected results
For my data to be loaded.
## Actual results
**DuplicatedKeysError** exception is raised
```
Downloading and preparing dataset good_reads_practice_dataset/main_domain (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/good_reads_practice_dataset/main_domain/1.1.0/64ff7c3fee2693afdddea75002eb6887d4fedc3d812ae3622128c8504ab21655...
---------------------------------------------------------------------------
DuplicatedKeysError Traceback (most recent call last)
<ipython-input-6-c342ea0dae9d> in <module>()
----> 1 dataset = load_dataset('/content/drive/MyDrive/Thesis/Datasets/book_preprocessing/goodreads_maharjan_trimmed_and_nered/goodreadsnered.py')
5 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, **config_kwargs)
749 try_from_hf_gcs=try_from_hf_gcs,
750 base_path=base_path,
--> 751 use_auth_token=use_auth_token,
752 )
753
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
573 if not downloaded_from_gcs:
574 self._download_and_prepare(
--> 575 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
576 )
577 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
650 try:
651 # Prepare split will record examples associated to the split
--> 652 self._prepare_split(split_generator, **prepare_split_kwargs)
653 except OSError as e:
654 raise OSError(
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _prepare_split(self, split_generator)
990 writer.write(example, key)
991 finally:
--> 992 num_examples, num_bytes = writer.finalize()
993
994 split_generator.split_info.num_examples = num_examples
/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in finalize(self, close_stream)
407 # In case current_examples < writer_batch_size, but user uses finalize()
408 if self._check_duplicates:
--> 409 self.check_duplicate_keys()
410 # Re-intializing to empty list for next batch
411 self.hkey_record = []
/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in check_duplicate_keys(self)
347 for hash, key in self.hkey_record:
348 if hash in tmp_record:
--> 349 raise DuplicatedKeysError(key)
350 else:
351 tmp_record.add(hash)
DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 0
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: Windows-10-10.0.19041-SP0
- Python version: 3.7.9
- PyArrow version: 3.0.0
| 104 | DuplicatedKeysError on personal dataset
## Describe the bug
Ever since today, I have been getting a DuplicatedKeysError while trying to load my dataset from my own script.
Error returned when running this line: `dataset = load_dataset('/content/drive/MyDrive/Thesis/Datasets/book_preprocessing/goodreads_maharjan_trimmed_and_nered/goodreadsnered.py')`
Note that my script was working fine with earlier versions of the Datasets library. Cannot say with 100% certainty if I have been doing something wrong with my dataset script this whole time or if this is simply a bug with the new version of datasets.
## Steps to reproduce the bug
I cannot provide code to reproduce the error as I am working with my own dataset. I can however provide my script if requested.
## Expected results
For my data to be loaded.
## Actual results
**DuplicatedKeysError** exception is raised
```
Downloading and preparing dataset good_reads_practice_dataset/main_domain (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /root/.cache/huggingface/datasets/good_reads_practice_dataset/main_domain/1.1.0/64ff7c3fee2693afdddea75002eb6887d4fedc3d812ae3622128c8504ab21655...
---------------------------------------------------------------------------
DuplicatedKeysError Traceback (most recent call last)
<ipython-input-6-c342ea0dae9d> in <module>()
----> 1 dataset = load_dataset('/content/drive/MyDrive/Thesis/Datasets/book_preprocessing/goodreads_maharjan_trimmed_and_nered/goodreadsnered.py')
5 frames
/usr/local/lib/python3.7/dist-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, **config_kwargs)
749 try_from_hf_gcs=try_from_hf_gcs,
750 base_path=base_path,
--> 751 use_auth_token=use_auth_token,
752 )
753
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs)
573 if not downloaded_from_gcs:
574 self._download_and_prepare(
--> 575 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
576 )
577 # Sync info
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
650 try:
651 # Prepare split will record examples associated to the split
--> 652 self._prepare_split(split_generator, **prepare_split_kwargs)
653 except OSError as e:
654 raise OSError(
/usr/local/lib/python3.7/dist-packages/datasets/builder.py in _prepare_split(self, split_generator)
990 writer.write(example, key)
991 finally:
--> 992 num_examples, num_bytes = writer.finalize()
993
994 split_generator.split_info.num_examples = num_examples
/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in finalize(self, close_stream)
407 # In case current_examples < writer_batch_size, but user uses finalize()
408 if self._check_duplicates:
--> 409 self.check_duplicate_keys()
410 # Re-intializing to empty list for next batch
411 self.hkey_record = []
/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in check_duplicate_keys(self)
347 for hash, key in self.hkey_record:
348 if hash in tmp_record:
--> 349 raise DuplicatedKeysError(key)
350 else:
351 tmp_record.add(hash)
DuplicatedKeysError: FAILURE TO GENERATE DATASET !
Found duplicate Key: 0
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: Windows-10-10.0.19041-SP0
- Python version: 3.7.9
- PyArrow version: 3.0.0
Hi ! In your dataset script you must be yielding examples like
```python
for line in file:
...
yield key, {...}
```
Since `datasets` 1.7.0 we enforce the keys to be unique.
However it looks like your examples generator creates duplicate keys: at least two examples have key 0.
You can fix that by making sure that your keys are unique.
For example if you use a counter to define the key of each example, make sure that your counter is not reset to 0 in during examples generation (between two open files for examples).
Let me know if you have other questions :) | [
0.1881910264492035,
0.03315470740199089,
-0.05581088364124298,
0.07876206189393997,
0.19226141273975372,
0.06479086726903915,
0.0686350017786026,
0.100152887403965,
-0.03299771621823311,
0.2141568809747696,
-0.05896316468715668,
-0.11060714721679688,
-0.00442066416144371,
-0.06370530277490616,
0.0801895260810852,
0.09532362967729568,
-0.006541822571307421,
0.043428923934698105,
-0.11313173919916153,
-0.0685867965221405,
-0.1394074261188507,
0.0831834003329277,
0.19357164204120636,
-0.04681742936372757,
-0.07291693240404129,
-0.059819456189870834,
-0.06511670351028442,
-0.006854332983493805,
0.05053626745939255,
-0.17563295364379883,
0.16131889820098877,
-0.022356972098350525,
0.008985817432403564,
0.28306132555007935,
0.000005663525371346623,
0.05441131815314293,
0.15048985183238983,
-0.047269921749830246,
-0.11043938994407654,
-0.034699421375989914,
0.15876437723636627,
0.0362575501203537,
0.1268172264099121,
-0.11234063655138016,
-0.009773163124918938,
-0.11627759784460068,
-0.20202869176864624,
-0.01472680177539587,
0.12251689285039902,
0.08522968739271164,
0.047371916472911835,
0.029258189722895622,
0.0007055854075588286,
-0.1392756849527359,
0.08024775981903076,
-0.00009500543092144653,
-0.014015582390129566,
0.15172691643238068,
-0.11464983224868774,
-0.06213395670056343,
-0.06289490312337875,
0.08134079724550247,
0.007576048374176025,
0.08624815195798874,
-0.1352403610944748,
0.0436217337846756,
-0.03865518420934677,
-0.1012902557849884,
0.1094231903553009,
0.26847967505455017,
0.02869448997080326,
-0.026799703016877174,
0.04225872829556465,
-0.054329752922058105,
-0.04793493077158928,
-0.13727906346321106,
-0.024533096700906754,
0.04023479297757149,
-0.13161742687225342,
0.08219388872385025,
-0.08463502675294876,
0.08820059150457382,
0.025240067392587662,
-0.06318875402212143,
-0.09628963470458984,
-0.18917995691299438,
-0.15035869181156158,
0.09382042288780212,
0.042951278388500214,
-0.058730386197566986,
0.08286330848932266,
-0.059517133980989456,
-0.17960397899150848,
-0.11394646763801575,
0.020613647997379303,
-0.046375203877687454,
-0.05831126123666763,
-0.12660366296768188,
0.009588406421244144,
-0.005420658737421036,
-0.06716706603765488,
-0.07373545318841934,
-0.048940133303403854,
-0.03315574303269386,
0.1131984293460846,
0.029968539252877235,
-0.0037998922634869814,
-0.05631224811077118,
0.1642942875623703,
0.0013577145291492343,
-0.06744800508022308,
0.06303251534700394,
0.08827756345272064,
0.023663971573114395,
0.18940088152885437,
-0.048882871866226196,
0.23669812083244324,
0.08405795693397522,
0.03229982778429985,
0.08527373522520065,
0.09800519794225693,
-0.01023832056671381,
-0.08831743896007538,
0.1777910441160202,
0.13488979637622833,
-0.09518707543611526,
-0.03413406014442444,
0.03692870959639549,
-0.10827915370464325,
0.019430719316005707,
0.05717848613858223,
-0.024591751396656036,
0.029654160141944885,
0.09637060016393661,
0.07857055217027664,
-0.2058037370443344,
-0.05472302809357643,
0.10595878213644028,
-0.1170840859413147,
-0.0940893292427063,
0.021306948736310005,
-0.11778494715690613,
-0.11828073859214783,
0.07281120121479034,
0.12012460082769394,
0.1793307065963745,
0.13868379592895508,
-0.048193853348493576,
0.030318569391965866,
-0.003210066817700863,
-0.1878756433725357,
0.11690131574869156,
-0.17538829147815704,
0.1997448056936264,
0.114449143409729,
0.12560386955738068,
0.03648084029555321,
0.04668964818120003,
-0.15240702033042908,
-0.17164932191371918,
0.06707782298326492,
0.038259755820035934,
-0.04516677185893059,
-0.09002353250980377,
-0.052299611270427704,
0.13385909795761108,
0.12111660838127136,
0.004222290590405464,
-0.15242134034633636,
-0.05251280590891838,
-0.042075153440237045,
-0.010689152404665947,
-0.2122180014848709,
0.18114612996578217,
-0.2936573624610901,
0.06336984038352966,
-0.09707143157720566,
0.03422582149505615,
-0.31732335686683655,
0.15796758234500885,
0.03892941772937775,
-0.05780859291553497,
0.013706967234611511,
-0.1999758929014206,
0.18004821240901947,
-0.09081107378005981,
-0.06564023345708847,
-0.1752236932516098,
0.02116682566702366,
-0.05622429773211479,
-0.043149497359991074,
0.15040460228919983,
-0.029677031561732292,
-0.00848128367215395,
-0.015756361186504364,
-0.10490479320287704,
0.1237344890832901,
-0.16001471877098083,
-0.017742009833455086,
-0.3533565104007721,
0.03544372320175171,
-0.010227754712104797,
-0.04617438465356827,
0.07212898135185242,
-0.040186576545238495,
0.0929621160030365,
-0.11148779839277267,
0.18942010402679443,
0.015313842333853245,
-0.08937610685825348,
-0.18131493031978607,
-0.06496452540159225,
-0.02702614851295948,
0.04967439919710159,
-0.23457112908363342,
-0.015990139916539192,
-0.15467840433120728,
0.011972968466579914,
-0.05077234283089638,
0.20856434106826782,
-0.005959702655673027,
0.11931203305721283,
0.08359159529209137,
-0.009174404665827751,
-0.14344434440135956,
0.05398857593536377,
-0.055631350725889206,
-0.028849301859736443,
0.024456633254885674,
-0.03583940491080284,
-0.08358410745859146,
-0.01768549531698227,
0.010596908628940582,
0.07394083589315414,
0.0008335502934642136,
0.008080956526100636,
-0.006260779686272144,
-0.23464377224445343,
0.1865992695093155,
-0.03214775770902634,
-0.022320643067359924,
0.025196608155965805,
-0.000658897333778441,
-0.10090363770723343,
-0.08952701836824417,
0.10569626837968826,
-0.05628098547458649,
0.1525280773639679,
-0.013573096133768559,
-0.053573645651340485,
0.10476578772068024,
0.03137032315135002,
-0.1288195103406906,
0.0005079348338767886,
-0.06833980977535248,
-0.020046904683113098,
0.01906193606555462,
0.2595815062522888,
-0.017033763229846954,
0.02531985379755497,
0.12052985280752182,
-0.052625373005867004,
0.06684477627277374,
-0.02099865861237049,
-0.00897267833352089,
-0.015606601722538471,
-0.054494619369506836,
0.14456719160079956,
-0.021803811192512512,
0.12013561278581619,
0.13124628365039825,
0.028682544827461243,
-0.11555057764053345,
-0.039219580590724945,
0.0004334698896855116,
-0.0868944376707077,
-0.08203722536563873,
0.1228659451007843,
-0.0028904809150844812,
-0.002499483060091734,
-0.17287002503871918,
0.10185354948043823,
0.1319260150194168,
-0.006514932494610548,
0.05382218211889267,
0.0948890894651413,
-0.15660057961940765,
-0.07725819200277328,
-0.14660951495170593,
0.16865772008895874,
0.09715882688760757,
-0.011788430623710155,
-0.059342652559280396,
-0.09449820220470428,
0.10394987463951111,
0.02109455317258835,
0.1097874566912651,
-0.08328969031572342,
-0.13812227547168732,
0.008748010732233524,
0.030147844925522804,
-0.04372311383485794,
0.025596803054213524,
-0.005111184902489185,
0.13438934087753296,
0.011835972778499126,
0.1364906132221222,
0.17375072836875916,
-0.09250304847955704,
-0.2491060048341751,
0.0777493491768837,
-0.0917247086763382,
0.09446632862091064,
0.1906440556049347,
0.1287224441766739,
0.03715819492936134,
-0.031652435660362244,
-0.25326457619667053,
0.059510864317417145,
0.05512887239456177,
-0.013227581046521664,
0.1661977916955948,
-0.15337587893009186,
0.003284202190116048,
-0.0075882296077907085,
-0.07762382179498672,
-0.032389864325523376,
0.1358286291360855,
-0.08463512361049652,
-0.08801427483558655,
-0.049846384674310684,
0.015475001186132431,
-0.08572433888912201,
-0.2807121276855469,
0.0448540523648262,
-0.15595988929271698,
-0.16678984463214874,
0.042700037360191345,
0.19338072836399078,
-0.024295685812830925,
0.04464508965611458,
-0.00848357006907463,
-0.18480569124221802,
-0.028318362310528755,
0.09814893454313278,
-0.2234015315771103,
-0.041453924030065536,
-0.09065861254930496,
0.10352283716201782,
-0.11634618043899536,
0.058532632887363434,
0.07681560516357422,
0.007768688257783651,
-0.11594758927822113,
0.02958088181912899,
0.05721165984869003,
-0.05725105106830597,
0.007436088286340237,
-0.1054384857416153,
0.03277137503027916,
0.16184259951114655,
0.037857748568058014,
0.04012005776166916,
0.13907122611999512,
0.03505687788128853,
0.10597480833530426,
0.06795468926429749,
-0.009481595829129219,
0.0043009622022509575,
-0.14873981475830078,
-0.042608439922332764,
-0.12755949795246124,
-0.024416346102952957,
0.0572558268904686,
-0.04931323975324631,
-0.01894090510904789,
0.03977734595537186,
-0.1149100810289383,
-0.023884350433945656,
-0.06540244072675705,
-0.07301724702119827,
-0.05768377333879471,
-0.0868680328130722,
0.08116196095943451,
0.15227223932743073,
0.09101400524377823,
0.09879576414823532,
0.10445231199264526,
-0.19840514659881592,
-0.04300042986869812,
0.07641246169805527,
-0.06355942785739899,
-0.06692568957805634,
-0.012752814218401909,
-0.05166546255350113,
-0.07997731119394302,
0.10464421659708023,
0.16010992228984833,
0.15773561596870422,
-0.027998769655823708,
-0.07941774278879166,
0.19764168560504913,
-0.01857159473001957,
0.042858123779296875,
0.09844338148832321,
-0.09734275937080383,
0.03158389404416084,
-0.00821904931217432,
0.0807722881436348,
0.02990785986185074,
0.029852038249373436,
0.002109840512275696,
0.05604008585214615,
0.05583063140511513,
0.22649702429771423,
0.046266891062259674,
-0.14501452445983887,
-0.25400540232658386,
0.06264451146125793,
-0.20487214624881744,
-0.18556812405586243,
-0.10765554010868073,
-0.005369255784898996,
0.05599631369113922,
-0.01273244060575962,
0.009724495001137257,
0.06443171948194504,
-0.05851488187909126,
0.09452471882104874,
0.024877462536096573,
0.08631119877099991,
0.08889632672071457,
0.2780708968639374,
0.0852772668004036,
0.12406549602746964,
-0.00025512356660328805,
0.4153744876384735,
-0.13184688985347748,
-0.04391155391931534,
-0.030240362510085106,
-0.14195825159549713,
-0.01325282920151949,
-0.05378563329577446,
-0.05733858793973923,
0.18746492266654968,
-0.05664392560720444,
-0.11741195619106293,
-0.019797969609498978,
0.07516348361968994,
-0.05492125451564789,
-0.14199267327785492,
-0.2040930539369583,
-0.07896120101213455,
-0.16913668811321259,
0.1393788903951645,
-0.0005581543082371354,
0.2192753702402115,
-0.2484755516052246,
-0.03817612677812576,
0.030432822182774544,
-0.2187289446592331,
-0.05713457986712456,
-0.04881259426474571,
0.14566166698932648,
0.025567300617694855,
-0.04713903367519379,
0.11563342809677124,
-0.07361394166946411,
0.04042739048600197,
-0.049629535526037216,
-0.1634099930524826,
0.0978824719786644,
-0.02310200221836567,
-0.01101786270737648,
0.09916233271360397,
0.06282101571559906,
0.030991103500127792,
0.020930882543325424,
-0.08093370497226715,
-0.12150325626134872,
0.28138118982315063,
0.054341960698366165,
-0.02406846545636654,
-0.12554919719696045,
-0.00897927675396204,
0.003114229068160057,
0.1539459079504013,
-0.031065361574292183,
-0.03297745808959007,
0.05869980528950691,
-0.0051615238189697266,
-0.05264342576265335,
-0.06707889586687088,
-0.0007370818639174104,
0.12167146801948547,
-0.047569576650857925,
-0.10498331487178802,
0.06214964762330055,
-0.003921242896467447,
0.23842139542102814,
0.05867132171988487,
-0.0887487530708313,
0.04528119042515755,
0.01665928214788437,
0.08802138268947601,
-0.22471679747104645,
-0.07575859129428864,
-0.09426340460777283,
0.009832724928855896,
-0.2055477797985077,
-0.0662464052438736,
0.06862455606460571,
-0.04261242598295212,
-0.15591953694820404,
0.13514672219753265,
-0.16080018877983093,
-0.09584350138902664,
0.07221740484237671,
0.012590289115905762,
0.1193685531616211,
-0.021303607150912285,
-0.15526187419891357,
0.030550425872206688,
-0.06643261760473251,
0.16733257472515106,
-0.03671979531645775,
-0.10605897754430771,
-0.032572075724601746,
0.08196034282445908,
0.15449216961860657,
-0.1348782628774643,
0.1643371433019638,
0.07458741217851639,
-0.04874083399772644,
-0.07055946439504623,
0.13570161163806915,
0.18153630197048187,
-0.10107014328241348,
0.07171853631734848,
-0.03349645063281059,
0.0630580484867096,
-0.10539134591817856,
-0.08613448590040207,
0.0936015322804451,
0.030405420809984207,
0.04191610589623451,
0.04529966041445732,
0.009791625663638115,
-0.2141631692647934,
-0.051479142159223557,
0.195076122879982,
0.2764904201030731,
0.1484028548002243,
-0.05136071518063545,
0.16332344710826874,
-2.4301749969669553e-32,
0.10544133186340332,
0.06068536639213562,
-0.10541489720344543,
-0.003266948042437434,
-0.23599211871623993,
-0.02997155673801899,
-0.10767757892608643,
-0.03285623714327812,
-0.008571362122893333,
-0.08724739402532578,
-0.05352324992418289,
-0.06787076592445374,
0.08819155395030975,
-0.068304143846035,
0.021472234278917313,
-0.026837732642889023,
-0.09036025404930115,
0.21377912163734436,
0.016267238184809685,
0.18789777159690857,
0.21554818749427795,
0.1289186179637909,
0.07327280938625336,
-0.012991453520953655,
-0.09484129399061203,
-0.067996546626091,
-0.035856518894433975,
-0.11500800400972366,
-0.006038735620677471,
0.06814954429864883,
-0.02839694172143936,
0.13900594413280487,
0.11941361427307129,
-0.11710518598556519,
-0.13326962292194366,
-0.029178399592638016,
-0.10020483285188675,
-0.22799769043922424,
-0.18876829743385315,
-0.016059545800089836,
0.048993829637765884,
0.13194946944713593,
0.18863289058208466,
-0.22809334099292755,
-0.1081029549241066,
0.03127862885594368,
-0.0341300331056118,
-0.02124137431383133,
-0.19774608314037323,
-0.077985979616642,
0.0765894427895546,
0.016898659989237785,
0.06825524568557739,
0.12671546638011932,
0.040522001683712006,
-0.14643585681915283,
-0.0994609147310257,
0.12265671044588089,
-0.10397522896528244,
0.05913807824254036,
0.1354169100522995,
-0.008725030347704887,
-0.12471524626016617,
-0.011824004352092743,
0.03997782617807388,
0.09384694695472717,
0.33819353580474854,
-0.08546437323093414,
0.1641237586736679,
-0.07509429007768631,
0.000002910845068981871,
0.07372476905584335,
-0.1286354809999466,
0.129453644156456,
-0.15251955389976501,
-0.15147513151168823,
-0.08284744620323181,
0.08642151951789856,
-0.07359084486961365,
-0.14850392937660217,
-0.04555836692452431,
-0.13929809629917145,
-0.017072012647986412,
-0.0670938491821289,
-0.13008542358875275,
0.16514253616333008,
0.02711009979248047,
0.10547012835741043,
-0.0021821525879204273,
-0.1702025830745697,
-0.002047688467428088,
0.10598176717758179,
-0.05531229078769684,
-0.18296082317829132,
-0.1646903157234192,
0.056090325117111206,
0.01160865556448698,
0.09520167112350464,
-0.11577755212783813,
0.041493646800518036,
0.1380828619003296,
-0.005875139031559229,
0.004953824914991856,
-0.0016405810602009296,
0.04915110394358635,
0.046174246817827225,
0.08685058355331421,
-0.021409472450613976,
-0.1814061552286148,
0.031435687094926834,
0.050782158970832825,
-0.15182816982269287,
0.16354694962501526,
0.20420558750629425,
0.13588206470012665,
-0.01952725648880005,
0.0392131470143795,
0.0035822123754769564,
0.16564753651618958,
0.04394577816128731,
-0.07650051265954971,
-0.14102141559123993,
-0.14089268445968628,
0.04232315346598625,
-0.06831829249858856,
0.2125099152326584,
-0.1941521167755127,
-0.08734514564275742,
0.15763899683952332,
-0.018848519772291183,
0.040648795664310455,
-0.18391522765159607,
7.556756145277177e-7,
-0.22953569889068604,
0.014766344800591469,
0.022731173783540726,
-0.15708570182323456,
-0.10119429975748062,
0.08252871036529541,
-0.2386275976896286,
0.036630261689424515,
-0.18361234664916992,
0.2000485509634018,
0.09937936067581177,
0.04049782454967499,
0.06658339500427246,
-0.0737922266125679,
0.13778696954250336,
0.0920732244849205,
-0.1347186416387558,
0.06461513042449951,
-0.08549825847148895,
0.13914576172828674,
0.025239575654268265,
0.057116854935884476,
0.0658343955874443,
-0.04338473081588745,
0.07271111756563187,
-0.05169212445616722,
-0.09960835427045822,
-0.055907703936100006,
0.06677064299583435,
0.12744130194187164,
-0.006428035907447338,
0.005088465753942728,
0.1112561747431755,
0.10614196211099625,
0.017362480983138084,
-0.042061250656843185,
-0.1030128225684166,
-0.13601692020893097,
0.020757557824254036,
0.06974490731954575,
0.15363994240760803,
0.033815156668424606,
0.025743963196873665,
-0.10974257439374924,
0.12138011306524277,
0.11515447497367859,
0.009916912764310837,
0.06456860154867172,
0.03901677951216698,
0.04601427912712097,
0.07888246327638626,
0.09700918197631836,
0.0642562061548233,
0.28700101375579834,
-0.06660488247871399,
0.061357833445072174,
0.039851415902376175,
-0.1203460693359375,
0.1199885755777359,
-0.05124679207801819,
-0.05661642178893089,
-0.11862535029649734,
0.054312851279973984,
-0.0053811813704669476,
0.18717174232006073,
-0.18147069215774536,
-0.0006423302693292499,
1.1920245105419855e-34,
-0.07469108700752258,
0.1162564605474472,
0.06201762706041336,
-0.20418962836265564,
0.021741893142461777,
-0.059599053114652634,
0.09955121576786041,
0.10088637471199036,
-0.0059472061693668365,
-0.07442456483840942,
-0.08642251044511795
] |
https://github.com/huggingface/datasets/issues/2440 | Remove `extended` field from dataset tagger | The tagger also doesn't insert the value for the `size_categories` field automatically, so this should be fixed too | ## Describe the bug
While working on #2435 I used the [dataset tagger](https://huggingface.co/datasets/tagging/) to generate the missing tags for the YAML metadata of each README.md file. However, it seems that our CI raises an error when the `extended` field is included:
```
dataset_name = 'arcd'
@pytest.mark.parametrize("dataset_name", get_changed_datasets(repo_path))
def test_changed_dataset_card(dataset_name):
card_path = repo_path / "datasets" / dataset_name / "README.md"
assert card_path.exists()
error_messages = []
try:
ReadMe.from_readme(card_path)
except Exception as readme_error:
error_messages.append(f"The following issues have been found in the dataset cards:\nREADME:\n{readme_error}")
try:
DatasetMetadata.from_readme(card_path)
except Exception as metadata_error:
error_messages.append(
f"The following issues have been found in the dataset cards:\nYAML tags:\n{metadata_error}"
)
if error_messages:
> raise ValueError("\n".join(error_messages))
E ValueError: The following issues have been found in the dataset cards:
E YAML tags:
E __init__() got an unexpected keyword argument 'extended'
tests/test_dataset_cards.py:70: ValueError
```
Consider either removing this tag from the tagger or including it as part of the validation step in the CI.
cc @yjernite | 18 | Remove `extended` field from dataset tagger
## Describe the bug
While working on #2435 I used the [dataset tagger](https://huggingface.co/datasets/tagging/) to generate the missing tags for the YAML metadata of each README.md file. However, it seems that our CI raises an error when the `extended` field is included:
```
dataset_name = 'arcd'
@pytest.mark.parametrize("dataset_name", get_changed_datasets(repo_path))
def test_changed_dataset_card(dataset_name):
card_path = repo_path / "datasets" / dataset_name / "README.md"
assert card_path.exists()
error_messages = []
try:
ReadMe.from_readme(card_path)
except Exception as readme_error:
error_messages.append(f"The following issues have been found in the dataset cards:\nREADME:\n{readme_error}")
try:
DatasetMetadata.from_readme(card_path)
except Exception as metadata_error:
error_messages.append(
f"The following issues have been found in the dataset cards:\nYAML tags:\n{metadata_error}"
)
if error_messages:
> raise ValueError("\n".join(error_messages))
E ValueError: The following issues have been found in the dataset cards:
E YAML tags:
E __init__() got an unexpected keyword argument 'extended'
tests/test_dataset_cards.py:70: ValueError
```
Consider either removing this tag from the tagger or including it as part of the validation step in the CI.
cc @yjernite
The tagger also doesn't insert the value for the `size_categories` field automatically, so this should be fixed too | [
0.004657789133489132,
-0.035203564912080765,
-0.13888709247112274,
-0.009076649323105812,
0.32449138164520264,
0.1630793809890747,
0.11549021303653717,
-0.0048125614412128925,
-0.12119737267494202,
0.1949767917394638,
0.09747090935707092,
0.19378452003002167,
-0.0766613557934761,
0.20749491453170776,
-0.01888381317257881,
0.054977163672447205,
-0.03931979835033417,
-0.070478655397892,
0.15608952939510345,
0.10647512972354889,
-0.09851860255002975,
0.018491389229893684,
0.1162724643945694,
-0.05350171774625778,
-0.07858972996473312,
0.11584749817848206,
-0.0979398787021637,
0.13498805463314056,
-0.10503613948822021,
-0.1606312245130539,
0.2882729470729828,
0.05822311341762543,
0.08173754066228867,
0.055503323674201965,
0.000005593350124399876,
0.1371288299560547,
0.10848309844732285,
-0.059587545692920685,
0.07223483175039291,
-0.16597329080104828,
0.001774104661308229,
0.042471323162317276,
0.09358217567205429,
-0.060682427138090134,
0.029926499351859093,
-0.038879089057445526,
-0.11671081185340881,
0.0910552442073822,
-0.08354364335536957,
0.008546868339180946,
-0.07259487360715866,
-0.05527717247605324,
-0.029468996450304985,
-0.20754489302635193,
0.11138162761926651,
0.15509352087974548,
0.052267882972955704,
0.057760149240493774,
0.01361658051609993,
0.0306619293987751,
-0.046437229961156845,
0.07807077467441559,
0.009679912589490414,
-0.03306344896554947,
0.04613170772790909,
-0.07224670052528381,
-0.07164204120635986,
-0.2153014987707138,
0.1866619884967804,
0.00996172521263361,
0.08272728323936462,
-0.08254965394735336,
-0.02913830243051052,
-0.08531740307807922,
-0.012891791760921478,
-0.006820483133196831,
0.04535124823451042,
-0.14537349343299866,
0.023770639672875404,
0.05380917340517044,
-0.05667368322610855,
-0.14860783517360687,
0.038058456033468246,
0.014447980560362339,
-0.05943986400961876,
0.37184229493141174,
0.041911009699106216,
0.16101107001304626,
-0.03228545933961868,
-0.12571224570274353,
-0.07362369447946548,
-0.05176809802651405,
-0.17924943566322327,
-0.010258129797875881,
0.02062753587961197,
-0.02313373237848282,
-0.09255506843328476,
-0.16924431920051575,
-0.0009603977086953819,
0.06534015387296677,
-0.08240126073360443,
0.009451532736420631,
-0.0963735431432724,
0.07376252114772797,
-0.04014839977025986,
0.001218469929881394,
0.05013089254498482,
-0.003943001385778189,
-0.029106339439749718,
0.11299952864646912,
-0.018761301413178444,
0.13274717330932617,
0.019014248624444008,
-0.10853323340415955,
0.02056444063782692,
0.07876787334680557,
0.03503447398543358,
0.15628167986869812,
-0.1641821563243866,
-0.049784738570451736,
0.03258248791098595,
0.06262853741645813,
0.013991749845445156,
0.06677240878343582,
0.054909396916627884,
-0.08951696008443832,
-0.06838897615671158,
0.02693672850728035,
0.12145858258008957,
0.11759775131940842,
-0.07332619279623032,
0.16562576591968536,
-0.024473415687680244,
-0.10347900539636612,
0.15789367258548737,
0.0654873251914978,
0.08934752643108368,
-0.07947907596826553,
0.05341068282723427,
0.014239770360291004,
0.008766782470047474,
0.07581926137208939,
0.21688614785671234,
0.12532679736614227,
-0.006273859646171331,
-0.10028944164514542,
0.13218237459659576,
-0.0948745608329773,
-0.0679960772395134,
-0.10850170254707336,
-0.07267327606678009,
0.08384079486131668,
-0.25052011013031006,
0.1010984256863594,
0.07066558301448822,
0.014642502181231976,
-0.13820083439350128,
0.08381658047437668,
-0.14666742086410522,
-0.16261374950408936,
0.19892536103725433,
-0.1786954402923584,
0.13449518382549286,
0.06261336803436279,
-0.032412391155958176,
-0.00833877082914114,
0.09389393776655197,
-0.11844232678413391,
-0.09322278946638107,
-0.14555178582668304,
0.07756160199642181,
-0.1019064262509346,
-0.22882996499538422,
-0.09930568933486938,
-0.158343106508255,
0.0659550130367279,
-0.01964210346341133,
-0.1589892953634262,
-0.14097268879413605,
-0.18552084267139435,
0.08207115530967712,
-0.01770452782511711,
0.0027056513354182243,
-0.12553031742572784,
0.05679212883114815,
0.12185364961624146,
-0.0602792352437973,
-0.02310517057776451,
-0.15926095843315125,
-0.08139720559120178,
-0.10742002725601196,
-0.026961728930473328,
0.1676807701587677,
0.004338016267865896,
0.009031633846461773,
-0.09915134310722351,
0.008892516605556011,
0.07592634856700897,
0.13239233195781708,
-0.0685541033744812,
0.07803498953580856,
-0.1180676594376564,
0.005934515502303839,
-0.055385809391736984,
0.15156401693820953,
-0.2252764254808426,
-0.24478906393051147,
0.000553324178326875,
-0.1216425895690918,
-0.06832242757081985,
-0.16834601759910583,
-0.06442894041538239,
-0.0379057414829731,
-0.02906072698533535,
-0.12174307554960251,
-0.11143364012241364,
0.047600049525499344,
-0.033215560019016266,
0.07969980686903,
-0.0474591962993145,
-0.11381617933511734,
-0.062491849064826965,
-0.006579314358532429,
0.0888427123427391,
-0.05642193183302879,
-0.09779270738363266,
-0.09593869000673294,
0.0008040113025344908,
-0.054475657641887665,
0.012582940980792046,
0.014490088447928429,
-0.06088974326848984,
0.07981378585100174,
0.1332968920469284,
-0.10221843421459198,
0.04877586290240288,
0.07510863989591599,
-0.07236895710229874,
0.23217307031154633,
0.018654754385352135,
-0.14851497113704681,
-0.03452356904745102,
-0.011030027642846107,
-0.005256392061710358,
-0.10612799972295761,
-0.07360491901636124,
-0.028128651902079582,
0.096343994140625,
0.06749285757541656,
-0.08688704669475555,
0.2218073457479477,
0.2029440701007843,
-0.1509791761636734,
-0.046513013541698456,
-0.09978476911783218,
-0.06772749125957489,
-0.008056246675550938,
0.043474096804857254,
0.056815601885318756,
-0.08063459396362305,
0.28352800011634827,
0.05169796198606491,
-0.24538204073905945,
-0.018614958971738815,
-0.05348113179206848,
-0.18700888752937317,
0.08496831357479095,
0.19621722400188446,
-0.05469707399606705,
0.3136858642101288,
0.2580828368663788,
0.13348150253295898,
0.08350255340337753,
-0.05011216178536415,
0.20984120666980743,
0.09200049936771393,
-0.08169334381818771,
0.15703968703746796,
0.0897744745016098,
0.018604248762130737,
-0.09679224342107773,
-0.07421493530273438,
0.10484281927347183,
-0.04270200431346893,
0.16383139789104462,
0.03305065631866455,
-0.20636218786239624,
-0.22593232989311218,
0.06638657301664352,
-0.1048411875963211,
-0.12807226181030273,
0.03194599598646164,
0.00820203311741352,
-0.11007779091596603,
-0.14880764484405518,
-0.024087700992822647,
-0.07148170471191406,
-0.11375097930431366,
-0.15576143562793732,
-0.048632606863975525,
-0.03655283525586128,
0.11079566925764084,
0.10585486143827438,
0.10514932125806808,
-0.05101336911320686,
-0.0257215965539217,
0.17889772355556488,
0.03816702961921692,
-0.17518073320388794,
-0.11062149703502655,
-0.19629989564418793,
0.15252821147441864,
-0.07276265323162079,
-0.010768420994281769,
0.1347431242465973,
-0.17266102135181427,
0.1506318747997284,
-0.21814778447151184,
0.08777890354394913,
0.08756325393915176,
-0.02901245653629303,
-0.03665943071246147,
-0.030063031241297722,
0.07974362373352051,
-0.04494621604681015,
-0.028413886204361916,
-0.04081897437572479,
-0.03402378037571907,
-0.006612672936171293,
0.13978157937526703,
-0.07644230872392654,
0.2420002818107605,
-0.1707766354084015,
-0.10183335095643997,
-0.1072644591331482,
-0.08539777994155884,
-0.08391696959733963,
-0.10944214463233948,
-0.04505644366145134,
0.02750350907444954,
0.054741181433200836,
0.2981441020965576,
0.012082979083061218,
0.20008887350559235,
0.12628468871116638,
0.026288829743862152,
-0.01690772920846939,
0.025651192292571068,
0.05185404419898987,
-0.1037943884730339,
0.0641387552022934,
0.014621980488300323,
0.148338183760643,
-0.005280633457005024,
-0.058941565454006195,
0.16227219998836517,
-0.11368166655302048,
0.030003610998392105,
-0.1867792159318924,
-0.03545469045639038,
0.05054803192615509,
0.13252203166484833,
0.044097427278757095,
-0.1678868979215622,
-0.01747388392686844,
0.11541833728551865,
-0.013722558505833149,
0.15671207010746002,
-0.0692501813173294,
-0.17383593320846558,
-0.0718277245759964,
-0.07880735397338867,
-0.05028490349650383,
0.07748442143201828,
-0.014411124400794506,
0.03227247670292854,
0.021895425394177437,
-0.024564707651734352,
0.20980703830718994,
-0.019151899963617325,
-0.03334464877843857,
-0.1676560491323471,
-0.01769726350903511,
0.09419193118810654,
-0.08383259177207947,
0.09876000136137009,
-0.0022458559833467007,
0.23875026404857635,
-0.09767783433198929,
0.1032354086637497,
-0.02159585990011692,
0.1007877066731453,
0.07063883543014526,
0.13875631988048553,
-0.06554053723812103,
0.009646001271903515,
-0.020537208765745163,
-0.0023387777619063854,
0.15089119970798492,
0.02457181178033352,
-0.025141261518001556,
0.020740322768688202,
-0.010960155166685581,
0.016932742670178413,
0.1877603679895401,
0.015742158517241478,
0.05799475312232971,
-0.0020526936277747154,
0.020176244899630547,
0.023549720644950867,
0.1421816349029541,
0.1456027626991272,
0.027510693296790123,
-0.021555807441473007,
0.211394265294075,
0.11496938765048981,
-0.004137060604989529,
0.06568167358636856,
-0.023274220526218414,
-0.16467957198619843,
-0.2416047900915146,
-0.09562169760465622,
0.2029130458831787,
0.12206566333770752,
0.06652852892875671,
-0.030830051749944687,
-0.13989588618278503,
-0.09654673933982849,
0.15262356400489807,
0.11078523844480515,
0.0241139754652977,
0.09399416297674179,
-0.024432817474007607,
-0.18509265780448914,
0.11020417511463165,
0.16728933155536652,
0.1347564458847046,
-0.04234808683395386,
-0.24738727509975433,
-0.09290234744548798,
-0.1823454350233078,
0.1496441513299942,
-0.0020367195829749107,
-0.1568940281867981,
0.18148589134216309,
-0.2236880213022232,
0.052336838096380234,
0.039019543677568436,
0.09979359060525894,
0.028042340651154518,
-0.2300681471824646,
-0.12943941354751587,
-0.12999440729618073,
-0.15407200157642365,
0.1062861755490303,
-0.027083564549684525,
0.13849228620529175,
-0.07126929610967636,
-0.24311262369155884,
-0.019858526065945625,
-0.0668705552816391,
-0.01943252421915531,
0.1252143681049347,
0.006126148626208305,
-0.020158935338258743,
0.11583530157804489,
0.16118858754634857,
-0.23560824990272522,
0.06905002892017365,
0.017829300835728645,
-0.03442176803946495,
0.021124618127942085,
0.04890632629394531,
0.17769993841648102,
0.17316290736198425,
0.12634451687335968,
-0.09580854326486588,
-0.0018335714703425765,
0.0033264043740928173,
-0.11328557133674622,
0.15526147186756134,
0.02895512245595455,
-0.006477439776062965,
-0.011608947068452835,
-0.14751119911670685,
0.008846048265695572,
-0.19442979991436005,
0.05595700442790985,
0.028831232339143753,
0.18672771751880646,
-0.18529443442821503,
0.010312982834875584,
-0.11903277784585953,
-0.09762683510780334,
-0.0628599002957344,
0.022956952452659607,
0.023449962958693504,
0.0857323482632637,
-0.04793776944279671,
-0.015227208845317364,
0.08578885346651077,
-0.13408076763153076,
0.14698785543441772,
-0.11853545159101486,
0.0568535216152668,
-0.1818573772907257,
0.04146672785282135,
0.09080448746681213,
0.02178204245865345,
0.08191291242837906,
-0.013263249769806862,
0.038192328065633774,
0.07345303893089294,
-0.1292945295572281,
0.020767757669091225,
0.20436523854732513,
-0.18457263708114624,
-0.053150925785303116,
-0.023891231045126915,
0.17498420178890228,
-0.14457541704177856,
-0.1347215324640274,
0.0476425439119339,
0.04542238265275955,
0.07426172494888306,
0.12008527666330338,
0.09095434099435806,
-0.06804657727479935,
-0.008206408470869064,
0.1344550997018814,
-0.05974699184298515,
0.23163440823554993,
0.04509294778108597,
-0.005380595102906227,
-0.039362840354442596,
0.02964828535914421,
0.03824782371520996,
-0.14649555087089539,
-0.053996726870536804,
0.1179816871881485,
0.1459762305021286,
-0.24267534911632538,
-0.07404699921607971,
0.060477156192064285,
0.0337916761636734,
-0.07997853308916092,
0.02584066428244114,
-0.2036598026752472,
0.042499374598264694,
-0.15913721919059753,
0.17010597884655,
0.0709192231297493,
0.11611302942037582,
-0.01083751767873764,
0.021934127435088158,
-2.512449315948946e-32,
0.05163997411727905,
0.0026099553797394037,
-0.003594575449824333,
-0.07145757973194122,
0.1167873740196228,
-0.034520216286182404,
-0.13638581335544586,
-0.07168642431497574,
-0.030429624021053314,
-0.06350241601467133,
-0.07978292554616928,
-0.053068552166223526,
0.0276144091039896,
0.05073608085513115,
0.050449762493371964,
0.06106105446815491,
0.122894786298275,
-0.07186220586299896,
0.012314572930335999,
0.04429101571440697,
0.015343835577368736,
-0.05800500884652138,
0.08687947690486908,
-0.02767089381814003,
-0.06305346637964249,
0.03730884566903114,
-0.2062220275402069,
-0.1103028953075409,
0.05133900046348572,
0.07117696106433868,
-0.0809868723154068,
-0.07679096609354019,
-0.0318552702665329,
0.013873358257114887,
-0.04867025464773178,
0.035981521010398865,
-0.17236170172691345,
-0.06935075670480728,
-0.13243471086025238,
0.06477665901184082,
0.08084185421466827,
-0.146811380982399,
-0.07796117663383484,
-0.06597698479890823,
-0.03195919096469879,
-0.008694344200193882,
0.02516581490635872,
0.01453346572816372,
-0.01795591227710247,
-0.021101444959640503,
-0.03185729682445526,
0.007308450061827898,
0.057902343571186066,
0.17363306879997253,
0.06315376609563828,
-0.09406541287899017,
0.09168939292430878,
0.21890930831432343,
-0.04489976540207863,
0.04980059340596199,
0.32166802883148193,
-0.07878126204013824,
0.02279520407319069,
-0.11130888015031815,
0.024857250973582268,
-0.05213996767997742,
0.12098558992147446,
0.09373469650745392,
0.32008999586105347,
0.13051532208919525,
-0.10257716476917267,
0.1470736861228943,
0.028865447267889977,
-0.07627177983522415,
-0.09731722623109818,
0.06013454496860504,
-0.09517353773117065,
0.12600471079349518,
-0.07448367029428482,
0.11470799148082733,
-0.19278009235858917,
0.06268344819545746,
0.028776178136467934,
0.05292878672480583,
-0.00027371649048291147,
0.11194055527448654,
-0.058864858001470566,
-0.07108194380998611,
0.016117652878165245,
-0.17913785576820374,
0.07109211385250092,
0.11485990881919861,
-0.1485718935728073,
-0.14079709351062775,
0.019651029258966446,
0.08582242578268051,
-0.05693113058805466,
0.016421593725681305,
-0.061521146446466446,
-0.17767052352428436,
0.2281467765569687,
-0.13109204173088074,
0.21780449151992798,
-0.07208894938230515,
0.07532097399234772,
-0.03881332650780678,
0.24132908880710602,
-0.034134641289711,
-0.23283405601978302,
-0.037281785160303116,
-0.06686984747648239,
-0.09050475060939789,
0.23097458481788635,
0.10497725009918213,
0.01712004840373993,
-0.02098909765481949,
-0.08550934493541718,
-0.10041652619838715,
0.02878662943840027,
0.12607233226299286,
-0.20143651962280273,
-0.021494809538125992,
-0.0007937451591715217,
0.022008240222930908,
0.1481979638338089,
0.059331219643354416,
-0.0752505213022232,
-0.26473549008369446,
0.17036400735378265,
0.0671183317899704,
-0.009768960997462273,
-0.18175336718559265,
7.144209916987165e-7,
-0.09400217980146408,
0.011363175697624683,
0.07398542016744614,
-0.1303759515285492,
0.03485599532723427,
0.20839767158031464,
-0.1355430781841278,
-0.14516529440879822,
0.11961956322193146,
0.05157056078314781,
0.18262061476707458,
-0.16333100199699402,
-0.1086849495768547,
-0.05047115683555603,
0.052600227296352386,
0.05339733138680458,
0.30446305871009827,
0.03169240057468414,
0.0899212509393692,
0.0723901018500328,
0.03182704746723175,
-0.024852342903614044,
-0.0032521593384444714,
-0.09755636006593704,
-0.06092054024338722,
-0.04165390878915787,
-0.07503917068243027,
-0.12006844580173492,
0.036277201026678085,
0.06204388663172722,
-0.06351067125797272,
0.10045162588357925,
-0.03202417865395546,
-0.07030884176492691,
-0.10893788933753967,
-0.07243240624666214,
-0.15578605234622955,
-0.027607914060354233,
-0.022117072716355324,
0.10105562955141068,
-0.001098192878998816,
-0.033606112003326416,
0.02927810326218605,
-0.1083826795220375,
0.07561921328306198,
0.033106014132499695,
-0.03920130804181099,
0.029782313853502274,
-0.3566727042198181,
0.022443555295467377,
-0.10243725031614304,
0.11303278058767319,
0.05852486938238144,
0.14702609181404114,
0.03667151555418968,
-0.023970769718289375,
-0.09492763131856918,
-0.18736590445041656,
0.067750945687294,
0.014034378342330456,
-0.232527956366539,
-0.20149850845336914,
0.15094363689422607,
0.2708072066307068,
0.09248793870210648,
-0.22902777791023254,
-0.025066636502742767,
1.699214507078301e-34,
0.007792253512889147,
0.013698683120310307,
-0.0034536232706159353,
-0.024895884096622467,
0.1544654816389084,
-0.033784132450819016,
0.10699596256017685,
-0.013084400445222855,
0.120893195271492,
-0.18535853922367096,
-0.1096717044711113
] |
https://github.com/huggingface/datasets/issues/2440 | Remove `extended` field from dataset tagger | Thanks for reporting. Indeed the `extended` tag doesn't exist. Not sure why we had that in the tagger.
The repo of the tagger is here if someone wants to give this a try: https://github.com/huggingface/datasets-tagging
Otherwise I can probably fix it next week | ## Describe the bug
While working on #2435 I used the [dataset tagger](https://huggingface.co/datasets/tagging/) to generate the missing tags for the YAML metadata of each README.md file. However, it seems that our CI raises an error when the `extended` field is included:
```
dataset_name = 'arcd'
@pytest.mark.parametrize("dataset_name", get_changed_datasets(repo_path))
def test_changed_dataset_card(dataset_name):
card_path = repo_path / "datasets" / dataset_name / "README.md"
assert card_path.exists()
error_messages = []
try:
ReadMe.from_readme(card_path)
except Exception as readme_error:
error_messages.append(f"The following issues have been found in the dataset cards:\nREADME:\n{readme_error}")
try:
DatasetMetadata.from_readme(card_path)
except Exception as metadata_error:
error_messages.append(
f"The following issues have been found in the dataset cards:\nYAML tags:\n{metadata_error}"
)
if error_messages:
> raise ValueError("\n".join(error_messages))
E ValueError: The following issues have been found in the dataset cards:
E YAML tags:
E __init__() got an unexpected keyword argument 'extended'
tests/test_dataset_cards.py:70: ValueError
```
Consider either removing this tag from the tagger or including it as part of the validation step in the CI.
cc @yjernite | 42 | Remove `extended` field from dataset tagger
## Describe the bug
While working on #2435 I used the [dataset tagger](https://huggingface.co/datasets/tagging/) to generate the missing tags for the YAML metadata of each README.md file. However, it seems that our CI raises an error when the `extended` field is included:
```
dataset_name = 'arcd'
@pytest.mark.parametrize("dataset_name", get_changed_datasets(repo_path))
def test_changed_dataset_card(dataset_name):
card_path = repo_path / "datasets" / dataset_name / "README.md"
assert card_path.exists()
error_messages = []
try:
ReadMe.from_readme(card_path)
except Exception as readme_error:
error_messages.append(f"The following issues have been found in the dataset cards:\nREADME:\n{readme_error}")
try:
DatasetMetadata.from_readme(card_path)
except Exception as metadata_error:
error_messages.append(
f"The following issues have been found in the dataset cards:\nYAML tags:\n{metadata_error}"
)
if error_messages:
> raise ValueError("\n".join(error_messages))
E ValueError: The following issues have been found in the dataset cards:
E YAML tags:
E __init__() got an unexpected keyword argument 'extended'
tests/test_dataset_cards.py:70: ValueError
```
Consider either removing this tag from the tagger or including it as part of the validation step in the CI.
cc @yjernite
Thanks for reporting. Indeed the `extended` tag doesn't exist. Not sure why we had that in the tagger.
The repo of the tagger is here if someone wants to give this a try: https://github.com/huggingface/datasets-tagging
Otherwise I can probably fix it next week | [
0.024989919736981392,
-0.071726493537426,
-0.133930042386055,
-0.018346771597862244,
0.32171785831451416,
0.16273002326488495,
0.11623944342136383,
-0.03154464066028595,
-0.11529657244682312,
0.2182801365852356,
0.09157440811395645,
0.22619162499904633,
-0.06795161217451096,
0.18335452675819397,
0.008408677764236927,
0.029787611216306686,
-0.029057320207357407,
-0.053575560450553894,
0.16386350989341736,
0.09388238936662674,
-0.07104385644197464,
0.024538174271583557,
0.12986062467098236,
-0.04103748872876167,
-0.08445096760988235,
0.11670471727848053,
-0.09714111685752869,
0.1148887649178505,
-0.08719520270824432,
-0.1521606296300888,
0.28170233964920044,
0.05485125258564949,
0.09877995401620865,
0.056619174778461456,
0.000005764786692452617,
0.16032390296459198,
0.12071499973535538,
-0.04640226066112518,
0.05593198537826538,
-0.17415596544742584,
-0.030813757330179214,
0.06379178166389465,
0.08888977020978928,
-0.06032456085085869,
-0.001457654987461865,
-0.01679975725710392,
-0.12021460384130478,
0.08520781248807907,
-0.06631508469581604,
0.0005190145457163453,
-0.07368683069944382,
-0.04000354930758476,
-0.05439470708370209,
-0.2054169774055481,
0.12334530800580978,
0.13667872548103333,
0.04667789116501808,
0.05814415588974953,
0.014549990184605122,
0.0018977945437654853,
-0.04197630658745766,
0.0806160643696785,
0.01804407499730587,
-0.0376681387424469,
0.006986238528043032,
-0.07231400907039642,
-0.08303987234830856,
-0.1663479208946228,
0.15934443473815918,
0.00917726755142212,
0.09193718433380127,
-0.07265806943178177,
-0.037266649305820465,
-0.06614662706851959,
-0.012911657802760601,
-0.017457470297813416,
0.07633504271507263,
-0.16500559449195862,
0.0005606357008218765,
0.06954091042280197,
-0.05757522955536842,
-0.15320360660552979,
0.05651940405368805,
0.01708466373383999,
-0.050557635724544525,
0.37069252133369446,
0.015956344082951546,
0.16434626281261444,
-0.03877988085150719,
-0.1088419258594513,
-0.07154305279254913,
-0.05183487758040428,
-0.17599545419216156,
-0.009458075277507305,
0.0630161315202713,
-0.00031206855783239007,
-0.09554196894168854,
-0.22367674112319946,
0.007062081713229418,
0.07301398366689682,
-0.07742862403392792,
-0.008794080466032028,
-0.09450993686914444,
0.07640482485294342,
-0.029978401958942413,
-0.020109781995415688,
0.06473664194345474,
-0.00604638084769249,
-0.018798572942614555,
0.13256241381168365,
-0.027743909507989883,
0.13354907929897308,
0.006013433914631605,
-0.11625340580940247,
0.011025866493582726,
0.09696970880031586,
0.04588047042489052,
0.13668787479400635,
-0.15570464730262756,
-0.03826255723834038,
0.016267163679003716,
0.0528588593006134,
0.02155262976884842,
0.07716410607099533,
0.06347446888685226,
-0.12231675535440445,
-0.053140655159950256,
0.03499630093574524,
0.1081010177731514,
0.0901169702410698,
-0.05941165238618851,
0.16876281797885895,
-0.03404584899544716,
-0.08194948732852936,
0.1527862846851349,
0.03192437067627907,
0.07278818637132645,
-0.09681538492441177,
0.03193968906998634,
0.029403692111372948,
-0.004424151033163071,
0.07992468029260635,
0.186048224568367,
0.12139952182769775,
-0.0009553793352097273,
-0.09291283041238785,
0.11113307625055313,
-0.10055281966924667,
-0.07304055988788605,
-0.10394713282585144,
-0.06590870022773743,
0.07098948210477829,
-0.25344568490982056,
0.09981156885623932,
0.08108524978160858,
0.012604814022779465,
-0.13517919182777405,
0.07041822373867035,
-0.13826484978199005,
-0.14798378944396973,
0.1904478520154953,
-0.15986086428165436,
0.13740669190883636,
0.08962640911340714,
-0.03132150322198868,
-0.02819223701953888,
0.10908834636211395,
-0.11390651017427444,
-0.0651472806930542,
-0.15998712182044983,
0.04262079671025276,
-0.10252050310373306,
-0.2238250970840454,
-0.11289829015731812,
-0.16437920928001404,
0.05595172196626663,
-0.06648077070713043,
-0.17826329171657562,
-0.13437873125076294,
-0.18071642518043518,
0.07988914102315903,
-0.043316248804330826,
-0.022246206179261208,
-0.12094704061746597,
0.04483165964484215,
0.11036466807126999,
-0.07880965620279312,
-0.03225149214267731,
-0.16521905362606049,
-0.10227125883102417,
-0.10484728962182999,
-0.02421106956899166,
0.1753561943769455,
0.007184293121099472,
0.006008576136082411,
-0.1291671246290207,
0.004075299482792616,
0.04188430681824684,
0.12009619921445847,
-0.0626252070069313,
0.0873052179813385,
-0.1277138888835907,
0.014371860772371292,
-0.051562558859586716,
0.12845513224601746,
-0.21454918384552002,
-0.2422182559967041,
0.021082010120153427,
-0.11786110699176788,
-0.0532788410782814,
-0.1725834459066391,
-0.06401529908180237,
-0.02224859967827797,
-0.04585016518831253,
-0.128244549036026,
-0.11126071214675903,
0.04304870218038559,
0.010362406261265278,
0.0597451850771904,
-0.06559129804372787,
-0.12532185018062592,
-0.07016550004482269,
0.003327728947624564,
0.0890502855181694,
-0.08938489109277725,
-0.07662457227706909,
-0.12408018112182617,
0.003803529776632786,
-0.0321403332054615,
0.009319905191659927,
0.021256662905216217,
-0.046879567205905914,
0.08470378816127777,
0.13305531442165375,
-0.08434779196977615,
0.024587584659457207,
0.11704573780298233,
-0.07323357462882996,
0.2092161625623703,
-0.014973331242799759,
-0.15429158508777618,
-0.01906326785683632,
-0.007084313780069351,
-0.023905018344521523,
-0.12134704738855362,
-0.07314389944076538,
-0.020152002573013306,
0.0992484763264656,
0.051227450370788574,
-0.05718877166509628,
0.2430485635995865,
0.21811066567897797,
-0.17418494820594788,
-0.05735061317682266,
-0.09730541706085205,
-0.07928898930549622,
-0.0032806398812681437,
0.02357674390077591,
0.031446587294340134,
-0.10215280205011368,
0.26195964217185974,
0.03943565860390663,
-0.2541336715221405,
-0.05064357444643974,
-0.05558052286505699,
-0.17812582850456238,
0.0794043019413948,
0.18080155551433563,
-0.05962250381708145,
0.2955947518348694,
0.2637415826320648,
0.1256353259086609,
0.07381941378116608,
-0.058061569929122925,
0.20515121519565582,
0.09701084345579147,
-0.06234142184257507,
0.18231788277626038,
0.06891557574272156,
0.01969579979777336,
-0.07441122829914093,
-0.07078030705451965,
0.10694680362939835,
-0.042982250452041626,
0.16614583134651184,
0.018637968227267265,
-0.2190435379743576,
-0.22048409283161163,
0.07076657563447952,
-0.1220235750079155,
-0.14922690391540527,
0.051551878452301025,
-0.007616753224283457,
-0.12989750504493713,
-0.15929977595806122,
-0.008555910550057888,
-0.06315883994102478,
-0.13446825742721558,
-0.1646692156791687,
-0.0880424976348877,
-0.05520609766244888,
0.08634933084249496,
0.13893167674541473,
0.08582451194524765,
-0.05137509107589722,
0.00009186126408167183,
0.15461252629756927,
0.056141920387744904,
-0.17221157252788544,
-0.14828979969024658,
-0.17248865962028503,
0.1460086703300476,
-0.08141864836215973,
0.013035869225859642,
0.15508180856704712,
-0.18134693801403046,
0.18241631984710693,
-0.20929038524627686,
0.08483795821666718,
0.07875815033912659,
-0.06462012976408005,
-0.027143236249685287,
-0.03779522329568863,
0.05838805437088013,
-0.04633461311459541,
-0.010039239190518856,
-0.04085969924926758,
-0.0057303449138998985,
-0.002479212125763297,
0.1042620912194252,
-0.11571161448955536,
0.23759599030017853,
-0.16770803928375244,
-0.07289885729551315,
-0.11848610639572144,
-0.09412368386983871,
-0.09988848119974136,
-0.09404303878545761,
-0.051391247659921646,
0.031000420451164246,
0.0579739585518837,
0.3096252977848053,
0.01950650103390217,
0.21037641167640686,
0.12380968034267426,
0.037116795778274536,
0.013984210789203644,
0.07247859239578247,
0.06217093765735626,
-0.1108417883515358,
0.04265563562512398,
0.03135824576020241,
0.15310029685497284,
0.018302468582987785,
-0.06683505326509476,
0.12137415260076523,
-0.11881009489297867,
0.027282575145363808,
-0.19118435680866241,
-0.028436215594410896,
0.06251455098390579,
0.12016294151544571,
0.06444716453552246,
-0.18418332934379578,
-0.015514622442424297,
0.10849471390247345,
-0.005007607862353325,
0.18657387793064117,
-0.0676366463303566,
-0.16243262588977814,
-0.10345958918333054,
-0.0829162746667862,
-0.028433270752429962,
0.06738723814487457,
0.0035852084401994944,
0.05137765780091286,
-0.005425950512290001,
-0.025733333081007004,
0.18302364647388458,
-0.03326253220438957,
-0.05343356356024742,
-0.14788389205932617,
-0.007027891930192709,
0.12212207913398743,
-0.08076668530702591,
0.10814142972230911,
-0.0071240696124732494,
0.23645761609077454,
-0.08266504853963852,
0.12613096833229065,
-0.03025142475962639,
0.10487702488899231,
0.07051818817853928,
0.10518668591976166,
-0.0442788302898407,
0.0062255095690488815,
-0.0034113568253815174,
-0.0011370765278115869,
0.17551442980766296,
0.0404745489358902,
-0.020528459921479225,
0.014275136403739452,
0.0028785616159439087,
0.029556045308709145,
0.17860805988311768,
-0.004080359824001789,
0.0827350839972496,
-0.012311669066548347,
0.01562894508242607,
0.031996626406908035,
0.10971499979496002,
0.16069941222667694,
0.03692612424492836,
-0.040456242859363556,
0.24032989144325256,
0.10678759217262268,
0.0016925358213484287,
0.06087302789092064,
-0.020109975710511208,
-0.1674976646900177,
-0.20305445790290833,
-0.0978391245007515,
0.20128649473190308,
0.10106883198022842,
0.07838162034749985,
0.0007455656304955482,
-0.12501928210258484,
-0.0783396065235138,
0.12672913074493408,
0.08438636362552643,
0.032128650695085526,
0.06142355501651764,
-0.009969118051230907,
-0.1435776650905609,
0.08806027472019196,
0.15918242931365967,
0.11122317612171173,
-0.09032872319221497,
-0.233391672372818,
-0.08115442842245102,
-0.20484007894992828,
0.1273457407951355,
-0.010950930416584015,
-0.1429315209388733,
0.18542161583900452,
-0.20370960235595703,
0.03649473935365677,
0.03893788531422615,
0.09021394699811935,
0.026992017403244972,
-0.21252214908599854,
-0.1364217847585678,
-0.12436451017856598,
-0.1599743366241455,
0.09654521197080612,
-0.015435390174388885,
0.18264050781726837,
-0.08054978400468826,
-0.22889390587806702,
-0.01844165101647377,
-0.06131572276353836,
-0.023123256862163544,
0.08923152089118958,
0.011468504555523396,
0.026481779292225838,
0.08228259533643723,
0.1563762128353119,
-0.24381433427333832,
0.06487558782100677,
0.03586611524224281,
-0.03733045607805252,
0.006692481692880392,
0.04176778346300125,
0.16713625192642212,
0.19381645321846008,
0.13625776767730713,
-0.08380523324012756,
0.002187293255701661,
0.03270675987005234,
-0.09192442893981934,
0.15382282435894012,
0.07959764450788498,
-0.012200254946947098,
-0.026709530502557755,
-0.15262503921985626,
-0.005204430781304836,
-0.19284100830554962,
0.04272749274969101,
0.023866496980190277,
0.17557550966739655,
-0.1712985783815384,
-0.0019358129939064384,
-0.11168022453784943,
-0.07250499725341797,
-0.06477879732847214,
0.04386414960026741,
0.00982755422592163,
0.08562446385622025,
-0.052322227507829666,
-0.0366516150534153,
0.0645991861820221,
-0.11748113483190536,
0.15445929765701294,
-0.0982200875878334,
0.06735639274120331,
-0.20308564603328705,
0.040600452572107315,
0.08247166872024536,
0.01916736364364624,
0.08229930698871613,
-0.006452448200434446,
0.01702728495001793,
0.06535457819700241,
-0.11498561501502991,
0.02830072119832039,
0.19416873157024384,
-0.14352455735206604,
-0.05035365745425224,
-0.0067870053462684155,
0.170920267701149,
-0.14199228584766388,
-0.14308582246303558,
0.04195941984653473,
0.04470469802618027,
0.04447617009282112,
0.11990963667631149,
0.08403455466032028,
-0.05186034366488457,
0.001904399716295302,
0.10884658247232437,
-0.09415635466575623,
0.2528849244117737,
0.06263675540685654,
-0.016947487369179726,
-0.046209149062633514,
0.029532290995121002,
0.052558768540620804,
-0.16274090111255646,
-0.029482383280992508,
0.11809127777814865,
0.15866190195083618,
-0.22568969428539276,
-0.05799838528037071,
0.0694408118724823,
0.03589025139808655,
-0.06394997984170914,
0.041448649019002914,
-0.16924241185188293,
0.03559083864092827,
-0.17855526506900787,
0.15479809045791626,
0.09531340003013611,
0.13339196145534515,
-0.007099917624145746,
0.010895044542849064,
-2.537046535239902e-32,
0.04860812798142433,
0.0027062271255999804,
0.00430071447044611,
-0.04643470048904419,
0.08907700330018997,
-0.030528143048286438,
-0.15414749085903168,
-0.044650010764598846,
-0.04371693357825279,
-0.07962758094072342,
-0.05978357791900635,
-0.03425348550081253,
0.01833178848028183,
0.04987012594938278,
0.038944076746702194,
0.0588507354259491,
0.12533989548683167,
-0.07342558354139328,
0.01928986981511116,
0.008838793262839317,
0.03460957854986191,
-0.05730464681982994,
0.08589812368154526,
-0.018221337348222733,
-0.040878042578697205,
0.00935432780534029,
-0.20525552332401276,
-0.10843881964683533,
0.04015351086854935,
0.07540269196033478,
-0.07610993087291718,
-0.09021060168743134,
-0.014792070724070072,
0.001957952743396163,
-0.036165934056043625,
0.023821016773581505,
-0.1626294106245041,
-0.04438543692231178,
-0.12895052134990692,
0.039707332849502563,
0.0748121365904808,
-0.13736699521541595,
-0.08219240605831146,
-0.09417271614074707,
-0.04937015101313591,
0.012883255258202553,
0.05310332775115967,
-0.004942349623888731,
-0.004744861740618944,
-0.005803273990750313,
-0.0082582738250494,
0.008754577487707138,
0.02318599261343479,
0.14854300022125244,
0.07411680370569229,
-0.07127676159143448,
0.09850198775529861,
0.20487093925476074,
-0.058983005583286285,
0.054455239325761795,
0.30429813265800476,
-0.07571457326412201,
0.023082783445715904,
-0.12455535680055618,
0.038951776921749115,
-0.0670325830578804,
0.1297314614057541,
0.08396438509225845,
0.29409587383270264,
0.14111587405204773,
-0.07909127324819565,
0.14782944321632385,
0.01017175056040287,
-0.09066779166460037,
-0.1055680513381958,
0.022745054215192795,
-0.08228803426027298,
0.11583701521158218,
-0.04421784728765488,
0.09868468344211578,
-0.19369938969612122,
0.07243318110704422,
0.04613058641552925,
0.05936286598443985,
-0.018718400970101357,
0.08623328059911728,
-0.0427975207567215,
-0.07228440046310425,
0.02875467576086521,
-0.18944483995437622,
0.08847622573375702,
0.11703439801931381,
-0.1435845047235489,
-0.11343801766633987,
0.022839142009615898,
0.102224200963974,
-0.027279764413833618,
0.030393948778510094,
-0.05507917329668999,
-0.1760716438293457,
0.2319827377796173,
-0.10841073095798492,
0.22496606409549713,
-0.07398141920566559,
0.062298793345689774,
-0.0817788690328598,
0.24887458980083466,
-0.039552051573991776,
-0.20350532233715057,
-0.022818604484200478,
-0.04471123591065407,
-0.05989418178796768,
0.24131859838962555,
0.10099954158067703,
0.015404696576297283,
-0.028783701360225677,
-0.06728975474834442,
-0.1037028506398201,
0.028017422184348106,
0.132740780711174,
-0.2022249698638916,
-0.05799316614866257,
-0.05080709233880043,
0.0017438710201531649,
0.15693466365337372,
0.08000295609235764,
-0.0633595734834671,
-0.2577359676361084,
0.15411792695522308,
0.07663258165121078,
-0.00916241854429245,
-0.15838709473609924,
7.228106255752209e-7,
-0.09462875872850418,
0.02270343154668808,
0.08433090895414352,
-0.11278895288705826,
0.03204663470387459,
0.16136188805103302,
-0.1584724485874176,
-0.1551930457353592,
0.1059655025601387,
0.049761123955249786,
0.18709369003772736,
-0.15327568352222443,
-0.09685681015253067,
-0.056000154465436935,
0.08590834587812424,
0.07754530012607574,
0.28085729479789734,
0.006312803830951452,
0.10691161453723907,
0.061195362359285355,
0.058291055262088776,
-0.004740588366985321,
-0.006850178819149733,
-0.06060156598687172,
-0.09503653645515442,
-0.0283000897616148,
-0.07554755359888077,
-0.13055293262004852,
0.017233582213521004,
0.0704437643289566,
-0.07783672958612442,
0.09088777750730515,
-0.03328771889209747,
-0.07900966703891754,
-0.10185594111680984,
-0.08191986382007599,
-0.14242663979530334,
-0.01979811303317547,
-0.007874350063502789,
0.10301072895526886,
0.01050676591694355,
-0.031022150069475174,
0.02466876246035099,
-0.07880688458681107,
0.07488805055618286,
0.05875512212514877,
-0.0453515462577343,
0.033216703683137894,
-0.379142701625824,
0.05977058783173561,
-0.11311033368110657,
0.12924346327781677,
0.0673227608203888,
0.15222397446632385,
0.031837787479162216,
-0.023614631965756416,
-0.12377343326807022,
-0.1644057035446167,
0.06030641123652458,
-0.009350059553980827,
-0.24003510177135468,
-0.1760093718767166,
0.13839390873908997,
0.2610453963279724,
0.06666281819343567,
-0.22026784718036652,
-0.03846447169780731,
1.5575433309864739e-34,
0.016836857423186302,
-0.0064244079403579235,
-0.013048631139099598,
-0.04924667999148369,
0.14284297823905945,
-0.024844372645020485,
0.11116665601730347,
-0.000497817003633827,
0.1000632494688034,
-0.17555631697177887,
-0.10158690810203552
] |
https://github.com/huggingface/datasets/issues/2434 | Extend QuestionAnsweringExtractive template to handle nested columns | this is also the case for the following datasets and configurations:
* `mlqa` with config `mlqa-translate-train.ar`
| Currently the `QuestionAnsweringExtractive` task template and `preprare_for_task` only support "flat" features. We should extend the functionality to cover QA datasets like:
* `iapp_wiki_qa_squad`
* `parsinlu_reading_comprehension`
where the nested features differ with those from `squad` and trigger an `ArrowNotImplementedError`:
```
---------------------------------------------------------------------------
ArrowNotImplementedError Traceback (most recent call last)
<ipython-input-12-50e5b8f69c20> in <module>
----> 1 ds.prepare_for_task("question-answering-extractive")[0]
~/git/datasets/src/datasets/arrow_dataset.py in prepare_for_task(self, task)
1436 # We found a template so now flush `DatasetInfo` to skip the template update in `DatasetInfo.__post_init__`
1437 dataset.info.task_templates = None
-> 1438 dataset = dataset.cast(features=template.features)
1439 return dataset
1440
~/git/datasets/src/datasets/arrow_dataset.py in cast(self, features, batch_size, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, num_proc)
977 format = self.format
978 dataset = self.with_format("arrow")
--> 979 dataset = dataset.map(
980 lambda t: t.cast(schema),
981 batched=True,
~/git/datasets/src/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc)
1600
1601 if num_proc is None or num_proc == 1:
-> 1602 return self._map_single(
1603 function=function,
1604 with_indices=with_indices,
~/git/datasets/src/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
176 }
177 # apply actual function
--> 178 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
179 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
180 # re-apply format to the output
~/git/datasets/src/datasets/fingerprint.py in wrapper(*args, **kwargs)
395 # Call actual function
396
--> 397 out = func(self, *args, **kwargs)
398
399 # Update fingerprint of in-place transforms + update in-place history of transforms
~/git/datasets/src/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, desc)
1940 ) # Something simpler?
1941 try:
-> 1942 batch = apply_function_on_filtered_inputs(
1943 batch,
1944 indices,
~/git/datasets/src/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset)
1836 effective_indices = [i + offset for i in indices] if isinstance(indices, list) else indices + offset
1837 processed_inputs = (
-> 1838 function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1839 )
1840 if update_data is None:
~/git/datasets/src/datasets/arrow_dataset.py in <lambda>(t)
978 dataset = self.with_format("arrow")
979 dataset = dataset.map(
--> 980 lambda t: t.cast(schema),
981 batched=True,
982 batch_size=batch_size,
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.cast()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.ChunkedArray.cast()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/compute.py in cast(arr, target_type, safe)
241 else:
242 options = CastOptions.unsafe(target_type)
--> 243 return call_function("cast", [arr], options)
244
245
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/_compute.pyx in pyarrow._compute.call_function()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/_compute.pyx in pyarrow._compute.Function.call()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowNotImplementedError: Unsupported cast from struct<answer_end: list<item: int32>, answer_start: list<item: int32>, text: list<item: string>> to struct using function cast_struct
``` | 16 | Extend QuestionAnsweringExtractive template to handle nested columns
Currently the `QuestionAnsweringExtractive` task template and `preprare_for_task` only support "flat" features. We should extend the functionality to cover QA datasets like:
* `iapp_wiki_qa_squad`
* `parsinlu_reading_comprehension`
where the nested features differ with those from `squad` and trigger an `ArrowNotImplementedError`:
```
---------------------------------------------------------------------------
ArrowNotImplementedError Traceback (most recent call last)
<ipython-input-12-50e5b8f69c20> in <module>
----> 1 ds.prepare_for_task("question-answering-extractive")[0]
~/git/datasets/src/datasets/arrow_dataset.py in prepare_for_task(self, task)
1436 # We found a template so now flush `DatasetInfo` to skip the template update in `DatasetInfo.__post_init__`
1437 dataset.info.task_templates = None
-> 1438 dataset = dataset.cast(features=template.features)
1439 return dataset
1440
~/git/datasets/src/datasets/arrow_dataset.py in cast(self, features, batch_size, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, num_proc)
977 format = self.format
978 dataset = self.with_format("arrow")
--> 979 dataset = dataset.map(
980 lambda t: t.cast(schema),
981 batched=True,
~/git/datasets/src/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc)
1600
1601 if num_proc is None or num_proc == 1:
-> 1602 return self._map_single(
1603 function=function,
1604 with_indices=with_indices,
~/git/datasets/src/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
176 }
177 # apply actual function
--> 178 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
179 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
180 # re-apply format to the output
~/git/datasets/src/datasets/fingerprint.py in wrapper(*args, **kwargs)
395 # Call actual function
396
--> 397 out = func(self, *args, **kwargs)
398
399 # Update fingerprint of in-place transforms + update in-place history of transforms
~/git/datasets/src/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, desc)
1940 ) # Something simpler?
1941 try:
-> 1942 batch = apply_function_on_filtered_inputs(
1943 batch,
1944 indices,
~/git/datasets/src/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset)
1836 effective_indices = [i + offset for i in indices] if isinstance(indices, list) else indices + offset
1837 processed_inputs = (
-> 1838 function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1839 )
1840 if update_data is None:
~/git/datasets/src/datasets/arrow_dataset.py in <lambda>(t)
978 dataset = self.with_format("arrow")
979 dataset = dataset.map(
--> 980 lambda t: t.cast(schema),
981 batched=True,
982 batch_size=batch_size,
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.cast()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.ChunkedArray.cast()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/compute.py in cast(arr, target_type, safe)
241 else:
242 options = CastOptions.unsafe(target_type)
--> 243 return call_function("cast", [arr], options)
244
245
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/_compute.pyx in pyarrow._compute.call_function()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/_compute.pyx in pyarrow._compute.Function.call()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowNotImplementedError: Unsupported cast from struct<answer_end: list<item: int32>, answer_start: list<item: int32>, text: list<item: string>> to struct using function cast_struct
```
this is also the case for the following datasets and configurations:
* `mlqa` with config `mlqa-translate-train.ar`
| [
0.02476010099053383,
0.30089816451072693,
-0.12152041494846344,
0.05479956790804863,
0.14435003697872162,
0.14121124148368835,
0.09455528855323792,
0.15940751135349274,
-0.14277948439121246,
-0.03675396740436554,
-0.11645732074975967,
0.15459886193275452,
-0.07115785777568817,
0.04990213364362717,
0.02728421799838543,
-0.16272799670696259,
-0.018899545073509216,
-0.0966636911034584,
0.1105499118566513,
0.04626377671957016,
-0.11891767382621765,
0.07690103352069855,
0.04590030014514923,
-0.015206225216388702,
0.17243364453315735,
-0.17888371646404266,
-0.150041863322258,
0.04846993088722229,
-0.05710398778319359,
-0.03890249505639076,
0.16877681016921997,
0.0967649444937706,
-0.13007478415966034,
0.06926005333662033,
0.000005596520622930257,
0.02232229895889759,
0.0677223950624466,
-0.06786277890205383,
-0.03913974016904831,
-0.035835765302181244,
0.02781769260764122,
0.045764558017253876,
0.07933486253023148,
-0.09247462451457977,
-0.07684259116649628,
-0.0517306812107563,
-0.08395249396562576,
0.06111826002597809,
0.13601501286029816,
0.06249883025884628,
0.008215448819100857,
-0.004456589929759502,
0.051994502544403076,
-0.029421167448163033,
0.07408162951469421,
-0.007825990207493305,
-0.10838758200407028,
-0.017978273332118988,
-0.048922594636678696,
0.063624806702137,
-0.062131356447935104,
0.04983527958393097,
0.008009093813598156,
-0.01391876395791769,
0.15378828346729279,
-0.06287220865488052,
-0.08857434242963791,
-0.0495033860206604,
0.0069664884358644485,
0.1395522505044937,
-0.014003392308950424,
-0.003892155596986413,
-0.13486936688423157,
-0.05829235538840294,
0.06904228031635284,
-0.13509918749332428,
-0.1415524035692215,
-0.17225736379623413,
-0.11520124971866608,
-0.07335086166858673,
0.15407413244247437,
-0.05173688009381294,
-0.045613572001457214,
0.0069468203000724316,
-0.08893954753875732,
0.09091540426015854,
-0.02116338722407818,
0.02894088812172413,
-0.005577897187322378,
-0.0033028239849954844,
0.16682960093021393,
-0.00997396744787693,
-0.043573372066020966,
0.08475390821695328,
-0.16435788571834564,
-0.005625332240015268,
0.03921803459525108,
-0.3140409588813782,
0.017066968604922295,
0.04207281023263931,
0.1943383365869522,
0.042208481580019,
-0.03530944511294365,
-0.05917955935001373,
0.014813877642154694,
0.024966711178421974,
-0.06702475249767303,
-0.021471364423632622,
-0.27237874269485474,
0.059441275894641876,
-0.061415426433086395,
0.02986244112253189,
-0.04336914047598839,
-0.17197786271572113,
0.08764766156673431,
0.21653339266777039,
0.143055260181427,
0.2395569384098053,
0.08335675299167633,
-0.11057492345571518,
0.13229042291641235,
0.0618298314511776,
-0.21818634867668152,
0.09473379701375961,
0.10677741467952728,
0.05614476650953293,
-0.11559843271970749,
-0.01358542125672102,
-0.030423693358898163,
0.10429006814956665,
-0.07246699184179306,
-0.006394357420504093,
0.16344235837459564,
-0.074982188642025,
0.058619264513254166,
0.13088379800319672,
0.06961088627576828,
-0.1255580335855484,
0.1657792329788208,
-0.08633027225732803,
0.04832101985812187,
0.037554383277893066,
0.014153092168271542,
-0.06087861210107803,
0.06362681090831757,
-0.026462486013770103,
0.008888092823326588,
0.03565582260489464,
-0.11022564023733139,
0.004300539381802082,
-0.09909861534833908,
0.09210028499364853,
-0.19602102041244507,
0.014423250220716,
-0.040749695152044296,
0.03367917984724045,
-0.03277794271707535,
0.004179893992841244,
-0.10015226155519485,
-0.15904344618320465,
0.12556694447994232,
0.06370711326599121,
-0.0523228757083416,
-0.20425955951213837,
0.11245135217905045,
-0.015032988041639328,
0.0961117371916771,
0.09491362422704697,
-0.058324284851551056,
-0.0055291480384767056,
-0.08715540170669556,
-0.11804979294538498,
0.012514610774815083,
-0.13870428502559662,
-0.04078851267695427,
0.1501617729663849,
0.07555106282234192,
-0.05268039181828499,
0.020873550325632095,
-0.03412221372127533,
0.02343367226421833,
0.0881052315235138,
0.05374768376350403,
-0.018077263608574867,
0.06250949949026108,
0.09968460351228714,
-0.07732830941677094,
0.07522384822368622,
-0.10245266556739807,
-0.19693352282047272,
0.05385689064860344,
0.05963423475623131,
-0.06171245500445366,
0.03336790204048157,
-0.003988343290984631,
0.009945409372448921,
-0.17552967369556427,
-0.1664184182882309,
0.0761452317237854,
-0.13018196821212769,
0.0010240217670798302,
-0.11666769534349442,
0.25056514143943787,
0.018221985548734665,
0.11179545521736145,
-0.17998415231704712,
-0.3583684265613556,
0.10394030064344406,
-0.11197351664304733,
-0.07623936235904694,
-0.11994554102420807,
-0.05727831646800041,
0.10258803516626358,
0.018457811325788498,
-0.20807713270187378,
-0.054492853581905365,
0.12287934869527817,
-0.16140210628509521,
-0.13820187747478485,
-0.14582373201847076,
0.03746514022350311,
-0.16803981363773346,
0.09743930399417877,
0.09141934663057327,
0.046908292919397354,
-0.018118537962436676,
0.13279008865356445,
0.03865109011530876,
0.11872901767492294,
0.11067238450050354,
-0.0007716725231148303,
0.07638093084096909,
0.023737000301480293,
-0.15317580103874207,
-0.19166022539138794,
-0.037998199462890625,
-0.07239815592765808,
-0.26495790481567383,
-0.10250387340784073,
-0.041260719299316406,
-0.17275260388851166,
-0.03417806327342987,
-0.1292840540409088,
0.0313597247004509,
-0.07358818501234055,
-0.042808882892131805,
-0.0029571233317255974,
0.08718129992485046,
-0.043753188103437424,
-0.03764054551720619,
0.10950672626495361,
-0.04777425155043602,
-0.07955160737037659,
0.04977680370211601,
-0.08726894110441208,
-0.04472464323043823,
-0.02445964515209198,
-0.024813922122120857,
-0.03960036113858223,
0.1089838370680809,
0.09458090364933014,
0.14032287895679474,
-0.09018062800168991,
-0.10643438994884491,
0.23270457983016968,
-0.03947201743721962,
0.05082874000072479,
-0.07346051186323166,
-0.04553191363811493,
0.05130114406347275,
0.11402846872806549,
0.010362834669649601,
0.08876722306013107,
-0.03300686925649643,
0.029002636671066284,
-0.1812836080789566,
0.04626985266804695,
0.1110818088054657,
0.1887510120868683,
0.06997278332710266,
-0.09808021783828735,
0.08169358223676682,
0.0445101261138916,
-0.08890332281589508,
0.03382816165685654,
0.17816689610481262,
0.0020743762142956257,
0.012247524224221706,
-0.07555541396141052,
-0.02698943205177784,
-0.03071782924234867,
-0.0035929670557379723,
0.1391972303390503,
-0.06691789627075195,
-0.04823097586631775,
-0.03849993646144867,
-0.018335742875933647,
0.044455915689468384,
-0.09913865476846695,
-0.102763831615448,
-0.016641318798065186,
-0.022653993219137192,
0.13110584020614624,
0.11614766716957092,
-0.0031010292004793882,
-0.029431812465190887,
0.1653517633676529,
0.2883845865726471,
0.027505267411470413,
-0.27198687195777893,
-0.0744280219078064,
-0.046630632132291794,
-0.10371270775794983,
-0.050192855298519135,
-0.056357335299253464,
0.0011429046280682087,
-0.09524358063936234,
-0.26370909810066223,
0.05587855726480484,
0.1481178104877472,
0.10947791486978531,
0.012005245313048363,
0.028290722519159317,
-0.03625429421663284,
0.033932335674762726,
-0.21672803163528442,
0.0020661053713411093,
-0.22257836163043976,
0.11519578844308853,
0.019218409433960915,
-0.05039059743285179,
0.030870629474520683,
-0.01240850705653429,
-0.17533475160598755,
0.029578106477856636,
-0.18338395655155182,
-0.09371708333492279,
0.15294529497623444,
0.03627901151776314,
-0.08309687674045563,
0.06505539268255234,
0.023013655096292496,
-0.18111972510814667,
0.02062295936048031,
0.10803692042827606,
-0.10382101684808731,
0.07427838444709778,
0.041821759194135666,
0.2026088982820511,
-0.11739138513803482,
-0.07947123050689697,
0.1074010506272316,
0.05016546696424484,
-0.07278892397880554,
-0.10452229529619217,
0.3344804048538208,
0.008314835838973522,
0.2494945079088211,
-0.17436249554157257,
0.07313640415668488,
0.09140636771917343,
0.1257036179304123,
0.19484274089336395,
-0.08471742272377014,
0.06742846965789795,
0.0851486325263977,
0.14873911440372467,
0.0062395366840064526,
-0.043189678341150284,
-0.04023057594895363,
0.0712837278842926,
-0.1387181580066681,
0.024379992857575417,
0.10791497677564621,
0.028809577226638794,
-0.13517214357852936,
0.05875702202320099,
-0.2089196890592575,
0.14166735112667084,
-0.08169159293174744,
0.1402433216571808,
-0.1915091723203659,
0.03164510428905487,
0.05877384543418884,
0.052701063454151154,
-0.08515802770853043,
0.030228886753320694,
-0.04453229531645775,
-0.1778518110513687,
0.12110103666782379,
-0.03295273706316948,
-0.0503862239420414,
-0.027963876724243164,
-0.10965310782194138,
-0.12171272188425064,
0.01950383000075817,
0.0912807434797287,
0.10159841924905777,
0.03841850906610489,
0.0724637359380722,
-0.09934932738542557,
-0.05200503394007683,
-0.002270062454044819,
-0.038657911121845245,
0.07626356929540634,
-0.058835797011852264,
0.0687379390001297,
0.052275650203228,
0.15170714259147644,
0.007868826389312744,
-0.12216773629188538,
-0.10075357556343079,
-0.12647505104541779,
-0.015257841907441616,
0.1295805424451828,
0.004083635751157999,
-0.102277971804142,
-0.03911083936691284,
0.11976595222949982,
-0.1938914954662323,
0.032546453177928925,
0.07100662589073181,
0.23883666098117828,
0.09722772240638733,
0.1643461287021637,
-0.17241713404655457,
-0.10622966289520264,
0.024589968845248222,
0.08387231081724167,
0.0027562130708247423,
0.001836232142522931,
0.1161903589963913,
0.07159724086523056,
-0.0875140056014061,
-0.07767409831285477,
-0.0649535208940506,
0.1790885627269745,
-0.15041187405586243,
-0.05417148396372795,
-0.35173937678337097,
-0.13508057594299316,
0.023604631423950195,
0.2427322417497635,
-0.19457374513149261,
0.08819373697042465,
-0.11033826321363449,
-0.13862095773220062,
-0.053477708250284195,
-0.09979237616062164,
0.0587213858962059,
-0.158743754029274,
-0.0793156623840332,
-0.055378545075654984,
-0.04348810762166977,
0.03787054866552353,
-0.08487696200609207,
0.04002454876899719,
-0.04112929105758667,
-0.17367692291736603,
0.09934849292039871,
0.0016938841436058283,
-0.06834322214126587,
0.1057031899690628,
-0.06930077075958252,
-0.004981808830052614,
0.21804115176200867,
0.15814504027366638,
-0.14899227023124695,
-0.00759085500612855,
0.038883026689291,
-0.05254107713699341,
0.05400339141488075,
0.16854754090309143,
-0.09195161610841751,
0.2255445271730423,
0.013869849033653736,
0.04978416487574577,
0.0048929499462246895,
-0.014526806771755219,
0.01685616746544838,
0.17064477503299713,
0.07908003032207489,
0.22267639636993408,
-0.07920914888381958,
-0.049115996807813644,
0.06394773721694946,
-0.18021894991397858,
-0.0003435484250076115,
-0.10133692622184753,
-0.0007800951134413481,
-0.14244811236858368,
-0.25602051615715027,
0.060448914766311646,
-0.03517047315835953,
0.00620254734531045,
0.05916626378893852,
-0.010534994304180145,
0.14479102194309235,
-0.12476091086864471,
0.004975971300154924,
-0.12220863997936249,
-0.054245494306087494,
0.12287017703056335,
0.09414825588464737,
-0.026928720995783806,
-0.11795719712972641,
-0.002387935994192958,
0.11601662635803223,
-0.006085488945245743,
0.031213004142045975,
-0.04167312756180763,
0.0014500566758215427,
-0.14325739443302155,
-0.12063989788293839,
-0.0074157267808914185,
0.06599761545658112,
-0.15538571774959564,
-0.001332396175712347,
0.05010828375816345,
0.1996709406375885,
-0.10402031987905502,
0.07868973165750504,
0.0060173519887030125,
0.03999924287199974,
0.11088430881500244,
0.15725862979888916,
0.03265419602394104,
0.016742948442697525,
-0.0686253011226654,
0.16752934455871582,
-0.016074232757091522,
0.21354003250598907,
0.12458442151546478,
0.0074426596984267235,
-0.0925552025437355,
-0.06533846259117126,
0.08340949565172195,
-0.033790893852710724,
0.004793120548129082,
0.09516624361276627,
0.027320951223373413,
-0.14214728772640228,
-0.1318628191947937,
0.10073596239089966,
-0.0068549467250704765,
-0.10336979478597641,
-0.014857921749353409,
-0.05619535967707634,
0.026281120255589485,
-0.12859857082366943,
0.10086382925510406,
0.13115976750850677,
-0.08645102381706238,
-0.19823627173900604,
0.08751121908426285,
-2.865052952410301e-32,
-0.055488113313913345,
0.05116068571805954,
-0.024978162720799446,
-0.04486199840903282,
-0.06416905671358109,
0.048117391765117645,
-0.015664182603359222,
-0.07423225045204163,
-0.11721859872341156,
-0.10984586924314499,
-0.08522965759038925,
0.0013640300603583455,
0.0814603939652443,
0.08985880017280579,
-0.07027449458837509,
0.007331610657274723,
0.03666785731911659,
0.16359059512615204,
0.08428464829921722,
0.20211124420166016,
0.047795191407203674,
-0.015381050296127796,
0.08478321135044098,
-0.06667940318584442,
-0.14390386641025543,
-0.07118675857782364,
0.08023272454738617,
0.009595158509910107,
0.02983802743256092,
0.06254264712333679,
-0.15669770538806915,
0.1427229642868042,
0.036090776324272156,
0.08259232342243195,
-0.0833926871418953,
0.022090762853622437,
-0.14724451303482056,
-0.12499363720417023,
-0.13024771213531494,
0.0824413001537323,
-0.16613498330116272,
-0.027025436982512474,
0.08448003232479095,
0.054352451115846634,
0.288362056016922,
-0.09636113792657852,
-0.021337050944566727,
-0.08055058121681213,
0.17508511245250702,
0.09071233868598938,
-0.15667587518692017,
0.06989248842000961,
-0.10201965272426605,
0.006574589293450117,
-0.0014924918068572879,
0.15928640961647034,
0.167799174785614,
-0.007022517267614603,
-0.07807130366563797,
-0.07004434615373611,
0.06299133598804474,
0.19597138464450836,
0.02309097908437252,
-0.01958383247256279,
-0.023858429864048958,
0.027711955830454826,
0.07634032517671585,
0.0476544052362442,
0.04650865122675896,
0.09096964448690414,
-0.0671125277876854,
0.0657617375254631,
0.1729515641927719,
-0.03681587427854538,
-0.18525435030460358,
0.18332020938396454,
-0.12567682564258575,
0.1640882045030594,
0.02661558799445629,
0.17217615246772766,
-0.13878564536571503,
0.11471483111381531,
-0.02041461691260338,
0.019556909799575806,
0.11909078806638718,
-0.01027028076350689,
-0.042248234152793884,
0.02622995339334011,
-0.0933409258723259,
-0.17072969675064087,
-0.2516425549983978,
0.07880682498216629,
0.03907167539000511,
-0.01107928529381752,
0.21144552528858185,
0.2970240116119385,
-0.013914632610976696,
0.17527371644973755,
-0.042374856770038605,
-0.025471363216638565,
0.15172706544399261,
-0.019167622551321983,
0.15494492650032043,
0.15056002140045166,
0.1065664067864418,
0.014707714319229126,
0.01967734657227993,
0.02580319158732891,
-0.3122628629207611,
-0.09454395622015,
0.04502250626683235,
-0.05729040876030922,
0.037005916237831116,
0.1061650812625885,
0.09610359370708466,
-0.007800663821399212,
0.00495305797085166,
0.03447585552930832,
0.06434047222137451,
-0.043394312262535095,
-0.0923650860786438,
0.08822956681251526,
-0.006356063298881054,
-0.054524682462215424,
-0.02754945121705532,
0.08555129915475845,
0.06524597108364105,
-0.1005764901638031,
-0.02698361501097679,
-0.09085731208324432,
-0.008276424370706081,
-0.07324337214231491,
7.349764814534865e-7,
-0.018664656206965446,
0.052498314529657364,
0.0829635038971901,
-0.01641775481402874,
-0.09285689890384674,
0.13817058503627777,
0.027277885004878044,
0.0021759318187832832,
0.012066429480910301,
0.07592574506998062,
0.13919733464717865,
-0.14848549664020538,
-0.06684377789497375,
0.056887444108724594,
-0.0492921881377697,
-0.019839469343423843,
-0.10677438229322433,
0.08594724535942078,
-0.2487000674009323,
-0.013669159263372421,
0.2852412760257721,
0.2459760308265686,
0.10828457772731781,
-0.11878702789545059,
-0.00848810002207756,
0.042199913412332535,
-0.10150052607059479,
0.08492637425661087,
-0.0511113665997982,
0.09057458490133286,
-0.1069134771823883,
-0.03894774243235588,
0.025650998577475548,
0.061697907745838165,
-0.012506119906902313,
-0.009842073544859886,
-0.00955742597579956,
0.03114507347345352,
-0.01778431423008442,
-0.002763757249340415,
0.08648081868886948,
0.04250813275575638,
0.061647191643714905,
-0.1406095176935196,
0.17987050116062164,
0.05917885899543762,
-0.21770846843719482,
-0.03506733849644661,
-0.20318102836608887,
0.08922762423753738,
-0.06121097505092621,
0.0888284295797348,
-0.04098780080676079,
0.11589697748422623,
-0.11391943693161011,
0.027013812214136124,
0.02152833715081215,
-0.156294584274292,
0.09166288375854492,
0.07305514067411423,
-0.06123844534158707,
-0.029480768367648125,
0.05190278962254524,
0.020199835300445557,
0.056632108986377716,
-0.1894497275352478,
-0.006238419562578201,
1.7813782331640431e-34,
0.13288749754428864,
0.11160743981599808,
0.024928035214543343,
0.044582098722457886,
0.06028582528233528,
-0.05172201618552208,
0.16798190772533417,
0.007871871814131737,
0.23097294569015503,
-0.28047317266464233,
-0.1395101100206375
] |
https://github.com/huggingface/datasets/issues/2434 | Extend QuestionAnsweringExtractive template to handle nested columns | The current task API is somewhat deprecated (we plan to align it with `train eval index` at some point), so I think we can close this issue. | Currently the `QuestionAnsweringExtractive` task template and `preprare_for_task` only support "flat" features. We should extend the functionality to cover QA datasets like:
* `iapp_wiki_qa_squad`
* `parsinlu_reading_comprehension`
where the nested features differ with those from `squad` and trigger an `ArrowNotImplementedError`:
```
---------------------------------------------------------------------------
ArrowNotImplementedError Traceback (most recent call last)
<ipython-input-12-50e5b8f69c20> in <module>
----> 1 ds.prepare_for_task("question-answering-extractive")[0]
~/git/datasets/src/datasets/arrow_dataset.py in prepare_for_task(self, task)
1436 # We found a template so now flush `DatasetInfo` to skip the template update in `DatasetInfo.__post_init__`
1437 dataset.info.task_templates = None
-> 1438 dataset = dataset.cast(features=template.features)
1439 return dataset
1440
~/git/datasets/src/datasets/arrow_dataset.py in cast(self, features, batch_size, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, num_proc)
977 format = self.format
978 dataset = self.with_format("arrow")
--> 979 dataset = dataset.map(
980 lambda t: t.cast(schema),
981 batched=True,
~/git/datasets/src/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc)
1600
1601 if num_proc is None or num_proc == 1:
-> 1602 return self._map_single(
1603 function=function,
1604 with_indices=with_indices,
~/git/datasets/src/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
176 }
177 # apply actual function
--> 178 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
179 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
180 # re-apply format to the output
~/git/datasets/src/datasets/fingerprint.py in wrapper(*args, **kwargs)
395 # Call actual function
396
--> 397 out = func(self, *args, **kwargs)
398
399 # Update fingerprint of in-place transforms + update in-place history of transforms
~/git/datasets/src/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, desc)
1940 ) # Something simpler?
1941 try:
-> 1942 batch = apply_function_on_filtered_inputs(
1943 batch,
1944 indices,
~/git/datasets/src/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset)
1836 effective_indices = [i + offset for i in indices] if isinstance(indices, list) else indices + offset
1837 processed_inputs = (
-> 1838 function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1839 )
1840 if update_data is None:
~/git/datasets/src/datasets/arrow_dataset.py in <lambda>(t)
978 dataset = self.with_format("arrow")
979 dataset = dataset.map(
--> 980 lambda t: t.cast(schema),
981 batched=True,
982 batch_size=batch_size,
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.cast()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.ChunkedArray.cast()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/compute.py in cast(arr, target_type, safe)
241 else:
242 options = CastOptions.unsafe(target_type)
--> 243 return call_function("cast", [arr], options)
244
245
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/_compute.pyx in pyarrow._compute.call_function()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/_compute.pyx in pyarrow._compute.Function.call()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowNotImplementedError: Unsupported cast from struct<answer_end: list<item: int32>, answer_start: list<item: int32>, text: list<item: string>> to struct using function cast_struct
``` | 27 | Extend QuestionAnsweringExtractive template to handle nested columns
Currently the `QuestionAnsweringExtractive` task template and `preprare_for_task` only support "flat" features. We should extend the functionality to cover QA datasets like:
* `iapp_wiki_qa_squad`
* `parsinlu_reading_comprehension`
where the nested features differ with those from `squad` and trigger an `ArrowNotImplementedError`:
```
---------------------------------------------------------------------------
ArrowNotImplementedError Traceback (most recent call last)
<ipython-input-12-50e5b8f69c20> in <module>
----> 1 ds.prepare_for_task("question-answering-extractive")[0]
~/git/datasets/src/datasets/arrow_dataset.py in prepare_for_task(self, task)
1436 # We found a template so now flush `DatasetInfo` to skip the template update in `DatasetInfo.__post_init__`
1437 dataset.info.task_templates = None
-> 1438 dataset = dataset.cast(features=template.features)
1439 return dataset
1440
~/git/datasets/src/datasets/arrow_dataset.py in cast(self, features, batch_size, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, num_proc)
977 format = self.format
978 dataset = self.with_format("arrow")
--> 979 dataset = dataset.map(
980 lambda t: t.cast(schema),
981 batched=True,
~/git/datasets/src/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc)
1600
1601 if num_proc is None or num_proc == 1:
-> 1602 return self._map_single(
1603 function=function,
1604 with_indices=with_indices,
~/git/datasets/src/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
176 }
177 # apply actual function
--> 178 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
179 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
180 # re-apply format to the output
~/git/datasets/src/datasets/fingerprint.py in wrapper(*args, **kwargs)
395 # Call actual function
396
--> 397 out = func(self, *args, **kwargs)
398
399 # Update fingerprint of in-place transforms + update in-place history of transforms
~/git/datasets/src/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, desc)
1940 ) # Something simpler?
1941 try:
-> 1942 batch = apply_function_on_filtered_inputs(
1943 batch,
1944 indices,
~/git/datasets/src/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset)
1836 effective_indices = [i + offset for i in indices] if isinstance(indices, list) else indices + offset
1837 processed_inputs = (
-> 1838 function(*fn_args, effective_indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1839 )
1840 if update_data is None:
~/git/datasets/src/datasets/arrow_dataset.py in <lambda>(t)
978 dataset = self.with_format("arrow")
979 dataset = dataset.map(
--> 980 lambda t: t.cast(schema),
981 batched=True,
982 batch_size=batch_size,
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.cast()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.ChunkedArray.cast()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/compute.py in cast(arr, target_type, safe)
241 else:
242 options = CastOptions.unsafe(target_type)
--> 243 return call_function("cast", [arr], options)
244
245
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/_compute.pyx in pyarrow._compute.call_function()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/_compute.pyx in pyarrow._compute.Function.call()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda3/envs/datasets/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowNotImplementedError: Unsupported cast from struct<answer_end: list<item: int32>, answer_start: list<item: int32>, text: list<item: string>> to struct using function cast_struct
```
The current task API is somewhat deprecated (we plan to align it with `train eval index` at some point), so I think we can close this issue. | [
0.02476010099053383,
0.30089816451072693,
-0.12152041494846344,
0.05479956790804863,
0.14435003697872162,
0.14121124148368835,
0.09455528855323792,
0.15940751135349274,
-0.14277948439121246,
-0.03675396740436554,
-0.11645732074975967,
0.15459886193275452,
-0.07115785777568817,
0.04990213364362717,
0.02728421799838543,
-0.16272799670696259,
-0.018899545073509216,
-0.0966636911034584,
0.1105499118566513,
0.04626377671957016,
-0.11891767382621765,
0.07690103352069855,
0.04590030014514923,
-0.015206225216388702,
0.17243364453315735,
-0.17888371646404266,
-0.150041863322258,
0.04846993088722229,
-0.05710398778319359,
-0.03890249505639076,
0.16877681016921997,
0.0967649444937706,
-0.13007478415966034,
0.06926005333662033,
0.000005596520622930257,
0.02232229895889759,
0.0677223950624466,
-0.06786277890205383,
-0.03913974016904831,
-0.035835765302181244,
0.02781769260764122,
0.045764558017253876,
0.07933486253023148,
-0.09247462451457977,
-0.07684259116649628,
-0.0517306812107563,
-0.08395249396562576,
0.06111826002597809,
0.13601501286029816,
0.06249883025884628,
0.008215448819100857,
-0.004456589929759502,
0.051994502544403076,
-0.029421167448163033,
0.07408162951469421,
-0.007825990207493305,
-0.10838758200407028,
-0.017978273332118988,
-0.048922594636678696,
0.063624806702137,
-0.062131356447935104,
0.04983527958393097,
0.008009093813598156,
-0.01391876395791769,
0.15378828346729279,
-0.06287220865488052,
-0.08857434242963791,
-0.0495033860206604,
0.0069664884358644485,
0.1395522505044937,
-0.014003392308950424,
-0.003892155596986413,
-0.13486936688423157,
-0.05829235538840294,
0.06904228031635284,
-0.13509918749332428,
-0.1415524035692215,
-0.17225736379623413,
-0.11520124971866608,
-0.07335086166858673,
0.15407413244247437,
-0.05173688009381294,
-0.045613572001457214,
0.0069468203000724316,
-0.08893954753875732,
0.09091540426015854,
-0.02116338722407818,
0.02894088812172413,
-0.005577897187322378,
-0.0033028239849954844,
0.16682960093021393,
-0.00997396744787693,
-0.043573372066020966,
0.08475390821695328,
-0.16435788571834564,
-0.005625332240015268,
0.03921803459525108,
-0.3140409588813782,
0.017066968604922295,
0.04207281023263931,
0.1943383365869522,
0.042208481580019,
-0.03530944511294365,
-0.05917955935001373,
0.014813877642154694,
0.024966711178421974,
-0.06702475249767303,
-0.021471364423632622,
-0.27237874269485474,
0.059441275894641876,
-0.061415426433086395,
0.02986244112253189,
-0.04336914047598839,
-0.17197786271572113,
0.08764766156673431,
0.21653339266777039,
0.143055260181427,
0.2395569384098053,
0.08335675299167633,
-0.11057492345571518,
0.13229042291641235,
0.0618298314511776,
-0.21818634867668152,
0.09473379701375961,
0.10677741467952728,
0.05614476650953293,
-0.11559843271970749,
-0.01358542125672102,
-0.030423693358898163,
0.10429006814956665,
-0.07246699184179306,
-0.006394357420504093,
0.16344235837459564,
-0.074982188642025,
0.058619264513254166,
0.13088379800319672,
0.06961088627576828,
-0.1255580335855484,
0.1657792329788208,
-0.08633027225732803,
0.04832101985812187,
0.037554383277893066,
0.014153092168271542,
-0.06087861210107803,
0.06362681090831757,
-0.026462486013770103,
0.008888092823326588,
0.03565582260489464,
-0.11022564023733139,
0.004300539381802082,
-0.09909861534833908,
0.09210028499364853,
-0.19602102041244507,
0.014423250220716,
-0.040749695152044296,
0.03367917984724045,
-0.03277794271707535,
0.004179893992841244,
-0.10015226155519485,
-0.15904344618320465,
0.12556694447994232,
0.06370711326599121,
-0.0523228757083416,
-0.20425955951213837,
0.11245135217905045,
-0.015032988041639328,
0.0961117371916771,
0.09491362422704697,
-0.058324284851551056,
-0.0055291480384767056,
-0.08715540170669556,
-0.11804979294538498,
0.012514610774815083,
-0.13870428502559662,
-0.04078851267695427,
0.1501617729663849,
0.07555106282234192,
-0.05268039181828499,
0.020873550325632095,
-0.03412221372127533,
0.02343367226421833,
0.0881052315235138,
0.05374768376350403,
-0.018077263608574867,
0.06250949949026108,
0.09968460351228714,
-0.07732830941677094,
0.07522384822368622,
-0.10245266556739807,
-0.19693352282047272,
0.05385689064860344,
0.05963423475623131,
-0.06171245500445366,
0.03336790204048157,
-0.003988343290984631,
0.009945409372448921,
-0.17552967369556427,
-0.1664184182882309,
0.0761452317237854,
-0.13018196821212769,
0.0010240217670798302,
-0.11666769534349442,
0.25056514143943787,
0.018221985548734665,
0.11179545521736145,
-0.17998415231704712,
-0.3583684265613556,
0.10394030064344406,
-0.11197351664304733,
-0.07623936235904694,
-0.11994554102420807,
-0.05727831646800041,
0.10258803516626358,
0.018457811325788498,
-0.20807713270187378,
-0.054492853581905365,
0.12287934869527817,
-0.16140210628509521,
-0.13820187747478485,
-0.14582373201847076,
0.03746514022350311,
-0.16803981363773346,
0.09743930399417877,
0.09141934663057327,
0.046908292919397354,
-0.018118537962436676,
0.13279008865356445,
0.03865109011530876,
0.11872901767492294,
0.11067238450050354,
-0.0007716725231148303,
0.07638093084096909,
0.023737000301480293,
-0.15317580103874207,
-0.19166022539138794,
-0.037998199462890625,
-0.07239815592765808,
-0.26495790481567383,
-0.10250387340784073,
-0.041260719299316406,
-0.17275260388851166,
-0.03417806327342987,
-0.1292840540409088,
0.0313597247004509,
-0.07358818501234055,
-0.042808882892131805,
-0.0029571233317255974,
0.08718129992485046,
-0.043753188103437424,
-0.03764054551720619,
0.10950672626495361,
-0.04777425155043602,
-0.07955160737037659,
0.04977680370211601,
-0.08726894110441208,
-0.04472464323043823,
-0.02445964515209198,
-0.024813922122120857,
-0.03960036113858223,
0.1089838370680809,
0.09458090364933014,
0.14032287895679474,
-0.09018062800168991,
-0.10643438994884491,
0.23270457983016968,
-0.03947201743721962,
0.05082874000072479,
-0.07346051186323166,
-0.04553191363811493,
0.05130114406347275,
0.11402846872806549,
0.010362834669649601,
0.08876722306013107,
-0.03300686925649643,
0.029002636671066284,
-0.1812836080789566,
0.04626985266804695,
0.1110818088054657,
0.1887510120868683,
0.06997278332710266,
-0.09808021783828735,
0.08169358223676682,
0.0445101261138916,
-0.08890332281589508,
0.03382816165685654,
0.17816689610481262,
0.0020743762142956257,
0.012247524224221706,
-0.07555541396141052,
-0.02698943205177784,
-0.03071782924234867,
-0.0035929670557379723,
0.1391972303390503,
-0.06691789627075195,
-0.04823097586631775,
-0.03849993646144867,
-0.018335742875933647,
0.044455915689468384,
-0.09913865476846695,
-0.102763831615448,
-0.016641318798065186,
-0.022653993219137192,
0.13110584020614624,
0.11614766716957092,
-0.0031010292004793882,
-0.029431812465190887,
0.1653517633676529,
0.2883845865726471,
0.027505267411470413,
-0.27198687195777893,
-0.0744280219078064,
-0.046630632132291794,
-0.10371270775794983,
-0.050192855298519135,
-0.056357335299253464,
0.0011429046280682087,
-0.09524358063936234,
-0.26370909810066223,
0.05587855726480484,
0.1481178104877472,
0.10947791486978531,
0.012005245313048363,
0.028290722519159317,
-0.03625429421663284,
0.033932335674762726,
-0.21672803163528442,
0.0020661053713411093,
-0.22257836163043976,
0.11519578844308853,
0.019218409433960915,
-0.05039059743285179,
0.030870629474520683,
-0.01240850705653429,
-0.17533475160598755,
0.029578106477856636,
-0.18338395655155182,
-0.09371708333492279,
0.15294529497623444,
0.03627901151776314,
-0.08309687674045563,
0.06505539268255234,
0.023013655096292496,
-0.18111972510814667,
0.02062295936048031,
0.10803692042827606,
-0.10382101684808731,
0.07427838444709778,
0.041821759194135666,
0.2026088982820511,
-0.11739138513803482,
-0.07947123050689697,
0.1074010506272316,
0.05016546696424484,
-0.07278892397880554,
-0.10452229529619217,
0.3344804048538208,
0.008314835838973522,
0.2494945079088211,
-0.17436249554157257,
0.07313640415668488,
0.09140636771917343,
0.1257036179304123,
0.19484274089336395,
-0.08471742272377014,
0.06742846965789795,
0.0851486325263977,
0.14873911440372467,
0.0062395366840064526,
-0.043189678341150284,
-0.04023057594895363,
0.0712837278842926,
-0.1387181580066681,
0.024379992857575417,
0.10791497677564621,
0.028809577226638794,
-0.13517214357852936,
0.05875702202320099,
-0.2089196890592575,
0.14166735112667084,
-0.08169159293174744,
0.1402433216571808,
-0.1915091723203659,
0.03164510428905487,
0.05877384543418884,
0.052701063454151154,
-0.08515802770853043,
0.030228886753320694,
-0.04453229531645775,
-0.1778518110513687,
0.12110103666782379,
-0.03295273706316948,
-0.0503862239420414,
-0.027963876724243164,
-0.10965310782194138,
-0.12171272188425064,
0.01950383000075817,
0.0912807434797287,
0.10159841924905777,
0.03841850906610489,
0.0724637359380722,
-0.09934932738542557,
-0.05200503394007683,
-0.002270062454044819,
-0.038657911121845245,
0.07626356929540634,
-0.058835797011852264,
0.0687379390001297,
0.052275650203228,
0.15170714259147644,
0.007868826389312744,
-0.12216773629188538,
-0.10075357556343079,
-0.12647505104541779,
-0.015257841907441616,
0.1295805424451828,
0.004083635751157999,
-0.102277971804142,
-0.03911083936691284,
0.11976595222949982,
-0.1938914954662323,
0.032546453177928925,
0.07100662589073181,
0.23883666098117828,
0.09722772240638733,
0.1643461287021637,
-0.17241713404655457,
-0.10622966289520264,
0.024589968845248222,
0.08387231081724167,
0.0027562130708247423,
0.001836232142522931,
0.1161903589963913,
0.07159724086523056,
-0.0875140056014061,
-0.07767409831285477,
-0.0649535208940506,
0.1790885627269745,
-0.15041187405586243,
-0.05417148396372795,
-0.35173937678337097,
-0.13508057594299316,
0.023604631423950195,
0.2427322417497635,
-0.19457374513149261,
0.08819373697042465,
-0.11033826321363449,
-0.13862095773220062,
-0.053477708250284195,
-0.09979237616062164,
0.0587213858962059,
-0.158743754029274,
-0.0793156623840332,
-0.055378545075654984,
-0.04348810762166977,
0.03787054866552353,
-0.08487696200609207,
0.04002454876899719,
-0.04112929105758667,
-0.17367692291736603,
0.09934849292039871,
0.0016938841436058283,
-0.06834322214126587,
0.1057031899690628,
-0.06930077075958252,
-0.004981808830052614,
0.21804115176200867,
0.15814504027366638,
-0.14899227023124695,
-0.00759085500612855,
0.038883026689291,
-0.05254107713699341,
0.05400339141488075,
0.16854754090309143,
-0.09195161610841751,
0.2255445271730423,
0.013869849033653736,
0.04978416487574577,
0.0048929499462246895,
-0.014526806771755219,
0.01685616746544838,
0.17064477503299713,
0.07908003032207489,
0.22267639636993408,
-0.07920914888381958,
-0.049115996807813644,
0.06394773721694946,
-0.18021894991397858,
-0.0003435484250076115,
-0.10133692622184753,
-0.0007800951134413481,
-0.14244811236858368,
-0.25602051615715027,
0.060448914766311646,
-0.03517047315835953,
0.00620254734531045,
0.05916626378893852,
-0.010534994304180145,
0.14479102194309235,
-0.12476091086864471,
0.004975971300154924,
-0.12220863997936249,
-0.054245494306087494,
0.12287017703056335,
0.09414825588464737,
-0.026928720995783806,
-0.11795719712972641,
-0.002387935994192958,
0.11601662635803223,
-0.006085488945245743,
0.031213004142045975,
-0.04167312756180763,
0.0014500566758215427,
-0.14325739443302155,
-0.12063989788293839,
-0.0074157267808914185,
0.06599761545658112,
-0.15538571774959564,
-0.001332396175712347,
0.05010828375816345,
0.1996709406375885,
-0.10402031987905502,
0.07868973165750504,
0.0060173519887030125,
0.03999924287199974,
0.11088430881500244,
0.15725862979888916,
0.03265419602394104,
0.016742948442697525,
-0.0686253011226654,
0.16752934455871582,
-0.016074232757091522,
0.21354003250598907,
0.12458442151546478,
0.0074426596984267235,
-0.0925552025437355,
-0.06533846259117126,
0.08340949565172195,
-0.033790893852710724,
0.004793120548129082,
0.09516624361276627,
0.027320951223373413,
-0.14214728772640228,
-0.1318628191947937,
0.10073596239089966,
-0.0068549467250704765,
-0.10336979478597641,
-0.014857921749353409,
-0.05619535967707634,
0.026281120255589485,
-0.12859857082366943,
0.10086382925510406,
0.13115976750850677,
-0.08645102381706238,
-0.19823627173900604,
0.08751121908426285,
-2.865052952410301e-32,
-0.055488113313913345,
0.05116068571805954,
-0.024978162720799446,
-0.04486199840903282,
-0.06416905671358109,
0.048117391765117645,
-0.015664182603359222,
-0.07423225045204163,
-0.11721859872341156,
-0.10984586924314499,
-0.08522965759038925,
0.0013640300603583455,
0.0814603939652443,
0.08985880017280579,
-0.07027449458837509,
0.007331610657274723,
0.03666785731911659,
0.16359059512615204,
0.08428464829921722,
0.20211124420166016,
0.047795191407203674,
-0.015381050296127796,
0.08478321135044098,
-0.06667940318584442,
-0.14390386641025543,
-0.07118675857782364,
0.08023272454738617,
0.009595158509910107,
0.02983802743256092,
0.06254264712333679,
-0.15669770538806915,
0.1427229642868042,
0.036090776324272156,
0.08259232342243195,
-0.0833926871418953,
0.022090762853622437,
-0.14724451303482056,
-0.12499363720417023,
-0.13024771213531494,
0.0824413001537323,
-0.16613498330116272,
-0.027025436982512474,
0.08448003232479095,
0.054352451115846634,
0.288362056016922,
-0.09636113792657852,
-0.021337050944566727,
-0.08055058121681213,
0.17508511245250702,
0.09071233868598938,
-0.15667587518692017,
0.06989248842000961,
-0.10201965272426605,
0.006574589293450117,
-0.0014924918068572879,
0.15928640961647034,
0.167799174785614,
-0.007022517267614603,
-0.07807130366563797,
-0.07004434615373611,
0.06299133598804474,
0.19597138464450836,
0.02309097908437252,
-0.01958383247256279,
-0.023858429864048958,
0.027711955830454826,
0.07634032517671585,
0.0476544052362442,
0.04650865122675896,
0.09096964448690414,
-0.0671125277876854,
0.0657617375254631,
0.1729515641927719,
-0.03681587427854538,
-0.18525435030460358,
0.18332020938396454,
-0.12567682564258575,
0.1640882045030594,
0.02661558799445629,
0.17217615246772766,
-0.13878564536571503,
0.11471483111381531,
-0.02041461691260338,
0.019556909799575806,
0.11909078806638718,
-0.01027028076350689,
-0.042248234152793884,
0.02622995339334011,
-0.0933409258723259,
-0.17072969675064087,
-0.2516425549983978,
0.07880682498216629,
0.03907167539000511,
-0.01107928529381752,
0.21144552528858185,
0.2970240116119385,
-0.013914632610976696,
0.17527371644973755,
-0.042374856770038605,
-0.025471363216638565,
0.15172706544399261,
-0.019167622551321983,
0.15494492650032043,
0.15056002140045166,
0.1065664067864418,
0.014707714319229126,
0.01967734657227993,
0.02580319158732891,
-0.3122628629207611,
-0.09454395622015,
0.04502250626683235,
-0.05729040876030922,
0.037005916237831116,
0.1061650812625885,
0.09610359370708466,
-0.007800663821399212,
0.00495305797085166,
0.03447585552930832,
0.06434047222137451,
-0.043394312262535095,
-0.0923650860786438,
0.08822956681251526,
-0.006356063298881054,
-0.054524682462215424,
-0.02754945121705532,
0.08555129915475845,
0.06524597108364105,
-0.1005764901638031,
-0.02698361501097679,
-0.09085731208324432,
-0.008276424370706081,
-0.07324337214231491,
7.349764814534865e-7,
-0.018664656206965446,
0.052498314529657364,
0.0829635038971901,
-0.01641775481402874,
-0.09285689890384674,
0.13817058503627777,
0.027277885004878044,
0.0021759318187832832,
0.012066429480910301,
0.07592574506998062,
0.13919733464717865,
-0.14848549664020538,
-0.06684377789497375,
0.056887444108724594,
-0.0492921881377697,
-0.019839469343423843,
-0.10677438229322433,
0.08594724535942078,
-0.2487000674009323,
-0.013669159263372421,
0.2852412760257721,
0.2459760308265686,
0.10828457772731781,
-0.11878702789545059,
-0.00848810002207756,
0.042199913412332535,
-0.10150052607059479,
0.08492637425661087,
-0.0511113665997982,
0.09057458490133286,
-0.1069134771823883,
-0.03894774243235588,
0.025650998577475548,
0.061697907745838165,
-0.012506119906902313,
-0.009842073544859886,
-0.00955742597579956,
0.03114507347345352,
-0.01778431423008442,
-0.002763757249340415,
0.08648081868886948,
0.04250813275575638,
0.061647191643714905,
-0.1406095176935196,
0.17987050116062164,
0.05917885899543762,
-0.21770846843719482,
-0.03506733849644661,
-0.20318102836608887,
0.08922762423753738,
-0.06121097505092621,
0.0888284295797348,
-0.04098780080676079,
0.11589697748422623,
-0.11391943693161011,
0.027013812214136124,
0.02152833715081215,
-0.156294584274292,
0.09166288375854492,
0.07305514067411423,
-0.06123844534158707,
-0.029480768367648125,
0.05190278962254524,
0.020199835300445557,
0.056632108986377716,
-0.1894497275352478,
-0.006238419562578201,
1.7813782331640431e-34,
0.13288749754428864,
0.11160743981599808,
0.024928035214543343,
0.044582098722457886,
0.06028582528233528,
-0.05172201618552208,
0.16798190772533417,
0.007871871814131737,
0.23097294569015503,
-0.28047317266464233,
-0.1395101100206375
] |
https://github.com/huggingface/datasets/issues/2431 | DuplicatedKeysError when trying to load adversarial_qa | Thanks for reporting !
#2433 fixed the issue, thanks @mariosasko :)
We'll do a patch release soon of the library.
In the meantime, you can use the fixed version of adversarial_qa by adding `script_version="master"` in `load_dataset` | ## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
dataset = load_dataset('adversarial_qa', 'adversarialQA')
```
## Expected results
The dataset should be loaded into memory
## Actual results
>DuplicatedKeysError: FAILURE TO GENERATE DATASET !
>Found duplicate Key: 4d3cb5677211ee32895ca9c66dad04d7152254d4
>Keys should be unique and deterministic in nature
>
>
>During handling of the above exception, another exception occurred:
>
>DuplicatedKeysError Traceback (most recent call last)
>
>/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in check_duplicate_keys(self)
> 347 for hash, key in self.hkey_record:
> 348 if hash in tmp_record:
>--> 349 raise DuplicatedKeysError(key)
> 350 else:
> 351 tmp_record.add(hash)
>
>DuplicatedKeysError: FAILURE TO GENERATE DATASET !
>Found duplicate Key: 4d3cb5677211ee32895ca9c66dad04d7152254d4
>Keys should be unique and deterministic in nature
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.4.109+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyArrow version: 3.0.0
| 36 | DuplicatedKeysError when trying to load adversarial_qa
## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
dataset = load_dataset('adversarial_qa', 'adversarialQA')
```
## Expected results
The dataset should be loaded into memory
## Actual results
>DuplicatedKeysError: FAILURE TO GENERATE DATASET !
>Found duplicate Key: 4d3cb5677211ee32895ca9c66dad04d7152254d4
>Keys should be unique and deterministic in nature
>
>
>During handling of the above exception, another exception occurred:
>
>DuplicatedKeysError Traceback (most recent call last)
>
>/usr/local/lib/python3.7/dist-packages/datasets/arrow_writer.py in check_duplicate_keys(self)
> 347 for hash, key in self.hkey_record:
> 348 if hash in tmp_record:
>--> 349 raise DuplicatedKeysError(key)
> 350 else:
> 351 tmp_record.add(hash)
>
>DuplicatedKeysError: FAILURE TO GENERATE DATASET !
>Found duplicate Key: 4d3cb5677211ee32895ca9c66dad04d7152254d4
>Keys should be unique and deterministic in nature
## Environment info
- `datasets` version: 1.7.0
- Platform: Linux-5.4.109+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyArrow version: 3.0.0
Thanks for reporting !
#2433 fixed the issue, thanks @mariosasko :)
We'll do a patch release soon of the library.
In the meantime, you can use the fixed version of adversarial_qa by adding `script_version="master"` in `load_dataset` | [
0.20489519834518433,
0.10390983521938324,
0.01614033244550228,
0.07654786109924316,
0.21884441375732422,
0.015248168259859085,
0.09963420778512955,
0.01132541336119175,
-0.006613687612116337,
0.027905074879527092,
-0.02391965128481388,
-0.05869448557496071,
-0.057240910828113556,
0.012227550148963928,
0.10308627784252167,
0.03583775833249092,
-0.01448865793645382,
0.017205029726028442,
-0.05316287651658058,
-0.08452732861042023,
-0.1583227515220642,
0.030863743275403976,
0.05823928490281105,
-0.0479087196290493,
-0.043070532381534576,
-0.14095273613929749,
-0.09681659191846848,
-0.02358855865895748,
0.0321183018386364,
-0.1414664387702942,
0.11566024273633957,
-0.030604619532823563,
-0.08614815771579742,
0.26671740412712097,
0.000005757625785918208,
0.07932350039482117,
0.2524491846561432,
0.01594122126698494,
-0.06083272770047188,
0.04217049852013588,
0.02356131374835968,
0.09324243664741516,
0.0753573477268219,
0.0314021036028862,
-0.06502185016870499,
-0.2104485183954239,
-0.12564128637313843,
0.006382945459336042,
0.08471249043941498,
0.09349780529737473,
0.04998016729950905,
-0.0014198500430211425,
0.1213536486029625,
-0.15320128202438354,
0.11238478869199753,
-0.23858319222927094,
-0.0006593428552150726,
0.15439333021640778,
-0.24668355286121368,
-0.08156188577413559,
0.07999180257320404,
0.1314581334590912,
0.023593956604599953,
-0.015569156967103481,
-0.11459437757730484,
0.05889073759317398,
0.010861624032258987,
-0.0744362324476242,
0.10685926675796509,
0.25891533493995667,
-0.09312726557254791,
0.02961929328739643,
-0.014455614611506462,
0.00543559854850173,
-0.027064209803938866,
-0.1244133859872818,
0.04427146911621094,
0.0615234337747097,
-0.03185999020934105,
0.022390015423297882,
-0.01394880935549736,
0.03180387243628502,
-0.01327480562031269,
-0.09672851115465164,
-0.06219327449798584,
-0.200828418135643,
-0.07514642924070358,
0.2210020124912262,
0.018062623217701912,
-0.07261320948600769,
0.09320497512817383,
-0.06364817917346954,
-0.15256530046463013,
-0.06863024085760117,
-0.14270293712615967,
-0.0046325139701366425,
-0.11747735738754272,
-0.21023935079574585,
0.0009183188085444272,
-0.040584444999694824,
0.080557681620121,
-0.04758341610431671,
-0.0424981415271759,
-0.04090249165892601,
-0.004621918313205242,
0.0748702809214592,
-0.040701162070035934,
0.15397126972675323,
0.01709872856736183,
-0.013574565760791302,
-0.053717318922281265,
0.03466234728693962,
0.03878897801041603,
-0.021559536457061768,
0.17806382477283478,
0.048948049545288086,
0.18874701857566833,
0.14811086654663086,
0.09048539400100708,
0.07639175653457642,
-0.08593105524778366,
0.0714598223567009,
-0.14101776480674744,
0.16351595520973206,
0.14217209815979004,
-0.07455211132764816,
-0.060873180627822876,
0.11780255287885666,
-0.11805117875337601,
0.11859431117773056,
-0.026917804032564163,
0.06693460792303085,
0.04355800896883011,
0.012394226156175137,
0.040368106216192245,
0.012375676073133945,
-0.05549909919500351,
0.05523904412984848,
-0.01570453867316246,
0.0465964749455452,
0.0867188349366188,
-0.0879744216799736,
-0.15670351684093475,
0.13141383230686188,
0.08571620285511017,
0.08672285825014114,
0.09498482942581177,
-0.09925878047943115,
0.011001515202224255,
0.027712849900126457,
-0.09596463292837143,
0.06824520230293274,
-0.10102278739213943,
0.1624576300382614,
0.15055081248283386,
0.1310492306947708,
0.08562284708023071,
-0.07991194725036621,
-0.07775731384754181,
0.03218911215662956,
0.04564618319272995,
-0.026930972933769226,
-0.09795480966567993,
-0.1860160380601883,
0.09013050049543381,
0.06390118598937988,
0.08162039518356323,
-0.08860588818788528,
-0.16578462719917297,
0.017714397981762886,
0.026743896305561066,
0.07655760645866394,
-0.19441884756088257,
-0.0028584508690983057,
-0.1799512654542923,
-0.048607248812913895,
-0.07530650496482849,
-0.02617618441581726,
-0.26034995913505554,
0.000490023463498801,
0.05296511948108673,
-0.07118925452232361,
-0.10348547250032425,
-0.0482734814286232,
0.09381477534770966,
-0.0383027046918869,
-0.08371935039758682,
-0.050110943615436554,
-0.08144985884428024,
-0.09445487707853317,
-0.051766104996204376,
0.06257836520671844,
0.0038014985620975494,
-0.02564622461795807,
0.03847985714673996,
-0.035878878086805344,
0.03594584763050079,
-0.24903972446918488,
-0.09228454530239105,
-0.1808755099773407,
-0.03678866848349571,
-0.14198805391788483,
-0.06368721276521683,
-0.03291300684213638,
0.0014945867005735636,
0.12711600959300995,
-0.10941039770841599,
0.21405820548534393,
-0.11043667793273926,
-0.038264088332653046,
-0.08597251027822495,
-0.07778649032115936,
0.023671528324484825,
0.07095291465520859,
-0.2721095681190491,
-0.1526578813791275,
-0.07075855880975723,
0.0829925388097763,
-0.10442264378070831,
0.2193000316619873,
-0.003141087479889393,
0.09740657359361649,
0.03509924188256264,
0.003937226254492998,
-0.11092309653759003,
-0.12677551805973053,
-0.017322465777397156,
0.07257576286792755,
0.08986588567495346,
0.06162634119391441,
-0.046453092247247696,
0.044098544865846634,
0.0652758777141571,
-0.029383840039372444,
-0.049385569989681244,
0.022045476362109184,
-0.0300693791359663,
-0.2727121412754059,
0.13198889791965485,
-0.04528355970978737,
-0.05809794366359711,
0.06816977262496948,
-0.034659989178180695,
-0.09651777893304825,
0.06128105893731117,
0.026291508227586746,
-0.052438631653785706,
0.17440220713615417,
-0.03514965623617172,
0.024595044553279877,
0.12014947831630707,
0.02184899151325226,
-0.07670766860246658,
0.04032640531659126,
-0.13987749814987183,
-0.06665655225515366,
0.02399689517915249,
0.134604349732399,
-0.01635405607521534,
0.06050551310181618,
0.10940555483102798,
0.01355071272701025,
0.12285437434911728,
-0.0845004990696907,
0.050539467483758926,
-0.007607043255120516,
-0.01974083110690117,
0.13507339358329773,
-0.009844599291682243,
0.0685284212231636,
0.076286680996418,
0.04351946711540222,
-0.056855928152799606,
-0.020323414355516434,
0.016307471320033073,
-0.09688252210617065,
-0.020070964470505714,
0.043084517121315,
0.08734282106161118,
-0.010909480974078178,
-0.11933678388595581,
0.11151949316263199,
0.11330392211675644,
-0.006777135189622641,
0.10755391418933868,
0.07976790517568588,
-0.10862165689468384,
-0.05476666986942291,
-0.085416279733181,
0.12091788649559021,
0.10672346502542496,
-0.031247569248080254,
0.009761249646544456,
-0.166279137134552,
0.05781381577253342,
0.08676037937402725,
0.07217869907617569,
0.03549247607588768,
-0.11388539522886276,
0.14846739172935486,
0.14426179230213165,
0.04605129733681679,
0.06762854009866714,
-0.00645332969725132,
0.08820083737373352,
-0.032728780061006546,
0.23870453238487244,
0.08375396579504013,
-0.013728499412536621,
-0.08238812536001205,
0.08477146923542023,
-0.13117064535617828,
0.1501477062702179,
0.183003231883049,
0.14536398649215698,
0.021806422621011734,
-0.12774544954299927,
-0.25637784600257874,
0.02722868137061596,
0.046772222965955734,
0.05166563764214516,
0.14158780872821808,
-0.15347491204738617,
0.039214540272951126,
-0.007405584212392569,
-0.014251121319830418,
-0.12946006655693054,
0.090205118060112,
0.09317910671234131,
-0.038141295313835144,
0.07268467545509338,
-0.0807904303073883,
-0.09743421524763107,
-0.22398847341537476,
-0.0844854786992073,
-0.10383971035480499,
-0.0923977717757225,
0.08997347205877304,
0.15398511290550232,
-0.005847712978720665,
-0.04367205128073692,
0.05303088575601578,
-0.22341594099998474,
-0.03369251266121864,
0.12233986705541611,
-0.1562766283750534,
-0.12045124173164368,
-0.13403105735778809,
0.010591314174234867,
-0.05420329049229622,
-0.01863262802362442,
0.15719129145145416,
0.01889730431139469,
-0.11383872479200363,
-0.044803254306316376,
0.1288711130619049,
0.05322090536355972,
-0.11131692677736282,
-0.14502400159835815,
0.08000024408102036,
0.14458639919757843,
0.0984189510345459,
0.10828898847103119,
0.16080814599990845,
-0.006167904939502478,
0.004164197947829962,
-0.03074588254094124,
-0.06979759782552719,
0.014058644883334637,
-0.10033679753541946,
-0.06510461121797562,
0.028696076944470406,
0.1112671047449112,
-0.04642155021429062,
-0.05985068157315254,
0.0005085397278890014,
0.07216420024633408,
-0.0016909959958866239,
0.028620751574635506,
-0.08137096464633942,
0.10165947675704956,
-0.15816783905029297,
-0.10911082476377487,
0.08463110029697418,
0.1577628254890442,
0.04275314882397652,
0.09156420081853867,
0.005632838234305382,
-0.15590503811836243,
-0.08894826471805573,
0.03205709904432297,
-0.032370828092098236,
-0.12495376169681549,
0.009716639295220375,
-0.052852388471364975,
-0.16347309947013855,
0.19226481020450592,
0.13862381875514984,
0.043290719389915466,
0.010115135461091995,
-0.05028358846902847,
0.25083127617836,
-0.06743230670690536,
0.046849325299263,
0.08532330393791199,
0.045675087720155716,
0.028656484559178352,
0.0059304325841367245,
0.08527310937643051,
-0.03573359549045563,
-0.011015561409294605,
-0.009646142832934856,
0.03404201194643974,
0.18486608564853668,
0.23373369872570038,
-0.05107277259230614,
-0.07888706773519516,
-0.1910036951303482,
0.024654446169734,
-0.1920425295829773,
-0.17013725638389587,
-0.109842449426651,
-0.08118648082017899,
0.08376062661409378,
-0.03382892906665802,
-0.04312276095151901,
0.017374509945511818,
-0.051819223910570145,
0.12385236471891403,
0.05351480841636658,
0.07961168140172958,
0.010686973109841347,
0.22217747569084167,
0.004096313379704952,
-0.022694144397974014,
-0.023732304573059082,
0.35756707191467285,
-0.16628344357013702,
-0.09138081967830658,
-0.14420108497142792,
-0.19290173053741455,
-0.0495365709066391,
-0.02250216156244278,
-0.14303766191005707,
0.22898513078689575,
-0.19173754751682281,
-0.09358761459589005,
-0.006851418409496546,
-0.053100742399692535,
-0.038634445518255234,
-0.052243638783693314,
-0.07868350297212601,
-0.07522948086261749,
-0.24026091396808624,
0.12051182985305786,
-0.07195910066366196,
0.18602749705314636,
-0.20247706770896912,
-0.016703831031918526,
0.14594413340091705,
-0.21215975284576416,
-0.0575411319732666,
-0.050873514264822006,
0.11998595297336578,
0.04263684153556824,
-0.12105760723352432,
0.2035396695137024,
0.06622374057769775,
0.029377490282058716,
-0.03412288799881935,
-0.14079280197620392,
0.11813539266586304,
-0.028888216242194176,
-0.08173120766878128,
0.11845521628856659,
0.038498591631650925,
0.01633707620203495,
-0.044808607548475266,
-0.02385525032877922,
-0.07707510143518448,
0.27622339129447937,
0.011154748499393463,
0.10144642740488052,
0.0051207225769758224,
-0.08479228615760803,
-0.017658773809671402,
0.07421363890171051,
0.02467190846800804,
-0.08389241993427277,
0.07834510505199432,
-0.07524454593658447,
-0.08362545073032379,
0.09103259444236755,
-0.03400838375091553,
0.0850081592798233,
-0.01805924065411091,
0.007627673912793398,
0.040189389139413834,
-0.04684782773256302,
0.3004516065120697,
0.037713535130023956,
-0.03180193156003952,
0.06819847971200943,
0.17974744737148285,
0.057561129331588745,
-0.08464650809764862,
-0.0852876752614975,
-0.2390875667333603,
-0.039957646280527115,
-0.24665102362632751,
-0.031199293211102486,
0.049182258546352386,
-0.08239904791116714,
-0.22998999059200287,
0.05844007059931755,
-0.021147001534700394,
0.10543137043714523,
0.1359909027814865,
0.0858173668384552,
0.08791910111904144,
0.04259118065237999,
-0.0018222300568595529,
0.007535418029874563,
0.009474772028625011,
0.11023031175136566,
-0.037748273462057114,
-0.07352257519960403,
0.06623338162899017,
0.11689358204603195,
0.21160109341144562,
0.04941756650805473,
0.23437117040157318,
0.10054604709148407,
0.03944092616438866,
-0.17317233979701996,
0.03629320114850998,
0.2743174433708191,
-0.14798825979232788,
-0.0040708864107728004,
-0.049345891922712326,
0.13047245144844055,
-0.03898750618100166,
-0.06364341080188751,
0.07781027257442474,
0.08541616797447205,
0.031097525730729103,
-0.056852567940950394,
0.04843498766422272,
-0.1861693263053894,
-0.11689645797014236,
-0.009963314048945904,
0.22605355083942413,
0.021209044381976128,
-0.09555231779813766,
0.21936260163784027,
-2.673930501404456e-32,
-0.018832456320524216,
-0.09728716313838959,
-0.08110454678535461,
-0.26144543290138245,
-0.24422521889209747,
0.12533801794052124,
-0.13624177873134613,
-0.012110217474400997,
-0.10495682060718536,
-0.10165000706911087,
-0.022006122395396233,
-0.06812719255685806,
0.1013513132929802,
-0.03810828924179077,
-0.034597527235746384,
-0.02901165559887886,
-0.06308892369270325,
0.08518102020025253,
0.11210332810878754,
0.22837400436401367,
0.10597796738147736,
0.01771276816725731,
-0.017139960080385208,
0.02340354397892952,
0.020936986431479454,
-0.14218738675117493,
-0.021822215989232063,
-0.12693893909454346,
-0.014393649995326996,
0.031636692583560944,
-0.03604895621538162,
0.048740994185209274,
0.023093275725841522,
0.025987502187490463,
-0.12366872280836105,
-0.1790541261434555,
-0.05283830687403679,
-0.23263892531394958,
-0.11256595700979233,
-0.002302038948982954,
-0.11297482252120972,
0.10678804665803909,
0.10441607981920242,
-0.2188517302274704,
-0.018490159884095192,
-0.014259200543165207,
-0.06522583216428757,
0.017660638317465782,
-0.21273620426654816,
-0.15776193141937256,
0.04576164111495018,
-0.011335134506225586,
0.005011178553104401,
0.1092865988612175,
-0.09622421115636826,
-0.08819205313920975,
-0.0008393307216465473,
0.021223021671175957,
-0.29069042205810547,
0.0695265606045723,
0.06080343574285507,
-0.07598462700843811,
-0.049825072288513184,
0.013175849802792072,
-0.03722133859992027,
0.14951862394809723,
0.22698068618774414,
-0.09398260712623596,
0.15126073360443115,
0.07209791988134384,
-0.06296536326408386,
0.13816015422344208,
-0.050615277141332626,
0.12408319860696793,
-0.08282213658094406,
-0.23283419013023376,
-0.110350601375103,
0.14420928061008453,
0.004188064485788345,
0.011682232841849327,
0.0018493051175028086,
-0.036409664899110794,
-0.03634855896234512,
-0.05270657315850258,
-0.12743644416332245,
-0.0014104461297392845,
-0.01976369507610798,
-0.020993968471884727,
-0.0018218006007373333,
-0.12561042606830597,
-0.04308883845806122,
0.06015254929661751,
-0.009755171835422516,
-0.20748519897460938,
-0.03680848330259323,
0.11865291744470596,
-0.011163853108882904,
0.04904614016413689,
-0.1304156631231308,
0.041883111000061035,
0.1317107379436493,
-0.07295477390289307,
-0.011220925487577915,
0.0889301747083664,
0.006038374733179808,
0.027732636779546738,
0.027621464803814888,
0.07983548194169998,
-0.07823367416858673,
0.06232060119509697,
0.05321449413895607,
-0.11408742517232895,
0.1716400384902954,
0.10981770604848862,
0.10059709846973419,
-0.028654811903834343,
0.03433322533965111,
0.005713901482522488,
0.26523494720458984,
0.10581564903259277,
0.10403205454349518,
-0.021746011450886726,
-0.14181973040103912,
0.15206070244312286,
-0.06825674325227737,
0.24272026121616364,
-0.16962753236293793,
-0.1210436299443245,
0.1142519935965538,
-0.10632603615522385,
0.05247901380062103,
-0.3412329852581024,
7.674951234548644e-7,
-0.21963146328926086,
0.0820433720946312,
-0.013261716812849045,
-0.13845323026180267,
-0.0843701958656311,
0.1474493443965912,
-0.10029809921979904,
0.10543329268693924,
-0.15697097778320312,
0.1790188103914261,
-0.007067405618727207,
-0.04526393488049507,
-0.00686847697943449,
0.0023822265211492777,
0.172110915184021,
0.1501210629940033,
-0.21253947913646698,
0.11215239018201828,
-0.08723314106464386,
0.21792484819889069,
0.07286983728408813,
0.012416530400514603,
0.05149129033088684,
-0.1027204841375351,
0.07771369069814682,
-0.13913887739181519,
-0.0442352294921875,
0.052803948521614075,
-0.002282016444951296,
0.1243392825126648,
-0.011930754408240318,
0.056634221225976944,
0.06052638590335846,
0.009675832465291023,
0.04499988630414009,
-0.11523176729679108,
-0.0765087902545929,
-0.08020614087581635,
0.03974806144833565,
0.0019628587178885937,
0.1483449786901474,
-0.04778050258755684,
0.0435558557510376,
-0.09437068551778793,
0.12117834389209747,
0.09515614062547684,
-0.10126463323831558,
-0.08178804069757462,
0.07036509364843369,
0.05567484721541405,
0.18131743371486664,
0.09257403016090393,
0.11444995552301407,
0.10356123000383377,
-0.011135568842291832,
0.0067890421487390995,
-0.0003376946842763573,
-0.06224086135625839,
0.030861850827932358,
-0.026843788102269173,
0.040883541107177734,
-0.00989782065153122,
0.05101805925369263,
-0.09796566516160965,
0.18727914988994598,
-0.16311600804328918,
-0.0784352570772171,
3.895073425874725e-35,
-0.02138608507812023,
0.09738259762525558,
0.011368419043719769,
-0.2077379673719406,
0.0393083430826664,
-0.09013251215219498,
0.19198621809482574,
0.024522390216588974,
0.07334931939840317,
-0.16698282957077026,
-0.1366250216960907
] |
https://github.com/huggingface/datasets/issues/2426 | Saving Graph/Structured Data in Datasets | It should probably work out of the box to save structured data. If you want to show an example we can help you. | Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help. | 23 | Saving Graph/Structured Data in Datasets
Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help.
It should probably work out of the box to save structured data. If you want to show an example we can help you. | [
-0.0966644212603569,
0.12256325036287308,
0.05266875401139259,
0.09783530235290527,
0.1261851042509079,
-0.10752416402101517,
0.0014072530902922153,
0.012777695432305336,
-0.09100265800952911,
-0.08758851140737534,
-0.056104641407728195,
0.0652444064617157,
-0.033119916915893555,
0.1789887696504593,
0.05286645516753197,
-0.13246141374111176,
-0.005908708553761244,
-0.007745336275547743,
-0.03253394365310669,
0.060047443956136703,
-0.10042406618595123,
-0.03728802129626274,
0.24589985609054565,
-0.08575809001922607,
-0.04299898073077202,
-0.016979748383164406,
-0.11224564909934998,
0.13142971694469452,
-0.017313895747065544,
-0.31868478655815125,
0.03018411062657833,
0.12651433050632477,
0.19078204035758972,
0.03432508185505867,
0.000005607412276731338,
0.07349692285060883,
0.007395897060632706,
-0.09478042274713516,
-0.030607419088482857,
-0.15215179324150085,
0.15973596274852753,
-0.09286068379878998,
0.08118358254432678,
-0.161049485206604,
0.020257921889424324,
-0.09037171304225922,
0.036606565117836,
-0.041734371334314346,
0.22805429995059967,
0.02558850310742855,
0.017106635496020317,
-0.09670744091272354,
0.15650583803653717,
-0.002607172355055809,
-0.0693565383553505,
0.19918836653232574,
0.0820670872926712,
0.18248240649700165,
-0.14250686764717102,
0.11614152789115906,
0.05580257251858711,
-0.1891457438468933,
-0.14209555089473724,
0.0050765154883265495,
0.09263250231742859,
-0.12239261716604233,
-0.23804886639118195,
0.011859617196023464,
0.08309682458639145,
0.11104787886142731,
0.09870978444814682,
-0.15728448331356049,
0.019296370446681976,
-0.023271558806300163,
-0.024363096803426743,
0.04722880199551582,
-0.04686405509710312,
0.012745080515742302,
-0.1006951555609703,
-0.010428712703287601,
0.17196647822856903,
-0.15786559879779816,
-0.05416950583457947,
0.07979424297809601,
-0.022561855614185333,
0.018363164737820625,
-0.042364805936813354,
0.09791293740272522,
-0.07789947837591171,
-0.10315839946269989,
0.08035631477832794,
-0.06327591091394424,
0.005435371771454811,
0.02027503028512001,
-0.004766422789543867,
-0.08594202995300293,
-0.14770160615444183,
0.0733102560043335,
-0.10275851935148239,
0.054989319294691086,
0.03892219811677933,
-0.1133553758263588,
0.06490787863731384,
0.08153481036424637,
-0.09917561709880829,
-0.09022168070077896,
-0.09850107133388519,
-0.021927883848547935,
0.12378121167421341,
0.13940468430519104,
-0.07075780630111694,
0.0913146510720253,
-0.049446895718574524,
0.1301109790802002,
0.20224465429782867,
0.05127238109707832,
-0.017530901357531548,
0.12861797213554382,
-0.10719741135835648,
0.06631434708833694,
0.09967058151960373,
0.019513403996825218,
0.10620740056037903,
0.17299701273441315,
-0.04853801429271698,
-0.017799047753214836,
-0.0034564377274364233,
0.12573817372322083,
0.06599021703004837,
0.16812661290168762,
0.02214031293988228,
0.07981731742620468,
0.30808788537979126,
-0.07525500655174255,
0.14763027429580688,
-0.0502360500395298,
0.12535037100315094,
-0.09416023641824722,
-0.2137598842382431,
-0.1733846813440323,
0.14158494770526886,
-0.01510008703917265,
0.09530503302812576,
-0.1636718064546585,
0.12271169573068619,
0.07385195791721344,
-0.08596893399953842,
-0.06272713094949722,
-0.024799441918730736,
0.048150643706321716,
-0.028986720368266106,
0.11042405664920807,
-0.28183355927467346,
0.012147347442805767,
-0.047575097531080246,
-0.058371253311634064,
-0.20427465438842773,
-0.11543850600719452,
-0.043714262545108795,
-0.05951274558901787,
0.12466119229793549,
-0.1711025983095169,
-0.10923787206411362,
-0.17479945719242096,
0.13019640743732452,
0.07878035306930542,
-0.07925300300121307,
0.003942914307117462,
-0.07515975087881088,
0.037366438657045364,
0.02193673513829708,
0.04384421184659004,
-0.04468126595020294,
-0.06426191329956055,
0.08080445230007172,
0.17763786017894745,
0.16117483377456665,
0.01657651923596859,
-0.209889218211174,
-0.12883234024047852,
0.011755908839404583,
-0.009891198016703129,
-0.012171844020485878,
0.08415643870830536,
0.17052292823791504,
-0.07365410029888153,
-0.14232367277145386,
-0.032817739993333817,
0.0692252591252327,
0.09383729845285416,
-0.13065463304519653,
-0.012560786679387093,
0.14044412970542908,
-0.12039698660373688,
-0.052379410713911057,
-0.08951926231384277,
0.03639008849859238,
-0.0685044527053833,
0.014860322698950768,
-0.046019162982702255,
-0.011491380631923676,
0.02533518150448799,
-0.007537904195487499,
0.12834303081035614,
0.045656487345695496,
0.04946412518620491,
-0.12343523651361465,
-0.09935252368450165,
-0.12778766453266144,
-0.2117392122745514,
-0.06930261850357056,
-0.03369284048676491,
-0.12829220294952393,
-0.03132304176688194,
-0.16212426126003265,
-0.09695982933044434,
-0.08246619254350662,
-0.17875784635543823,
-0.0676284059882164,
0.13950157165527344,
-0.025410035625100136,
0.006848890334367752,
0.006453010719269514,
-0.0003957399749197066,
0.026078376919031143,
0.14935915172100067,
-0.030578695237636566,
-0.2693057358264923,
0.05798840895295143,
0.1537332683801651,
-0.032571133226156235,
-0.03307366743683815,
0.07353802770376205,
0.18289320170879364,
-0.07886780798435211,
-0.06725022196769714,
-0.06256358325481415,
-0.007644666824489832,
-0.002893191995099187,
-0.08465775102376938,
0.05932753160595894,
-0.02198922261595726,
0.04814726859331131,
-0.020504489541053772,
-0.0975329726934433,
0.10404384881258011,
-0.05310332775115967,
0.03850258141756058,
-0.022211231291294098,
0.04225313663482666,
0.19616584479808807,
0.061035122722387314,
0.16597789525985718,
0.017629249021410942,
-0.04555488005280495,
-0.13434745371341705,
-0.02219274640083313,
0.09456993639469147,
-0.049405764788389206,
0.10889118909835815,
0.17128422856330872,
0.05257125571370125,
0.08337894827127457,
0.08170343190431595,
0.05494052544236183,
-0.10166970640420914,
0.18273907899856567,
0.01066683977842331,
-0.12370897829532623,
0.0820523276925087,
0.1429740935564041,
-0.029846394434571266,
-0.03689868003129959,
-0.05386757850646973,
0.1321110874414444,
-0.12552960216999054,
0.17328865826129913,
-0.029729997739195824,
0.16532576084136963,
0.08738406002521515,
-0.04429664835333824,
0.21281851828098297,
-0.06707899272441864,
-0.12914535403251648,
0.03228287026286125,
0.11691586673259735,
0.051457904279232025,
0.0035185085143893957,
0.016789821907877922,
0.03952503576874733,
-0.12701313197612762,
-0.15372204780578613,
0.22627399861812592,
-0.014517311938107014,
0.02208923175930977,
-0.14930561184883118,
0.1563490778207779,
-0.006450340151786804,
-0.17801937460899353,
0.022687558084726334,
0.053517330437898636,
0.034343332052230835,
0.10616186261177063,
-0.09431403130292892,
-0.13419212400913239,
0.23824161291122437,
0.21819476783275604,
-0.0022636197973042727,
-0.00549375731498003,
-0.09073881059885025,
0.07068591564893723,
-0.07388707995414734,
0.08641403913497925,
0.04169417545199394,
-0.03958664834499359,
0.19112281501293182,
-0.13843663036823273,
-0.07061310112476349,
0.06609312444925308,
0.005661590024828911,
0.022196108475327492,
0.15230697393417358,
0.018370680510997772,
0.09654416888952255,
0.13632245361804962,
0.18865884840488434,
-0.3043449819087982,
-0.2336856722831726,
0.251146137714386,
0.09495601058006287,
0.033248502761125565,
-0.10224653780460358,
0.06915510445833206,
-0.14811430871486664,
0.013671109452843666,
0.1699020266532898,
-0.1087246835231781,
-0.12211670726537704,
0.2043977975845337,
0.09789559245109558,
-0.04218483716249466,
0.13406391441822052,
-0.011299376375973225,
0.07422012835741043,
0.027174731716513634,
-0.027327746152877808,
0.08457209169864655,
-0.05745525658130646,
0.2081187218427658,
0.002171547617763281,
-0.052607569843530655,
0.23884449899196625,
-0.12788625061511993,
0.018914371728897095,
0.02267799898982048,
0.13319449126720428,
-0.13093797862529755,
-0.03112274594604969,
-0.1381986141204834,
-0.08963210880756378,
0.029412243515253067,
0.13963837921619415,
-0.1284891963005066,
-0.15554207563400269,
-0.09048277139663696,
0.09025027602910995,
0.12080911546945572,
0.051306597888469696,
-0.16182515025138855,
-0.20373451709747314,
0.00029855131288059056,
-0.17527343332767487,
-0.00036765713593922555,
-0.03223106637597084,
-0.02109457366168499,
-0.11794666945934296,
0.048769015818834305,
-0.13068562746047974,
0.2030254453420639,
0.03077673725783825,
-0.016921931877732277,
-0.2786996364593506,
-0.09272117912769318,
-0.03490246832370758,
0.15686394274234772,
0.02092137560248375,
-0.19329391419887543,
0.10480598360300064,
-0.011043213307857513,
0.0886424332857132,
0.07808279991149902,
0.005940739531069994,
-0.026208022609353065,
-0.047993529587984085,
0.04636775702238083,
0.04550164192914963,
-0.04406621307134628,
-0.037673838436603546,
0.0026086196303367615,
0.03558339923620224,
0.00792862568050623,
-0.13267068564891815,
0.03269295394420624,
-0.03649328276515007,
0.15917079150676727,
0.07666798681020737,
-0.003495547454804182,
0.11944448202848434,
0.05436940863728523,
-0.1011815220117569,
-0.07664825767278671,
0.22202631831169128,
-0.12317752093076706,
-0.11486057937145233,
0.07224847376346588,
-0.03601744398474693,
0.07468970119953156,
0.03458232432603836,
0.07821064442396164,
-0.13020895421504974,
-0.27796632051467896,
0.020385900512337685,
0.12661446630954742,
-0.024376166984438896,
-0.1632269322872162,
-0.07267154008150101,
-0.15521351993083954,
0.13501252233982086,
-0.03208575025200844,
0.03300393745303154,
0.14968988299369812,
-0.08068574965000153,
-0.024362007156014442,
0.07255873829126358,
0.06537380069494247,
-0.0013870580587536097,
0.22725409269332886,
-0.2340160757303238,
0.06341058015823364,
-0.3005903363227844,
0.0047401622869074345,
0.01602005586028099,
-0.15774807333946228,
-0.10311941802501678,
-0.0517788864672184,
0.007188981398940086,
-0.2522844076156616,
-0.19748596847057343,
0.06773336231708527,
0.04009895399212837,
-0.19402165710926056,
-0.08710034191608429,
-0.24815133213996887,
0.05612717196345329,
0.07732237130403519,
0.048849038779735565,
-0.014486951753497124,
-0.09559398889541626,
-0.03156143054366112,
0.1315549910068512,
-0.0010598640656098723,
-0.06997059285640717,
-0.005650565959513187,
0.27747851610183716,
-0.011558656580746174,
0.04306739196181297,
0.20049837231636047,
-0.09237413853406906,
-0.2008766233921051,
-0.04061067849397659,
0.09897640347480774,
-0.031856290996074677,
0.011820596642792225,
-0.15216711163520813,
0.09073570370674133,
-0.14553937315940857,
0.04825437068939209,
-0.07298192381858826,
-0.13593310117721558,
0.011616908945143223,
0.1246546059846878,
0.01813839189708233,
0.09084884077310562,
-0.09971104562282562,
0.012927752919495106,
0.023218099027872086,
-0.033465925604104996,
-0.07336021959781647,
-0.11070816218852997,
-0.04431961849331856,
-0.1163533553481102,
-0.06842662394046783,
0.0058294483460485935,
-0.11218908429145813,
0.03606342524290085,
0.0587666779756546,
-0.04776342585682869,
0.10831081867218018,
0.08421239256858826,
0.12838509678840637,
-0.046604178845882416,
-0.07685840874910355,
-0.04949639365077019,
0.07448261976242065,
-0.020797111093997955,
0.05756441131234169,
-0.06695543229579926,
0.04366001859307289,
-0.04366856440901756,
0.07080019265413284,
0.10614170134067535,
-0.011684861034154892,
0.0051515488885343075,
0.03897307440638542,
-0.013022161088883877,
-0.12093127518892288,
-0.07460383325815201,
0.14773543179035187,
-0.14504869282245636,
0.004139357712119818,
-0.0004861633642576635,
0.019489411264657974,
0.13278663158416748,
-0.07298998534679413,
0.09232039004564285,
0.1069071963429451,
-0.039495546370744705,
-0.09691985696554184,
0.01759558729827404,
-0.024116413667798042,
0.17240051925182343,
0.0585658922791481,
0.08944933861494064,
-0.07315979897975922,
-0.075743168592453,
0.02885623835027218,
0.05023318901658058,
0.09926021844148636,
0.1016053706407547,
-0.0746384859085083,
-0.06396171450614929,
-0.3050757348537445,
-0.13814039528369904,
0.10411397367715836,
0.03990659490227699,
0.023344693705439568,
-0.09664486348628998,
-0.21145007014274597,
-0.05441804975271225,
-0.011063003912568092,
-0.019941100850701332,
0.11979269981384277,
0.010462140664458275,
0.00148179626557976,
0.0268054511398077,
-2.509864991618663e-32,
-0.046764831990003586,
-0.18545639514923096,
-0.014304576441645622,
0.07966852933168411,
-0.06484433263540268,
0.07499902695417404,
-0.15433447062969208,
-0.05670230835676193,
0.016704905778169632,
-0.025394614785909653,
0.03751371055841446,
0.06616557389497757,
-0.017959188669919968,
0.10148436576128006,
-0.09349837154150009,
-0.038950882852077484,
-0.07436615973711014,
-0.043161261826753616,
0.08876627683639526,
0.03669516742229462,
0.24866075813770294,
-0.11625999212265015,
0.09896102547645569,
-0.08729478716850281,
0.06436078995466232,
-0.07854506373405457,
0.04277554526925087,
-0.15915511548519135,
0.007003325968980789,
0.04598922282457352,
-0.09569518268108368,
0.09782038629055023,
-0.0536162294447422,
0.1777087152004242,
-0.002402781741693616,
-0.07298969477415085,
-0.01602858677506447,
-0.0704677477478981,
-0.2643032968044281,
-0.09769776463508606,
-0.24209119379520416,
0.03777933120727539,
-0.009185649454593658,
0.007028440944850445,
0.15130378305912018,
-0.019818075001239777,
-0.007580118719488382,
0.08834078162908554,
-0.037838164716959,
-0.02867869846522808,
0.09389101713895798,
0.08337659388780594,
0.15973912179470062,
0.11068649590015411,
0.13481083512306213,
-0.12214428186416626,
0.10914183408021927,
-0.11150813847780228,
-0.05976580083370209,
0.023835431784391403,
-0.11636000871658325,
-0.15485931932926178,
-0.01940423622727394,
0.12578751146793365,
0.054896123707294464,
-0.06875308603048325,
0.06440786272287369,
0.06393357366323471,
0.12529940903186798,
0.13012585043907166,
-0.1478109359741211,
0.348420113325119,
-0.038658201694488525,
-0.012045922689139843,
-0.1858886480331421,
-0.059236183762550354,
-0.0163885410875082,
-0.10715993493795395,
0.031678371131420135,
-0.16624781489372253,
-0.1563120037317276,
0.05747630074620247,
0.1531095802783966,
-0.08977708220481873,
0.039255816489458084,
-0.056388940662145615,
-0.0013525106478482485,
-0.10254445672035217,
-0.06006089970469475,
-0.10173653811216354,
-0.16143719851970673,
0.13660438358783722,
0.01745607517659664,
-0.05752274766564369,
-0.17076151072978973,
0.11772838234901428,
-0.12790952622890472,
0.05959467589855194,
-0.04448388144373894,
0.08885246515274048,
-0.010734917595982552,
-0.028275614604353905,
0.07706353813409805,
-0.041737865656614304,
0.16206349432468414,
0.0825038030743599,
0.14990071952342987,
0.20166215300559998,
-0.10199737548828125,
0.017983432859182358,
-0.008319585584104061,
-0.062806636095047,
-0.13784249126911163,
-0.03950900211930275,
0.24414896965026855,
0.001927830744534731,
0.01096093375235796,
0.0546833761036396,
0.1841888427734375,
0.1332549750804901,
-0.06907465308904648,
-0.043695252388715744,
-0.004735372960567474,
0.04110250622034073,
0.14631889760494232,
-0.016812996938824654,
-0.1990712583065033,
-0.1434417963027954,
0.1426222324371338,
0.01831916719675064,
0.11742847412824631,
-0.12829039990901947,
7.565784585494839e-7,
-0.09012766182422638,
0.2689114809036255,
0.020899681374430656,
0.10891663283109665,
-0.012931689620018005,
0.0966796725988388,
-0.06364428251981735,
0.12437263131141663,
0.022471021860837936,
0.0006956973229534924,
0.09224914759397507,
-0.02897660806775093,
-0.19690653681755066,
0.17125311493873596,
0.0065011256374418736,
0.08401411026716232,
-0.1304098665714264,
0.0058787125162780285,
-0.10222849249839783,
0.07207974791526794,
0.17576482892036438,
-0.04048701748251915,
0.0712842121720314,
-0.010671709664165974,
0.01344975270330906,
0.000385064136935398,
0.06951390951871872,
0.010399037040770054,
-0.056014105677604675,
-0.10061943531036377,
-0.1288284957408905,
0.11763017624616623,
-0.07491181045770645,
0.14240331947803497,
-0.08947606384754181,
0.002951862756162882,
0.0652577131986618,
-0.012292872183024883,
-0.15994225442409515,
0.06475716829299927,
0.1347418576478958,
-0.012158781290054321,
0.02942558191716671,
0.015234947204589844,
0.11488775908946991,
-0.03778863698244095,
-0.15065568685531616,
-0.05979669839143753,
-0.09394264221191406,
0.01668579690158367,
-0.06517300754785538,
0.05683041363954544,
0.052656132727861404,
0.023764468729496002,
-0.10696349292993546,
0.1065765768289566,
-0.0951104685664177,
-0.022662851959466934,
0.0822741910815239,
0.061712853610515594,
0.13494089245796204,
-0.15831133723258972,
0.002223633462563157,
0.009006367065012455,
0.16190659999847412,
0.015866754576563835,
0.0174080990254879,
3.088404776919205e-34,
-0.14431703090667725,
0.08255219459533691,
-0.08987222611904144,
-0.02494659274816513,
0.030280275270342827,
-0.14087624847888947,
0.14138180017471313,
0.04794183373451233,
0.23950546979904175,
-0.025470178574323654,
-0.07023666799068451
] |
https://github.com/huggingface/datasets/issues/2426 | Saving Graph/Structured Data in Datasets | An example of a toy dataset is like:
```json
[
{
"name": "mike",
"friends": [
"tom",
"lily"
],
"articles": [
{
"title": "aaaaa",
"reader": [
"tom",
"lucy"
]
}
]
},
{
"name": "tom",
"friends": [
"mike",
"bbb"
],
"articles": [
{
"title": "xxxxx",
"reader": [
"tom",
"qqqq"
]
}
]
}
]
```
We can use the friendship relation to build a directional graph, and a user node can be represented using the articles written by himself. And the relationship between articles can be built when the article has read by the same user.
This dataset can be used to model the heterogeneous relationship between users and articles, and this graph can be used to build recommendation systems to recommend articles to the user, or potential friends to the user. | Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help. | 131 | Saving Graph/Structured Data in Datasets
Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help.
An example of a toy dataset is like:
```json
[
{
"name": "mike",
"friends": [
"tom",
"lily"
],
"articles": [
{
"title": "aaaaa",
"reader": [
"tom",
"lucy"
]
}
]
},
{
"name": "tom",
"friends": [
"mike",
"bbb"
],
"articles": [
{
"title": "xxxxx",
"reader": [
"tom",
"qqqq"
]
}
]
}
]
```
We can use the friendship relation to build a directional graph, and a user node can be represented using the articles written by himself. And the relationship between articles can be built when the article has read by the same user.
This dataset can be used to model the heterogeneous relationship between users and articles, and this graph can be used to build recommendation systems to recommend articles to the user, or potential friends to the user. | [
-0.03768818825483322,
0.18615971505641937,
0.051386650651693344,
0.12550194561481476,
0.1304333657026291,
-0.11938977241516113,
0.01250181719660759,
-0.03006424568593502,
-0.11394844949245453,
-0.13213875889778137,
-0.08090135455131531,
0.05945925787091255,
-0.005091496277600527,
0.1411224901676178,
-0.0026072284672409296,
-0.12685136497020721,
0.014987948350608349,
-0.014188921079039574,
-0.017442474141716957,
0.053583014756441116,
-0.10049954801797867,
-0.002038482576608658,
0.2590861916542053,
-0.0828452929854393,
0.005519705358892679,
-0.04522416740655899,
-0.14594028890132904,
0.12325088679790497,
-0.018620172515511513,
-0.2785870134830475,
-0.015397889539599419,
0.1510186493396759,
0.15490727126598358,
0.04244887828826904,
0.0000055643427003815304,
0.12040483206510544,
0.01540913712233305,
-0.09032685309648514,
0.030769862234592438,
-0.1787329763174057,
0.19317495822906494,
-0.05591253936290741,
0.09183858335018158,
-0.17157232761383057,
0.028673401102423668,
-0.08691933751106262,
-0.010207708925008774,
-0.02056342177093029,
0.22614625096321106,
0.011342918500304222,
0.01924300193786621,
-0.1327778697013855,
0.20439383387565613,
0.03311941400170326,
-0.00203424459323287,
0.2024022340774536,
0.061052482575178146,
0.12545408308506012,
-0.10554254055023193,
0.11228995025157928,
0.06440243124961853,
-0.18876110017299652,
-0.11690963059663773,
-0.03248774632811546,
0.12432190030813217,
-0.13439854979515076,
-0.20559798181056976,
0.018502233549952507,
0.07550667971372604,
0.057849615812301636,
0.07098732888698578,
-0.14134743809700012,
0.02597069926559925,
0.006196057423949242,
-0.0589621402323246,
0.08709409087896347,
-0.05122486501932144,
0.03885951265692711,
-0.10435520112514496,
-0.025916602462530136,
0.18982502818107605,
-0.20257090032100677,
-0.0637124553322792,
0.09995986521244049,
-0.024388683959841728,
0.03806512802839279,
-0.04432341083884239,
0.08275647461414337,
-0.05256575718522072,
-0.10176476091146469,
0.09005124866962433,
-0.06887529045343399,
0.05920521169900894,
-0.008569718338549137,
0.0036883035209029913,
-0.0672018900513649,
-0.14552901685237885,
0.09895727783441544,
-0.08514782041311264,
0.011621715500950813,
0.05129440873861313,
-0.1323164999485016,
0.08309245109558105,
0.09589608013629913,
-0.10330138355493546,
-0.11479084193706512,
-0.06821726262569427,
-0.021102705970406532,
0.1115526631474495,
0.1567162573337555,
-0.08110722154378891,
0.06234119087457657,
-0.04339426010847092,
0.1820216029882431,
0.25940924882888794,
0.039359867572784424,
-0.05975501611828804,
0.15668705105781555,
-0.06528060138225555,
0.09547273069620132,
0.08385069668292999,
0.03580264002084732,
0.08019696921110153,
0.15682128071784973,
-0.01436002366244793,
-0.028040898963809013,
0.026243437081575394,
0.10849695652723312,
0.06474758684635162,
0.2012723833322525,
0.04483295604586601,
0.05441749840974808,
0.31520146131515503,
-0.08178297430276871,
0.11168648302555084,
-0.004751008935272694,
0.12025119364261627,
-0.15014921128749847,
-0.19736668467521667,
-0.19479121267795563,
0.11422765254974365,
0.008226204663515091,
0.09207680821418762,
-0.10753802955150604,
0.15123656392097473,
0.04496361315250397,
-0.1151343435049057,
-0.09378334879875183,
-0.03379610925912857,
0.08337119221687317,
-0.000017941023543244228,
0.12771739065647125,
-0.22954455018043518,
-0.011643629521131516,
-0.05648677051067352,
-0.041440241038799286,
-0.16789376735687256,
-0.1005566343665123,
-0.01686248369514942,
-0.01824997365474701,
0.11274862289428711,
-0.12362939119338989,
-0.08209121227264404,
-0.17677342891693115,
0.07512543350458145,
0.06762818247079849,
-0.0895005539059639,
0.004258197732269764,
-0.12434596568346024,
0.0831475630402565,
0.002289179479703307,
0.041026048362255096,
-0.01161618996411562,
-0.08909760415554047,
0.13086797297000885,
0.15949362516403198,
0.1312289983034134,
0.0292772576212883,
-0.18282264471054077,
-0.1252119243144989,
-0.010356605984270573,
0.018354304134845734,
0.023219726979732513,
0.10879189521074295,
0.14224477112293243,
-0.09494666010141373,
-0.18148420751094818,
-0.04215153679251671,
0.0728168860077858,
0.1133514940738678,
-0.14201948046684265,
-0.05329270660877228,
0.15137523412704468,
-0.12335656583309174,
-0.10017015784978867,
-0.1350221186876297,
0.05692868307232857,
-0.1207428127527237,
-0.030698303133249283,
-0.04246263951063156,
0.06003183126449585,
0.06443784385919571,
0.00794606376439333,
0.11613211035728455,
0.023599596694111824,
0.04376017674803734,
-0.11812394112348557,
-0.08676687628030777,
-0.17182156443595886,
-0.16556158661842346,
-0.07338102161884308,
-0.06561959534883499,
-0.11963117122650146,
-0.011501996777951717,
-0.16222810745239258,
-0.03197088465094566,
-0.0950266569852829,
-0.16446498036384583,
-0.11655236035585403,
0.13257955014705658,
0.026345768943428993,
0.017298409715294838,
0.021986816078424454,
0.0017957949312403798,
-0.014921065419912338,
0.14746880531311035,
-0.0027551529929041862,
-0.2606845796108246,
0.06406260281801224,
0.1380387544631958,
-0.009256742894649506,
-0.054011087864637375,
0.08410715311765671,
0.20429964363574982,
-0.10920372605323792,
-0.016797931864857674,
-0.05866563692688942,
0.01751556806266308,
-0.003256486961618066,
-0.0387265644967556,
0.08123630285263062,
-0.000006086537268856773,
0.06637804955244064,
-0.04430674761533737,
-0.04053831100463867,
0.11367149651050568,
-0.04097621142864227,
0.044311124831438065,
-0.019192641600966454,
0.03320401906967163,
0.17525309324264526,
0.07327196002006531,
0.1507822722196579,
0.029771815985441208,
-0.03176267072558403,
-0.1753116101026535,
-0.05322950333356857,
0.10266748815774918,
-0.06902261078357697,
0.05131540820002556,
0.17432959377765656,
0.08725196123123169,
0.10027119517326355,
0.11481282114982605,
0.0645977258682251,
-0.0882396548986435,
0.12025332450866699,
0.01690673828125,
-0.07711917161941528,
0.08203258365392685,
0.11236004531383514,
-0.04737866297364235,
-0.048791058361530304,
-0.05905589833855629,
0.14059102535247803,
-0.13010631501674652,
0.19992004334926605,
-0.022859888151288033,
0.18459464609622955,
0.07691547274589539,
-0.02265346795320511,
0.240025594830513,
-0.08163996785879135,
-0.1459709256887436,
0.02332197315990925,
0.1310015320777893,
0.06961388140916824,
0.04491943120956421,
0.0027128648944199085,
-0.031972579658031464,
-0.18643786013126373,
-0.10982608050107956,
0.25579699873924255,
-0.034134283661842346,
-0.004646987188607454,
-0.14033694565296173,
0.1292722076177597,
0.0256672240793705,
-0.15364550054073334,
0.00045103722368367016,
0.09882404655218124,
0.014152489602565765,
0.14121249318122864,
-0.09784210473299026,
-0.11317946016788483,
0.24103114008903503,
0.2043941468000412,
-0.018547847867012024,
-0.010511203669011593,
-0.08315268158912659,
0.05906323343515396,
-0.08349157869815826,
0.09275178611278534,
0.07836736738681793,
-0.048725735396146774,
0.20372013747692108,
-0.12139702588319778,
-0.12896832823753357,
0.08411622047424316,
0.01753089390695095,
0.03942860662937164,
0.20333151519298553,
-0.000283362838672474,
0.041295599192380905,
0.15479837357997894,
0.10204647481441498,
-0.252692848443985,
-0.22395560145378113,
0.2792436480522156,
0.08345542103052139,
0.048555050045251846,
-0.11488333344459534,
0.05190812423825264,
-0.13913719356060028,
0.023190777748823166,
0.1738610416650772,
-0.08770742267370224,
-0.13578654825687408,
0.1467439979314804,
0.08751887828111649,
-0.029900839552283287,
0.12117742747068405,
0.005537869408726692,
0.008763901889324188,
0.0612172894179821,
-0.055864106863737106,
0.08631536364555359,
-0.03701028972864151,
0.1701173037290573,
0.03182876855134964,
-0.04847902059555054,
0.2338906228542328,
-0.1344737857580185,
0.035218533128499985,
0.019991235807538033,
0.10182157903909683,
-0.14915244281291962,
-0.02189525030553341,
-0.13877031207084656,
-0.06084264814853668,
0.015311235561966896,
0.12652388215065002,
-0.1662817895412445,
-0.13271291553974152,
-0.11698147654533386,
0.07648751884698868,
0.1663108766078949,
0.005667610093951225,
-0.17838279902935028,
-0.17706038057804108,
-0.009471666999161243,
-0.18661828339099884,
-0.05457824841141701,
-0.021809639409184456,
-0.02013319358229637,
-0.1763223558664322,
0.044462427496910095,
-0.09491907805204391,
0.1390652358531952,
0.006331728771328926,
0.009382265619933605,
-0.24365834891796112,
-0.08754671365022659,
-0.00352838053368032,
0.16448019444942474,
0.03997504711151123,
-0.2264152467250824,
0.10121084749698639,
0.032883886247873306,
0.08519185334444046,
0.04994909092783928,
-0.00021751569875050336,
0.008922276087105274,
-0.09670179337263107,
0.012218104675412178,
0.012325620278716087,
-0.03984614834189415,
-0.02934633195400238,
-0.01758294552564621,
0.0332951620221138,
-0.016890883445739746,
-0.09779253602027893,
-0.014390827156603336,
-0.04116447642445564,
0.24602465331554413,
0.09816985577344894,
0.00007708628982072696,
0.12396025657653809,
0.02934870310127735,
-0.05542672052979469,
-0.1315220594406128,
0.21172024309635162,
-0.15312165021896362,
-0.10211925953626633,
-0.0062162973918020725,
-0.03398332744836807,
0.08034408092498779,
0.013848311267793179,
0.06950357556343079,
-0.11268966645002365,
-0.30243128538131714,
0.00625156844034791,
0.12921491265296936,
0.0015368787571787834,
-0.169549360871315,
-0.10276204347610474,
-0.10973457992076874,
0.10208207368850708,
-0.01564798131585121,
0.006180075462907553,
0.11226815730333328,
-0.0633515939116478,
-0.01028517633676529,
0.04015258327126503,
0.03986259922385216,
-0.015753379091620445,
0.2019265741109848,
-0.20587390661239624,
0.07948191463947296,
-0.3359431028366089,
-0.06492909044027328,
-0.02612110786139965,
-0.15949471294879913,
-0.043252475559711456,
-0.026685090735554695,
0.07100612670183182,
-0.27365919947624207,
-0.17405276000499725,
-0.004744324367493391,
0.0465911440551281,
-0.24111555516719818,
-0.048445459455251694,
-0.19107750058174133,
0.0873279944062233,
0.041893187910318375,
0.04894913733005524,
-0.02349606528878212,
-0.06270501762628555,
-0.04201236367225647,
0.1646372377872467,
0.030279207974672318,
-0.07402334362268448,
-0.014250284060835838,
0.26605087518692017,
-0.11466234922409058,
-0.01157828327268362,
0.21432003378868103,
-0.07355386763811111,
-0.18863049149513245,
-0.035623177886009216,
0.13055050373077393,
-0.029736123979091644,
0.02794606424868107,
-0.15563726425170898,
0.10425559431314468,
-0.13128571212291718,
0.022921595722436905,
-0.09334364533424377,
-0.067787766456604,
-0.013165595941245556,
0.09491213411092758,
-0.004960908554494381,
0.07886698096990585,
-0.03731032833456993,
0.013119138777256012,
-0.01267151441425085,
-0.10489828139543533,
-0.06743749976158142,
-0.08916808664798737,
-0.06758717447519302,
-0.11164601147174835,
-0.12834849953651428,
0.01564858853816986,
-0.11506199091672897,
0.0739808976650238,
0.07377029210329056,
-0.04254766181111336,
0.16378605365753174,
0.07898326963186264,
0.10783987492322922,
-0.07774844765663147,
-0.024852175265550613,
-0.0471988171339035,
0.05154310539364815,
-0.021378932520747185,
0.06379213184118271,
-0.10605858266353607,
0.012332798913121223,
-0.017902309074997902,
0.07713793218135834,
0.06356991082429886,
-0.029244722798466682,
-0.022146111354231834,
0.017078135162591934,
-0.0418170802295208,
-0.09781156480312347,
-0.06884302198886871,
0.10605435818433762,
-0.1710721254348755,
-0.029173096641898155,
0.025424709543585777,
0.028546195477247238,
0.11427424848079681,
-0.08038920164108276,
0.08909045904874802,
0.1161084920167923,
-0.03468167409300804,
-0.12113919854164124,
0.012125356122851372,
-0.026403088122606277,
0.15564210712909698,
0.008872210048139095,
0.12628817558288574,
-0.09655611962080002,
-0.08603248000144958,
0.062400657683610916,
0.05400389805436134,
0.1215403750538826,
0.0847354307770729,
-0.08049635589122772,
-0.07834382355213165,
-0.3135814368724823,
-0.16239392757415771,
0.12459913641214371,
0.09898664802312851,
0.04272470623254776,
-0.09445863962173462,
-0.21901647746562958,
-0.04241706430912018,
0.011008283123373985,
-0.028209354728460312,
0.15538346767425537,
-0.021828709170222282,
-0.017238959670066833,
0.04614318907260895,
-2.5772563766248924e-32,
-0.04361957684159279,
-0.11456331610679626,
-0.03466411679983139,
0.010431827045977116,
-0.07740630954504013,
0.06684717535972595,
-0.17334261536598206,
-0.019242754206061363,
0.05345900356769562,
0.001158445025794208,
0.01968645304441452,
0.062056250870227814,
-0.020723439753055573,
0.13256320357322693,
-0.05491434037685394,
-0.016169188544154167,
-0.06149854511022568,
-0.05092739686369896,
0.10755136609077454,
0.04225074127316475,
0.25287356972694397,
-0.11802224814891815,
0.11721505224704742,
-0.08908657729625702,
0.045223675668239594,
-0.08002569526433945,
0.03184129670262337,
-0.13248449563980103,
0.009153330698609352,
0.04512811452150345,
-0.10738791525363922,
0.0956449806690216,
-0.07431219518184662,
0.18210476636886597,
-0.0020258056465536356,
-0.10467725992202759,
0.009568536654114723,
-0.056163255125284195,
-0.22715307772159576,
-0.06575673818588257,
-0.19566486775875092,
0.05480922758579254,
0.019017843529582024,
0.0319538414478302,
0.09535572677850723,
-0.025705505162477493,
-0.017586342990398407,
0.09034328907728195,
-0.10072313249111176,
0.010746820829808712,
0.10308555513620377,
0.05410154536366463,
0.13242430984973907,
0.12323269993066788,
0.16410726308822632,
-0.17440956830978394,
0.10075721144676208,
-0.08229991793632507,
-0.08673475682735443,
0.01813666522502899,
-0.15253546833992004,
-0.11202912032604218,
-0.012556026689708233,
0.05327485501766205,
0.025847136974334717,
-0.014617368578910828,
0.0462094321846962,
0.07835455983877182,
0.1315508931875229,
0.18508832156658173,
-0.09865987300872803,
0.30163756012916565,
0.0006689767469651997,
-0.008082852698862553,
-0.15167240798473358,
-0.04456843435764313,
-0.008892827667295933,
-0.06569676101207733,
0.02170902118086815,
-0.14170685410499573,
-0.1354193538427353,
0.0696246549487114,
0.17483952641487122,
-0.052475374191999435,
0.012750803492963314,
-0.06378498673439026,
0.014942336827516556,
-0.14015141129493713,
-0.0611073337495327,
-0.10634768754243851,
-0.1911671757698059,
0.1042352244257927,
0.007021895609796047,
-0.029924685135483742,
-0.19754289090633392,
0.12933968007564545,
-0.13816934823989868,
0.08668089658021927,
-0.06880166381597519,
0.08852475881576538,
0.04429527372121811,
-0.060340266674757004,
0.04053574055433273,
-0.07230614870786667,
0.14524929225444794,
0.1277969628572464,
0.14369355142116547,
0.24153319001197815,
-0.07745630294084549,
0.019256925210356712,
0.04017757251858711,
-0.07105205208063126,
-0.14261633157730103,
-0.028493475168943405,
0.20565234124660492,
-0.007665752433240414,
0.026794234290719032,
0.06552761048078537,
0.18776223063468933,
0.13975849747657776,
-0.04346800595521927,
-0.035145580768585205,
0.02713795006275177,
0.03523474931716919,
0.16076010465621948,
-0.018250370398163795,
-0.17488375306129456,
-0.08671016991138458,
0.12804579734802246,
-0.006777082569897175,
0.1407650113105774,
-0.08104854077100754,
7.472158927157579e-7,
-0.03578248992562294,
0.2583295702934265,
0.023835113272070885,
0.08737380057573318,
-0.017776966094970703,
0.09564695507287979,
-0.05978044122457504,
0.11978385597467422,
0.0027446444146335125,
0.03582954779267311,
0.07237241417169571,
-0.03319583833217621,
-0.20902787148952484,
0.20656102895736694,
-0.027076976373791695,
0.06575920432806015,
-0.19984570145606995,
-0.0071251969784498215,
-0.1433020532131195,
0.06045255437493324,
0.19061067700386047,
-0.06335477530956268,
0.08517158031463623,
-0.021693291142582893,
-0.029964206740260124,
0.04298003017902374,
0.10061222314834595,
0.032845351845026016,
-0.08656281232833862,
-0.10186466574668884,
-0.08398162573575974,
0.0702405497431755,
-0.061957892030477524,
0.0875459760427475,
-0.11366595327854156,
-0.026675241068005562,
0.043643854558467865,
-0.022296929731965065,
-0.14588701725006104,
0.062461189925670624,
0.16995346546173096,
0.007880057208240032,
0.030528442934155464,
-0.023974759504199028,
0.12635371088981628,
-0.07420103251934052,
-0.1676582247018814,
-0.053631097078323364,
-0.11838224530220032,
0.006471884902566671,
-0.06320283561944962,
0.027076246216893196,
0.017842620611190796,
0.05264363810420036,
-0.11106400936841965,
0.11678428947925568,
-0.06553883105516434,
-0.018260182812809944,
0.07836645841598511,
0.14080725610256195,
0.11917171627283096,
-0.10776704549789429,
-0.029636256396770477,
-0.03204404190182686,
0.15423448383808136,
-0.0013727477053180337,
0.048699259757995605,
2.8408149017448183e-34,
-0.15407894551753998,
0.09463623911142349,
-0.1024462953209877,
-0.02929539792239666,
-0.02369375340640545,
-0.14789380133152008,
0.07836946099996567,
-0.005786156747490168,
0.1994227021932602,
-0.005751192104071379,
-0.08133574575185776
] |
https://github.com/huggingface/datasets/issues/2426 | Saving Graph/Structured Data in Datasets | Hi,
you can do the following to load this data into a `Dataset`:
```python
from datasets import Dataset
examples = [
{
"name": "mike",
"friends": [
"tom",
"lily"
],
"articles": [
{
"title": "aaaaa",
"reader": [
"tom",
"lucy"
]
}
]
},
{
"name": "tom",
"friends": [
"mike",
"bbb"
],
"articles": [
{
"title": "xxxxx",
"reader": [
"tom",
"qqqq"
]
}
]
}
]
keys = examples[0].keys()
values = [ex.values() for ex in examples]
dataset = Dataset.from_dict({k: list(v) for k, v in zip(keys, zip(*values))})
```
Let us know if this works for you. | Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help. | 93 | Saving Graph/Structured Data in Datasets
Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help.
Hi,
you can do the following to load this data into a `Dataset`:
```python
from datasets import Dataset
examples = [
{
"name": "mike",
"friends": [
"tom",
"lily"
],
"articles": [
{
"title": "aaaaa",
"reader": [
"tom",
"lucy"
]
}
]
},
{
"name": "tom",
"friends": [
"mike",
"bbb"
],
"articles": [
{
"title": "xxxxx",
"reader": [
"tom",
"qqqq"
]
}
]
}
]
keys = examples[0].keys()
values = [ex.values() for ex in examples]
dataset = Dataset.from_dict({k: list(v) for k, v in zip(keys, zip(*values))})
```
Let us know if this works for you. | [
-0.05457770451903343,
0.16258595883846283,
0.053392622619867325,
0.14619722962379456,
0.14747057855129242,
-0.10253321379423141,
0.04594162479043007,
0.011059176176786423,
-0.15153920650482178,
-0.08517707884311676,
-0.048345133662223816,
0.04946496710181236,
-0.003944752272218466,
0.11039833724498749,
0.04937835410237312,
-0.12219312787055969,
-0.008656533434987068,
0.011453421786427498,
-0.05156965181231499,
0.058390676975250244,
-0.07680261135101318,
-0.03229925408959389,
0.24222227931022644,
-0.06308245658874512,
0.017948230728507042,
-0.03974901884794235,
-0.1309204250574112,
0.13187366724014282,
-0.002909124596044421,
-0.2950417697429657,
-0.011081280186772346,
0.152092844247818,
0.16529522836208344,
-0.00749657629057765,
0.000005294210495776497,
0.10707391798496246,
0.04846693575382233,
-0.10490967333316803,
-0.02827278897166252,
-0.13897211849689484,
0.14609406888484955,
-0.051564063876867294,
0.08931649476289749,
-0.16352596879005432,
0.017168482765555382,
-0.11708364635705948,
0.00947483442723751,
-0.0682399719953537,
0.25398963689804077,
0.01602737233042717,
0.014416164718568325,
-0.08603421598672867,
0.1577591449022293,
0.0057024708949029446,
-0.004427335690706968,
0.213443785905838,
0.08945336192846298,
0.1443779468536377,
-0.13963809609413147,
0.08150070905685425,
0.03710440918803215,
-0.15962405502796173,
-0.14826929569244385,
-0.007149672135710716,
0.06577669084072113,
-0.1373443454504013,
-0.25665542483329773,
0.017897507175803185,
0.0473124235868454,
0.09285666793584824,
0.06705137342214584,
-0.1185818538069725,
0.03351530805230141,
-0.03503992408514023,
0.002830644603818655,
0.0758824422955513,
-0.0411003939807415,
0.012031901627779007,
-0.10434668511152267,
-0.00980830192565918,
0.1910974085330963,
-0.15741358697414398,
-0.07460688799619675,
0.1090504601597786,
-0.029165716841816902,
-0.05822260305285454,
-0.06061375141143799,
0.09706754982471466,
-0.06157223507761955,
-0.10881894826889038,
0.09073470532894135,
-0.08347856998443604,
0.025504032149910927,
0.002289427910000086,
0.0810188576579094,
-0.04098816588521004,
-0.13365855813026428,
0.026729412376880646,
-0.08679553121328354,
-0.01205075066536665,
0.06946714967489243,
-0.1279253214597702,
0.12578897178173065,
0.05536806955933571,
-0.08499071002006531,
-0.13582809269428253,
-0.04553655907511711,
0.0018616769229993224,
0.10760403424501419,
0.17724944651126862,
-0.0799226388335228,
0.1215273067355156,
-0.08780058473348618,
0.1373017579317093,
0.2533803880214691,
0.05892757326364517,
0.0038385812658816576,
0.1635439544916153,
-0.0961102843284607,
0.09387335181236267,
0.018729332834482193,
-0.006689019966870546,
0.08078600466251373,
0.14786656200885773,
0.004449129104614258,
-0.03538940101861954,
-0.002206311793997884,
0.10758047550916672,
0.09085281938314438,
0.11410034447908401,
0.031887657940387726,
0.011093519628047943,
0.3315119743347168,
-0.07533584535121918,
0.12885361909866333,
-0.02720959298312664,
0.12512058019638062,
-0.13893826305866241,
-0.18502746522426605,
-0.17293734848499298,
0.14616549015045166,
0.040281180292367935,
0.13206662237644196,
-0.13949649035930634,
0.12906509637832642,
0.04857683554291725,
-0.11246131360530853,
-0.05282716080546379,
-0.023279985412955284,
0.0595938116312027,
-0.057685863226652145,
0.14881397783756256,
-0.22474262118339539,
0.016549719497561455,
-0.026519516482949257,
-0.0652153268456459,
-0.21152496337890625,
-0.10039255023002625,
-0.022714927792549133,
-0.04729084298014641,
0.09798061847686768,
-0.10968390852212906,
-0.029444480314850807,
-0.1601065993309021,
0.1293221265077591,
0.12245502322912216,
-0.11013122648000717,
0.0017895904602482915,
-0.1488296091556549,
0.0645916536450386,
-0.031826309859752655,
0.05650739371776581,
-0.011976461857557297,
-0.0605277456343174,
0.08820367604494095,
0.14283953607082367,
0.10976105183362961,
0.05927063524723053,
-0.21818363666534424,
-0.11122789233922958,
-0.001945598516613245,
0.00936916470527649,
0.011775628663599491,
0.06285479664802551,
0.1788369119167328,
-0.08491832762956619,
-0.15526306629180908,
-0.08085314929485321,
0.09043792635202408,
0.11200252920389175,
-0.13476693630218506,
-0.021910153329372406,
0.18196170032024384,
-0.1045864000916481,
-0.10963388532400131,
-0.13713271915912628,
0.04243488609790802,
-0.15467257797718048,
-0.03173523023724556,
-0.014644108712673187,
0.002875668229535222,
0.05641527101397514,
-0.015872057527303696,
0.08610929548740387,
0.028233904391527176,
0.037866972386837006,
-0.13461992144584656,
-0.0948864072561264,
-0.18688178062438965,
-0.18428228795528412,
-0.0673808678984642,
-0.07624620944261551,
-0.12944890558719635,
0.0073835765942931175,
-0.15154123306274414,
-0.043438125401735306,
-0.10004961490631104,
-0.1923767328262329,
-0.12231827527284622,
0.15373462438583374,
0.02847864106297493,
0.019217276945710182,
0.011409398168325424,
0.03477040305733681,
0.012473353184759617,
0.14818492531776428,
0.0003605649690143764,
-0.253292053937912,
0.026058033108711243,
0.109374038875103,
-0.01457505114376545,
-0.03978322818875313,
0.04936728999018669,
0.19048550724983215,
-0.0864463746547699,
-0.039366986602544785,
-0.060385674238204956,
-0.08345410972833633,
-0.01883222721517086,
-0.05181954801082611,
0.045915890485048294,
0.02888103947043419,
0.0657506212592125,
-0.04018247127532959,
-0.07509278506040573,
0.13328024744987488,
-0.030023036524653435,
0.04896700382232666,
-0.02158956788480282,
-0.015276850201189518,
0.17948280274868011,
0.05960411578416824,
0.10368452221155167,
0.03412766009569168,
-0.051990341395139694,
-0.2187262773513794,
-0.014050370082259178,
0.11806811392307281,
-0.02066206745803356,
0.060623399913311005,
0.17330241203308105,
0.04690448194742203,
0.0768931657075882,
0.13139311969280243,
0.03233930468559265,
-0.09644536674022675,
0.18200093507766724,
0.020242085680365562,
-0.09123503416776657,
0.09788117557764053,
0.12848646938800812,
-0.06881821155548096,
-0.0639377310872078,
-0.054711442440748215,
0.16174490749835968,
-0.14661143720149994,
0.18589256703853607,
0.020894190296530724,
0.14597217738628387,
0.08554147928953171,
-0.019777614623308182,
0.2335945963859558,
-0.05543270334601402,
-0.14468613266944885,
0.05693277716636658,
0.1285466104745865,
0.04113411530852318,
0.02625039778649807,
0.06213498115539551,
0.060613542795181274,
-0.14706289768218994,
-0.16074307262897491,
0.25601592659950256,
-0.06731909513473511,
-0.0096871517598629,
-0.14849643409252167,
0.13898774981498718,
0.0037001436576247215,
-0.1270657628774643,
-0.005268063861876726,
0.05982601270079613,
-0.0072970399633049965,
0.12359249591827393,
-0.08844895660877228,
-0.11736345291137695,
0.25759464502334595,
0.2211879938840866,
0.022123118862509727,
-0.004981720354408026,
-0.09209897369146347,
0.05868230760097504,
-0.09963750839233398,
0.06364050507545471,
0.054964352399110794,
-0.0323304757475853,
0.21648931503295898,
-0.13041867315769196,
-0.12027903646230698,
0.07351478189229965,
-0.027411922812461853,
0.02378157526254654,
0.21237027645111084,
0.01015431061387062,
0.05965040996670723,
0.1617383360862732,
0.1223798468708992,
-0.25114163756370544,
-0.20596563816070557,
0.22001919150352478,
0.06570059806108475,
0.036507830023765564,
-0.08999855816364288,
0.06990449875593185,
-0.15066683292388916,
0.024997906759381294,
0.13851431012153625,
-0.11243995279073715,
-0.04142453148961067,
0.15852458775043488,
0.07262741029262543,
-0.0317271389067173,
0.11815614253282547,
-0.01982254907488823,
0.025091588497161865,
0.09449397772550583,
-0.049463070929050446,
0.11524904519319534,
-0.05512846261262894,
0.18172398209571838,
0.030874138697981834,
-0.06340198963880539,
0.2519204318523407,
-0.13440288603305817,
-0.009087062440812588,
0.03780035302042961,
0.1418357491493225,
-0.1660715639591217,
-0.03553672507405281,
-0.16021126508712769,
-0.07445519417524338,
0.03527681902050972,
0.09097167104482651,
-0.10914300382137299,
-0.09741000831127167,
-0.10710349678993225,
0.08988882601261139,
0.14126555621623993,
0.03266564756631851,
-0.15417255461215973,
-0.20954178273677826,
-0.040928494185209274,
-0.19483095407485962,
-0.05272838845849037,
-0.0436822772026062,
-0.035642948001623154,
-0.11516998708248138,
0.028350887820124626,
-0.10504108667373657,
0.1153717041015625,
0.007297246251255274,
0.017014531418681145,
-0.2674095928668976,
-0.07078546285629272,
-0.008531897328794003,
0.17061932384967804,
0.012591100297868252,
-0.17762091755867004,
0.08388832956552505,
-0.013547560200095177,
0.10957429558038712,
0.07170313596725464,
-0.047638487070798874,
0.048334237188100815,
-0.04277925565838814,
0.04564660042524338,
0.018938742578029633,
-0.022714763879776,
-0.06810693442821503,
0.015191491693258286,
0.03979640081524849,
0.008477991446852684,
-0.07233799248933792,
-0.028402196243405342,
-0.02468864805996418,
0.21549904346466064,
0.13533399999141693,
-0.0016567716374993324,
0.10543978959321976,
-0.004757524002343416,
-0.03214716166257858,
-0.11943509429693222,
0.18544453382492065,
-0.1514834314584732,
-0.07528690248727798,
0.039903637021780014,
-0.012524878606200218,
0.08135674893856049,
0.031184745952486992,
0.041712403297424316,
-0.11622749269008636,
-0.3179844319820404,
0.012344074435532093,
0.10935812443494797,
-0.018882177770137787,
-0.21556322276592255,
-0.0909435823559761,
-0.1737094521522522,
0.13695339858531952,
-0.019917495548725128,
-0.002859664848074317,
0.1062161773443222,
-0.040916651487350464,
-0.02796172723174095,
0.05057615414261818,
0.06430330127477646,
-0.0019694019574671984,
0.25715169310569763,
-0.2399575114250183,
0.038938008248806,
-0.3470558822154999,
-0.04523322358727455,
-0.007114226929843426,
-0.09076213836669922,
-0.08803676068782806,
-0.05100296810269356,
0.05223911255598068,
-0.23210127651691437,
-0.17161820828914642,
-0.02577846124768257,
0.07487200945615768,
-0.23525695502758026,
-0.038489244878292084,
-0.2138737291097641,
0.048533644527196884,
0.051130812615156174,
0.05412185937166214,
0.00867010373622179,
-0.10451926290988922,
-0.05867474898695946,
0.15005876123905182,
-0.02297963574528694,
-0.07971669733524323,
-0.001642126007936895,
0.29875627160072327,
-0.031006524339318275,
0.06713757663965225,
0.19110223650932312,
-0.0067516835406422615,
-0.18988719582557678,
-0.05007478967308998,
0.08299660682678223,
-0.015111967921257019,
0.03636752814054489,
-0.14033590257167816,
0.13961313664913177,
-0.131998211145401,
0.010362052358686924,
-0.10824278742074966,
-0.04637492075562477,
-0.005778858438134193,
0.12139414250850677,
-0.020939594134688377,
0.09735725075006485,
-0.07764361053705215,
0.020040342584252357,
-0.009339332580566406,
-0.04843190684914589,
-0.09878470003604889,
-0.09538234770298004,
-0.06824976205825806,
-0.10865194350481033,
-0.11126275360584259,
0.01730160415172577,
-0.15808290243148804,
0.10045856237411499,
0.05734385922551155,
-0.04579159617424011,
0.15605135262012482,
0.05546874552965164,
0.13031858205795288,
-0.06323152035474777,
-0.014259202405810356,
-0.025304360315203667,
0.05205916613340378,
-0.031856004148721695,
0.02952633425593376,
-0.07062125205993652,
0.014397943392395973,
-0.015999337658286095,
0.06637682765722275,
0.0648500993847847,
-0.029483575373888016,
-0.0004347772046457976,
0.036913298070430756,
-0.030110014602541924,
-0.0874953493475914,
-0.13452835381031036,
0.10110189020633698,
-0.16830965876579285,
-0.031325455754995346,
0.011287271976470947,
0.027205009013414383,
0.09080921113491058,
-0.10587649047374725,
0.08971525728702545,
0.08155777305364609,
-0.00831006933003664,
-0.09483344852924347,
0.011159373447299004,
-0.0602470301091671,
0.14689414203166962,
0.024137718603014946,
0.0918874442577362,
-0.04985533282160759,
-0.07470703125,
0.09022057056427002,
0.06987600028514862,
0.10590764880180359,
0.13042166829109192,
-0.05824294313788414,
-0.04300888255238533,
-0.31383970379829407,
-0.1800898164510727,
0.12380678951740265,
0.11122854053974152,
0.05513715744018555,
-0.10798940062522888,
-0.20819945633411407,
-0.021371547132730484,
0.00965471938252449,
-0.04363755136728287,
0.17131388187408447,
-0.0557260625064373,
0.02436569519340992,
0.03720955550670624,
-2.626821095927314e-32,
-0.028319867327809334,
-0.10758798569440842,
-0.059084970504045486,
0.05991819128394127,
-0.09010923653841019,
0.07622618228197098,
-0.1889379620552063,
-0.03611580282449722,
0.030058633536100388,
0.008903845213353634,
-0.022918282076716423,
0.09955399483442307,
-0.028876103460788727,
0.06950712203979492,
-0.10530946403741837,
-0.004551253281533718,
-0.08652535825967789,
-0.05747801437973976,
0.10156027227640152,
0.02491442859172821,
0.2621772587299347,
-0.11411769688129425,
0.14408054947853088,
-0.07542149722576141,
0.021785685792565346,
-0.10463334619998932,
0.0012881349539384246,
-0.19017358124256134,
0.004216389264911413,
0.008560584858059883,
-0.09178232401609421,
0.12547864019870758,
-0.05309241637587547,
0.13809798657894135,
0.01039065606892109,
-0.13614770770072937,
0.033332984894514084,
-0.038364898413419724,
-0.2604140639305115,
-0.1166813001036644,
-0.22166237235069275,
0.07192794978618622,
0.026294078677892685,
0.017005285248160362,
0.09544241428375244,
-0.01933714933693409,
0.003932765685021877,
0.030088234692811966,
-0.06644203513860703,
-0.03129284828901291,
0.12339349836111069,
0.07353322207927704,
0.1273612231016159,
0.10830499976873398,
0.13099971413612366,
-0.16997592151165009,
0.09045692533254623,
-0.1282685250043869,
-0.0655420571565628,
0.008375009521842003,
-0.06387506425380707,
-0.1041339635848999,
-0.0019776534754782915,
0.08446457237005234,
0.05558602511882782,
-0.058451734483242035,
0.01823631301522255,
0.09081586450338364,
0.18257975578308105,
0.15509746968746185,
-0.1118023619055748,
0.3733161687850952,
-0.060892779380083084,
0.02596888318657875,
-0.12076360732316971,
-0.07374909520149231,
0.02296612598001957,
-0.05734875053167343,
0.0007089217542670667,
-0.18228758871555328,
-0.1498814970254898,
0.057526275515556335,
0.16607794165611267,
-0.06427456438541412,
0.014328011311590672,
-0.03068401664495468,
0.027673378586769104,
-0.13344982266426086,
-0.05540323257446289,
-0.08871259540319443,
-0.20420776307582855,
0.13363385200500488,
0.01648622378706932,
-0.04345252364873886,
-0.20994190871715546,
0.14609768986701965,
-0.15640300512313843,
0.08762329816818237,
-0.08711462467908859,
0.06467791646718979,
0.004737401846796274,
-0.05224046856164932,
0.05529352277517319,
-0.03432180732488632,
0.16085658967494965,
0.12362579256296158,
0.146255761384964,
0.22601883113384247,
-0.10125207901000977,
0.004617053549736738,
0.041927117854356766,
-0.08437209576368332,
-0.12804970145225525,
-0.05950404703617096,
0.23788416385650635,
-0.0159154012799263,
0.05583415925502777,
0.021151985973119736,
0.1994796097278595,
0.06070743128657341,
-0.05082261189818382,
-0.036621131002902985,
-0.009353230707347393,
0.039729952812194824,
0.1471063792705536,
-0.03413979336619377,
-0.18449948728084564,
-0.15392351150512695,
0.16091932356357574,
0.002727182349190116,
0.1615598350763321,
-0.10365135967731476,
7.384969649137929e-7,
-0.06863809376955032,
0.2746581435203552,
0.02932867966592312,
0.12921582162380219,
-0.05730058625340462,
0.13197076320648193,
-0.06393489241600037,
0.12973415851593018,
-0.00679791159927845,
0.03748079761862755,
0.10989191383123398,
-0.039246153086423874,
-0.2014361023902893,
0.22517526149749756,
0.005763147491961718,
0.08192809671163559,
-0.18799370527267456,
0.02102603390812874,
-0.11822149157524109,
0.064414843916893,
0.21842800080776215,
-0.05113741010427475,
0.08042581379413605,
-0.0232243649661541,
0.0004858037573285401,
0.038933806121349335,
0.10121385753154755,
0.024190494790673256,
-0.0788058266043663,
-0.04004805535078049,
-0.11119604110717773,
0.0929432362318039,
-0.05560250207781792,
0.16380618512630463,
-0.07141197472810745,
-0.006040662061423063,
0.018012244254350662,
-0.02960984595119953,
-0.14205174148082733,
0.07362711429595947,
0.1726803332567215,
-0.023600656539201736,
0.041720982640981674,
-0.0022135882172733545,
0.11420199275016785,
-0.05153746157884598,
-0.10760705173015594,
-0.06811308115720749,
-0.0908278301358223,
0.0183999203145504,
-0.0562191978096962,
0.045105960220098495,
0.039605721831321716,
0.05332600697875023,
-0.14608600735664368,
0.10802929848432541,
-0.057094186544418335,
-0.056247539818286896,
0.09268897026777267,
0.08395574241876602,
0.15151290595531464,
-0.09697365015745163,
-0.00851947721093893,
-0.029276594519615173,
0.11730712652206421,
0.037139467895030975,
0.030116107314825058,
2.1355913004708914e-34,
-0.18004871904850006,
0.10930383950471878,
-0.09513912349939346,
-0.013194865547120571,
-0.021821841597557068,
-0.1540687531232834,
0.12768645584583282,
0.028227997943758965,
0.19714993238449097,
-0.0065617808140814304,
-0.04947464540600777
] |
https://github.com/huggingface/datasets/issues/2426 | Saving Graph/Structured Data in Datasets | Thank you so much, and that works! I also have a question that if the dataset is very large, that cannot be loaded into the memory. How to create the Dataset? | Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help. | 31 | Saving Graph/Structured Data in Datasets
Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help.
Thank you so much, and that works! I also have a question that if the dataset is very large, that cannot be loaded into the memory. How to create the Dataset? | [
-0.09089294075965881,
0.14021296799182892,
0.06421533972024918,
0.12311551719903946,
0.1373804807662964,
-0.11418884247541428,
0.024991653859615326,
-0.01587432436645031,
-0.06605501472949982,
-0.07905610650777817,
-0.06261246651411057,
0.0388924703001976,
-0.056805770844221115,
0.17066891491413116,
0.04956698417663574,
-0.1464214324951172,
-0.013899040408432484,
-0.010250267572700977,
-0.03817307949066162,
0.03408365696668625,
-0.09406186640262604,
-0.05421411991119385,
0.2692941129207611,
-0.11035362631082535,
-0.05534415692090988,
-0.018744738772511482,
-0.12604866921901703,
0.14830715954303741,
-0.030163291841745377,
-0.3005141317844391,
0.0066134133376181126,
0.0971921756863594,
0.17140401899814606,
0.09418359398841858,
0.000005663132014888106,
0.087926484644413,
0.022643426433205605,
-0.07690907269716263,
-0.03294958174228668,
-0.13144156336784363,
0.1814248412847519,
-0.08973626792430878,
0.07981249690055847,
-0.14286601543426514,
0.04051783308386803,
-0.10029584169387817,
0.024374892935156822,
-0.05641830340027809,
0.2381569743156433,
0.043204158544540405,
0.012801854871213436,
-0.10282843559980392,
0.16798453032970428,
-0.017250578850507736,
-0.046407390385866165,
0.194248765707016,
0.1099104955792427,
0.17893584072589874,
-0.12083461880683899,
0.09222017228603363,
0.020781686529517174,
-0.21060656011104584,
-0.0999758243560791,
-0.005104869604110718,
0.09261472523212433,
-0.11455857753753662,
-0.22110004723072052,
-0.019808897748589516,
0.09125290811061859,
0.12143921852111816,
0.13475678861141205,
-0.1576559990644455,
-0.000041074574255617335,
0.022284528240561485,
-0.027940873056650162,
0.05241852253675461,
-0.018986094743013382,
0.04911605268716812,
-0.09852816164493561,
-0.02957315556704998,
0.15398232638835907,
-0.135927215218544,
-0.06699233502149582,
0.06757047772407532,
-0.08730712532997131,
-0.042302753776311874,
-0.04582544416189194,
0.08942866325378418,
-0.09200046956539154,
-0.1124112457036972,
0.06715540587902069,
-0.05477774515748024,
-0.0012329898308962584,
0.005911081098020077,
-0.04092400521039963,
-0.08742678910493851,
-0.1654457002878189,
0.061271898448467255,
-0.08444555103778839,
0.003730052849277854,
0.05063050612807274,
-0.10855976492166519,
0.07960433512926102,
0.08379440754652023,
-0.06563951075077057,
-0.09369674324989319,
-0.14829885959625244,
-0.06974592059850693,
0.13072192668914795,
0.10429857671260834,
-0.062394168227910995,
0.11430180817842484,
-0.09919498860836029,
0.1427384316921234,
0.22810497879981995,
0.01665928028523922,
-0.041830677539110184,
0.1321209967136383,
-0.0723881945014,
0.07533719390630722,
0.10964615643024445,
0.011605764739215374,
0.09523691982030869,
0.16642442345619202,
-0.06872189044952393,
-0.02302085980772972,
-0.03236393630504608,
0.08773870766162872,
0.07017736881971359,
0.1343306005001068,
0.03206776827573776,
0.03304315358400345,
0.3129212558269501,
-0.07199787348508835,
0.16208039224147797,
-0.054241377860307693,
0.1089538112282753,
-0.10506240278482437,
-0.21363329887390137,
-0.17241325974464417,
0.17659857869148254,
-0.06670869141817093,
0.09014163911342621,
-0.15623529255390167,
0.10890249162912369,
0.07454396039247513,
-0.11141374707221985,
-0.02371552772819996,
-0.031710922718048096,
0.09681844711303711,
-0.04740197956562042,
0.08869142085313797,
-0.25003957748413086,
0.0019282272551208735,
-0.03675377741456032,
-0.04937495291233063,
-0.1965796798467636,
-0.13012877106666565,
-0.07868451625108719,
-0.04609369859099388,
0.10516440868377686,
-0.16513855755329132,
-0.10505889356136322,
-0.17228424549102783,
0.15530513226985931,
0.08981253951787949,
-0.06772734969854355,
0.0375160276889801,
-0.04882501810789108,
0.043247975409030914,
0.009042109362781048,
0.061541054397821426,
-0.053091179579496384,
-0.07790829241275787,
0.09189088642597198,
0.176865354180336,
0.16150310635566711,
0.01856929622590542,
-0.22887323796749115,
-0.10797210782766342,
0.01058878842741251,
-0.03600006178021431,
-0.017094941809773445,
0.08759485185146332,
0.1883411556482315,
-0.07469240576028824,
-0.09507551044225693,
0.0014978221151977777,
0.05351601913571358,
0.06774496287107468,
-0.16931793093681335,
-0.00404704362154007,
0.14530996978282928,
-0.0749572291970253,
-0.047568269073963165,
-0.09133388847112656,
0.06110956892371178,
-0.05406568944454193,
0.032664135098457336,
-0.04501453414559364,
-0.03649889677762985,
0.03326166048645973,
-0.015618088655173779,
0.14251463115215302,
0.036640334874391556,
0.034060072153806686,
-0.13973376154899597,
-0.07652300596237183,
-0.08906260132789612,
-0.22263334691524506,
-0.06542003899812698,
-0.004843130707740784,
-0.11795151978731155,
-0.036512233316898346,
-0.1269189417362213,
-0.05759849771857262,
-0.09434005618095398,
-0.14630097150802612,
-0.07223580777645111,
0.1346721202135086,
-0.02764863148331642,
0.02267574705183506,
-0.008094167336821556,
-0.0015140557661652565,
0.0004270758363418281,
0.1425444483757019,
-0.012708700262010098,
-0.2667773962020874,
0.07969292998313904,
0.13347817957401276,
-0.039481885731220245,
-0.06630337238311768,
0.06549129635095596,
0.19061852991580963,
-0.07473842799663544,
-0.0846453458070755,
-0.08841989934444427,
-0.02369745634496212,
0.011078733950853348,
-0.07347683608531952,
0.08478247374296188,
-0.03378216549754143,
0.05758443847298622,
-0.02749844454228878,
-0.08516521006822586,
0.056674614548683167,
-0.024179011583328247,
0.0715695470571518,
-0.007990291342139244,
0.0187714584171772,
0.18724089860916138,
0.06984898447990417,
0.17067094147205353,
0.011711190454661846,
-0.017711427062749863,
-0.12854145467281342,
0.06963411718606949,
0.11952932178974152,
-0.05300628021359444,
0.07700170576572418,
0.18126033246517181,
0.04606936499476433,
0.08822013437747955,
0.11216095834970474,
0.053402386605739594,
-0.09171473234891891,
0.1621769517660141,
-0.0125739686191082,
-0.10817372798919678,
0.06900353729724884,
0.13614095747470856,
-0.01907925307750702,
-0.03637504577636719,
-0.07350415736436844,
0.10237175971269608,
-0.1262885481119156,
0.1809643805027008,
-0.052619922906160355,
0.19779936969280243,
0.07962657511234283,
-0.021459806710481644,
0.19867967069149017,
-0.042492933571338654,
-0.1331171840429306,
0.06465179473161697,
0.13537319004535675,
0.06133833900094032,
-0.0009585265652276576,
0.04092235118150711,
0.053585294634103775,
-0.14678068459033966,
-0.13042622804641724,
0.21752092242240906,
-0.017146045342087746,
0.027401791885495186,
-0.15883560478687286,
0.17448435723781586,
-0.010656028985977173,
-0.18647772073745728,
0.030164211988449097,
0.06246110424399376,
0.02397186867892742,
0.12302470207214355,
-0.07273400574922562,
-0.09515208750963211,
0.23531471192836761,
0.21478897333145142,
0.013576047495007515,
-0.02364986017346382,
-0.07737527042627335,
0.059357497841119766,
-0.08285312354564667,
0.09676089882850647,
0.049430690705776215,
-0.03869463503360748,
0.20236307382583618,
-0.11950704455375671,
-0.059388332068920135,
0.055927541106939316,
-0.01704302802681923,
0.019799863919615746,
0.14736256003379822,
0.013813838362693787,
0.09554681926965714,
0.13703370094299316,
0.16490551829338074,
-0.2985362410545349,
-0.2103843092918396,
0.2537349760532379,
0.12200847268104553,
0.05101076886057854,
-0.09721928834915161,
0.06497211754322052,
-0.1178135871887207,
0.017285173758864403,
0.16323702037334442,
-0.13241492211818695,
-0.12632133066654205,
0.2059890180826187,
0.09070061147212982,
-0.05514905974268913,
0.12195765972137451,
-0.03540312126278877,
0.055971380323171616,
0.05637934431433678,
-0.057875603437423706,
0.09875790029764175,
-0.11013827472925186,
0.20671848952770233,
-0.00011365563841536641,
-0.020110690966248512,
0.23663528263568878,
-0.148328498005867,
0.011351818218827248,
0.0351514108479023,
0.1121373325586319,
-0.14722295105457306,
-0.0360368974506855,
-0.15286734700202942,
-0.048497579991817474,
0.024730192497372627,
0.1473102867603302,
-0.09284473210573196,
-0.1662580966949463,
-0.11298184096813202,
0.043015751987695694,
0.13814623653888702,
0.0725933164358139,
-0.19397276639938354,
-0.19247731566429138,
-0.015676356852054596,
-0.19793491065502167,
-0.023347368463873863,
-0.014926420524716377,
-0.01883787102997303,
-0.15056321024894714,
0.04365009069442749,
-0.11317035555839539,
0.1657804399728775,
0.03833550587296486,
-0.005637169349938631,
-0.27350062131881714,
-0.1043504998087883,
-0.03742571175098419,
0.1360948532819748,
0.006128357257694006,
-0.1963624507188797,
0.08245623856782913,
-0.044710174202919006,
0.1007770374417305,
0.0576525516808033,
-0.002598387189209461,
-0.02661188878118992,
-0.05099101364612579,
0.003840905614197254,
0.024173296988010406,
-0.01604139618575573,
-0.03508470579981804,
-0.009345119819045067,
0.029496267437934875,
0.022763829678297043,
-0.09393364191055298,
0.017846083268523216,
-0.054058901965618134,
0.14786311984062195,
0.07862652838230133,
-0.04343828558921814,
0.13393352925777435,
0.04915900155901909,
-0.08680801838636398,
-0.07790153473615646,
0.19276972115039825,
-0.13437910377979279,
-0.12224038690328598,
0.07700317353010178,
0.00811733677983284,
0.04951100796461105,
0.03338305652141571,
0.0680425688624382,
-0.11203888058662415,
-0.2850090563297272,
0.020372632890939713,
0.11550195515155792,
-0.042973410338163376,
-0.1182188093662262,
-0.05951768159866333,
-0.1543348878622055,
0.11491226404905319,
-0.0426047183573246,
0.03230002149939537,
0.13320723176002502,
-0.05267169699072838,
-0.013811902143061161,
0.03531896322965622,
0.0663503110408783,
0.014256732538342476,
0.22206644713878632,
-0.2105211764574051,
0.06619919836521149,
-0.260809063911438,
0.019782230257987976,
0.02164445072412491,
-0.09611184149980545,
-0.07707337290048599,
-0.061971135437488556,
0.025405408814549446,
-0.22635409235954285,
-0.1868070363998413,
0.06368774175643921,
0.03948356211185455,
-0.19313935935497284,
-0.08969210833311081,
-0.24842233955860138,
0.05999644473195076,
0.10211830586194992,
0.07823006808757782,
0.016603540629148483,
-0.0742124542593956,
-0.04127735272049904,
0.14847636222839355,
-0.008840293623507023,
-0.07256335765123367,
-0.015799973160028458,
0.2593282163143158,
-0.04750874638557434,
0.07486037164926529,
0.21531644463539124,
-0.13270041346549988,
-0.1680230349302292,
-0.07016830891370773,
0.10601503401994705,
0.0029752759728580713,
0.008125945925712585,
-0.14925821125507355,
0.0797211304306984,
-0.11431541293859482,
0.014051412232220173,
-0.0730452612042427,
-0.11324132978916168,
0.01820448972284794,
0.14810866117477417,
-0.015367143787443638,
0.0841444730758667,
-0.0794001892209053,
0.017564529553055763,
0.05301300808787346,
-0.04292100667953491,
-0.055656030774116516,
-0.10600502043962479,
-0.06836915016174316,
-0.09998646378517151,
-0.09178217500448227,
-0.044673364609479904,
-0.1334272027015686,
0.08601316064596176,
-0.002615175908431411,
-0.08720658719539642,
0.10975145548582077,
0.04996725544333458,
0.1030336320400238,
-0.031160742044448853,
-0.046618156135082245,
-0.03850610554218292,
0.04568497836589813,
-0.022983398288488388,
0.05012088268995285,
-0.047415558248758316,
0.028355920687317848,
-0.027051733806729317,
0.0580996610224247,
0.09954680502414703,
-0.009576165117323399,
0.007277886848896742,
0.024877527728676796,
0.00673327874392271,
-0.08607537299394608,
-0.0650179386138916,
0.14201809465885162,
-0.1622372567653656,
-0.018112899735569954,
0.018373582512140274,
0.01735435239970684,
0.1343793272972107,
-0.07333928346633911,
0.06751220673322678,
0.07913102209568024,
-0.03150223568081856,
-0.10346777737140656,
0.029377320781350136,
-0.01562625542283058,
0.1791357398033142,
0.05435069650411606,
0.10837472975254059,
-0.076076939702034,
-0.07292225956916809,
0.05126005411148071,
0.06195758655667305,
0.06360179930925369,
0.08680886030197144,
-0.07728009670972824,
-0.08873835951089859,
-0.32741445302963257,
-0.1807606816291809,
0.12109169363975525,
0.04923400282859802,
0.002578791230916977,
-0.07879596948623657,
-0.21959753334522247,
-0.031016411259770393,
0.02152089588344097,
-0.0012515407288447022,
0.1415315866470337,
-0.03619459643959999,
-0.01769084669649601,
0.06373263150453568,
-2.548895224422603e-32,
-0.04909415543079376,
-0.19245141744613647,
0.015876879915595055,
0.06389522552490234,
-0.0921320766210556,
0.10844738781452179,
-0.1579936295747757,
-0.04664764925837517,
0.03642811253666878,
-0.0077326055616140366,
-0.009002896957099438,
0.07265190780162811,
-0.007593084592372179,
0.11752267181873322,
-0.07448373734951019,
-0.024568408727645874,
-0.07045023888349533,
-0.06063832342624664,
0.0852862149477005,
0.04941384121775627,
0.24338123202323914,
-0.11048505455255508,
0.041693177074193954,
-0.05851638689637184,
0.015010001137852669,
-0.061960507184267044,
0.03362530842423439,
-0.14263145625591278,
0.00010030200792243704,
0.0058747222647070885,
-0.0801536813378334,
0.12887363135814667,
-0.03699735924601555,
0.11948531866073608,
-0.01051875576376915,
-0.08503685146570206,
-0.005766125861555338,
-0.039140649139881134,
-0.2623046040534973,
-0.06507626175880432,
-0.22641505300998688,
0.024550681933760643,
0.015181056223809719,
0.01074202824383974,
0.11831103265285492,
-0.017606163397431374,
-0.007038367912173271,
0.07345558702945709,
-0.048535700887441635,
-0.045616768300533295,
0.08320452272891998,
0.10458587855100632,
0.1799008846282959,
0.11115588247776031,
0.1522027850151062,
-0.15917997062206268,
0.09593141824007034,
-0.10795073211193085,
-0.06113232672214508,
0.0009933061664924026,
-0.0926521047949791,
-0.1481202095746994,
-0.04872160777449608,
0.13540540635585785,
0.08083445578813553,
-0.09187517315149307,
0.07982887327671051,
0.0753297507762909,
0.1393200308084488,
0.13807250559329987,
-0.12868055701255798,
0.325227826833725,
-0.03229290246963501,
-0.013163449242711067,
-0.12443435192108154,
-0.06730712205171585,
-0.017727019265294075,
-0.11269783973693848,
0.013785812072455883,
-0.1792260706424713,
-0.13192152976989746,
0.040230512619018555,
0.16969497501850128,
-0.09919925779104233,
0.03969873487949371,
-0.010231690481305122,
-0.021806033328175545,
-0.07111204415559769,
-0.045273490250110626,
-0.08409351855516434,
-0.14992298185825348,
0.15559928119182587,
0.044736072421073914,
-0.0949285626411438,
-0.1571488380432129,
0.13659121096134186,
-0.11489077657461166,
0.055573720484972,
-0.05470869690179825,
0.05863219499588013,
0.011922149918973446,
-0.04966823011636734,
0.038934554904699326,
-0.03810592740774155,
0.1390661597251892,
0.09528541564941406,
0.15504835546016693,
0.2018226981163025,
-0.10287138819694519,
0.023222437128424644,
-0.025659386068582535,
-0.025573818013072014,
-0.1349126249551773,
-0.05615309625864029,
0.2287265658378601,
0.017228785902261734,
0.013462988659739494,
0.06756528466939926,
0.1764414757490158,
0.1261850893497467,
-0.06359758228063583,
-0.06828764826059341,
0.015218731947243214,
0.01555701531469822,
0.12000524997711182,
0.007819939404726028,
-0.20972202718257904,
-0.14866837859153748,
0.13043971359729767,
-0.007624180056154728,
0.10494450479745865,
-0.13373228907585144,
7.619597681696177e-7,
-0.09629407525062561,
0.30345433950424194,
0.03273937106132507,
0.13267876207828522,
-0.0125321289524436,
0.0909290686249733,
-0.03477897495031357,
0.13880740106105804,
-0.010738421231508255,
0.01566469483077526,
0.0866992399096489,
0.028691908344626427,
-0.18887893855571747,
0.1938685178756714,
-0.03197113797068596,
0.10493654012680054,
-0.13160602748394012,
-0.003966465126723051,
-0.11286665499210358,
0.06384804099798203,
0.15811769664287567,
-0.005523861385881901,
0.0557236522436142,
-0.03386061266064644,
0.048832643777132034,
-0.04387085512280464,
0.09052768349647522,
0.01613914780318737,
-0.06383755058050156,
-0.10642040520906448,
-0.115626260638237,
0.12411315739154816,
-0.0902562364935875,
0.1447790414094925,
-0.09006159007549286,
-0.02846205234527588,
0.017266884446144104,
-0.03068450093269348,
-0.1355782449245453,
0.07842034101486206,
0.1841065138578415,
-0.0462426133453846,
0.0008030540775507689,
0.014194888062775135,
0.12803930044174194,
-0.06297338753938675,
-0.1666921228170395,
-0.017351960763335228,
-0.027841366827487946,
-0.020309636369347572,
-0.06484917551279068,
0.0580124668776989,
0.06453821808099747,
0.041218411177396774,
-0.11257718503475189,
0.05414305999875069,
-0.07445988804101944,
-0.025826340541243553,
0.08116885274648666,
0.05886417627334595,
0.13512040674686432,
-0.1700090765953064,
-0.008539373055100441,
-0.003404012881219387,
0.18618303537368774,
0.0477285236120224,
0.029674429446458817,
3.3261478206067914e-34,
-0.13502183556556702,
0.060778405517339706,
-0.07256101816892624,
-0.0847310796380043,
0.01889718882739544,
-0.11102405935525894,
0.1309627741575241,
0.024057257920503616,
0.21989192068576813,
-0.04639668017625809,
-0.05787719413638115
] |
https://github.com/huggingface/datasets/issues/2426 | Saving Graph/Structured Data in Datasets | If your dataset doesn't fit in memory, store it in a local file and load it from there. Check out [this chapter](https://huggingface.co/docs/datasets/master/loading_datasets.html#from-local-files) in the docs for more info. | Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help. | 28 | Saving Graph/Structured Data in Datasets
Thanks for this amazing library! And my question is I have structured data that is organized with a graph. For example, a dataset with users' friendship relations and user's articles. When I try to save a python dict in the dataset, an error occurred ``did not recognize Python value type when inferring an Arrow data type''.
Although I also know that storing a python dict in pyarrow datasets is not the best practice, but I have no idea about how to save structured data in the Datasets.
Thank you very much for your help.
If your dataset doesn't fit in memory, store it in a local file and load it from there. Check out [this chapter](https://huggingface.co/docs/datasets/master/loading_datasets.html#from-local-files) in the docs for more info. | [
-0.08877844363451004,
0.07515045255422592,
0.05283414572477341,
0.13021092116832733,
0.14785410463809967,
-0.11091631650924683,
0.025024812668561935,
0.01846281997859478,
-0.02449481189250946,
-0.09035509824752808,
-0.0997876524925232,
0.04798353090882301,
-0.037590932101011276,
0.19295471906661987,
0.06930958479642868,
-0.1446555256843567,
-0.03211838752031326,
-0.019327152520418167,
-0.0597781166434288,
0.03971154987812042,
-0.0724753886461258,
-0.04032846540212631,
0.3041819632053375,
-0.08430777490139008,
-0.06945671141147614,
-0.013566194102168083,
-0.11935874819755554,
0.18643909692764282,
0.012638406828045845,
-0.28340405225753784,
0.012468311935663223,
0.1210232824087143,
0.1690828502178192,
0.08868122100830078,
0.000005601798875431996,
0.11156270653009415,
-0.031128263100981712,
-0.08947586268186569,
-0.042188212275505066,
-0.14320315420627594,
0.17753484845161438,
-0.05503901094198227,
0.06869509071111679,
-0.14079555869102478,
0.025840429589152336,
-0.09124511480331421,
0.03464941680431366,
-0.05495815351605415,
0.23412199318408966,
0.0246034637093544,
0.015247472561895847,
-0.04390867426991463,
0.13648231327533722,
-0.018428023904561996,
-0.0877857655286789,
0.20519143342971802,
0.09527096897363663,
0.18770955502986908,
-0.14948149025440216,
0.10989824682474136,
0.037006210535764694,
-0.18446019291877747,
-0.0988088920712471,
0.02370329387485981,
0.1523108035326004,
-0.10650115460157394,
-0.2348542958498001,
0.01473978441208601,
0.07809755206108093,
0.11884931474924088,
0.05766062065958977,
-0.1474395990371704,
-0.0047180806286633015,
-0.00619543856009841,
-0.0068656508810818195,
0.06825696676969528,
-0.02602137066423893,
0.02204296365380287,
-0.09040094912052155,
-0.027907133102416992,
0.15456591546535492,
-0.17845593392848969,
-0.06216603145003319,
0.05117462947964668,
-0.08965146541595459,
-0.038909073919057846,
-0.07148270308971405,
0.07311456650495529,
-0.05557407811284065,
-0.12166330963373184,
0.05270938575267792,
-0.05521950498223305,
0.0379592590034008,
0.019752994179725647,
0.009931462816894054,
-0.07529979944229126,
-0.13563172519207,
0.09565141052007675,
-0.08913162350654602,
0.0069724638015031815,
0.056351397186517715,
-0.1052699163556099,
0.05280545353889465,
0.09203094989061356,
-0.10230758786201477,
-0.09100434929132462,
-0.08506111800670624,
-0.09566911309957504,
0.12391428649425507,
0.16745001077651978,
-0.06947168707847595,
0.09251440316438675,
-0.09888682514429092,
0.14695946872234344,
0.16506332159042358,
0.03085768036544323,
-0.02331131137907505,
0.12355112284421921,
-0.0755169466137886,
0.06915106624364853,
0.14105616509914398,
0.013055951334536076,
0.1060074046254158,
0.21389201283454895,
-0.030720748007297516,
-0.017394788563251495,
0.0005389542784541845,
0.08149930089712143,
0.07287432253360748,
0.10724800825119019,
-0.00020203796157147735,
0.027724558487534523,
0.3410044312477112,
-0.0690312534570694,
0.15061140060424805,
-0.09528976678848267,
0.13700950145721436,
-0.13344524800777435,
-0.20058631896972656,
-0.15296965837478638,
0.13530682027339935,
-0.01991719752550125,
0.08013852685689926,
-0.15138155221939087,
0.1166079118847847,
0.04236416891217232,
-0.0917949229478836,
-0.032529305666685104,
-0.014857561327517033,
0.06140337884426117,
-0.03925519436597824,
0.07896820455789566,
-0.24691887199878693,
-0.023610936477780342,
-0.04242096468806267,
-0.0766860842704773,
-0.20068581402301788,
-0.11584659665822983,
-0.09257330745458603,
-0.03228887543082237,
0.13031543791294098,
-0.14268352091312408,
-0.12052711844444275,
-0.14316488802433014,
0.15993131697177887,
0.08303769677877426,
-0.07798463851213455,
-0.0010558023350313306,
-0.008614891208708286,
-0.008507892489433289,
-0.011507684364914894,
0.047052621841430664,
-0.03543469309806824,
-0.06578611582517624,
0.06355153024196625,
0.18549659848213196,
0.12917503714561462,
0.011549939401447773,
-0.18582439422607422,
-0.11434846371412277,
0.001740974490530789,
-0.0027778316289186478,
0.0003225676773581654,
0.06491625308990479,
0.14351750910282135,
-0.11477271467447281,
-0.11621265113353729,
-0.030213426798582077,
0.05545584112405777,
0.08764184266328812,
-0.16504602134227753,
-0.03974318876862526,
0.13784855604171753,
-0.09776297211647034,
-0.08747193962335587,
-0.09973637759685516,
0.045994147658348083,
-0.10431648045778275,
0.015999242663383484,
-0.059267014265060425,
-0.00901475828140974,
0.057062190026044846,
-0.0022526474203914404,
0.14147748053073883,
0.014032966457307339,
0.011153147555887699,
-0.19809281826019287,
-0.0713171735405922,
-0.1126357913017273,
-0.24426372349262238,
-0.07616901397705078,
-0.028567470610141754,
-0.1310485154390335,
-0.02897191420197487,
-0.15997987985610962,
-0.0778747946023941,
-0.0847429484128952,
-0.15539318323135376,
-0.05602686107158661,
0.15949487686157227,
-0.030725622549653053,
0.01432113442569971,
0.019787166267633438,
-0.004687393084168434,
-0.01765761524438858,
0.12388142943382263,
0.013452702201902866,
-0.25956991314888,
0.08638632297515869,
0.13203684985637665,
-0.04859592020511627,
-0.05098217725753784,
0.07015431672334671,
0.1991506814956665,
-0.11004692316055298,
-0.042520180344581604,
-0.05607440322637558,
-0.03616994246840477,
0.019681954756379128,
-0.03839467838406563,
0.05290217325091362,
-0.061960410326719284,
0.031604256480932236,
0.013371890410780907,
-0.08004440367221832,
0.08961781114339828,
-0.05595623701810837,
0.043022770434617996,
-0.034377340227365494,
0.025185516104102135,
0.21089603006839752,
0.061359796673059464,
0.14626355469226837,
0.006420172285288572,
0.007483474910259247,
-0.17565469443798065,
0.052119798958301544,
0.1154894083738327,
-0.08509877324104309,
0.09840461611747742,
0.17022216320037842,
0.06131833791732788,
0.04940469190478325,
0.10005251318216324,
0.052679166197776794,
-0.09948185086250305,
0.1591879278421402,
-0.05092848464846611,
-0.10017283260822296,
0.09759868681430817,
0.1500679850578308,
-0.03414878994226456,
-0.040342558175325394,
-0.08151033520698547,
0.10951663553714752,
-0.13162821531295776,
0.18269331753253937,
-0.002707616426050663,
0.1627061814069748,
0.06262900680303574,
-0.05454174429178238,
0.2231471836566925,
-0.05047106370329857,
-0.11428944021463394,
0.03892192617058754,
0.10855003446340561,
0.03856918215751648,
0.009264030493795872,
0.03909405693411827,
0.040526315569877625,
-0.18499089777469635,
-0.14122247695922852,
0.22701866924762726,
-0.011899813078343868,
-0.001972579164430499,
-0.18068987131118774,
0.20500721037387848,
0.024819500744342804,
-0.1863851398229599,
0.05770072340965271,
0.044159404933452606,
0.0016744009917601943,
0.107294000685215,
-0.10758070647716522,
-0.09737980365753174,
0.2520306408405304,
0.22831939160823822,
0.01101466454565525,
-0.023671835660934448,
-0.10542792826890945,
0.09733249247074127,
-0.09744644910097122,
0.0641283169388771,
0.08037802577018738,
-0.046275921165943146,
0.18775033950805664,
-0.13246987760066986,
-0.06155188009142876,
0.10067957639694214,
-0.02837606891989708,
0.017298055812716484,
0.1589352786540985,
0.03372977674007416,
0.10603255778551102,
0.14905358850955963,
0.19434894621372223,
-0.27539750933647156,
-0.24761277437210083,
0.24741865694522858,
0.05566000938415527,
0.03559275344014168,
-0.04583905637264252,
0.04747603088617325,
-0.11334466934204102,
-0.03331281617283821,
0.17383751273155212,
-0.13215190172195435,
-0.1536712944507599,
0.16384032368659973,
0.05902888625860214,
-0.07282715290784836,
0.10063321888446808,
-0.01220635324716568,
0.044899918138980865,
0.053626637905836105,
-0.06307865679264069,
0.04597639665007591,
-0.08564698696136475,
0.19376488029956818,
0.01082854438573122,
-0.02676202915608883,
0.23578916490077972,
-0.18298277258872986,
-0.006864345166832209,
0.04813862219452858,
0.09878874570131302,
-0.14108259975910187,
-0.052211374044418335,
-0.13877664506435394,
-0.07005520164966583,
0.013308972120285034,
0.14626596868038177,
-0.09540288150310516,
-0.17815466225147247,
-0.11036038398742676,
0.05901095271110535,
0.13014379143714905,
0.08088764548301697,
-0.21501989662647247,
-0.22774480283260345,
-0.012546978890895844,
-0.17532871663570404,
-0.026242582127451897,
0.011388389393687248,
-0.017059629783034325,
-0.05322237312793732,
0.03176744282245636,
-0.14639988541603088,
0.20192468166351318,
0.0010726138716563582,
-0.0030916621908545494,
-0.2450367957353592,
-0.09313994646072388,
-0.020666971802711487,
0.15969958901405334,
0.03366794437170029,
-0.19364725053310394,
0.12057981640100479,
0.020357295870780945,
0.10232695937156677,
0.08785746246576309,
-0.0440482459962368,
-0.013392982073128223,
-0.10742813348770142,
0.022046685218811035,
0.031168397516012192,
-0.030909884721040726,
-0.036959148943424225,
0.015602795407176018,
0.026459645479917526,
0.026942981407046318,
-0.07494187355041504,
0.08546801656484604,
-0.04669155925512314,
0.15374863147735596,
0.06501642614603043,
-0.058264270424842834,
0.12535648047924042,
0.0656161978840828,
-0.09818198531866074,
-0.06403061747550964,
0.23801353573799133,
-0.09369368106126785,
-0.153057262301445,
0.04265577718615532,
-0.02748866006731987,
0.09347069263458252,
0.020489247515797615,
0.050645794719457626,
-0.08498615026473999,
-0.2891620993614197,
0.025661516934633255,
0.14329536259174347,
-0.044701963663101196,
-0.13034410774707794,
-0.060303155332803726,
-0.1514049619436264,
0.10282012075185776,
-0.019214823842048645,
0.011300434358417988,
0.15679816901683807,
-0.036034051328897476,
-0.009112700819969177,
0.09892375767230988,
0.11724403500556946,
-0.00872977077960968,
0.22157829999923706,
-0.2453990876674652,
-0.000899636885151267,
-0.2725270688533783,
0.018030177801847458,
0.028571240603923798,
-0.03702855482697487,
-0.061549074947834015,
-0.0641593262553215,
0.05810989812016487,
-0.1966942399740219,
-0.17958366870880127,
0.07412660866975784,
0.0266391821205616,
-0.19604195654392242,
-0.06199859455227852,
-0.20801568031311035,
0.04396770894527435,
0.09450381994247437,
0.07798068225383759,
-0.011924286372959614,
0.008066494017839432,
-0.012254604138433933,
0.12413965165615082,
-0.01407373882830143,
-0.0764872208237648,
-0.04268879443407059,
0.28008073568344116,
-0.03486516326665878,
0.0640692263841629,
0.22778937220573425,
-0.08394857496023178,
-0.1595449000597,
-0.022984186187386513,
0.09716407209634781,
0.010075880214571953,
0.0031011507380753756,
-0.1445426046848297,
0.086985744535923,
-0.09756501764059067,
0.044717054814100266,
-0.06372396647930145,
-0.10264906287193298,
-0.007529127411544323,
0.15692123770713806,
-0.009298497810959816,
0.04929416626691818,
-0.13834170997142792,
0.023617202416062355,
0.026551179587841034,
-0.01394770946353674,
-0.06230895593762398,
-0.1269627809524536,
-0.007409865036606789,
-0.11052367091178894,
-0.06046515703201294,
-0.049845676869153976,
-0.16436362266540527,
0.06518096476793289,
0.024523351341485977,
-0.04879804328083992,
0.06586141139268875,
0.060110125690698624,
0.10550916939973831,
-0.033876240253448486,
-0.07359523326158524,
-0.06271326541900635,
0.0352000966668129,
-0.02693004347383976,
-0.019931113347411156,
-0.05340620502829552,
0.024817587807774544,
-0.020361648872494698,
0.06637120991945267,
0.0638694316148758,
0.01685776747763157,
0.004732554312795401,
0.036076951771974564,
-0.0032931677997112274,
-0.14108440279960632,
-0.08280981332063675,
0.14779222011566162,
-0.1950218230485916,
0.006562264636158943,
0.03484061360359192,
0.020743345841765404,
0.12448907643556595,
-0.0666801854968071,
0.03671799972653389,
0.11656580865383148,
-0.023107940331101418,
-0.1015801802277565,
0.033814895898103714,
-0.07822516560554504,
0.15246012806892395,
0.05293013155460358,
0.0833275243639946,
-0.07180877029895782,
-0.08298970758914948,
0.0352865494787693,
0.07899583131074905,
0.07110774517059326,
0.11329970508813858,
-0.06987486034631729,
-0.08350618928670883,
-0.36073511838912964,
-0.12567777931690216,
0.143734872341156,
0.015339166857302189,
0.03833330050110817,
-0.05844266712665558,
-0.22792667150497437,
-0.05151348188519478,
0.03248634189367294,
-0.007335304282605648,
0.18251249194145203,
0.027272263541817665,
-0.021193277090787888,
0.07967369258403778,
-2.587460255337205e-32,
-0.03731255605816841,
-0.16612835228443146,
-0.03355622664093971,
0.09239321947097778,
-0.0916699692606926,
0.11020563542842865,
-0.2126179337501526,
-0.04981325566768646,
0.052279651165008545,
-0.03638787940144539,
0.002275058999657631,
0.05594538524746895,
-0.002346040215343237,
0.0866122618317604,
-0.11205361038446426,
-0.05621404945850372,
-0.07069451361894608,
-0.04856811463832855,
0.09107542037963867,
0.05412808060646057,
0.26501163840293884,
-0.09975063800811768,
0.06650036573410034,
-0.027337512001395226,
0.058191489428281784,
-0.024088013917207718,
0.014969712123274803,
-0.10817719995975494,
-0.0021932576783001423,
0.00869955588132143,
-0.09850378334522247,
0.11442726105451584,
-0.05520600825548172,
0.14940479397773743,
0.0026023732498288155,
-0.0778164342045784,
0.010614749975502491,
-0.04681628197431564,
-0.27103856205940247,
-0.07928735762834549,
-0.20362013578414917,
0.06647612899541855,
-0.026794927194714546,
0.011702132411301136,
0.1327717900276184,
-0.006137719377875328,
-0.008896014653146267,
0.09614715725183487,
0.0008691760012879968,
-0.02005147561430931,
0.09879063069820404,
0.09379401057958603,
0.1580749750137329,
0.12853586673736572,
0.1432667374610901,
-0.14009343087673187,
0.0966738909482956,
-0.10623616725206375,
-0.04563547670841217,
-0.0012842857977375388,
-0.11022206395864487,
-0.14738062024116516,
-0.04617372155189514,
0.09550479054450989,
0.07809893041849136,
-0.0785112977027893,
0.04769212752580643,
0.051458701491355896,
0.1078496053814888,
0.09449125826358795,
-0.07413649559020996,
0.3184015154838562,
-0.032398026436567307,
-0.020501000806689262,
-0.1475871503353119,
-0.08319118618965149,
-0.02013503387570381,
-0.12297532707452774,
0.06852168589830399,
-0.20193365216255188,
-0.14781688153743744,
0.05834996700286865,
0.19505202770233154,
-0.08976561576128006,
0.022793786600232124,
0.0027211993001401424,
-0.012685103341937065,
-0.07349582016468048,
-0.06801608204841614,
-0.05854694917798042,
-0.16502900421619415,
0.10952851921319962,
0.03695598244667053,
-0.05336970463395119,
-0.15711653232574463,
0.1140589788556099,
-0.09529026597738266,
0.07111256569623947,
-0.0348065122961998,
0.09633277356624603,
0.01386288832873106,
-0.061304084956645966,
0.1008918359875679,
-0.003862213809043169,
0.13369879126548767,
0.0809955969452858,
0.16605760157108307,
0.21900337934494019,
-0.13755235075950623,
0.017907852306962013,
-0.01854166015982628,
-0.029664814472198486,
-0.11718201637268066,
-0.05516627058386803,
0.24247559905052185,
0.01052470039576292,
0.019913244992494583,
0.033270593732595444,
0.1570332646369934,
0.1278991997241974,
-0.09906495362520218,
-0.02995564043521881,
-0.002444243524223566,
0.03186967968940735,
0.13311801850795746,
-0.023393236100673676,
-0.2021002322435379,
-0.10956885665655136,
0.09625955671072006,
-0.01432523038238287,
0.10847827792167664,
-0.1289793998003006,
7.481424404431891e-7,
-0.10105737298727036,
0.2982134521007538,
0.036254286766052246,
0.05887792259454727,
-0.002851347206160426,
0.10336845368146896,
-0.06288226693868637,
0.10996149480342865,
0.04316779226064682,
0.042018961161375046,
0.05387338250875473,
0.03700404241681099,
-0.19724135100841522,
0.18448661267757416,
-0.03445025533437729,
0.07134786248207092,
-0.12415537983179092,
-0.04225968196988106,
-0.11314120143651962,
0.09526917338371277,
0.10608923435211182,
-0.012418421916663647,
0.09687722474336624,
-0.023272866383194923,
0.03930366784334183,
0.02149895951151848,
0.06915826350450516,
0.044341813772916794,
-0.022907085716724396,
-0.10853138566017151,
-0.13704794645309448,
0.07565929740667343,
-0.08145058155059814,
0.18310829997062683,
-0.08937367796897888,
-0.03581412509083748,
0.021745480597019196,
-0.004529744852334261,
-0.14181837439537048,
0.07179619371891022,
0.16955819725990295,
-0.03165009245276451,
0.012723138555884361,
-0.050145719200372696,
0.12286007404327393,
-0.039086680859327316,
-0.1381359100341797,
-0.02215280756354332,
-0.0750105008482933,
0.009142789989709854,
-0.07312548160552979,
0.044466447085142136,
0.048901379108428955,
0.07241306453943253,
-0.10678191483020782,
0.08031876385211945,
-0.0659964457154274,
-0.019256487488746643,
0.10728811472654343,
0.04762275144457817,
0.14785879850387573,
-0.18167687952518463,
-0.02375265210866928,
0.0608406700193882,
0.1420782208442688,
0.025027161464095116,
0.030339568853378296,
3.1968556102195807e-34,
-0.16421286761760712,
0.07771522551774979,
-0.07469252496957779,
-0.07676312327384949,
-0.011422233656048775,
-0.09653577208518982,
0.13716652989387512,
0.050324901938438416,
0.22696785628795624,
-0.04375779256224632,
-0.05573130398988724
] |
https://github.com/huggingface/datasets/issues/2424 | load_from_disk and save_to_disk are not compatible with each other | Hi,
`load_dataset` returns an instance of `DatasetDict` if `split` is not specified, so instead of `Dataset.load_from_disk`, use `DatasetDict.load_from_disk` to load the dataset from disk. | ## Describe the bug
load_from_disk and save_to_disk are not compatible. When I use save_to_disk to save a dataset to disk it works perfectly but given the same directory load_from_disk throws an error that it can't find state.json. looks like the load_from_disk only works on one split
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("art")
dataset.save_to_disk("mydir")
d = Dataset.load_from_disk("mydir")
```
## Expected results
It is expected that these two functions be the reverse of each other without more manipulation
## Actual results
FileNotFoundError: [Errno 2] No such file or directory: 'mydir/art/state.json'
## Environment info
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
| 24 | load_from_disk and save_to_disk are not compatible with each other
## Describe the bug
load_from_disk and save_to_disk are not compatible. When I use save_to_disk to save a dataset to disk it works perfectly but given the same directory load_from_disk throws an error that it can't find state.json. looks like the load_from_disk only works on one split
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("art")
dataset.save_to_disk("mydir")
d = Dataset.load_from_disk("mydir")
```
## Expected results
It is expected that these two functions be the reverse of each other without more manipulation
## Actual results
FileNotFoundError: [Errno 2] No such file or directory: 'mydir/art/state.json'
## Environment info
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
Hi,
`load_dataset` returns an instance of `DatasetDict` if `split` is not specified, so instead of `Dataset.load_from_disk`, use `DatasetDict.load_from_disk` to load the dataset from disk. | [
0.027133163064718246,
0.23018737137317657,
-0.11252249777317047,
0.04914220795035362,
0.020463157445192337,
-0.06875412166118622,
0.24230264127254486,
0.04969523847103119,
0.09763515740633011,
-0.0038669859059154987,
-0.01811377890408039,
-0.11218088865280151,
0.07009278237819672,
-0.03223677724599838,
0.08196131139993668,
-0.0030698205810040236,
-0.009241235442459583,
-0.021671531721949577,
-0.0003355573280714452,
-0.08504262566566467,
-0.13545288145542145,
0.03744896873831749,
0.0524485744535923,
-0.019295958802103996,
0.14075860381126404,
-0.067302405834198,
-0.05374038591980934,
0.16596175730228424,
0.06084783747792244,
-0.02725725993514061,
0.10187812149524689,
0.06908761709928513,
0.0662878230214119,
0.17174750566482544,
0.000005740348569815978,
-0.06118852645158768,
0.13684259355068207,
0.00896303728222847,
-0.018583690747618675,
-0.23981589078903198,
0.15742073953151703,
-0.10896725952625275,
0.027538428083062172,
-0.08924303948879242,
0.05230877175927162,
-0.14454659819602966,
-0.07682958245277405,
-0.07748590409755707,
0.05493833124637604,
-0.010447187349200249,
-0.1009446233510971,
-0.028234735131263733,
0.0002689403772819787,
-0.22013773024082184,
-0.040354806929826736,
0.018564963713288307,
0.014907238073647022,
0.16825668513774872,
-0.11082231253385544,
-0.1284065842628479,
-0.15795181691646576,
-0.10994897037744522,
-0.1434490829706192,
0.11134552210569382,
-0.06464659422636032,
0.02803419902920723,
0.0010968429269269109,
-0.18663151562213898,
-0.00964219681918621,
0.2091141939163208,
0.06244128942489624,
0.06948452442884445,
-0.07647398114204407,
-0.04399102181196213,
-0.13301527500152588,
-0.010709362104535103,
0.08095075935125351,
0.01173306256532669,
-0.10829529166221619,
0.18643268942832947,
-0.1715327352285385,
-0.17505179345607758,
0.036672193557024,
-0.05547471344470978,
-0.17906562983989716,
-0.03069361113011837,
-0.07497847825288773,
0.06059886887669563,
0.019232241436839104,
-0.014854840002954006,
0.20927582681179047,
-0.12828873097896576,
-0.08507408946752548,
-0.20848916471004486,
0.26122787594795227,
-0.02462056465446949,
-0.03532373160123825,
-0.1530766636133194,
-0.012826149351894855,
0.01737339235842228,
0.06508297473192215,
-0.03934168070554733,
-0.16800832748413086,
0.1012260690331459,
0.12690511345863342,
0.02152007445693016,
-0.0094617810100317,
0.030530493706464767,
0.003331857966259122,
0.012110590003430843,
-0.02423759736120701,
0.14245949685573578,
-0.15339820086956024,
-0.19168105721473694,
0.03173227235674858,
-0.16903284192085266,
0.07580049335956573,
0.07779844850301743,
-0.008717354387044907,
-0.005121088121086359,
0.08725996315479279,
0.0570547990500927,
-0.11026055365800858,
0.12528792023658752,
0.14202503859996796,
0.009334716945886612,
-0.07196447998285294,
0.16318847239017487,
0.05122002214193344,
0.08591271936893463,
0.060776885598897934,
-0.018260609358549118,
0.05106750875711441,
0.03524397313594818,
0.22257615625858307,
-0.08845300227403641,
0.02680860087275505,
-0.1281464695930481,
-0.09506834298372269,
0.01591305062174797,
0.13736073672771454,
-0.07127445936203003,
-0.06797134876251221,
-0.008556421846151352,
0.12357074022293091,
0.05290200933814049,
0.06931646913290024,
0.03291243687272072,
-0.0695512443780899,
0.026886098086833954,
-0.3501107096672058,
0.11140010505914688,
-0.2739776074886322,
0.1819024235010147,
-0.08872494101524353,
-0.041550371795892715,
-0.18989288806915283,
-0.10865776240825653,
-0.25173577666282654,
-0.0880156084895134,
0.03620080277323723,
-0.04724303260445595,
-0.06448376178741455,
-0.19634705781936646,
0.15571902692317963,
0.10223830491304398,
-0.07783028483390808,
-0.07754570245742798,
-0.23685765266418457,
-0.05785883218050003,
0.0196063369512558,
0.0011226986534893513,
-0.06968694925308228,
0.013076291419565678,
-0.2676585614681244,
0.15386725962162018,
0.04960594326257706,
-0.08501800149679184,
-0.18174050748348236,
0.14490406215190887,
0.08278131484985352,
0.017554817721247673,
0.021363690495491028,
-0.12620611488819122,
0.0949685126543045,
0.029155826196074486,
-0.007644094061106443,
0.19175709784030914,
0.07181105017662048,
-0.05663672834634781,
-0.05687013640999794,
0.00999552570283413,
0.03397904708981514,
0.10426739603281021,
-0.02604207769036293,
-0.024662310257554054,
-0.017056215554475784,
-0.09119049459695816,
0.10560295730829239,
-0.22839343547821045,
-0.04475736990571022,
-0.004827415570616722,
-0.02396477945148945,
-0.03872198984026909,
0.011388964019715786,
-0.017183449119329453,
-0.20280642807483673,
0.16943025588989258,
0.11460500210523605,
-0.15172019600868225,
-0.19016076624393463,
0.12281383574008942,
-0.0755981057882309,
-0.002473497297614813,
-0.11925320327281952,
-0.12283550202846527,
-0.14176183938980103,
0.07046302407979965,
-0.05224962905049324,
0.17713919281959534,
-0.1455676257610321,
0.0002580147120170295,
0.17178019881248474,
0.09991922974586487,
0.11220362037420273,
0.16326555609703064,
-0.03830729052424431,
-0.016648394986987114,
0.013240386731922626,
0.02620644122362137,
-0.10160519927740097,
-0.15616147220134735,
0.019744448363780975,
0.11351853609085083,
-0.012873848900198936,
0.006449649576097727,
-0.09917909651994705,
-0.13962695002555847,
0.008801531977951527,
0.013678408227860928,
-0.03166397288441658,
0.09416566789150238,
0.10275156050920486,
-0.1720525175333023,
-0.018304908648133278,
0.11773618310689926,
-0.08269219100475311,
0.05822828784584999,
-0.059628333896398544,
-0.04237968847155571,
0.34125426411628723,
0.18913736939430237,
-0.13210740685462952,
-0.05475395917892456,
-0.044098466634750366,
-0.08658349514007568,
0.006083963438868523,
0.12904207408428192,
0.12966971099376678,
-0.06337331980466843,
0.28719282150268555,
-0.07010243088006973,
0.09392709285020828,
0.013229922391474247,
0.06522565335035324,
-0.05192607641220093,
0.014702207408845425,
0.05153677612543106,
0.22810961306095123,
0.03611496090888977,
-0.012293980456888676,
-0.08947984129190445,
-0.1684940904378891,
-0.08741981536149979,
0.09991593658924103,
-0.01600264385342598,
0.12840281426906586,
0.002870728727430105,
0.03187732771039009,
-0.0679079070687294,
-0.10522738844156265,
0.07695392519235611,
-0.04965432733297348,
-0.1930680274963379,
0.0919366329908371,
0.029362641274929047,
-0.08554250746965408,
0.05626193434000015,
-0.06533418595790863,
-0.0018587884260341525,
0.06930915266275406,
0.0806792676448822,
-0.011437168344855309,
0.003852049820125103,
0.07799791544675827,
-0.002670250367373228,
0.11480456590652466,
-0.0723809227347374,
-0.1034480631351471,
-0.024243051186203957,
-0.03338626027107239,
0.09595118463039398,
-0.09770931303501129,
0.02415812760591507,
0.07397326827049255,
0.07817309349775314,
0.08005175739526749,
0.06847493350505829,
-0.10555774718523026,
-0.03632495179772377,
0.11185896396636963,
-0.03280333802103996,
0.015584975481033325,
0.024778850376605988,
-0.04363272339105606,
0.027444593608379364,
-0.010243657045066357,
-0.2603318989276886,
0.02240927703678608,
0.09416136890649796,
0.11025210469961166,
0.16361717879772186,
0.015733813866972923,
-0.0984887033700943,
-0.016282837837934494,
0.091656394302845,
-0.3184087574481964,
-0.08189120888710022,
-0.017878912389278412,
0.00562956603243947,
-0.1546345055103302,
-0.04253564402461052,
0.05015555024147034,
-0.06616304069757462,
0.122561976313591,
-0.1084919422864914,
-0.06530270725488663,
0.028804540634155273,
0.3773088753223419,
0.018840746954083443,
-0.10246261954307556,
-0.04562582075595856,
-0.14122667908668518,
-0.07207661122083664,
0.029663758352398872,
-0.04279032349586487,
-0.018599169328808784,
-0.14436449110507965,
0.007823099382221699,
-0.0678463950753212,
-0.05411221459507942,
0.009534534998238087,
-0.04030404984951019,
-0.009928678162395954,
-0.0670979917049408,
-0.008191905915737152,
0.04144560545682907,
0.07303863763809204,
-0.11567267775535583,
0.08887623995542526,
0.07750100642442703,
-0.10608797520399094,
-0.01545930840075016,
0.04198409244418144,
-0.10899688303470612,
0.11015333980321884,
0.22206047177314758,
0.005326083395630121,
0.022197909653186798,
-0.17568914592266083,
-0.05726343393325806,
-0.05075390636920929,
0.01471047941595316,
-0.16366498172283173,
-0.07208472490310669,
-0.06451880931854248,
-0.08567455410957336,
-0.22773149609565735,
0.0031872852705419064,
0.013426482677459717,
0.0036626625806093216,
-0.021490205079317093,
-0.09471864998340607,
0.13788309693336487,
0.23775029182434082,
0.05765502154827118,
-0.020196476951241493,
0.12592436373233795,
-0.025431105867028236,
0.16868272423744202,
0.06398828327655792,
0.030261483043432236,
0.048207838088274,
-0.00131315051112324,
0.085294708609581,
0.015289608389139175,
0.09418315440416336,
0.10661047697067261,
0.007411351427435875,
-0.004574513528496027,
0.0865323543548584,
0.22341418266296387,
0.09904386848211288,
0.0949893370270729,
0.1838790327310562,
-0.0018170049879699945,
0.08531451225280762,
-0.03158885985612869,
0.013410893268883228,
-0.06420568376779556,
0.06282782554626465,
0.19585290551185608,
-0.015427741222083569,
0.04383271187543869,
0.11915666610002518,
-0.013817175291478634,
0.02603812888264656,
-0.1606065034866333,
-0.19772273302078247,
-0.0776047632098198,
-0.25713634490966797,
-0.27514052391052246,
0.10029827803373337,
0.11947382241487503,
-0.12054155021905899,
0.008209914900362492,
0.08721714466810226,
0.003097063396126032,
0.17905786633491516,
-0.10613510012626648,
0.14020749926567078,
-0.17492227256298065,
0.24213992059230804,
0.08634591847658157,
-0.01850789040327072,
0.010438504628837109,
0.2077522575855255,
-0.03165222331881523,
0.05681702494621277,
0.07938866317272186,
-0.19453521072864532,
-0.24144934117794037,
-0.05821587145328522,
0.08361009508371353,
-0.05669641122221947,
-0.1257191151380539,
-0.15776488184928894,
-0.02734401449561119,
-0.14312095940113068,
-0.06372901052236557,
-0.1330747902393341,
-0.0412745475769043,
-0.25378116965293884,
-0.14220230281352997,
0.1307663917541504,
-0.08568166941404343,
0.07757289707660675,
-0.10236363112926483,
0.015661941841244698,
0.2863922417163849,
-0.12173357605934143,
-0.06977853178977966,
-0.09959059208631516,
0.18892152607440948,
0.09519778192043304,
0.03376905992627144,
0.17591427266597748,
-0.033181872218847275,
-0.10090040415525436,
0.09065378457307816,
-0.02138245292007923,
0.14431948959827423,
-0.19253166019916534,
0.034787751734256744,
0.27168864011764526,
0.02592633292078972,
0.06408017873764038,
-0.01283482275903225,
-0.15768255293369293,
-0.17489197850227356,
0.18097975850105286,
0.05291220545768738,
-0.05350977182388306,
-0.14690987765789032,
-0.018499210476875305,
0.12433130294084549,
0.09969639033079147,
0.07200349122285843,
-0.11706958711147308,
0.02537224441766739,
0.1766899973154068,
-0.09263578802347183,
0.06445661187171936,
0.02259990945458412,
0.32576242089271545,
-0.06173567473888397,
-0.1512683779001236,
0.08603651821613312,
0.13055700063705444,
0.1849593073129654,
-0.012977339327335358,
-0.05872879549860954,
-0.03282700106501579,
-0.04502051696181297,
0.06758607178926468,
-0.04422016441822052,
-0.10359465330839157,
0.08870004862546921,
-0.058452531695365906,
-0.11257025599479675,
-0.07433256506919861,
-0.017492109909653664,
-0.09869129955768585,
-0.1522846221923828,
0.17177936434745789,
0.091839998960495,
0.038793738931417465,
-0.05741173401474953,
-0.00024382828269153833,
0.025820372626185417,
0.0891595259308815,
-0.07601087540388107,
-0.01777164451777935,
0.05969969183206558,
0.036860134452581406,
-0.039159320294857025,
-0.08973456174135208,
0.03560621291399002,
0.24507249891757965,
-0.12369388341903687,
-0.017891502007842064,
0.08467765152454376,
-0.009876519441604614,
0.06357578933238983,
-0.0343056283891201,
0.09823243319988251,
0.09567220509052277,
-0.10027401149272919,
0.062120579183101654,
0.09452446550130844,
-0.05912623926997185,
-0.23925533890724182,
0.000012352926205494441,
0.10249229520559311,
0.05154387280344963,
-0.024836499243974686,
-0.01795494183897972,
-0.100127212703228,
0.08405440300703049,
-0.14806878566741943,
-0.14705196022987366,
0.22679290175437927,
0.09726778417825699,
-0.025278711691498756,
-0.04763562232255936,
-2.260373662496325e-32,
0.099112868309021,
0.08672703057527542,
-0.03531419485807419,
-0.057885389775037766,
-0.1315757781267166,
-0.011987011879682541,
-0.09188389033079147,
-0.03550029173493385,
-0.10024800151586533,
0.004328394308686256,
-0.0678214356303215,
0.021237364038825035,
0.02109648287296295,
-0.06667435169219971,
-0.16490207612514496,
-0.10917431116104126,
-0.050304047763347626,
-0.06572464853525162,
-0.059945523738861084,
0.12174036353826523,
0.0921810045838356,
0.2078915685415268,
0.030478399246931076,
-0.057145558297634125,
0.061738159507513046,
-0.11326098442077637,
0.10636311769485474,
-0.25642144680023193,
0.14333489537239075,
-0.08114441484212875,
0.008262795396149158,
0.06798416376113892,
0.009495249018073082,
-0.17853155732154846,
-0.0228546354919672,
-0.08986155688762665,
-0.1338566541671753,
-0.1459655910730362,
0.10360797494649887,
-0.03644265979528427,
-0.10458385944366455,
0.19962158799171448,
0.08466450870037079,
-0.025797542184591293,
-0.0016337845008820295,
-0.07169648259878159,
0.0037647883873432875,
0.06685542315244675,
-0.09589528292417526,
0.029010284692049026,
-0.11936812847852707,
-0.03526877239346504,
0.019353585317730904,
0.016926784068346024,
0.13914944231510162,
-0.11916185915470123,
0.07577259093523026,
0.2422522008419037,
-0.14989720284938812,
-0.09615226089954376,
0.07211513817310333,
-0.07799669355154037,
0.1918913871049881,
-0.13288018107414246,
0.05850164219737053,
0.09023534506559372,
0.3060579299926758,
0.06984618306159973,
0.023548036813735962,
-0.008818170987069607,
0.13884806632995605,
0.2661699950695038,
-0.23278655111789703,
-0.03417893499135971,
-0.15076245367527008,
-0.13848921656608582,
-0.13834065198898315,
0.03457283601164818,
-0.06197766214609146,
-0.1389983892440796,
0.07265149056911469,
-0.017168015241622925,
-0.14709004759788513,
0.15295328199863434,
-0.028275487944483757,
-0.0454200878739357,
0.024866217747330666,
0.07787247747182846,
-0.10436972975730896,
-0.11154751479625702,
0.014941553585231304,
-0.055884163826704025,
0.05414580926299095,
-0.16224002838134766,
0.011781711131334305,
0.012011460028588772,
-0.1355212926864624,
0.03219667077064514,
-0.028334837406873703,
0.07323145866394043,
0.02388772740960121,
-0.002986382460221648,
0.108055979013443,
-0.10779552906751633,
0.08980517834424973,
0.03412631154060364,
0.02327469177544117,
-0.1041741818189621,
-0.0993848368525505,
0.0047156475484371185,
-0.04589381814002991,
0.05477503687143326,
0.06196916475892067,
0.1751624494791031,
0.22082333266735077,
0.18454594910144806,
-0.01815616525709629,
-0.10379607230424881,
0.21471817791461945,
0.2496015876531601,
-0.1129421591758728,
0.01608162559568882,
-0.09546495229005814,
-0.002124703023582697,
0.03525293618440628,
0.1515238881111145,
-0.15830036997795105,
-0.1878868043422699,
-0.06274458765983582,
0.027201266959309578,
0.08423527330160141,
0.003287393366917968,
7.37248115001421e-7,
-0.1348019391298294,
0.09906373172998428,
-0.028732923790812492,
-0.08147413283586502,
-0.07912836968898773,
0.06971484422683716,
-0.32424217462539673,
-0.10860250145196915,
0.1711810976266861,
0.06240108236670494,
0.1505012959241867,
-0.03350686654448509,
-0.04266377165913582,
0.04092243313789368,
0.0298706516623497,
0.07999060302972794,
-0.03635844960808754,
0.12819164991378784,
0.015768922865390778,
-0.11223452538251877,
0.12423588335514069,
0.13650944828987122,
-0.05427226424217224,
-0.11618222296237946,
0.14415670931339264,
-0.020202498883008957,
-0.009323827922344208,
0.03822679445147514,
0.15021872520446777,
0.051509588956832886,
0.035401348024606705,
0.02860814891755581,
-0.001591623411513865,
-0.013391087763011456,
0.07819109410047531,
-0.02171461284160614,
-0.10973699390888214,
0.04643016308546066,
0.14112502336502075,
0.04478359594941139,
-0.05014019086956978,
0.1124337762594223,
0.1288944035768509,
0.04506280645728111,
0.17478910088539124,
0.13476115465164185,
-0.0496189258992672,
-0.03536926582455635,
-0.07441446930170059,
0.2504732012748718,
0.1212475597858429,
0.05215029790997505,
0.20671193301677704,
0.05758685618638992,
-0.058015625923871994,
0.07442571967840195,
-0.030032014474272728,
-0.0426795557141304,
0.175035759806633,
0.025213267654180527,
-0.13895413279533386,
-0.01095886342227459,
0.08949179202318192,
-0.01843685284256935,
0.06013898551464081,
-0.060389380902051926,
-0.023316362872719765,
-7.54012686585376e-36,
-0.06405897438526154,
0.013340565375983715,
0.071025550365448,
-0.14101213216781616,
-0.07946158200502396,
-0.03959453105926514,
-0.006165516562759876,
-0.15928862988948822,
-0.0958775132894516,
-0.0762707069516182,
-0.053045131266117096
] |
https://github.com/huggingface/datasets/issues/2424 | load_from_disk and save_to_disk are not compatible with each other | Though I see a stream of issues open by people lost between datasets and datasets dicts so maybe there is here something that could be better in terms of UX. Could be better error handling or something else smarter to even avoid said errors but maybe we should think about this. Reopening to use this issue as a discussion place but feel free to open a new open if you prefer @lhoestq @albertvillanova | ## Describe the bug
load_from_disk and save_to_disk are not compatible. When I use save_to_disk to save a dataset to disk it works perfectly but given the same directory load_from_disk throws an error that it can't find state.json. looks like the load_from_disk only works on one split
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("art")
dataset.save_to_disk("mydir")
d = Dataset.load_from_disk("mydir")
```
## Expected results
It is expected that these two functions be the reverse of each other without more manipulation
## Actual results
FileNotFoundError: [Errno 2] No such file or directory: 'mydir/art/state.json'
## Environment info
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
| 73 | load_from_disk and save_to_disk are not compatible with each other
## Describe the bug
load_from_disk and save_to_disk are not compatible. When I use save_to_disk to save a dataset to disk it works perfectly but given the same directory load_from_disk throws an error that it can't find state.json. looks like the load_from_disk only works on one split
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("art")
dataset.save_to_disk("mydir")
d = Dataset.load_from_disk("mydir")
```
## Expected results
It is expected that these two functions be the reverse of each other without more manipulation
## Actual results
FileNotFoundError: [Errno 2] No such file or directory: 'mydir/art/state.json'
## Environment info
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
Though I see a stream of issues open by people lost between datasets and datasets dicts so maybe there is here something that could be better in terms of UX. Could be better error handling or something else smarter to even avoid said errors but maybe we should think about this. Reopening to use this issue as a discussion place but feel free to open a new open if you prefer @lhoestq @albertvillanova | [
0.026401542127132416,
0.2467811107635498,
-0.0988612100481987,
0.015378721058368683,
0.03949115797877312,
-0.057474225759506226,
0.2330198436975479,
0.02737395465373993,
0.0763515904545784,
-0.0007315179682336748,
-0.013996835798025131,
-0.11163223534822464,
0.09411192685365677,
-0.04798926040530205,
0.08341046422719955,
-0.01275485847145319,
-0.0009863647865131497,
-0.012062096036970615,
-0.04404490068554878,
-0.0944473072886467,
-0.1340440809726715,
0.03272539749741554,
0.05514736473560333,
-0.011570846661925316,
0.14105069637298584,
-0.047828830778598785,
-0.05051678419113159,
0.1570415049791336,
0.06861352920532227,
-0.03196745738387108,
0.10070440918207169,
0.045910898596048355,
0.06613491475582123,
0.180583655834198,
0.000005862019406777108,
-0.06814704090356827,
0.10243643075227737,
0.012069552205502987,
-0.01406804844737053,
-0.2433147132396698,
0.16649660468101501,
-0.15813089907169342,
0.03212832659482956,
-0.08398996293544769,
0.07737861573696136,
-0.15090085566043854,
-0.03803899511694908,
-0.08478622138500214,
0.0418616458773613,
-0.03680530562996864,
-0.0963112935423851,
-0.017779944464564323,
0.005999427754431963,
-0.20435413718223572,
-0.03414630517363548,
0.058866389095783234,
0.0015618191100656986,
0.1687590777873993,
-0.09351930767297745,
-0.1293202042579651,
-0.14792343974113464,
-0.11267796158790588,
-0.1432882398366928,
0.09608239680528641,
-0.05528291314840317,
0.05066252872347832,
0.05159016326069832,
-0.20408853888511658,
0.007325773127377033,
0.2126110941171646,
0.055368587374687195,
0.058244913816452026,
-0.06052640452980995,
-0.048668306320905685,
-0.12497977167367935,
-0.003433345118537545,
0.08079245686531067,
0.0224679596722126,
-0.1241188570857048,
0.17317208647727966,
-0.1930154711008072,
-0.17613519728183746,
0.03259415552020073,
-0.05739481747150421,
-0.17340536415576935,
-0.037277840077877045,
-0.04852418228983879,
0.05716602876782417,
0.016988996416330338,
-0.013602285645902157,
0.2039736807346344,
-0.1511632800102234,
-0.05406124144792557,
-0.17606455087661743,
0.25037747621536255,
-0.03977403789758682,
-0.06652361899614334,
-0.14293502271175385,
0.002581315115094185,
0.02342929132282734,
0.08080407977104187,
-0.027130892500281334,
-0.14919453859329224,
0.10408078879117966,
0.12014136463403702,
0.052403271198272705,
-0.0014623196329921484,
-0.0053419070318341255,
-0.00013209981261752546,
0.0023724085185676813,
-0.024246400222182274,
0.151519313454628,
-0.15918859839439392,
-0.21099933981895447,
0.02572685107588768,
-0.2004072070121765,
0.08726732432842255,
0.091862253844738,
0.010931216180324554,
0.01149783656001091,
0.09292563050985336,
0.0688445046544075,
-0.14658796787261963,
0.11375700682401657,
0.12375159561634064,
0.04422106593847275,
-0.05933670699596405,
0.15467694401741028,
0.040248092263936996,
0.10794980078935623,
0.07098499685525894,
-0.029732732102274895,
0.059441279619932175,
0.03597855195403099,
0.20566123723983765,
-0.07610045373439789,
0.03815383464097977,
-0.09443432092666626,
-0.09282399713993073,
0.017954949289560318,
0.1553150713443756,
-0.1031603217124939,
-0.07919660210609436,
-0.03362971544265747,
0.0951625257730484,
0.03831549361348152,
0.06548149883747101,
0.032155685126781464,
-0.06155886501073837,
0.05588400363922119,
-0.32090404629707336,
0.11642521619796753,
-0.292165607213974,
0.17878305912017822,
-0.07687585055828094,
-0.04897042736411095,
-0.21137434244155884,
-0.12054380029439926,
-0.2539229393005371,
-0.10492834448814392,
0.01809319667518139,
-0.06124076619744301,
-0.06346110254526138,
-0.2008698433637619,
0.14137804508209229,
0.09864966571331024,
-0.06017336621880531,
-0.040330566465854645,
-0.2098885476589203,
-0.0341426357626915,
0.03272945433855057,
0.0011244398774579167,
-0.055781230330467224,
-0.00006834865780547261,
-0.2496819943189621,
0.1472223997116089,
0.05946994200348854,
-0.11635474860668182,
-0.1574266254901886,
0.1794743537902832,
0.07595106214284897,
0.028882743790745735,
0.012682243250310421,
-0.08902391046285629,
0.07695551961660385,
0.03958125412464142,
-0.026411911472678185,
0.21100008487701416,
0.057999469339847565,
-0.07361909747123718,
-0.052225444465875626,
-0.005532401148229837,
0.024366088211536407,
0.12180271744728088,
-0.05494047701358795,
-0.016883213073015213,
-0.013905160129070282,
-0.10228433459997177,
0.10596191138029099,
-0.2026948779821396,
-0.04773222282528877,
0.003339790040627122,
0.002262186026200652,
-0.042148128151893616,
-0.016201267018914223,
0.010721107944846153,
-0.2160159945487976,
0.13160429894924164,
0.1358429491519928,
-0.1467960774898529,
-0.17469771206378937,
0.10519010573625565,
-0.052784111350774765,
-0.014652693644165993,
-0.11543676257133484,
-0.11746059358119965,
-0.14191387593746185,
0.07000719010829926,
-0.07535278797149658,
0.16977176070213318,
-0.12939485907554626,
-0.010564116761088371,
0.17777113616466522,
0.10519008338451385,
0.10951796174049377,
0.14867433905601501,
-0.022001734003424644,
-0.0017643771134316921,
-0.019847428426146507,
-0.008080137893557549,
-0.09264212846755981,
-0.15392380952835083,
0.015798155218362808,
0.1126968190073967,
-0.052825480699539185,
0.04363589361310005,
-0.0743822380900383,
-0.10290303081274033,
0.011371157132089138,
0.03463869169354439,
-0.03865191340446472,
0.09045522660017014,
0.10366716235876083,
-0.1797642856836319,
-0.027712907642126083,
0.08864635229110718,
-0.0893026813864708,
0.06087138503789902,
-0.03984479233622551,
-0.024830412119627,
0.3401896357536316,
0.17745506763458252,
-0.12649860978126526,
-0.016682954505085945,
-0.04746871069073677,
-0.04975984990596771,
0.0229180995374918,
0.1611432433128357,
0.12271809577941895,
-0.06918300688266754,
0.2741249203681946,
-0.07610195130109787,
0.09183552116155624,
0.03835808485746384,
0.05398320034146309,
-0.04124848172068596,
0.017210042104125023,
0.05654653534293175,
0.24648185074329376,
0.06712768226861954,
-0.028358617797493935,
-0.08708599954843521,
-0.14530010521411896,
-0.09312516450881958,
0.09674450010061264,
-0.017595697194337845,
0.1204565018415451,
0.008154219016432762,
0.038143549114465714,
-0.05281059071421623,
-0.09035977721214294,
0.07332190126180649,
-0.028908411040902138,
-0.18357090651988983,
0.09249819070100784,
0.026796460151672363,
-0.0858510211110115,
0.054680898785591125,
-0.07526623457670212,
0.004148085135966539,
0.07227076590061188,
0.08348293602466583,
0.00008146079198922962,
0.036876894533634186,
0.06266693770885468,
0.008159495890140533,
0.12357671558856964,
-0.04411419481039047,
-0.10540517419576645,
-0.03934731334447861,
-0.04347465932369232,
0.094391368329525,
-0.1365412324666977,
0.034356653690338135,
0.08849097043275833,
0.05618904158473015,
0.07099153846502304,
0.09105139970779419,
-0.1003788635134697,
-0.06487158685922623,
0.10088079422712326,
-0.03111167810857296,
0.005413746926933527,
0.05483158677816391,
-0.04379914328455925,
0.03869061544537544,
-0.009743798524141312,
-0.2627038359642029,
0.033120110630989075,
0.09629952907562256,
0.1202954426407814,
0.14765673875808716,
0.0061896550469100475,
-0.0998014509677887,
-0.003149276366457343,
0.08842575550079346,
-0.3107205331325531,
-0.05862211436033249,
-0.04125814884901047,
0.0110331941395998,
-0.15379031002521515,
-0.02375045046210289,
0.0555899403989315,
-0.06663838028907776,
0.13423043489456177,
-0.10662160813808441,
-0.04885608330368996,
-0.024740120396018028,
0.3589838743209839,
0.019424788653850555,
-0.09774093329906464,
-0.06290329992771149,
-0.13030074536800385,
-0.06966814398765564,
0.043365731835365295,
-0.06638708710670471,
-0.0554397776722908,
-0.14892999827861786,
-0.014914866536855698,
-0.08991856127977371,
-0.04907907173037529,
-0.024286868050694466,
-0.05133882537484169,
-0.022386161610484123,
-0.06943869590759277,
-0.019063800573349,
0.062072817236185074,
0.07982567697763443,
-0.11474679410457611,
0.08641895651817322,
0.049558933824300766,
-0.09437812864780426,
-0.03079753927886486,
0.04091493785381317,
-0.13143974542617798,
0.09277839213609695,
0.2512723505496979,
-0.006027514114975929,
0.014277433045208454,
-0.1368415355682373,
-0.05107681080698967,
-0.053283628076314926,
-0.0029059129301458597,
-0.1365612894296646,
-0.07789497077465057,
-0.0577499121427536,
-0.07885114848613739,
-0.1904129683971405,
0.002212562132626772,
0.02257671393454075,
0.03246963396668434,
-0.03957093134522438,
-0.10600335896015167,
0.12487524747848511,
0.2370672971010208,
0.04094357788562775,
-0.0025485996156930923,
0.12881013751029968,
-0.0413755364716053,
0.18416747450828552,
0.06377145648002625,
0.05974966660141945,
0.04937363788485527,
0.004432790447026491,
0.09758128970861435,
0.012882782146334648,
0.08680214732885361,
0.08599859476089478,
-0.005589823238551617,
-0.005680813454091549,
0.09905426949262619,
0.20566165447235107,
0.09034329652786255,
0.07153894752264023,
0.1876300722360611,
-0.005030530970543623,
0.07365929335355759,
-0.031136635690927505,
0.021459762006998062,
-0.08779844641685486,
0.03140810877084732,
0.2320428490638733,
-0.011412052437663078,
0.0416332483291626,
0.09031035006046295,
0.00661251088604331,
0.013173263520002365,
-0.15080423653125763,
-0.17917048931121826,
-0.06532379984855652,
-0.25065380334854126,
-0.2802121639251709,
0.07966835796833038,
0.09723696112632751,
-0.11225312203168869,
-0.007718308363109827,
0.08025335520505905,
0.02548237517476082,
0.1668434590101242,
-0.10071509331464767,
0.12635639309883118,
-0.18814732134342194,
0.24276666343212128,
0.06368319690227509,
-0.02166481502354145,
0.03519224002957344,
0.19791179895401,
-0.02073408104479313,
0.057728011161088943,
0.0852702185511589,
-0.17931070923805237,
-0.2603933811187744,
-0.030780233442783356,
0.09860692173242569,
-0.05311767756938934,
-0.12235252559185028,
-0.1647268384695053,
-0.03530459851026535,
-0.13341869413852692,
-0.05757606029510498,
-0.09368041157722473,
-0.03424300625920296,
-0.23262660205364227,
-0.13272005319595337,
0.12522083520889282,
-0.09949900209903717,
0.05105997994542122,
-0.11878014355897903,
0.024477839469909668,
0.2730637490749359,
-0.11387431621551514,
-0.0713273137807846,
-0.10960625857114792,
0.18451249599456787,
0.0750441774725914,
0.0417097806930542,
0.1785876601934433,
-0.06163638085126877,
-0.10158448666334152,
0.1014263778924942,
-0.015303191728889942,
0.13001281023025513,
-0.19720372557640076,
0.026678649708628654,
0.2727951407432556,
0.03371245041489601,
0.07328908890485764,
-0.01520627923309803,
-0.13679875433444977,
-0.1636999100446701,
0.15549500286579132,
0.045615989714860916,
-0.05934426560997963,
-0.1786581426858902,
0.000022006475774105638,
0.10513441264629364,
0.0976264551281929,
0.04616263881325722,
-0.10975674539804459,
0.03251500427722931,
0.17648175358772278,
-0.04823923483490944,
0.0784836858510971,
-0.020199747756123543,
0.31907975673675537,
-0.06238504871726036,
-0.17707902193069458,
0.08155276626348495,
0.14772354066371918,
0.18577466905117035,
-0.008539599366486073,
-0.0677933394908905,
-0.024111155420541763,
-0.04149498790502548,
0.09900374710559845,
-0.031145287677645683,
-0.11612251400947571,
0.08625052869319916,
-0.05812583118677139,
-0.07890523225069046,
-0.0670987069606781,
-0.02562858909368515,
-0.10566288232803345,
-0.1522364318370819,
0.15411294996738434,
0.064752496778965,
0.06642797589302063,
-0.04638270288705826,
-0.040364447981119156,
0.03683971241116524,
0.07847542315721512,
-0.09311433881521225,
-0.017518002539873123,
0.07018895447254181,
0.027905303984880447,
-0.022120434790849686,
-0.1034906730055809,
0.03674860671162605,
0.22387373447418213,
-0.13078810274600983,
-0.05022118613123894,
0.08477627485990524,
-0.015100752003490925,
0.05721305310726166,
-0.027354588732123375,
0.08865344524383545,
0.09970881044864655,
-0.07903029769659042,
0.047995179891586304,
0.09368620067834854,
-0.05561322718858719,
-0.21344076097011566,
0.004450913984328508,
0.08444380760192871,
0.05170125886797905,
-0.02407306246459484,
-0.02120784856379032,
-0.1145210862159729,
0.08766769617795944,
-0.1277024894952774,
-0.1379268914461136,
0.2015414535999298,
0.08567901700735092,
-0.016937939450144768,
-0.0816662609577179,
-2.3195618601753412e-32,
0.10404933989048004,
0.0809660330414772,
-0.043986063450574875,
-0.031130963936448097,
-0.12558108568191528,
-0.02762860246002674,
-0.06704024225473404,
-0.05140773952007294,
-0.10939731448888779,
-0.001923415926285088,
-0.05139912664890289,
0.020737096667289734,
0.029225079342722893,
-0.06045848876237869,
-0.1654243767261505,
-0.10339638590812683,
-0.03939449042081833,
-0.048122815787792206,
-0.07405154407024384,
0.1188669428229332,
0.07195954024791718,
0.21061423420906067,
0.006566015537828207,
-0.09673848003149033,
0.08604205399751663,
-0.12130504101514816,
0.10653617233037949,
-0.2561582028865814,
0.14658086001873016,
-0.0663561299443245,
0.006102103274315596,
0.06506606936454773,
-0.015550702810287476,
-0.1671944111585617,
-0.021366260945796967,
-0.06422597914934158,
-0.13455623388290405,
-0.16357421875,
0.10369836539030075,
-0.026911498978734016,
-0.10119203478097916,
0.17591848969459534,
0.06888169795274734,
-0.023162828758358955,
-0.014628903940320015,
-0.09892687201499939,
0.03464612737298012,
0.08800026774406433,
-0.10340233147144318,
0.022102750837802887,
-0.14377063512802124,
-0.026522044092416763,
0.01638377085328102,
0.012263654731214046,
0.11580429971218109,
-0.11258237063884735,
0.08707823604345322,
0.2455311417579651,
-0.14789994060993195,
-0.09326095134019852,
0.05041687190532684,
-0.08442232757806778,
0.18773259222507477,
-0.15960532426834106,
0.07078325748443604,
0.06868899613618851,
0.28929466009140015,
0.046848125755786896,
0.04826488345861435,
0.020687157288193703,
0.12291970103979111,
0.24842382967472076,
-0.23592522740364075,
-0.02325904741883278,
-0.14321842789649963,
-0.12632273137569427,
-0.15761524438858032,
0.05805229768157005,
-0.08302006125450134,
-0.1229584664106369,
0.05260234326124191,
-0.029462367296218872,
-0.1579832136631012,
0.15996596217155457,
-0.029609009623527527,
-0.026232445612549782,
0.026050429791212082,
0.09397771209478378,
-0.09029074758291245,
-0.09564259648323059,
0.03347919136285782,
-0.043667301535606384,
0.05244524031877518,
-0.1551722139120102,
0.013758246786892414,
0.01708812452852726,
-0.11723823100328445,
0.02022213116288185,
-0.011528407223522663,
0.07500382512807846,
0.05189952999353409,
-0.00626908615231514,
0.11651528626680374,
-0.09424640983343124,
0.11205481737852097,
0.05567279830574989,
0.004469768609851599,
-0.09571949392557144,
-0.12696877121925354,
0.01643773727118969,
-0.04122607782483101,
0.02764160744845867,
0.05110769346356392,
0.1527540236711502,
0.20713616907596588,
0.1836342066526413,
-0.025676129385828972,
-0.0861666277050972,
0.178297758102417,
0.23974132537841797,
-0.12332917749881744,
-0.023973677307367325,
-0.0727207288146019,
-0.009484450332820415,
0.025621334090828896,
0.15550413727760315,
-0.13588069379329681,
-0.19117887318134308,
-0.05016238987445831,
0.03499354049563408,
0.07430263608694077,
0.017380239441990852,
7.510998329962604e-7,
-0.13706478476524353,
0.09273219108581543,
-0.03560759499669075,
-0.06484971195459366,
-0.09136953204870224,
0.07224176079034805,
-0.324754923582077,
-0.09459462016820908,
0.17510737478733063,
0.09931080788373947,
0.13952767848968506,
-0.055935364216566086,
-0.016650650650262833,
0.06287898123264313,
0.024985458701848984,
0.0821685940027237,
-0.02432391420006752,
0.11831571906805038,
0.0011017927899956703,
-0.1255408376455307,
0.11577166616916656,
0.10346893221139908,
-0.08474896848201752,
-0.10737144947052002,
0.14333418011665344,
-0.04005800932645798,
0.006415759213268757,
0.037055931985378265,
0.17449894547462463,
0.055588070303201675,
0.050874013453722,
0.045900795608758926,
-0.009694363921880722,
0.0043495758436620235,
0.07482870668172836,
-0.025576651096343994,
-0.10566560924053192,
0.04497111588716507,
0.1438053697347641,
0.014516483061015606,
-0.06828226149082184,
0.09603827446699142,
0.1320783495903015,
0.03567052260041237,
0.16003620624542236,
0.11016052216291428,
-0.06921854615211487,
-0.033730052411556244,
-0.07854873687028885,
0.2116898000240326,
0.14689679443836212,
0.04768440127372742,
0.185849130153656,
0.024111434817314148,
-0.02355792559683323,
0.09441304206848145,
-0.05125656723976135,
-0.064914770424366,
0.16869144141674042,
0.022845635190606117,
-0.13046501576900482,
0.0017187794437631965,
0.09531581401824951,
-0.04822833091020584,
0.09045298397541046,
-0.08249698579311371,
-0.0034301821142435074,
-4.855783205268628e-36,
-0.04594868794083595,
0.003833761904388666,
0.08680661022663116,
-0.15347355604171753,
-0.08097179234027863,
-0.042944829910993576,
0.0034783000592142344,
-0.18405741453170776,
-0.0655672550201416,
-0.0857773870229721,
-0.04837625473737717
] |
https://github.com/huggingface/datasets/issues/2424 | load_from_disk and save_to_disk are not compatible with each other | We should probably improve the error message indeed.
Also note that there exists a function `load_from_disk` that can load a Dataset or a DatasetDict. Under the hood it calls either `Dataset.load_from_disk` or `DatasetDict.load_from_disk`:
```python
from datasets import load_from_disk
dataset_dict = load_from_disk("path/to/dataset/dict")
single_dataset = load_from_disk("path/to/single/dataset")
``` | ## Describe the bug
load_from_disk and save_to_disk are not compatible. When I use save_to_disk to save a dataset to disk it works perfectly but given the same directory load_from_disk throws an error that it can't find state.json. looks like the load_from_disk only works on one split
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("art")
dataset.save_to_disk("mydir")
d = Dataset.load_from_disk("mydir")
```
## Expected results
It is expected that these two functions be the reverse of each other without more manipulation
## Actual results
FileNotFoundError: [Errno 2] No such file or directory: 'mydir/art/state.json'
## Environment info
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
| 45 | load_from_disk and save_to_disk are not compatible with each other
## Describe the bug
load_from_disk and save_to_disk are not compatible. When I use save_to_disk to save a dataset to disk it works perfectly but given the same directory load_from_disk throws an error that it can't find state.json. looks like the load_from_disk only works on one split
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("art")
dataset.save_to_disk("mydir")
d = Dataset.load_from_disk("mydir")
```
## Expected results
It is expected that these two functions be the reverse of each other without more manipulation
## Actual results
FileNotFoundError: [Errno 2] No such file or directory: 'mydir/art/state.json'
## Environment info
- `datasets` version: 1.6.2
- Platform: Linux-5.4.0-73-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.10
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
We should probably improve the error message indeed.
Also note that there exists a function `load_from_disk` that can load a Dataset or a DatasetDict. Under the hood it calls either `Dataset.load_from_disk` or `DatasetDict.load_from_disk`:
```python
from datasets import load_from_disk
dataset_dict = load_from_disk("path/to/dataset/dict")
single_dataset = load_from_disk("path/to/single/dataset")
``` | [
0.041856542229652405,
0.24341332912445068,
-0.09740700572729111,
0.029497196897864342,
0.02950851060450077,
-0.04982620105147362,
0.24891532957553864,
0.02423212118446827,
0.09371154010295868,
0.020625034347176552,
0.001847579376772046,
-0.09675775468349457,
0.09535163640975952,
-0.03756175562739372,
0.07795539498329163,
0.010644764639437199,
-0.004596386570483446,
-0.038133103400468826,
-0.018394794315099716,
-0.09913638234138489,
-0.12505857646465302,
0.029478324577212334,
0.056945379823446274,
-0.025769250467419624,
0.14722611010074615,
-0.0687573030591011,
-0.05442587286233902,
0.16497091948986053,
0.07015416026115417,
-0.05986259877681732,
0.12682084739208221,
0.08846202492713928,
0.07481443136930466,
0.1585429608821869,
0.000005847181000717683,
-0.0668666809797287,
0.13695724308490753,
-0.001696996740065515,
-0.039524298161268234,
-0.23786263167858124,
0.13976986706256866,
-0.113068588078022,
0.055345505475997925,
-0.08804450184106827,
0.04403228685259819,
-0.1559089571237564,
-0.03672731667757034,
-0.09267415851354599,
0.04016101732850075,
-0.024957412853837013,
-0.08544935286045074,
-0.042599450796842575,
0.0120192626491189,
-0.23043487966060638,
-0.026456404477357864,
0.05669989809393883,
0.037770356982946396,
0.18548516929149628,
-0.14566312730312347,
-0.12683427333831787,
-0.14457237720489502,
-0.11639188975095749,
-0.15309973061084747,
0.08909384906291962,
-0.05964169651269913,
0.035802409052848816,
0.025087790563702583,
-0.21727345883846283,
-0.0029452790040522814,
0.2252701371908188,
0.08106297999620438,
0.045869018882513046,
-0.07981834560632706,
-0.023392951115965843,
-0.11828659474849701,
-0.006428491324186325,
0.07191949337720871,
-0.01846720091998577,
-0.09655551612377167,
0.1860533356666565,
-0.141880601644516,
-0.17890116572380066,
0.03441174700856209,
-0.05730847269296646,
-0.19428454339504242,
-0.041584696620702744,
-0.05504930764436722,
0.06575128436088562,
0.022671015933156013,
-0.033869363367557526,
0.20929859578609467,
-0.12593892216682434,
-0.06379198282957077,
-0.20005221664905548,
0.26431354880332947,
-0.034837715327739716,
-0.04643788933753967,
-0.1389416605234146,
0.014977915212512016,
0.019007839262485504,
0.07649501413106918,
-0.022061210125684738,
-0.1700001358985901,
0.09277898818254471,
0.10748741030693054,
0.026734663173556328,
-0.0020416269544512033,
0.004799474496394396,
-0.0004060869396198541,
0.006783277727663517,
-0.01778184249997139,
0.1691489815711975,
-0.14683233201503754,
-0.1640494465827942,
0.02182534709572792,
-0.17606276273727417,
0.08435799926519394,
0.11100644618272781,
0.015322313643991947,
-0.0009938202565535903,
0.07648265361785889,
0.050683848559856415,
-0.1184423491358757,
0.12164924293756485,
0.1466078907251358,
0.03480926528573036,
-0.09014194458723068,
0.15249238908290863,
0.06281520426273346,
0.06886620074510574,
0.05092571675777435,
-0.03142193332314491,
0.06578651815652847,
0.0371948778629303,
0.22808414697647095,
-0.07152582705020905,
0.013417038135230541,
-0.10020491480827332,
-0.10454749315977097,
0.025643520057201385,
0.13376487791538239,
-0.08301202952861786,
-0.07470006495714188,
-0.027219552546739578,
0.10426103323698044,
0.06595509499311447,
0.06609997153282166,
0.01767098344862461,
-0.06568621844053268,
0.037817202508449554,
-0.33626917004585266,
0.11620289087295532,
-0.2740010917186737,
0.18304257094860077,
-0.07009544223546982,
-0.0587255097925663,
-0.19179114699363708,
-0.09891082346439362,
-0.26830747723579407,
-0.11714262515306473,
0.02105494774878025,
-0.07274618744850159,
-0.062005236744880676,
-0.2017614245414734,
0.15571840107440948,
0.13666047155857086,
-0.10182583332061768,
-0.05781186744570732,
-0.19709879159927368,
-0.0622912272810936,
0.03960102051496506,
0.0029912255704402924,
-0.0732734277844429,
0.0064033386297523975,
-0.23556652665138245,
0.13897523283958435,
0.07248450070619583,
-0.1212836503982544,
-0.18719950318336487,
0.14148636162281036,
0.07985934615135193,
0.04295843467116356,
0.010418820194900036,
-0.11071828007698059,
0.08540930598974228,
0.04862642288208008,
-0.006737441755831242,
0.1825927346944809,
0.07785684615373611,
-0.07762295752763748,
-0.06855706125497818,
0.030780376866459846,
0.041938528418540955,
0.10885101556777954,
-0.016407161951065063,
-0.03256946802139282,
-0.025538837537169456,
-0.10682827234268188,
0.12871912121772766,
-0.20834624767303467,
-0.07518331706523895,
-0.028516041114926338,
-0.000004816588898393093,
-0.026459047570824623,
0.013726567849516869,
0.022071002051234245,
-0.23047880828380585,
0.14853043854236603,
0.12095753103494644,
-0.13657496869564056,
-0.17677514255046844,
0.10008582472801208,
-0.0569634810090065,
0.011628166772425175,
-0.13309060037136078,
-0.11231416463851929,
-0.12763653695583344,
0.07692309468984604,
-0.07670943439006805,
0.1685476452112198,
-0.1465832144021988,
0.03403496742248535,
0.15190985798835754,
0.10298441350460052,
0.12218643724918365,
0.14722563326358795,
-0.024461332708597183,
-0.005020996555685997,
-0.00905135553330183,
0.01636028289794922,
-0.09052472561597824,
-0.1504938155412674,
0.009087329730391502,
0.10770866274833679,
-0.01476924866437912,
-0.0082795275375247,
-0.09782546013593674,
-0.13916020095348358,
0.008497028611600399,
0.027649370953440666,
-0.012142069637775421,
0.10336191207170486,
0.11015170812606812,
-0.17760950326919556,
-0.03673039749264717,
0.1217101439833641,
-0.07548052072525024,
0.07100290060043335,
-0.08235981315374374,
-0.05144481360912323,
0.353375107049942,
0.19249683618545532,
-0.15343959629535675,
-0.03283459320664406,
-0.039219677448272705,
-0.07018868625164032,
0.05956650152802467,
0.1318797469139099,
0.11500195413827896,
-0.10152428597211838,
0.2704404592514038,
-0.07850948721170425,
0.10831555724143982,
0.04621658846735954,
0.06659706681966782,
-0.046343039721250534,
0.014578673988580704,
0.05676355957984924,
0.23305995762348175,
0.04664380103349686,
-0.021141748875379562,
-0.07612477242946625,
-0.15563438832759857,
-0.0926099568605423,
0.09077576547861099,
-0.002453793538734317,
0.12845826148986816,
-0.009638985618948936,
0.04345988482236862,
-0.05624237284064293,
-0.11251398175954819,
0.04933597892522812,
-0.05092417821288109,
-0.17180785536766052,
0.11412182450294495,
0.04378627985715866,
-0.09693726897239685,
0.025274714455008507,
-0.060073018074035645,
0.0002706197265069932,
0.046486932784318924,
0.06302262842655182,
-0.006871654652059078,
-0.009285468608140945,
0.07415945827960968,
-0.02058415673673153,
0.14201121032238007,
-0.05168108642101288,
-0.11445275694131851,
-0.04346736893057823,
-0.03577036410570145,
0.06859368085861206,
-0.13020052015781403,
0.02617337740957737,
0.08258712291717529,
0.046866897493600845,
0.07796777784824371,
0.09764907509088516,
-0.1362585723400116,
-0.0625733956694603,
0.11003173887729645,
-0.03415835276246071,
0.019061679020524025,
0.039573244750499725,
-0.039553724229335785,
0.03781740367412567,
-0.019196826964616776,
-0.2552994191646576,
0.026646608486771584,
0.10108864307403564,
0.10841485857963562,
0.11858763545751572,
0.006445665843784809,
-0.09637470543384552,
-0.009784026071429253,
0.09987449645996094,
-0.3264831006526947,
-0.034950416535139084,
-0.022558439522981644,
-0.007340515498071909,
-0.14542056620121002,
-0.032020848244428635,
0.05195648968219757,
-0.07542809098958969,
0.11861305683851242,
-0.09357002377510071,
-0.0722702294588089,
0.019978495314717293,
0.34623557329177856,
0.005136742722243071,
-0.1099492758512497,
-0.042005229741334915,
-0.13050056993961334,
-0.042424723505973816,
0.0322425402700901,
-0.0704304501414299,
-0.026902422308921814,
-0.1454329490661621,
-0.01706494763493538,
-0.07898471504449844,
-0.05221441015601158,
-0.005185227375477552,
-0.0432322733104229,
-0.01852879300713539,
-0.05200884863734245,
-0.024297384545207024,
0.022424090653657913,
0.09438949078321457,
-0.12982015311717987,
0.13906504213809967,
0.061813440173864365,
-0.10838925093412399,
-0.028313418850302696,
0.028238434344530106,
-0.12321394681930542,
0.11062529683113098,
0.2533569931983948,
0.0037170033901929855,
0.020311640575528145,
-0.1449400633573532,
-0.0696847140789032,
-0.05067634582519531,
0.03745444864034653,
-0.15129335224628448,
-0.09088794887065887,
-0.0564517080783844,
-0.07932237535715103,
-0.21352259814739227,
0.009429702535271645,
0.023543013259768486,
0.00570735614746809,
-0.060722820460796356,
-0.10490534454584122,
0.12427566200494766,
0.22924725711345673,
0.05421331897377968,
-0.013248785398900509,
0.11630275845527649,
-0.021184461191296577,
0.1647689938545227,
0.05464397370815277,
0.05063408240675926,
0.04066665843129158,
-0.020620092749595642,
0.08204689621925354,
-0.003769870148971677,
0.10533688217401505,
0.10496053844690323,
0.007550592068582773,
0.011007838882505894,
0.06202102079987526,
0.21620917320251465,
0.09861218184232712,
0.07267102599143982,
0.19492316246032715,
0.014911603182554245,
0.06511609256267548,
-0.04871509596705437,
0.018605493009090424,
-0.04403534159064293,
0.013059335760772228,
0.18517856299877167,
0.004787643905729055,
0.026063526049256325,
0.103273905813694,
0.01914818026125431,
-0.00249161827377975,
-0.1533498466014862,
-0.1970745176076889,
-0.0961933583021164,
-0.24278363585472107,
-0.2729828953742981,
0.06260093301534653,
0.11498652398586273,
-0.10267306864261627,
0.008309310302138329,
0.0599132776260376,
0.020882362499833107,
0.18724115192890167,
-0.10176977515220642,
0.13730353116989136,
-0.16597069799900055,
0.22184112668037415,
0.08713649213314056,
-0.02942640520632267,
0.03711068257689476,
0.18599694967269897,
-0.022206103429198265,
0.06312790513038635,
0.054808344691991806,
-0.1528203785419464,
-0.2422742247581482,
-0.05318109691143036,
0.06572314351797104,
-0.03208819776773453,
-0.14576293528079987,
-0.16410252451896667,
-0.042449578642845154,
-0.1464701145887375,
-0.056521400809288025,
-0.12157345563173294,
-0.050125446170568466,
-0.2520067095756531,
-0.11388573795557022,
0.147823303937912,
-0.10046140104532242,
0.07957656681537628,
-0.1103520393371582,
0.024911057204008102,
0.2678801417350769,
-0.12490050494670868,
-0.06705979257822037,
-0.10735708475112915,
0.18717285990715027,
0.0875416174530983,
0.04985281080007553,
0.18197399377822876,
-0.03948244825005531,
-0.09269095212221146,
0.09511754661798477,
-0.021510686725378036,
0.15898583829402924,
-0.17339664697647095,
0.02552889846265316,
0.2634008526802063,
0.01751672849059105,
0.06033199280500412,
-0.00892446469515562,
-0.1846744418144226,
-0.1326957643032074,
0.19213609397411346,
0.08996780216693878,
-0.03813821077346802,
-0.16386549174785614,
-0.02335428260266781,
0.11904452741146088,
0.11873723566532135,
0.05139563977718353,
-0.1285102218389511,
0.025375645607709885,
0.1654844582080841,
-0.0950469896197319,
0.06360764056444168,
0.026799563318490982,
0.3218676447868347,
-0.05201612412929535,
-0.16694173216819763,
0.07583161443471909,
0.11769884824752808,
0.1493205577135086,
-0.0071559748612344265,
-0.05743607133626938,
-0.018669765442609787,
-0.02852472849190235,
0.07215672731399536,
-0.06616579741239548,
-0.12065443396568298,
0.0659460574388504,
-0.07247922569513321,
-0.09723212569952011,
-0.025610486045479774,
-0.007114016450941563,
-0.10628668963909149,
-0.14970386028289795,
0.1720007210969925,
0.06253385543823242,
0.06699883192777634,
-0.04057653620839119,
0.004670940339565277,
0.035810455679893494,
0.06642835587263107,
-0.092380590736866,
-0.0018619728507474065,
0.05522463470697403,
0.04817366972565651,
-0.031769461929798126,
-0.09198243916034698,
0.029900498688220978,
0.23012423515319824,
-0.10728033632040024,
-0.05643589794635773,
0.09789533913135529,
-0.029407579451799393,
0.06795014441013336,
-0.03234802186489105,
0.06408382207155228,
0.0913192629814148,
-0.0618513822555542,
0.07588115334510803,
0.09990717470645905,
-0.04520744830369949,
-0.2156822830438614,
0.007292094174772501,
0.10139958560466766,
0.04116002842783928,
-0.020688751712441444,
-0.01614266447722912,
-0.10458153486251831,
0.09969667345285416,
-0.1368744969367981,
-0.12303455173969269,
0.20682749152183533,
0.06864754855632782,
-0.029663028195500374,
-0.06693867594003677,
-2.3040689915682973e-32,
0.09156868606805801,
0.0791001170873642,
-0.055031199008226395,
-0.03798331320285797,
-0.10873330384492874,
-0.0219113826751709,
-0.06769400835037231,
-0.02660764940083027,
-0.12695226073265076,
0.004992566537111998,
-0.05058964341878891,
0.02898229844868183,
0.036608416587114334,
-0.07749926298856735,
-0.17438244819641113,
-0.09024310857057571,
-0.03432626649737358,
-0.06612243503332138,
-0.04442598298192024,
0.10895486176013947,
0.10305771231651306,
0.19625161588191986,
0.03205224126577377,
-0.06504157185554504,
0.06157466769218445,
-0.14289510250091553,
0.1124681904911995,
-0.23698535561561584,
0.13234426081180573,
-0.0676996037364006,
0.007006063126027584,
0.07557616382837296,
-0.0012803353602066636,
-0.15785068273544312,
-0.03496565669775009,
-0.0886949673295021,
-0.13552652299404144,
-0.16291674971580505,
0.1023494303226471,
-0.05076795443892479,
-0.08396732062101364,
0.16523225605487823,
0.09795811772346497,
-0.033182431012392044,
-0.01142813079059124,
-0.08521491289138794,
0.00038978757220320404,
0.04060458391904831,
-0.10777899622917175,
0.030951088294386864,
-0.12430194020271301,
-0.01860213279724121,
0.021326418966054916,
0.0287673007696867,
0.10402978956699371,
-0.13152487576007843,
0.07138731330633163,
0.22212982177734375,
-0.15537291765213013,
-0.08121553063392639,
0.03845307603478432,
-0.08162502199411392,
0.19174131751060486,
-0.139891117811203,
0.05306855961680412,
0.08258306235074997,
0.33742499351501465,
0.046508368104696274,
0.05138103663921356,
0.00936573464423418,
0.11446499079465866,
0.2652062177658081,
-0.22436049580574036,
-0.0013662173878401518,
-0.12743087112903595,
-0.15324819087982178,
-0.15276460349559784,
0.05194569006562233,
-0.09855598956346512,
-0.13438168168067932,
0.04420121759176254,
-0.005577363073825836,
-0.13939306139945984,
0.14216086268424988,
-0.044947825372219086,
-0.01857573911547661,
0.006191479042172432,
0.08181902021169662,
-0.12310358881950378,
-0.11281963437795639,
0.0051413606852293015,
-0.017506884410977364,
0.05377305671572685,
-0.1512242555618286,
0.010115599259734154,
0.038756001740694046,
-0.12038088589906693,
0.02680378593504429,
-0.005066527519375086,
0.07677319645881653,
0.027828315272927284,
-0.024332646280527115,
0.10243088006973267,
-0.08136755228042603,
0.10297754406929016,
0.0629459023475647,
0.011426383629441261,
-0.10549537092447281,
-0.1406032294034958,
0.01342832949012518,
-0.04807143285870552,
0.02334352768957615,
0.05407291650772095,
0.13152678310871124,
0.2378595471382141,
0.1632499098777771,
-0.012876823544502258,
-0.11648636311292648,
0.2135922759771347,
0.25711530447006226,
-0.13879747688770294,
0.005062952172011137,
-0.073000967502594,
-0.007043235003948212,
0.023168452084064484,
0.16370035707950592,
-0.1571790724992752,
-0.19711944460868835,
-0.023263972252607346,
0.0660209059715271,
0.07967732846736908,
0.01642577163875103,
7.504927452828269e-7,
-0.12452254444360733,
0.07387976348400116,
-0.026754576712846756,
-0.043370380997657776,
-0.0628669261932373,
0.0729760155081749,
-0.3073999881744385,
-0.10998107492923737,
0.1430952250957489,
0.06097492203116417,
0.1270279437303543,
-0.0256950706243515,
-0.02818356081843376,
0.03277787193655968,
0.05508870631456375,
0.0899013802409172,
-0.04430925473570824,
0.10763455182313919,
0.012797346338629723,
-0.11761186271905899,
0.12601274251937866,
0.12459125369787216,
-0.059118758887052536,
-0.11275029927492142,
0.1303119659423828,
-0.06381869316101074,
0.01712154783308506,
0.0234653539955616,
0.15918560326099396,
0.07489050924777985,
0.02867143042385578,
0.03446105495095253,
-0.011054130271077156,
0.02711687982082367,
0.07132767885923386,
-0.03494970127940178,
-0.12303725630044937,
0.07133109122514725,
0.12226581573486328,
0.05605625361204147,
-0.0357501357793808,
0.09949954599142075,
0.11731266975402832,
0.058503247797489166,
0.1749921292066574,
0.0998777523636818,
-0.03988087177276611,
-0.04948922246694565,
-0.06207741051912308,
0.23316261172294617,
0.14132089912891388,
0.05411475524306297,
0.18304434418678284,
0.05518505722284317,
-0.05425552278757095,
0.1017279401421547,
-0.04704007878899574,
-0.0549895353615284,
0.16912852227687836,
0.02398581989109516,
-0.12076126784086227,
-0.04568387567996979,
0.07736214995384216,
-0.08267112821340561,
0.0744488462805748,
-0.04840466380119324,
-0.009305017068982124,
1.0537650554183444e-36,
-0.052500467747449875,
0.0014602834125980735,
0.07242261618375778,
-0.15180185437202454,
-0.09944622963666916,
-0.038563262671232224,
0.033534303307533264,
-0.16198520362377167,
-0.07766301184892654,
-0.09069574624300003,
-0.052375275641679764
] |
https://github.com/huggingface/datasets/issues/2415 | Cached dataset not loaded | It actually seems to happen all the time in above configuration:
* the function `filter_by_duration` correctly loads cached processed dataset
* the function `prepare_dataset` is always reexecuted
I end up solving the issue by saving to disk my dataset at the end but I'm still wondering if it's a bug or limitation here. | ## Describe the bug
I have a large dataset (common_voice, english) where I use several map and filter functions.
Sometimes my cached datasets after specific functions are not loaded.
I always use the same arguments, same functions, no seed…
## Steps to reproduce the bug
```python
def filter_by_duration(batch):
return (
batch["duration"] <= 10
and batch["duration"] >= 1
and len(batch["target_text"]) > 5
)
def prepare_dataset(batch):
batch["input_values"] = processor(
batch["speech"], sampling_rate=batch["sampling_rate"][0]
).input_values
with processor.as_target_processor():
batch["labels"] = processor(batch["target_text"]).input_ids
return batch
train_dataset = train_dataset.filter(
filter_by_duration,
remove_columns=["duration"],
num_proc=data_args.preprocessing_num_workers,
)
# PROBLEM HERE -> below function is reexecuted and cache is not loaded
train_dataset = train_dataset.map(
prepare_dataset,
remove_columns=train_dataset.column_names,
batch_size=training_args.per_device_train_batch_size,
batched=True,
num_proc=data_args.preprocessing_num_workers,
)
# Later in script
set_caching_enabled(False)
# apply map on trained model to eval/test sets
```
## Expected results
The cached dataset should always be reloaded.
## Actual results
The function is reexecuted.
I have access to cached files `cache-xxxxx.arrow`.
Is there a way I can somehow load manually 2 versions and see how the hash was created for debug purposes (to know if it's an issue with dataset or function)?
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.8.0-45-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No | 53 | Cached dataset not loaded
## Describe the bug
I have a large dataset (common_voice, english) where I use several map and filter functions.
Sometimes my cached datasets after specific functions are not loaded.
I always use the same arguments, same functions, no seed…
## Steps to reproduce the bug
```python
def filter_by_duration(batch):
return (
batch["duration"] <= 10
and batch["duration"] >= 1
and len(batch["target_text"]) > 5
)
def prepare_dataset(batch):
batch["input_values"] = processor(
batch["speech"], sampling_rate=batch["sampling_rate"][0]
).input_values
with processor.as_target_processor():
batch["labels"] = processor(batch["target_text"]).input_ids
return batch
train_dataset = train_dataset.filter(
filter_by_duration,
remove_columns=["duration"],
num_proc=data_args.preprocessing_num_workers,
)
# PROBLEM HERE -> below function is reexecuted and cache is not loaded
train_dataset = train_dataset.map(
prepare_dataset,
remove_columns=train_dataset.column_names,
batch_size=training_args.per_device_train_batch_size,
batched=True,
num_proc=data_args.preprocessing_num_workers,
)
# Later in script
set_caching_enabled(False)
# apply map on trained model to eval/test sets
```
## Expected results
The cached dataset should always be reloaded.
## Actual results
The function is reexecuted.
I have access to cached files `cache-xxxxx.arrow`.
Is there a way I can somehow load manually 2 versions and see how the hash was created for debug purposes (to know if it's an issue with dataset or function)?
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.8.0-45-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No
It actually seems to happen all the time in above configuration:
* the function `filter_by_duration` correctly loads cached processed dataset
* the function `prepare_dataset` is always reexecuted
I end up solving the issue by saving to disk my dataset at the end but I'm still wondering if it's a bug or limitation here. | [
0.06598664075136185,
0.07073422521352768,
-0.07924076169729233,
0.041614748537540436,
0.14760254323482513,
-0.016254335641860962,
0.03878219053149223,
0.013969160616397858,
0.02666826918721199,
0.1685267686843872,
-0.04981968551874161,
-0.06368454545736313,
-0.0027643663343042135,
-0.12920068204402924,
-0.03972678259015083,
0.1537090539932251,
-0.09064516425132751,
0.07632946223020554,
-0.11220147460699081,
-0.09614545851945877,
-0.08287360519170761,
0.11440665274858475,
0.23202280700206757,
0.1041187047958374,
-0.12595272064208984,
0.05789751932024956,
-0.016219288110733032,
0.056376319378614426,
0.02858997881412506,
0.006009605713188648,
0.02810598909854889,
-0.09782686829566956,
-0.03622860461473465,
0.1506812572479248,
0.000006210786523297429,
0.07089520245790482,
0.1462222784757614,
0.022805364802479744,
-0.16014812886714935,
0.005166585557162762,
0.14527073502540588,
0.0940941646695137,
-0.05077243968844414,
0.039874255657196045,
-0.061015885323286057,
-0.030542617663741112,
0.049668096005916595,
-0.14896181225776672,
0.09491395205259323,
-0.032340072095394135,
0.04163441061973572,
-0.10405821353197098,
-0.1999049335718155,
-0.07919023185968399,
0.050121814012527466,
-0.017406368628144264,
-0.012241966091096401,
-0.03461913764476776,
-0.2791888117790222,
-0.08767104893922806,
0.11561822146177292,
0.023619620129466057,
0.06867585331201553,
0.06252383440732956,
-0.06321578472852707,
0.043186090886592865,
-0.06147357448935509,
-0.029714705422520638,
0.07410728931427002,
0.15764181315898895,
-0.01433287002146244,
0.028269074857234955,
-0.08882903307676315,
0.08058410882949829,
-0.16062888503074646,
-0.12092258781194687,
0.0007084496319293976,
0.01017238013446331,
-0.02207271382212639,
0.002192932879552245,
-0.034137748181819916,
0.050592001527547836,
0.029751507565379143,
0.017747826874256134,
-0.13047568500041962,
-0.06852149963378906,
-0.01836053840816021,
0.016741463914513588,
-0.11736375838518143,
-0.10703131556510925,
0.05640830472111702,
0.003270081477239728,
-0.0310414656996727,
-0.0672849714756012,
0.130840003490448,
0.22213374078273773,
0.018519962206482887,
-0.030273208394646645,
-0.006983936298638582,
-0.10730884224176407,
-0.015294178389012814,
-0.10492882132530212,
0.0037515517324209213,
0.05391702428460121,
0.0023886437993496656,
-0.08919437229633331,
-0.030523426830768585,
-0.1463364213705063,
-0.010338874533772469,
0.005879128817468882,
-0.1927213966846466,
0.06569322198629379,
-0.08643299341201782,
-0.013886669650673866,
0.3700264096260071,
-0.008129042573273182,
0.026402156800031662,
-0.03378155082464218,
0.1124914288520813,
0.12161651253700256,
-0.052008114755153656,
0.08302010595798492,
-0.041282232850790024,
0.13465602695941925,
-0.013897930271923542,
0.06369226425886154,
-0.11748974770307541,
-0.03404931724071503,
-0.18688686192035675,
-0.02657468616962433,
-0.10375610738992691,
-0.1347612589597702,
-0.015288840048015118,
0.11645490676164627,
0.09240831434726715,
-0.0775250792503357,
0.011285712942481041,
-0.06618109345436096,
-0.08757441490888596,
-0.18155816197395325,
0.10709681361913681,
-0.09936808794736862,
0.07216040045022964,
0.02379773184657097,
0.08403737843036652,
0.04387076571583748,
0.10718141496181488,
0.06889081746339798,
0.05305640026926994,
0.05772682651877403,
-0.21592295169830322,
0.08033384382724762,
0.0028461324982345104,
0.07861216366291046,
-0.006800343748182058,
0.14727117121219635,
0.16865427792072296,
0.009691774845123291,
-0.12756898999214172,
-0.085562564432621,
-0.0057121324352920055,
-0.0867113396525383,
-0.03722056373953819,
-0.019259026274085045,
0.0980563834309578,
0.1511373370885849,
0.06205928325653076,
0.1106947660446167,
-0.00575909111648798,
0.04328217729926109,
-0.05151605233550072,
-0.12654606997966766,
-0.12851497530937195,
-0.07656870782375336,
-0.166787251830101,
0.1043538749217987,
-0.00989612564444542,
-0.02882150001823902,
-0.12149093300104141,
-0.06215808540582657,
0.08142785727977753,
0.0826544314622879,
0.04346054047346115,
-0.10797202587127686,
0.18202421069145203,
-0.06646022945642471,
0.01679445058107376,
0.008287237957119942,
-0.03848123177886009,
-0.06664561480283737,
-0.1313120722770691,
-0.0011848009889945388,
-0.012361343950033188,
0.04837504029273987,
0.08950509876012802,
0.035636402666568756,
0.018988842144608498,
0.04324842244386673,
-0.03662032634019852,
-0.15987953543663025,
-0.0712018683552742,
0.0863223746418953,
-0.09358374029397964,
0.14736934006214142,
0.0924542248249054,
0.13113558292388916,
-0.04703695699572563,
0.17691698670387268,
-0.0830325186252594,
-0.2519157826900482,
-0.11421836167573929,
0.03903742879629135,
0.020491521805524826,
-0.04226653277873993,
-0.0981736108660698,
-0.10878932476043701,
-0.12295703589916229,
0.08168741315603256,
-0.09675582498311996,
0.044845663011074066,
-0.01496546808630228,
0.20173776149749756,
0.07808105647563934,
-0.01953035406768322,
0.00831172801554203,
0.04829605296254158,
0.08933765441179276,
-0.07424498349428177,
-0.021509133279323578,
0.024255000054836273,
-0.11100251972675323,
0.03847908228635788,
0.06039221212267876,
0.07533787190914154,
0.026834310963749886,
0.0005098410183563828,
-0.1490926444530487,
-0.17067663371562958,
0.04129953682422638,
0.030603377148509026,
-0.031038928776979446,
-0.005277802236378193,
-0.03432783856987953,
-0.08606071025133133,
0.11532051116228104,
0.061748284846544266,
0.05552760511636734,
0.21925029158592224,
0.04255823791027069,
-0.09368418157100677,
0.18673352897167206,
0.10009943693876266,
-0.16462232172489166,
0.0008473757188767195,
0.06814371049404144,
-0.12058647722005844,
0.2845298945903778,
0.21399566531181335,
0.032858021557331085,
-0.002508750418201089,
0.3165559768676758,
0.08634225279092789,
0.04243060201406479,
-0.07707613706588745,
0.027309736236929893,
-0.06376909464597702,
-0.017036914825439453,
-0.049527253955602646,
-0.11086878180503845,
0.11759304255247116,
0.15580299496650696,
0.007348557934165001,
-0.17411324381828308,
-0.06690635532140732,
-0.16036097705364227,
-0.1053331047296524,
0.004069289658218622,
-0.13247065246105194,
0.09213665872812271,
0.0008669410599395633,
-0.16585193574428558,
0.09588375687599182,
0.12316694855690002,
-0.08879195898771286,
0.11471087485551834,
0.15426936745643616,
-0.06655822694301605,
0.10427068918943405,
-0.11959905922412872,
0.10206174105405807,
-0.012956175953149796,
-0.1380554586648941,
-0.040761422365903854,
-0.013808178715407848,
0.09390200674533844,
-0.013128431513905525,
-0.027912253513932228,
-0.16981451213359833,
-0.07892324775457382,
-0.17165401577949524,
-0.013906757347285748,
-0.032481398433446884,
-0.05382116138935089,
-0.2413351982831955,
0.06041209027171135,
-0.08692584931850433,
0.05114952102303505,
0.06841486692428589,
-0.2510140836238861,
0.016578638926148415,
0.13951480388641357,
0.02792837843298912,
0.13635672628879547,
0.08138438314199448,
-0.09557757526636124,
-0.04450364410877228,
-0.16068239510059357,
-0.23762266337871552,
0.21366751194000244,
-0.01700662449002266,
0.10452808439731598,
0.03765912353992462,
0.08152742683887482,
-0.1192934587597847,
-0.05461488291621208,
-0.12310107052326202,
-0.06554288417100906,
-0.06250771880149841,
-0.08794790506362915,
-0.056948378682136536,
-0.06308116763830185,
-0.016783975064754486,
-0.09600656479597092,
-0.1300215870141983,
-0.06842893362045288,
-0.048913098871707916,
-0.19641868770122528,
-0.12699489295482635,
0.24660928547382355,
-0.02469702810049057,
-0.04028497263789177,
0.07394114881753922,
-0.13896195590496063,
-0.01725727692246437,
0.14612515270709991,
-0.0611565075814724,
0.09703762829303741,
-0.0836445540189743,
0.13639949262142181,
0.08030498772859573,
-0.006258673034608364,
0.09356720745563507,
-0.04914176091551781,
-0.1481751799583435,
-0.07099045068025589,
-0.04443032294511795,
-0.098101906478405,
0.023502666503190994,
0.01059875637292862,
0.031836193054914474,
0.10386065393686295,
0.06130024418234825,
0.19637185335159302,
-0.017106208950281143,
-0.1400163173675537,
0.13615663349628448,
0.16564270853996277,
0.13535264134407043,
0.15443077683448792,
-0.009295879863202572,
0.03353780880570412,
-0.07902603596448898,
-0.0976196750998497,
-0.1354207545518875,
0.09270571172237396,
-0.05365854501724243,
-0.09385526925325394,
-0.03443673998117447,
-0.007319808006286621,
-0.037600062787532806,
0.06356047838926315,
-0.23680347204208374,
-0.020842967554926872,
0.1572353094816208,
0.11598751693964005,
-0.10700228065252304,
0.04398002102971077,
0.0025501379277557135,
-0.24505943059921265,
0.20822934806346893,
0.0734889879822731,
0.09815211594104767,
0.07706009596586227,
-0.006760312709957361,
-0.047988954931497574,
-0.014846852980554104,
0.16659460961818695,
-0.051565028727054596,
0.04474901035428047,
-0.03689020127058029,
-0.06748530268669128,
0.12101813405752182,
-0.03052056021988392,
0.12158810347318649,
0.12054064869880676,
-0.03854360431432724,
0.07903388887643814,
-0.16879187524318695,
0.1956908404827118,
0.006126226857304573,
0.05765226110816002,
-0.05009958893060684,
0.14754502475261688,
-0.002094108844175935,
0.08334485441446304,
0.007640700787305832,
-0.12077244371175766,
0.0027013488579541445,
0.02377532608807087,
-0.08339565992355347,
0.011532631702721119,
0.0021635533776134253,
-0.143156036734581,
-0.036570530384778976,
0.02005346119403839,
0.0006771121989004314,
-0.009949413128197193,
-0.05812530219554901,
0.03106834925711155,
0.03880912810564041,
0.10450296103954315,
0.01812809705734253,
0.03776940330862999,
0.1815865933895111,
0.11816074699163437,
-0.18278412520885468,
0.2698885500431061,
-0.1489759236574173,
-0.12093489617109299,
-0.021201174706220627,
-0.0617341473698616,
0.0013765470357611775,
-0.08651690185070038,
-0.06404274702072144,
-0.04075879603624344,
-0.03633055090904236,
-0.06587877124547958,
-0.0028109007980674505,
0.05555441975593567,
-0.08024745434522629,
-0.03287750855088234,
-0.06278819590806961,
-0.13228832185268402,
-0.12469121068716049,
0.05568811297416687,
0.020405113697052002,
0.20825926959514618,
-0.2368539273738861,
0.06323791295289993,
0.08355829119682312,
-0.09552466124296188,
-0.037371981889009476,
0.15302404761314392,
-0.04841675981879234,
-0.05764023959636688,
0.07626821845769882,
0.11461594700813293,
-0.2211327999830246,
-0.006128213368356228,
0.09197980910539627,
-0.1039607897400856,
0.017012422904372215,
-0.10628642141819,
0.08780178427696228,
0.08706974983215332,
0.047561079263687134,
0.0013191071338951588,
0.00039218858000822365,
0.09723715484142303,
-0.05992227792739868,
0.06788372993469238,
0.04987521097064018,
0.11124272644519806,
-0.10868579149246216,
0.019453883171081543,
0.2598443329334259,
0.11640520393848419,
-0.06884509325027466,
-0.00540251424536109,
-0.00013205698633100837,
0.10896280407905579,
-0.029804203659296036,
0.1885247677564621,
-0.050328973680734634,
0.010806047357618809,
-0.032399725168943405,
0.007306366227567196,
-0.022102560847997665,
0.0011273836717009544,
0.04232282191514969,
0.03878750652074814,
0.011743408627808094,
0.04096268489956856,
0.09185104072093964,
0.01519282627850771,
-0.18508121371269226,
0.022580226883292198,
-0.027370693162083626,
-0.06069958582520485,
-0.011224168352782726,
0.14447015523910522,
0.06738100945949554,
-0.09396559000015259,
-0.06664951890707016,
-0.0770559310913086,
-0.15527769923210144,
-0.0642194151878357,
-0.034041628241539,
0.056575264781713486,
-0.06117571145296097,
0.11382661014795303,
0.08511513471603394,
0.02756430394947529,
-0.004494030959904194,
0.18674230575561523,
-0.061990149319171906,
-0.11666084080934525,
-0.028150983154773712,
0.25570204854011536,
0.1075768768787384,
0.10335784405469894,
0.17433710396289825,
0.01174128707498312,
-0.05239412561058998,
-0.029427140951156616,
-0.009132434614002705,
0.047720421105623245,
-0.07533171772956848,
0.03647061437368393,
-0.17137029767036438,
-0.0704423263669014,
-0.09949290007352829,
-0.13399162888526917,
-0.034699954092502594,
0.020700644701719284,
0.05727986991405487,
0.08109558373689651,
0.03605480492115021,
-0.07611917704343796,
-0.12429281324148178,
-0.05576596409082413,
0.15155164897441864,
-0.06797008961439133,
0.038825780153274536,
-0.02128760702908039,
-2.7784166677659965e-32,
-0.08645705133676529,
-0.10801505297422409,
-0.04941491410136223,
-0.15187449753284454,
-0.06592319160699844,
0.06922044605016708,
-0.03448496386408806,
-0.04543285071849823,
0.013844688422977924,
-0.10842426866292953,
-0.06547056138515472,
-0.008668634109199047,
0.0880192443728447,
-0.027701402083039284,
-0.0820549726486206,
-0.1740548014640808,
-0.008416405878961086,
0.036755066365003586,
0.004605102352797985,
0.04587622731924057,
0.1452103555202484,
0.15997503697872162,
0.00953128281980753,
-0.03291209414601326,
-0.1000237986445427,
-0.07458632439374924,
0.028113605454564095,
-0.2761113941669464,
-0.17720498144626617,
0.02891816757619381,
-0.04987821355462074,
0.19333460927009583,
-0.01742701232433319,
-0.1847825050354004,
-0.21359588205814362,
-0.09535478800535202,
0.007517916616052389,
0.1163487359881401,
-0.04562041535973549,
-0.046506211161613464,
0.06497620046138763,
0.02262524701654911,
0.09788304567337036,
-0.05002714693546295,
-0.003977897111326456,
0.05735181272029877,
0.03253835067152977,
-0.06469934433698654,
-0.05819805711507797,
-0.110890232026577,
0.14564859867095947,
0.09837774187326431,
0.07844997197389603,
0.02543960139155388,
0.0026751053519546986,
-0.12612628936767578,
0.06220962107181549,
0.050127800554037094,
-0.2815897464752197,
0.06857410818338394,
0.06448601186275482,
0.11209233105182648,
0.14473138749599457,
0.024262964725494385,
0.12015621364116669,
-0.0988367348909378,
0.2911221981048584,
0.06220610812306404,
0.07155481725931168,
0.027467483654618263,
0.12318367511034012,
0.014420934952795506,
-0.08363252878189087,
-0.10177143663167953,
-0.007424395531415939,
-0.06754600256681442,
0.06767026335000992,
-0.14642395079135895,
-0.09551562368869781,
0.06328338384628296,
0.017168285325169563,
-0.08146262913942337,
-0.002899330807849765,
-0.10885690152645111,
-0.1350807547569275,
0.1045922338962555,
-0.05555002763867378,
0.15438221395015717,
-0.18300674855709076,
-0.002690815832465887,
0.08548226207494736,
0.16523292660713196,
-0.03754005953669548,
0.004579850472509861,
0.022557925432920456,
-0.0030419593676924706,
-0.09596403688192368,
0.14769122004508972,
-0.034596286714076996,
0.13805131614208221,
0.014573222026228905,
-0.09722700715065002,
0.09814558923244476,
-0.08360157907009125,
0.05029011145234108,
0.06502773612737656,
0.028172938153147697,
-0.07795627415180206,
-0.006578086409717798,
-0.05927102640271187,
-0.12159945070743561,
-0.025928117334842682,
0.10911445319652557,
0.030614744871854782,
0.13326914608478546,
0.06208336353302002,
-0.05930766463279724,
0.07211072742938995,
0.09948673099279404,
0.19921322166919708,
0.07331148535013199,
-0.07862779498100281,
0.07399360090494156,
0.08179880678653717,
-0.035854265093803406,
0.11265461146831512,
-0.12952779233455658,
-0.027334539219737053,
0.25385239720344543,
-0.024260221049189568,
0.017408935353159904,
-0.028023842722177505,
7.822505381227529e-7,
-0.09777665138244629,
0.03241873160004616,
0.1356675922870636,
-0.02075055241584778,
-0.03277641534805298,
0.07228635996580124,
-0.19405122101306915,
0.1327873170375824,
-0.15827438235282898,
0.11030355840921402,
0.009255090728402138,
-0.045639652758836746,
0.14588989317417145,
-0.05590933933854103,
0.0939173772931099,
-0.14431995153427124,
-0.2207036316394806,
-0.022804012522101402,
-0.07775133103132248,
-0.04734194278717041,
-0.12558181583881378,
0.09658113867044449,
0.07868316769599915,
-0.0505913682281971,
0.05996079370379448,
0.022257154807448387,
0.06971409171819687,
-0.045370809733867645,
-0.09910252690315247,
-0.1064479723572731,
-0.026716532185673714,
0.09456247091293335,
0.04666728898882866,
0.062397148460149765,
0.02744729444384575,
-0.013644921593368053,
-0.08898432552814484,
-0.045234862715005875,
0.21267767250537872,
-0.07185966521501541,
0.10139929503202438,
0.07546935975551605,
-0.10997995734214783,
0.12391551584005356,
0.13984647393226624,
0.033673807978630066,
-0.07196753472089767,
-0.07466338574886322,
0.05221279338002205,
0.041591912508010864,
0.09898945689201355,
0.07085201889276505,
0.07395651936531067,
0.3183554410934448,
-0.0013392335968092084,
-0.056994810700416565,
0.08525087684392929,
-0.14210611581802368,
0.07642737030982971,
-0.07275845110416412,
-0.19676046073436737,
-0.1247529536485672,
-0.008821901865303516,
-0.11058960109949112,
0.04538906365633011,
-0.10324126482009888,
-0.08804897218942642,
1.4870916153145007e-34,
-0.06311310827732086,
0.04596533626317978,
-0.0019192732870578766,
-0.14731177687644958,
0.17585252225399017,
-0.11912529170513153,
0.1686815619468689,
0.0739729255437851,
0.005945748649537563,
-0.23433923721313477,
-0.12201263755559921
] |
https://github.com/huggingface/datasets/issues/2415 | Cached dataset not loaded | Hi ! The hash used for caching `map` results is the fingerprint of the resulting dataset. It is computed using three things:
- the old fingerprint of the dataset
- the hash of the function
- the hash of the other parameters passed to `map`
You can compute the hash of your function (or any python object) with
```python
from datasets.fingerprint import Hasher
my_func = lambda x: x + 1
print(Hasher.hash(my_func))
```
If `prepare_dataset` is always executed, maybe this is because your `processor` has a different hash each time you want to execute it. | ## Describe the bug
I have a large dataset (common_voice, english) where I use several map and filter functions.
Sometimes my cached datasets after specific functions are not loaded.
I always use the same arguments, same functions, no seed…
## Steps to reproduce the bug
```python
def filter_by_duration(batch):
return (
batch["duration"] <= 10
and batch["duration"] >= 1
and len(batch["target_text"]) > 5
)
def prepare_dataset(batch):
batch["input_values"] = processor(
batch["speech"], sampling_rate=batch["sampling_rate"][0]
).input_values
with processor.as_target_processor():
batch["labels"] = processor(batch["target_text"]).input_ids
return batch
train_dataset = train_dataset.filter(
filter_by_duration,
remove_columns=["duration"],
num_proc=data_args.preprocessing_num_workers,
)
# PROBLEM HERE -> below function is reexecuted and cache is not loaded
train_dataset = train_dataset.map(
prepare_dataset,
remove_columns=train_dataset.column_names,
batch_size=training_args.per_device_train_batch_size,
batched=True,
num_proc=data_args.preprocessing_num_workers,
)
# Later in script
set_caching_enabled(False)
# apply map on trained model to eval/test sets
```
## Expected results
The cached dataset should always be reloaded.
## Actual results
The function is reexecuted.
I have access to cached files `cache-xxxxx.arrow`.
Is there a way I can somehow load manually 2 versions and see how the hash was created for debug purposes (to know if it's an issue with dataset or function)?
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.8.0-45-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No | 94 | Cached dataset not loaded
## Describe the bug
I have a large dataset (common_voice, english) where I use several map and filter functions.
Sometimes my cached datasets after specific functions are not loaded.
I always use the same arguments, same functions, no seed…
## Steps to reproduce the bug
```python
def filter_by_duration(batch):
return (
batch["duration"] <= 10
and batch["duration"] >= 1
and len(batch["target_text"]) > 5
)
def prepare_dataset(batch):
batch["input_values"] = processor(
batch["speech"], sampling_rate=batch["sampling_rate"][0]
).input_values
with processor.as_target_processor():
batch["labels"] = processor(batch["target_text"]).input_ids
return batch
train_dataset = train_dataset.filter(
filter_by_duration,
remove_columns=["duration"],
num_proc=data_args.preprocessing_num_workers,
)
# PROBLEM HERE -> below function is reexecuted and cache is not loaded
train_dataset = train_dataset.map(
prepare_dataset,
remove_columns=train_dataset.column_names,
batch_size=training_args.per_device_train_batch_size,
batched=True,
num_proc=data_args.preprocessing_num_workers,
)
# Later in script
set_caching_enabled(False)
# apply map on trained model to eval/test sets
```
## Expected results
The cached dataset should always be reloaded.
## Actual results
The function is reexecuted.
I have access to cached files `cache-xxxxx.arrow`.
Is there a way I can somehow load manually 2 versions and see how the hash was created for debug purposes (to know if it's an issue with dataset or function)?
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.8.0-45-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No
Hi ! The hash used for caching `map` results is the fingerprint of the resulting dataset. It is computed using three things:
- the old fingerprint of the dataset
- the hash of the function
- the hash of the other parameters passed to `map`
You can compute the hash of your function (or any python object) with
```python
from datasets.fingerprint import Hasher
my_func = lambda x: x + 1
print(Hasher.hash(my_func))
```
If `prepare_dataset` is always executed, maybe this is because your `processor` has a different hash each time you want to execute it. | [
0.06598664075136185,
0.07073422521352768,
-0.07924076169729233,
0.041614748537540436,
0.14760254323482513,
-0.016254335641860962,
0.03878219053149223,
0.013969160616397858,
0.02666826918721199,
0.1685267686843872,
-0.04981968551874161,
-0.06368454545736313,
-0.0027643663343042135,
-0.12920068204402924,
-0.03972678259015083,
0.1537090539932251,
-0.09064516425132751,
0.07632946223020554,
-0.11220147460699081,
-0.09614545851945877,
-0.08287360519170761,
0.11440665274858475,
0.23202280700206757,
0.1041187047958374,
-0.12595272064208984,
0.05789751932024956,
-0.016219288110733032,
0.056376319378614426,
0.02858997881412506,
0.006009605713188648,
0.02810598909854889,
-0.09782686829566956,
-0.03622860461473465,
0.1506812572479248,
0.000006210786523297429,
0.07089520245790482,
0.1462222784757614,
0.022805364802479744,
-0.16014812886714935,
0.005166585557162762,
0.14527073502540588,
0.0940941646695137,
-0.05077243968844414,
0.039874255657196045,
-0.061015885323286057,
-0.030542617663741112,
0.049668096005916595,
-0.14896181225776672,
0.09491395205259323,
-0.032340072095394135,
0.04163441061973572,
-0.10405821353197098,
-0.1999049335718155,
-0.07919023185968399,
0.050121814012527466,
-0.017406368628144264,
-0.012241966091096401,
-0.03461913764476776,
-0.2791888117790222,
-0.08767104893922806,
0.11561822146177292,
0.023619620129466057,
0.06867585331201553,
0.06252383440732956,
-0.06321578472852707,
0.043186090886592865,
-0.06147357448935509,
-0.029714705422520638,
0.07410728931427002,
0.15764181315898895,
-0.01433287002146244,
0.028269074857234955,
-0.08882903307676315,
0.08058410882949829,
-0.16062888503074646,
-0.12092258781194687,
0.0007084496319293976,
0.01017238013446331,
-0.02207271382212639,
0.002192932879552245,
-0.034137748181819916,
0.050592001527547836,
0.029751507565379143,
0.017747826874256134,
-0.13047568500041962,
-0.06852149963378906,
-0.01836053840816021,
0.016741463914513588,
-0.11736375838518143,
-0.10703131556510925,
0.05640830472111702,
0.003270081477239728,
-0.0310414656996727,
-0.0672849714756012,
0.130840003490448,
0.22213374078273773,
0.018519962206482887,
-0.030273208394646645,
-0.006983936298638582,
-0.10730884224176407,
-0.015294178389012814,
-0.10492882132530212,
0.0037515517324209213,
0.05391702428460121,
0.0023886437993496656,
-0.08919437229633331,
-0.030523426830768585,
-0.1463364213705063,
-0.010338874533772469,
0.005879128817468882,
-0.1927213966846466,
0.06569322198629379,
-0.08643299341201782,
-0.013886669650673866,
0.3700264096260071,
-0.008129042573273182,
0.026402156800031662,
-0.03378155082464218,
0.1124914288520813,
0.12161651253700256,
-0.052008114755153656,
0.08302010595798492,
-0.041282232850790024,
0.13465602695941925,
-0.013897930271923542,
0.06369226425886154,
-0.11748974770307541,
-0.03404931724071503,
-0.18688686192035675,
-0.02657468616962433,
-0.10375610738992691,
-0.1347612589597702,
-0.015288840048015118,
0.11645490676164627,
0.09240831434726715,
-0.0775250792503357,
0.011285712942481041,
-0.06618109345436096,
-0.08757441490888596,
-0.18155816197395325,
0.10709681361913681,
-0.09936808794736862,
0.07216040045022964,
0.02379773184657097,
0.08403737843036652,
0.04387076571583748,
0.10718141496181488,
0.06889081746339798,
0.05305640026926994,
0.05772682651877403,
-0.21592295169830322,
0.08033384382724762,
0.0028461324982345104,
0.07861216366291046,
-0.006800343748182058,
0.14727117121219635,
0.16865427792072296,
0.009691774845123291,
-0.12756898999214172,
-0.085562564432621,
-0.0057121324352920055,
-0.0867113396525383,
-0.03722056373953819,
-0.019259026274085045,
0.0980563834309578,
0.1511373370885849,
0.06205928325653076,
0.1106947660446167,
-0.00575909111648798,
0.04328217729926109,
-0.05151605233550072,
-0.12654606997966766,
-0.12851497530937195,
-0.07656870782375336,
-0.166787251830101,
0.1043538749217987,
-0.00989612564444542,
-0.02882150001823902,
-0.12149093300104141,
-0.06215808540582657,
0.08142785727977753,
0.0826544314622879,
0.04346054047346115,
-0.10797202587127686,
0.18202421069145203,
-0.06646022945642471,
0.01679445058107376,
0.008287237957119942,
-0.03848123177886009,
-0.06664561480283737,
-0.1313120722770691,
-0.0011848009889945388,
-0.012361343950033188,
0.04837504029273987,
0.08950509876012802,
0.035636402666568756,
0.018988842144608498,
0.04324842244386673,
-0.03662032634019852,
-0.15987953543663025,
-0.0712018683552742,
0.0863223746418953,
-0.09358374029397964,
0.14736934006214142,
0.0924542248249054,
0.13113558292388916,
-0.04703695699572563,
0.17691698670387268,
-0.0830325186252594,
-0.2519157826900482,
-0.11421836167573929,
0.03903742879629135,
0.020491521805524826,
-0.04226653277873993,
-0.0981736108660698,
-0.10878932476043701,
-0.12295703589916229,
0.08168741315603256,
-0.09675582498311996,
0.044845663011074066,
-0.01496546808630228,
0.20173776149749756,
0.07808105647563934,
-0.01953035406768322,
0.00831172801554203,
0.04829605296254158,
0.08933765441179276,
-0.07424498349428177,
-0.021509133279323578,
0.024255000054836273,
-0.11100251972675323,
0.03847908228635788,
0.06039221212267876,
0.07533787190914154,
0.026834310963749886,
0.0005098410183563828,
-0.1490926444530487,
-0.17067663371562958,
0.04129953682422638,
0.030603377148509026,
-0.031038928776979446,
-0.005277802236378193,
-0.03432783856987953,
-0.08606071025133133,
0.11532051116228104,
0.061748284846544266,
0.05552760511636734,
0.21925029158592224,
0.04255823791027069,
-0.09368418157100677,
0.18673352897167206,
0.10009943693876266,
-0.16462232172489166,
0.0008473757188767195,
0.06814371049404144,
-0.12058647722005844,
0.2845298945903778,
0.21399566531181335,
0.032858021557331085,
-0.002508750418201089,
0.3165559768676758,
0.08634225279092789,
0.04243060201406479,
-0.07707613706588745,
0.027309736236929893,
-0.06376909464597702,
-0.017036914825439453,
-0.049527253955602646,
-0.11086878180503845,
0.11759304255247116,
0.15580299496650696,
0.007348557934165001,
-0.17411324381828308,
-0.06690635532140732,
-0.16036097705364227,
-0.1053331047296524,
0.004069289658218622,
-0.13247065246105194,
0.09213665872812271,
0.0008669410599395633,
-0.16585193574428558,
0.09588375687599182,
0.12316694855690002,
-0.08879195898771286,
0.11471087485551834,
0.15426936745643616,
-0.06655822694301605,
0.10427068918943405,
-0.11959905922412872,
0.10206174105405807,
-0.012956175953149796,
-0.1380554586648941,
-0.040761422365903854,
-0.013808178715407848,
0.09390200674533844,
-0.013128431513905525,
-0.027912253513932228,
-0.16981451213359833,
-0.07892324775457382,
-0.17165401577949524,
-0.013906757347285748,
-0.032481398433446884,
-0.05382116138935089,
-0.2413351982831955,
0.06041209027171135,
-0.08692584931850433,
0.05114952102303505,
0.06841486692428589,
-0.2510140836238861,
0.016578638926148415,
0.13951480388641357,
0.02792837843298912,
0.13635672628879547,
0.08138438314199448,
-0.09557757526636124,
-0.04450364410877228,
-0.16068239510059357,
-0.23762266337871552,
0.21366751194000244,
-0.01700662449002266,
0.10452808439731598,
0.03765912353992462,
0.08152742683887482,
-0.1192934587597847,
-0.05461488291621208,
-0.12310107052326202,
-0.06554288417100906,
-0.06250771880149841,
-0.08794790506362915,
-0.056948378682136536,
-0.06308116763830185,
-0.016783975064754486,
-0.09600656479597092,
-0.1300215870141983,
-0.06842893362045288,
-0.048913098871707916,
-0.19641868770122528,
-0.12699489295482635,
0.24660928547382355,
-0.02469702810049057,
-0.04028497263789177,
0.07394114881753922,
-0.13896195590496063,
-0.01725727692246437,
0.14612515270709991,
-0.0611565075814724,
0.09703762829303741,
-0.0836445540189743,
0.13639949262142181,
0.08030498772859573,
-0.006258673034608364,
0.09356720745563507,
-0.04914176091551781,
-0.1481751799583435,
-0.07099045068025589,
-0.04443032294511795,
-0.098101906478405,
0.023502666503190994,
0.01059875637292862,
0.031836193054914474,
0.10386065393686295,
0.06130024418234825,
0.19637185335159302,
-0.017106208950281143,
-0.1400163173675537,
0.13615663349628448,
0.16564270853996277,
0.13535264134407043,
0.15443077683448792,
-0.009295879863202572,
0.03353780880570412,
-0.07902603596448898,
-0.0976196750998497,
-0.1354207545518875,
0.09270571172237396,
-0.05365854501724243,
-0.09385526925325394,
-0.03443673998117447,
-0.007319808006286621,
-0.037600062787532806,
0.06356047838926315,
-0.23680347204208374,
-0.020842967554926872,
0.1572353094816208,
0.11598751693964005,
-0.10700228065252304,
0.04398002102971077,
0.0025501379277557135,
-0.24505943059921265,
0.20822934806346893,
0.0734889879822731,
0.09815211594104767,
0.07706009596586227,
-0.006760312709957361,
-0.047988954931497574,
-0.014846852980554104,
0.16659460961818695,
-0.051565028727054596,
0.04474901035428047,
-0.03689020127058029,
-0.06748530268669128,
0.12101813405752182,
-0.03052056021988392,
0.12158810347318649,
0.12054064869880676,
-0.03854360431432724,
0.07903388887643814,
-0.16879187524318695,
0.1956908404827118,
0.006126226857304573,
0.05765226110816002,
-0.05009958893060684,
0.14754502475261688,
-0.002094108844175935,
0.08334485441446304,
0.007640700787305832,
-0.12077244371175766,
0.0027013488579541445,
0.02377532608807087,
-0.08339565992355347,
0.011532631702721119,
0.0021635533776134253,
-0.143156036734581,
-0.036570530384778976,
0.02005346119403839,
0.0006771121989004314,
-0.009949413128197193,
-0.05812530219554901,
0.03106834925711155,
0.03880912810564041,
0.10450296103954315,
0.01812809705734253,
0.03776940330862999,
0.1815865933895111,
0.11816074699163437,
-0.18278412520885468,
0.2698885500431061,
-0.1489759236574173,
-0.12093489617109299,
-0.021201174706220627,
-0.0617341473698616,
0.0013765470357611775,
-0.08651690185070038,
-0.06404274702072144,
-0.04075879603624344,
-0.03633055090904236,
-0.06587877124547958,
-0.0028109007980674505,
0.05555441975593567,
-0.08024745434522629,
-0.03287750855088234,
-0.06278819590806961,
-0.13228832185268402,
-0.12469121068716049,
0.05568811297416687,
0.020405113697052002,
0.20825926959514618,
-0.2368539273738861,
0.06323791295289993,
0.08355829119682312,
-0.09552466124296188,
-0.037371981889009476,
0.15302404761314392,
-0.04841675981879234,
-0.05764023959636688,
0.07626821845769882,
0.11461594700813293,
-0.2211327999830246,
-0.006128213368356228,
0.09197980910539627,
-0.1039607897400856,
0.017012422904372215,
-0.10628642141819,
0.08780178427696228,
0.08706974983215332,
0.047561079263687134,
0.0013191071338951588,
0.00039218858000822365,
0.09723715484142303,
-0.05992227792739868,
0.06788372993469238,
0.04987521097064018,
0.11124272644519806,
-0.10868579149246216,
0.019453883171081543,
0.2598443329334259,
0.11640520393848419,
-0.06884509325027466,
-0.00540251424536109,
-0.00013205698633100837,
0.10896280407905579,
-0.029804203659296036,
0.1885247677564621,
-0.050328973680734634,
0.010806047357618809,
-0.032399725168943405,
0.007306366227567196,
-0.022102560847997665,
0.0011273836717009544,
0.04232282191514969,
0.03878750652074814,
0.011743408627808094,
0.04096268489956856,
0.09185104072093964,
0.01519282627850771,
-0.18508121371269226,
0.022580226883292198,
-0.027370693162083626,
-0.06069958582520485,
-0.011224168352782726,
0.14447015523910522,
0.06738100945949554,
-0.09396559000015259,
-0.06664951890707016,
-0.0770559310913086,
-0.15527769923210144,
-0.0642194151878357,
-0.034041628241539,
0.056575264781713486,
-0.06117571145296097,
0.11382661014795303,
0.08511513471603394,
0.02756430394947529,
-0.004494030959904194,
0.18674230575561523,
-0.061990149319171906,
-0.11666084080934525,
-0.028150983154773712,
0.25570204854011536,
0.1075768768787384,
0.10335784405469894,
0.17433710396289825,
0.01174128707498312,
-0.05239412561058998,
-0.029427140951156616,
-0.009132434614002705,
0.047720421105623245,
-0.07533171772956848,
0.03647061437368393,
-0.17137029767036438,
-0.0704423263669014,
-0.09949290007352829,
-0.13399162888526917,
-0.034699954092502594,
0.020700644701719284,
0.05727986991405487,
0.08109558373689651,
0.03605480492115021,
-0.07611917704343796,
-0.12429281324148178,
-0.05576596409082413,
0.15155164897441864,
-0.06797008961439133,
0.038825780153274536,
-0.02128760702908039,
-2.7784166677659965e-32,
-0.08645705133676529,
-0.10801505297422409,
-0.04941491410136223,
-0.15187449753284454,
-0.06592319160699844,
0.06922044605016708,
-0.03448496386408806,
-0.04543285071849823,
0.013844688422977924,
-0.10842426866292953,
-0.06547056138515472,
-0.008668634109199047,
0.0880192443728447,
-0.027701402083039284,
-0.0820549726486206,
-0.1740548014640808,
-0.008416405878961086,
0.036755066365003586,
0.004605102352797985,
0.04587622731924057,
0.1452103555202484,
0.15997503697872162,
0.00953128281980753,
-0.03291209414601326,
-0.1000237986445427,
-0.07458632439374924,
0.028113605454564095,
-0.2761113941669464,
-0.17720498144626617,
0.02891816757619381,
-0.04987821355462074,
0.19333460927009583,
-0.01742701232433319,
-0.1847825050354004,
-0.21359588205814362,
-0.09535478800535202,
0.007517916616052389,
0.1163487359881401,
-0.04562041535973549,
-0.046506211161613464,
0.06497620046138763,
0.02262524701654911,
0.09788304567337036,
-0.05002714693546295,
-0.003977897111326456,
0.05735181272029877,
0.03253835067152977,
-0.06469934433698654,
-0.05819805711507797,
-0.110890232026577,
0.14564859867095947,
0.09837774187326431,
0.07844997197389603,
0.02543960139155388,
0.0026751053519546986,
-0.12612628936767578,
0.06220962107181549,
0.050127800554037094,
-0.2815897464752197,
0.06857410818338394,
0.06448601186275482,
0.11209233105182648,
0.14473138749599457,
0.024262964725494385,
0.12015621364116669,
-0.0988367348909378,
0.2911221981048584,
0.06220610812306404,
0.07155481725931168,
0.027467483654618263,
0.12318367511034012,
0.014420934952795506,
-0.08363252878189087,
-0.10177143663167953,
-0.007424395531415939,
-0.06754600256681442,
0.06767026335000992,
-0.14642395079135895,
-0.09551562368869781,
0.06328338384628296,
0.017168285325169563,
-0.08146262913942337,
-0.002899330807849765,
-0.10885690152645111,
-0.1350807547569275,
0.1045922338962555,
-0.05555002763867378,
0.15438221395015717,
-0.18300674855709076,
-0.002690815832465887,
0.08548226207494736,
0.16523292660713196,
-0.03754005953669548,
0.004579850472509861,
0.022557925432920456,
-0.0030419593676924706,
-0.09596403688192368,
0.14769122004508972,
-0.034596286714076996,
0.13805131614208221,
0.014573222026228905,
-0.09722700715065002,
0.09814558923244476,
-0.08360157907009125,
0.05029011145234108,
0.06502773612737656,
0.028172938153147697,
-0.07795627415180206,
-0.006578086409717798,
-0.05927102640271187,
-0.12159945070743561,
-0.025928117334842682,
0.10911445319652557,
0.030614744871854782,
0.13326914608478546,
0.06208336353302002,
-0.05930766463279724,
0.07211072742938995,
0.09948673099279404,
0.19921322166919708,
0.07331148535013199,
-0.07862779498100281,
0.07399360090494156,
0.08179880678653717,
-0.035854265093803406,
0.11265461146831512,
-0.12952779233455658,
-0.027334539219737053,
0.25385239720344543,
-0.024260221049189568,
0.017408935353159904,
-0.028023842722177505,
7.822505381227529e-7,
-0.09777665138244629,
0.03241873160004616,
0.1356675922870636,
-0.02075055241584778,
-0.03277641534805298,
0.07228635996580124,
-0.19405122101306915,
0.1327873170375824,
-0.15827438235282898,
0.11030355840921402,
0.009255090728402138,
-0.045639652758836746,
0.14588989317417145,
-0.05590933933854103,
0.0939173772931099,
-0.14431995153427124,
-0.2207036316394806,
-0.022804012522101402,
-0.07775133103132248,
-0.04734194278717041,
-0.12558181583881378,
0.09658113867044449,
0.07868316769599915,
-0.0505913682281971,
0.05996079370379448,
0.022257154807448387,
0.06971409171819687,
-0.045370809733867645,
-0.09910252690315247,
-0.1064479723572731,
-0.026716532185673714,
0.09456247091293335,
0.04666728898882866,
0.062397148460149765,
0.02744729444384575,
-0.013644921593368053,
-0.08898432552814484,
-0.045234862715005875,
0.21267767250537872,
-0.07185966521501541,
0.10139929503202438,
0.07546935975551605,
-0.10997995734214783,
0.12391551584005356,
0.13984647393226624,
0.033673807978630066,
-0.07196753472089767,
-0.07466338574886322,
0.05221279338002205,
0.041591912508010864,
0.09898945689201355,
0.07085201889276505,
0.07395651936531067,
0.3183554410934448,
-0.0013392335968092084,
-0.056994810700416565,
0.08525087684392929,
-0.14210611581802368,
0.07642737030982971,
-0.07275845110416412,
-0.19676046073436737,
-0.1247529536485672,
-0.008821901865303516,
-0.11058960109949112,
0.04538906365633011,
-0.10324126482009888,
-0.08804897218942642,
1.4870916153145007e-34,
-0.06311310827732086,
0.04596533626317978,
-0.0019192732870578766,
-0.14731177687644958,
0.17585252225399017,
-0.11912529170513153,
0.1686815619468689,
0.0739729255437851,
0.005945748649537563,
-0.23433923721313477,
-0.12201263755559921
] |
https://github.com/huggingface/datasets/issues/2415 | Cached dataset not loaded | > If `prepare_dataset` is always executed, maybe this is because your `processor` has a different hash each time you want to execute it.
Yes I think that was the issue.
For the hash of the function:
* does it consider just the name or the actual code of the function
* does it consider variables that are not passed explicitly as parameters to the functions (such as the processor here) | ## Describe the bug
I have a large dataset (common_voice, english) where I use several map and filter functions.
Sometimes my cached datasets after specific functions are not loaded.
I always use the same arguments, same functions, no seed…
## Steps to reproduce the bug
```python
def filter_by_duration(batch):
return (
batch["duration"] <= 10
and batch["duration"] >= 1
and len(batch["target_text"]) > 5
)
def prepare_dataset(batch):
batch["input_values"] = processor(
batch["speech"], sampling_rate=batch["sampling_rate"][0]
).input_values
with processor.as_target_processor():
batch["labels"] = processor(batch["target_text"]).input_ids
return batch
train_dataset = train_dataset.filter(
filter_by_duration,
remove_columns=["duration"],
num_proc=data_args.preprocessing_num_workers,
)
# PROBLEM HERE -> below function is reexecuted and cache is not loaded
train_dataset = train_dataset.map(
prepare_dataset,
remove_columns=train_dataset.column_names,
batch_size=training_args.per_device_train_batch_size,
batched=True,
num_proc=data_args.preprocessing_num_workers,
)
# Later in script
set_caching_enabled(False)
# apply map on trained model to eval/test sets
```
## Expected results
The cached dataset should always be reloaded.
## Actual results
The function is reexecuted.
I have access to cached files `cache-xxxxx.arrow`.
Is there a way I can somehow load manually 2 versions and see how the hash was created for debug purposes (to know if it's an issue with dataset or function)?
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.8.0-45-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No | 70 | Cached dataset not loaded
## Describe the bug
I have a large dataset (common_voice, english) where I use several map and filter functions.
Sometimes my cached datasets after specific functions are not loaded.
I always use the same arguments, same functions, no seed…
## Steps to reproduce the bug
```python
def filter_by_duration(batch):
return (
batch["duration"] <= 10
and batch["duration"] >= 1
and len(batch["target_text"]) > 5
)
def prepare_dataset(batch):
batch["input_values"] = processor(
batch["speech"], sampling_rate=batch["sampling_rate"][0]
).input_values
with processor.as_target_processor():
batch["labels"] = processor(batch["target_text"]).input_ids
return batch
train_dataset = train_dataset.filter(
filter_by_duration,
remove_columns=["duration"],
num_proc=data_args.preprocessing_num_workers,
)
# PROBLEM HERE -> below function is reexecuted and cache is not loaded
train_dataset = train_dataset.map(
prepare_dataset,
remove_columns=train_dataset.column_names,
batch_size=training_args.per_device_train_batch_size,
batched=True,
num_proc=data_args.preprocessing_num_workers,
)
# Later in script
set_caching_enabled(False)
# apply map on trained model to eval/test sets
```
## Expected results
The cached dataset should always be reloaded.
## Actual results
The function is reexecuted.
I have access to cached files `cache-xxxxx.arrow`.
Is there a way I can somehow load manually 2 versions and see how the hash was created for debug purposes (to know if it's an issue with dataset or function)?
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.8.0-45-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No
> If `prepare_dataset` is always executed, maybe this is because your `processor` has a different hash each time you want to execute it.
Yes I think that was the issue.
For the hash of the function:
* does it consider just the name or the actual code of the function
* does it consider variables that are not passed explicitly as parameters to the functions (such as the processor here) | [
0.06598664075136185,
0.07073422521352768,
-0.07924076169729233,
0.041614748537540436,
0.14760254323482513,
-0.016254335641860962,
0.03878219053149223,
0.013969160616397858,
0.02666826918721199,
0.1685267686843872,
-0.04981968551874161,
-0.06368454545736313,
-0.0027643663343042135,
-0.12920068204402924,
-0.03972678259015083,
0.1537090539932251,
-0.09064516425132751,
0.07632946223020554,
-0.11220147460699081,
-0.09614545851945877,
-0.08287360519170761,
0.11440665274858475,
0.23202280700206757,
0.1041187047958374,
-0.12595272064208984,
0.05789751932024956,
-0.016219288110733032,
0.056376319378614426,
0.02858997881412506,
0.006009605713188648,
0.02810598909854889,
-0.09782686829566956,
-0.03622860461473465,
0.1506812572479248,
0.000006210786523297429,
0.07089520245790482,
0.1462222784757614,
0.022805364802479744,
-0.16014812886714935,
0.005166585557162762,
0.14527073502540588,
0.0940941646695137,
-0.05077243968844414,
0.039874255657196045,
-0.061015885323286057,
-0.030542617663741112,
0.049668096005916595,
-0.14896181225776672,
0.09491395205259323,
-0.032340072095394135,
0.04163441061973572,
-0.10405821353197098,
-0.1999049335718155,
-0.07919023185968399,
0.050121814012527466,
-0.017406368628144264,
-0.012241966091096401,
-0.03461913764476776,
-0.2791888117790222,
-0.08767104893922806,
0.11561822146177292,
0.023619620129466057,
0.06867585331201553,
0.06252383440732956,
-0.06321578472852707,
0.043186090886592865,
-0.06147357448935509,
-0.029714705422520638,
0.07410728931427002,
0.15764181315898895,
-0.01433287002146244,
0.028269074857234955,
-0.08882903307676315,
0.08058410882949829,
-0.16062888503074646,
-0.12092258781194687,
0.0007084496319293976,
0.01017238013446331,
-0.02207271382212639,
0.002192932879552245,
-0.034137748181819916,
0.050592001527547836,
0.029751507565379143,
0.017747826874256134,
-0.13047568500041962,
-0.06852149963378906,
-0.01836053840816021,
0.016741463914513588,
-0.11736375838518143,
-0.10703131556510925,
0.05640830472111702,
0.003270081477239728,
-0.0310414656996727,
-0.0672849714756012,
0.130840003490448,
0.22213374078273773,
0.018519962206482887,
-0.030273208394646645,
-0.006983936298638582,
-0.10730884224176407,
-0.015294178389012814,
-0.10492882132530212,
0.0037515517324209213,
0.05391702428460121,
0.0023886437993496656,
-0.08919437229633331,
-0.030523426830768585,
-0.1463364213705063,
-0.010338874533772469,
0.005879128817468882,
-0.1927213966846466,
0.06569322198629379,
-0.08643299341201782,
-0.013886669650673866,
0.3700264096260071,
-0.008129042573273182,
0.026402156800031662,
-0.03378155082464218,
0.1124914288520813,
0.12161651253700256,
-0.052008114755153656,
0.08302010595798492,
-0.041282232850790024,
0.13465602695941925,
-0.013897930271923542,
0.06369226425886154,
-0.11748974770307541,
-0.03404931724071503,
-0.18688686192035675,
-0.02657468616962433,
-0.10375610738992691,
-0.1347612589597702,
-0.015288840048015118,
0.11645490676164627,
0.09240831434726715,
-0.0775250792503357,
0.011285712942481041,
-0.06618109345436096,
-0.08757441490888596,
-0.18155816197395325,
0.10709681361913681,
-0.09936808794736862,
0.07216040045022964,
0.02379773184657097,
0.08403737843036652,
0.04387076571583748,
0.10718141496181488,
0.06889081746339798,
0.05305640026926994,
0.05772682651877403,
-0.21592295169830322,
0.08033384382724762,
0.0028461324982345104,
0.07861216366291046,
-0.006800343748182058,
0.14727117121219635,
0.16865427792072296,
0.009691774845123291,
-0.12756898999214172,
-0.085562564432621,
-0.0057121324352920055,
-0.0867113396525383,
-0.03722056373953819,
-0.019259026274085045,
0.0980563834309578,
0.1511373370885849,
0.06205928325653076,
0.1106947660446167,
-0.00575909111648798,
0.04328217729926109,
-0.05151605233550072,
-0.12654606997966766,
-0.12851497530937195,
-0.07656870782375336,
-0.166787251830101,
0.1043538749217987,
-0.00989612564444542,
-0.02882150001823902,
-0.12149093300104141,
-0.06215808540582657,
0.08142785727977753,
0.0826544314622879,
0.04346054047346115,
-0.10797202587127686,
0.18202421069145203,
-0.06646022945642471,
0.01679445058107376,
0.008287237957119942,
-0.03848123177886009,
-0.06664561480283737,
-0.1313120722770691,
-0.0011848009889945388,
-0.012361343950033188,
0.04837504029273987,
0.08950509876012802,
0.035636402666568756,
0.018988842144608498,
0.04324842244386673,
-0.03662032634019852,
-0.15987953543663025,
-0.0712018683552742,
0.0863223746418953,
-0.09358374029397964,
0.14736934006214142,
0.0924542248249054,
0.13113558292388916,
-0.04703695699572563,
0.17691698670387268,
-0.0830325186252594,
-0.2519157826900482,
-0.11421836167573929,
0.03903742879629135,
0.020491521805524826,
-0.04226653277873993,
-0.0981736108660698,
-0.10878932476043701,
-0.12295703589916229,
0.08168741315603256,
-0.09675582498311996,
0.044845663011074066,
-0.01496546808630228,
0.20173776149749756,
0.07808105647563934,
-0.01953035406768322,
0.00831172801554203,
0.04829605296254158,
0.08933765441179276,
-0.07424498349428177,
-0.021509133279323578,
0.024255000054836273,
-0.11100251972675323,
0.03847908228635788,
0.06039221212267876,
0.07533787190914154,
0.026834310963749886,
0.0005098410183563828,
-0.1490926444530487,
-0.17067663371562958,
0.04129953682422638,
0.030603377148509026,
-0.031038928776979446,
-0.005277802236378193,
-0.03432783856987953,
-0.08606071025133133,
0.11532051116228104,
0.061748284846544266,
0.05552760511636734,
0.21925029158592224,
0.04255823791027069,
-0.09368418157100677,
0.18673352897167206,
0.10009943693876266,
-0.16462232172489166,
0.0008473757188767195,
0.06814371049404144,
-0.12058647722005844,
0.2845298945903778,
0.21399566531181335,
0.032858021557331085,
-0.002508750418201089,
0.3165559768676758,
0.08634225279092789,
0.04243060201406479,
-0.07707613706588745,
0.027309736236929893,
-0.06376909464597702,
-0.017036914825439453,
-0.049527253955602646,
-0.11086878180503845,
0.11759304255247116,
0.15580299496650696,
0.007348557934165001,
-0.17411324381828308,
-0.06690635532140732,
-0.16036097705364227,
-0.1053331047296524,
0.004069289658218622,
-0.13247065246105194,
0.09213665872812271,
0.0008669410599395633,
-0.16585193574428558,
0.09588375687599182,
0.12316694855690002,
-0.08879195898771286,
0.11471087485551834,
0.15426936745643616,
-0.06655822694301605,
0.10427068918943405,
-0.11959905922412872,
0.10206174105405807,
-0.012956175953149796,
-0.1380554586648941,
-0.040761422365903854,
-0.013808178715407848,
0.09390200674533844,
-0.013128431513905525,
-0.027912253513932228,
-0.16981451213359833,
-0.07892324775457382,
-0.17165401577949524,
-0.013906757347285748,
-0.032481398433446884,
-0.05382116138935089,
-0.2413351982831955,
0.06041209027171135,
-0.08692584931850433,
0.05114952102303505,
0.06841486692428589,
-0.2510140836238861,
0.016578638926148415,
0.13951480388641357,
0.02792837843298912,
0.13635672628879547,
0.08138438314199448,
-0.09557757526636124,
-0.04450364410877228,
-0.16068239510059357,
-0.23762266337871552,
0.21366751194000244,
-0.01700662449002266,
0.10452808439731598,
0.03765912353992462,
0.08152742683887482,
-0.1192934587597847,
-0.05461488291621208,
-0.12310107052326202,
-0.06554288417100906,
-0.06250771880149841,
-0.08794790506362915,
-0.056948378682136536,
-0.06308116763830185,
-0.016783975064754486,
-0.09600656479597092,
-0.1300215870141983,
-0.06842893362045288,
-0.048913098871707916,
-0.19641868770122528,
-0.12699489295482635,
0.24660928547382355,
-0.02469702810049057,
-0.04028497263789177,
0.07394114881753922,
-0.13896195590496063,
-0.01725727692246437,
0.14612515270709991,
-0.0611565075814724,
0.09703762829303741,
-0.0836445540189743,
0.13639949262142181,
0.08030498772859573,
-0.006258673034608364,
0.09356720745563507,
-0.04914176091551781,
-0.1481751799583435,
-0.07099045068025589,
-0.04443032294511795,
-0.098101906478405,
0.023502666503190994,
0.01059875637292862,
0.031836193054914474,
0.10386065393686295,
0.06130024418234825,
0.19637185335159302,
-0.017106208950281143,
-0.1400163173675537,
0.13615663349628448,
0.16564270853996277,
0.13535264134407043,
0.15443077683448792,
-0.009295879863202572,
0.03353780880570412,
-0.07902603596448898,
-0.0976196750998497,
-0.1354207545518875,
0.09270571172237396,
-0.05365854501724243,
-0.09385526925325394,
-0.03443673998117447,
-0.007319808006286621,
-0.037600062787532806,
0.06356047838926315,
-0.23680347204208374,
-0.020842967554926872,
0.1572353094816208,
0.11598751693964005,
-0.10700228065252304,
0.04398002102971077,
0.0025501379277557135,
-0.24505943059921265,
0.20822934806346893,
0.0734889879822731,
0.09815211594104767,
0.07706009596586227,
-0.006760312709957361,
-0.047988954931497574,
-0.014846852980554104,
0.16659460961818695,
-0.051565028727054596,
0.04474901035428047,
-0.03689020127058029,
-0.06748530268669128,
0.12101813405752182,
-0.03052056021988392,
0.12158810347318649,
0.12054064869880676,
-0.03854360431432724,
0.07903388887643814,
-0.16879187524318695,
0.1956908404827118,
0.006126226857304573,
0.05765226110816002,
-0.05009958893060684,
0.14754502475261688,
-0.002094108844175935,
0.08334485441446304,
0.007640700787305832,
-0.12077244371175766,
0.0027013488579541445,
0.02377532608807087,
-0.08339565992355347,
0.011532631702721119,
0.0021635533776134253,
-0.143156036734581,
-0.036570530384778976,
0.02005346119403839,
0.0006771121989004314,
-0.009949413128197193,
-0.05812530219554901,
0.03106834925711155,
0.03880912810564041,
0.10450296103954315,
0.01812809705734253,
0.03776940330862999,
0.1815865933895111,
0.11816074699163437,
-0.18278412520885468,
0.2698885500431061,
-0.1489759236574173,
-0.12093489617109299,
-0.021201174706220627,
-0.0617341473698616,
0.0013765470357611775,
-0.08651690185070038,
-0.06404274702072144,
-0.04075879603624344,
-0.03633055090904236,
-0.06587877124547958,
-0.0028109007980674505,
0.05555441975593567,
-0.08024745434522629,
-0.03287750855088234,
-0.06278819590806961,
-0.13228832185268402,
-0.12469121068716049,
0.05568811297416687,
0.020405113697052002,
0.20825926959514618,
-0.2368539273738861,
0.06323791295289993,
0.08355829119682312,
-0.09552466124296188,
-0.037371981889009476,
0.15302404761314392,
-0.04841675981879234,
-0.05764023959636688,
0.07626821845769882,
0.11461594700813293,
-0.2211327999830246,
-0.006128213368356228,
0.09197980910539627,
-0.1039607897400856,
0.017012422904372215,
-0.10628642141819,
0.08780178427696228,
0.08706974983215332,
0.047561079263687134,
0.0013191071338951588,
0.00039218858000822365,
0.09723715484142303,
-0.05992227792739868,
0.06788372993469238,
0.04987521097064018,
0.11124272644519806,
-0.10868579149246216,
0.019453883171081543,
0.2598443329334259,
0.11640520393848419,
-0.06884509325027466,
-0.00540251424536109,
-0.00013205698633100837,
0.10896280407905579,
-0.029804203659296036,
0.1885247677564621,
-0.050328973680734634,
0.010806047357618809,
-0.032399725168943405,
0.007306366227567196,
-0.022102560847997665,
0.0011273836717009544,
0.04232282191514969,
0.03878750652074814,
0.011743408627808094,
0.04096268489956856,
0.09185104072093964,
0.01519282627850771,
-0.18508121371269226,
0.022580226883292198,
-0.027370693162083626,
-0.06069958582520485,
-0.011224168352782726,
0.14447015523910522,
0.06738100945949554,
-0.09396559000015259,
-0.06664951890707016,
-0.0770559310913086,
-0.15527769923210144,
-0.0642194151878357,
-0.034041628241539,
0.056575264781713486,
-0.06117571145296097,
0.11382661014795303,
0.08511513471603394,
0.02756430394947529,
-0.004494030959904194,
0.18674230575561523,
-0.061990149319171906,
-0.11666084080934525,
-0.028150983154773712,
0.25570204854011536,
0.1075768768787384,
0.10335784405469894,
0.17433710396289825,
0.01174128707498312,
-0.05239412561058998,
-0.029427140951156616,
-0.009132434614002705,
0.047720421105623245,
-0.07533171772956848,
0.03647061437368393,
-0.17137029767036438,
-0.0704423263669014,
-0.09949290007352829,
-0.13399162888526917,
-0.034699954092502594,
0.020700644701719284,
0.05727986991405487,
0.08109558373689651,
0.03605480492115021,
-0.07611917704343796,
-0.12429281324148178,
-0.05576596409082413,
0.15155164897441864,
-0.06797008961439133,
0.038825780153274536,
-0.02128760702908039,
-2.7784166677659965e-32,
-0.08645705133676529,
-0.10801505297422409,
-0.04941491410136223,
-0.15187449753284454,
-0.06592319160699844,
0.06922044605016708,
-0.03448496386408806,
-0.04543285071849823,
0.013844688422977924,
-0.10842426866292953,
-0.06547056138515472,
-0.008668634109199047,
0.0880192443728447,
-0.027701402083039284,
-0.0820549726486206,
-0.1740548014640808,
-0.008416405878961086,
0.036755066365003586,
0.004605102352797985,
0.04587622731924057,
0.1452103555202484,
0.15997503697872162,
0.00953128281980753,
-0.03291209414601326,
-0.1000237986445427,
-0.07458632439374924,
0.028113605454564095,
-0.2761113941669464,
-0.17720498144626617,
0.02891816757619381,
-0.04987821355462074,
0.19333460927009583,
-0.01742701232433319,
-0.1847825050354004,
-0.21359588205814362,
-0.09535478800535202,
0.007517916616052389,
0.1163487359881401,
-0.04562041535973549,
-0.046506211161613464,
0.06497620046138763,
0.02262524701654911,
0.09788304567337036,
-0.05002714693546295,
-0.003977897111326456,
0.05735181272029877,
0.03253835067152977,
-0.06469934433698654,
-0.05819805711507797,
-0.110890232026577,
0.14564859867095947,
0.09837774187326431,
0.07844997197389603,
0.02543960139155388,
0.0026751053519546986,
-0.12612628936767578,
0.06220962107181549,
0.050127800554037094,
-0.2815897464752197,
0.06857410818338394,
0.06448601186275482,
0.11209233105182648,
0.14473138749599457,
0.024262964725494385,
0.12015621364116669,
-0.0988367348909378,
0.2911221981048584,
0.06220610812306404,
0.07155481725931168,
0.027467483654618263,
0.12318367511034012,
0.014420934952795506,
-0.08363252878189087,
-0.10177143663167953,
-0.007424395531415939,
-0.06754600256681442,
0.06767026335000992,
-0.14642395079135895,
-0.09551562368869781,
0.06328338384628296,
0.017168285325169563,
-0.08146262913942337,
-0.002899330807849765,
-0.10885690152645111,
-0.1350807547569275,
0.1045922338962555,
-0.05555002763867378,
0.15438221395015717,
-0.18300674855709076,
-0.002690815832465887,
0.08548226207494736,
0.16523292660713196,
-0.03754005953669548,
0.004579850472509861,
0.022557925432920456,
-0.0030419593676924706,
-0.09596403688192368,
0.14769122004508972,
-0.034596286714076996,
0.13805131614208221,
0.014573222026228905,
-0.09722700715065002,
0.09814558923244476,
-0.08360157907009125,
0.05029011145234108,
0.06502773612737656,
0.028172938153147697,
-0.07795627415180206,
-0.006578086409717798,
-0.05927102640271187,
-0.12159945070743561,
-0.025928117334842682,
0.10911445319652557,
0.030614744871854782,
0.13326914608478546,
0.06208336353302002,
-0.05930766463279724,
0.07211072742938995,
0.09948673099279404,
0.19921322166919708,
0.07331148535013199,
-0.07862779498100281,
0.07399360090494156,
0.08179880678653717,
-0.035854265093803406,
0.11265461146831512,
-0.12952779233455658,
-0.027334539219737053,
0.25385239720344543,
-0.024260221049189568,
0.017408935353159904,
-0.028023842722177505,
7.822505381227529e-7,
-0.09777665138244629,
0.03241873160004616,
0.1356675922870636,
-0.02075055241584778,
-0.03277641534805298,
0.07228635996580124,
-0.19405122101306915,
0.1327873170375824,
-0.15827438235282898,
0.11030355840921402,
0.009255090728402138,
-0.045639652758836746,
0.14588989317417145,
-0.05590933933854103,
0.0939173772931099,
-0.14431995153427124,
-0.2207036316394806,
-0.022804012522101402,
-0.07775133103132248,
-0.04734194278717041,
-0.12558181583881378,
0.09658113867044449,
0.07868316769599915,
-0.0505913682281971,
0.05996079370379448,
0.022257154807448387,
0.06971409171819687,
-0.045370809733867645,
-0.09910252690315247,
-0.1064479723572731,
-0.026716532185673714,
0.09456247091293335,
0.04666728898882866,
0.062397148460149765,
0.02744729444384575,
-0.013644921593368053,
-0.08898432552814484,
-0.045234862715005875,
0.21267767250537872,
-0.07185966521501541,
0.10139929503202438,
0.07546935975551605,
-0.10997995734214783,
0.12391551584005356,
0.13984647393226624,
0.033673807978630066,
-0.07196753472089767,
-0.07466338574886322,
0.05221279338002205,
0.041591912508010864,
0.09898945689201355,
0.07085201889276505,
0.07395651936531067,
0.3183554410934448,
-0.0013392335968092084,
-0.056994810700416565,
0.08525087684392929,
-0.14210611581802368,
0.07642737030982971,
-0.07275845110416412,
-0.19676046073436737,
-0.1247529536485672,
-0.008821901865303516,
-0.11058960109949112,
0.04538906365633011,
-0.10324126482009888,
-0.08804897218942642,
1.4870916153145007e-34,
-0.06311310827732086,
0.04596533626317978,
-0.0019192732870578766,
-0.14731177687644958,
0.17585252225399017,
-0.11912529170513153,
0.1686815619468689,
0.0739729255437851,
0.005945748649537563,
-0.23433923721313477,
-0.12201263755559921
] |
https://github.com/huggingface/datasets/issues/2415 | Cached dataset not loaded | > does it consider just the name or the actual code of the function
It looks at the name and the actual code and all variables such as recursively. It uses `dill` to do so, which is based on `pickle`.
Basically the hash is computed using the pickle bytes of your function (computed using `dill` to support most python objects).
> does it consider variables that are not passed explicitly as parameters to the functions (such as the processor here)
Yes it does thanks to recursive pickling. | ## Describe the bug
I have a large dataset (common_voice, english) where I use several map and filter functions.
Sometimes my cached datasets after specific functions are not loaded.
I always use the same arguments, same functions, no seed…
## Steps to reproduce the bug
```python
def filter_by_duration(batch):
return (
batch["duration"] <= 10
and batch["duration"] >= 1
and len(batch["target_text"]) > 5
)
def prepare_dataset(batch):
batch["input_values"] = processor(
batch["speech"], sampling_rate=batch["sampling_rate"][0]
).input_values
with processor.as_target_processor():
batch["labels"] = processor(batch["target_text"]).input_ids
return batch
train_dataset = train_dataset.filter(
filter_by_duration,
remove_columns=["duration"],
num_proc=data_args.preprocessing_num_workers,
)
# PROBLEM HERE -> below function is reexecuted and cache is not loaded
train_dataset = train_dataset.map(
prepare_dataset,
remove_columns=train_dataset.column_names,
batch_size=training_args.per_device_train_batch_size,
batched=True,
num_proc=data_args.preprocessing_num_workers,
)
# Later in script
set_caching_enabled(False)
# apply map on trained model to eval/test sets
```
## Expected results
The cached dataset should always be reloaded.
## Actual results
The function is reexecuted.
I have access to cached files `cache-xxxxx.arrow`.
Is there a way I can somehow load manually 2 versions and see how the hash was created for debug purposes (to know if it's an issue with dataset or function)?
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.8.0-45-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No | 87 | Cached dataset not loaded
## Describe the bug
I have a large dataset (common_voice, english) where I use several map and filter functions.
Sometimes my cached datasets after specific functions are not loaded.
I always use the same arguments, same functions, no seed…
## Steps to reproduce the bug
```python
def filter_by_duration(batch):
return (
batch["duration"] <= 10
and batch["duration"] >= 1
and len(batch["target_text"]) > 5
)
def prepare_dataset(batch):
batch["input_values"] = processor(
batch["speech"], sampling_rate=batch["sampling_rate"][0]
).input_values
with processor.as_target_processor():
batch["labels"] = processor(batch["target_text"]).input_ids
return batch
train_dataset = train_dataset.filter(
filter_by_duration,
remove_columns=["duration"],
num_proc=data_args.preprocessing_num_workers,
)
# PROBLEM HERE -> below function is reexecuted and cache is not loaded
train_dataset = train_dataset.map(
prepare_dataset,
remove_columns=train_dataset.column_names,
batch_size=training_args.per_device_train_batch_size,
batched=True,
num_proc=data_args.preprocessing_num_workers,
)
# Later in script
set_caching_enabled(False)
# apply map on trained model to eval/test sets
```
## Expected results
The cached dataset should always be reloaded.
## Actual results
The function is reexecuted.
I have access to cached files `cache-xxxxx.arrow`.
Is there a way I can somehow load manually 2 versions and see how the hash was created for debug purposes (to know if it's an issue with dataset or function)?
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Linux-5.8.0-45-generic-x86_64-with-glibc2.29
- Python version: 3.8.5
- PyTorch version (GPU?): 1.8.1+cu102 (True)
- Tensorflow version (GPU?): not installed (NA)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No
> does it consider just the name or the actual code of the function
It looks at the name and the actual code and all variables such as recursively. It uses `dill` to do so, which is based on `pickle`.
Basically the hash is computed using the pickle bytes of your function (computed using `dill` to support most python objects).
> does it consider variables that are not passed explicitly as parameters to the functions (such as the processor here)
Yes it does thanks to recursive pickling. | [
0.06598664075136185,
0.07073422521352768,
-0.07924076169729233,
0.041614748537540436,
0.14760254323482513,
-0.016254335641860962,
0.03878219053149223,
0.013969160616397858,
0.02666826918721199,
0.1685267686843872,
-0.04981968551874161,
-0.06368454545736313,
-0.0027643663343042135,
-0.12920068204402924,
-0.03972678259015083,
0.1537090539932251,
-0.09064516425132751,
0.07632946223020554,
-0.11220147460699081,
-0.09614545851945877,
-0.08287360519170761,
0.11440665274858475,
0.23202280700206757,
0.1041187047958374,
-0.12595272064208984,
0.05789751932024956,
-0.016219288110733032,
0.056376319378614426,
0.02858997881412506,
0.006009605713188648,
0.02810598909854889,
-0.09782686829566956,
-0.03622860461473465,
0.1506812572479248,
0.000006210786523297429,
0.07089520245790482,
0.1462222784757614,
0.022805364802479744,
-0.16014812886714935,
0.005166585557162762,
0.14527073502540588,
0.0940941646695137,
-0.05077243968844414,
0.039874255657196045,
-0.061015885323286057,
-0.030542617663741112,
0.049668096005916595,
-0.14896181225776672,
0.09491395205259323,
-0.032340072095394135,
0.04163441061973572,
-0.10405821353197098,
-0.1999049335718155,
-0.07919023185968399,
0.050121814012527466,
-0.017406368628144264,
-0.012241966091096401,
-0.03461913764476776,
-0.2791888117790222,
-0.08767104893922806,
0.11561822146177292,
0.023619620129466057,
0.06867585331201553,
0.06252383440732956,
-0.06321578472852707,
0.043186090886592865,
-0.06147357448935509,
-0.029714705422520638,
0.07410728931427002,
0.15764181315898895,
-0.01433287002146244,
0.028269074857234955,
-0.08882903307676315,
0.08058410882949829,
-0.16062888503074646,
-0.12092258781194687,
0.0007084496319293976,
0.01017238013446331,
-0.02207271382212639,
0.002192932879552245,
-0.034137748181819916,
0.050592001527547836,
0.029751507565379143,
0.017747826874256134,
-0.13047568500041962,
-0.06852149963378906,
-0.01836053840816021,
0.016741463914513588,
-0.11736375838518143,
-0.10703131556510925,
0.05640830472111702,
0.003270081477239728,
-0.0310414656996727,
-0.0672849714756012,
0.130840003490448,
0.22213374078273773,
0.018519962206482887,
-0.030273208394646645,
-0.006983936298638582,
-0.10730884224176407,
-0.015294178389012814,
-0.10492882132530212,
0.0037515517324209213,
0.05391702428460121,
0.0023886437993496656,
-0.08919437229633331,
-0.030523426830768585,
-0.1463364213705063,
-0.010338874533772469,
0.005879128817468882,
-0.1927213966846466,
0.06569322198629379,
-0.08643299341201782,
-0.013886669650673866,
0.3700264096260071,
-0.008129042573273182,
0.026402156800031662,
-0.03378155082464218,
0.1124914288520813,
0.12161651253700256,
-0.052008114755153656,
0.08302010595798492,
-0.041282232850790024,
0.13465602695941925,
-0.013897930271923542,
0.06369226425886154,
-0.11748974770307541,
-0.03404931724071503,
-0.18688686192035675,
-0.02657468616962433,
-0.10375610738992691,
-0.1347612589597702,
-0.015288840048015118,
0.11645490676164627,
0.09240831434726715,
-0.0775250792503357,
0.011285712942481041,
-0.06618109345436096,
-0.08757441490888596,
-0.18155816197395325,
0.10709681361913681,
-0.09936808794736862,
0.07216040045022964,
0.02379773184657097,
0.08403737843036652,
0.04387076571583748,
0.10718141496181488,
0.06889081746339798,
0.05305640026926994,
0.05772682651877403,
-0.21592295169830322,
0.08033384382724762,
0.0028461324982345104,
0.07861216366291046,
-0.006800343748182058,
0.14727117121219635,
0.16865427792072296,
0.009691774845123291,
-0.12756898999214172,
-0.085562564432621,
-0.0057121324352920055,
-0.0867113396525383,
-0.03722056373953819,
-0.019259026274085045,
0.0980563834309578,
0.1511373370885849,
0.06205928325653076,
0.1106947660446167,
-0.00575909111648798,
0.04328217729926109,
-0.05151605233550072,
-0.12654606997966766,
-0.12851497530937195,
-0.07656870782375336,
-0.166787251830101,
0.1043538749217987,
-0.00989612564444542,
-0.02882150001823902,
-0.12149093300104141,
-0.06215808540582657,
0.08142785727977753,
0.0826544314622879,
0.04346054047346115,
-0.10797202587127686,
0.18202421069145203,
-0.06646022945642471,
0.01679445058107376,
0.008287237957119942,
-0.03848123177886009,
-0.06664561480283737,
-0.1313120722770691,
-0.0011848009889945388,
-0.012361343950033188,
0.04837504029273987,
0.08950509876012802,
0.035636402666568756,
0.018988842144608498,
0.04324842244386673,
-0.03662032634019852,
-0.15987953543663025,
-0.0712018683552742,
0.0863223746418953,
-0.09358374029397964,
0.14736934006214142,
0.0924542248249054,
0.13113558292388916,
-0.04703695699572563,
0.17691698670387268,
-0.0830325186252594,
-0.2519157826900482,
-0.11421836167573929,
0.03903742879629135,
0.020491521805524826,
-0.04226653277873993,
-0.0981736108660698,
-0.10878932476043701,
-0.12295703589916229,
0.08168741315603256,
-0.09675582498311996,
0.044845663011074066,
-0.01496546808630228,
0.20173776149749756,
0.07808105647563934,
-0.01953035406768322,
0.00831172801554203,
0.04829605296254158,
0.08933765441179276,
-0.07424498349428177,
-0.021509133279323578,
0.024255000054836273,
-0.11100251972675323,
0.03847908228635788,
0.06039221212267876,
0.07533787190914154,
0.026834310963749886,
0.0005098410183563828,
-0.1490926444530487,
-0.17067663371562958,
0.04129953682422638,
0.030603377148509026,
-0.031038928776979446,
-0.005277802236378193,
-0.03432783856987953,
-0.08606071025133133,
0.11532051116228104,
0.061748284846544266,
0.05552760511636734,
0.21925029158592224,
0.04255823791027069,
-0.09368418157100677,
0.18673352897167206,
0.10009943693876266,
-0.16462232172489166,
0.0008473757188767195,
0.06814371049404144,
-0.12058647722005844,
0.2845298945903778,
0.21399566531181335,
0.032858021557331085,
-0.002508750418201089,
0.3165559768676758,
0.08634225279092789,
0.04243060201406479,
-0.07707613706588745,
0.027309736236929893,
-0.06376909464597702,
-0.017036914825439453,
-0.049527253955602646,
-0.11086878180503845,
0.11759304255247116,
0.15580299496650696,
0.007348557934165001,
-0.17411324381828308,
-0.06690635532140732,
-0.16036097705364227,
-0.1053331047296524,
0.004069289658218622,
-0.13247065246105194,
0.09213665872812271,
0.0008669410599395633,
-0.16585193574428558,
0.09588375687599182,
0.12316694855690002,
-0.08879195898771286,
0.11471087485551834,
0.15426936745643616,
-0.06655822694301605,
0.10427068918943405,
-0.11959905922412872,
0.10206174105405807,
-0.012956175953149796,
-0.1380554586648941,
-0.040761422365903854,
-0.013808178715407848,
0.09390200674533844,
-0.013128431513905525,
-0.027912253513932228,
-0.16981451213359833,
-0.07892324775457382,
-0.17165401577949524,
-0.013906757347285748,
-0.032481398433446884,
-0.05382116138935089,
-0.2413351982831955,
0.06041209027171135,
-0.08692584931850433,
0.05114952102303505,
0.06841486692428589,
-0.2510140836238861,
0.016578638926148415,
0.13951480388641357,
0.02792837843298912,
0.13635672628879547,
0.08138438314199448,
-0.09557757526636124,
-0.04450364410877228,
-0.16068239510059357,
-0.23762266337871552,
0.21366751194000244,
-0.01700662449002266,
0.10452808439731598,
0.03765912353992462,
0.08152742683887482,
-0.1192934587597847,
-0.05461488291621208,
-0.12310107052326202,
-0.06554288417100906,
-0.06250771880149841,
-0.08794790506362915,
-0.056948378682136536,
-0.06308116763830185,
-0.016783975064754486,
-0.09600656479597092,
-0.1300215870141983,
-0.06842893362045288,
-0.048913098871707916,
-0.19641868770122528,
-0.12699489295482635,
0.24660928547382355,
-0.02469702810049057,
-0.04028497263789177,
0.07394114881753922,
-0.13896195590496063,
-0.01725727692246437,
0.14612515270709991,
-0.0611565075814724,
0.09703762829303741,
-0.0836445540189743,
0.13639949262142181,
0.08030498772859573,
-0.006258673034608364,
0.09356720745563507,
-0.04914176091551781,
-0.1481751799583435,
-0.07099045068025589,
-0.04443032294511795,
-0.098101906478405,
0.023502666503190994,
0.01059875637292862,
0.031836193054914474,
0.10386065393686295,
0.06130024418234825,
0.19637185335159302,
-0.017106208950281143,
-0.1400163173675537,
0.13615663349628448,
0.16564270853996277,
0.13535264134407043,
0.15443077683448792,
-0.009295879863202572,
0.03353780880570412,
-0.07902603596448898,
-0.0976196750998497,
-0.1354207545518875,
0.09270571172237396,
-0.05365854501724243,
-0.09385526925325394,
-0.03443673998117447,
-0.007319808006286621,
-0.037600062787532806,
0.06356047838926315,
-0.23680347204208374,
-0.020842967554926872,
0.1572353094816208,
0.11598751693964005,
-0.10700228065252304,
0.04398002102971077,
0.0025501379277557135,
-0.24505943059921265,
0.20822934806346893,
0.0734889879822731,
0.09815211594104767,
0.07706009596586227,
-0.006760312709957361,
-0.047988954931497574,
-0.014846852980554104,
0.16659460961818695,
-0.051565028727054596,
0.04474901035428047,
-0.03689020127058029,
-0.06748530268669128,
0.12101813405752182,
-0.03052056021988392,
0.12158810347318649,
0.12054064869880676,
-0.03854360431432724,
0.07903388887643814,
-0.16879187524318695,
0.1956908404827118,
0.006126226857304573,
0.05765226110816002,
-0.05009958893060684,
0.14754502475261688,
-0.002094108844175935,
0.08334485441446304,
0.007640700787305832,
-0.12077244371175766,
0.0027013488579541445,
0.02377532608807087,
-0.08339565992355347,
0.011532631702721119,
0.0021635533776134253,
-0.143156036734581,
-0.036570530384778976,
0.02005346119403839,
0.0006771121989004314,
-0.009949413128197193,
-0.05812530219554901,
0.03106834925711155,
0.03880912810564041,
0.10450296103954315,
0.01812809705734253,
0.03776940330862999,
0.1815865933895111,
0.11816074699163437,
-0.18278412520885468,
0.2698885500431061,
-0.1489759236574173,
-0.12093489617109299,
-0.021201174706220627,
-0.0617341473698616,
0.0013765470357611775,
-0.08651690185070038,
-0.06404274702072144,
-0.04075879603624344,
-0.03633055090904236,
-0.06587877124547958,
-0.0028109007980674505,
0.05555441975593567,
-0.08024745434522629,
-0.03287750855088234,
-0.06278819590806961,
-0.13228832185268402,
-0.12469121068716049,
0.05568811297416687,
0.020405113697052002,
0.20825926959514618,
-0.2368539273738861,
0.06323791295289993,
0.08355829119682312,
-0.09552466124296188,
-0.037371981889009476,
0.15302404761314392,
-0.04841675981879234,
-0.05764023959636688,
0.07626821845769882,
0.11461594700813293,
-0.2211327999830246,
-0.006128213368356228,
0.09197980910539627,
-0.1039607897400856,
0.017012422904372215,
-0.10628642141819,
0.08780178427696228,
0.08706974983215332,
0.047561079263687134,
0.0013191071338951588,
0.00039218858000822365,
0.09723715484142303,
-0.05992227792739868,
0.06788372993469238,
0.04987521097064018,
0.11124272644519806,
-0.10868579149246216,
0.019453883171081543,
0.2598443329334259,
0.11640520393848419,
-0.06884509325027466,
-0.00540251424536109,
-0.00013205698633100837,
0.10896280407905579,
-0.029804203659296036,
0.1885247677564621,
-0.050328973680734634,
0.010806047357618809,
-0.032399725168943405,
0.007306366227567196,
-0.022102560847997665,
0.0011273836717009544,
0.04232282191514969,
0.03878750652074814,
0.011743408627808094,
0.04096268489956856,
0.09185104072093964,
0.01519282627850771,
-0.18508121371269226,
0.022580226883292198,
-0.027370693162083626,
-0.06069958582520485,
-0.011224168352782726,
0.14447015523910522,
0.06738100945949554,
-0.09396559000015259,
-0.06664951890707016,
-0.0770559310913086,
-0.15527769923210144,
-0.0642194151878357,
-0.034041628241539,
0.056575264781713486,
-0.06117571145296097,
0.11382661014795303,
0.08511513471603394,
0.02756430394947529,
-0.004494030959904194,
0.18674230575561523,
-0.061990149319171906,
-0.11666084080934525,
-0.028150983154773712,
0.25570204854011536,
0.1075768768787384,
0.10335784405469894,
0.17433710396289825,
0.01174128707498312,
-0.05239412561058998,
-0.029427140951156616,
-0.009132434614002705,
0.047720421105623245,
-0.07533171772956848,
0.03647061437368393,
-0.17137029767036438,
-0.0704423263669014,
-0.09949290007352829,
-0.13399162888526917,
-0.034699954092502594,
0.020700644701719284,
0.05727986991405487,
0.08109558373689651,
0.03605480492115021,
-0.07611917704343796,
-0.12429281324148178,
-0.05576596409082413,
0.15155164897441864,
-0.06797008961439133,
0.038825780153274536,
-0.02128760702908039,
-2.7784166677659965e-32,
-0.08645705133676529,
-0.10801505297422409,
-0.04941491410136223,
-0.15187449753284454,
-0.06592319160699844,
0.06922044605016708,
-0.03448496386408806,
-0.04543285071849823,
0.013844688422977924,
-0.10842426866292953,
-0.06547056138515472,
-0.008668634109199047,
0.0880192443728447,
-0.027701402083039284,
-0.0820549726486206,
-0.1740548014640808,
-0.008416405878961086,
0.036755066365003586,
0.004605102352797985,
0.04587622731924057,
0.1452103555202484,
0.15997503697872162,
0.00953128281980753,
-0.03291209414601326,
-0.1000237986445427,
-0.07458632439374924,
0.028113605454564095,
-0.2761113941669464,
-0.17720498144626617,
0.02891816757619381,
-0.04987821355462074,
0.19333460927009583,
-0.01742701232433319,
-0.1847825050354004,
-0.21359588205814362,
-0.09535478800535202,
0.007517916616052389,
0.1163487359881401,
-0.04562041535973549,
-0.046506211161613464,
0.06497620046138763,
0.02262524701654911,
0.09788304567337036,
-0.05002714693546295,
-0.003977897111326456,
0.05735181272029877,
0.03253835067152977,
-0.06469934433698654,
-0.05819805711507797,
-0.110890232026577,
0.14564859867095947,
0.09837774187326431,
0.07844997197389603,
0.02543960139155388,
0.0026751053519546986,
-0.12612628936767578,
0.06220962107181549,
0.050127800554037094,
-0.2815897464752197,
0.06857410818338394,
0.06448601186275482,
0.11209233105182648,
0.14473138749599457,
0.024262964725494385,
0.12015621364116669,
-0.0988367348909378,
0.2911221981048584,
0.06220610812306404,
0.07155481725931168,
0.027467483654618263,
0.12318367511034012,
0.014420934952795506,
-0.08363252878189087,
-0.10177143663167953,
-0.007424395531415939,
-0.06754600256681442,
0.06767026335000992,
-0.14642395079135895,
-0.09551562368869781,
0.06328338384628296,
0.017168285325169563,
-0.08146262913942337,
-0.002899330807849765,
-0.10885690152645111,
-0.1350807547569275,
0.1045922338962555,
-0.05555002763867378,
0.15438221395015717,
-0.18300674855709076,
-0.002690815832465887,
0.08548226207494736,
0.16523292660713196,
-0.03754005953669548,
0.004579850472509861,
0.022557925432920456,
-0.0030419593676924706,
-0.09596403688192368,
0.14769122004508972,
-0.034596286714076996,
0.13805131614208221,
0.014573222026228905,
-0.09722700715065002,
0.09814558923244476,
-0.08360157907009125,
0.05029011145234108,
0.06502773612737656,
0.028172938153147697,
-0.07795627415180206,
-0.006578086409717798,
-0.05927102640271187,
-0.12159945070743561,
-0.025928117334842682,
0.10911445319652557,
0.030614744871854782,
0.13326914608478546,
0.06208336353302002,
-0.05930766463279724,
0.07211072742938995,
0.09948673099279404,
0.19921322166919708,
0.07331148535013199,
-0.07862779498100281,
0.07399360090494156,
0.08179880678653717,
-0.035854265093803406,
0.11265461146831512,
-0.12952779233455658,
-0.027334539219737053,
0.25385239720344543,
-0.024260221049189568,
0.017408935353159904,
-0.028023842722177505,
7.822505381227529e-7,
-0.09777665138244629,
0.03241873160004616,
0.1356675922870636,
-0.02075055241584778,
-0.03277641534805298,
0.07228635996580124,
-0.19405122101306915,
0.1327873170375824,
-0.15827438235282898,
0.11030355840921402,
0.009255090728402138,
-0.045639652758836746,
0.14588989317417145,
-0.05590933933854103,
0.0939173772931099,
-0.14431995153427124,
-0.2207036316394806,
-0.022804012522101402,
-0.07775133103132248,
-0.04734194278717041,
-0.12558181583881378,
0.09658113867044449,
0.07868316769599915,
-0.0505913682281971,
0.05996079370379448,
0.022257154807448387,
0.06971409171819687,
-0.045370809733867645,
-0.09910252690315247,
-0.1064479723572731,
-0.026716532185673714,
0.09456247091293335,
0.04666728898882866,
0.062397148460149765,
0.02744729444384575,
-0.013644921593368053,
-0.08898432552814484,
-0.045234862715005875,
0.21267767250537872,
-0.07185966521501541,
0.10139929503202438,
0.07546935975551605,
-0.10997995734214783,
0.12391551584005356,
0.13984647393226624,
0.033673807978630066,
-0.07196753472089767,
-0.07466338574886322,
0.05221279338002205,
0.041591912508010864,
0.09898945689201355,
0.07085201889276505,
0.07395651936531067,
0.3183554410934448,
-0.0013392335968092084,
-0.056994810700416565,
0.08525087684392929,
-0.14210611581802368,
0.07642737030982971,
-0.07275845110416412,
-0.19676046073436737,
-0.1247529536485672,
-0.008821901865303516,
-0.11058960109949112,
0.04538906365633011,
-0.10324126482009888,
-0.08804897218942642,
1.4870916153145007e-34,
-0.06311310827732086,
0.04596533626317978,
-0.0019192732870578766,
-0.14731177687644958,
0.17585252225399017,
-0.11912529170513153,
0.1686815619468689,
0.0739729255437851,
0.005945748649537563,
-0.23433923721313477,
-0.12201263755559921
] |
https://github.com/huggingface/datasets/issues/2413 | AttributeError: 'DatasetInfo' object has no attribute 'task_templates' | Hi ! Can you try using a more up-to-date version ? We added the task_templates in `datasets` 1.7.0.
Ideally when you're working on new datasets, you should install and use the local version of your fork of `datasets`. Here I think you tried to run the 1.7.0 tests with the 1.6.2 code | ## Describe the bug
Hello,
I'm trying to add dataset and contribute, but test keep fail with below cli.
` RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_all_configs_<my_dataset>`
## Steps to reproduce the bug
It seems like a bug when I see an error with the existing dataset, not the dataset I'm trying to add.
` RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_all_configs_<any_dataset>`
## Expected results
All test passed
## Actual results
```
# check that dataset is not empty
self.parent.assertListEqual(sorted(dataset_builder.info.splits.keys()), sorted(dataset))
for split in dataset_builder.info.splits.keys():
# check that loaded datset is not empty
self.parent.assertTrue(len(dataset[split]) > 0)
# check that we can cast features for each task template
> task_templates = dataset_builder.info.task_templates
E AttributeError: 'DatasetInfo' object has no attribute 'task_templates'
tests/test_dataset_common.py:175: AttributeError
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Darwin-20.4.0-x86_64-i386-64bit
- Python version: 3.7.7
- PyTorch version (GPU?): 1.7.0 (False)
- Tensorflow version (GPU?): 2.3.0 (False)
- Using GPU in script?: No
- Using distributed or parallel set-up in script?: No
| 52 | AttributeError: 'DatasetInfo' object has no attribute 'task_templates'
## Describe the bug
Hello,
I'm trying to add dataset and contribute, but test keep fail with below cli.
` RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_all_configs_<my_dataset>`
## Steps to reproduce the bug
It seems like a bug when I see an error with the existing dataset, not the dataset I'm trying to add.
` RUN_SLOW=1 pytest tests/test_dataset_common.py::LocalDatasetTest::test_load_dataset_all_configs_<any_dataset>`
## Expected results
All test passed
## Actual results
```
# check that dataset is not empty
self.parent.assertListEqual(sorted(dataset_builder.info.splits.keys()), sorted(dataset))
for split in dataset_builder.info.splits.keys():
# check that loaded datset is not empty
self.parent.assertTrue(len(dataset[split]) > 0)
# check that we can cast features for each task template
> task_templates = dataset_builder.info.task_templates
E AttributeError: 'DatasetInfo' object has no attribute 'task_templates'
tests/test_dataset_common.py:175: AttributeError
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.6.2
- Platform: Darwin-20.4.0-x86_64-i386-64bit
- Python version: 3.7.7
- PyTorch version (GPU?): 1.7.0 (False)
- Tensorflow version (GPU?): 2.3.0 (False)
- Using GPU in script?: No
- Using distributed or parallel set-up in script?: No
Hi ! Can you try using a more up-to-date version ? We added the task_templates in `datasets` 1.7.0.
Ideally when you're working on new datasets, you should install and use the local version of your fork of `datasets`. Here I think you tried to run the 1.7.0 tests with the 1.6.2 code | [
-0.04332229867577553,
-0.021241627633571625,
-0.0005324404337443411,
-0.05378086119890213,
0.22425170242786407,
0.03298208490014076,
0.29900506138801575,
0.1672642081975937,
-0.037087973207235336,
0.29264384508132935,
0.10422457009553909,
0.03128127381205559,
-0.1320895105600357,
-0.0211331807076931,
-0.004048893228173256,
-0.0484081469476223,
-0.10758586972951889,
-0.044311314821243286,
0.12263286113739014,
0.045426495373249054,
-0.09839165955781937,
-0.025959137827157974,
0.04509050399065018,
-0.11398464441299438,
-0.10667096078395844,
-0.23989742994308472,
-0.03679491579532623,
0.07747761905193329,
-0.03161754086613655,
-0.11837958544492722,
0.15879547595977783,
-0.007681509014219046,
0.0885767936706543,
0.13724415004253387,
0.000005265816980681848,
0.07701116055250168,
0.29086148738861084,
-0.028489625081419945,
-0.08418860286474228,
-0.11712000519037247,
-0.013975012116134167,
0.1102217435836792,
-0.05189370736479759,
0.043953847140073776,
0.012329315766692162,
-0.1989016979932785,
-0.026592375710606575,
0.10531584173440933,
0.12403467297554016,
0.13358229398727417,
0.0649464800953865,
0.12237787991762161,
0.059612344950437546,
-0.25823503732681274,
0.03123515285551548,
0.00390937365591526,
-0.09498760104179382,
0.16067178547382355,
-0.0024868168402463198,
-0.05124204605817795,
0.04607425257563591,
-0.0045568933710455894,
0.011435778811573982,
0.11879966408014297,
-0.11582399904727936,
-0.05704274773597717,
-0.11147312819957733,
-0.0461394228041172,
0.03421320766210556,
0.21508827805519104,
0.05840286612510681,
-0.03034454584121704,
-0.23176774382591248,
-0.015453483909368515,
-0.001737049431540072,
-0.057190366089344025,
-0.09622876346111298,
-0.02020246908068657,
-0.1908920258283615,
0.15586663782596588,
0.01943841576576233,
-0.054022617638111115,
0.1442040055990219,
-0.01464236993342638,
-0.10384927690029144,
-0.03148926421999931,
-0.12178458273410797,
0.05666058138012886,
-0.06759725511074066,
-0.08348941057920456,
0.2303587645292282,
-0.002474025823175907,
-0.11620765924453735,
-0.1740453988313675,
-0.025265220552682877,
-0.10835680365562439,
-0.04916577413678169,
-0.21761742234230042,
-0.07241266220808029,
0.18297332525253296,
-0.1295897364616394,
-0.23377490043640137,
-0.1225985512137413,
0.16823731362819672,
-0.018264174461364746,
0.016329320147633553,
-0.11517622321844101,
0.050725020468235016,
-0.08531378954648972,
-0.060373835265636444,
0.04964103922247887,
-0.00004574621925712563,
-0.14668409526348114,
-0.17878060042858124,
0.1353093534708023,
0.1438312828540802,
0.23161457479000092,
0.052008528262376785,
-0.19363844394683838,
0.03162934258580208,
0.07742483913898468,
0.12570039927959442,
0.011041142977774143,
0.12346000969409943,
0.04153314605355263,
-0.11957138776779175,
-0.10986610502004623,
0.15726816654205322,
-0.021252326667308807,
-0.024121783673763275,
-0.07248383015394211,
0.08729612082242966,
-0.016481786966323853,
-0.11040295660495758,
0.2290082424879074,
-0.09792859852313995,
-0.11498212814331055,
-0.14228640496730804,
0.07515506446361542,
0.09750498831272125,
0.09938911348581314,
-0.1657789945602417,
-0.0020999235566705465,
0.013815757818520069,
0.058132968842983246,
0.15506121516227722,
0.18793489038944244,
-0.00530889630317688,
-0.05032326653599739,
-0.06191526725888252,
-0.19697852432727814,
-0.04327176511287689,
-0.1161845251917839,
0.2373071014881134,
0.013301746919751167,
0.09284022450447083,
-0.03612050786614418,
-0.03979887813329697,
-0.08212635666131973,
-0.045954134315252304,
-0.01874266006052494,
-0.10273835808038712,
-0.033265940845012665,
-0.05279604345560074,
0.2426636964082718,
0.2088218778371811,
-0.006943030748516321,
0.06110376864671707,
-0.1191924512386322,
0.0118944700807333,
0.06550077348947525,
-0.09650861471891403,
-0.10324447602033615,
0.1301925927400589,
-0.05849064141511917,
0.05482533201575279,
-0.057891666889190674,
-0.019666573032736778,
-0.2840169072151184,
-0.023146819323301315,
0.09452706575393677,
-0.1949688047170639,
0.031583189964294434,
-0.06782296299934387,
0.2559436559677124,
-0.1057022362947464,
-0.05342445150017738,
0.05373377352952957,
-0.0401199609041214,
0.027678074315190315,
-0.06976718455553055,
0.04776933416724205,
0.04693397507071495,
0.05929930508136749,
0.17742352187633514,
-0.172570139169693,
-0.01636904664337635,
0.020979152992367744,
-0.042890872806310654,
-0.23484185338020325,
-0.002077533630654216,
-0.09841838479042053,
0.011275346390902996,
-0.13178642094135284,
0.08737573027610779,
-0.14480715990066528,
-0.1724519580602646,
0.1134965568780899,
0.06074384227395058,
-0.19071412086486816,
-0.1546933352947235,
0.004468392115086317,
-0.05745205283164978,
0.05363817512989044,
-0.13299919664859772,
-0.1637282371520996,
0.003907280974090099,
0.03646543622016907,
-0.15929582715034485,
-0.04458681866526604,
-0.1175769791007042,
0.05637216940522194,
-0.03473619371652603,
0.04916078969836235,
0.09761402755975723,
0.053206633776426315,
0.04986317455768585,
-0.03200332447886467,
0.18353433907032013,
0.010101898573338985,
-0.14281222224235535,
-0.10237317532300949,
-0.07228390872478485,
0.05987095087766647,
0.11194846779108047,
0.005255173891782761,
0.0737667977809906,
-0.1821061223745346,
-0.09931942075490952,
-0.16295015811920166,
-0.08580146729946136,
0.04821459949016571,
-0.027509290724992752,
-0.12310084700584412,
-0.047128014266490936,
0.013295168988406658,
-0.09942302107810974,
0.2209528386592865,
-0.08948959410190582,
-0.0909748375415802,
0.17546683549880981,
0.1126207560300827,
0.018823780119419098,
0.05661526322364807,
0.014164389111101627,
-0.03468148037791252,
0.017543265596032143,
0.029627053067088127,
-0.07084590941667557,
0.03438218683004379,
0.18064604699611664,
0.03168443962931633,
-0.0317169725894928,
0.022364597767591476,
0.10021156072616577,
-0.1281038075685501,
0.09325012564659119,
-0.1324092000722885,
0.11064153909683228,
0.09777676314115524,
-0.04221601039171219,
-0.006364909000694752,
-0.10528159141540527,
-0.14052914083003998,
0.03330891579389572,
-0.0545082688331604,
0.014986456371843815,
0.01650369167327881,
0.08845029771327972,
0.0143639100715518,
-0.13917678594589233,
0.031311921775341034,
0.25178948044776917,
-0.006553853861987591,
0.023299623280763626,
0.09640667587518692,
-0.1651839315891266,
0.01756671816110611,
-0.06132954731583595,
0.012768125161528587,
0.14815166592597961,
-0.017395664006471634,
0.053343139588832855,
-0.07060141116380692,
-0.0538216196000576,
0.08812593668699265,
0.056083764880895615,
-0.014543162658810616,
-0.051216449588537216,
-0.03434618562459946,
-0.09983944892883301,
0.02798856794834137,
0.19127854704856873,
0.10882499814033508,
0.13519248366355896,
0.019238073378801346,
0.335285484790802,
0.2889878451824188,
-0.09837034344673157,
-0.11192154139280319,
0.07302813231945038,
-0.05110640451312065,
-0.028578998520970345,
0.19140246510505676,
0.07642865180969238,
-0.057000305503606796,
-0.057485196739435196,
-0.015437286347150803,
0.12263334542512894,
0.013757829554378986,
-0.04322848469018936,
-0.013657660223543644,
-0.07622475177049637,
0.01412298996001482,
-0.07299810647964478,
-0.008158253505825996,
-0.27295032143592834,
-0.015538271516561508,
-0.0826699361205101,
-0.001299993833526969,
-0.0785423293709755,
0.09569700062274933,
-0.05097112059593201,
-0.19451166689395905,
0.20085430145263672,
-0.03767434135079384,
-0.10779698938131332,
0.09601155668497086,
0.14711451530456543,
0.034234609454870224,
-0.11433937400579453,
-0.05005738511681557,
-0.08214448392391205,
0.018825994804501534,
0.06510026007890701,
0.029000381007790565,
-0.03971317410469055,
-0.04079575836658478,
0.033208124339580536,
-0.09204773604869843,
0.03010961227118969,
0.15948127210140228,
-0.03400230407714844,
-0.05313499644398689,
-0.0221853144466877,
0.17519965767860413,
-0.2600000202655792,
0.060668207705020905,
-0.1611500233411789,
-0.015894832089543343,
0.11262576282024384,
0.07072828710079193,
0.3066132962703705,
-0.05976254865527153,
-0.12017799913883209,
0.07520563900470734,
-0.03880268707871437,
0.13214059174060822,
-0.054132625460624695,
-0.2497924566268921,
0.0914546549320221,
-0.050521720200777054,
0.024372629821300507,
-0.08554617315530777,
-0.12292014807462692,
0.02705579623579979,
-0.0791001096367836,
-0.08350957930088043,
0.07661791890859604,
0.006526107434183359,
-0.050948433578014374,
-0.1005353182554245,
-0.08243721723556519,
0.06449754536151886,
0.042563825845718384,
-0.017117774114012718,
-0.014099687337875366,
0.024918921291828156,
0.16529454290866852,
-0.06279553472995758,
-0.014884923584759235,
0.08783609420061111,
0.09812059253454208,
-0.15137608349323273,
0.11455667018890381,
-0.16878242790699005,
0.19578306376934052,
0.033687688410282135,
-0.052178192883729935,
-0.00513658719137311,
-0.0009645794052630663,
0.10793446749448776,
0.009617512114346027,
0.16324710845947266,
0.0790649801492691,
-0.0688561275601387,
0.055028703063726425,
-0.06983820348978043,
-0.10673827677965164,
-0.00354531011544168,
-0.0341990627348423,
0.024728750810027122,
0.07823998481035233,
-0.05476829409599304,
0.17418552935123444,
0.018481425940990448,
-0.055617913603782654,
-0.012189753353595734,
-0.083250492811203,
-0.25526610016822815,
-0.12514306604862213,
-0.04042091593146324,
0.13179674744606018,
0.15611277520656586,
-0.0068255397491157055,
-0.053253233432769775,
-0.18323592841625214,
-0.03355856612324715,
0.09022335708141327,
0.030870985239744186,
-0.0026718846056610346,
0.01575406827032566,
0.22404055297374725,
-0.05185740813612938,
0.1427925080060959,
0.08675019443035126,
0.3044675588607788,
-0.1512690931558609,
0.008530760183930397,
-0.07963314652442932,
-0.24931277334690094,
0.08807174116373062,
0.15479369461536407,
-0.20555830001831055,
0.02427016943693161,
-0.24217157065868378,
-0.05213551223278046,
-0.03919186815619469,
0.12509246170520782,
0.033969178795814514,
-0.019019942730665207,
-0.22884529829025269,
-0.22631825506687164,
-0.22321081161499023,
0.011030701920390129,
0.09796275198459625,
0.22466328740119934,
-0.19594448804855347,
0.1190766915678978,
0.006505928467959166,
-0.10805544257164001,
-0.03430058807134628,
-0.10102194547653198,
-0.03259870037436485,
0.25876685976982117,
0.1429964005947113,
0.1264771670103073,
-0.15635019540786743,
0.03575245663523674,
0.04303547367453575,
-0.17393869161605835,
0.026768773794174194,
-0.03348486125469208,
0.08301926404237747,
0.14418576657772064,
-0.09621179103851318,
0.002375196199864149,
0.04599620774388313,
-0.005748175550252199,
0.014907886274158955,
0.15843726694583893,
0.19342491030693054,
0.0809643417596817,
-0.08126158267259598,
-0.09273936599493027,
0.12094253301620483,
0.10343705117702484,
-0.03599357604980469,
-0.07872369140386581,
0.01812991499900818,
-0.010134181939065456,
-0.06551644206047058,
0.02532801404595375,
0.013424365781247616,
0.1540084034204483,
-0.05108505114912987,
-0.07545135170221329,
0.18014611303806305,
-0.12013071030378342,
0.13473308086395264,
0.06704230606555939,
-0.09285588562488556,
0.08704179525375366,
-0.026309385895729065,
0.010336893610656261,
-0.13918437063694,
0.01655094511806965,
0.18921014666557312,
-0.003425388364121318,
-0.20166762173175812,
-0.05205328017473221,
0.09324447065591812,
0.0686919167637825,
-0.10546733438968658,
0.002637711353600025,
-0.06473059952259064,
-0.04225193336606026,
-0.01414166297763586,
0.020297417417168617,
0.10389376431703568,
-0.02235988900065422,
-0.029744889587163925,
-0.05429955571889877,
-0.02336992509663105,
0.031666819006204605,
0.05866212025284767,
0.004762357100844383,
0.0921405777335167,
0.09361810237169266,
0.14750516414642334,
0.0658758133649826,
0.2635001242160797,
0.13024859130382538,
0.0948207750916481,
-0.05852123722434044,
0.09926358610391617,
0.10358922928571701,
-0.17544341087341309,
0.14976292848587036,
0.07683972269296646,
0.023787688463926315,
-0.0784558579325676,
-0.057705335319042206,
-0.0303582102060318,
0.13792258501052856,
-0.028903720900416374,
-0.13865873217582703,
0.02278650924563408,
-0.09224821627140045,
-0.12030556052923203,
0.06363321095705032,
0.16805443167686462,
0.11565067619085312,
0.06171981990337372,
0.0870429053902626,
-2.5196739042290995e-32,
0.01938142441213131,
-0.072787344455719,
0.02475196309387684,
-0.06325750797986984,
-0.07480976730585098,
0.1801099181175232,
0.010843334719538689,
-0.044152066111564636,
-0.11997693032026291,
-0.11316563189029694,
-0.12541770935058594,
0.09630421549081802,
-0.0056444876827299595,
-0.0670183002948761,
-0.006033584475517273,
0.04789748042821884,
-0.025503704324364662,
-0.03293190896511078,
0.023640252649784088,
0.12226816266775131,
0.056566473096609116,
-0.0036603629123419523,
0.15782392024993896,
-0.06484608352184296,
-0.14424826204776764,
-0.020010894164443016,
-0.047172773629426956,
0.010252381674945354,
-0.03814283758401871,
-0.01329914852976799,
0.07550285011529922,
0.1469113528728485,
0.12824533879756927,
-0.1689572036266327,
-0.021998118609189987,
0.0766395777463913,
-0.022594919428229332,
-0.12870661914348602,
-0.0776413083076477,
0.02594449557363987,
-0.09512778371572495,
0.19751755893230438,
-0.06958967447280884,
-0.09100090712308884,
0.06766000390052795,
0.045621708035469055,
-0.09006085991859436,
-0.1592497080564499,
0.04036552831530571,
-0.024312270805239677,
0.031032592058181763,
0.07480346411466599,
-0.03770577907562256,
-0.020422600209712982,
0.10304117202758789,
-0.08210525661706924,
-0.031294744461774826,
0.0038892144802957773,
-0.10162439942359924,
0.032315295189619064,
0.10068594664335251,
-0.03709503635764122,
-0.022254981100559235,
0.048121389001607895,
0.07576490193605423,
0.0039422218687832355,
0.4398080110549927,
0.13492664694786072,
0.08940201252698898,
-0.03205673396587372,
-0.01605124957859516,
0.07817131280899048,
-0.036072518676519394,
0.031338244676589966,
-0.20789210498332977,
0.036586105823516846,
-0.1870909035205841,
0.03386402502655983,
0.1842149794101715,
-0.08393426984548569,
-0.031301699578762054,
0.08703192323446274,
0.012659808620810509,
0.01157198753207922,
0.04584532603621483,
0.045325152575969696,
0.014566704630851746,
-0.01836809702217579,
-0.15263915061950684,
-0.011871698312461376,
-0.032114364206790924,
0.12851816415786743,
-0.07113337516784668,
-0.06201888248324394,
-0.055678840726614,
0.1984483152627945,
0.05302309989929199,
0.04514031484723091,
-0.13968804478645325,
-0.09671542048454285,
-0.04307551309466362,
-0.03152596205472946,
0.07981138676404953,
0.11779335141181946,
0.19400519132614136,
-0.07133546471595764,
0.11630603671073914,
-0.12958703935146332,
-0.17141860723495483,
-0.08526947349309921,
-0.021521147340536118,
-0.09089486300945282,
0.10185139626264572,
0.15501947700977325,
0.1767372488975525,
-0.007667816709727049,
0.011848867870867252,
-0.005912846885621548,
0.2044612169265747,
-0.08560041338205338,
-0.19444768130779266,
0.07892931252717972,
-0.1624167114496231,
-0.19688665866851807,
0.12151109427213669,
0.09880273044109344,
-0.20918400585651398,
-0.18324066698551178,
0.1478048413991928,
0.05386962369084358,
0.02339661493897438,
-0.23997914791107178,
7.515917559430818e-7,
-0.3552253544330597,
0.23737245798110962,
0.05403141304850578,
-0.07196072489023209,
-0.08193166553974152,
0.18035894632339478,
-0.20053836703300476,
0.04665164649486542,
0.01998540386557579,
0.0027900980785489082,
0.3005542755126953,
-0.13428422808647156,
-0.0602436438202858,
0.03954027220606804,
0.15922793745994568,
0.11698417365550995,
-0.07882869243621826,
0.13496167957782745,
-0.04262199625372887,
0.1044592559337616,
0.02170959673821926,
0.007025234401226044,
0.12919603288173676,
-0.05733742564916611,
-0.015080977231264114,
0.022162484005093575,
-0.1210564598441124,
-0.11496780067682266,
0.019393127411603928,
0.07320789247751236,
-0.045482564717531204,
0.02914244495332241,
-0.0797320306301117,
0.28655627369880676,
0.027446657419204712,
-0.07280254364013672,
-0.10834888368844986,
-0.14273501932621002,
0.021883023902773857,
0.17316192388534546,
0.020963158458471298,
0.05209266394376755,
0.046235594898462296,
-0.07329834252595901,
0.07392183691263199,
0.03871987387537956,
-0.11283233016729355,
-0.10228155553340912,
-0.04870881885290146,
0.14356037974357605,
-0.012389769777655602,
0.21328116953372955,
0.14467372000217438,
0.1009574756026268,
-0.13386127352714539,
0.03213004767894745,
-0.2359957993030548,
-0.21495826542377472,
0.08382460474967957,
0.0037681020330637693,
-0.1653297394514084,
-0.13512130081653595,
-0.04926549643278122,
-0.01653631217777729,
0.1826714426279068,
-0.02929217927157879,
-0.07141739130020142,
3.9628683980400326e-35,
-0.08984324336051941,
0.05010611191391945,
0.01910533383488655,
-0.12174414843320847,
-0.05935436487197876,
-0.09865736216306686,
0.17592355608940125,
-0.07599601149559021,
0.1125124841928482,
-0.08139967918395996,
-0.001276149065233767
] |
https://github.com/huggingface/datasets/issues/2407 | .map() function got an unexpected keyword argument 'cache_file_name' | Hi @cindyxinyiwang,
Did you try adding `.arrow` after `cache_file_name` argument? Here I think they're expecting something like that only for a cache file:
https://github.com/huggingface/datasets/blob/e08362256fb157c0b3038437fc0d7a0bbb50de5c/src/datasets/arrow_dataset.py#L1556-L1558 | ## Describe the bug
I'm trying to save the result of datasets.map() to a specific file, so that I can easily share it among multiple computers without reprocessing the dataset. However, when I try to pass an argument 'cache_file_name' to the .map() function, it throws an error that ".map() function got an unexpected keyword argument 'cache_file_name'".
I believe I'm using the latest dataset 1.6.2. Also seems like the document and the actual code indicates there is an argument 'cache_file_name' for the .map() function.
Here is the code I use
## Steps to reproduce the bug
```datasets = load_from_disk(dataset_path=my_path)
[...]
def tokenize_function(examples):
return tokenizer(examples[text_column_name])
logger.info("Mapping dataset to tokenized dataset.")
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=preprocessing_num_workers,
remove_columns=column_names,
load_from_cache_file=True,
cache_file_name="my_tokenized_file"
)
```
## Actual results
tokenized_datasets = datasets.map(
TypeError: map() got an unexpected keyword argument 'cache_file_name'
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.6.2
- Platform:Linux-4.18.0-193.28.1.el8_2.x86_64-x86_64-with-glibc2.10
- Python version:3.8.5
- PyArrow version:3.0.0
| 24 | .map() function got an unexpected keyword argument 'cache_file_name'
## Describe the bug
I'm trying to save the result of datasets.map() to a specific file, so that I can easily share it among multiple computers without reprocessing the dataset. However, when I try to pass an argument 'cache_file_name' to the .map() function, it throws an error that ".map() function got an unexpected keyword argument 'cache_file_name'".
I believe I'm using the latest dataset 1.6.2. Also seems like the document and the actual code indicates there is an argument 'cache_file_name' for the .map() function.
Here is the code I use
## Steps to reproduce the bug
```datasets = load_from_disk(dataset_path=my_path)
[...]
def tokenize_function(examples):
return tokenizer(examples[text_column_name])
logger.info("Mapping dataset to tokenized dataset.")
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=preprocessing_num_workers,
remove_columns=column_names,
load_from_cache_file=True,
cache_file_name="my_tokenized_file"
)
```
## Actual results
tokenized_datasets = datasets.map(
TypeError: map() got an unexpected keyword argument 'cache_file_name'
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.6.2
- Platform:Linux-4.18.0-193.28.1.el8_2.x86_64-x86_64-with-glibc2.10
- Python version:3.8.5
- PyArrow version:3.0.0
Hi @cindyxinyiwang,
Did you try adding `.arrow` after `cache_file_name` argument? Here I think they're expecting something like that only for a cache file:
https://github.com/huggingface/datasets/blob/e08362256fb157c0b3038437fc0d7a0bbb50de5c/src/datasets/arrow_dataset.py#L1556-L1558 | [
0.1739824116230011,
0.008689177222549915,
-0.10621693730354309,
-0.15099065005779266,
0.21543434262275696,
0.16381391882896423,
0.22370678186416626,
0.09143386781215668,
0.03660321980714798,
0.03472959250211716,
-0.09799116104841232,
0.08680421859025955,
-0.055919814854860306,
-0.147160142660141,
0.06660554558038712,
-0.07318935543298721,
0.0931444764137268,
-0.04852442443370819,
-0.0027453184593468904,
0.09285208582878113,
-0.1918146014213562,
0.14805980026721954,
0.14182551205158234,
0.15194149315357208,
-0.07548918575048447,
-0.13840775191783905,
-0.008566206321120262,
0.08547040820121765,
-0.09975440055131912,
-0.0021351920440793037,
0.0203118734061718,
0.03610852360725403,
0.003028330858796835,
0.09254223108291626,
0.000005486505870067049,
0.07309745252132416,
0.18812692165374756,
-0.005255949683487415,
0.04420185834169388,
-0.18322953581809998,
0.1463024914264679,
0.08584582060575485,
-0.02221020869910717,
-0.05749919265508652,
-0.0037963110953569412,
-0.18509338796138763,
0.11959034204483032,
-0.08502116054296494,
0.07601452618837357,
0.039025913923978806,
0.03625847399234772,
-0.18752427399158478,
-0.07268653810024261,
-0.1555386483669281,
0.1202130913734436,
-0.04625117778778076,
0.06132730096578598,
-0.038408901542425156,
-0.2852730453014374,
-0.14868323504924774,
-0.01004443783313036,
0.03014686331152916,
-0.12784209847450256,
0.05066351965069771,
0.021613217890262604,
0.09042250365018845,
-0.10461640357971191,
-0.1218741163611412,
-0.003945011179894209,
0.14547626674175262,
-0.025678414851427078,
-0.05809352174401283,
-0.09767807275056839,
0.12549953162670135,
-0.09771178662776947,
-0.0985964834690094,
-0.0691036581993103,
-0.0589887760579586,
-0.04931355267763138,
0.08516547083854675,
0.009328823536634445,
0.01232725940644741,
0.1512822061777115,
-0.03177306801080704,
-0.10358649492263794,
-0.03989824280142784,
-0.08400247991085052,
0.17522451281547546,
-0.030086666345596313,
-0.17442993819713593,
0.10377804189920425,
-0.06862276792526245,
-0.10303293913602829,
-0.07287806272506714,
0.009367735125124454,
-0.042560089379549026,
-0.0484997034072876,
-0.1000855416059494,
0.019664114341139793,
-0.019654540345072746,
-0.10851667821407318,
-0.24095742404460907,
0.03660706803202629,
0.16524729132652283,
-0.08353997021913528,
0.0022266304586082697,
0.017508499324321747,
0.12537641823291779,
-0.08786815404891968,
-0.048409562557935715,
-0.14569227397441864,
0.02129269763827324,
-0.1031256839632988,
-0.038442324846982956,
0.19849561154842377,
0.045518405735492706,
0.056074850261211395,
0.17245884239673615,
0.007995174266397953,
0.1545765995979309,
-0.027273887768387794,
0.01371256448328495,
-0.08245881646871567,
0.1732536405324936,
0.0911981537938118,
-0.17432862520217896,
-0.0399305522441864,
0.10240588337182999,
-0.010853391140699387,
-0.029570024460554123,
-0.05024847760796547,
0.09670524299144745,
-0.004342986270785332,
0.015718769282102585,
0.12879176437854767,
0.059870921075344086,
0.03759517893195152,
-0.10267101973295212,
0.005624851211905479,
0.08990328013896942,
0.12825007736682892,
-0.11634178459644318,
-0.035279784351587296,
-0.05280802771449089,
0.11208812147378922,
0.08556962013244629,
0.13409805297851562,
0.13199461996555328,
-0.0006165887461975217,
0.030236728489398956,
-0.2914668023586273,
0.1234501525759697,
-0.06722994893789291,
0.021138114854693413,
0.06754693388938904,
0.07241721451282501,
-0.04890241473913193,
-0.09871366620063782,
-0.023904981091618538,
-0.0006006300682201982,
0.0596446767449379,
-0.05484556779265404,
-0.026057850569486618,
-0.17909924685955048,
0.12027960270643234,
0.05820581689476967,
0.20690055191516876,
0.1614697128534317,
-0.04488008841872215,
-0.020931581035256386,
0.043450865894556046,
0.07719273865222931,
-0.0012224321253597736,
-0.10870516300201416,
-0.1843186616897583,
0.2626132667064667,
-0.07051100581884384,
0.15130527317523956,
-0.1562533974647522,
-0.09653293341398239,
0.015312989242374897,
-0.1902400702238083,
0.05903038755059242,
-0.08618620038032532,
0.23524533212184906,
0.0529424212872982,
0.0674385204911232,
-0.05424085631966591,
-0.08808743208646774,
-0.1020667776465416,
-0.04795157164335251,
0.03727678954601288,
0.138432577252388,
-0.19338783621788025,
-0.042745452374219894,
-0.024850262328982353,
-0.09067325294017792,
-0.034853219985961914,
-0.13750463724136353,
-0.06498679518699646,
0.1368946135044098,
-0.06419424712657928,
0.037103764712810516,
-0.10797670483589172,
0.04220056161284447,
0.055464986711740494,
-0.0999012440443039,
-0.08978858590126038,
0.008066107518970966,
-0.317425400018692,
-0.06289776414632797,
0.061997659504413605,
0.06998362392187119,
0.03702309727668762,
0.01544481422752142,
-0.2107495367527008,
0.019544567912817,
0.07914938032627106,
-0.06820928305387497,
-0.005813342984765768,
0.03683871030807495,
0.030253052711486816,
0.07808437198400497,
-0.019408728927373886,
0.08613411337137222,
0.014924361370503902,
-0.08437157422304153,
-0.04085542634129524,
0.05499247834086418,
0.0531262531876564,
-0.06766937673091888,
-0.023152220994234085,
-0.05723188444972038,
0.08187772333621979,
-0.041903410106897354,
0.0033766627311706543,
-0.006060158368200064,
-0.13437476754188538,
-0.17261172831058502,
0.001117420382797718,
-0.19210362434387207,
-0.046468526124954224,
-0.19615128636360168,
-0.012911149300634861,
-0.01687036268413067,
0.09173982590436935,
0.08216667175292969,
0.13748684525489807,
-0.14065329730510712,
0.027134353294968605,
0.20555739104747772,
0.04976557940244675,
-0.15196335315704346,
0.019613541662693024,
0.042556747794151306,
-0.21318140625953674,
0.18040144443511963,
0.0169612355530262,
0.04334398731589317,
-0.049442045390605927,
0.31988847255706787,
0.036180440336465836,
-0.017789531499147415,
-0.03441748395562172,
0.1456064134836197,
-0.17257250845432281,
-0.024479174986481667,
0.003957641310989857,
0.024244587868452072,
0.13027836382389069,
0.13422691822052002,
0.05456741154193878,
-0.10789447277784348,
-0.04332401603460312,
0.08007162064313889,
-0.05265890806913376,
0.0320737399160862,
-0.09845773875713348,
-0.007958009839057922,
0.04961714521050453,
-0.11811704933643341,
0.03767736256122589,
0.1476105898618698,
-0.08942479640245438,
0.07999347895383835,
0.08878466486930847,
-0.036248352378606796,
0.005420735105872154,
-0.06857476383447647,
0.04113377258181572,
0.011584117077291012,
-0.08918432891368866,
0.09557840973138809,
-0.1629287451505661,
-0.0737827941775322,
0.1277187466621399,
0.048242419958114624,
-0.1670522689819336,
0.07043452560901642,
-0.10424521565437317,
-0.15036940574645996,
-0.12449447065591812,
0.05703406408429146,
-0.01617567427456379,
-0.017456406727433205,
-0.023042991757392883,
0.1773919314146042,
0.20383478701114655,
0.05490940064191818,
-0.25691863894462585,
0.06423787027597427,
0.02625156007707119,
0.042145662009716034,
0.11619725078344345,
-0.001327276462689042,
-0.11271709203720093,
-0.06903555989265442,
-0.20203056931495667,
0.18594077229499817,
-0.18398278951644897,
-0.04235893860459328,
0.016608912497758865,
0.02167677879333496,
-0.0860823541879654,
-0.02090585045516491,
0.015772690996527672,
-0.14821664988994598,
-0.12291227281093597,
0.0019461092306300998,
-0.2174159586429596,
0.036193039268255234,
-0.05981653556227684,
-0.17647016048431396,
-0.041614778339862823,
-0.07919256389141083,
-0.20844510197639465,
-0.13991540670394897,
-0.06858117133378983,
0.2253911793231964,
-0.018191931769251823,
-0.0202254056930542,
0.06174471229314804,
-0.067664735019207,
0.07654382288455963,
0.14005662500858307,
-0.0023770469706505537,
0.10292289406061172,
0.14912113547325134,
-0.03416265919804573,
0.06538049131631851,
0.05820654332637787,
0.04155542328953743,
0.0529705248773098,
-0.19099700450897217,
-0.07747843116521835,
0.004502384457737207,
-0.2693578898906708,
-0.05852983891963959,
-0.08883477002382278,
0.13341642916202545,
0.17274579405784607,
0.17723630368709564,
0.11860935389995575,
0.010302422568202019,
-0.04435928910970688,
0.1454649716615677,
0.023586472496390343,
0.02917022444307804,
0.052966561168432236,
-0.2520948052406311,
0.015520128421485424,
0.06575081497430801,
-0.007575218565762043,
-0.05995446443557739,
-0.11487218737602234,
-0.047399986535310745,
0.003952621482312679,
-0.1603734791278839,
0.044251345098018646,
-0.03005031868815422,
0.10111469030380249,
-0.18337994813919067,
-0.03126578405499458,
0.2142605185508728,
0.07660244405269623,
-0.0070774792693555355,
-0.05935337767004967,
0.03768399730324745,
-0.027692917734384537,
0.05004725977778435,
0.15228399634361267,
-0.052918244153261185,
0.03998231887817383,
-0.16912217438220978,
0.026945410296320915,
-0.05708032846450806,
0.2270651012659073,
0.0021465534809976816,
0.04290805011987686,
-0.08036497235298157,
0.14091944694519043,
0.1945379376411438,
-0.039465855807065964,
0.02141980640590191,
0.1469876915216446,
0.05707646161317825,
0.018708737567067146,
0.021334460005164146,
0.10598796606063843,
0.11661021411418915,
0.020025236532092094,
0.23220528662204742,
0.11566703766584396,
-0.03156871721148491,
0.0902399942278862,
-0.10609480738639832,
0.022544072940945625,
-0.053679581731557846,
-0.021360939368605614,
-0.06507129967212677,
-0.13522689044475555,
-0.11364065110683441,
-0.06454227864742279,
0.15606655180454254,
0.029671937227249146,
-0.010437334887683392,
0.015634775161743164,
0.011450503021478653,
0.10752983391284943,
-0.02070046029984951,
0.14446979761123657,
-0.07736487686634064,
0.10486205667257309,
0.05630951747298241,
0.051120173186063766,
-0.05093696340918541,
0.13705158233642578,
-0.214058056473732,
-0.013614730909466743,
-0.06389109045267105,
-0.054044317454099655,
0.03139444440603256,
-0.03414274379611015,
-0.16776873171329498,
-0.026457538828253746,
-0.14679795503616333,
-0.0013115351321175694,
0.10322076827287674,
0.08516274392604828,
0.05904246121644974,
-0.07944484055042267,
-0.1652437299489975,
-0.14197252690792084,
-0.10606371611356735,
0.18529948592185974,
0.03599382936954498,
0.3099777400493622,
-0.22559219598770142,
-0.0179128497838974,
0.2375071793794632,
0.10687058418989182,
-0.06057222560048103,
-0.05508144572377205,
0.0248793363571167,
0.03410619869828224,
0.13134229183197021,
0.3109879791736603,
-0.17524708807468414,
-0.02788422256708145,
0.14913028478622437,
0.05776187404990196,
0.13275004923343658,
-0.024566711857914925,
0.05711514130234718,
0.13369455933570862,
-0.06594693660736084,
0.05194482207298279,
0.012884738855063915,
0.2494104951620102,
-0.021169601008296013,
0.09260893613100052,
0.03694097697734833,
-0.005598497577011585,
-0.034711308777332306,
0.09091053903102875,
0.09353554993867874,
-0.04190991446375847,
-0.06196357309818268,
-0.019452635198831558,
-0.04138050973415375,
-0.10018627345561981,
-0.0904988944530487,
0.10065557807683945,
-0.18129977583885193,
0.07720860093832016,
-0.09165830165147781,
0.136882945895195,
0.0010180413955822587,
-0.015696918591856956,
0.11514236778020859,
0.05562933534383774,
0.012362290173768997,
-0.11776536703109741,
0.023366661742329597,
-0.005410487297922373,
-0.22653746604919434,
-0.08288510888814926,
-0.03072684444487095,
0.04583786055445671,
-0.06134180724620819,
0.03755486384034157,
-0.031666167080402374,
-0.13428273797035217,
-0.07364970445632935,
0.018829170614480972,
-0.03994973003864288,
-0.05623963847756386,
-0.060321688652038574,
-0.005834013689309359,
0.014144957065582275,
0.008704755455255508,
0.043656256049871445,
-0.07435163855552673,
-0.13732899725437164,
0.04039347171783447,
-0.061549145728349686,
-0.049263615161180496,
0.08743637055158615,
0.14027303457260132,
0.001497233402915299,
0.027683427557349205,
0.19949936866760254,
0.06405176967382431,
-0.05640619993209839,
-0.03574765473604202,
0.08035068958997726,
0.0823003351688385,
-0.0677620992064476,
0.08917306363582611,
-0.17452409863471985,
0.007386030163615942,
-0.20784227550029755,
-0.09110242873430252,
0.023560229688882828,
0.1270410716533661,
0.1695249229669571,
-0.10829570144414902,
-0.0556185282766819,
0.11164817959070206,
-0.2161126583814621,
-0.08165275305509567,
0.33967673778533936,
0.01927943527698517,
-0.046507544815540314,
0.04829535633325577,
-2.587691239977142e-32,
-0.028183164075016975,
0.03959204629063606,
-0.014299154281616211,
-0.03934997692704201,
-0.11335760354995728,
0.04777288809418678,
0.04734784737229347,
-0.0019056848250329494,
0.011339167132973671,
-0.2069694548845291,
-0.10516221076250076,
0.02060766890645027,
0.020190637558698654,
-0.07376636564731598,
-0.18341460824012756,
0.02060946635901928,
0.008135676383972168,
-0.0005785199464298785,
-0.060657694935798645,
0.037656236439943314,
0.16191989183425903,
-0.002163829980418086,
0.18740569055080414,
0.0326836034655571,
-0.11386074870824814,
-0.0072518386878073215,
-0.08656954020261765,
-0.22702309489250183,
0.0350867435336113,
-0.06929729878902435,
0.0010393925476819277,
0.10599318891763687,
-0.08533619344234467,
-0.06574247777462006,
-0.06510092318058014,
-0.02370680496096611,
-0.13654175400733948,
-0.0771467387676239,
-0.07578953355550766,
0.032013580203056335,
0.1045052781701088,
0.15260188281536102,
0.06812065094709396,
-0.07811097055673599,
0.045486655086278915,
0.16843082010746002,
-0.06397513300180435,
-0.03331746533513069,
-0.05686662346124649,
0.07293473929166794,
0.22275221347808838,
-0.03612039238214493,
-0.09018109738826752,
0.2021026611328125,
0.03413797542452812,
-0.04908294975757599,
-0.040752626955509186,
0.15171091258525848,
-0.32698434591293335,
0.06482525914907455,
0.029865924268960953,
-0.028701819479465485,
0.1291283220052719,
0.07805491983890533,
0.16176976263523102,
0.03987731784582138,
0.3379099667072296,
0.04544748738408089,
0.042082589119672775,
0.09059523791074753,
-0.047264620661735535,
0.059558745473623276,
-0.13334181904792786,
0.0703577771782875,
-0.1298377364873886,
-0.14303074777126312,
-0.09024714678525925,
-0.08192992210388184,
0.030710138380527496,
0.035738591104745865,
0.0710109993815422,
0.06794940680265427,
0.03962711989879608,
0.0139127466827631,
-0.12400901317596436,
0.14222897589206696,
-0.0274200439453125,
0.03395111486315727,
-0.1221756860613823,
-0.05135649815201759,
0.04236681014299393,
0.26271262764930725,
-0.057071879506111145,
0.027258355170488358,
-0.023633312433958054,
0.040152326226234436,
0.04186601936817169,
0.05445893853902817,
-0.16074731945991516,
0.001515485462732613,
-0.008717155084013939,
-0.09275057166814804,
0.1321209818124771,
0.0797734260559082,
0.19387955963611603,
-0.00844340305775404,
0.028104955330491066,
-0.13008509576320648,
-0.15947867929935455,
-0.019066104665398598,
0.0807194784283638,
-0.04334757477045059,
0.15705351531505585,
-0.06119360029697418,
0.16508398950099945,
-0.03695976361632347,
0.02126118913292885,
-0.062442414462566376,
0.12055327743291855,
0.2165534794330597,
0.033936403691768646,
-0.09876889735460281,
-0.1300787478685379,
-0.04606887325644493,
0.033450644463300705,
0.04350900277495384,
-0.18461066484451294,
-0.18133483827114105,
0.08270812779664993,
0.025864502415060997,
0.0003247167624067515,
-0.04729495942592621,
7.578761369586573e-7,
-0.16329215466976166,
0.15520355105400085,
-0.04382114112377167,
-0.18415595591068268,
-0.17605644464492798,
0.047876909375190735,
-0.14886237680912018,
0.04847811907529831,
0.05946730449795723,
0.2600204646587372,
0.14814694225788116,
-0.08823122829198837,
-0.04406023398041725,
0.0018448856426402926,
0.060222748667001724,
-0.03964230790734291,
-0.25967368483543396,
0.16819356381893158,
0.011804808862507343,
0.15063221752643585,
-0.04057757928967476,
0.11108753830194473,
0.253111332654953,
0.0023232726380228996,
-0.08871547877788544,
0.09977127611637115,
-0.08682868629693985,
-0.1526939570903778,
-0.011979701928794384,
0.0605582520365715,
-0.03424803167581558,
0.07782932370901108,
0.04683520272374153,
-0.05482807382941246,
-0.009814380668103695,
-0.07081582397222519,
-0.07095224410295486,
-0.08602200448513031,
0.08651087433099747,
-0.09687663614749908,
0.11765442788600922,
0.07140625268220901,
0.027351919561624527,
-0.1996907740831375,
0.006309352815151215,
-0.04174154996871948,
-0.131771519780159,
-0.04042738303542137,
-0.2234153002500534,
0.18527022004127502,
0.11076994985342026,
0.0750117301940918,
0.0596456341445446,
0.2306867390871048,
-0.02998085878789425,
0.09055207669734955,
-0.027750225737690926,
-0.16487808525562286,
0.12197597324848175,
-0.13867075741291046,
-0.14704202115535736,
-0.007280461955815554,
-0.011906868778169155,
0.04736964777112007,
-0.046626996248960495,
-0.05009840801358223,
-0.029025975614786148,
1.065030139063018e-34,
-0.07116221636533737,
0.0011393071617931128,
-0.016430985182523727,
-0.2238835096359253,
0.02222266048192978,
-0.032068923115730286,
0.22903847694396973,
-0.012006938457489014,
0.05870148167014122,
-0.23217147588729858,
-0.10046438872814178
] |
https://github.com/huggingface/datasets/issues/2407 | .map() function got an unexpected keyword argument 'cache_file_name' | Hi ! `cache_file_name` is an argument of the `Dataset.map` method. Can you check that your `dataset` is indeed a `Dataset` object ?
If you loaded several splits, then it would actually be a `DatasetDict` (one dataset per split, in a dictionary).
In this case, since there are several datasets in the dict, the `DatasetDict.map` method requires a `cache_file_names` argument (with an 's'), so that you can provide one file name per split. | ## Describe the bug
I'm trying to save the result of datasets.map() to a specific file, so that I can easily share it among multiple computers without reprocessing the dataset. However, when I try to pass an argument 'cache_file_name' to the .map() function, it throws an error that ".map() function got an unexpected keyword argument 'cache_file_name'".
I believe I'm using the latest dataset 1.6.2. Also seems like the document and the actual code indicates there is an argument 'cache_file_name' for the .map() function.
Here is the code I use
## Steps to reproduce the bug
```datasets = load_from_disk(dataset_path=my_path)
[...]
def tokenize_function(examples):
return tokenizer(examples[text_column_name])
logger.info("Mapping dataset to tokenized dataset.")
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=preprocessing_num_workers,
remove_columns=column_names,
load_from_cache_file=True,
cache_file_name="my_tokenized_file"
)
```
## Actual results
tokenized_datasets = datasets.map(
TypeError: map() got an unexpected keyword argument 'cache_file_name'
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.6.2
- Platform:Linux-4.18.0-193.28.1.el8_2.x86_64-x86_64-with-glibc2.10
- Python version:3.8.5
- PyArrow version:3.0.0
| 72 | .map() function got an unexpected keyword argument 'cache_file_name'
## Describe the bug
I'm trying to save the result of datasets.map() to a specific file, so that I can easily share it among multiple computers without reprocessing the dataset. However, when I try to pass an argument 'cache_file_name' to the .map() function, it throws an error that ".map() function got an unexpected keyword argument 'cache_file_name'".
I believe I'm using the latest dataset 1.6.2. Also seems like the document and the actual code indicates there is an argument 'cache_file_name' for the .map() function.
Here is the code I use
## Steps to reproduce the bug
```datasets = load_from_disk(dataset_path=my_path)
[...]
def tokenize_function(examples):
return tokenizer(examples[text_column_name])
logger.info("Mapping dataset to tokenized dataset.")
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=preprocessing_num_workers,
remove_columns=column_names,
load_from_cache_file=True,
cache_file_name="my_tokenized_file"
)
```
## Actual results
tokenized_datasets = datasets.map(
TypeError: map() got an unexpected keyword argument 'cache_file_name'
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.6.2
- Platform:Linux-4.18.0-193.28.1.el8_2.x86_64-x86_64-with-glibc2.10
- Python version:3.8.5
- PyArrow version:3.0.0
Hi ! `cache_file_name` is an argument of the `Dataset.map` method. Can you check that your `dataset` is indeed a `Dataset` object ?
If you loaded several splits, then it would actually be a `DatasetDict` (one dataset per split, in a dictionary).
In this case, since there are several datasets in the dict, the `DatasetDict.map` method requires a `cache_file_names` argument (with an 's'), so that you can provide one file name per split. | [
0.1535031646490097,
0.03597536310553551,
-0.07883281260728836,
-0.12804783880710602,
0.20228822529315948,
0.12865884602069855,
0.2662006914615631,
0.09150092303752899,
0.035359758883714676,
0.03565509244799614,
-0.08144478499889374,
0.04467564821243286,
-0.08667311817407608,
-0.1192222312092781,
0.07326760143041611,
-0.08908961713314056,
0.10920363664627075,
-0.04605875536799431,
0.025412797927856445,
0.08663330972194672,
-0.19320674240589142,
0.13579723238945007,
0.15196238458156586,
0.14179889857769012,
-0.09604930877685547,
-0.15522457659244537,
-0.019353004172444344,
0.07432904839515686,
-0.09729964286088943,
0.017205221578478813,
0.0002887616865336895,
0.04111712798476219,
0.012730981223285198,
0.08480559289455414,
0.000005501734449353535,
0.0706419125199318,
0.19415108859539032,
-0.009845794178545475,
0.0323302187025547,
-0.16776716709136963,
0.1198272630572319,
0.10567691177129745,
-0.0246646236628294,
-0.05775235593318939,
-0.020871631801128387,
-0.1487428843975067,
0.10008902847766876,
-0.1064758151769638,
0.07617076486349106,
0.051877379417419434,
0.022518618032336235,
-0.20754271745681763,
-0.07964444160461426,
-0.16531111299991608,
0.11268546432256699,
-0.022452324628829956,
0.06000833213329315,
-0.05534397065639496,
-0.27535805106163025,
-0.16810032725334167,
-0.007573696784675121,
0.002114107133820653,
-0.11138561367988586,
0.07107620686292648,
-0.029121270403265953,
0.09605766087770462,
-0.1630200445652008,
-0.11479051411151886,
-0.00009382129792356864,
0.12642380595207214,
-0.02023758925497532,
-0.046228326857089996,
-0.10215016454458237,
0.11520630121231079,
-0.11969879269599915,
-0.13328710198402405,
-0.04147489741444588,
-0.05383843556046486,
-0.0633997991681099,
0.09688740968704224,
-0.002654840238392353,
-0.010851356200873852,
0.16545690596103668,
-0.013211080804467201,
-0.15827001631259918,
-0.047529347240924835,
-0.09148111939430237,
0.16220790147781372,
-0.060666367411613464,
-0.1657249480485916,
0.09898658096790314,
-0.05732676014304161,
-0.1115526556968689,
-0.08103420585393906,
-0.0059011573903262615,
-0.011211112141609192,
-0.06739173829555511,
-0.11176268011331558,
0.006323718465864658,
-0.00008374950994038954,
-0.15757882595062256,
-0.2589174211025238,
0.016713785007596016,
0.1671593189239502,
-0.03538025543093681,
-0.034787412732839584,
-0.004980290308594704,
0.14576853811740875,
-0.07329848408699036,
-0.03857864439487457,
-0.13562524318695068,
0.010447132401168346,
-0.10762521624565125,
-0.0033750252332538366,
0.18979473412036896,
0.04343917593359947,
0.03295108675956726,
0.14598849415779114,
-0.03261495754122734,
0.1367783397436142,
-0.016220347955822945,
0.022761356085538864,
-0.06933382153511047,
0.17761074006557465,
0.093501515686512,
-0.16674941778182983,
-0.06485727429389954,
0.092764712870121,
-0.009140457957983017,
-0.06719796359539032,
-0.06890996545553207,
0.07226059585809708,
-0.007825649343430996,
0.0416465699672699,
0.13942566514015198,
0.05027606338262558,
0.004430347587913275,
-0.10938259214162827,
-0.02172725833952427,
0.06501282006502151,
0.1288735717535019,
-0.13350076973438263,
-0.043082982301712036,
-0.0263063944876194,
0.13820432126522064,
0.08884482830762863,
0.14981429278850555,
0.1348419189453125,
-0.013416262343525887,
0.012272221967577934,
-0.29723411798477173,
0.1550815999507904,
-0.05562427639961243,
0.07753527164459229,
0.049697600305080414,
0.10234828293323517,
-0.04313116520643234,
-0.0707547590136528,
-0.03488826006650925,
-0.01357862539589405,
0.05081047862768173,
-0.06382846087217331,
-0.010900228284299374,
-0.13896544277668,
0.10849318653345108,
0.07490133494138718,
0.1735633909702301,
0.15917091071605682,
-0.08250544965267181,
-0.04845261201262474,
0.01894930563867092,
0.06519950926303864,
-0.00844942219555378,
-0.04648352786898613,
-0.19998584687709808,
0.266489177942276,
-0.06563069671392441,
0.17554613947868347,
-0.1880113184452057,
-0.09408306330442429,
0.04043971747159958,
-0.2019040584564209,
0.0631520226597786,
-0.11607038229703903,
0.295075923204422,
0.03458452597260475,
0.0865277349948883,
-0.02328609861433506,
-0.08859213441610336,
-0.08770044893026352,
-0.06606435775756836,
0.0345359705388546,
0.13717274367809296,
-0.15966928005218506,
0.0023718939628452063,
-0.020060541108250618,
-0.07089650630950928,
0.03310311958193779,
-0.14373166859149933,
-0.08950982987880707,
0.13774389028549194,
-0.09103580564260483,
0.0176619254052639,
-0.10905791074037552,
0.042548730969429016,
0.01799529790878296,
-0.07939476519823074,
-0.07653254270553589,
0.03079596534371376,
-0.30845698714256287,
-0.0690842941403389,
0.055294230580329895,
0.03574516624212265,
0.044677603989839554,
-0.0035343703348189592,
-0.2084978073835373,
0.007703103125095367,
0.10679891705513,
-0.08080543577671051,
-0.0032778403256088495,
0.001105711329728365,
0.047285620123147964,
0.09687892347574234,
-0.028441239148378372,
0.0944053903222084,
0.05366955325007439,
-0.11415918916463852,
-0.021146664395928383,
0.09919366240501404,
0.06630349159240723,
-0.0708913654088974,
-0.03580106049776077,
-0.05945426970720291,
0.08795791864395142,
-0.0019193680491298437,
-0.0009831447387114167,
0.021998150274157524,
-0.14902491867542267,
-0.15095631778240204,
0.00155294977594167,
-0.17937001585960388,
-0.04310636222362518,
-0.19298341870307922,
-0.04744527488946915,
-0.02816571295261383,
0.08101550489664078,
0.08714348822832108,
0.13339543342590332,
-0.13273505866527557,
0.006026241462677717,
0.18028748035430908,
0.04969903826713562,
-0.12689101696014404,
0.013212683610618114,
0.03074176423251629,
-0.19708767533302307,
0.16521179676055908,
0.0268260408192873,
0.06442926079034805,
-0.028692925348877907,
0.34323960542678833,
0.019956305623054504,
0.006228259764611721,
-0.04029617831110954,
0.14248009026050568,
-0.18063285946846008,
-0.0268287044018507,
0.019040333107113838,
0.019065052270889282,
0.10631806403398514,
0.1448543220758438,
0.06278352439403534,
-0.13876335322856903,
-0.058087315410375595,
0.06411173194646835,
-0.05100705847144127,
-0.014206512831151485,
-0.09130880236625671,
-0.025903210043907166,
0.02953522466123104,
-0.1309538185596466,
0.05684347823262215,
0.16935133934020996,
-0.09253779798746109,
0.08390577882528305,
0.0930686816573143,
-0.04333653301000595,
0.03445993363857269,
-0.07767792046070099,
0.04265996441245079,
-0.016485659405589104,
-0.08843053877353668,
0.09046211838722229,
-0.1682782918214798,
-0.06228925660252571,
0.12067331373691559,
0.030391588807106018,
-0.1796606332063675,
0.04917021095752716,
-0.10466203093528748,
-0.12840989232063293,
-0.11676641553640366,
0.05998285487294197,
0.0002857705403584987,
0.002233911072835326,
0.004112827125936747,
0.162875235080719,
0.18340587615966797,
0.03965510427951813,
-0.2342957854270935,
0.07710559666156769,
0.026949821040034294,
0.04945462569594383,
0.12546458840370178,
-0.02078859508037567,
-0.12149897962808609,
-0.039504487067461014,
-0.21242007613182068,
0.15731075406074524,
-0.17943501472473145,
-0.04931141808629036,
0.01693129725754261,
0.03983438387513161,
-0.05270177870988846,
-0.02891387976706028,
-0.030066300183534622,
-0.15711970627307892,
-0.11265798658132553,
-0.03860574588179588,
-0.2287796288728714,
0.022500865161418915,
-0.08014746010303497,
-0.19722062349319458,
-0.07124839723110199,
-0.059933047741651535,
-0.2362271547317505,
-0.1629151701927185,
-0.0003509945818223059,
0.22604900598526,
-0.012140664272010326,
-0.02684064209461212,
0.05674194172024727,
-0.09214992821216583,
0.03724447637796402,
0.118777334690094,
0.007217545993626118,
0.13634620606899261,
0.1550818532705307,
-0.050792038440704346,
0.08878934383392334,
0.03403773158788681,
0.07301884144544601,
0.0628727376461029,
-0.1565360575914383,
-0.07126107066869736,
0.006382743827998638,
-0.2717168629169464,
-0.038809891790151596,
-0.06872304528951645,
0.11944993585348129,
0.19956627488136292,
0.1542474627494812,
0.16696789860725403,
0.0006172144785523415,
-0.016284635290503502,
0.14895480871200562,
0.013424205593764782,
0.04567194730043411,
0.06540822982788086,
-0.2795049548149109,
0.04030463844537735,
0.03377285599708557,
-0.03393338993191719,
-0.06934116780757904,
-0.11048931628465652,
-0.07001172006130219,
-0.004879435990005732,
-0.15861934423446655,
0.043922439217567444,
-0.01758125051856041,
0.06547725945711136,
-0.14331556856632233,
-0.017407048493623734,
0.20336461067199707,
0.08957342058420181,
-0.004834380466490984,
-0.05133385211229324,
0.028996556997299194,
-0.03823022544384003,
0.054304830729961395,
0.12884479761123657,
-0.07885754108428955,
0.07746617496013641,
-0.13446712493896484,
0.01883854530751705,
-0.0563068650662899,
0.2222617119550705,
-0.02878405712544918,
0.04219255968928337,
-0.09219261258840561,
0.16341879963874817,
0.2264665812253952,
-0.02846016176044941,
0.021298477426171303,
0.17559178173542023,
0.020806023851037025,
0.057646770030260086,
0.00228486442938447,
0.07899888604879379,
0.12047632783651352,
0.047736167907714844,
0.2227005511522293,
0.11414164304733276,
-0.017864922061562538,
0.13702180981636047,
-0.10331360250711441,
0.002418168354779482,
-0.032556209713220596,
-0.02330280840396881,
-0.07343509793281555,
-0.16034242510795593,
-0.10997124761343002,
-0.0710235983133316,
0.15018868446350098,
0.011603042483329773,
-0.012713836506009102,
0.010279301553964615,
0.01828618533909321,
0.10892991721630096,
-0.010491929948329926,
0.1323564350605011,
-0.06611107289791107,
0.11917322129011154,
0.06882336735725403,
0.03340083733201027,
-0.030172498896718025,
0.13744273781776428,
-0.2399693876504898,
0.01738952472805977,
-0.03177015855908394,
-0.062031712383031845,
0.06123296171426773,
-0.028723277151584625,
-0.14138662815093994,
-0.03816781938076019,
-0.1470322161912918,
0.0035696111153811216,
0.1077355146408081,
0.09317575395107269,
0.07964849472045898,
-0.11107651144266129,
-0.19299836456775665,
-0.17584756016731262,
-0.12176068872213364,
0.1947012096643448,
0.04878826439380646,
0.2853620648384094,
-0.26332414150238037,
-0.014520690776407719,
0.24266810715198517,
0.10628630965948105,
-0.058686770498752594,
-0.05846945941448212,
0.03311004117131233,
0.05997090041637421,
0.17432302236557007,
0.3093356788158417,
-0.20012925565242767,
-0.014898257330060005,
0.10582403093576431,
0.04088999330997467,
0.11230474710464478,
-0.025858137756586075,
0.06153176352381706,
0.1410122811794281,
-0.06248030066490173,
0.06926567852497101,
0.0007096889894455671,
0.2828232944011688,
-0.016652898862957954,
0.08931808918714523,
0.046880897134542465,
-0.018247663974761963,
-0.033579401671886444,
0.08274765312671661,
0.11733625829219818,
-0.055667340755462646,
-0.041569389402866364,
-0.024909939616918564,
-0.025828035548329353,
-0.08308114111423492,
-0.10216579586267471,
0.09865696728229523,
-0.13158996403217316,
0.0877782553434372,
-0.12505289912223816,
0.11856454610824585,
0.011661959812045097,
-0.004093932453542948,
0.11322151869535446,
0.07169508934020996,
0.007041939999908209,
-0.10102180391550064,
-0.006066592875868082,
-0.002829600591212511,
-0.2424413412809372,
-0.07520250976085663,
0.0003627185651566833,
0.040535420179367065,
-0.07912375032901764,
0.026362895965576172,
-0.02215663716197014,
-0.11385119706392288,
-0.09898143261671066,
0.034217432141304016,
0.0018048352794721723,
-0.08991659432649612,
-0.05032858997583389,
-0.00823981873691082,
0.017948217689990997,
-0.0023039786610752344,
0.06305103003978729,
-0.11374656111001968,
-0.13650085031986237,
0.08133251219987869,
-0.06238911300897598,
-0.03704896196722984,
0.07251241058111191,
0.14857624471187592,
0.01656138338148594,
0.03805428370833397,
0.1949419379234314,
0.058105774223804474,
-0.07269573211669922,
-0.061581920832395554,
0.11556665599346161,
0.04455813020467758,
-0.08258474618196487,
0.08365891873836517,
-0.1936543732881546,
-0.02137189731001854,
-0.21106305718421936,
-0.11122506856918335,
0.01163444947451353,
0.13089436292648315,
0.13760748505592346,
-0.10699507594108582,
-0.0010297062108293176,
0.10116175562143326,
-0.22085262835025787,
-0.08666253834962845,
0.35922983288764954,
0.01968981698155403,
-0.06582079082727432,
0.09496308863162994,
-2.5600694737215197e-32,
-0.004795708227902651,
0.008389873430132866,
-0.004812652710825205,
-0.0748521238565445,
-0.11369749158620834,
0.06691554188728333,
0.05947184935212135,
-0.010543908923864365,
0.030000124126672745,
-0.21376930177211761,
-0.12111490219831467,
0.036580778658390045,
0.02601764351129532,
-0.07519827783107758,
-0.15249791741371155,
-0.008146197535097599,
0.035265613347291946,
-0.016219962388277054,
-0.05860503762960434,
0.02135096676647663,
0.17645053565502167,
0.01669437438249588,
0.15082429349422455,
0.03914772719144821,
-0.11941756308078766,
-0.0011777235195040703,
-0.08606359362602234,
-0.22474849224090576,
0.015587185509502888,
-0.04528816044330597,
0.030413148924708366,
0.11096679419279099,
-0.056993573904037476,
-0.08827123045921326,
-0.07930905371904373,
-0.003014468355104327,
-0.12535028159618378,
-0.06367158144712448,
-0.07088553160429001,
0.019780486822128296,
0.10785282403230667,
0.1576562225818634,
0.08989646285772324,
-0.0728219598531723,
0.0717078447341919,
0.16836844384670258,
-0.0676565170288086,
-0.027536064386367798,
-0.04193422198295593,
0.10063636302947998,
0.20290572941303253,
-0.05667326599359512,
-0.08883728832006454,
0.19834595918655396,
0.06173454225063324,
-0.06447984278202057,
-0.04145639017224312,
0.19012358784675598,
-0.3134985864162445,
0.08011424541473389,
0.11648454517126083,
-0.03963660076260567,
0.1682291477918625,
0.10861536115407944,
0.13719740509986877,
0.02713884599506855,
0.36799702048301697,
0.055328164249658585,
0.05711722373962402,
0.025094039738178253,
-0.042325425893068314,
0.08443045616149902,
-0.16937988996505737,
0.06208683177828789,
-0.11803503334522247,
-0.1347801387310028,
-0.09964480251073837,
-0.10979271680116653,
-0.013427158817648888,
-0.006407299544662237,
0.08091097325086594,
0.04359304904937744,
0.05574975162744522,
0.033341072499752045,
-0.09483711421489716,
0.15178319811820984,
-0.025807572528719902,
0.026580454781651497,
-0.11168152093887329,
-0.05334467813372612,
0.05495019629597664,
0.2594859302043915,
-0.044103335589170456,
0.0076354872435331345,
-0.028362179175019264,
0.021570459008216858,
0.03050657920539379,
0.06774390488862991,
-0.1663839966058731,
-0.0030986452475190163,
-0.03319618105888367,
-0.07044008374214172,
0.13918861746788025,
0.06699260324239731,
0.15435583889484406,
-0.01775890216231346,
0.02949412912130356,
-0.14272193610668182,
-0.1433294117450714,
-0.005004627164453268,
0.07158294320106506,
-0.03666410595178604,
0.1327962726354599,
0.0192499291151762,
0.20296268165111542,
-0.01888534240424633,
0.04365105554461479,
-0.09406115114688873,
0.13755957782268524,
0.2031446099281311,
0.009605620056390762,
-0.08148142695426941,
-0.13651737570762634,
-0.03170188516378403,
0.059374552220106125,
0.043378282338380814,
-0.1957663744688034,
-0.1996515989303589,
0.11265869438648224,
0.04617895931005478,
0.007532427553087473,
-0.040996186435222626,
7.519293490076961e-7,
-0.1690264344215393,
0.15839532017707825,
-0.06037549301981926,
-0.23457704484462738,
-0.17767725884914398,
0.041743937879800797,
-0.1835392862558365,
0.03777773305773735,
0.057697594165802,
0.21763181686401367,
0.1812855452299118,
-0.10075122863054276,
-0.039397791028022766,
0.02476656250655651,
0.06739424914121628,
-0.01550914067775011,
-0.2272360920906067,
0.14731456339359283,
-0.014345325529575348,
0.11553426086902618,
-0.03066438063979149,
0.11864851415157318,
0.24493928253650665,
-0.027537565678358078,
-0.06304377317428589,
0.11344233900308609,
-0.11042745411396027,
-0.13907265663146973,
-0.037883397191762924,
0.05628187209367752,
-0.04339918494224548,
0.07429353147745132,
0.06685452163219452,
-0.03394623100757599,
0.004760994575917721,
-0.08318065851926804,
-0.062081024050712585,
-0.08516167104244232,
0.09887869656085968,
-0.09858812391757965,
0.08836856484413147,
0.09341581910848618,
0.024424031376838684,
-0.1678130179643631,
-0.004047295078635216,
-0.019139839336276054,
-0.08776146173477173,
-0.010083063505589962,
-0.2040361762046814,
0.18106785416603088,
0.10667340457439423,
0.0748196542263031,
0.10781509429216385,
0.25319376587867737,
-0.06125468760728836,
0.06796534359455109,
-0.027035104110836983,
-0.15430814027786255,
0.14487677812576294,
-0.1197100579738617,
-0.17115774750709534,
-0.04052562639117241,
-0.00544258626177907,
0.035626351833343506,
-0.021766558289527893,
-0.056324440985918045,
-0.07303980737924576,
8.339753597662478e-35,
-0.11324281990528107,
0.006945101078599691,
-0.029047103598713875,
-0.19939766824245453,
0.023650595918297768,
-0.01697651296854019,
0.1551368236541748,
-0.025723330676555634,
0.02249305695295334,
-0.19790680706501007,
-0.06902013719081879
] |
https://github.com/huggingface/datasets/issues/2407 | .map() function got an unexpected keyword argument 'cache_file_name' | I think you are right. I used cache_file_names={data1: name1, data2: name2} and it works. Thank you! | ## Describe the bug
I'm trying to save the result of datasets.map() to a specific file, so that I can easily share it among multiple computers without reprocessing the dataset. However, when I try to pass an argument 'cache_file_name' to the .map() function, it throws an error that ".map() function got an unexpected keyword argument 'cache_file_name'".
I believe I'm using the latest dataset 1.6.2. Also seems like the document and the actual code indicates there is an argument 'cache_file_name' for the .map() function.
Here is the code I use
## Steps to reproduce the bug
```datasets = load_from_disk(dataset_path=my_path)
[...]
def tokenize_function(examples):
return tokenizer(examples[text_column_name])
logger.info("Mapping dataset to tokenized dataset.")
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=preprocessing_num_workers,
remove_columns=column_names,
load_from_cache_file=True,
cache_file_name="my_tokenized_file"
)
```
## Actual results
tokenized_datasets = datasets.map(
TypeError: map() got an unexpected keyword argument 'cache_file_name'
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.6.2
- Platform:Linux-4.18.0-193.28.1.el8_2.x86_64-x86_64-with-glibc2.10
- Python version:3.8.5
- PyArrow version:3.0.0
| 16 | .map() function got an unexpected keyword argument 'cache_file_name'
## Describe the bug
I'm trying to save the result of datasets.map() to a specific file, so that I can easily share it among multiple computers without reprocessing the dataset. However, when I try to pass an argument 'cache_file_name' to the .map() function, it throws an error that ".map() function got an unexpected keyword argument 'cache_file_name'".
I believe I'm using the latest dataset 1.6.2. Also seems like the document and the actual code indicates there is an argument 'cache_file_name' for the .map() function.
Here is the code I use
## Steps to reproduce the bug
```datasets = load_from_disk(dataset_path=my_path)
[...]
def tokenize_function(examples):
return tokenizer(examples[text_column_name])
logger.info("Mapping dataset to tokenized dataset.")
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=preprocessing_num_workers,
remove_columns=column_names,
load_from_cache_file=True,
cache_file_name="my_tokenized_file"
)
```
## Actual results
tokenized_datasets = datasets.map(
TypeError: map() got an unexpected keyword argument 'cache_file_name'
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version:1.6.2
- Platform:Linux-4.18.0-193.28.1.el8_2.x86_64-x86_64-with-glibc2.10
- Python version:3.8.5
- PyArrow version:3.0.0
I think you are right. I used cache_file_names={data1: name1, data2: name2} and it works. Thank you! | [
0.1786501705646515,
0.01675279438495636,
-0.07950542122125626,
-0.1534431278705597,
0.2152244746685028,
0.1578371524810791,
0.23919178545475006,
0.08116742223501205,
0.016477931290864944,
0.04921593517065048,
-0.09343895316123962,
0.061664678156375885,
-0.07672850042581558,
-0.15008015930652618,
0.06386440247297287,
-0.07699431478977203,
0.10775399208068848,
-0.043470948934555054,
0.017053280025720596,
0.08467110246419907,
-0.18611568212509155,
0.12563161551952362,
0.14846773445606232,
0.13566313683986664,
-0.05173547565937042,
-0.1208382248878479,
-0.004097366705536842,
0.057360801845788956,
-0.1073509156703949,
0.008350875228643417,
0.000399534881580621,
0.045854974538087845,
0.009275147691369057,
0.10353564471006393,
0.000005405024694482563,
0.06160607561469078,
0.17971140146255493,
-0.006242250092327595,
0.03669667989015579,
-0.16979362070560455,
0.13491006195545197,
0.08683201670646667,
-0.03399321064352989,
-0.06439027935266495,
-0.0028198889922350645,
-0.17952391505241394,
0.14103469252586365,
-0.060221605002880096,
0.08450542390346527,
0.035430580377578735,
0.029765993356704712,
-0.20360560715198517,
-0.06312069296836853,
-0.1682700663805008,
0.14566059410572052,
-0.03356080874800682,
0.05664897337555885,
-0.06387075036764145,
-0.281139612197876,
-0.14751778542995453,
0.014901875518262386,
0.0184756089001894,
-0.14124135673046112,
0.06283431500196457,
-0.02713990956544876,
0.0960254818201065,
-0.1259644478559494,
-0.13956592977046967,
-0.0011415771441534162,
0.15331488847732544,
-0.015154603868722916,
-0.07259031385183334,
-0.11008616536855698,
0.12170027196407318,
-0.09884177893400192,
-0.10959845036268234,
-0.05438053235411644,
-0.08737318962812424,
-0.06511339545249939,
0.08926939219236374,
-0.005070138722658157,
0.0006439765566028655,
0.174593985080719,
-0.017113298177719116,
-0.09833747893571854,
-0.04649779945611954,
-0.07114627212285995,
0.18201245367527008,
-0.06408276408910751,
-0.18183499574661255,
0.09637344628572464,
-0.0665806457400322,
-0.09307011216878891,
-0.06724878400564194,
0.01786240004003048,
-0.05478497967123985,
-0.06670152395963669,
-0.1135307252407074,
0.001643912517465651,
-0.013396012596786022,
-0.13063138723373413,
-0.2525758445262909,
0.031311485916376114,
0.15572534501552582,
-0.09036733955144882,
0.006479999050498009,
0.012549874372780323,
0.11532202363014221,
-0.06685629487037659,
-0.06446517258882523,
-0.14496107399463654,
0.007611141074448824,
-0.10959060490131378,
-0.01996804028749466,
0.18573959171772003,
0.03551196679472923,
0.0531085841357708,
0.16302049160003662,
-0.030157530680298805,
0.14479443430900574,
-0.028161000460386276,
0.032731086015701294,
-0.09416324645280838,
0.16713345050811768,
0.06825729459524155,
-0.16557979583740234,
-0.04114645719528198,
0.09988360852003098,
-0.03361830487847328,
-0.05838475376367569,
-0.042401738464832306,
0.08845406025648117,
0.01519746333360672,
0.04107348248362541,
0.14570042490959167,
0.07846099883317947,
0.026856813579797745,
-0.06526640057563782,
0.00459753954783082,
0.09473776072263718,
0.1512095183134079,
-0.14653073251247406,
-0.010911032557487488,
-0.03583516925573349,
0.13172706961631775,
0.059582650661468506,
0.14190511405467987,
0.1183699369430542,
-0.002319109393283725,
0.02824367769062519,
-0.2714305818080902,
0.178074449300766,
-0.04231469705700874,
0.03299516439437866,
0.07019194960594177,
0.07385311275720596,
-0.05908965691924095,
-0.09186282008886337,
-0.005319209769368172,
-0.012659914791584015,
0.036663372069597244,
-0.06683904677629471,
-0.0031950860284268856,
-0.1703423708677292,
0.10584760457277298,
0.05976497381925583,
0.18519553542137146,
0.15529224276542664,
-0.04744895547628403,
-0.013406991958618164,
0.02800736576318741,
0.10622431337833405,
-0.003642006078734994,
-0.07386616617441177,
-0.19456589221954346,
0.25040504336357117,
-0.05742773413658142,
0.1459241509437561,
-0.1651057004928589,
-0.07675610482692719,
0.03305457532405853,
-0.2110617458820343,
0.06431230902671814,
-0.08119849860668182,
0.2741093337535858,
0.05032612383365631,
0.07619842886924744,
-0.042069144546985626,
-0.09086593985557556,
-0.09354980289936066,
-0.04357410967350006,
0.03125574439764023,
0.14381827414035797,
-0.18391020596027374,
-0.0428488664329052,
-0.003858859185129404,
-0.09033755958080292,
0.020237935706973076,
-0.1543932408094406,
-0.05016997456550598,
0.14694401621818542,
-0.0691462904214859,
0.03731565549969673,
-0.10032327473163605,
0.022103484719991684,
0.05782914161682129,
-0.07817476987838745,
-0.11694994568824768,
0.022038711234927177,
-0.30041149258613586,
-0.04126196354627609,
0.02989204414188862,
0.07616959512233734,
0.0302728358656168,
0.021231472492218018,
-0.20784924924373627,
0.014520982280373573,
0.09533656388521194,
-0.07615958899259567,
-0.024174470454454422,
0.03268731012940407,
0.04958455637097359,
0.06513416767120361,
-0.028029058128595352,
0.09506826847791672,
0.02301766537129879,
-0.1066729798913002,
-0.021584907546639442,
0.06025633215904236,
0.04777215048670769,
-0.053641177713871,
-0.019186681136488914,
-0.06735984236001968,
0.10057337582111359,
-0.02820139192044735,
0.00005908642560825683,
0.026292605325579643,
-0.1325480192899704,
-0.17003898322582245,
0.016687605530023575,
-0.16948634386062622,
-0.04060017690062523,
-0.1755247861146927,
-0.035098135471343994,
-0.03403877839446068,
0.08682159334421158,
0.09569806605577469,
0.12651851773262024,
-0.14241839945316315,
0.027031930163502693,
0.19988472759723663,
0.037244703620672226,
-0.1636878103017807,
0.02734159491956234,
0.05378970876336098,
-0.16845618188381195,
0.1710984855890274,
0.012179802171885967,
0.048319727182388306,
-0.05274582654237747,
0.3528841733932495,
0.03431689739227295,
-0.012351381592452526,
-0.037134815007448196,
0.158731147646904,
-0.18091171979904175,
-0.026155168190598488,
0.014883210882544518,
0.039361029863357544,
0.14023610949516296,
0.14105355739593506,
0.0638822540640831,
-0.11593636125326157,
-0.05291737988591194,
0.06602881103754044,
-0.06377158313989639,
-0.015797652304172516,
-0.09229181706905365,
-0.018990440294146538,
0.04863912612199783,
-0.12336821854114532,
0.053464483469724655,
0.17743976414203644,
-0.07751242071390152,
0.09106390923261642,
0.0868661105632782,
-0.03364589437842369,
0.007372389547526836,
-0.07644734531641006,
0.055725522339344025,
-0.008460421115159988,
-0.08227691054344177,
0.0969887524843216,
-0.15636013448238373,
-0.0858847126364708,
0.1546994298696518,
0.051189228892326355,
-0.1798655241727829,
0.05727887898683548,
-0.11037473380565643,
-0.14694634079933167,
-0.11730482429265976,
0.04014527052640915,
0.011313294991850853,
-0.0229132529348135,
-0.017704378813505173,
0.16403576731681824,
0.20672060549259186,
0.04425709322094917,
-0.25635549426078796,
0.041031960397958755,
0.04076365754008293,
0.04259844869375229,
0.15008370578289032,
-0.0022126450203359127,
-0.11072304099798203,
-0.05638326331973076,
-0.20700861513614655,
0.1735292375087738,
-0.1965678632259369,
-0.06335537880659103,
-0.0019014787394553423,
0.03227020800113678,
-0.08090823143720627,
-0.01661154441535473,
-0.023416277021169662,
-0.13396264612674713,
-0.07419778406620026,
-0.017967410385608673,
-0.23277761042118073,
0.0386371873319149,
-0.05726569518446922,
-0.20900818705558777,
-0.06702835112810135,
-0.07299723476171494,
-0.21411876380443573,
-0.16477251052856445,
-0.05008084326982498,
0.21838194131851196,
-0.0008197237038984895,
-0.013413871638476849,
0.059815410524606705,
-0.07840165495872498,
0.05949053913354874,
0.11473634839057922,
-0.0006746716680936515,
0.11062031984329224,
0.15979571640491486,
-0.0822456106543541,
0.07461102306842804,
0.0617954395711422,
0.048234593123197556,
0.06172585114836693,
-0.1597406566143036,
-0.07927602529525757,
0.004050015937536955,
-0.2662757337093353,
-0.0376211516559124,
-0.0723869726061821,
0.1216534972190857,
0.18497873842716217,
0.1507522612810135,
0.10182619094848633,
-0.004371104761958122,
-0.0041577634401619434,
0.15647941827774048,
0.013363063335418701,
0.058640118688344955,
0.08690132945775986,
-0.24486179649829865,
0.025771167129278183,
0.07218058407306671,
-0.01692776381969452,
-0.05537981539964676,
-0.13488677144050598,
-0.06296320259571075,
-0.00567645113915205,
-0.13285167515277863,
0.024314673617482185,
-0.00376075878739357,
0.07131122797727585,
-0.1456194519996643,
-0.04436305910348892,
0.22606047987937927,
0.08320490270853043,
-0.01660110056400299,
-0.040488071739673615,
0.02066834457218647,
-0.04230468347668648,
0.026030510663986206,
0.13513150811195374,
-0.07935313135385513,
0.04315570369362831,
-0.13494299352169037,
0.013402017764747143,
-0.057876620441675186,
0.2318878471851349,
-0.03472576662898064,
0.05421343818306923,
-0.09661410003900528,
0.15692465007305145,
0.21134822070598602,
-0.057115986943244934,
0.010631049983203411,
0.16118967533111572,
0.05612357705831528,
0.049760300666093826,
0.023485055193305016,
0.07658553123474121,
0.1093224361538887,
0.009346666745841503,
0.25344395637512207,
0.11761641502380371,
-0.028271859511733055,
0.11705976724624634,
-0.09132520109415054,
-0.004363583400845528,
-0.05389606952667236,
-0.02410374954342842,
-0.07315991818904877,
-0.14645329117774963,
-0.1038200706243515,
-0.1008186936378479,
0.1448289155960083,
0.016584325581789017,
0.0026178297121077776,
0.008097022771835327,
0.027314061298966408,
0.08894077688455582,
-0.03039814904332161,
0.12669208645820618,
-0.05824359133839607,
0.11629624664783478,
0.04074357822537422,
0.016694877296686172,
-0.03684265539050102,
0.10380525887012482,
-0.21127104759216309,
0.024227207526564598,
-0.05846499279141426,
-0.04998554289340973,
0.03979528322815895,
-0.02909463830292225,
-0.1521356701850891,
-0.019310031086206436,
-0.1440846174955368,
0.009150808677077293,
0.09483955800533295,
0.09830182045698166,
0.06034504249691963,
-0.08970014750957489,
-0.18646784126758575,
-0.17148737609386444,
-0.09717666357755661,
0.19988763332366943,
0.02629709802567959,
0.2870548963546753,
-0.28781241178512573,
-0.027271894738078117,
0.23104098439216614,
0.11810798197984695,
-0.05697372183203697,
-0.07896187901496887,
0.03970242291688919,
0.05039515718817711,
0.16047778725624084,
0.30761992931365967,
-0.20098698139190674,
-0.015516601502895355,
0.12729376554489136,
0.034842200577259064,
0.13294470310211182,
-0.011948919855058193,
0.06849171966314316,
0.12504181265830994,
-0.07991499453783035,
0.06507807970046997,
0.046918194741010666,
0.27528271079063416,
-0.0009349436732009053,
0.09111273288726807,
0.038177330046892166,
-0.016217758879065514,
-0.0700877234339714,
0.08345108479261398,
0.09867799282073975,
-0.04712473601102829,
-0.05926166847348213,
-0.017549851909279823,
-0.03258596733212471,
-0.10955701768398285,
-0.08843200653791428,
0.09628212451934814,
-0.14909586310386658,
0.08414258062839508,
-0.10760121792554855,
0.12586170434951782,
0.0024382504634559155,
-0.007879099808633327,
0.12755370140075684,
0.06232493743300438,
-0.0011975953821092844,
-0.10661803185939789,
0.01662541553378105,
0.011500333435833454,
-0.23077459633350372,
-0.0848822146654129,
-0.029106341302394867,
0.046624522656202316,
-0.07252790033817291,
0.030917298048734665,
-0.022059278562664986,
-0.10985652357339859,
-0.08712133765220642,
0.011164223775267601,
-0.03326926752924919,
-0.059963397681713104,
-0.06927456706762314,
-0.011833073571324348,
0.025206660851836205,
-0.009849553927779198,
0.03504261001944542,
-0.09214397519826889,
-0.1652757227420807,
0.06021346151828766,
-0.06492944806814194,
-0.04498010501265526,
0.07910580188035965,
0.15554898977279663,
0.03805879130959511,
0.03745238482952118,
0.2035858929157257,
0.04134095460176468,
-0.04263724759221077,
-0.035205040127038956,
0.08748143166303635,
0.02518048882484436,
-0.033048853278160095,
0.08773145824670792,
-0.17423191666603088,
0.016843382269144058,
-0.2125774621963501,
-0.08703724294900894,
-0.01222961489111185,
0.11261879652738571,
0.15016788244247437,
-0.12102806568145752,
-0.043173424899578094,
0.11316362023353577,
-0.20414374768733978,
-0.09245816618204117,
0.3673439025878906,
0.026532122865319252,
-0.05109717696905136,
0.031682610511779785,
-2.586220108797088e-32,
-0.018659358844161034,
0.026154540479183197,
0.00907066185027361,
-0.06416196376085281,
-0.12304665148258209,
0.06633084267377853,
0.06581656634807587,
-0.016921138390898705,
0.02808935008943081,
-0.20791594684123993,
-0.0990636944770813,
0.02936779148876667,
0.02017136476933956,
-0.0656796395778656,
-0.1802869290113449,
-0.016915295273065567,
0.013246661983430386,
-0.002086099237203598,
-0.05645846202969551,
0.029149802401661873,
0.18057648837566376,
0.0027221599593758583,
0.18916183710098267,
0.032806944102048874,
-0.11656239628791809,
0.01774153858423233,
-0.07228785753250122,
-0.24841952323913574,
0.014436108991503716,
-0.030989764258265495,
0.013645987957715988,
0.09780531376600266,
-0.07053466886281967,
-0.0854857861995697,
-0.06561034172773361,
-0.010483741760253906,
-0.12961634993553162,
-0.0747775211930275,
-0.08617783337831497,
0.02103486843407154,
0.11799856275320053,
0.12851810455322266,
0.09387066960334778,
-0.08978641033172607,
0.0501847043633461,
0.19639194011688232,
-0.08500654995441437,
-0.04127989709377289,
-0.06766103208065033,
0.07821845263242722,
0.21009686589241028,
-0.061785850673913956,
-0.09622315317392349,
0.21307659149169922,
0.040365952998399734,
-0.045721013098955154,
-0.04981005936861038,
0.163485586643219,
-0.31678298115730286,
0.06739269942045212,
0.0633191466331482,
-0.026561366394162178,
0.17719922959804535,
0.10497303307056427,
0.17614613473415375,
0.04122808203101158,
0.35958513617515564,
0.06035201624035835,
0.07333297282457352,
0.06829488277435303,
-0.06402786821126938,
0.07113023847341537,
-0.1609915792942047,
0.07096311450004578,
-0.13827621936798096,
-0.16766810417175293,
-0.09217114746570587,
-0.10560385882854462,
-0.028041645884513855,
0.019119512289762497,
0.07654324173927307,
0.0372917465865612,
0.06609825044870377,
0.01670372113585472,
-0.1381102353334427,
0.16553454101085663,
-0.02274031564593315,
0.046202853322029114,
-0.11579614877700806,
-0.04654400423169136,
0.07201535254716873,
0.2722838521003723,
-0.04772576689720154,
0.020116792991757393,
-0.03449436277151108,
0.025888850912451744,
0.04839112237095833,
0.033607449382543564,
-0.14776334166526794,
0.002992875874042511,
-0.0249656792730093,
-0.07818371057510376,
0.11912257969379425,
0.06968627870082855,
0.17389698326587677,
-0.016881929710507393,
0.025491928681731224,
-0.13862988352775574,
-0.16590462625026703,
-0.013637230731546879,
0.06154782325029373,
-0.0523194894194603,
0.17008167505264282,
-0.010335267521440983,
0.18281279504299164,
-0.026197422295808792,
0.04145486652851105,
-0.07378268986940384,
0.1266225129365921,
0.18611018359661102,
0.01781463995575905,
-0.10867831110954285,
-0.11173988878726959,
-0.026996534317731857,
0.03923213109374046,
0.052208125591278076,
-0.196340873837471,
-0.2046956717967987,
0.09718751162290573,
0.04519784078001976,
0.009916414506733418,
-0.017720023170113564,
7.556890864179877e-7,
-0.16869759559631348,
0.13813571631908417,
-0.06734029948711395,
-0.2132434844970703,
-0.17391668260097504,
0.0595126748085022,
-0.15405991673469543,
0.03417627885937691,
0.07031463086605072,
0.24721647799015045,
0.1492825746536255,
-0.09928770363330841,
-0.0423695407807827,
0.010234174318611622,
0.05469672754406929,
-0.01481779757887125,
-0.25156891345977783,
0.16637378931045532,
0.022482411935925484,
0.13177725672721863,
-0.049169085919857025,
0.11552292108535767,
0.24371686577796936,
-0.006383929867297411,
-0.07401050627231598,
0.10715256631374359,
-0.08413660526275635,
-0.1672300547361374,
-0.012163807637989521,
0.06726790964603424,
-0.03171925991773605,
0.08665084838867188,
0.06655959039926529,
-0.03328387439250946,
-0.00011263915803283453,
-0.07159850746393204,
-0.06081249937415123,
-0.09312323480844498,
0.09656039625406265,
-0.13826295733451843,
0.08144176751375198,
0.06843069195747375,
0.0225540641695261,
-0.15849238634109497,
-0.0009151072008535266,
-0.029989585280418396,
-0.12716829776763916,
-0.03687620535492897,
-0.21446192264556885,
0.17243602871894836,
0.11945297569036484,
0.07253553718328476,
0.06464236974716187,
0.22488698363304138,
-0.03738746419548988,
0.06734375655651093,
-0.03176545351743698,
-0.15406155586242676,
0.12583738565444946,
-0.12937501072883606,
-0.14803065359592438,
-0.030743062496185303,
-0.014355101622641087,
0.0018107034265995026,
-0.016882631927728653,
-0.034160975366830826,
-0.02021517977118492,
8.908804787971408e-35,
-0.10426190495491028,
-0.0002983307058457285,
-0.005427430849522352,
-0.2228429615497589,
0.02144908905029297,
-0.02260737679898739,
0.18929092586040497,
-0.03651868924498558,
0.031608548015356064,
-0.2186467945575714,
-0.07881250232458115
] |
https://github.com/huggingface/datasets/issues/2400 | Concatenate several datasets with removed columns is not working. | Hi,
did you fill out the env info section manually or by copy-pasting the output of the `datasets-cli env` command?
This code should work without issues on 1.6.2 version (I'm working on master (1.6.2.dev0 version) and can't reproduce this error). | ## Describe the bug
You can't concatenate datasets when you removed columns before.
## Steps to reproduce the bug
```python
from datasets import load_dataset, concatenate_datasets
wikiann= load_dataset("wikiann","en")
wikiann["train"] = wikiann["train"].remove_columns(["langs","spans"])
wikiann["test"] = wikiann["test"].remove_columns(["langs","spans"])
assert wikiann["train"].features.type == wikiann["test"].features.type
concate = concatenate_datasets([wikiann["train"],wikiann["test"]])
```
## Expected results
Merged dataset
## Actual results
```python
ValueError: External features info don't match the dataset:
Got
{'tokens': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'ner_tags': Sequence(feature=ClassLabel(num_classes=7, names=['O', 'B-PER', 'I-PER', 'B-ORG', 'I-ORG', 'B-LOC', 'I-LOC'], names_file=None, id=None), length=-1, id=None), 'langs': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'spans': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)}
with type
struct<langs: list<item: string>, ner_tags: list<item: int64>, spans: list<item: string>, tokens: list<item: string>>
but expected something like
{'ner_tags': Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None), 'tokens': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)}
with type
struct<ner_tags: list<item: int64>, tokens: list<item: string>>
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: ~1.6.2~ 1.5.0
- Platform: macos
- Python version: 3.8.5
- PyArrow version: 3.0.0
| 40 | Concatenate several datasets with removed columns is not working.
## Describe the bug
You can't concatenate datasets when you removed columns before.
## Steps to reproduce the bug
```python
from datasets import load_dataset, concatenate_datasets
wikiann= load_dataset("wikiann","en")
wikiann["train"] = wikiann["train"].remove_columns(["langs","spans"])
wikiann["test"] = wikiann["test"].remove_columns(["langs","spans"])
assert wikiann["train"].features.type == wikiann["test"].features.type
concate = concatenate_datasets([wikiann["train"],wikiann["test"]])
```
## Expected results
Merged dataset
## Actual results
```python
ValueError: External features info don't match the dataset:
Got
{'tokens': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'ner_tags': Sequence(feature=ClassLabel(num_classes=7, names=['O', 'B-PER', 'I-PER', 'B-ORG', 'I-ORG', 'B-LOC', 'I-LOC'], names_file=None, id=None), length=-1, id=None), 'langs': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'spans': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)}
with type
struct<langs: list<item: string>, ner_tags: list<item: int64>, spans: list<item: string>, tokens: list<item: string>>
but expected something like
{'ner_tags': Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None), 'tokens': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None)}
with type
struct<ner_tags: list<item: int64>, tokens: list<item: string>>
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: ~1.6.2~ 1.5.0
- Platform: macos
- Python version: 3.8.5
- PyArrow version: 3.0.0
Hi,
did you fill out the env info section manually or by copy-pasting the output of the `datasets-cli env` command?
This code should work without issues on 1.6.2 version (I'm working on master (1.6.2.dev0 version) and can't reproduce this error). | [
0.009739593602716923,
0.06064717099070549,
-0.0985681489109993,
0.16145138442516327,
0.17733094096183777,
0.0986139327287674,
0.1103123277425766,
0.015310201793909073,
-0.06965802609920502,
0.14300581812858582,
-0.07213149219751358,
0.022762272506952286,
0.1542220413684845,
0.10466817766427994,
0.07344778627157211,
0.053502392023801804,
-0.03897079452872276,
-0.020173735916614532,
-0.024045705795288086,
0.04326271265745163,
-0.1623310148715973,
0.062400296330451965,
0.051095157861709595,
0.007026492618024349,
0.04610643535852432,
0.036382611840963364,
-0.009762820787727833,
0.045947764068841934,
0.07499152421951294,
0.08912356197834015,
0.16982410848140717,
0.0468594953417778,
-0.04433711618185043,
0.17290906608104706,
0.000004382440693007084,
0.06017972528934479,
0.27183765172958374,
-0.1815454512834549,
0.10921289026737213,
-0.0587083175778389,
-0.001063029165379703,
-0.04596857726573944,
-0.0015719664515927434,
-0.13081860542297363,
0.01280043926090002,
-0.2125946581363678,
-0.08635776489973068,
0.16339890658855438,
0.2220219373703003,
0.03401751071214676,
-0.11753027886152267,
-0.016916077584028244,
-0.13667696714401245,
-0.11584899574518204,
0.029613591730594635,
-0.0038835532031953335,
0.028659004718065262,
-0.25797244906425476,
-0.23909395933151245,
-0.14981360733509064,
0.0014641036977991462,
-0.08490496873855591,
-0.011604414321482182,
-0.11100298911333084,
-0.2710374593734741,
0.05403146147727966,
-0.18362775444984436,
-0.13696610927581787,
0.0974431037902832,
0.16056124866008759,
-0.08540360629558563,
0.07077182084321976,
0.02426210790872574,
0.14818552136421204,
0.1439649611711502,
-0.13037721812725067,
-0.10171328485012054,
0.017313597723841667,
0.20300054550170898,
0.12488813698291779,
-0.07246547192335129,
-0.006593621801584959,
-0.03806282952427864,
-0.007637688424438238,
-0.07934825122356415,
0.14559315145015717,
0.029208235442638397,
0.2846774160861969,
-0.05440966784954071,
-0.03865215554833412,
0.08415086567401886,
-0.1842161864042282,
-0.14925284683704376,
-0.03272688761353493,
-0.00692606158554554,
-0.06700961291790009,
-0.1899040937423706,
-0.07084599137306213,
0.02445840649306774,
0.0820009708404541,
-0.37776339054107666,
-0.007547717075794935,
-0.07393867522478104,
-0.010447404347360134,
-0.3277680277824402,
0.1067078486084938,
-0.05967048183083534,
0.05392124503850937,
-0.19417162239551544,
-0.07736363261938095,
-0.17577090859413147,
0.07343269139528275,
0.16132882237434387,
0.03437618166208267,
-0.006698132026940584,
0.06893912702798843,
-0.06881897896528244,
0.15073183178901672,
0.046273745596408844,
0.16394872963428497,
-0.1562170386314392,
-0.05383589118719101,
0.05021979287266731,
-0.027751179412007332,
0.04583175480365753,
0.14218829572200775,
0.12725543975830078,
0.1801813244819641,
0.05843860283493996,
0.13400603830814362,
-0.061839621514081955,
0.12483604997396469,
0.12639228999614716,
-0.055370353162288666,
0.01063358224928379,
-0.002528632991015911,
-0.016661718487739563,
0.1375500112771988,
-0.005702838767319918,
-0.08623474091291428,
0.003768496448174119,
-0.18164871633052826,
0.1409870684146881,
-0.025655992329120636,
0.08259721845388412,
-0.12127730250358582,
0.011924033053219318,
-0.01351314876228571,
0.052235834300518036,
-0.16950009763240814,
-0.15808972716331482,
0.06738673150539398,
-0.24809987843036652,
0.12667851150035858,
0.03281093388795853,
0.04678849130868912,
0.1112348660826683,
-0.02426391839981079,
-0.1370599865913391,
-0.03318524360656738,
0.020769860595464706,
-0.04809662699699402,
-0.06621670722961426,
-0.09533144533634186,
0.00876722950488329,
0.16851027309894562,
-0.0069009303115308285,
-0.1636763960123062,
0.17980024218559265,
-0.12078700214624405,
0.263067364692688,
0.19132956862449646,
-0.25369203090667725,
-0.034663792699575424,
-0.08553577214479446,
0.10395549237728119,
-0.043345894664525986,
0.034604188054800034,
-0.17420271039009094,
-0.2356223165988922,
0.1371963620185852,
0.04423772171139717,
0.05341534689068794,
-0.06936223804950714,
0.041682787239551544,
0.14362934231758118,
0.15722988545894623,
0.09690456092357635,
-0.06317248195409775,
-0.16688629984855652,
-0.021561503410339355,
-0.06638501584529877,
0.07842954248189926,
0.0021903140004724264,
0.10932640731334686,
-0.06085265055298805,
0.02509821020066738,
0.024228207767009735,
0.039365001022815704,
-0.2519005835056305,
0.18962860107421875,
-0.18749918043613434,
-0.05207497999072075,
0.05992918461561203,
-0.08356181532144547,
-0.05461971089243889,
-0.30055445432662964,
-0.060937754809856415,
-0.0223090760409832,
-0.06111755594611168,
0.005686863325536251,
-0.11077246814966202,
0.08002237230539322,
-0.019932562485337257,
-0.12709300220012665,
-0.02050214447081089,
-0.12906117737293243,
0.09729903936386108,
-0.21234431862831116,
0.2158922702074051,
0.17092637717723846,
-0.05753510817885399,
-0.15228861570358276,
0.07776545733213425,
0.06547527760267258,
0.116325743496418,
0.0497153140604496,
-0.004931407514959574,
-0.02434471808373928,
0.35004088282585144,
0.052757006138563156,
-0.06743500381708145,
0.07654725015163422,
0.002672870410606265,
-0.13519872725009918,
0.04018457606434822,
-0.009178057312965393,
-0.349674791097641,
0.12402747571468353,
0.12481439858675003,
-0.15827621519565582,
-0.023685060441493988,
-0.14149686694145203,
-0.215529665350914,
-0.10765638947486877,
0.08241300284862518,
0.11572550982236862,
0.04293017461895943,
0.021269936114549637,
-0.024575427174568176,
0.01351012010127306,
0.06445727497339249,
-0.03220922872424126,
0.01691395975649357,
0.049968235194683075,
-0.03468608483672142,
0.006608666852116585,
0.12597233057022095,
0.10602670907974243,
-0.05394437536597252,
0.2201361209154129,
0.035381775349378586,
-0.16585230827331543,
-0.0027519995346665382,
0.08601249009370804,
-0.18278071284294128,
0.053658440709114075,
0.007156070321798325,
-0.003914114087820053,
0.03356333076953888,
0.26925188302993774,
-0.005462136585265398,
-0.035788603127002716,
0.16897505521774292,
-0.03436169773340225,
-0.10307563841342926,
-0.11541233956813812,
0.11271356791257858,
0.17509086430072784,
0.16975581645965576,
0.0297843124717474,
0.027925945818424225,
0.11208727210760117,
-0.1385698765516281,
0.07975542545318604,
0.09008712321519852,
-0.17244292795658112,
0.04180390015244484,
-0.14101353287696838,
-0.08161027729511261,
-0.16163422167301178,
-0.007429782766848803,
-0.03796922788023949,
-0.1001860499382019,
-0.0946139246225357,
0.04910849407315254,
0.06311432272195816,
-0.10256674885749817,
0.07627429813146591,
-0.19692552089691162,
-0.007825431413948536,
0.14720869064331055,
0.14350944757461548,
0.13555748760700226,
0.08076950162649155,
0.05005285516381264,
0.036972805857658386,
0.1353541761636734,
-0.1716826856136322,
-0.09747591614723206,
-0.07934535294771194,
0.1267784833908081,
-0.0168446097522974,
0.03115384839475155,
0.06715840101242065,
-0.017458438873291016,
-0.05143062397837639,
-0.30659955739974976,
0.16573025286197662,
0.12504078447818756,
-0.11188475787639618,
0.25486692786216736,
0.05785643309354782,
0.018667666241526604,
-0.0027862947899848223,
-0.13470248878002167,
-0.0970989465713501,
-0.2564399242401123,
0.027084868401288986,
-0.01731686480343342,
0.05805017426609993,
0.0436212494969368,
-0.07613832503557205,
-0.2283555269241333,
0.14834213256835938,
-0.08500208705663681,
-0.043230243027210236,
0.10490500181913376,
0.2139589637517929,
0.18758533895015717,
-0.05145253986120224,
0.0643831193447113,
-0.02579340711236,
0.09097568690776825,
0.15732163190841675,
-0.09751342982053757,
0.01957404613494873,
-0.07042860984802246,
0.06746537983417511,
-0.011770759709179401,
0.01187311951071024,
0.046580761671066284,
0.008359643630683422,
0.052134472876787186,
-0.011993346735835075,
0.2784605920314789,
-0.07974971830844879,
0.05992230400443077,
-0.08855234086513519,
-0.020334957167506218,
-0.008707715198397636,
-0.06973341852426529,
-0.011695089749991894,
0.008887376636266708,
0.12770314514636993,
0.06063304841518402,
0.10215768963098526,
0.10591927915811539,
-0.13084648549556732,
-0.1857619732618332,
0.05094969645142555,
0.02825075387954712,
0.12994801998138428,
0.07323287427425385,
-0.1173059269785881,
-0.007252352777868509,
-0.0020612345542758703,
-0.06109655275940895,
0.03542182222008705,
0.0028874792624264956,
-0.018996022641658783,
-0.04021085053682327,
0.002427825704216957,
0.16201089322566986,
0.03643329441547394,
0.20504258573055267,
-0.011524442583322525,
0.0602453388273716,
-0.13359737396240234,
-0.062291327863931656,
0.026987407356500626,
-0.025640109553933144,
0.08736984431743622,
-0.19319777190685272,
-0.08086220175027847,
-0.03087124228477478,
0.22286944091320038,
0.1384248435497284,
0.09644129127264023,
-0.14303013682365417,
-0.1844848245382309,
-0.06228189170360565,
-0.16150110960006714,
-0.06681554019451141,
0.1322896033525467,
0.09540943056344986,
0.31672659516334534,
-0.043702930212020874,
-0.041084352880716324,
-0.2006305754184723,
0.17685467004776,
0.29561489820480347,
0.005914128851145506,
0.0870775580406189,
0.18219314515590668,
0.22285887598991394,
-0.08502126485109329,
0.029314547777175903,
0.1453150361776352,
-0.23420479893684387,
-0.27292367815971375,
-0.14546480774879456,
0.06084216386079788,
0.4247140884399414,
-0.2315540462732315,
-0.07572562992572784,
-0.15749935805797577,
-0.024957535788416862,
-0.0049137817695736885,
-0.10887990146875381,
0.11924448609352112,
0.06876958161592484,
0.11406125128269196,
-0.14583617448806763,
0.27831488847732544,
-0.04986913129687309,
0.2669897675514221,
-0.11819425970315933,
-0.2328576147556305,
-0.0827522873878479,
-0.2242647260427475,
0.10024882853031158,
0.04644837975502014,
-0.13613156974315643,
0.11793791502714157,
-0.1876710057258606,
-0.04775187373161316,
0.13304376602172852,
0.1989789605140686,
0.09288690984249115,
-0.1976938098669052,
-0.01596122607588768,
0.05742201209068298,
0.046594712883234024,
0.2169235497713089,
0.02425062097609043,
-0.10883400589227676,
-0.05254168063402176,
-0.24221491813659668,
-0.11791332066059113,
0.03662242367863655,
-0.06107185408473015,
0.1003120094537735,
0.136662557721138,
-0.043942246586084366,
0.07489874958992004,
0.19740213453769684,
-0.16625936329364777,
0.028099065646529198,
-0.11649378389120102,
-0.03644099086523056,
0.006187331397086382,
0.06747090071439743,
-0.16713367402553558,
0.08018218725919724,
0.004127721767872572,
-0.11459556221961975,
0.0432487428188324,
0.26440492272377014,
0.13183383643627167,
0.20132401585578918,
-0.03347564861178398,
0.05365254357457161,
-0.05663156136870384,
-0.0016929770354181528,
0.061455998569726944,
-0.16244696080684662,
-0.07392050325870514,
0.014749749563634396,
0.057872552424669266,
-0.02820419706404209,
-0.03159449249505997,
0.1876954436302185,
0.042996376752853394,
0.163192018866539,
-0.09145598858594894,
-0.018082434311509132,
-0.07363399118185043,
-0.11202988028526306,
0.05206656455993652,
0.17203839123249054,
-0.06988788396120071,
-0.037405263632535934,
-0.20775206387043,
-0.08298228681087494,
-0.1120939552783966,
-0.17100302875041962,
-0.23826994001865387,
0.1436198353767395,
0.029377833008766174,
0.1486205756664276,
-0.030515000224113464,
-0.054106540977954865,
-0.09836447238922119,
-0.027403559535741806,
0.011029824614524841,
-0.11696601659059525,
0.012247303500771523,
0.0970912054181099,
0.0667416900396347,
-0.03136422857642174,
-0.07838087528944016,
-0.08123015612363815,
-0.10269294679164886,
0.03941548988223076,
-0.10439427196979523,
-0.009302180260419846,
-0.05152931809425354,
0.12068917602300644,
0.2545514404773712,
0.049483150243759155,
0.1349981725215912,
0.05925709009170532,
0.09193522483110428,
0.0703200250864029,
0.010174824856221676,
0.024022329598665237,
-0.14516618847846985,
0.04821310564875603,
-0.03601296618580818,
0.08519985526800156,
-0.21192581951618195,
0.049505267292261124,
0.06237466260790825,
0.15390776097774506,
0.014325241558253765,
-0.09456424415111542,
0.02964729256927967,
0.06837495416402817,
0.05837119370698929,
0.14969882369041443,
0.01611904241144657,
0.0546848326921463,
-0.19383226335048676,
-0.08626937866210938,
-2.20780393882282e-32,
0.03769522160291672,
-0.08448995649814606,
-0.034905724227428436,
-0.09532167762517929,
-0.11569786071777344,
-0.03540438041090965,
-0.065929114818573,
-0.04866534844040871,
0.056190136820077896,
-0.020681260153651237,
-0.06092960759997368,
0.018422236666083336,
0.011543979868292809,
0.08609697967767715,
0.07280032336711884,
0.016531337052583694,
0.08211439847946167,
0.040255703032016754,
-0.032523516565561295,
0.15496499836444855,
0.10840578377246857,
-0.08962410688400269,
0.22870999574661255,
-0.052284978330135345,
-0.023982195183634758,
0.011504394002258778,
-0.10980227589607239,
-0.26160040497779846,
0.15678957104682922,
-0.2048768252134323,
-0.14573195576667786,
0.015786664560437202,
0.12664765119552612,
0.043859630823135376,
-0.16306239366531372,
-0.07696980983018875,
-0.021653741598129272,
-0.05290994048118591,
-0.050880324095487595,
0.034252800047397614,
-0.18757829070091248,
-0.06933487206697464,
0.29513829946517944,
-0.08866827189922333,
0.15191107988357544,
0.081448994576931,
-0.07891374081373215,
-0.0026729456149041653,
-0.1465282440185547,
-0.08409496396780014,
-0.011921852827072144,
-0.01549464464187622,
-0.0959947258234024,
0.10761436074972153,
0.06263675540685654,
0.07623577862977982,
-0.05780726671218872,
-0.11736892908811569,
-0.11834099143743515,
0.1546911597251892,
0.08592626452445984,
0.08988821506500244,
0.1311565637588501,
-0.010497433133423328,
0.034528352320194244,
0.20667172968387604,
0.19776026904582977,
0.187486931681633,
0.20054730772972107,
0.00169310939963907,
-0.13085250556468964,
0.1109623908996582,
0.012220362201333046,
0.008712244220077991,
-0.16606420278549194,
-0.1488601416349411,
-0.15998919308185577,
0.005590243265032768,
-0.07651864737272263,
-0.042537663131952286,
-0.25360897183418274,
-0.0109829381108284,
0.15967606008052826,
-0.07021484524011612,
-0.06833617389202118,
0.04596312716603279,
0.08388341963291168,
0.050202563405036926,
-0.03862375766038895,
0.10556396842002869,
-0.07346246391534805,
-0.01761585846543312,
-0.15338799357414246,
0.10028477013111115,
-0.04252105951309204,
0.060680244117975235,
-0.011658563278615475,
0.16817708313465118,
-0.09563083201646805,
-0.04138941690325737,
0.030622469261288643,
-0.027328284457325935,
-0.025404343381524086,
0.035738296806812286,
0.09517600387334824,
0.09131642431020737,
0.19476890563964844,
0.12289159744977951,
-0.07553347200155258,
-0.012102502398192883,
-0.030994238331913948,
-0.037987664341926575,
0.16335612535476685,
-0.06427432596683502,
0.1690477728843689,
-0.028443530201911926,
0.04755207151174545,
-0.13953810930252075,
0.0646340399980545,
0.059951141476631165,
-0.17224469780921936,
0.06570813804864883,
0.06591267883777618,
-0.032691940665245056,
-0.040808070451021194,
-0.009240292944014072,
0.0006213683518581092,
0.06708481162786484,
0.12638407945632935,
0.14312522113323212,
0.041817907243967056,
-0.04285994917154312,
6.956534548407944e-7,
-0.23864562809467316,
-0.3282926380634308,
-0.05600370466709137,
0.011497740633785725,
-0.11184485256671906,
0.17198002338409424,
-0.1615115851163864,
-0.016386568546295166,
0.09497496485710144,
0.09789719432592392,
0.012499013915657997,
-0.2561444342136383,
-0.024242443963885307,
-0.011805763468146324,
-0.15888746082782745,
0.0747828260064125,
-0.00090280722361058,
-0.05300188437104225,
-0.05320710316300392,
-0.12162820994853973,
0.16154538094997406,
0.015903202816843987,
-0.07612158358097076,
-0.07217775285243988,
-0.04712161049246788,
0.019516346976161003,
-0.08554714173078537,
-0.07460577040910721,
-0.014734596945345402,
0.037504225969314575,
-0.022519530728459358,
-0.14701402187347412,
0.02802676148712635,
0.017231833189725876,
-0.14189818501472473,
0.03871031478047371,
-0.08917222172021866,
0.08171101659536362,
0.03152080252766609,
-0.17440152168273926,
-0.061207037419080734,
-0.10451268404722214,
0.06951986253261566,
0.10941757261753082,
0.11900544911623001,
0.11686521768569946,
0.06641311943531036,
0.11003612726926804,
-0.15561750531196594,
0.21999399363994598,
0.15571361780166626,
-0.010531069710850716,
0.04459850862622261,
0.16276459395885468,
-0.09154410660266876,
-0.15500417351722717,
-0.011043197475373745,
-0.16496124863624573,
0.04840764030814171,
0.006583347450941801,
-0.20853272080421448,
-0.10059069097042084,
-0.008844596333801746,
0.20926155149936676,
0.07477980852127075,
-0.03969255089759827,
0.0014102504355832934,
2.802993256212741e-35,
-0.11745372414588928,
-0.04964606091380119,
0.040132343769073486,
0.03275284171104431,
-0.03141162171959877,
-0.09047442674636841,
-0.24382063746452332,
0.1308688223361969,
-0.043369874358177185,
-0.11793912947177887,
-0.10239802300930023
] |
https://github.com/huggingface/datasets/issues/2396 | strange datasets from OSCAR corpus | Hi ! Thanks for reporting
cc @pjox is this an issue from the data ?
Anyway we should at least mention that OSCAR could contain such contents in the dataset card, you're totally right @jerryIsHere | ![image](https://user-images.githubusercontent.com/50871412/119260850-4f876b80-bc07-11eb-8894-124302600643.png)
![image](https://user-images.githubusercontent.com/50871412/119260875-675eef80-bc07-11eb-9da4-ee27567054ac.png)
From the [official site ](https://oscar-corpus.com/), the Yue Chinese dataset should have 2.2KB data.
7 training instances is obviously not a right number.
As I can read Yue Chinese, I call tell the last instance is definitely not something that would appear on Common Crawl.
And even if you don't read Yue Chinese, you can tell the first six instance are problematic.
(It is embarrassing, as the 7 training instances look exactly like something from a pornographic novel or flitting messages in a chat of a dating app)
It might not be the problem of the huggingface/datasets implementation, because when I tried to download the dataset from the official site, I found out that the zip file is corrupted.
I will try to inform the host of OSCAR corpus later.
Awy a remake about this dataset in huggingface/datasets is needed, perhaps after the host of the dataset fixes the issue.
> Hi @jerryIsHere , sorry for the late response! Sadly this is normal, the problem comes form fasttext's classifier which we used to create the original corpus. In general the classifier is not really capable of properly recognizing Yue Chineese so the file ends un being just noise from Common Crawl. Some of these problems with OSCAR were already discussed [here](https://arxiv.org/pdf/2103.12028.pdf) but we are working on explicitly documenting the problems by language on our website. In fact, could please you open an issue on [our repo](https://github.com/oscar-corpus/oscar-website/issues) as well so that we can track it?
Thanks a lot, the new post is here:
https://github.com/oscar-corpus/oscar-website/issues/11 | 35 | strange datasets from OSCAR corpus
![image](https://user-images.githubusercontent.com/50871412/119260850-4f876b80-bc07-11eb-8894-124302600643.png)
![image](https://user-images.githubusercontent.com/50871412/119260875-675eef80-bc07-11eb-9da4-ee27567054ac.png)
From the [official site ](https://oscar-corpus.com/), the Yue Chinese dataset should have 2.2KB data.
7 training instances is obviously not a right number.
As I can read Yue Chinese, I call tell the last instance is definitely not something that would appear on Common Crawl.
And even if you don't read Yue Chinese, you can tell the first six instance are problematic.
(It is embarrassing, as the 7 training instances look exactly like something from a pornographic novel or flitting messages in a chat of a dating app)
It might not be the problem of the huggingface/datasets implementation, because when I tried to download the dataset from the official site, I found out that the zip file is corrupted.
I will try to inform the host of OSCAR corpus later.
Awy a remake about this dataset in huggingface/datasets is needed, perhaps after the host of the dataset fixes the issue.
> Hi @jerryIsHere , sorry for the late response! Sadly this is normal, the problem comes form fasttext's classifier which we used to create the original corpus. In general the classifier is not really capable of properly recognizing Yue Chineese so the file ends un being just noise from Common Crawl. Some of these problems with OSCAR were already discussed [here](https://arxiv.org/pdf/2103.12028.pdf) but we are working on explicitly documenting the problems by language on our website. In fact, could please you open an issue on [our repo](https://github.com/oscar-corpus/oscar-website/issues) as well so that we can track it?
Thanks a lot, the new post is here:
https://github.com/oscar-corpus/oscar-website/issues/11
Hi ! Thanks for reporting
cc @pjox is this an issue from the data ?
Anyway we should at least mention that OSCAR could contain such contents in the dataset card, you're totally right @jerryIsHere | [
0.37284913659095764,
-0.026293860748410225,
-0.08950503170490265,
0.289946973323822,
0.10594289004802704,
0.06502758711576462,
-0.004334674216806889,
-0.010706915520131588,
-0.07165130972862244,
0.07161352038383484,
-0.11513319611549377,
-0.24391329288482666,
0.015738951042294502,
0.07874688506126404,
-0.14565782248973846,
-0.08939072489738464,
0.06128983199596405,
0.03446471691131592,
0.01872614026069641,
-0.16650594770908356,
-0.018764842301607132,
-0.03442257642745972,
0.1798243373632431,
0.11518629640340805,
-0.00937685091048479,
-0.021670203655958176,
-0.0917491465806961,
0.06631101667881012,
-0.07632497698068619,
-0.008353938348591328,
0.13509973883628845,
-0.026076113805174828,
-0.18943846225738525,
0.1751871258020401,
0.000005488407623488456,
0.028590215370059013,
-0.004790508188307285,
-0.06295473128557205,
0.03432871773838997,
-0.10701635479927063,
0.19468259811401367,
0.05304623395204544,
-0.014058682136237621,
-0.04304415360093117,
-0.1082579493522644,
-0.19191135466098785,
-0.030774205923080444,
0.046599358320236206,
0.03242265060544014,
0.16202455759048462,
0.06217765808105469,
0.034521520137786865,
-0.0960124060511589,
-0.06596407294273376,
0.033552464097738266,
-0.008856707252562046,
0.02121536247432232,
0.00247030146420002,
-0.022772230207920074,
0.0756717398762703,
0.004022606648504734,
-0.13295283913612366,
-0.016529683023691177,
-0.008979616686701775,
0.11378239840269089,
0.058115966618061066,
-0.22457242012023926,
-0.2874537706375122,
0.1560240089893341,
0.10342557728290558,
0.06586895883083344,
0.12326924502849579,
0.054320625960826874,
0.131184384226799,
0.04564444720745087,
-0.006500967312604189,
0.005198652856051922,
0.17304334044456482,
-0.05466868728399277,
0.04830068349838257,
-0.10171152651309967,
0.07100611180067062,
-0.08681678026914597,
0.18063706159591675,
-0.06615675985813141,
-0.02421383559703827,
-0.22838908433914185,
-0.11445626616477966,
-0.03399303928017616,
0.028156528249382973,
-0.03133022040128708,
-0.12009097635746002,
0.058630023151636124,
0.07335252314805984,
0.04687471315264702,
0.08614284545183182,
-0.07197585701942444,
0.03246041387319565,
0.04737904295325279,
-0.2545279860496521,
-0.10503627359867096,
0.019539693370461464,
-0.32266470789909363,
0.05977434664964676,
-0.02408665046095848,
0.19076299667358398,
0.05784904584288597,
-0.007967604324221611,
0.02941112592816353,
0.09676685184240341,
0.02061367593705654,
0.1984938532114029,
-0.1341727375984192,
0.07937371730804443,
0.0062097650952637196,
-0.08494852483272552,
-0.06321324408054352,
-0.06290031969547272,
0.0723494365811348,
0.10359828174114227,
-0.12310633063316345,
0.1941303312778473,
0.1266365498304367,
0.06197024881839752,
0.03318755328655243,
-0.1558072865009308,
0.0473334938287735,
0.11038562655448914,
-0.08744556456804276,
-0.07074674963951111,
-0.029061831533908844,
0.06972099095582962,
-0.041426073759794235,
-0.021140089258551598,
0.010323398746550083,
-0.10092674195766449,
-0.061063531786203384,
0.05621831491589546,
0.042428042739629745,
-0.033018533140420914,
-0.10163132846355438,
-0.16680720448493958,
-0.1048353984951973,
0.017866225913167,
0.013328944332897663,
0.022635428234934807,
-0.0017868037102743983,
0.10124170780181885,
0.058646757155656815,
0.042425502091646194,
-0.26890140771865845,
0.15114447474479675,
-0.037920933216810226,
0.08468703925609589,
-0.01596238650381565,
0.00242791511118412,
0.006808680482208729,
-0.02130017802119255,
-0.09907571971416473,
0.11670397222042084,
0.09540913254022598,
0.05690935626626015,
0.04348169267177582,
-0.08152975887060165,
-0.1923072189092636,
0.06511667370796204,
0.1248372420668602,
-0.033282648772001266,
-0.045150354504585266,
-0.11376579850912094,
0.06401834636926651,
-0.010748816654086113,
0.054752904921770096,
0.03816644102334976,
-0.09479454904794693,
0.06381875276565552,
-0.07962021976709366,
-0.09444110840559006,
-0.2251536101102829,
0.023738309741020203,
0.009536221623420715,
0.07475870102643967,
-0.15601731836795807,
-0.139799103140831,
0.048148635774850845,
-0.0319671668112278,
-0.06193026900291443,
0.11447548121213913,
-0.034854866564273834,
-0.06443345546722412,
-0.12905490398406982,
0.04463071748614311,
-0.05716327950358391,
0.0046442546881735325,
0.13603265583515167,
-0.06202639266848564,
-0.018206268548965454,
-0.27073171734809875,
-0.03395386040210724,
-0.10345017164945602,
0.0988498255610466,
-0.12666180729866028,
0.03834784775972366,
0.18013237416744232,
-0.09849271923303604,
0.015776271000504494,
-0.02611493319272995,
0.16861017048358917,
-0.018839459866285324,
0.06545846164226532,
-0.10056337714195251,
0.042794711887836456,
-0.0234253890812397,
-0.08618398010730743,
-0.19695881009101868,
0.10631775110960007,
0.012351902201771736,
0.004346325062215328,
-0.09814072400331497,
0.21402861177921295,
-0.005378674250096083,
0.062381964176893234,
-0.03448541834950447,
0.0712457001209259,
-0.00915144756436348,
0.07076554000377655,
0.054438915103673935,
0.12791846692562103,
0.004079238045960665,
0.032256707549095154,
0.010402332991361618,
-0.0828201025724411,
0.1050318032503128,
0.006803043652325869,
-0.1263701617717743,
0.20863328874111176,
0.026624629274010658,
-0.008502763696014881,
0.3301466405391693,
0.0038493936881422997,
0.05546481907367706,
0.061721425503492355,
-0.054996415972709656,
-0.05147119238972664,
0.13482417166233063,
0.17883248627185822,
-0.014318214729428291,
-0.038471683859825134,
0.1325654685497284,
-0.08762386441230774,
0.22326630353927612,
0.04869434982538223,
0.012528768740594387,
0.02413051947951317,
0.05397794768214226,
0.011624143458902836,
0.08036669343709946,
0.23762644827365875,
-0.24310573935508728,
0.01635327748954296,
0.12800410389900208,
0.006951872259378433,
0.032209400087594986,
0.04599873349070549,
0.15030068159103394,
0.028143584728240967,
-0.11133795231580734,
0.09585612267255783,
-0.06399068981409073,
0.02490929886698723,
-0.005291576497256756,
-0.031061286106705666,
-0.18065963685512543,
-0.2004181444644928,
0.03537515923380852,
-0.12501229345798492,
0.10900771617889404,
0.02734607271850109,
-0.028695503249764442,
0.02006971649825573,
-0.112434022128582,
0.17318227887153625,
0.06920115649700165,
0.016849005594849586,
-0.08797798305749893,
0.08359965682029724,
-0.08700767159461975,
-0.10035227239131927,
-0.2502940595149994,
0.17783597111701965,
-0.006709265988320112,
-0.07595982402563095,
-0.006460624746978283,
-0.24974480271339417,
-0.07676710188388824,
-0.09925242513418198,
-0.13388939201831818,
0.14970479905605316,
-0.011488860473036766,
0.21877101063728333,
0.005276023875921965,
0.20764702558517456,
0.07134660333395004,
-0.047208521515131,
0.04315314069390297,
0.10855776071548462,
0.01885218359529972,
-0.10123186558485031,
-0.2543247938156128,
-0.061045221984386444,
0.025862403213977814,
-0.044714417308568954,
-0.06433407962322235,
0.13608931005001068,
-0.1392211616039276,
0.05440417304635048,
-0.07499833405017853,
-0.13635781407356262,
-0.07662751525640488,
0.14727333188056946,
-0.06887979805469513,
0.11900100857019424,
-0.0793764665722847,
-0.0642000064253807,
0.02356296218931675,
-0.016373518854379654,
-0.1204804852604866,
-0.02094424143433571,
0.0790686085820198,
0.03885414078831673,
0.12647856771945953,
0.1321212351322174,
-0.12332985550165176,
-0.0667637437582016,
0.05358199402689934,
0.013801353983581066,
-0.1873289793729782,
-0.07064124941825867,
0.40092527866363525,
-0.024373624473810196,
-0.1980276107788086,
0.003450076561421156,
-0.10711516439914703,
-0.13857579231262207,
0.07037675380706787,
-0.1974782943725586,
-0.18037891387939453,
-0.10314404964447021,
-0.14781181514263153,
0.20591890811920166,
-0.028432762250304222,
-0.00638238713145256,
-0.14915339648723602,
0.05354410409927368,
-0.08739093691110611,
0.1363966166973114,
-0.09855488687753677,
-0.0386442132294178,
0.01942712627351284,
-0.06403672695159912,
0.11576234549283981,
0.012017867527902126,
0.06598646193742752,
0.0718783512711525,
-0.029726311564445496,
0.025155555456876755,
0.14555592834949493,
0.10884571075439453,
-0.06163056939840317,
-0.22107678651809692,
0.13577789068222046,
-0.1795072704553604,
-0.03080686926841736,
0.21385110914707184,
0.0024493858218193054,
0.048492081463336945,
0.09171693027019501,
0.08975794911384583,
-0.053485170006752014,
-0.06645065546035767,
0.04279087856411934,
-0.1799621433019638,
-0.10491544753313065,
0.0644763857126236,
0.08692951500415802,
0.05931532755494118,
-0.10012289881706238,
-0.010133146308362484,
-0.23232156038284302,
0.16486573219299316,
0.05589180067181587,
-0.02352338656783104,
-0.07159644365310669,
0.028363965451717377,
-0.06796972453594208,
-0.14776521921157837,
0.08249716460704803,
0.07006410509347916,
0.27315619587898254,
0.14228805899620056,
0.12091730535030365,
0.18175797164440155,
0.007950954139232635,
0.17477303743362427,
0.06566600501537323,
0.05307617038488388,
-0.06083455681800842,
0.1050867885351181,
-0.12758634984493256,
0.08634001761674881,
0.0847664624452591,
0.04949721693992615,
0.1334260106086731,
0.034851137548685074,
0.0017103818245232105,
0.00925582554191351,
-0.12351007014513016,
0.09394510835409164,
0.07569509744644165,
-0.1700703650712967,
0.010516592301428318,
-0.17801733314990997,
0.10671791434288025,
0.01333468034863472,
-0.08490348607301712,
-0.01942458748817444,
0.12641814351081848,
-0.02546149492263794,
0.219643235206604,
0.011362646706402302,
-0.007405449636280537,
0.1686740666627884,
-0.04254353791475296,
0.03493092954158783,
0.07797197252511978,
0.004299787804484367,
0.36678674817085266,
-0.1011507585644722,
-0.2144530862569809,
-0.05090979114174843,
-0.3301721513271332,
-0.06128311902284622,
0.008090983144938946,
-0.0009459300781600177,
0.0311443991959095,
-0.12906919419765472,
0.05985522270202637,
-0.07417208701372147,
-0.00963023491203785,
0.12365567684173584,
-0.11164919286966324,
0.006335518788546324,
0.08695656806230545,
-0.044395122677087784,
-0.01817941479384899,
-0.03700413554906845,
0.043166570365428925,
-0.14648351073265076,
-0.07303391396999359,
0.07612965255975723,
0.00182752450928092,
-0.04825872927904129,
-0.11070462316274643,
-0.09716691821813583,
-0.1070733591914177,
-0.1031033918261528,
0.1356610804796219,
-0.014831713400781155,
-0.02805066853761673,
-0.031155135482549667,
-0.246978297829628,
0.0844120979309082,
0.11986715346574783,
-0.048713527619838715,
0.20438307523727417,
0.10108653455972672,
-0.04039619117975235,
-0.045754339545965195,
-0.1567220389842987,
0.08279353380203247,
0.02007173001766205,
0.06213532015681267,
-0.04294320568442345,
-0.16892783343791962,
0.044653378427028656,
0.06797877699136734,
0.007482671644538641,
-0.014645756222307682,
-0.10326830297708511,
-0.1271086037158966,
0.048165660351514816,
0.11409749835729599,
-0.01613881252706051,
-0.00281803822144866,
-0.008670080453157425,
-0.01709425449371338,
-0.08833759278059006,
0.14772318303585052,
0.0609888918697834,
0.06726018339395523,
-0.020931703969836235,
0.11356508731842041,
0.17836974561214447,
0.10944679379463196,
-0.08124780654907227,
-0.05660234019160271,
0.10067735612392426,
0.016145342960953712,
-0.04660871624946594,
-0.009114749729633331,
0.03554271161556244,
0.14247822761535645,
-0.11923112720251083,
-0.09726782143115997,
-0.08477124571800232,
-0.043791793286800385,
0.020283332094550133,
-0.17444299161434174,
-0.16749899089336395,
-0.11486871540546417,
0.1368841528892517,
-0.054815638810396194,
-0.0007554797339253128,
0.01802540384232998,
-0.02994171530008316,
0.04807097092270851,
-0.003995830658823252,
-0.12365951389074326,
0.11239105463027954,
0.2496112585067749,
-0.07450759410858154,
0.16032752394676208,
0.3051733076572418,
-0.09586154669523239,
-0.015132234431803226,
0.15816745162010193,
0.21485483646392822,
-0.15810129046440125,
-0.10626744478940964,
-0.07328187674283981,
0.015230510383844376,
-0.24835430085659027,
-0.045994214713573456,
0.004497055895626545,
0.16817055642604828,
0.16567498445510864,
-0.07489432394504547,
0.09883299469947815,
-0.04938608035445213,
-0.03529413044452667,
-0.05790485441684723,
0.007510057650506496,
-0.09497648477554321,
0.035040244460105896,
0.07417608797550201,
-2.6704016673632873e-32,
0.1543402522802353,
0.1096341535449028,
-0.08746989816427231,
-0.04656201973557472,
-0.025285376235842705,
-0.0495624914765358,
-0.14240571856498718,
-0.09445220977067947,
-0.09008784592151642,
0.044249873608350754,
-0.05028393119573593,
0.023332035169005394,
0.09423225373029709,
0.024593302980065346,
-0.09994012117385864,
0.0045700957998633385,
0.09282531589269638,
-0.06359712034463882,
-0.10446007549762726,
0.04307805001735687,
0.2105693519115448,
0.16156630218029022,
-0.036683306097984314,
-0.06775683164596558,
-0.010188144631683826,
0.058698322623968124,
-0.09401636570692062,
-0.06289729475975037,
0.1111658588051796,
0.0692225843667984,
-0.09178149700164795,
0.04352232441306114,
-0.04210231080651283,
-0.008091923780739307,
-0.06302794814109802,
-0.13117852807044983,
-0.1250271052122116,
0.07040124386548996,
0.004255366045981646,
0.26986974477767944,
0.17327770590782166,
-0.02823689393699169,
0.24297145009040833,
-0.2287481129169464,
-0.09381387382745743,
-0.014918903820216656,
0.10409697890281677,
-0.12791776657104492,
-0.053683824837207794,
-0.003809081157669425,
0.05976762995123863,
-0.043089237064123154,
0.02453800104558468,
0.027064289897680283,
0.07129690796136856,
-0.28734681010246277,
-0.060243066400289536,
0.15367428958415985,
0.048258569091558456,
0.02510545216500759,
0.09580350667238235,
0.004420666955411434,
-0.011390488594770432,
0.009763170965015888,
0.12618833780288696,
0.02349940314888954,
0.25579237937927246,
0.09563271701335907,
0.012698455713689327,
-0.17726606130599976,
0.14138200879096985,
0.21784409880638123,
-0.010688603855669498,
-0.05429285392165184,
0.0977666974067688,
-0.12745361030101776,
-0.012955275364220142,
0.18573054671287537,
-0.06648174673318863,
-0.039972465485334396,
-0.025592058897018433,
-0.16216684877872467,
0.0644008070230484,
0.0757610872387886,
0.013874031603336334,
-0.012601054273545742,
-0.05013355240225792,
-0.0638422966003418,
0.04855487868189812,
-0.15108001232147217,
-0.041631460189819336,
0.059524763375520706,
-0.13948041200637817,
-0.18953125178813934,
-0.15741102397441864,
-0.04908226057887077,
-0.08680383861064911,
0.11543617397546768,
-0.12982390820980072,
0.03869498893618584,
-0.011259517632424831,
-0.049206461757421494,
0.02352140285074711,
0.038727834820747375,
-0.06333113461732864,
0.15844562649726868,
0.14538399875164032,
0.15437690913677216,
-0.1433607041835785,
0.07342304289340973,
0.0036169777158647776,
0.028561268001794815,
0.15579402446746826,
0.071137435734272,
0.01644180715084076,
-0.10956616699695587,
0.03732207417488098,
0.0312664657831192,
0.18576011061668396,
0.26108983159065247,
-0.04716815426945686,
-0.0489521399140358,
-0.1246509999036789,
0.06279794126749039,
-0.11108649522066116,
-0.0593145452439785,
-0.12244902551174164,
0.1349918097257614,
-0.09573718905448914,
-0.1929466724395752,
0.10956045985221863,
-0.03495640680193901,
7.237054546749278e-7,
-0.17166300117969513,
0.06862419098615646,
-0.03269064798951149,
-0.03705345466732979,
0.030474241822957993,
0.09130281955003738,
-0.25986963510513306,
0.11160626262426376,
-0.10489070415496826,
0.2153742015361786,
0.05118916928768158,
-0.016646888107061386,
0.058592576533555984,
-0.15007130801677704,
0.0799686536192894,
0.05098703131079674,
-0.036740392446517944,
-0.2114739567041397,
-0.11004184931516647,
0.19454433023929596,
0.005686693359166384,
0.2530033588409424,
-0.005665362812578678,
-0.038705553859472275,
0.1003493070602417,
-0.2869279682636261,
-0.07323702424764633,
-0.025579476729035378,
-0.03736972063779831,
-0.132703498005867,
0.04618174955248833,
0.00564614636823535,
0.01927008479833603,
-0.0005487624439410865,
-0.027410265058279037,
0.09090526401996613,
-0.1026054099202156,
-0.016084985807538033,
0.004937672056257725,
0.15565809607505798,
-0.0995115339756012,
-0.13244782388210297,
0.11820998787879944,
-0.13516132533550262,
0.10616280138492584,
0.23362290859222412,
-0.07487787306308746,
0.02518179826438427,
-0.10988754779100418,
-0.07729631662368774,
-0.060988180339336395,
0.004281726665794849,
0.0358109287917614,
0.28302785754203796,
-0.037752922624349594,
-0.06484849005937576,
0.07656573504209518,
-0.14248499274253845,
0.04372330382466316,
-0.20204035937786102,
-0.007901633158326149,
-0.08978524059057236,
0.030113864690065384,
0.08102832734584808,
0.004618327133357525,
-0.09891162067651749,
-0.0716366320848465,
6.582173729767187e-35,
-0.045182015746831894,
0.02197417803108692,
-0.010621175169944763,
-0.19584675133228302,
-0.1251341849565506,
-0.08505299687385559,
0.15300360321998596,
0.049784936010837555,
-0.03765179216861725,
-0.12439405918121338,
-0.040286656469106674
] |
https://github.com/huggingface/datasets/issues/2396 | strange datasets from OSCAR corpus | Hi @jerryIsHere , sorry for the late response! Sadly this is normal, the problem comes form fasttext's classifier which we used to create the original corpus. In general the classifier is not really capable of properly recognizing Yue Chineese so the file ends un being just noise from Common Crawl. Some of these problems with OSCAR were already discussed [here](https://arxiv.org/pdf/2103.12028.pdf) but we are working on explicitly documenting the problems by language on our website. In fact, could please you open an issue on [our repo](https://github.com/oscar-corpus/oscar-website/issues) as well so that we can track it? | ![image](https://user-images.githubusercontent.com/50871412/119260850-4f876b80-bc07-11eb-8894-124302600643.png)
![image](https://user-images.githubusercontent.com/50871412/119260875-675eef80-bc07-11eb-9da4-ee27567054ac.png)
From the [official site ](https://oscar-corpus.com/), the Yue Chinese dataset should have 2.2KB data.
7 training instances is obviously not a right number.
As I can read Yue Chinese, I call tell the last instance is definitely not something that would appear on Common Crawl.
And even if you don't read Yue Chinese, you can tell the first six instance are problematic.
(It is embarrassing, as the 7 training instances look exactly like something from a pornographic novel or flitting messages in a chat of a dating app)
It might not be the problem of the huggingface/datasets implementation, because when I tried to download the dataset from the official site, I found out that the zip file is corrupted.
I will try to inform the host of OSCAR corpus later.
Awy a remake about this dataset in huggingface/datasets is needed, perhaps after the host of the dataset fixes the issue.
> Hi @jerryIsHere , sorry for the late response! Sadly this is normal, the problem comes form fasttext's classifier which we used to create the original corpus. In general the classifier is not really capable of properly recognizing Yue Chineese so the file ends un being just noise from Common Crawl. Some of these problems with OSCAR were already discussed [here](https://arxiv.org/pdf/2103.12028.pdf) but we are working on explicitly documenting the problems by language on our website. In fact, could please you open an issue on [our repo](https://github.com/oscar-corpus/oscar-website/issues) as well so that we can track it?
Thanks a lot, the new post is here:
https://github.com/oscar-corpus/oscar-website/issues/11 | 93 | strange datasets from OSCAR corpus
![image](https://user-images.githubusercontent.com/50871412/119260850-4f876b80-bc07-11eb-8894-124302600643.png)
![image](https://user-images.githubusercontent.com/50871412/119260875-675eef80-bc07-11eb-9da4-ee27567054ac.png)
From the [official site ](https://oscar-corpus.com/), the Yue Chinese dataset should have 2.2KB data.
7 training instances is obviously not a right number.
As I can read Yue Chinese, I call tell the last instance is definitely not something that would appear on Common Crawl.
And even if you don't read Yue Chinese, you can tell the first six instance are problematic.
(It is embarrassing, as the 7 training instances look exactly like something from a pornographic novel or flitting messages in a chat of a dating app)
It might not be the problem of the huggingface/datasets implementation, because when I tried to download the dataset from the official site, I found out that the zip file is corrupted.
I will try to inform the host of OSCAR corpus later.
Awy a remake about this dataset in huggingface/datasets is needed, perhaps after the host of the dataset fixes the issue.
> Hi @jerryIsHere , sorry for the late response! Sadly this is normal, the problem comes form fasttext's classifier which we used to create the original corpus. In general the classifier is not really capable of properly recognizing Yue Chineese so the file ends un being just noise from Common Crawl. Some of these problems with OSCAR were already discussed [here](https://arxiv.org/pdf/2103.12028.pdf) but we are working on explicitly documenting the problems by language on our website. In fact, could please you open an issue on [our repo](https://github.com/oscar-corpus/oscar-website/issues) as well so that we can track it?
Thanks a lot, the new post is here:
https://github.com/oscar-corpus/oscar-website/issues/11
Hi @jerryIsHere , sorry for the late response! Sadly this is normal, the problem comes form fasttext's classifier which we used to create the original corpus. In general the classifier is not really capable of properly recognizing Yue Chineese so the file ends un being just noise from Common Crawl. Some of these problems with OSCAR were already discussed [here](https://arxiv.org/pdf/2103.12028.pdf) but we are working on explicitly documenting the problems by language on our website. In fact, could please you open an issue on [our repo](https://github.com/oscar-corpus/oscar-website/issues) as well so that we can track it? | [
0.37284913659095764,
-0.026293860748410225,
-0.08950503170490265,
0.289946973323822,
0.10594289004802704,
0.06502758711576462,
-0.004334674216806889,
-0.010706915520131588,
-0.07165130972862244,
0.07161352038383484,
-0.11513319611549377,
-0.24391329288482666,
0.015738951042294502,
0.07874688506126404,
-0.14565782248973846,
-0.08939072489738464,
0.06128983199596405,
0.03446471691131592,
0.01872614026069641,
-0.16650594770908356,
-0.018764842301607132,
-0.03442257642745972,
0.1798243373632431,
0.11518629640340805,
-0.00937685091048479,
-0.021670203655958176,
-0.0917491465806961,
0.06631101667881012,
-0.07632497698068619,
-0.008353938348591328,
0.13509973883628845,
-0.026076113805174828,
-0.18943846225738525,
0.1751871258020401,
0.000005488407623488456,
0.028590215370059013,
-0.004790508188307285,
-0.06295473128557205,
0.03432871773838997,
-0.10701635479927063,
0.19468259811401367,
0.05304623395204544,
-0.014058682136237621,
-0.04304415360093117,
-0.1082579493522644,
-0.19191135466098785,
-0.030774205923080444,
0.046599358320236206,
0.03242265060544014,
0.16202455759048462,
0.06217765808105469,
0.034521520137786865,
-0.0960124060511589,
-0.06596407294273376,
0.033552464097738266,
-0.008856707252562046,
0.02121536247432232,
0.00247030146420002,
-0.022772230207920074,
0.0756717398762703,
0.004022606648504734,
-0.13295283913612366,
-0.016529683023691177,
-0.008979616686701775,
0.11378239840269089,
0.058115966618061066,
-0.22457242012023926,
-0.2874537706375122,
0.1560240089893341,
0.10342557728290558,
0.06586895883083344,
0.12326924502849579,
0.054320625960826874,
0.131184384226799,
0.04564444720745087,
-0.006500967312604189,
0.005198652856051922,
0.17304334044456482,
-0.05466868728399277,
0.04830068349838257,
-0.10171152651309967,
0.07100611180067062,
-0.08681678026914597,
0.18063706159591675,
-0.06615675985813141,
-0.02421383559703827,
-0.22838908433914185,
-0.11445626616477966,
-0.03399303928017616,
0.028156528249382973,
-0.03133022040128708,
-0.12009097635746002,
0.058630023151636124,
0.07335252314805984,
0.04687471315264702,
0.08614284545183182,
-0.07197585701942444,
0.03246041387319565,
0.04737904295325279,
-0.2545279860496521,
-0.10503627359867096,
0.019539693370461464,
-0.32266470789909363,
0.05977434664964676,
-0.02408665046095848,
0.19076299667358398,
0.05784904584288597,
-0.007967604324221611,
0.02941112592816353,
0.09676685184240341,
0.02061367593705654,
0.1984938532114029,
-0.1341727375984192,
0.07937371730804443,
0.0062097650952637196,
-0.08494852483272552,
-0.06321324408054352,
-0.06290031969547272,
0.0723494365811348,
0.10359828174114227,
-0.12310633063316345,
0.1941303312778473,
0.1266365498304367,
0.06197024881839752,
0.03318755328655243,
-0.1558072865009308,
0.0473334938287735,
0.11038562655448914,
-0.08744556456804276,
-0.07074674963951111,
-0.029061831533908844,
0.06972099095582962,
-0.041426073759794235,
-0.021140089258551598,
0.010323398746550083,
-0.10092674195766449,
-0.061063531786203384,
0.05621831491589546,
0.042428042739629745,
-0.033018533140420914,
-0.10163132846355438,
-0.16680720448493958,
-0.1048353984951973,
0.017866225913167,
0.013328944332897663,
0.022635428234934807,
-0.0017868037102743983,
0.10124170780181885,
0.058646757155656815,
0.042425502091646194,
-0.26890140771865845,
0.15114447474479675,
-0.037920933216810226,
0.08468703925609589,
-0.01596238650381565,
0.00242791511118412,
0.006808680482208729,
-0.02130017802119255,
-0.09907571971416473,
0.11670397222042084,
0.09540913254022598,
0.05690935626626015,
0.04348169267177582,
-0.08152975887060165,
-0.1923072189092636,
0.06511667370796204,
0.1248372420668602,
-0.033282648772001266,
-0.045150354504585266,
-0.11376579850912094,
0.06401834636926651,
-0.010748816654086113,
0.054752904921770096,
0.03816644102334976,
-0.09479454904794693,
0.06381875276565552,
-0.07962021976709366,
-0.09444110840559006,
-0.2251536101102829,
0.023738309741020203,
0.009536221623420715,
0.07475870102643967,
-0.15601731836795807,
-0.139799103140831,
0.048148635774850845,
-0.0319671668112278,
-0.06193026900291443,
0.11447548121213913,
-0.034854866564273834,
-0.06443345546722412,
-0.12905490398406982,
0.04463071748614311,
-0.05716327950358391,
0.0046442546881735325,
0.13603265583515167,
-0.06202639266848564,
-0.018206268548965454,
-0.27073171734809875,
-0.03395386040210724,
-0.10345017164945602,
0.0988498255610466,
-0.12666180729866028,
0.03834784775972366,
0.18013237416744232,
-0.09849271923303604,
0.015776271000504494,
-0.02611493319272995,
0.16861017048358917,
-0.018839459866285324,
0.06545846164226532,
-0.10056337714195251,
0.042794711887836456,
-0.0234253890812397,
-0.08618398010730743,
-0.19695881009101868,
0.10631775110960007,
0.012351902201771736,
0.004346325062215328,
-0.09814072400331497,
0.21402861177921295,
-0.005378674250096083,
0.062381964176893234,
-0.03448541834950447,
0.0712457001209259,
-0.00915144756436348,
0.07076554000377655,
0.054438915103673935,
0.12791846692562103,
0.004079238045960665,
0.032256707549095154,
0.010402332991361618,
-0.0828201025724411,
0.1050318032503128,
0.006803043652325869,
-0.1263701617717743,
0.20863328874111176,
0.026624629274010658,
-0.008502763696014881,
0.3301466405391693,
0.0038493936881422997,
0.05546481907367706,
0.061721425503492355,
-0.054996415972709656,
-0.05147119238972664,
0.13482417166233063,
0.17883248627185822,
-0.014318214729428291,
-0.038471683859825134,
0.1325654685497284,
-0.08762386441230774,
0.22326630353927612,
0.04869434982538223,
0.012528768740594387,
0.02413051947951317,
0.05397794768214226,
0.011624143458902836,
0.08036669343709946,
0.23762644827365875,
-0.24310573935508728,
0.01635327748954296,
0.12800410389900208,
0.006951872259378433,
0.032209400087594986,
0.04599873349070549,
0.15030068159103394,
0.028143584728240967,
-0.11133795231580734,
0.09585612267255783,
-0.06399068981409073,
0.02490929886698723,
-0.005291576497256756,
-0.031061286106705666,
-0.18065963685512543,
-0.2004181444644928,
0.03537515923380852,
-0.12501229345798492,
0.10900771617889404,
0.02734607271850109,
-0.028695503249764442,
0.02006971649825573,
-0.112434022128582,
0.17318227887153625,
0.06920115649700165,
0.016849005594849586,
-0.08797798305749893,
0.08359965682029724,
-0.08700767159461975,
-0.10035227239131927,
-0.2502940595149994,
0.17783597111701965,
-0.006709265988320112,
-0.07595982402563095,
-0.006460624746978283,
-0.24974480271339417,
-0.07676710188388824,
-0.09925242513418198,
-0.13388939201831818,
0.14970479905605316,
-0.011488860473036766,
0.21877101063728333,
0.005276023875921965,
0.20764702558517456,
0.07134660333395004,
-0.047208521515131,
0.04315314069390297,
0.10855776071548462,
0.01885218359529972,
-0.10123186558485031,
-0.2543247938156128,
-0.061045221984386444,
0.025862403213977814,
-0.044714417308568954,
-0.06433407962322235,
0.13608931005001068,
-0.1392211616039276,
0.05440417304635048,
-0.07499833405017853,
-0.13635781407356262,
-0.07662751525640488,
0.14727333188056946,
-0.06887979805469513,
0.11900100857019424,
-0.0793764665722847,
-0.0642000064253807,
0.02356296218931675,
-0.016373518854379654,
-0.1204804852604866,
-0.02094424143433571,
0.0790686085820198,
0.03885414078831673,
0.12647856771945953,
0.1321212351322174,
-0.12332985550165176,
-0.0667637437582016,
0.05358199402689934,
0.013801353983581066,
-0.1873289793729782,
-0.07064124941825867,
0.40092527866363525,
-0.024373624473810196,
-0.1980276107788086,
0.003450076561421156,
-0.10711516439914703,
-0.13857579231262207,
0.07037675380706787,
-0.1974782943725586,
-0.18037891387939453,
-0.10314404964447021,
-0.14781181514263153,
0.20591890811920166,
-0.028432762250304222,
-0.00638238713145256,
-0.14915339648723602,
0.05354410409927368,
-0.08739093691110611,
0.1363966166973114,
-0.09855488687753677,
-0.0386442132294178,
0.01942712627351284,
-0.06403672695159912,
0.11576234549283981,
0.012017867527902126,
0.06598646193742752,
0.0718783512711525,
-0.029726311564445496,
0.025155555456876755,
0.14555592834949493,
0.10884571075439453,
-0.06163056939840317,
-0.22107678651809692,
0.13577789068222046,
-0.1795072704553604,
-0.03080686926841736,
0.21385110914707184,
0.0024493858218193054,
0.048492081463336945,
0.09171693027019501,
0.08975794911384583,
-0.053485170006752014,
-0.06645065546035767,
0.04279087856411934,
-0.1799621433019638,
-0.10491544753313065,
0.0644763857126236,
0.08692951500415802,
0.05931532755494118,
-0.10012289881706238,
-0.010133146308362484,
-0.23232156038284302,
0.16486573219299316,
0.05589180067181587,
-0.02352338656783104,
-0.07159644365310669,
0.028363965451717377,
-0.06796972453594208,
-0.14776521921157837,
0.08249716460704803,
0.07006410509347916,
0.27315619587898254,
0.14228805899620056,
0.12091730535030365,
0.18175797164440155,
0.007950954139232635,
0.17477303743362427,
0.06566600501537323,
0.05307617038488388,
-0.06083455681800842,
0.1050867885351181,
-0.12758634984493256,
0.08634001761674881,
0.0847664624452591,
0.04949721693992615,
0.1334260106086731,
0.034851137548685074,
0.0017103818245232105,
0.00925582554191351,
-0.12351007014513016,
0.09394510835409164,
0.07569509744644165,
-0.1700703650712967,
0.010516592301428318,
-0.17801733314990997,
0.10671791434288025,
0.01333468034863472,
-0.08490348607301712,
-0.01942458748817444,
0.12641814351081848,
-0.02546149492263794,
0.219643235206604,
0.011362646706402302,
-0.007405449636280537,
0.1686740666627884,
-0.04254353791475296,
0.03493092954158783,
0.07797197252511978,
0.004299787804484367,
0.36678674817085266,
-0.1011507585644722,
-0.2144530862569809,
-0.05090979114174843,
-0.3301721513271332,
-0.06128311902284622,
0.008090983144938946,
-0.0009459300781600177,
0.0311443991959095,
-0.12906919419765472,
0.05985522270202637,
-0.07417208701372147,
-0.00963023491203785,
0.12365567684173584,
-0.11164919286966324,
0.006335518788546324,
0.08695656806230545,
-0.044395122677087784,
-0.01817941479384899,
-0.03700413554906845,
0.043166570365428925,
-0.14648351073265076,
-0.07303391396999359,
0.07612965255975723,
0.00182752450928092,
-0.04825872927904129,
-0.11070462316274643,
-0.09716691821813583,
-0.1070733591914177,
-0.1031033918261528,
0.1356610804796219,
-0.014831713400781155,
-0.02805066853761673,
-0.031155135482549667,
-0.246978297829628,
0.0844120979309082,
0.11986715346574783,
-0.048713527619838715,
0.20438307523727417,
0.10108653455972672,
-0.04039619117975235,
-0.045754339545965195,
-0.1567220389842987,
0.08279353380203247,
0.02007173001766205,
0.06213532015681267,
-0.04294320568442345,
-0.16892783343791962,
0.044653378427028656,
0.06797877699136734,
0.007482671644538641,
-0.014645756222307682,
-0.10326830297708511,
-0.1271086037158966,
0.048165660351514816,
0.11409749835729599,
-0.01613881252706051,
-0.00281803822144866,
-0.008670080453157425,
-0.01709425449371338,
-0.08833759278059006,
0.14772318303585052,
0.0609888918697834,
0.06726018339395523,
-0.020931703969836235,
0.11356508731842041,
0.17836974561214447,
0.10944679379463196,
-0.08124780654907227,
-0.05660234019160271,
0.10067735612392426,
0.016145342960953712,
-0.04660871624946594,
-0.009114749729633331,
0.03554271161556244,
0.14247822761535645,
-0.11923112720251083,
-0.09726782143115997,
-0.08477124571800232,
-0.043791793286800385,
0.020283332094550133,
-0.17444299161434174,
-0.16749899089336395,
-0.11486871540546417,
0.1368841528892517,
-0.054815638810396194,
-0.0007554797339253128,
0.01802540384232998,
-0.02994171530008316,
0.04807097092270851,
-0.003995830658823252,
-0.12365951389074326,
0.11239105463027954,
0.2496112585067749,
-0.07450759410858154,
0.16032752394676208,
0.3051733076572418,
-0.09586154669523239,
-0.015132234431803226,
0.15816745162010193,
0.21485483646392822,
-0.15810129046440125,
-0.10626744478940964,
-0.07328187674283981,
0.015230510383844376,
-0.24835430085659027,
-0.045994214713573456,
0.004497055895626545,
0.16817055642604828,
0.16567498445510864,
-0.07489432394504547,
0.09883299469947815,
-0.04938608035445213,
-0.03529413044452667,
-0.05790485441684723,
0.007510057650506496,
-0.09497648477554321,
0.035040244460105896,
0.07417608797550201,
-2.6704016673632873e-32,
0.1543402522802353,
0.1096341535449028,
-0.08746989816427231,
-0.04656201973557472,
-0.025285376235842705,
-0.0495624914765358,
-0.14240571856498718,
-0.09445220977067947,
-0.09008784592151642,
0.044249873608350754,
-0.05028393119573593,
0.023332035169005394,
0.09423225373029709,
0.024593302980065346,
-0.09994012117385864,
0.0045700957998633385,
0.09282531589269638,
-0.06359712034463882,
-0.10446007549762726,
0.04307805001735687,
0.2105693519115448,
0.16156630218029022,
-0.036683306097984314,
-0.06775683164596558,
-0.010188144631683826,
0.058698322623968124,
-0.09401636570692062,
-0.06289729475975037,
0.1111658588051796,
0.0692225843667984,
-0.09178149700164795,
0.04352232441306114,
-0.04210231080651283,
-0.008091923780739307,
-0.06302794814109802,
-0.13117852807044983,
-0.1250271052122116,
0.07040124386548996,
0.004255366045981646,
0.26986974477767944,
0.17327770590782166,
-0.02823689393699169,
0.24297145009040833,
-0.2287481129169464,
-0.09381387382745743,
-0.014918903820216656,
0.10409697890281677,
-0.12791776657104492,
-0.053683824837207794,
-0.003809081157669425,
0.05976762995123863,
-0.043089237064123154,
0.02453800104558468,
0.027064289897680283,
0.07129690796136856,
-0.28734681010246277,
-0.060243066400289536,
0.15367428958415985,
0.048258569091558456,
0.02510545216500759,
0.09580350667238235,
0.004420666955411434,
-0.011390488594770432,
0.009763170965015888,
0.12618833780288696,
0.02349940314888954,
0.25579237937927246,
0.09563271701335907,
0.012698455713689327,
-0.17726606130599976,
0.14138200879096985,
0.21784409880638123,
-0.010688603855669498,
-0.05429285392165184,
0.0977666974067688,
-0.12745361030101776,
-0.012955275364220142,
0.18573054671287537,
-0.06648174673318863,
-0.039972465485334396,
-0.025592058897018433,
-0.16216684877872467,
0.0644008070230484,
0.0757610872387886,
0.013874031603336334,
-0.012601054273545742,
-0.05013355240225792,
-0.0638422966003418,
0.04855487868189812,
-0.15108001232147217,
-0.041631460189819336,
0.059524763375520706,
-0.13948041200637817,
-0.18953125178813934,
-0.15741102397441864,
-0.04908226057887077,
-0.08680383861064911,
0.11543617397546768,
-0.12982390820980072,
0.03869498893618584,
-0.011259517632424831,
-0.049206461757421494,
0.02352140285074711,
0.038727834820747375,
-0.06333113461732864,
0.15844562649726868,
0.14538399875164032,
0.15437690913677216,
-0.1433607041835785,
0.07342304289340973,
0.0036169777158647776,
0.028561268001794815,
0.15579402446746826,
0.071137435734272,
0.01644180715084076,
-0.10956616699695587,
0.03732207417488098,
0.0312664657831192,
0.18576011061668396,
0.26108983159065247,
-0.04716815426945686,
-0.0489521399140358,
-0.1246509999036789,
0.06279794126749039,
-0.11108649522066116,
-0.0593145452439785,
-0.12244902551174164,
0.1349918097257614,
-0.09573718905448914,
-0.1929466724395752,
0.10956045985221863,
-0.03495640680193901,
7.237054546749278e-7,
-0.17166300117969513,
0.06862419098615646,
-0.03269064798951149,
-0.03705345466732979,
0.030474241822957993,
0.09130281955003738,
-0.25986963510513306,
0.11160626262426376,
-0.10489070415496826,
0.2153742015361786,
0.05118916928768158,
-0.016646888107061386,
0.058592576533555984,
-0.15007130801677704,
0.0799686536192894,
0.05098703131079674,
-0.036740392446517944,
-0.2114739567041397,
-0.11004184931516647,
0.19454433023929596,
0.005686693359166384,
0.2530033588409424,
-0.005665362812578678,
-0.038705553859472275,
0.1003493070602417,
-0.2869279682636261,
-0.07323702424764633,
-0.025579476729035378,
-0.03736972063779831,
-0.132703498005867,
0.04618174955248833,
0.00564614636823535,
0.01927008479833603,
-0.0005487624439410865,
-0.027410265058279037,
0.09090526401996613,
-0.1026054099202156,
-0.016084985807538033,
0.004937672056257725,
0.15565809607505798,
-0.0995115339756012,
-0.13244782388210297,
0.11820998787879944,
-0.13516132533550262,
0.10616280138492584,
0.23362290859222412,
-0.07487787306308746,
0.02518179826438427,
-0.10988754779100418,
-0.07729631662368774,
-0.060988180339336395,
0.004281726665794849,
0.0358109287917614,
0.28302785754203796,
-0.037752922624349594,
-0.06484849005937576,
0.07656573504209518,
-0.14248499274253845,
0.04372330382466316,
-0.20204035937786102,
-0.007901633158326149,
-0.08978524059057236,
0.030113864690065384,
0.08102832734584808,
0.004618327133357525,
-0.09891162067651749,
-0.0716366320848465,
6.582173729767187e-35,
-0.045182015746831894,
0.02197417803108692,
-0.010621175169944763,
-0.19584675133228302,
-0.1251341849565506,
-0.08505299687385559,
0.15300360321998596,
0.049784936010837555,
-0.03765179216861725,
-0.12439405918121338,
-0.040286656469106674
] |
https://github.com/huggingface/datasets/issues/2391 | Missing original answers in kilt-TriviaQA | That could be useful indeed! Feel free to open a PR on the dataset card if you already have some code that runs, otherwise we'll take care of it soon :) | I previously opened an issue at https://github.com/facebookresearch/KILT/issues/42 but from the answer of @fabiopetroni it seems that the problem comes from HF-datasets
## Describe the bug
The `answer` field in kilt-TriviaQA, e.g. `kilt_tasks['train_triviaqa'][0]['output']['answer']` contains a list of alternative answer which are accepted for the question.
However it'd be nice to know the original answer to the question (the only fields in `output` are `'answer', 'meta', 'provenance'`)
## How to fix
It can be fixed by retrieving the original answer from the original TriviaQA (e.g. `trivia_qa['train'][0]['answer']['value']`), perhaps at the same place as here where one retrieves the questions https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md#loading-the-kilt-knowledge-source-and-task-data
cc @yjernite who previously answered to an issue about KILT and TriviaQA :)
| 31 | Missing original answers in kilt-TriviaQA
I previously opened an issue at https://github.com/facebookresearch/KILT/issues/42 but from the answer of @fabiopetroni it seems that the problem comes from HF-datasets
## Describe the bug
The `answer` field in kilt-TriviaQA, e.g. `kilt_tasks['train_triviaqa'][0]['output']['answer']` contains a list of alternative answer which are accepted for the question.
However it'd be nice to know the original answer to the question (the only fields in `output` are `'answer', 'meta', 'provenance'`)
## How to fix
It can be fixed by retrieving the original answer from the original TriviaQA (e.g. `trivia_qa['train'][0]['answer']['value']`), perhaps at the same place as here where one retrieves the questions https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md#loading-the-kilt-knowledge-source-and-task-data
cc @yjernite who previously answered to an issue about KILT and TriviaQA :)
That could be useful indeed! Feel free to open a PR on the dataset card if you already have some code that runs, otherwise we'll take care of it soon :) | [
0.1293448805809021,
0.07240157574415207,
-0.05889764428138733,
0.15772688388824463,
-0.15627913177013397,
-0.04838496074080467,
0.0005324347876012325,
0.10318006575107574,
-0.07063896954059601,
0.08854920417070389,
0.16313959658145905,
0.11068253219127655,
-0.06515709310770035,
-0.15763330459594727,
0.011760017834603786,
0.07315345853567123,
-0.11637889593839645,
0.031810909509658813,
-0.04768131673336029,
-0.19123750925064087,
-0.023851700127124786,
0.03752775117754936,
0.0806666761636734,
-0.11384674906730652,
-0.15174637734889984,
0.12332729995250702,
-0.17837640643119812,
-0.13616609573364258,
-0.03960275650024414,
-0.07897023856639862,
0.16048583388328552,
0.0511285774409771,
-0.1681538075208664,
-0.19972068071365356,
0.000005838639026478631,
-0.1831302046775818,
-0.04104241356253624,
-0.007440747693181038,
-0.02575158141553402,
-0.03249400481581688,
-0.09802785515785217,
0.17880001664161682,
0.026496173813939095,
-0.11513901501893997,
0.0019017721060663462,
0.18963739275932312,
0.11870690435171127,
0.055110737681388855,
-0.01134122908115387,
-0.035283107310533524,
0.07497139275074005,
0.12893518805503845,
0.0012425094610080123,
-0.057151734828948975,
0.24130521714687347,
0.14884117245674133,
-0.07229703664779663,
0.08977066725492477,
-0.1752844899892807,
0.12174814939498901,
0.08652334660291672,
0.17818789184093475,
0.0729534700512886,
0.08463633060455322,
-0.2791549563407898,
0.015470251441001892,
-0.07051059603691101,
-0.007254909258335829,
0.11498554050922394,
-0.059062469750642776,
0.09024076163768768,
0.08695627003908157,
-0.1551278978586197,
0.09506604075431824,
0.03709577023983002,
0.017735088244080544,
-0.01655130833387375,
0.10087787359952927,
-0.1322765201330185,
-0.13292530179023743,
0.013141491450369358,
-0.056467968970537186,
-0.14107665419578552,
-0.011758280918002129,
-0.12233924120664597,
0.12284314632415771,
-0.0045070708729326725,
0.11854366958141327,
-0.1754319816827774,
-0.13953350484371185,
-0.0013921651989221573,
0.031041420996189117,
-0.14630895853042603,
0.11202119290828705,
0.14321967959403992,
-0.007417162414640188,
0.12383059412240982,
-0.2193884551525116,
0.18417346477508545,
-0.06170513853430748,
0.012176533229649067,
-0.011890284717082977,
-0.20227737724781036,
0.023790214210748672,
0.040238428860902786,
0.18214717507362366,
0.09523127228021622,
-0.09330592304468155,
-0.05922551453113556,
0.0331827737390995,
0.014855328015983105,
-0.09573027491569519,
0.003961874637752771,
0.04635564610362053,
-0.0941598042845726,
0.04783473536372185,
0.141847625374794,
-0.017147822305560112,
-0.10440900921821594,
-0.07411143183708191,
0.07359254360198975,
0.2118927240371704,
-0.11685258895158768,
0.0521366186439991,
-0.03726746886968613,
0.1438915729522705,
0.008336213417351246,
0.0161952655762434,
0.03250213339924812,
-0.09519053250551224,
-0.03108038567006588,
-0.06141168996691704,
-0.08270293474197388,
0.04171714559197426,
0.09076894819736481,
0.03766269609332085,
0.028484737500548363,
0.002433532616123557,
0.042067088186740875,
-0.08871488273143768,
-0.07910683006048203,
-0.08019361644983292,
0.04685351252555847,
0.07252319157123566,
0.2305985689163208,
0.0649527981877327,
0.15793249011039734,
0.03976084664463997,
0.024197664111852646,
0.03582127392292023,
-0.35308390855789185,
0.08899597078561783,
-0.23760804533958435,
0.09568680822849274,
-0.049291905015707016,
0.02102413773536682,
-0.046407632529735565,
-0.07750653475522995,
-0.1899269074201584,
-0.18818186223506927,
0.011011454276740551,
0.010287380777299404,
0.08934762328863144,
-0.09081321209669113,
0.15797434747219086,
-0.08488886803388596,
0.04565703496336937,
-0.011572180315852165,
-0.0709291473031044,
-0.022321240976452827,
0.04395529627799988,
0.02532084472477436,
-0.0031772011425346136,
0.00574741093441844,
-0.08134030550718307,
0.18319207429885864,
-0.089464470744133,
-0.06206735968589783,
-0.13153235614299774,
-0.008354599587619305,
0.172684907913208,
0.048363953828811646,
-0.08395388722419739,
-0.09734383225440979,
0.0774560272693634,
0.05474931374192238,
0.02652994729578495,
-0.03534902632236481,
0.00646000262349844,
-0.12114900350570679,
0.08318661898374557,
-0.07349693775177002,
-0.09548886120319366,
0.04142732545733452,
0.15147769451141357,
0.006669364869594574,
0.05509030818939209,
-0.15684199333190918,
0.08833155035972595,
-0.06818634271621704,
0.011379485949873924,
0.013254801742732525,
0.223202183842659,
0.09293968975543976,
-0.1039724126458168,
0.06200028583407402,
0.0036114526446908712,
0.046163734048604965,
-0.06376292556524277,
-0.09703616052865982,
-0.1484169214963913,
-0.04086766019463539,
-0.11382237076759338,
0.1133059710264206,
-0.13288626074790955,
-0.09332386404275894,
0.1395173966884613,
-0.13801343739032745,
-0.02423587255179882,
0.07270413637161255,
-0.12174029648303986,
0.08533786237239838,
-0.05597122758626938,
-0.05690126121044159,
-0.026502808555960655,
0.12264711409807205,
0.04390754923224449,
-0.13832244277000427,
0.06961990892887115,
0.22384916245937347,
-0.08116123080253601,
0.131055548787117,
0.05028276517987251,
0.014906845986843109,
-0.051411572843790054,
0.014075043611228466,
0.11677324771881104,
-0.21728351712226868,
0.2965714931488037,
-0.023638997226953506,
-0.05828302353620529,
0.11571551114320755,
-0.02724754996597767,
0.005633598659187555,
-0.1372406780719757,
-0.1557728350162506,
-0.043571021407842636,
-0.01541674043983221,
-0.02662982977926731,
0.015490698628127575,
-0.04844578355550766,
-0.17863290011882782,
-0.016235336661338806,
-0.01763603836297989,
-0.023059101775288582,
-0.2042253613471985,
-0.16594798862934113,
-0.01117116492241621,
-0.19938011467456818,
0.08896325528621674,
0.29376545548439026,
-0.022545557469129562,
0.03560606762766838,
-0.07693939656019211,
0.08907850831747055,
-0.012775271199643612,
0.07560893893241882,
-0.029021238908171654,
-0.09758058935403824,
-0.01918923854827881,
-0.03905867040157318,
-0.052963513880968094,
-0.006506029516458511,
-0.012106824666261673,
0.016360271722078323,
-0.21148094534873962,
0.02177000418305397,
0.18442402780056,
0.16364850103855133,
0.11152862757444382,
-0.19686754047870636,
0.2212829291820526,
-0.01697208546102047,
-0.08952133357524872,
0.05296342074871063,
0.024311775341629982,
-0.2884100377559662,
-0.021972782909870148,
0.02105756662786007,
0.042718853801488876,
-0.11213674396276474,
-0.04146469756960869,
0.02945712022483349,
0.053442440927028656,
-0.0019823925103992224,
-0.239716038107872,
-0.06170651316642761,
-0.22615675628185272,
0.08780598640441895,
0.012309820391237736,
-0.2121528834104538,
0.02763521857559681,
-0.16632740199565887,
0.004864969290792942,
-0.30288130044937134,
-0.1882702261209488,
0.08556792885065079,
-0.05237509310245514,
-0.0696951299905777,
-0.18584443628787994,
0.02926158718764782,
-0.12285388261079788,
0.03844737634062767,
0.1368204802274704,
0.06455042958259583,
0.16133743524551392,
-0.24966099858283997,
-0.02392244152724743,
0.06678246706724167,
0.11876043677330017,
0.008379289880394936,
-0.003400611225515604,
-0.13420934975147247,
0.03819958493113518,
0.04393012076616287,
-0.17728948593139648,
-0.0854596197605133,
-0.02993219904601574,
0.009663477540016174,
0.025967193767428398,
0.13359671831130981,
0.12226361036300659,
0.13204145431518555,
-0.24425870180130005,
-0.033189721405506134,
-0.023959524929523468,
-0.19776269793510437,
-0.055664390325546265,
0.3868911564350128,
-0.13392335176467896,
-0.05294099077582359,
0.20449212193489075,
-0.01630968414247036,
0.11399660259485245,
0.063624806702137,
-0.2032652199268341,
-0.17379479110240936,
0.06268603354692459,
0.004369538743048906,
-0.0128040611743927,
0.036011144518852234,
0.006362619809806347,
-0.09117583185434341,
-0.10186561197042465,
-0.07706739753484726,
0.17846408486366272,
0.05976429209113121,
0.1429382562637329,
0.2228306233882904,
0.06709397584199905,
-0.06351061165332794,
0.23283983767032623,
0.3449562191963196,
-0.03526446223258972,
0.20728106796741486,
0.013801490887999535,
0.06808312237262726,
0.16449807584285736,
0.052895210683345795,
-0.024816418066620827,
0.01934969238936901,
0.014701862819492817,
0.15263384580612183,
0.06305862963199615,
-0.018327150493860245,
0.21583376824855804,
0.03059479035437107,
0.09007177501916885,
-0.09678278118371964,
-0.1589106023311615,
-0.13200053572654724,
-0.17086899280548096,
0.052458155900239944,
0.13325545191764832,
0.14384466409683228,
0.1619744598865509,
-0.03213144838809967,
0.10168995708227158,
-0.1526014804840088,
0.008357388898730278,
0.06917115300893784,
0.013116247020661831,
-0.15242207050323486,
0.12961895763874054,
-0.17559395730495453,
-0.06933481246232986,
0.023068323731422424,
0.11263047158718109,
0.09726502001285553,
0.15378493070602417,
-0.035813964903354645,
0.18660025298595428,
0.1254546046257019,
0.17451345920562744,
-0.0007237126701511443,
0.1382906585931778,
0.13829539716243744,
-0.04239266738295555,
0.05652112141251564,
0.008641732856631279,
0.0314403735101223,
-0.00013097342161927372,
0.06964859366416931,
-0.0645851269364357,
0.09545834362506866,
-0.116102434694767,
0.017238322645425797,
-0.0007155824569053948,
-0.020773043856024742,
-0.07414443790912628,
-0.028635259717702866,
0.012552356347441673,
0.07140232622623444,
0.013631931506097317,
0.06706469506025314,
-0.07171455770730972,
-0.056773457676172256,
0.009674829430878162,
0.08080514520406723,
-0.06564299017190933,
0.0031619013752788305,
-0.05584174022078514,
0.06492682546377182,
0.10695131123065948,
0.060115646570920944,
-0.0899895578622818,
0.1934986412525177,
0.013314181007444859,
-0.07565496116876602,
0.023552514612674713,
-0.3155795633792877,
-0.0065923756919801235,
0.08692508935928345,
-0.06963160634040833,
0.00391077296808362,
-0.026523316279053688,
-0.03772301226854324,
-0.22203309834003448,
0.044849082827568054,
-0.12064503878355026,
-0.15601742267608643,
0.02498158998787403,
0.004953672643750906,
-0.25290727615356445,
-0.06483499705791473,
0.031088706105947495,
0.10959022492170334,
-0.09301866590976715,
-0.1468314379453659,
0.02395014651119709,
0.17682300508022308,
-0.036673661321401596,
0.0024249909911304712,
0.03689485043287277,
0.1633072793483734,
0.0308384969830513,
0.16433987021446228,
-0.12734206020832062,
0.07678435742855072,
-0.11328165233135223,
-0.028645318001508713,
-0.005401482339948416,
0.016116268932819366,
0.06728314608335495,
0.034856028854846954,
0.0015339321689680219,
0.13420714437961578,
0.1817302703857422,
0.10666298121213913,
0.06631162762641907,
0.14836493134498596,
0.12394344806671143,
0.07822710275650024,
-0.04834054782986641,
0.006615114863961935,
-0.09507279098033905,
0.056882984936237335,
-0.03238489851355553,
-0.20238672196865082,
-0.14355872571468353,
0.022621948271989822,
0.07838607579469681,
0.1608765572309494,
-0.08390391618013382,
0.08767420798540115,
0.16912396252155304,
-0.13115668296813965,
-0.17769773304462433,
0.2235817313194275,
0.05371350049972534,
0.024871373549103737,
0.035939913243055344,
0.20201320946216583,
0.21679165959358215,
-0.05317559093236923,
-0.09718205034732819,
0.11363586038351059,
-0.04554904252290726,
0.06839434802532196,
-0.1140761598944664,
0.06403608620166779,
0.039117082953453064,
-0.026700686663389206,
-0.20251572132110596,
-0.13240984082221985,
0.07856253534555435,
-0.04761495068669319,
0.08451775461435318,
0.07589481770992279,
0.11859478801488876,
0.001222015474922955,
-0.1570730358362198,
-0.08298700302839279,
0.18849916756153107,
0.16831371188163757,
-0.02291051298379898,
-0.042851485311985016,
-0.1269521266222,
0.11303100734949112,
0.12382417917251587,
0.0007200002437457442,
0.23654185235500336,
-0.033904142677783966,
-0.10770231485366821,
-0.0039300015196204185,
-0.006432290654629469,
-0.1636526882648468,
0.020664716139435768,
0.05466563254594803,
-0.15440991520881653,
-0.019732270389795303,
-0.08088985085487366,
-0.09810313582420349,
0.056976400315761566,
0.04222090169787407,
-0.0310673788189888,
-0.19440220296382904,
0.05670033395290375,
-0.02232391946017742,
-0.1926606148481369,
-0.00037683997652493417,
0.0975029468536377,
-0.22744427621364594,
0.0026091390755027533,
0.07985706627368927,
-2.4133677787388982e-32,
0.05402487516403198,
-0.04345167055726051,
0.07392395287752151,
-0.005480599589645863,
-0.06861067563295364,
0.187188059091568,
0.03554268181324005,
-0.07387128472328186,
-0.1631215512752533,
-0.0407809279859066,
0.14026641845703125,
-0.1885489821434021,
0.06871501356363297,
0.1280619502067566,
0.14788596332073212,
-0.12933072447776794,
-0.23030054569244385,
-0.09302311390638351,
-0.011903846636414528,
0.06750024110078812,
0.1620023250579834,
0.016410458832979202,
0.05378050357103348,
-0.05439406633377075,
0.05752735957503319,
-0.12425871193408966,
-0.06643546372652054,
-0.02889065071940422,
-0.13022008538246155,
-0.0368371419608593,
-0.1035824567079544,
0.030872153118252754,
-0.0016079837223514915,
-0.030899619683623314,
-0.0931188240647316,
-0.15272203087806702,
-0.16444113850593567,
0.028396613895893097,
-0.11178029328584671,
-0.11523408442735672,
-0.014007688499987125,
0.0543505996465683,
-0.24052254855632782,
-0.1678975522518158,
0.11571817845106125,
-0.0404636412858963,
-0.013329549692571163,
0.05414969101548195,
0.07303144782781601,
-0.09362255781888962,
0.01320259552448988,
-0.05388296768069267,
-0.03245962783694267,
-0.010658307932317257,
0.0010962513042613864,
0.24556539952754974,
0.23450061678886414,
-0.09617520123720169,
-0.12201812118291855,
0.03789021074771881,
0.18212732672691345,
-0.06493310630321503,
0.03528833016753197,
-0.00988641194999218,
0.006157449912279844,
-0.21467448770999908,
0.30397263169288635,
0.06172611564397812,
0.08344023674726486,
0.1239505335688591,
-0.011567124165594578,
0.1448565423488617,
-0.09231790155172348,
-0.050781816244125366,
-0.2804228663444519,
-0.02872527204453945,
-0.017124317586421967,
0.010405817069113255,
-0.08861240744590759,
0.10852129757404327,
0.01233710441738367,
0.021973252296447754,
0.010628578253090382,
-0.11552450805902481,
-0.09714559465646744,
-0.004947870969772339,
-0.05163586139678955,
0.0688067302107811,
0.07091023027896881,
-0.10520702600479126,
-0.027708668261766434,
0.08053971827030182,
0.04542943090200424,
0.005908675491809845,
-0.12626966834068298,
0.13807611167430878,
-0.12134674936532974,
0.14906242489814758,
-0.05237215384840965,
0.10947708040475845,
0.019705280661582947,
0.13686184585094452,
0.12078077346086502,
0.06659238040447235,
-0.007171903271228075,
0.0846477746963501,
0.062410932034254074,
0.06251797825098038,
-0.1327192783355713,
-0.12069626152515411,
-0.0670083686709404,
0.0860980972647667,
0.08457441627979279,
-0.07902514934539795,
0.15866824984550476,
0.09757967293262482,
0.029806680977344513,
0.019828688353300095,
0.1860506236553192,
0.11958435922861099,
-0.05983160063624382,
0.035804279148578644,
-0.1559659093618393,
-0.16730262339115143,
0.1742296814918518,
0.188395693898201,
0.015252179466187954,
-0.128777876496315,
-0.09885253757238388,
0.17142780125141144,
0.07002793997526169,
-0.0654418021440506,
7.341420769080287e-7,
-0.08896760642528534,
-0.044826705008745193,
0.09104364365339279,
-0.15823180973529816,
-0.028960058465600014,
0.12147513031959534,
-0.18124409019947052,
0.06418759375810623,
0.06942705810070038,
0.05296199023723602,
-0.09721887856721878,
-0.1021096482872963,
0.03601108491420746,
-0.08105664700269699,
-0.05607745423913002,
-0.11869876086711884,
0.03522558882832527,
-0.13139046728610992,
-0.073196642100811,
0.2041282206773758,
0.09121648222208023,
0.028413191437721252,
0.013897585682570934,
-0.05053078383207321,
-0.009322373196482658,
0.04805145412683487,
-0.07796142250299454,
0.003247729269787669,
-0.14005064964294434,
-0.07622691243886948,
0.04908037930727005,
-0.13944374024868011,
0.042992960661649704,
0.05042118951678276,
0.03072582371532917,
-0.0020063589327037334,
-0.052087459713220596,
0.005947140511125326,
0.07279994338750839,
-0.07604578882455826,
-0.04169101640582085,
0.10168668627738953,
0.028117697685956955,
-0.1730029433965683,
0.10275914520025253,
0.13737863302230835,
0.016058403998613358,
-0.01604623720049858,
-0.21214042603969574,
0.10253620147705078,
0.03915823623538017,
0.17778617143630981,
0.1692298799753189,
0.07764767110347748,
-0.08929431438446045,
0.12769244611263275,
-0.037242595106363297,
-0.061078030616045,
0.016060685738921165,
-0.05519624426960945,
-0.12354132533073425,
-0.13210923969745636,
0.019948365166783333,
-0.04709050804376602,
0.09040893614292145,
-0.19945135712623596,
-0.021014166995882988,
1.3428488157415094e-34,
-0.12541338801383972,
0.10472092032432556,
-0.013715329580008984,
-0.12647517025470734,
0.05068255215883255,
0.02266177348792553,
0.22457744181156158,
0.09547221660614014,
0.031166592612862587,
-0.02042984589934349,
-0.037414249032735825
] |
https://github.com/huggingface/datasets/issues/2391 | Missing original answers in kilt-TriviaQA | I can open a PR but there is 2 details to fix:
- the name for the corresponding key (e.g. `original_answer`)
- how to implement it: I’m not sure what happens when you map `lambda x: {'input': ...}` as it keeps the other keys (e.g. `output`) intact but here since we want to set a nested value (e.g. `x['output']['original_answer']`) I implemented it with a regular function (not lambda), see below
```py
def add_original_answer(x, trivia_qa, triviaqa_map):
i = triviaqa_map[x['id']]
x['output']['original_answer'] = trivia_qa['validation'][i]['answer']['value']
return x
``` | I previously opened an issue at https://github.com/facebookresearch/KILT/issues/42 but from the answer of @fabiopetroni it seems that the problem comes from HF-datasets
## Describe the bug
The `answer` field in kilt-TriviaQA, e.g. `kilt_tasks['train_triviaqa'][0]['output']['answer']` contains a list of alternative answer which are accepted for the question.
However it'd be nice to know the original answer to the question (the only fields in `output` are `'answer', 'meta', 'provenance'`)
## How to fix
It can be fixed by retrieving the original answer from the original TriviaQA (e.g. `trivia_qa['train'][0]['answer']['value']`), perhaps at the same place as here where one retrieves the questions https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md#loading-the-kilt-knowledge-source-and-task-data
cc @yjernite who previously answered to an issue about KILT and TriviaQA :)
| 84 | Missing original answers in kilt-TriviaQA
I previously opened an issue at https://github.com/facebookresearch/KILT/issues/42 but from the answer of @fabiopetroni it seems that the problem comes from HF-datasets
## Describe the bug
The `answer` field in kilt-TriviaQA, e.g. `kilt_tasks['train_triviaqa'][0]['output']['answer']` contains a list of alternative answer which are accepted for the question.
However it'd be nice to know the original answer to the question (the only fields in `output` are `'answer', 'meta', 'provenance'`)
## How to fix
It can be fixed by retrieving the original answer from the original TriviaQA (e.g. `trivia_qa['train'][0]['answer']['value']`), perhaps at the same place as here where one retrieves the questions https://github.com/huggingface/datasets/blob/master/datasets/kilt_tasks/README.md#loading-the-kilt-knowledge-source-and-task-data
cc @yjernite who previously answered to an issue about KILT and TriviaQA :)
I can open a PR but there is 2 details to fix:
- the name for the corresponding key (e.g. `original_answer`)
- how to implement it: I’m not sure what happens when you map `lambda x: {'input': ...}` as it keeps the other keys (e.g. `output`) intact but here since we want to set a nested value (e.g. `x['output']['original_answer']`) I implemented it with a regular function (not lambda), see below
```py
def add_original_answer(x, trivia_qa, triviaqa_map):
i = triviaqa_map[x['id']]
x['output']['original_answer'] = trivia_qa['validation'][i]['answer']['value']
return x
``` | [
0.17544619739055634,
0.019378434866666794,
-0.040556665509939194,
0.0863884761929512,
-0.09929247945547104,
-0.01587316393852234,
-0.0031625160481780767,
0.06801097095012665,
-0.13100922107696533,
0.030245965346693993,
0.09950732439756393,
0.11512605100870132,
-0.0011802634689956903,
-0.12706933915615082,
0.010710557922720909,
0.01886388100683689,
-0.044582925736904144,
0.0023730166722089052,
-0.010902907699346542,
-0.20189538598060608,
-0.09732575714588165,
0.08539118617773056,
0.05067475140094757,
-0.05948127433657646,
-0.07580927014350891,
0.0643182247877121,
-0.18963885307312012,
-0.10612502694129944,
-0.08767063170671463,
-0.030590707436203957,
0.008826123550534248,
0.06334200501441956,
-0.19320587813854218,
-0.2106071412563324,
0.000005888115538255079,
-0.20362962782382965,
-0.055210474878549576,
-0.09661705791950226,
0.04705766960978508,
-0.03018941357731819,
-0.10963614284992218,
0.15389034152030945,
0.007064126431941986,
-0.0895473062992096,
-0.06965228915214539,
0.19300296902656555,
0.0776955783367157,
0.01802957057952881,
0.029674487188458443,
-0.034077685326337814,
0.071164570748806,
0.0812789797782898,
0.07785747945308685,
0.008891941048204899,
0.16110897064208984,
0.0633135437965393,
-0.10192509740591049,
0.007365632336586714,
-0.0862928107380867,
0.11548067629337311,
0.11572765558958054,
0.11887771636247635,
0.059318240731954575,
0.09411269426345825,
-0.20413613319396973,
0.021775051951408386,
-0.0756445899605751,
-0.09764121472835541,
0.0832071378827095,
-0.09323730319738388,
-0.02560746856033802,
0.05238283425569534,
-0.18488718569278717,
0.053810667246580124,
0.05350497364997864,
-0.031134868040680885,
-0.06610513478517532,
0.06566249579191208,
-0.15673638880252838,
-0.13589775562286377,
0.08190995454788208,
-0.04440539702773094,
-0.08371540158987045,
-0.009293556213378906,
-0.07317456603050232,
0.1673949658870697,
-0.00008724483632249758,
0.18597650527954102,
-0.14712533354759216,
-0.11242985725402832,
-0.03245169296860695,
-0.046923864632844925,
-0.16346843540668488,
0.13248015940189362,
0.06909094750881195,
0.00872277282178402,
0.12093931436538696,
-0.23006561398506165,
0.14827251434326172,
-0.08689450472593307,
-0.017557747662067413,
-0.041607681661844254,
-0.14339987933635712,
0.014782450161874294,
-0.02799622155725956,
0.19383393228054047,
0.0662105605006218,
0.014378879219293594,
-0.0908190980553627,
-0.05081970617175102,
-0.04413663223385811,
-0.1291862577199936,
-0.011147699318826199,
0.10396780073642731,
0.012301753275096416,
0.02128651924431324,
0.08497102558612823,
0.049220651388168335,
-0.10644105821847916,
-0.03253496065735817,
0.040422290563583374,
0.18265964090824127,
-0.09518327564001083,
0.035065263509750366,
0.019642457365989685,
0.0867779329419136,
-0.02277328632771969,
0.02678932435810566,
0.019087104126811028,
-0.031274374574422836,
0.0006267749704420567,
-0.05178438127040863,
-0.07098900526762009,
0.1002412810921669,
0.009810243733227253,
0.044057514518499374,
0.0605122372508049,
-0.025990791618824005,
0.11967639625072479,
-0.16201762855052948,
-0.03325357288122177,
-0.11328066885471344,
0.021827954798936844,
0.057115890085697174,
0.20207685232162476,
0.0878092497587204,
0.1636277139186859,
-0.016770362854003906,
0.021007493138313293,
-0.00137257797177881,
-0.32298821210861206,
0.07859086245298386,
-0.2562061548233032,
0.1359119862318039,
-0.0749027207493782,
0.04525505006313324,
-0.04628146439790726,
-0.08664868026971817,
-0.15388867259025574,
-0.18545134365558624,
0.03942983224987984,
0.028712229803204536,
0.11802937090396881,
-0.17470683157444,
0.11168346554040909,
-0.03631749749183655,
0.12212195992469788,
0.003389971563592553,
-0.07108421623706818,
-0.009795079939067364,
0.03597282990813255,
-0.029085464775562286,
0.055986929684877396,
0.0011947036255151033,
-0.10870441049337387,
0.18082542717456818,
-0.10052528232336044,
-0.03698187693953514,
-0.1074337363243103,
0.012367560528218746,
0.12835527956485748,
0.13803091645240784,
-0.06555671989917755,
-0.11909803748130798,
0.08596641570329666,
0.0284062922000885,
0.03832726180553436,
-0.023637991398572922,
-0.04214147478342056,
-0.13917949795722961,
0.04359970614314079,
0.004466425161808729,
-0.11998818069696426,
-0.03224371373653412,
0.1268044412136078,
0.044614359736442566,
0.02452300302684307,
-0.13731515407562256,
0.09072386473417282,
-0.06543295085430145,
0.047058239579200745,
0.017683079466223717,
0.22371990978717804,
0.07334597408771515,
-0.10133744031190872,
0.1263708472251892,
-0.1035238578915596,
0.07795438915491104,
-0.12658335268497467,
0.006238939706236124,
-0.12919679284095764,
-0.019976584240794182,
-0.09717591106891632,
0.1629324108362198,
-0.24112965166568756,
-0.08288191258907318,
0.17226040363311768,
-0.12850822508335114,
-0.033574093133211136,
0.0175081267952919,
-0.11384685337543488,
0.02741624414920807,
-0.002755844034254551,
-0.054465629160404205,
-0.011254968121647835,
0.06423763185739517,
0.03140949457883835,
-0.1496458351612091,
-0.015464386902749538,
0.19448637962341309,
0.0008920346735976636,
0.15747983753681183,
0.0870138481259346,
0.07851462066173553,
-0.05733972042798996,
0.015656601637601852,
0.06591077148914337,
-0.18088333308696747,
0.2906346917152405,
0.014316842891275883,
-0.008702218532562256,
0.14603863656520844,
0.038169097155332565,
-0.04777929186820984,
-0.15778811275959015,
-0.11927048861980438,
-0.008099661208689213,
0.007594720926135778,
-0.07316293567419052,
0.015248866751790047,
-0.05628016218543053,
-0.1995960921049118,
-0.03811806067824364,
-0.014619885012507439,
-0.06682385504245758,
-0.25020599365234375,
-0.16474401950836182,
0.0027970802038908005,
-0.15074998140335083,
0.07814545929431915,
0.2693483829498291,
-0.05909166857600212,
0.04741291329264641,
-0.11232877522706985,
0.086556576192379,
-0.03601176664233208,
0.11332705616950989,
0.020938651636242867,
-0.02956385351717472,
-0.03208903595805168,
-0.013085982762277126,
-0.0861118882894516,
0.040830422192811966,
-0.049345094710588455,
0.023272810503840446,
-0.2705323398113251,
0.038753263652324677,
0.14850004017353058,
0.18096041679382324,
0.09507264941930771,
-0.15000565350055695,
0.2208048552274704,
-0.008237190544605255,
-0.09905575960874557,
0.017114795744419098,
0.10297302901744843,
-0.21346990764141083,
0.0232390109449625,
-0.02063238061964512,
0.0755205824971199,
-0.09876323491334915,
-0.08620337396860123,
0.033759955316782,
0.08837713301181793,
0.012038840912282467,
-0.1725027710199356,
-0.03275376930832863,
-0.34456413984298706,
0.04891825094819069,
-0.09882692247629166,
-0.17857834696769714,
0.09027981758117676,
-0.1360550820827484,
0.015338043682277203,
-0.33145761489868164,
-0.2501862347126007,
0.051847513765096664,
0.05632277578115463,
-0.10199566930532455,
-0.2404671311378479,
-0.055776726454496384,
-0.13978031277656555,
-0.046027928590774536,
0.17261111736297607,
0.07126973569393158,
0.1295541226863861,
-0.2850514054298401,
-0.11112982779741287,
0.134547621011734,
0.1036248505115509,
0.007794479839503765,
-0.022107820957899094,
-0.1712643802165985,
-0.006874006241559982,
0.05563712865114212,
-0.25836876034736633,
-0.023711159825325012,
-0.055881768465042114,
0.010301435366272926,
0.057164598256349564,
0.16131477057933807,
0.12088827788829803,
0.08824402093887329,
-0.30988332629203796,
-0.07049603760242462,
-0.027882201597094536,
-0.18266010284423828,
0.03684736788272858,
0.3579077124595642,
-0.12005557864904404,
0.008725365623831749,
0.1877986490726471,
-0.0884745866060257,
0.023743364959955215,
0.04657350108027458,
-0.15351225435733795,
-0.14250054955482483,
0.11861227452754974,
0.0711916983127594,
0.023627720773220062,
0.04309535771608353,
0.023553816601634026,
-0.05144482105970383,
-0.10046294331550598,
-0.11579810082912445,
0.20319253206253052,
0.06551822274923325,
0.1635216325521469,
0.2871340215206146,
0.102363720536232,
0.007348991464823484,
0.22022515535354614,
0.2698012888431549,
-0.01237970869988203,
0.19488707184791565,
0.05350159853696823,
0.055359601974487305,
0.011549198068678379,
-0.008551513776183128,
-0.043768588453531265,
0.029434019699692726,
0.021533064544200897,
0.17939762771129608,
0.024791888892650604,
0.0028682337142527103,
0.12945470213890076,
0.04456107318401337,
0.08073923736810684,
-0.11947035044431686,
-0.1726393699645996,
-0.08129569888114929,
-0.175510972738266,
0.0633014664053917,
0.11911427229642868,
0.21212905645370483,
0.12251631915569305,
-0.025239072740077972,
0.0874706357717514,
-0.16909004747867584,
0.05338338017463684,
0.07755029201507568,
0.0644293874502182,
-0.10748136788606644,
0.07083732634782791,
-0.11530149728059769,
-0.07446128129959106,
0.0015200155321508646,
0.12357283383607864,
0.027027826756238937,
0.17579303681850433,
-0.026498500257730484,
0.18360424041748047,
0.0337064266204834,
0.13893143832683563,
-0.005223988555371761,
0.04611942917108536,
0.13490062952041626,
-0.05772102624177933,
0.08785571157932281,
0.10985890030860901,
0.0211055688560009,
0.10591622442007065,
0.03172442317008972,
-0.05352657288312912,
0.0006331725744530559,
-0.05993638187646866,
0.013952033594250679,
-0.03042549267411232,
-0.02932627871632576,
-0.12840746343135834,
-0.07268250733613968,
-0.02222193218767643,
0.07146279513835907,
0.019061466678977013,
0.06666622310876846,
-0.06446856260299683,
-0.05269439518451691,
-0.04050736501812935,
0.13554976880550385,
-0.04789486527442932,
0.023782430216670036,
0.0007819955935701728,
0.1301966905593872,
0.014431193470954895,
0.011216996237635612,
-0.08792459964752197,
0.2034929245710373,
-0.07121534645557404,
-0.09161154925823212,
-0.06931206583976746,
-0.3130800724029541,
-0.03450478985905647,
0.05182220786809921,
-0.1254834234714508,
0.05641600489616394,
0.0034167044796049595,
-0.06210140138864517,
-0.15216989815235138,
-0.034948740154504776,
-0.109410859644413,
-0.20379123091697693,
0.07359190285205841,
-0.008300275541841984,
-0.22256512939929962,
-0.07904010266065598,
0.00697277532890439,
0.12428056448698044,
-0.10359497368335724,
-0.11100443452596664,
0.0028243199922144413,
0.17892387509346008,
-0.033047135919332504,
-0.011175809428095818,
-0.01374653447419405,
0.2170860320329666,
0.04930080100893974,
0.1320578008890152,
-0.030186748132109642,
0.1080731675028801,
-0.06338545680046082,
-0.05631452426314354,
-0.006944707594811916,
0.033250778913497925,
0.12449827790260315,
0.034887801855802536,
-0.019854547455906868,
0.1743047833442688,
0.19501319527626038,
0.07715828716754913,
0.08372977375984192,
0.1459786742925644,
0.13262513279914856,
0.03382572904229164,
-0.03218979388475418,
0.07913768291473389,
-0.032372117042541504,
0.1056731790304184,
0.006463815923780203,
-0.1763462871313095,
-0.13532781600952148,
-0.015175925567746162,
0.0689258724451065,
0.14420463144779205,
-0.07223730534315109,
0.059369299560785294,
0.1931208372116089,
-0.07794372737407684,
-0.16782625019550323,
0.21721994876861572,
0.04487467184662819,
-0.010457009077072144,
0.006967000663280487,
0.16990889608860016,
0.2718566656112671,
-0.041724808514118195,
-0.13754642009735107,
0.09080743789672852,
-0.031269337981939316,
0.05261940509080887,
-0.08196882903575897,
0.048097871243953705,
0.04721212387084961,
-0.026302259415388107,
-0.2409927397966385,
-0.1643238514661789,
-0.025214819237589836,
-0.0657382607460022,
0.11731534451246262,
0.13719643652439117,
0.11847694963216782,
-0.021549828350543976,
-0.18547089397907257,
-0.07137066125869751,
0.14314499497413635,
0.1981601119041443,
-0.034256525337696075,
-0.06676949560642242,
-0.16916890442371368,
0.07973113656044006,
0.1580146700143814,
0.012499197386205196,
0.22881385684013367,
0.05349370092153549,
-0.0382562130689621,
-0.04724752530455589,
0.009912552312016487,
-0.21072016656398773,
0.08649030327796936,
0.04206453636288643,
-0.07576850056648254,
-0.062488969415426254,
-0.09638646990060806,
-0.08318465203046799,
0.03563738986849785,
0.038562510162591934,
-0.025331100448966026,
-0.15637683868408203,
0.03550919517874718,
-0.04969917982816696,
-0.18938866257667542,
-0.03291352093219757,
0.09377773851156235,
-0.21460241079330444,
0.0038793941494077444,
0.09896747022867203,
-2.4394562595506665e-32,
-0.025355292484164238,
-0.032026201486587524,
0.05978459492325783,
0.004697369411587715,
-0.002503839321434498,
0.19452272355556488,
0.09822628647089005,
-0.009142722003161907,
-0.10868095606565475,
-0.04053111374378204,
0.1542745679616928,
-0.11712856590747833,
0.06355921179056168,
0.0975431576371193,
0.09877417236566544,
-0.1556910276412964,
-0.16918247938156128,
-0.013474944047629833,
0.01971879042685032,
0.09719820320606232,
0.1685638427734375,
-0.008736328221857548,
0.12279331684112549,
-0.08249183744192123,
0.02671842835843563,
-0.06457929313182831,
-0.0776645764708519,
-0.08135022968053818,
-0.13996316492557526,
0.039902593940496445,
-0.12416660785675049,
0.14067478477954865,
-0.004243201110512018,
0.0006088597001507878,
-0.13720650970935822,
-0.1683722585439682,
-0.17537684738636017,
0.04270956292748451,
-0.10069162398576736,
-0.12196951359510422,
-0.036695536226034164,
0.04141808673739433,
-0.19829441606998444,
-0.12642721831798553,
0.10740264505147934,
-0.07467307895421982,
0.005558129865676165,
0.06862033158540726,
0.02236871048808098,
-0.06585311144590378,
0.011368242092430592,
-0.03733081743121147,
0.027941415086388588,
-0.05545290932059288,
-0.06005564332008362,
0.18757706880569458,
0.20604774355888367,
-0.06499776244163513,
-0.12892493605613708,
-0.006735877133905888,
0.10528073459863663,
-0.03938617557287216,
0.0496787466108799,
-0.02480515092611313,
0.011387638747692108,
-0.24523255228996277,
0.28294670581817627,
0.09373847395181656,
0.07813475281000137,
0.06799003481864929,
0.02569006383419037,
0.10616231709718704,
-0.06507934629917145,
-0.06371719390153885,
-0.3025738000869751,
0.041013140231370926,
-0.061941590160131454,
0.06678442656993866,
-0.17706477642059326,
0.1027647852897644,
-0.06877479702234268,
0.025156879797577858,
-0.0028436181601136923,
-0.09658081084489822,
-0.13831575214862823,
0.007410588674247265,
-0.035887718200683594,
0.06778210401535034,
-0.013648961670696735,
-0.11407700181007385,
-0.0726068839430809,
0.17079469561576843,
-0.004167837090790272,
0.03533123433589935,
-0.10766277462244034,
0.13496066629886627,
-0.10516829788684845,
0.16595664620399475,
-0.1135418564081192,
0.16809464991092682,
0.10546461492776871,
0.1596810221672058,
0.12337227910757065,
0.05810887739062309,
0.03711659833788872,
0.09695599228143692,
-0.0024080758448690176,
0.07842710614204407,
-0.12828420102596283,
-0.1206975057721138,
-0.05397242307662964,
0.06903372704982758,
0.07522710412740707,
0.09212542325258255,
0.19268620014190674,
0.057350803166627884,
0.034787558019161224,
0.027185579761862755,
0.13136668503284454,
0.17505593597888947,
0.015252233482897282,
0.05101945251226425,
-0.17693492770195007,
-0.12433435022830963,
0.1672261357307434,
0.19105640053749084,
-0.01772744208574295,
-0.13779515027999878,
-0.07398049533367157,
0.17079348862171173,
0.07601944357156754,
-0.059482868760824203,
7.24513142813521e-7,
-0.031054968014359474,
-0.0221774373203516,
0.08769646286964417,
-0.11541713774204254,
-0.12999498844146729,
0.18397243320941925,
-0.1427372395992279,
0.07603679597377777,
0.022128766402602196,
0.015544108115136623,
-0.12825682759284973,
-0.13172617554664612,
0.0701688900589943,
-0.05101397633552551,
-0.04303489625453949,
-0.09501344710588455,
-0.02863050252199173,
-0.08269097656011581,
-0.10175929218530655,
0.22993792593479156,
0.09920717775821686,
0.06720340251922607,
0.10753097385168076,
-0.049595221877098083,
-0.047035180032253265,
0.054155174642801285,
-0.06601126492023468,
0.04219910502433777,
-0.16262301802635193,
-0.04469848796725273,
0.03988596796989441,
-0.09667300432920456,
0.1327720582485199,
0.05431089177727699,
-0.023733163252472878,
0.06700862944126129,
-0.016472600400447845,
0.07433436810970306,
0.06544063985347748,
-0.09955920279026031,
-0.0020780141931027174,
0.062219955027103424,
0.10465505719184875,
-0.2203478217124939,
0.06461594998836517,
0.1388716995716095,
0.05016406625509262,
-0.02914920262992382,
-0.19496247172355652,
0.16752518713474274,
0.08279430866241455,
0.15759794414043427,
0.10844464600086212,
0.15003466606140137,
-0.059200383722782135,
0.12444653362035751,
-0.0015381755074486136,
-0.0709630697965622,
0.0042623975314199924,
-0.045391254127025604,
-0.08602635562419891,
-0.12194480746984482,
-0.003566642524674535,
-0.07667669653892517,
0.12188072502613068,
-0.2506355047225952,
-0.01712900772690773,
1.5660737006358493e-34,
-0.13991522789001465,
0.09811203926801682,
-0.014298954047262669,
-0.09450989216566086,
-0.02698042057454586,
0.04578448832035065,
0.19067758321762085,
0.07816764712333679,
0.09441424161195755,
-0.03792332112789154,
-0.01245515700429678
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | Looks like there are multiple issues regarding this (#2386, #2322) and it's a WIP #2329. Currently these datasets are being loaded in-memory which is causing this issue. Quoting @mariosasko here for a quick fix:
> set `keep_in_memory` to `False` when loading a dataset (`sst = load_dataset("sst", keep_in_memory=False)`) to prevent it from loading in-memory. Currently, in-memory datasets fail to find cached files due to this check (always False for them)
| Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 69 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
Looks like there are multiple issues regarding this (#2386, #2322) and it's a WIP #2329. Currently these datasets are being loaded in-memory which is causing this issue. Quoting @mariosasko here for a quick fix:
> set `keep_in_memory` to `False` when loading a dataset (`sst = load_dataset("sst", keep_in_memory=False)`) to prevent it from loading in-memory. Currently, in-memory datasets fail to find cached files due to this check (always False for them)
| [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | Hi ! Since `datasets` 1.6.0 we no longer keep small datasets (<250MB) on disk and load them in RAM instead by default. This makes data processing and iterating on data faster. However datasets in RAM currently have no way to reload previous results from the cache (since nothing is written on disk). We are working on making the caching work for datasets in RAM.
Until then, I'd recommend passing `keep_in_memory=False` to the calls to `load_dataset` like here:
https://github.com/huggingface/transformers/blob/223943872e8c9c3fc11db3c6e93da07f5177423f/examples/pytorch/language-modeling/run_clm.py#L233
This way you say explicitly that you want your dataset to stay on the disk, and it will be able to recover previously computed results from the cache. | Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 106 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
Hi ! Since `datasets` 1.6.0 we no longer keep small datasets (<250MB) on disk and load them in RAM instead by default. This makes data processing and iterating on data faster. However datasets in RAM currently have no way to reload previous results from the cache (since nothing is written on disk). We are working on making the caching work for datasets in RAM.
Until then, I'd recommend passing `keep_in_memory=False` to the calls to `load_dataset` like here:
https://github.com/huggingface/transformers/blob/223943872e8c9c3fc11db3c6e93da07f5177423f/examples/pytorch/language-modeling/run_clm.py#L233
This way you say explicitly that you want your dataset to stay on the disk, and it will be able to recover previously computed results from the cache. | [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | OK, It doesn't look like we can use the proposed workaround - see https://github.com/huggingface/transformers/issues/11801
Could you please add an env var for us to be able to turn off this unwanted in our situation behavior? It is really problematic for dev work, when one needs to restart the training very often and needs a quick startup time. Manual editing of standard scripts is not a practical option when one uses examples.
This could also be a problem for tests, which will be slower because of lack of cache, albeit usually we use tiny datasets there. I think we want caching for tests.
Thank you. | Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 104 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
OK, It doesn't look like we can use the proposed workaround - see https://github.com/huggingface/transformers/issues/11801
Could you please add an env var for us to be able to turn off this unwanted in our situation behavior? It is really problematic for dev work, when one needs to restart the training very often and needs a quick startup time. Manual editing of standard scripts is not a practical option when one uses examples.
This could also be a problem for tests, which will be slower because of lack of cache, albeit usually we use tiny datasets there. I think we want caching for tests.
Thank you. | [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | Hi @stas00,
You are right: an env variable is needed to turn off this behavior. I am adding it.
For the moment there is a config parameter to turn off this behavior: `datasets.config.MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES = None`
You can find this info in the docs:
- in the docstring of the parameter `keep_in_memory` of the function [`load_datasets`](https://huggingface.co/docs/datasets/package_reference/loading_methods.html#datasets.load_dataset):
- in a Note in the docs about [Loading a Dataset](https://huggingface.co/docs/datasets/loading_datasets.html#from-the-huggingface-hub)
> The default in 🤗Datasets is to memory-map the dataset on drive if its size is larger than datasets.config.MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES (default 250 MiB); otherwise, the dataset is copied in-memory. This behavior can be disabled by setting datasets.config.MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES = None, and in this case the dataset is not loaded in memory. | Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 115 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
Hi @stas00,
You are right: an env variable is needed to turn off this behavior. I am adding it.
For the moment there is a config parameter to turn off this behavior: `datasets.config.MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES = None`
You can find this info in the docs:
- in the docstring of the parameter `keep_in_memory` of the function [`load_datasets`](https://huggingface.co/docs/datasets/package_reference/loading_methods.html#datasets.load_dataset):
- in a Note in the docs about [Loading a Dataset](https://huggingface.co/docs/datasets/loading_datasets.html#from-the-huggingface-hub)
> The default in 🤗Datasets is to memory-map the dataset on drive if its size is larger than datasets.config.MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES (default 250 MiB); otherwise, the dataset is copied in-memory. This behavior can be disabled by setting datasets.config.MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES = None, and in this case the dataset is not loaded in memory. | [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | Yes, but this still requires one to edit the standard example scripts, so if I'm doing that already I just as well can add `keep_in_memory=False`.
May be the low hanging fruit is to add `MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES` env var to match the config, and if the user sets it to 0, then it'll be the same as `keep_in_memory=False` or `datasets.config.MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=0`? | Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 58 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
Yes, but this still requires one to edit the standard example scripts, so if I'm doing that already I just as well can add `keep_in_memory=False`.
May be the low hanging fruit is to add `MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES` env var to match the config, and if the user sets it to 0, then it'll be the same as `keep_in_memory=False` or `datasets.config.MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=0`? | [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | @stas00, however, for the moment, setting the value to `0` is equivalent to the opposite, i.e. `keep_in_memory=True`. This means the max size until which I load in memory is 0 bytes.
Tell me if this is logical/convenient, or I should change it. | Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 42 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
@stas00, however, for the moment, setting the value to `0` is equivalent to the opposite, i.e. `keep_in_memory=True`. This means the max size until which I load in memory is 0 bytes.
Tell me if this is logical/convenient, or I should change it. | [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | In my PR, to turn off current default bahavior, you should set env variable to one of: `{"", "OFF", "NO", "FALSE"}`.
For example:
```
MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=
``` | Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 26 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
In my PR, to turn off current default bahavior, you should set env variable to one of: `{"", "OFF", "NO", "FALSE"}`.
For example:
```
MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=
``` | [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | IMHO, this behaviour is not very intuitive, as 0 is a normal quantity of bytes. So `MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=0` to me reads as don't cache ever.
Also "SIZE_IN_BYTES" that can take one of `{"", "OFF", "NO", "FALSE"}` is also quite odd.
I think supporting a very simple `MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES` that can accept any numerical value to match the name of the variable, requires minimal logic and is very straightforward.
So if you could adjust this logic - then `MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=0` is all that's needed to not do in-memory datasets.
Does it make sense? | Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 89 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
IMHO, this behaviour is not very intuitive, as 0 is a normal quantity of bytes. So `MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=0` to me reads as don't cache ever.
Also "SIZE_IN_BYTES" that can take one of `{"", "OFF", "NO", "FALSE"}` is also quite odd.
I think supporting a very simple `MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES` that can accept any numerical value to match the name of the variable, requires minimal logic and is very straightforward.
So if you could adjust this logic - then `MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=0` is all that's needed to not do in-memory datasets.
Does it make sense? | [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | I understand your point @stas00, as I am not very convinced with current implementation.
My concern is: which numerical value should then pass a user who wants `keep_in_memory=True` by default, independently of dataset size? Currently it is `0` for this case. | Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 41 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
I understand your point @stas00, as I am not very convinced with current implementation.
My concern is: which numerical value should then pass a user who wants `keep_in_memory=True` by default, independently of dataset size? Currently it is `0` for this case. | [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | That's a good question, and again the normal bytes can be used for that:
```
MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=1e12 # (~2**40)
```
Since it's unlikely that anybody will have more than 1TB RAM.
It's also silly that it uses BYTES and not MBYTES - that level of refinement doesn't seem to be of a practical use in this context.
Not sure when it was added and if there are back-compat issues here, but perhaps it could be renamed `MAX_IN_MEMORY_DATASET_SIZE` and support 1M, 1G, 1T, etc.
But scientific notation is quite intuitive too, as each 000 zeros is the next M, G, T multiplier. Minus the discrepancy of 1024 vs 1000, which adds up. And it is easy to write down `1e12`, as compared to `1099511627776` (2**40). (`1.1e12` is more exact).
| Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 127 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
That's a good question, and again the normal bytes can be used for that:
```
MAX_IN_MEMORY_DATASET_SIZE_IN_BYTES=1e12 # (~2**40)
```
Since it's unlikely that anybody will have more than 1TB RAM.
It's also silly that it uses BYTES and not MBYTES - that level of refinement doesn't seem to be of a practical use in this context.
Not sure when it was added and if there are back-compat issues here, but perhaps it could be renamed `MAX_IN_MEMORY_DATASET_SIZE` and support 1M, 1G, 1T, etc.
But scientific notation is quite intuitive too, as each 000 zeros is the next M, G, T multiplier. Minus the discrepancy of 1024 vs 1000, which adds up. And it is easy to write down `1e12`, as compared to `1099511627776` (2**40). (`1.1e12` is more exact).
| [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2387 | datasets 1.6 ignores cache | Great! Thanks, @stas00.
I am implementing your suggestion to turn off default value when set to `0`.
For the other suggestion (allowing different metric prefixes), I will discuss with @lhoestq to agree on its implementation. | Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
| 35 | datasets 1.6 ignores cache
Moving from https://github.com/huggingface/transformers/issues/11801#issuecomment-845546612
Quoting @VictorSanh:
>
> I downgraded datasets to `1.5.0` and printed `tokenized_datasets.cache_files` (L335):
>
> > `{'train': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-c6aefe81ca4e5152.arrow'}], 'validation': [{'filename': '/home/victor/.cache/huggingface/datasets/openwebtext10k/plain_text/1.0.0/3a8df094c671b4cb63ed0b41f40fb3bd855e9ce2e3765e5df50abcdfb5ec144b/cache-97cf4c813e6469c6.arrow'}]}`
>
> while the same command with the latest version of datasets (actually starting at `1.6.0`) gives:
> > `{'train': [], 'validation': []}`
>
I also confirm that downgrading to `datasets==1.5.0` makes things fast again - i.e. cache is used.
to reproduce:
```
USE_TF=0 python examples/pytorch/language-modeling/run_clm.py \
--model_name_or_path gpt2 \
--dataset_name "stas/openwebtext-10k" \
--output_dir output_dir \
--overwrite_output_dir \
--do_train \
--do_eval \
--max_train_samples 1000 \
--max_eval_samples 200 \
--per_device_train_batch_size 4 \
--per_device_eval_batch_size 4 \
--num_train_epochs 1 \
--warmup_steps 8 \
--block_size 64 \
--fp16 \
--report_to none
```
the first time the startup is slow and some 5 tqdm bars. It shouldn't do it on consequent runs. but with `datasets>1.5.0` it rebuilds on every run.
@lhoestq
Great! Thanks, @stas00.
I am implementing your suggestion to turn off default value when set to `0`.
For the other suggestion (allowing different metric prefixes), I will discuss with @lhoestq to agree on its implementation. | [
0.0650024339556694,
-0.030425580218434334,
-0.13210242986679077,
0.03516332805156708,
0.11719395220279694,
0.02523534558713436,
0.17948687076568604,
0.11555258184671402,
-0.0058792768977582455,
0.19353802502155304,
-0.058667320758104324,
-0.012006059288978577,
0.10170596837997437,
-0.1140194684267044,
-0.03516722097992897,
0.06937814503908157,
0.0036021743435412645,
-0.018742240965366364,
-0.18289883434772491,
-0.05929643660783768,
-0.06582868844270706,
0.10068108141422272,
0.13744239509105682,
0.05615070089697838,
-0.055933911353349686,
-0.05518762394785881,
-0.0622115284204483,
0.12873323261737823,
0.06050164997577667,
-0.01745709776878357,
0.048497408628463745,
0.0620339959859848,
0.02991396375000477,
0.20057541131973267,
0.000005437261279439554,
0.17255786061286926,
0.04117215797305107,
0.053166721016168594,
-0.04956907778978348,
0.03809208795428276,
0.1551983803510666,
0.02723410725593567,
0.07209450006484985,
0.022445974871516228,
0.001656410633586347,
0.004883302375674248,
0.03909492865204811,
-0.14213556051254272,
0.14812792837619781,
-0.05002908036112785,
0.006016883533447981,
0.06012878566980362,
-0.15310776233673096,
-0.06591176986694336,
0.05202630162239075,
0.007040433585643768,
-0.04599417373538017,
-0.029973788186907768,
-0.26895955204963684,
0.029247453436255455,
0.006268257740885019,
-0.047571953386068344,
0.08880288153886795,
0.0006909389048814774,
-0.06330800801515579,
0.007435807026922703,
-0.1932903230190277,
-0.051357369869947433,
0.10525865107774734,
0.11415397375822067,
-0.0035696758423000574,
-0.005775497294962406,
-0.08931922167539597,
0.07618312537670135,
-0.10877068340778351,
0.022356586530804634,
-0.08122169971466064,
-0.038714781403541565,
0.03819460794329643,
0.024163588881492615,
-0.09586647897958755,
-0.04218495637178421,
0.013164622709155083,
0.06248445436358452,
-0.15889307856559753,
0.06021564081311226,
-0.131563201546669,
0.0512443371117115,
-0.058176711201667786,
-0.07920826226472855,
0.03634221479296684,
-0.09824968874454498,
-0.12538380920886993,
-0.05476951226592064,
-0.01016151625663042,
0.0517805740237236,
-0.05243520811200142,
0.04370254650712013,
0.10823015123605728,
-0.05548282340168953,
-0.015032944269478321,
-0.07139797508716583,
-0.05793527513742447,
0.016019944101572037,
0.015973450616002083,
0.04031755402684212,
0.014792405068874359,
-0.13154269754886627,
0.02870277315378189,
0.10080284625291824,
-0.06569728255271912,
0.08283694088459015,
-0.08240991085767746,
-0.006110684014856815,
0.1645786613225937,
0.07160419970750809,
-0.07021047174930573,
0.04517991468310356,
0.10080422461032867,
0.09448082000017166,
0.02339906431734562,
0.1138676106929779,
-0.021161893382668495,
0.1473466008901596,
-0.09532243758440018,
0.1609184294939041,
0.03534715995192528,
-0.009651631116867065,
-0.12222461402416229,
0.0011436251224949956,
-0.17326350510120392,
-0.05409287288784981,
-0.0215764082968235,
-0.08354467153549194,
0.054278820753097534,
-0.04358620196580887,
0.036993496119976044,
-0.08982106298208237,
-0.009958370588719845,
-0.15492059290409088,
0.10277385264635086,
-0.17180490493774414,
0.10780022293329239,
0.05043542757630348,
0.015902210026979446,
0.19105683267116547,
0.022849129512906075,
0.12065848708152771,
-0.023797711357474327,
0.1392553150653839,
-0.07971341162919998,
0.19461512565612793,
-0.004392518661916256,
-0.011721936985850334,
-0.04510942101478577,
0.0645771399140358,
0.13822388648986816,
0.12503880262374878,
-0.1294938176870346,
-0.059716757386922836,
0.008594375103712082,
-0.055804669857025146,
-0.029156185686588287,
0.05926806479692459,
0.03162103518843651,
0.2884613275527954,
0.04755652695894241,
0.07466252893209457,
0.05397175997495651,
-0.03087107464671135,
0.1383238434791565,
-0.142744243144989,
-0.05991395190358162,
-0.21520891785621643,
-0.0312722884118557,
0.1750948429107666,
0.006153734866529703,
0.031320102512836456,
-0.2831398844718933,
-0.13010051846504211,
0.13651467859745026,
0.057204991579055786,
0.0894298106431961,
-0.13558614253997803,
0.02366594225168228,
-0.21431928873062134,
-0.19184249639511108,
-0.05133431777358055,
-0.079698845744133,
0.05933785066008568,
-0.18599718809127808,
-0.042955320328474045,
0.002043765503913164,
-0.03569634631276131,
-0.020727647468447685,
-0.12450859695672989,
0.03924951329827309,
0.10500901192426682,
0.0497036911547184,
-0.23027679324150085,
-0.028625641018152237,
0.06129991635680199,
-0.045812346041202545,
0.05385807156562805,
0.02904035709798336,
0.008885597810149193,
-0.24050232768058777,
0.12505415081977844,
0.007798163220286369,
-0.06950640678405762,
-0.0724201425909996,
-0.01252415869385004,
-0.013529960997402668,
-0.1826706975698471,
-0.15091572701931,
-0.12248729914426804,
-0.14161019027233124,
-0.022546619176864624,
0.020617563277482986,
0.1069628968834877,
-0.02259085699915886,
0.2067258656024933,
0.04593348130583763,
0.07754770666360855,
-0.03414439409971237,
0.1566140502691269,
-0.028174277395009995,
-0.030882453545928,
0.01644488051533699,
0.060072191059589386,
-0.029518987983465195,
-0.13138076663017273,
0.14484095573425293,
0.22656406462192535,
-0.0470239594578743,
-0.07025506347417831,
-0.06562025099992752,
-0.13023409247398376,
0.12286785244941711,
0.18280713260173798,
-0.12058286368846893,
-0.016761843115091324,
-0.1558251678943634,
0.044903457164764404,
0.15598826110363007,
0.14882974326610565,
0.03776631876826286,
0.12935926020145416,
-0.06300296634435654,
-0.0378001406788826,
0.10857047140598297,
0.14279213547706604,
-0.01204769965261221,
-0.05329018831253052,
0.0750274509191513,
-0.1457952857017517,
0.16180254518985748,
0.10084712505340576,
0.033507224172353745,
0.01804983615875244,
0.2640470564365387,
0.11334361135959625,
-0.07957462221384048,
0.028570419177412987,
0.056726500391960144,
-0.1349070519208908,
0.04976695030927658,
-0.06818553805351257,
-0.04215855896472931,
0.14840249717235565,
0.15962383151054382,
-0.04520157724618912,
-0.07948363572359085,
-0.044318683445453644,
-0.02459339052438736,
-0.064742811024189,
0.07687193900346756,
-0.11986768245697021,
0.1699497103691101,
0.10898050665855408,
-0.19242992997169495,
0.22100363671779633,
0.07333052903413773,
-0.07192446291446686,
0.1787443906068802,
0.17777636647224426,
-0.06118336319923401,
0.07134777307510376,
-0.006649494171142578,
0.06331317871809006,
-0.14522065222263336,
-0.13863708078861237,
-0.016840672120451927,
-0.12784498929977417,
-0.014418846927583218,
0.06727767735719681,
0.05725378543138504,
0.031158044934272766,
-0.031425200402736664,
-0.019361397251486778,
-0.10294961929321289,
0.0921768918633461,
-0.010429734364151955,
-0.10825454443693161,
0.02841702103614807,
-0.18329446017742157,
-0.06407365202903748,
0.10951955616474152,
-0.3222283124923706,
-0.06639056652784348,
0.008791581727564335,
0.03134334459900856,
0.008632538840174675,
0.029874678701162338,
0.009805896319448948,
-0.0586441308259964,
-0.05762571468949318,
-0.1636914759874344,
0.11639461666345596,
0.0008706307853572071,
-0.09817437827587128,
0.053918685764074326,
-0.10324389487504959,
-0.013288102112710476,
-0.09772647172212601,
0.07797457277774811,
0.0567135326564312,
-0.1126621663570404,
0.05397109314799309,
-0.034913625568151474,
-0.051694270223379135,
0.11647702008485794,
0.02392948791384697,
-0.02533513493835926,
0.0800241231918335,
0.013982143253087997,
-0.18906761705875397,
-0.1373351365327835,
0.2687447667121887,
0.05876287445425987,
-0.04693944752216339,
0.05219075456261635,
-0.06362146884202957,
0.15423063933849335,
0.1275186985731125,
-0.1600509136915207,
-0.12304960936307907,
-0.11318507045507431,
0.0023320780601352453,
0.07611766457557678,
0.024004314094781876,
0.19300727546215057,
-0.17965306341648102,
-0.05220744013786316,
-0.020181134343147278,
0.024106305092573166,
-0.16282884776592255,
0.039357930421829224,
-0.07667289674282074,
-0.0732094943523407,
-0.0511685349047184,
0.07548137754201889,
0.12772995233535767,
-0.2551732659339905,
-0.07693597674369812,
0.038166482001543045,
0.16923712193965912,
0.24420258402824402,
-0.07408331334590912,
-0.15090112388134003,
0.058154743164777756,
-0.02473168633878231,
-0.10003183037042618,
-0.09058772027492523,
0.11051604151725769,
-0.01375405490398407,
0.02119738608598709,
-0.06940927356481552,
0.09150714427232742,
0.02305975742638111,
-0.03191841393709183,
-0.35257604718208313,
-0.08824114501476288,
0.12848414480686188,
0.08423041552305222,
-0.037699587643146515,
-0.1206212192773819,
-0.00031328099430538714,
-0.09495093673467636,
0.15007874369621277,
-0.015513207763433456,
-0.0028519555926322937,
0.16559110581874847,
-0.17977584898471832,
-0.009391576051712036,
0.024734357371926308,
0.23234744369983673,
0.05105593800544739,
0.032812949270009995,
-0.015695201233029366,
0.07223865389823914,
0.09399817883968353,
0.11358094960451126,
0.1444694846868515,
0.07681930810213089,
-0.03259273245930672,
0.043659698218107224,
-0.0517386868596077,
0.20061509311199188,
-0.07263398915529251,
0.1817968785762787,
-0.03187292069196701,
0.03259691596031189,
-0.1446896642446518,
0.23683951795101166,
0.006591685116291046,
-0.06492277979850769,
0.14216075837612152,
-0.05340729281306267,
-0.1690555214881897,
-0.03805427625775337,
-0.09243813157081604,
0.022663244977593422,
0.002059108577668667,
0.09397390484809875,
-0.007189126685261726,
-0.037432774901390076,
-0.10069092363119125,
0.09640148282051086,
0.010713586583733559,
0.0480281300842762,
0.07308484613895416,
-0.030473118647933006,
0.15838871896266937,
0.21020859479904175,
-0.19395765662193298,
0.18244150280952454,
-0.18203771114349365,
-0.25071629881858826,
0.0033437630627304316,
-0.1099470853805542,
-0.0368494875729084,
0.09993957728147507,
-0.1427682489156723,
0.05313422158360481,
-0.07910097390413284,
-0.05228468030691147,
0.013167313300073147,
0.1298152059316635,
-0.0710534155368805,
-0.1673652082681656,
-0.05879572778940201,
-0.09882757812738419,
-0.01912112720310688,
0.04903903231024742,
-0.028541598469018936,
0.1474204957485199,
-0.17104880511760712,
0.056602586060762405,
0.0020693440455943346,
-0.19649015367031097,
0.009917247109115124,
0.013560147024691105,
0.11425485461950302,
-0.12494920939207077,
0.029338425025343895,
0.23243755102157593,
-0.10387188196182251,
0.01478416658937931,
0.0130773251876235,
-0.13082654774188995,
0.030044402927160263,
-0.009382215328514576,
0.10687631368637085,
0.02598881535232067,
0.19402971863746643,
-0.13855889439582825,
0.10646992176771164,
0.1275579333305359,
-0.053861260414123535,
0.11798518896102905,
0.038046278059482574,
0.038585033267736435,
-0.008729345165193081,
0.03811511769890785,
0.23420609533786774,
0.002657049335539341,
-0.055884215980768204,
-0.11780045181512833,
-0.007482496555894613,
-0.03326378017663956,
0.04644739627838135,
-0.016572844237089157,
-0.02705957554280758,
0.12692677974700928,
0.16849134862422943,
-0.04470864683389664,
0.03261803463101387,
0.028913065791130066,
0.2081131786108017,
0.07650607824325562,
0.03427879512310028,
0.06651759147644043,
0.030435074120759964,
-0.061959102749824524,
-0.23800507187843323,
0.03393413871526718,
-0.008143004029989243,
0.13098746538162231,
0.10431578010320663,
0.04969920590519905,
0.07037408649921417,
-0.12070667743682861,
0.022450461983680725,
-0.054087840020656586,
-0.09361675381660461,
-0.1812455952167511,
-0.012520793825387955,
0.06441467255353928,
-0.0822736993432045,
0.05832250416278839,
-0.002045805798843503,
0.06116978079080582,
-0.08606944978237152,
0.047782789915800095,
0.00783367920666933,
-0.1184140220284462,
-0.04858265444636345,
0.12199382483959198,
0.10458505898714066,
0.015466141514480114,
0.2395312637090683,
0.05921574681997299,
-0.04703771322965622,
0.02833295427262783,
-0.10155940800905228,
0.15380078554153442,
-0.20048901438713074,
0.1547544151544571,
-0.1498872935771942,
0.01574246771633625,
-0.20095017552375793,
-0.046891968697309494,
-0.03617703169584274,
0.1330001801252365,
0.04884854704141617,
0.07904212921857834,
0.039847832173109055,
-0.011980684474110603,
-0.2356501817703247,
0.05062565952539444,
0.14515584707260132,
0.0316169299185276,
-0.07756124436855316,
0.010731540620326996,
-2.896101872445745e-32,
-0.047087203711271286,
0.16017954051494598,
-0.030923418700695038,
-0.0016375575214624405,
-0.0853002592921257,
0.13675330579280853,
-0.06521643698215485,
-0.12289006263017654,
0.02546100690960884,
-0.2197965383529663,
-0.17488355934619904,
0.027780117467045784,
0.054811250418424606,
0.0507148876786232,
-0.03982178121805191,
-0.08015214651823044,
0.028974659740924835,
-0.13009007275104523,
-0.13326016068458557,
0.057928524911403656,
0.1052095964550972,
-0.0069816336035728455,
0.11816714704036713,
0.027845680713653564,
-0.10711423307657242,
0.07487687468528748,
-0.07163392007350922,
-0.06929155439138412,
-0.1373406946659088,
-0.007266201078891754,
-0.05967547371983528,
0.08909725397825241,
0.006699172779917717,
-0.0786302238702774,
-0.07535213232040405,
-0.2501949369907379,
-0.07505237311124802,
0.03341846913099289,
-0.014679791405797005,
-0.05029559135437012,
0.0452800877392292,
0.013557802885770798,
0.23590609431266785,
0.03659661114215851,
-0.12477815896272659,
0.09011368453502655,
-0.08997144550085068,
-0.001696261577308178,
0.021828480064868927,
-0.1713695079088211,
0.13264574110507965,
0.0327194519340992,
0.06563917547464371,
0.03565289080142975,
0.05587197467684746,
-0.03925752639770508,
0.20850810408592224,
0.14139766991138458,
-0.24915695190429688,
0.17158418893814087,
0.06425011157989502,
0.14142940938472748,
0.07591758668422699,
-0.014491736888885498,
0.08156035095453262,
-0.11102358251810074,
0.2650526762008667,
0.08877146244049072,
0.1352299004793167,
-0.013506805524230003,
0.22698359191417694,
-0.041549574583768845,
-0.06100920960307121,
-0.20128346979618073,
-0.13875362277030945,
-0.11272972077131271,
-0.09252609312534332,
-0.10112535953521729,
-0.12507259845733643,
0.009375804103910923,
0.11036981642246246,
-0.10399877279996872,
0.03758269175887108,
0.007432934828102589,
-0.04207928478717804,
0.10515695065259933,
-0.018575580790638924,
0.13266681134700775,
-0.14630725979804993,
0.0011197691783308983,
0.0527014397084713,
0.060430366545915604,
-0.08624103665351868,
0.03858951851725578,
-0.1189422756433487,
0.10974738001823425,
-0.03820405527949333,
0.13083375990390778,
-0.057913027703762054,
0.1231335774064064,
-0.04083557426929474,
-0.09616886079311371,
0.12079016119241714,
0.08334837108850479,
0.07240160554647446,
0.016106130555272102,
0.06587199866771698,
0.08939851075410843,
-0.22979146242141724,
-0.02143493853509426,
-0.1847279667854309,
0.08052958548069,
0.13391713798046112,
-0.015549691393971443,
0.08878698199987411,
-0.0482584610581398,
-0.0002046348963631317,
0.07677558809518814,
0.0691440999507904,
0.15440115332603455,
-0.14441455900669098,
-0.01763268932700157,
0.09049610793590546,
-0.0021923454478383064,
0.01348439697176218,
0.02607112005352974,
-0.1980305016040802,
-0.0599830336868763,
0.007942695170640945,
-0.049783650785684586,
0.01285806018859148,
-0.10254416614770889,
7.635019301233115e-7,
-0.1184747964143753,
0.1864875853061676,
-0.012673433870077133,
-0.00027653310098685324,
0.007558993063867092,
0.17415913939476013,
-0.21237795054912567,
0.1445479840040207,
0.022650467231869698,
0.3054111897945404,
0.05654727667570114,
-0.015643015503883362,
-0.11774162203073502,
-0.10839321464300156,
0.046685848385095596,
-0.10487271845340729,
-0.2172052413225174,
-0.1545710265636444,
-0.062403369694948196,
0.03607594594359398,
0.0008696761215105653,
0.15569210052490234,
0.07974643260240555,
-0.05409631505608559,
-0.008368555456399918,
0.0799662247300148,
0.06892318278551102,
-0.07499432563781738,
0.033546626567840576,
-0.13853691518306732,
0.03859295696020126,
0.009461317211389542,
0.04260788857936859,
0.018908321857452393,
-0.07695714384317398,
-0.010486628860235214,
-0.20244312286376953,
-0.11743856221437454,
-0.031149189919233322,
-0.15595848858356476,
0.1412312388420105,
0.07317456603050232,
-0.03768698498606682,
-0.11964453011751175,
0.20201949775218964,
0.08036209642887115,
-0.13257980346679688,
-0.027277935296297073,
-0.04142395406961441,
-0.0098582087084651,
-0.033481255173683167,
0.13043703138828278,
0.04160076007246971,
0.3004695177078247,
-0.004933293908834457,
-0.06221167743206024,
-0.058733269572257996,
-0.2510002553462982,
0.07908502221107483,
-0.03195210173726082,
-0.11974705010652542,
-0.15228024125099182,
-0.17570224404335022,
0.10591001808643341,
-0.02044282853603363,
-0.08919897675514221,
0.05164667218923569,
2.2017817343267635e-34,
-0.06466393172740936,
0.00155888800509274,
-0.05429736524820328,
-0.17972250282764435,
0.06282632052898407,
-0.05718531459569931,
0.26314255595207214,
0.11488636583089828,
-0.13176043331623077,
-0.199961856007576,
-0.11511465907096863
] |
https://github.com/huggingface/datasets/issues/2377 | ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather | Hi ! This is because we are actually using the arrow streaming format. We plan to switch to the arrow IPC format.
More info at #1933 | ## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from pyarrow import feather
dataset = load_dataset('imdb', split='train')
dataset.save_to_disk('dataset_dir')
table = feather.read_table('dataset_dir/dataset.arrow')
```
## Expected results
I expect that the saved dataset can be read by the official Apache Arrow methods.
## Actual results
```
File "/usr/local/lib/python3.7/site-packages/pyarrow/feather.py", line 236, in read_table
reader.open(source, use_memory_map=memory_map)
File "pyarrow/feather.pxi", line 67, in pyarrow.lib.FeatherReader.open
File "pyarrow/error.pxi", line 123, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Not a Feather V1 or Arrow IPC file
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets-1.6.2
- Platform: Linux
- Python version: 3.7
- PyArrow version: 0.17.1, also 2.0.0
| 26 | ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather
## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from pyarrow import feather
dataset = load_dataset('imdb', split='train')
dataset.save_to_disk('dataset_dir')
table = feather.read_table('dataset_dir/dataset.arrow')
```
## Expected results
I expect that the saved dataset can be read by the official Apache Arrow methods.
## Actual results
```
File "/usr/local/lib/python3.7/site-packages/pyarrow/feather.py", line 236, in read_table
reader.open(source, use_memory_map=memory_map)
File "pyarrow/feather.pxi", line 67, in pyarrow.lib.FeatherReader.open
File "pyarrow/error.pxi", line 123, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Not a Feather V1 or Arrow IPC file
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets-1.6.2
- Platform: Linux
- Python version: 3.7
- PyArrow version: 0.17.1, also 2.0.0
Hi ! This is because we are actually using the arrow streaming format. We plan to switch to the arrow IPC format.
More info at #1933 | [
-0.045139066874980927,
0.15462075173854828,
-0.06643156707286835,
0.17147579789161682,
0.08318038284778595,
0.11006913334131241,
-0.07808609306812286,
0.1840945929288864,
-0.2452399879693985,
0.03905070945620537,
-0.17719590663909912,
0.11067856848239899,
0.012874220497906208,
-0.25377750396728516,
0.09482225030660629,
0.07609528303146362,
-0.06407102942466736,
-0.11122503876686096,
-0.03766070306301117,
-0.0364382378757,
0.02165799029171467,
0.12540745735168457,
0.07222828269004822,
0.042627692222595215,
-0.11074357479810715,
-0.050145287066698074,
0.004401319194585085,
0.15316791832447052,
-0.0621180422604084,
-0.282987505197525,
0.24469685554504395,
-0.05483155697584152,
-0.007770533207803965,
0.16201288998126984,
0.0000053564021982310805,
0.09886740148067474,
0.3017934560775757,
-0.0030199300963431597,
-0.10022061318159103,
0.014840510673820972,
0.1298406422138214,
-0.047297071665525436,
0.048536915332078934,
0.022199856117367744,
0.21031028032302856,
-0.2685021162033081,
-0.06967411935329437,
-0.08385658264160156,
0.06040051206946373,
0.09638281911611557,
0.012813953682780266,
0.07184853404760361,
0.19513870775699615,
-0.025859812274575233,
0.13469091057777405,
0.07255806028842926,
-0.03944060951471329,
0.15422667562961578,
-0.22901375591754913,
-0.01309139747172594,
-0.11873243004083633,
-0.11971145123243332,
0.016299154609441757,
0.07486891001462936,
-0.1132616177201271,
0.056822270154953,
-0.10018890351057053,
-0.15182708203792572,
-0.04658299311995506,
0.11933630704879761,
0.06013096496462822,
-0.1402527093887329,
-0.2752950191497803,
0.00546252029016614,
0.027984941378235817,
-0.07099438458681107,
-0.008214777335524559,
0.10872918367385864,
-0.15408088266849518,
-0.06493167579174042,
0.10027232021093369,
0.09615644067525864,
-0.021081840619444847,
-0.030501751229166985,
0.04994993284344673,
-0.0597006119787693,
-0.079001285135746,
0.18820396065711975,
0.12094704806804657,
-0.052370306104421616,
0.21277906000614166,
-0.0421626940369606,
-0.08054006844758987,
-0.18014903366565704,
0.21089644730091095,
0.05885437875986099,
-0.059383317828178406,
-0.11491236835718155,
-0.0163421668112278,
0.0068933176808059216,
0.025376195088028908,
0.10161161422729492,
-0.027261290699243546,
0.08412222564220428,
-0.052593015134334564,
-0.09301728755235672,
-0.10833445191383362,
-0.011367526836693287,
0.1254674792289734,
-0.07266484946012497,
0.01736357808113098,
-0.056741923093795776,
-0.06325771659612656,
-0.0878327265381813,
0.245838463306427,
0.056561652570962906,
0.1606682687997818,
-0.02395349182188511,
-0.0922497808933258,
0.10598918050527573,
-0.04544445499777794,
-0.07104343920946121,
-0.14290373027324677,
0.19974122941493988,
0.12866473197937012,
-0.030900442972779274,
0.086539126932621,
0.18427400290966034,
0.05626807361841202,
0.061868950724601746,
0.02925403229892254,
-0.04547926038503647,
-0.044244688004255295,
-0.048217348754405975,
0.0977528840303421,
-0.03072211518883705,
-0.027866121381521225,
-0.04229216277599335,
-0.05436151474714279,
-0.09227992594242096,
0.06580596417188644,
-0.17631876468658447,
0.06369032710790634,
0.028859198093414307,
0.184321790933609,
0.15518736839294434,
0.17220865190029144,
0.04340865835547447,
-0.03602300584316254,
0.033206965774297714,
-0.14670255780220032,
0.09655078500509262,
-0.23730234801769257,
0.020576806738972664,
-0.005218647886067629,
0.11798278242349625,
-0.1378018856048584,
-0.10505416989326477,
-0.15796877443790436,
-0.0990595668554306,
-0.03143826872110367,
-0.05429846793413162,
0.09141556918621063,
-0.030851934105157852,
0.1294475644826889,
0.04073913395404816,
-0.07510361075401306,
0.10697712749242783,
-0.06509362161159515,
-0.09209994226694107,
0.10628548264503479,
-0.005945404525846243,
-0.19543810188770294,
-0.13219596445560455,
-0.21560271084308624,
0.14610502123832703,
0.1289730966091156,
0.009768111631274223,
-0.040873829275369644,
-0.004151887260377407,
0.10112200677394867,
-0.09729503095149994,
-0.05106335133314133,
-0.020668253302574158,
0.07472433894872665,
0.004858333617448807,
-0.0358467623591423,
0.005051490850746632,
0.11254975944757462,
-0.015944981947541237,
-0.04689484089612961,
0.06630188971757889,
-0.12533655762672424,
-0.012889756821095943,
-0.0622432641685009,
-0.261557012796402,
0.03254220634698868,
-0.20123116672039032,
0.10437147319316864,
-0.11466362327337265,
0.06913910061120987,
-0.05347549170255661,
0.0371512696146965,
0.04523962363600731,
0.060036566108465195,
0.01538474578410387,
-0.1027432307600975,
-0.034038808196783066,
-0.02317110449075699,
-0.22007840871810913,
-0.22775140404701233,
-0.0030211806297302246,
-0.061634670943021774,
0.015115016140043736,
-0.15355940163135529,
0.04802851378917694,
-0.006848492659628391,
-0.05778775364160538,
-0.07749118655920029,
0.21593666076660156,
-0.08518378436565399,
-0.025604547932744026,
0.13368608057498932,
0.06626585125923157,
-0.08728410303592682,
0.17717576026916504,
-0.08899624645709991,
-0.30517318844795227,
0.01500757783651352,
0.008564300835132599,
-0.12201785296201706,
-0.04602237790822983,
-0.03589886426925659,
0.18992048501968384,
-0.09107600152492523,
-0.05456794798374176,
-0.0711837038397789,
-0.20048576593399048,
-0.04423610121011734,
-0.11154226958751678,
-0.06126856431365013,
0.05911843851208687,
0.033442456275224686,
-0.023356352001428604,
-0.14610904455184937,
0.05141320452094078,
-0.01013151928782463,
0.07382495701313019,
-0.05773678794503212,
-0.019308578222990036,
0.2751666307449341,
0.16159281134605408,
-0.0846177265048027,
-0.04332681745290756,
-0.09229951351881027,
-0.0874297097325325,
0.06403287500143051,
0.1593399941921234,
-0.0639384388923645,
0.08748054504394531,
0.361789733171463,
0.06600072979927063,
-0.012211371213197708,
0.08600493520498276,
0.02574237994849682,
-0.05492126941680908,
0.10109643638134003,
0.03780248016119003,
0.025776352733373642,
0.06118500232696533,
0.03138556331396103,
0.0388055257499218,
-0.17666055262088776,
-0.0978427603840828,
0.1779894083738327,
-0.0437026284635067,
0.20441807806491852,
0.03929153084754944,
0.16114036738872528,
-0.10997729748487473,
-0.23784959316253662,
0.1028202623128891,
-0.08811567723751068,
-0.2413104623556137,
0.014053176157176495,
0.04913972318172455,
-0.15257881581783295,
-0.068267323076725,
-0.09379894286394119,
0.0453452505171299,
-0.05507199466228485,
-0.17915882170200348,
0.018595589324831963,
-0.00022963118681218475,
0.14978352189064026,
-0.15497282147407532,
-0.10164811462163925,
-0.19170790910720825,
-0.026632457971572876,
0.018926797434687614,
-0.10333583503961563,
0.11986994743347168,
-0.02858809381723404,
0.03192133828997612,
0.026911435648798943,
0.08132896572351456,
0.14640070497989655,
0.12337759882211685,
-0.043937161564826965,
-0.21704703569412231,
0.05634118244051933,
-0.13025330007076263,
-0.063339464366436,
0.24395813047885895,
-0.003636368550360203,
0.13744649291038513,
-0.03985291346907616,
-0.17302049696445465,
0.23641881346702576,
0.0741095244884491,
0.004204838071018457,
0.17772945761680603,
-0.06563960015773773,
-0.008641679771244526,
-0.027096912264823914,
0.16437757015228271,
-0.09727491438388824,
-0.1937093734741211,
0.12606623768806458,
0.16016115248203278,
0.01194238942116499,
-0.010694809257984161,
0.1362067461013794,
-0.07064666599035263,
-0.015549433417618275,
-0.023861270397901535,
-0.08485548198223114,
-0.027903735637664795,
0.2644047737121582,
0.10675045102834702,
0.00122176855802536,
0.013550936244428158,
-0.04409234598278999,
0.04910106584429741,
0.12189861387014389,
-0.08621598780155182,
-0.08595126867294312,
-0.06876622885465622,
0.41379350423812866,
-0.04281414672732353,
0.012577791698276997,
0.07762984931468964,
0.032285068184137344,
-0.2153344601392746,
-0.09674236923456192,
0.024952931329607964,
-0.17108990252017975,
-0.03785436600446701,
-0.024794824421405792,
-0.005533797200769186,
0.0940328910946846,
0.010454404167830944,
-0.062418267130851746,
-0.05487211421132088,
-0.06371664255857468,
0.15418337285518646,
0.0819539800286293,
0.11559626460075378,
-0.15117885172367096,
-0.1601230800151825,
-0.10362215340137482,
-0.20163308084011078,
0.06226767972111702,
-0.11882957071065903,
-0.03716215863823891,
-0.12639708817005157,
0.032082583755254745,
-0.035588525235652924,
0.014668187126517296,
-0.05656510591506958,
0.07571569830179214,
-0.14867199957370758,
-0.12689337134361267,
-0.004261694848537445,
0.10487821698188782,
0.13310123980045319,
-0.039911650121212006,
0.028148455545306206,
-0.12921781837940216,
0.15280240774154663,
0.12602493166923523,
0.07293739914894104,
0.011074848473072052,
0.07184530049562454,
0.014896976761519909,
-0.135386124253273,
0.09930367767810822,
0.21849074959754944,
0.0825287327170372,
0.21032723784446716,
-0.09024107456207275,
-0.045015785843133926,
0.06852646172046661,
0.09950932115316391,
0.17627471685409546,
0.13922658562660217,
-0.07988904416561127,
-0.08215830475091934,
0.06013968959450722,
0.06904905289411545,
0.03677636757493019,
-0.18559621274471283,
-0.07529572397470474,
-0.006312456913292408,
0.04555613175034523,
0.09552532434463501,
0.144764706492424,
0.05484151840209961,
0.01732315495610237,
-0.07047732174396515,
-0.18187975883483887,
-0.009740561246871948,
0.032852187752723694,
0.0006181353819556534,
-0.18968118727207184,
-0.05311330780386925,
-0.11672735959291458,
-0.1070486530661583,
0.13536442816257477,
-0.1186491996049881,
0.14252117276191711,
-0.0707247257232666,
0.04184821620583534,
-0.046633630990982056,
0.12110429257154465,
0.13166475296020508,
0.2676215171813965,
0.08868682384490967,
-0.18192045390605927,
-0.191412553191185,
-0.19789272546768188,
-0.0663376972079277,
-0.06098102405667305,
-0.2396657019853592,
-0.06575942039489746,
-0.1428912729024887,
-0.05557189881801605,
0.09558136016130447,
-0.054838113486766815,
0.043802328407764435,
-0.2363826483488083,
0.02160978689789772,
0.05180706828832626,
0.02035415545105934,
0.031197374686598778,
-0.033868614584207535,
0.1988551914691925,
-0.038729336112737656,
-0.01765471324324608,
0.16671302914619446,
0.07381077855825424,
-0.06456068158149719,
-0.02453872188925743,
0.07623626291751862,
0.010810395702719688,
0.10961979627609253,
0.21472975611686707,
-0.09905266016721725,
0.007838196121156216,
0.024076981469988823,
0.015194693580269814,
-0.019078398123383522,
-0.14409512281417847,
-0.0225568525493145,
0.20729288458824158,
0.058395449072122574,
0.020568938925862312,
-0.02502547577023506,
-0.061483342200517654,
0.07718856632709503,
0.09050270915031433,
-0.09523661434650421,
0.08998021483421326,
-0.08542539924383163,
0.1339767426252365,
0.010754727758467197,
0.09031573683023453,
-0.0028789483476430178,
-0.14903205633163452,
-0.21721743047237396,
0.04451751708984375,
-0.06403196603059769,
0.028756428509950638,
-0.2127756029367447,
0.15761616826057434,
-0.09364817291498184,
0.00040616642218083143,
-0.06632304936647415,
0.13684523105621338,
0.00738547183573246,
0.007252974435687065,
-0.13784414529800415,
-0.06498679518699646,
0.08730998635292053,
-0.1135120764374733,
-0.06430591642856598,
-0.12916317582130432,
-0.028729693964123726,
-0.01914663054049015,
-0.06870447099208832,
0.09175315499305725,
0.036588139832019806,
-0.12864002585411072,
0.03487241640686989,
0.044078558683395386,
-0.04325330629944801,
0.00267273117788136,
0.1515055000782013,
-0.023314887657761574,
-0.08748593181371689,
0.0458107516169548,
-0.10786361992359161,
0.012442221865057945,
0.059277746826410294,
-0.05360355228185654,
0.04958869889378548,
-0.031076092272996902,
0.043333277106285095,
0.10095817595720291,
-0.08721983432769775,
0.0777403935790062,
0.15200920403003693,
0.025381091982126236,
-0.04345216602087021,
-0.05707317963242531,
0.017561981454491615,
0.06006085127592087,
-0.26238980889320374,
0.14809639751911163,
0.06487637758255005,
0.03229036182165146,
-0.26646551489830017,
-0.1788329929113388,
0.14929816126823425,
0.08405709266662598,
-0.1022956520318985,
-0.01660924032330513,
-0.19486184418201447,
-0.09436070173978806,
-0.15162447094917297,
0.027333039790391922,
0.028694232925772667,
-0.02787422388792038,
0.04457467794418335,
-0.1165429875254631,
-2.4421429988262647e-32,
0.10443262755870819,
0.10276402533054352,
0.04331507161259651,
0.09210742264986038,
-0.16579164564609528,
0.004647653549909592,
-0.11638285219669342,
-0.07154177874326706,
-0.021037636324763298,
0.019901735708117485,
-0.02687787637114525,
0.11956729739904404,
-0.035420261323451996,
0.05081487447023392,
-0.10100416839122772,
-0.06132599338889122,
-0.05486656725406647,
-0.11760134249925613,
0.08738291263580322,
0.21724803745746613,
0.03934701532125473,
-0.010206370614469051,
0.11039499938488007,
0.015884360298514366,
-0.048568785190582275,
-0.148629292845726,
-0.14861245453357697,
-0.13582049310207367,
0.041603103280067444,
-0.04523593187332153,
-0.019088828936219215,
0.10477732867002487,
0.05974540114402771,
-0.21302033960819244,
-0.10598045587539673,
-0.12785553932189941,
-0.2039436250925064,
-0.04449067264795303,
-0.23771104216575623,
-0.030189262703061104,
-0.11668336391448975,
0.13813945651054382,
0.2532910406589508,
-0.15173764526844025,
-0.049278516322374344,
0.04301402345299721,
-0.12302273511886597,
0.10917855054140091,
-0.11291816830635071,
-0.06068390980362892,
0.005459949839860201,
-0.0051234713755548,
-0.04579600319266319,
0.04128356650471687,
0.10210629552602768,
-0.06857121735811234,
0.012627259828150272,
0.014560175128281116,
-0.17734555900096893,
-0.13978758454322815,
0.040228523313999176,
-0.023158326745033264,
0.07169599086046219,
-0.016268786042928696,
0.09590086340904236,
0.134857639670372,
0.28879496455192566,
0.04585203900933266,
0.16463758051395416,
0.14362576603889465,
-0.010354666039347649,
0.05726782605051994,
0.04513409733772278,
0.005498501472175121,
-0.09695388376712799,
0.016952645033597946,
-0.12635867297649384,
-0.04223724454641342,
0.17688582837581635,
-0.003560153068974614,
-0.015177015215158463,
0.08450822532176971,
0.00527108134701848,
-0.04038254916667938,
0.02255593053996563,
-0.08357676863670349,
0.10116390883922577,
0.07445190101861954,
-0.06096450611948967,
-0.13261805474758148,
-0.010281205177307129,
0.04069449380040169,
0.08200348168611526,
-0.1263723224401474,
-0.12212469428777695,
0.16533786058425903,
-0.09805150330066681,
0.1313568502664566,
0.014996442943811417,
0.013788789510726929,
-0.021218519657850266,
-0.008182138204574585,
0.05068819969892502,
0.1222507581114769,
0.18286699056625366,
0.09367769956588745,
0.13560757040977478,
0.054507434368133545,
-0.10587994009256363,
-0.09717808663845062,
-0.04237007349729538,
0.15905968844890594,
0.13229656219482422,
-0.033504463732242584,
0.2069276124238968,
0.08592958748340607,
-0.0586019866168499,
-0.05095714330673218,
0.1204705461859703,
0.15437452495098114,
0.04352185130119324,
-0.17603975534439087,
-0.16728129982948303,
0.0020288554951548576,
-0.010449993424117565,
0.06444774568080902,
0.04250068962574005,
-0.027334118261933327,
0.0553399920463562,
0.02180454507470131,
0.047910671681165695,
-0.031813494861125946,
7.128652441679151e-7,
-0.12800908088684082,
-0.015858273953199387,
0.08795716613531113,
0.07039804011583328,
0.10260024666786194,
0.12002754211425781,
-0.20723895728588104,
0.1465984433889389,
-0.16680656373500824,
0.09490851312875748,
0.11217507719993591,
0.140097975730896,
-0.006793080363422632,
0.013385877013206482,
0.1353892832994461,
-0.15112006664276123,
-0.04054861515760422,
0.14018069207668304,
-0.08817010372877121,
0.1843222677707672,
0.22077156603336334,
0.05341271311044693,
-0.11065949499607086,
0.0012364553986117244,
0.06124570965766907,
0.025406591594219208,
-0.0481247641146183,
-0.0614396333694458,
0.05511535331606865,
0.007473014295101166,
-0.002279571257531643,
0.1830834448337555,
-0.09025486558675766,
0.14271895587444305,
0.00789155624806881,
0.06726276129484177,
-0.1890731006860733,
0.005669457372277975,
-0.03216361626982689,
0.23332932591438293,
0.06326507776975632,
0.05194723233580589,
0.03689942881464958,
-0.052118655294179916,
0.07513612508773804,
0.05993968993425369,
-0.17537876963615417,
-0.03316091001033783,
-0.048276398330926895,
0.08235073834657669,
0.020139537751674652,
-0.019440965726971626,
0.05627411976456642,
0.0912233516573906,
-0.07319663465023041,
0.07360068708658218,
-0.11113394051790237,
-0.21640242636203766,
0.14330539107322693,
-0.04727230593562126,
-0.04867167770862579,
-0.03308604657649994,
-0.027996625751256943,
0.1341080665588379,
0.08941145986318588,
-0.039265044033527374,
-0.07665234059095383,
-3.724276622176391e-35,
-0.004456286318600178,
-0.07809668034315109,
-0.05974195897579193,
-0.14002907276153564,
0.04509562626481056,
-0.052650175988674164,
0.41199538111686707,
-0.03624822571873665,
0.12435690313577652,
-0.07175340503454208,
-0.08967793732881546
] |
https://github.com/huggingface/datasets/issues/2377 | ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather | Not sure if this was resolved, but I am getting a similar error when trying to load a dataset.arrow file directly: `ArrowInvalid: Not an Arrow file` | ## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from pyarrow import feather
dataset = load_dataset('imdb', split='train')
dataset.save_to_disk('dataset_dir')
table = feather.read_table('dataset_dir/dataset.arrow')
```
## Expected results
I expect that the saved dataset can be read by the official Apache Arrow methods.
## Actual results
```
File "/usr/local/lib/python3.7/site-packages/pyarrow/feather.py", line 236, in read_table
reader.open(source, use_memory_map=memory_map)
File "pyarrow/feather.pxi", line 67, in pyarrow.lib.FeatherReader.open
File "pyarrow/error.pxi", line 123, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Not a Feather V1 or Arrow IPC file
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets-1.6.2
- Platform: Linux
- Python version: 3.7
- PyArrow version: 0.17.1, also 2.0.0
| 26 | ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather
## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from pyarrow import feather
dataset = load_dataset('imdb', split='train')
dataset.save_to_disk('dataset_dir')
table = feather.read_table('dataset_dir/dataset.arrow')
```
## Expected results
I expect that the saved dataset can be read by the official Apache Arrow methods.
## Actual results
```
File "/usr/local/lib/python3.7/site-packages/pyarrow/feather.py", line 236, in read_table
reader.open(source, use_memory_map=memory_map)
File "pyarrow/feather.pxi", line 67, in pyarrow.lib.FeatherReader.open
File "pyarrow/error.pxi", line 123, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Not a Feather V1 or Arrow IPC file
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets-1.6.2
- Platform: Linux
- Python version: 3.7
- PyArrow version: 0.17.1, also 2.0.0
Not sure if this was resolved, but I am getting a similar error when trying to load a dataset.arrow file directly: `ArrowInvalid: Not an Arrow file` | [
-0.040388643741607666,
0.14955738186836243,
-0.07385044544935226,
0.1384582668542862,
0.0913548693060875,
0.1053628921508789,
-0.045219674706459045,
0.15336459875106812,
-0.2285332977771759,
0.050247956067323685,
-0.16658709943294525,
0.1337251216173172,
0.00625001871958375,
-0.2522095739841461,
0.09680663049221039,
0.08518099039793015,
-0.08239530771970749,
-0.13173244893550873,
-0.04303369298577309,
-0.03903701901435852,
-0.00008884842827683315,
0.11710264533758163,
0.07173723727464676,
0.05129207298159599,
-0.12227003276348114,
-0.04680271074175835,
0.0028309884946793318,
0.15255656838417053,
-0.046981390565633774,
-0.2851128578186035,
0.27500516176223755,
-0.06480158865451813,
-0.011606164276599884,
0.16483566164970398,
0.000005351234449335607,
0.08318714797496796,
0.3520839214324951,
0.017602313309907913,
-0.10178284347057343,
-0.0032207632903009653,
0.1303388625383377,
-0.0591515377163887,
0.057110682129859924,
0.01653614640235901,
0.2262168824672699,
-0.27912095189094543,
-0.07061011344194412,
-0.0870089903473854,
0.05349399521946907,
0.09594646096229553,
0.021348441019654274,
0.05615261197090149,
0.18857668340206146,
-0.044905178248882294,
0.14992685616016388,
0.05542030185461044,
-0.018927697092294693,
0.17032821476459503,
-0.23469990491867065,
-0.05830879881978035,
-0.11093521863222122,
-0.12160877138376236,
0.028952717781066895,
0.06301610916852951,
-0.1034335345029831,
0.05817907676100731,
-0.08622922003269196,
-0.09565581381320953,
-0.042397335171699524,
0.14071404933929443,
0.061821989715099335,
-0.09826190024614334,
-0.2664322257041931,
-0.016804546117782593,
0.043202728033065796,
-0.03158905729651451,
0.018900001421570778,
0.09925822168588638,
-0.13407787680625916,
-0.05789549648761749,
0.10427861660718918,
0.10207030177116394,
0.0015677888877689838,
-0.04739376902580261,
0.030183367431163788,
-0.05817469581961632,
-0.09468381106853485,
0.20204493403434753,
0.12116971611976624,
-0.10951172560453415,
0.21093949675559998,
-0.02493150532245636,
-0.086451955139637,
-0.16497920453548431,
0.22803588211536407,
0.07610781490802765,
-0.04892221838235855,
-0.10676609724760056,
-0.006513836793601513,
0.009274053387343884,
0.014913187362253666,
0.07876621186733246,
-0.03040480986237526,
0.10505163669586182,
-0.038096074014902115,
-0.10043425858020782,
-0.06727682054042816,
0.012243755161762238,
0.09410553425550461,
-0.09164232760667801,
0.03775956109166145,
-0.04475086182355881,
-0.0872923955321312,
-0.1351006180047989,
0.2380194365978241,
0.07315145432949066,
0.15274806320667267,
-0.02059289999306202,
-0.09567005932331085,
0.12258473038673401,
-0.0609700009226799,
-0.0628049224615097,
-0.11530470103025436,
0.20748895406723022,
0.12482038140296936,
-0.03640534356236458,
0.09237244725227356,
0.17033030092716217,
0.07033862173557281,
0.04545142874121666,
0.02771557681262493,
-0.058653488755226135,
-0.05001054331660271,
-0.06795989722013474,
0.13630923628807068,
-0.0011352499714121222,
-0.03184262663125992,
-0.05423799157142639,
-0.047589294612407684,
-0.08797578513622284,
0.04193020239472389,
-0.15292330086231232,
0.049868568778038025,
0.023047873750329018,
0.19603627920150757,
0.18738606572151184,
0.15514184534549713,
0.03578050434589386,
-0.03349669277667999,
0.04518866539001465,
-0.16216477751731873,
0.08026421070098877,
-0.20656268298625946,
0.029743434861302376,
0.008616768755018711,
0.10287629812955856,
-0.11802060902118683,
-0.09896718710660934,
-0.15367361903190613,
-0.08401370793581009,
-0.026858504861593246,
-0.06446552276611328,
0.0771932452917099,
-0.02445879764854908,
0.12975256145000458,
0.04530056193470955,
-0.0878218486905098,
0.08573643863201141,
-0.051637452095746994,
-0.0822567269206047,
0.04912526160478592,
0.001322708441875875,
-0.241444393992424,
-0.09635502845048904,
-0.19971059262752533,
0.13258898258209229,
0.10813358426094055,
0.007295895833522081,
-0.06615894287824631,
-0.03600188344717026,
0.10317951440811157,
-0.13644996285438538,
-0.0635596215724945,
-0.025491777807474136,
0.04505332186818123,
-0.0002378872741246596,
-0.06249464675784111,
-0.006391962990164757,
0.11323440074920654,
-0.02867339551448822,
-0.04627208411693573,
0.061260949820280075,
-0.11275101453065872,
-0.003768495051190257,
-0.0504530593752861,
-0.28974562883377075,
0.03462916985154152,
-0.23983792960643768,
0.08119650185108185,
-0.1156189814209938,
0.05379849299788475,
-0.02461104467511177,
-0.014079468324780464,
0.04423239082098007,
0.07709537446498871,
0.0326356440782547,
-0.11909851431846619,
-0.013820805586874485,
-0.042658481746912,
-0.23760683834552765,
-0.22530530393123627,
-0.0026814790908247232,
-0.05108346790075302,
0.015137292444705963,
-0.15408572554588318,
0.028004707768559456,
-0.008296338841319084,
-0.025816019624471664,
-0.10153545439243317,
0.21980249881744385,
-0.0671105682849884,
-0.035835541784763336,
0.11321354657411575,
0.06195027753710747,
-0.08543428033590317,
0.17994819581508636,
-0.07209526002407074,
-0.2974782884120941,
0.008275276981294155,
0.022526225075125694,
-0.11873520910739899,
-0.041085682809352875,
-0.04748983308672905,
0.18046434223651886,
-0.08635614812374115,
-0.08547240495681763,
-0.06171279028058052,
-0.19391976296901703,
-0.037680115550756454,
-0.13003797829151154,
-0.10060133785009384,
0.05697911977767944,
0.017968861386179924,
-0.02622203156352043,
-0.14939220249652863,
0.0541338287293911,
-0.023504037410020828,
0.08156649768352509,
-0.08215273916721344,
-0.006511392537504435,
0.26571643352508545,
0.14537253975868225,
-0.08727038651704788,
-0.023610452190041542,
-0.07688780874013901,
-0.10486007481813431,
0.06694748252630234,
0.1485288441181183,
-0.04151998460292816,
0.0781284049153328,
0.3311038315296173,
0.06996958702802658,
-0.004643869586288929,
0.05856144800782204,
0.014235307462513447,
-0.03435206413269043,
0.12056207656860352,
0.04074874892830849,
0.0033648398239165545,
0.05599936097860336,
0.010976539924740791,
0.02056650072336197,
-0.204017773270607,
-0.08158235251903534,
0.1671065390110016,
-0.04818835109472275,
0.20716173946857452,
0.07732068002223969,
0.15912041068077087,
-0.09535643458366394,
-0.2429019957780838,
0.10003472119569778,
-0.0564800500869751,
-0.2307535856962204,
0.02115730196237564,
0.039433203637599945,
-0.15951497852802277,
-0.03590669482946396,
-0.08127932250499725,
0.039371952414512634,
-0.06141524761915207,
-0.1687776744365692,
0.01980501599609852,
-0.016044624149799347,
0.12061814963817596,
-0.14218604564666748,
-0.08396133035421371,
-0.20396797358989716,
-0.02604961395263672,
0.017189549282193184,
-0.07828643172979355,
0.08264206349849701,
0.0015558562008664012,
0.015813156962394714,
0.03897508233785629,
0.07913907617330551,
0.16493362188339233,
0.12709729373455048,
-0.03956443816423416,
-0.22338463366031647,
0.04932340607047081,
-0.10979385673999786,
-0.027187228202819824,
0.2464417666196823,
0.031731151044368744,
0.11268050223588943,
-0.04551403969526291,
-0.15541641414165497,
0.23247522115707397,
0.0818607360124588,
-0.010349930264055729,
0.16129940748214722,
-0.048262469470500946,
-0.014006056822836399,
-0.04962637275457382,
0.16077519953250885,
-0.0983632281422615,
-0.18365608155727386,
0.12264064699411392,
0.12706901133060455,
0.007356513757258654,
-0.015386981889605522,
0.12765800952911377,
-0.058067210018634796,
-0.018835321068763733,
-0.018534868955612183,
-0.09458336234092712,
0.01003424171358347,
0.26597967743873596,
0.08450485020875931,
-0.018716709688305855,
-0.004946578294038773,
-0.046468187123537064,
0.06368144601583481,
0.11222830414772034,
-0.05658140406012535,
-0.070584237575531,
-0.05887187272310257,
0.3939206302165985,
-0.0751112625002861,
0.01486190129071474,
0.11503120511770248,
0.04649141803383827,
-0.19694671034812927,
-0.10846564173698425,
0.011670166626572609,
-0.1434672474861145,
-0.04624183103442192,
-0.028089255094528198,
-0.013490596786141396,
0.08969239145517349,
-0.0007704487652517855,
-0.07884596288204193,
-0.09556552022695541,
-0.048662517219781876,
0.17138034105300903,
0.08628365397453308,
0.10523661226034164,
-0.15529648959636688,
-0.145210400223732,
-0.12845194339752197,
-0.1930045485496521,
0.05230168253183365,
-0.11691529303789139,
-0.04118211939930916,
-0.1196608766913414,
0.03395320475101471,
-0.05527495965361595,
0.018742356449365616,
-0.05807780101895332,
0.06132211163640022,
-0.1392187476158142,
-0.12106774747371674,
0.013181853108108044,
0.09397273510694504,
0.12794815003871918,
-0.03156483918428421,
0.04160469397902489,
-0.1498372107744217,
0.1542518585920334,
0.13574084639549255,
0.07581650465726852,
0.0465228371322155,
0.058378688991069794,
0.029837891459465027,
-0.14239190518856049,
0.1262342631816864,
0.21535822749137878,
0.0701393336057663,
0.1788869947195053,
-0.09841315448284149,
-0.0029735995922237635,
0.0631197839975357,
0.12425515800714493,
0.1837947964668274,
0.13208989799022675,
-0.09219115227460861,
-0.09528519958257675,
0.05552380904555321,
0.04908991977572441,
0.0552988164126873,
-0.19165854156017303,
-0.07208720594644547,
-0.006211004685610533,
0.06337860226631165,
0.06673038005828857,
0.12769342958927155,
0.020596735179424286,
-0.001781119150109589,
-0.09542585909366608,
-0.1659797728061676,
-0.03317343443632126,
0.03563762456178665,
0.010071084834635258,
-0.16200797259807587,
-0.04215947166085243,
-0.14226053655147552,
-0.12779411673545837,
0.13734832406044006,
-0.12958642840385437,
0.13002383708953857,
-0.07763644307851791,
0.062205374240875244,
-0.03132091835141182,
0.13935671746730804,
0.14991149306297302,
0.27089884877204895,
0.05646244436502457,
-0.19878770411014557,
-0.1791321486234665,
-0.22995194792747498,
-0.04681172966957092,
-0.05671821907162666,
-0.2589834928512573,
-0.07454434037208557,
-0.1652577966451645,
-0.05807064473628998,
0.08606705814599991,
-0.060842111706733704,
0.03879575431346893,
-0.2176840603351593,
0.020738642662763596,
0.053606100380420685,
-0.006037544924765825,
0.016739709302783012,
-0.027478234842419624,
0.2206069380044937,
-0.005756596568971872,
-0.02308952808380127,
0.15264485776424408,
0.050486888736486435,
-0.062102437019348145,
-0.0411057285964489,
0.05905229225754738,
0.03026549518108368,
0.11044886708259583,
0.21134890615940094,
-0.08852089941501617,
-0.0012608248507604003,
0.015307988971471786,
0.03414985537528992,
-0.01140177994966507,
-0.14905527234077454,
-0.019332587718963623,
0.22971701622009277,
0.05350354686379433,
0.013017668388783932,
-0.02948184683918953,
-0.08722282201051712,
0.07382533699274063,
0.10029979050159454,
-0.063440702855587,
0.10525067150592804,
-0.04563022404909134,
0.12232740223407745,
0.018016446381807327,
0.08354363590478897,
-0.018284996971488,
-0.14312294125556946,
-0.22650103271007538,
0.04936264827847481,
-0.03863679990172386,
0.03944454342126846,
-0.2028208076953888,
0.16982361674308777,
-0.07449226081371307,
-0.003596052061766386,
-0.05532673001289368,
0.10995739698410034,
0.060232024639844894,
0.001665285206399858,
-0.13778597116470337,
-0.05288968235254288,
0.07712677866220474,
-0.11559729278087616,
-0.0683969035744667,
-0.12117427587509155,
-0.010843547992408276,
0.00014327895769383758,
-0.08072603493928909,
0.08175799250602722,
0.02431516908109188,
-0.14555078744888306,
0.007175238337367773,
0.03578953072428703,
-0.06595195829868317,
-0.006391902454197407,
0.16154034435749054,
0.0065511069260537624,
-0.06332337856292725,
0.02252119407057762,
-0.11567423492670059,
-0.01549178920686245,
0.06472347676753998,
-0.05563005805015564,
0.027530230581760406,
-0.026638921350240707,
0.08200328052043915,
0.0926474928855896,
-0.09266746789216995,
0.08954177051782608,
0.18117833137512207,
0.016101974993944168,
-0.012090177275240421,
-0.046356383711099625,
0.022774584591388702,
0.06365956366062164,
-0.2881198227405548,
0.1616630107164383,
0.0473003089427948,
0.017911681905388832,
-0.2513856589794159,
-0.13319924473762512,
0.15980060398578644,
0.11350034177303314,
-0.08961322158575058,
-0.01082466822117567,
-0.17619779706001282,
-0.09570286422967911,
-0.162459135055542,
0.019599592313170433,
0.02681228704750538,
-0.04455124959349632,
0.033569514751434326,
-0.11696731299161911,
-2.4351714357051254e-32,
0.10400007665157318,
0.09234175086021423,
0.04369022324681282,
0.088394895195961,
-0.1541462540626526,
-0.009509885683655739,
-0.13504254817962646,
-0.05540267005562782,
-0.04008420184254646,
0.016068940982222557,
-0.008740430697798729,
0.09720399975776672,
-0.03808193281292915,
0.02962888590991497,
-0.09077320247888565,
-0.060773298144340515,
-0.06154564395546913,
-0.10776111483573914,
0.091607965528965,
0.20255832374095917,
0.044918712228536606,
-0.0020433752797544003,
0.13804557919502258,
0.01185012236237526,
-0.05907239764928818,
-0.16928191483020782,
-0.15337103605270386,
-0.12844261527061462,
0.038821227848529816,
-0.0490088015794754,
-0.007410408928990364,
0.10472679883241653,
0.0740562304854393,
-0.18831656873226166,
-0.07699726521968842,
-0.17408403754234314,
-0.20143607258796692,
-0.050132449716329575,
-0.24983623623847961,
-0.03528517112135887,
-0.12329619377851486,
0.12947840988636017,
0.2469906508922577,
-0.17656712234020233,
-0.05072307959198952,
0.05020761489868164,
-0.09025226533412933,
0.078618623316288,
-0.11602243781089783,
-0.08141487836837769,
0.02158685214817524,
-0.029048791155219078,
-0.06631605327129364,
0.038824256509542465,
0.10564092546701431,
-0.05457577109336853,
0.005565906874835491,
0.02224009484052658,
-0.1856074035167694,
-0.13610096275806427,
0.06225494295358658,
-0.04596966132521629,
0.08049110323190689,
0.02291586995124817,
0.10331043601036072,
0.15203309059143066,
0.329060822725296,
0.03926720842719078,
0.14469271898269653,
0.14886106550693512,
0.010284235700964928,
0.0793340802192688,
0.03848646953701973,
0.01815827563405037,
-0.09317270666360855,
0.01746411807835102,
-0.15491150319576263,
-0.03084486722946167,
0.19697710871696472,
0.014617298729717731,
0.002233169972896576,
0.09322521835565567,
0.02663557603955269,
-0.04043414816260338,
-0.014099273830652237,
-0.11646804213523865,
0.07674118876457214,
0.06212231516838074,
-0.06746185570955276,
-0.11785904318094254,
-0.011074302718043327,
0.06057361140847206,
0.06845351308584213,
-0.09436479955911636,
-0.15972912311553955,
0.1851082146167755,
-0.06574691087007523,
0.14433570206165314,
-0.00504074664786458,
0.003723984118551016,
-0.05345018580555916,
-0.02466793730854988,
0.06281112879514694,
0.15579453110694885,
0.19398802518844604,
0.08452688902616501,
0.09767559915781021,
0.005142301321029663,
-0.10516512393951416,
-0.07924921065568924,
-0.04440265893936157,
0.15885372459888458,
0.12293072044849396,
-0.025808822363615036,
0.22025319933891296,
0.0666114017367363,
-0.06549503654241562,
-0.04807909578084946,
0.12172819674015045,
0.1761143058538437,
0.014753902330994606,
-0.15458910167217255,
-0.17504753172397614,
-0.015703966841101646,
0.01709015481173992,
0.07772159576416016,
0.05799121409654617,
-0.052219457924366,
0.09646189957857132,
0.0539281964302063,
0.05859864130616188,
-0.054780859500169754,
7.213362209768093e-7,
-0.14682267606258392,
-0.022169141098856926,
0.0997132882475853,
0.06347667425870895,
0.08224009722471237,
0.11575715988874435,
-0.2048201560974121,
0.1315075308084488,
-0.14413756132125854,
0.06536182016134262,
0.13716508448123932,
0.12761688232421875,
-0.0026239894796162844,
0.017877455800771713,
0.15352891385555267,
-0.12622366845607758,
-0.04562584310770035,
0.15338675677776337,
-0.06301843374967575,
0.21202975511550903,
0.21389293670654297,
0.046193432062864304,
-0.08205410093069077,
-0.022494815289974213,
0.04161684587597847,
0.033121656626462936,
-0.03750697150826454,
-0.08319098502397537,
0.05150951072573662,
0.016200605779886246,
-0.026372496038675308,
0.19254890084266663,
-0.10236313939094543,
0.13144901394844055,
0.009675843641161919,
0.043534308671951294,
-0.1972777098417282,
0.00777503103017807,
-0.013447530567646027,
0.22910843789577484,
0.04754779860377312,
0.03080117702484131,
0.03101564571261406,
-0.013345815241336823,
0.08690148591995239,
0.036003053188323975,
-0.1614886075258255,
-0.012797575443983078,
-0.055757198482751846,
0.11299072206020355,
0.028248829767107964,
0.00003400946661713533,
0.04251585900783539,
0.0705874040722847,
-0.08637341111898422,
0.09972991049289703,
-0.10323263704776764,
-0.19490119814872742,
0.15421894192695618,
-0.03555803373456001,
-0.058418743312358856,
-0.04609716311097145,
-0.030070841312408447,
0.1270565241575241,
0.072383351624012,
-0.0393037311732769,
-0.07013123482465744,
-6.407964663414733e-35,
0.019661881029605865,
-0.09264782071113586,
-0.05673964321613312,
-0.15376293659210205,
0.026025408878922462,
-0.04427280277013779,
0.3914612829685211,
-0.03689812868833542,
0.12726889550685883,
-0.07322438806295395,
-0.08923180401325226
] |
https://github.com/huggingface/datasets/issues/2377 | ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather | Since we're using the streaming format, you need to use `open_stream`:
```python
import pyarrow as pa
def in_memory_arrow_table_from_file(filename: str) -> pa.Table:
in_memory_stream = pa.input_stream(filename)
opened_stream = pa.ipc.open_stream(in_memory_stream)
pa_table = opened_stream.read_all()
return pa_table
def memory_mapped_arrow_table_from_file(filename: str) -> pa.Table:
memory_mapped_stream = pa.memory_map(filename)
opened_stream = pa.ipc.open_stream(memory_mapped_stream)
pa_table = opened_stream.read_all()
return pa_table
``` | ## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from pyarrow import feather
dataset = load_dataset('imdb', split='train')
dataset.save_to_disk('dataset_dir')
table = feather.read_table('dataset_dir/dataset.arrow')
```
## Expected results
I expect that the saved dataset can be read by the official Apache Arrow methods.
## Actual results
```
File "/usr/local/lib/python3.7/site-packages/pyarrow/feather.py", line 236, in read_table
reader.open(source, use_memory_map=memory_map)
File "pyarrow/feather.pxi", line 67, in pyarrow.lib.FeatherReader.open
File "pyarrow/error.pxi", line 123, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Not a Feather V1 or Arrow IPC file
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets-1.6.2
- Platform: Linux
- Python version: 3.7
- PyArrow version: 0.17.1, also 2.0.0
| 49 | ArrowDataset.save_to_disk produces files that cannot be read using pyarrow.feather
## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
from datasets import load_dataset
from pyarrow import feather
dataset = load_dataset('imdb', split='train')
dataset.save_to_disk('dataset_dir')
table = feather.read_table('dataset_dir/dataset.arrow')
```
## Expected results
I expect that the saved dataset can be read by the official Apache Arrow methods.
## Actual results
```
File "/usr/local/lib/python3.7/site-packages/pyarrow/feather.py", line 236, in read_table
reader.open(source, use_memory_map=memory_map)
File "pyarrow/feather.pxi", line 67, in pyarrow.lib.FeatherReader.open
File "pyarrow/error.pxi", line 123, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Not a Feather V1 or Arrow IPC file
```
## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: datasets-1.6.2
- Platform: Linux
- Python version: 3.7
- PyArrow version: 0.17.1, also 2.0.0
Since we're using the streaming format, you need to use `open_stream`:
```python
import pyarrow as pa
def in_memory_arrow_table_from_file(filename: str) -> pa.Table:
in_memory_stream = pa.input_stream(filename)
opened_stream = pa.ipc.open_stream(in_memory_stream)
pa_table = opened_stream.read_all()
return pa_table
def memory_mapped_arrow_table_from_file(filename: str) -> pa.Table:
memory_mapped_stream = pa.memory_map(filename)
opened_stream = pa.ipc.open_stream(memory_mapped_stream)
pa_table = opened_stream.read_all()
return pa_table
``` | [
-0.04309593886137009,
0.16063664853572845,
-0.0838165208697319,
0.18818022310733795,
0.1039852425456047,
0.11980899423360825,
-0.09491965174674988,
0.13969649374485016,
-0.27999693155288696,
0.03518464416265488,
-0.18129153549671173,
0.10890320688486099,
0.03413667902350426,
-0.22120191156864166,
0.13941365480422974,
0.08671137690544128,
-0.03576088696718216,
-0.10687260329723358,
-0.03952294960618019,
-0.02131253108382225,
0.019472472369670868,
0.10274749249219894,
0.07496180385351181,
0.05002127215266228,
-0.09775231778621674,
-0.04376053810119629,
-0.02830701880156994,
0.13673894107341766,
-0.06793516129255295,
-0.26574671268463135,
0.19130916893482208,
-0.07358158379793167,
-0.01567232422530651,
0.10772257298231125,
0.000005395610060077161,
0.11340168118476868,
0.31393706798553467,
-0.02482469379901886,
-0.07473496347665787,
0.0329563207924366,
0.1230807974934578,
-0.03969074413180351,
0.01822076551616192,
0.027476254850625992,
0.20293503999710083,
-0.2749443054199219,
-0.0646016076207161,
-0.10401074588298798,
0.07584934681653976,
0.0902918353676796,
0.00933106429874897,
0.043271612375974655,
0.20308174192905426,
-0.018542220816016197,
0.11978257447481155,
0.024897579103708267,
-0.021530715748667717,
0.13710348308086395,
-0.22332614660263062,
-0.059348199516534805,
-0.12237731367349625,
-0.12260754406452179,
-0.0010579762747511268,
0.06011836230754852,
-0.05605378374457359,
0.05396527051925659,
-0.07745130360126495,
-0.13195307552814484,
-0.04470722749829292,
0.1366550773382187,
0.04313751310110092,
-0.14287713170051575,
-0.25516873598098755,
-0.007042130921036005,
0.025566188618540764,
-0.11002831906080246,
0.005394247360527515,
0.12284868955612183,
-0.13963693380355835,
-0.053087301552295685,
0.10385971516370773,
0.09360232949256897,
-0.015993554145097733,
-0.03994070738554001,
0.020976517349481583,
-0.06041083112359047,
-0.09789036959409714,
0.179502934217453,
0.1629134863615036,
-0.051870282739400864,
0.2229427546262741,
-0.025504257529973984,
-0.060249682515859604,
-0.1905103623867035,
0.18572118878364563,
0.10212674736976624,
-0.08118632435798645,
-0.16164076328277588,
-0.0018766788998618722,
-0.015417102724313736,
0.055466003715991974,
0.1150626614689827,
-0.012719807215034962,
0.08048495650291443,
-0.06911059468984604,
-0.09903448075056076,
-0.16802063584327698,
0.013132169842720032,
0.08889880031347275,
-0.07378708571195602,
0.008666403591632843,
-0.0460866279900074,
-0.05729181692004204,
-0.07626356929540634,
0.27740588784217834,
0.04989282786846161,
0.13658317923545837,
-0.01498654205352068,
-0.08831602334976196,
0.13743795454502106,
-0.07995268702507019,
-0.06336673349142075,
-0.1266666054725647,
0.22242876887321472,
0.1212393194437027,
-0.04077783226966858,
0.08372905850410461,
0.17400667071342468,
0.020449398085474968,
0.07505498826503754,
0.02534729242324829,
-0.057873956859111786,
-0.055094655603170395,
-0.02531391568481922,
0.10980607569217682,
-0.034991391003131866,
-0.03396175801753998,
-0.040113963186740875,
-0.07483137398958206,
-0.08204639703035355,
0.057456109672784805,
-0.164407879114151,
0.03683271259069443,
0.04296125844120979,
0.17174921929836273,
0.15410016477108002,
0.14819510281085968,
0.058862172067165375,
-0.01589229516685009,
0.06076368689537048,
-0.16587556898593903,
0.09085983783006668,
-0.17792396247386932,
0.039755746722221375,
0.0016750477952882648,
0.11345454305410385,
-0.14537034928798676,
-0.1083606481552124,
-0.1455773264169693,
-0.07504364848136902,
-0.040479328483343124,
-0.02435351349413395,
0.057474471628665924,
-0.04438714683055878,
0.15290716290473938,
0.021972689777612686,
-0.0652342438697815,
0.11741779744625092,
-0.05150054022669792,
-0.1008898913860321,
0.11748421937227249,
-0.0037231449969112873,
-0.18484719097614288,
-0.14072106778621674,
-0.20613917708396912,
0.11406657099723816,
0.11345486342906952,
0.06580674648284912,
-0.030447321012616158,
-0.06024697422981262,
0.08824987709522247,
-0.11535772681236267,
-0.03319765254855156,
-0.012168562039732933,
0.06652268022298813,
0.004051166586577892,
-0.002454686677083373,
0.0036646691150963306,
0.08784927427768707,
-0.004806259647011757,
-0.014803197234869003,
0.06808191537857056,
-0.12829507887363434,
-0.004046638961881399,
-0.038467444479465485,
-0.22947636246681213,
0.009385677985846996,
-0.21963535249233246,
0.0848342627286911,
-0.10145656019449234,
0.07237262278795242,
-0.046745337545871735,
0.0367814265191555,
0.06670030951499939,
0.06420335173606873,
0.0001250726345460862,
-0.09887998551130295,
-0.056896358728408813,
-0.05524182319641113,
-0.24263034760951996,
-0.23024429380893707,
0.020584259182214737,
-0.04010863974690437,
0.029444923624396324,
-0.1487303525209427,
0.04072979465126991,
0.011805122718214989,
-0.037654291838407516,
-0.09435481578111649,
0.21324707567691803,
-0.06640300899744034,
-0.0308366771787405,
0.1419636756181717,
0.04538102447986603,
-0.0770009309053421,
0.17660774290561676,
-0.08516477048397064,
-0.30131062865257263,
0.02933468483388424,
0.011003282852470875,
-0.09300892800092697,
-0.018836967647075653,
-0.01594911329448223,
0.18075542151927948,
-0.062044672667980194,
-0.05777353420853615,
-0.10711550712585449,
-0.18442612886428833,
-0.08759603649377823,
-0.12326948344707489,
-0.08956988900899887,
0.07589858770370483,
0.027073655277490616,
-0.0561215877532959,
-0.10971640795469284,
0.06604411453008652,
-0.013964296318590641,
0.06884154677391052,
-0.05572656914591789,
-0.029328608885407448,
0.2702491283416748,
0.1922421008348465,
-0.06883364915847778,
-0.03888759762048721,
-0.07865067571401596,
-0.09520832449197769,
0.097170390188694,
0.1676558554172516,
-0.07283943146467209,
0.06031516566872597,
0.3648350238800049,
0.05198002606630325,
-0.006238694302737713,
0.0640590563416481,
0.007088964805006981,
-0.07184609025716782,
0.11320560425519943,
0.05770374834537506,
0.03475484624505043,
0.0521661639213562,
0.04416848346590996,
0.06266824156045914,
-0.16766256093978882,
-0.09686891734600067,
0.1689508855342865,
-0.029383566230535507,
0.22796125710010529,
0.048285964876413345,
0.15772733092308044,
-0.08418125659227371,
-0.20164839923381805,
0.110471710562706,
-0.08997634053230286,
-0.23215650022029877,
0.014169290661811829,
0.04743495583534241,
-0.16161832213401794,
-0.09692782163619995,
-0.10126239061355591,
0.04268011078238487,
-0.0333605594933033,
-0.1880415976047516,
0.024499302729964256,
-0.02235419675707817,
0.15087176859378815,
-0.1553647816181183,
-0.11206430941820145,
-0.18579848110675812,
-0.07141435891389847,
0.030928708612918854,
-0.0885237604379654,
0.11303237080574036,
0.0006809555925428867,
0.03515417128801346,
0.03897405415773392,
0.07474583387374878,
0.14163963496685028,
0.15288692712783813,
-0.01025959849357605,
-0.2489229440689087,
0.03579609841108322,
-0.12044508010149002,
-0.05273761600255966,
0.2136845737695694,
0.013472272083163261,
0.13120348751544952,
-0.037670403718948364,
-0.22086027264595032,
0.22499345242977142,
0.04834462329745293,
0.005157385487109423,
0.16226550936698914,
-0.07337889075279236,
0.006757631432265043,
-0.03718109428882599,
0.15708032250404358,
-0.08544767647981644,
-0.18508006632328033,
0.15123945474624634,
0.15805500745773315,
0.026659220457077026,
-0.013207225129008293,
0.1009521633386612,
-0.05293238162994385,
-0.03379471227526665,
-0.034997645765542984,
-0.08991025388240814,
0.028618643060326576,
0.24162183701992035,
0.13063083589076996,
0.0010815326822921634,
0.017696797847747803,
-0.0621282197535038,
0.04703061655163765,
0.12144304811954498,
-0.093319833278656,
-0.08081988990306854,
-0.06521967798471451,
0.38159847259521484,
-0.0587209090590477,
0.0038727233186364174,
0.07363907992839813,
0.051964692771434784,
-0.22799557447433472,
-0.12787100672721863,
-0.0003564033831935376,
-0.17377939820289612,
-0.043376557528972626,
-0.05148577690124512,
-0.011263159103691578,
0.09405096620321274,
0.0368688739836216,
-0.05996755510568619,
-0.05435207486152649,
-0.06440336257219315,
0.17399321496486664,
0.05765295773744583,
0.09504926204681396,
-0.1628456711769104,
-0.13717412948608398,
-0.1526092290878296,
-0.19373291730880737,
0.054020196199417114,
-0.14358234405517578,
-0.01658456027507782,
-0.11111634224653244,
0.040794484317302704,
-0.03363771736621857,
0.017458423972129822,
-0.05784034729003906,
0.09178227186203003,
-0.15271693468093872,
-0.10855239629745483,
-0.0014900019159540534,
0.08264420926570892,
0.13922862708568573,
-0.0350448414683342,
0.007847321219742298,
-0.15850645303726196,
0.14952048659324646,
0.12994544208049774,
0.039655156433582306,
0.005595814436674118,
0.06557375937700272,
0.03577238321304321,
-0.14691214263439178,
0.10091140121221542,
0.23477602005004883,
0.08624216914176941,
0.20371536910533905,
-0.08608498424291611,
-0.027625037357211113,
0.05840860307216644,
0.1050628051161766,
0.16640037298202515,
0.14013542234897614,
-0.06315960735082626,
-0.08422233909368515,
0.06682710349559784,
0.07757896929979324,
0.034405965358018875,
-0.1793438047170639,
-0.07066874206066132,
-0.005259804893285036,
0.03809088468551636,
0.10783082991838455,
0.15206095576286316,
0.04586369916796684,
0.0017426677513867617,
-0.08038978278636932,
-0.16636809706687927,
-0.020260820165276527,
0.05763063207268715,
0.0322519987821579,
-0.1822509765625,
-0.044388361275196075,
-0.11385994404554367,
-0.09202920645475388,
0.13481445610523224,
-0.10575603693723679,
0.14287199079990387,
-0.060445770621299744,
0.05592871829867363,
-0.07258544117212296,
0.14458680152893066,
0.14489887654781342,
0.2734813094139099,
0.08845590054988861,
-0.18587353825569153,
-0.17121098935604095,
-0.17132604122161865,
-0.04761467128992081,
-0.05664334073662758,
-0.24171046912670135,
-0.04488367214798927,
-0.1050666868686676,
-0.09468762576580048,
0.09527234733104706,
-0.08495371043682098,
0.020168595016002655,
-0.212045818567276,
0.036067500710487366,
0.02030079998075962,
0.015181044116616249,
0.03996920585632324,
-0.021199988201260567,
0.20277456939220428,
-0.04673146829009056,
0.005662871524691582,
0.1867176741361618,
0.07967347651720047,
-0.06346426159143448,
-0.04228424280881882,
0.07344970107078552,
0.013680899515748024,
0.0968412458896637,
0.1793787032365799,
-0.11221028119325638,
0.028713833540678024,
0.03167349100112915,
0.021450592204928398,
-0.007677750661969185,
-0.13454194366931915,
-0.006303921341896057,
0.16315390169620514,
0.06443003565073013,
-0.011080408468842506,
-0.006679832935333252,
-0.05176375433802605,
0.0749114453792572,
0.08061933517456055,
-0.08269351720809937,
0.11311645060777664,
-0.1087937280535698,
0.13586388528347015,
0.028702527284622192,
0.0682484433054924,
-0.005201047286391258,
-0.16283045709133148,
-0.22079697251319885,
0.06263554841279984,
-0.06024373695254326,
0.03383299708366394,
-0.2534574270248413,
0.14614863693714142,
-0.09769869595766068,
0.03958109766244888,
-0.07213427126407623,
0.16116245090961456,
-0.0250956192612648,
0.0037854362744838,
-0.12036488205194473,
-0.06078597158193588,
0.05054280534386635,
-0.06610511988401413,
-0.062228742986917496,
-0.1431705504655838,
-0.03405116870999336,
-0.018972475081682205,
-0.08791349828243256,
0.11644809693098068,
0.0075593627989292145,
-0.13546007871627808,
0.02671443484723568,
0.052831899374723434,
-0.062048785388469696,
-0.0007040523923933506,
0.14572522044181824,
-0.01848856545984745,
-0.0855836495757103,
0.05421747267246246,
-0.09831210225820541,
0.0032801919151097536,
0.037866607308387756,
-0.07330482453107834,
0.05170661211013794,
-0.03578673303127289,
0.05953030288219452,
0.11765316873788834,
-0.09908554702997208,
0.07266197353601456,
0.12124481797218323,
0.04151810333132744,
-0.04621298238635063,
-0.06560517847537994,
0.038686905056238174,
0.07455971091985703,
-0.2530275285243988,
0.11407417804002762,
0.08327588438987732,
0.033675871789455414,
-0.2635580897331238,
-0.16417500376701355,
0.13396474719047546,
0.08883708715438843,
-0.08755086362361908,
-0.011585455387830734,
-0.20331186056137085,
-0.10475054383277893,
-0.14932650327682495,
-0.006594717036932707,
0.0479963980615139,
-0.025661533698439598,
0.033392392098903656,
-0.09573374688625336,
-2.49128718502468e-32,
0.08282434940338135,
0.08201761543750763,
0.046961165964603424,
0.028552602976560593,
-0.15597359836101532,
-0.014900417998433113,
-0.1019873321056366,
-0.04364169016480446,
-0.02280004508793354,
0.011836834251880646,
-0.024228401482105255,
0.12775501608848572,
-0.037216201424598694,
0.034486204385757446,
-0.11554887145757675,
-0.0761055201292038,
-0.033419594168663025,
-0.10570426285266876,
0.10565577447414398,
0.2418668419122696,
0.04283429682254791,
-0.0030752834863960743,
0.0918768122792244,
0.042350463569164276,
-0.05848034843802452,
-0.1522759050130844,
-0.170475035905838,
-0.14676910638809204,
0.04617338627576828,
-0.05758196488022804,
-0.0386335514485836,
0.1113961711525917,
0.04398081824183464,
-0.20530548691749573,
-0.11376109719276428,
-0.13101781904697418,
-0.2177523821592331,
-0.050947271287441254,
-0.2191067934036255,
-0.026343541219830513,
-0.103968046605587,
0.17122073471546173,
0.23350512981414795,
-0.15011434257030487,
-0.030172869563102722,
0.04438590258359909,
-0.10780944675207138,
0.09855509549379349,
-0.11068838834762573,
-0.025211311876773834,
-0.0005906637525185943,
-0.01745862327516079,
-0.06435932219028473,
0.07413215935230255,
0.09102711826562881,
-0.09692920744419098,
-0.003641491523012519,
0.008606635965406895,
-0.20672227442264557,
-0.12420108914375305,
0.03912503644824028,
-0.03344246745109558,
0.07981473207473755,
-0.029248753562569618,
0.10232701152563095,
0.11166007071733475,
0.279839426279068,
0.05182328447699547,
0.13490745425224304,
0.13172240555286407,
-0.02115318737924099,
0.05675821751356125,
0.020204832777380943,
-0.02289261482656002,
-0.06422790884971619,
-0.01753656193614006,
-0.14183780550956726,
-0.053173575550317764,
0.15504767000675201,
0.04677559807896614,
-0.010058201849460602,
0.11877038329839706,
0.0026596705429255962,
-0.040182698518037796,
0.014925244264304638,
-0.037880200892686844,
0.10024174302816391,
0.07436861097812653,
-0.06873342394828796,
-0.11673154681921005,
-0.005702587775886059,
0.07412876933813095,
0.06518075615167618,
-0.1288234442472458,
-0.12282557785511017,
0.16836927831172943,
-0.06632467359304428,
0.1275126188993454,
-0.006257130764424801,
0.019782807677984238,
-0.033440738916397095,
-0.029527168720960617,
0.0570576973259449,
0.10152887552976608,
0.17924238741397858,
0.1058606281876564,
0.14867249131202698,
0.05551639944314957,
-0.12883909046649933,
-0.10077717155218124,
-0.06670554727315903,
0.15387322008609772,
0.13709776103496552,
-0.0080770468339324,
0.18414798378944397,
0.06770564615726471,
-0.07732678949832916,
-0.047059521079063416,
0.13281670212745667,
0.19486002624034882,
0.0366678461432457,
-0.16469848155975342,
-0.17930008471012115,
-0.021533682942390442,
-0.0086384117603302,
0.08347182720899582,
0.024442456662654877,
0.0035427722614258528,
0.07878008484840393,
0.004014309495687485,
0.061126548796892166,
-0.018072115257382393,
7.160976451814349e-7,
-0.09461250901222229,
-0.0235406756401062,
0.07300581783056259,
0.0834972932934761,
0.08020397275686264,
0.11239655315876007,
-0.1970214694738388,
0.1520330309867859,
-0.16368530690670013,
0.06926818937063217,
0.12598586082458496,
0.10940393060445786,
-0.021467387676239014,
0.01908121071755886,
0.1271291822195053,
-0.12529031932353973,
-0.03497447445988655,
0.13056202232837677,
-0.09891457855701447,
0.17185577750205994,
0.21828830242156982,
0.060885291546583176,
-0.10422946512699127,
0.013444527983665466,
0.06606274098157883,
0.04221370071172714,
-0.042958810925483704,
-0.04963232949376106,
0.06845849007368088,
-0.013469836674630642,
0.027506479993462563,
0.1775398999452591,
-0.11421455442905426,
0.15167221426963806,
-0.0058914367109537125,
0.0930720642209053,
-0.18796293437480927,
-0.009598547592759132,
-0.012175772339105606,
0.21214565634727478,
0.06080210208892822,
0.023341424763202667,
0.04806388169527054,
-0.06087677925825119,
0.05849888548254967,
0.058638181537389755,
-0.16785603761672974,
-0.02316252887248993,
-0.03419843316078186,
0.1409735232591629,
0.05256667733192444,
0.003172452561557293,
0.051892057061195374,
0.0861605629324913,
-0.07796984910964966,
0.08084014058113098,
-0.09702971577644348,
-0.23529930412769318,
0.1379435658454895,
-0.05506571754813194,
-0.041939131915569305,
-0.03158169239759445,
-0.013848627917468548,
0.14561064541339874,
0.08006341010332108,
-0.050905827432870865,
-0.07594038546085358,
-4.603595184198796e-35,
-0.0033174739219248295,
-0.0938643366098404,
-0.03793492913246155,
-0.17199815809726715,
0.06785503774881363,
-0.05079873651266098,
0.3953185975551605,
-0.03841656818985939,
0.11893308907747269,
-0.08146314322948456,
-0.11088543385267258
] |
https://github.com/huggingface/datasets/issues/2373 | Loading dataset from local path | Version below works, checked again in the docs, and data_files should be a path.
```
ds = datasets.load_dataset('my_script.py',
data_files='/data/dir/corpus.txt',
cache_dir='.')
``` | I'm trying to load a local dataset with the code below
```
ds = datasets.load_dataset('my_script.py',
data_files='corpus.txt',
data_dir='/data/dir',
cache_dir='.')
```
But internally a BuilderConfig is created, which tries to use getmtime on the data_files string, without using data_dir. Is this a bug or am I not using the load_dataset correctly?
https://github.com/huggingface/datasets/blob/bc61954083f74e6460688202e9f77dde2475319c/src/datasets/builder.py#L153 | 21 | Loading dataset from local path
I'm trying to load a local dataset with the code below
```
ds = datasets.load_dataset('my_script.py',
data_files='corpus.txt',
data_dir='/data/dir',
cache_dir='.')
```
But internally a BuilderConfig is created, which tries to use getmtime on the data_files string, without using data_dir. Is this a bug or am I not using the load_dataset correctly?
https://github.com/huggingface/datasets/blob/bc61954083f74e6460688202e9f77dde2475319c/src/datasets/builder.py#L153
Version below works, checked again in the docs, and data_files should be a path.
```
ds = datasets.load_dataset('my_script.py',
data_files='/data/dir/corpus.txt',
cache_dir='.')
``` | [
-0.015796121209859848,
0.16532012820243835,
-0.059639520943164825,
0.0641433522105217,
0.08316733688116074,
-0.019256390631198883,
0.19068419933319092,
-0.10821409523487091,
0.06104235351085663,
0.17797909677028656,
-0.023835860192775726,
-0.020605312660336494,
-0.01863638497889042,
-0.198658287525177,
0.07223351299762726,
0.1279333084821701,
-0.05037979409098625,
0.02056898921728134,
-0.08338312804698944,
0.041446659713983536,
-0.17648737132549286,
0.06338042765855789,
0.1378462016582489,
0.027896787971258163,
-0.006067960057407618,
0.03572441264986992,
-0.0395997054874897,
0.12095768004655838,
0.05932673066854477,
-0.11080842465162277,
0.10317046195268631,
-0.03556657209992409,
0.14579930901527405,
0.2288731336593628,
0.000006320072316157166,
-0.018612194806337357,
0.06542383134365082,
0.12274236232042313,
-0.19459548592567444,
-0.14327366650104523,
0.05722016841173172,
-0.0188083928078413,
0.01810511201620102,
-0.08892577886581421,
-0.06524260342121124,
-0.11880896985530853,
0.024945486336946487,
-0.08847060054540634,
-0.06032639741897583,
0.11658730357885361,
-0.0562446266412735,
0.0032840825151652098,
-0.20838604867458344,
-0.1791142225265503,
0.06841909140348434,
0.09361150860786438,
0.0641636773943901,
0.20583881437778473,
-0.1423855870962143,
-0.06365562975406647,
0.04274725541472435,
-0.10922547429800034,
-0.09038502722978592,
0.14833413064479828,
0.06294704973697662,
-0.021273553371429443,
-0.05179624632000923,
-0.10446827858686447,
0.11054028570652008,
0.2626824975013733,
0.16469377279281616,
0.02881631813943386,
-0.15841178596019745,
-0.04231696203351021,
-0.0678073838353157,
0.03389476239681244,
-0.02577090635895729,
-0.14257363975048065,
-0.07865586131811142,
0.09322091192007065,
-0.06836090981960297,
-0.07460727542638779,
0.028095487505197525,
0.09500890970230103,
-0.08544598519802094,
0.1149376630783081,
-0.12036743015050888,
-0.03697063773870468,
-0.08773327618837357,
-0.02216150052845478,
0.22496473789215088,
0.007427276112139225,
-0.12298958003520966,
-0.06079619750380516,
0.3445829451084137,
0.1551981270313263,
-0.006417271681129932,
0.0926198810338974,
0.0062276702374219894,
0.006701257079839706,
-0.03635411337018013,
-0.10198137164115906,
-0.04994717985391617,
0.06008616089820862,
0.15141542255878448,
-0.042285699397325516,
0.051871322095394135,
-0.12106671929359436,
0.07139577716588974,
0.0186193585395813,
-0.0781387910246849,
0.11792977154254913,
-0.16631776094436646,
-0.21202659606933594,
0.03925815969705582,
0.04271563142538071,
0.0327506922185421,
0.1302046775817871,
0.11093105375766754,
0.005744405090808868,
0.11870472878217697,
0.09356391429901123,
-0.06460002064704895,
0.18109743297100067,
-0.01049359142780304,
-0.00603183638304472,
-0.08604424446821213,
0.06910386681556702,
0.004040784668177366,
-0.1169903576374054,
-0.10308419913053513,
-0.14474497735500336,
0.06812694668769836,
0.046811167150735855,
0.10649151355028152,
-0.07424777001142502,
-0.03600211814045906,
-0.22546228766441345,
-0.1587374359369278,
-0.06688067317008972,
0.07599809765815735,
-0.036568835377693176,
-0.07093312591314316,
-0.10611214488744736,
0.13654910027980804,
0.05205041170120239,
-0.04703329876065254,
-0.00807139091193676,
-0.035445354878902435,
0.01086976658552885,
-0.1690675914287567,
-0.034889113157987595,
-0.21973817050457,
0.08439618349075317,
-0.10797937214374542,
-0.014386785216629505,
-0.14350353181362152,
-0.043811313807964325,
-0.08784525096416473,
-0.05690968036651611,
-0.022660309448838234,
-0.017437942326068878,
0.048225659877061844,
-0.009131730534136295,
0.169307142496109,
0.15390396118164062,
-0.04747944697737694,
0.10685699433088303,
-0.09387729316949844,
0.01569957099854946,
-0.02030498906970024,
-0.2337072491645813,
-0.08671215921640396,
0.11460690200328827,
-0.19434773921966553,
0.1468735635280609,
0.11405574530363083,
-0.07574755698442459,
-0.040480513125658035,
0.12136952579021454,
0.14378900825977325,
-0.09909842908382416,
0.0630718320608139,
-0.09337445348501205,
0.1401887685060501,
0.006603161338716745,
-0.16734923422336578,
0.11130945384502411,
0.12415200471878052,
-0.04438783600926399,
-0.08396191895008087,
0.07009799778461456,
0.012354005128145218,
0.15930195152759552,
-0.07820103317499161,
-0.03042827546596527,
-0.01322371605783701,
-0.028867200016975403,
0.0009122759802266955,
-0.14664027094841003,
-0.14401458203792572,
0.13428109884262085,
-0.16603389382362366,
0.07292238622903824,
0.08533994108438492,
-0.06031626835465431,
-0.14304447174072266,
0.16963088512420654,
0.0880526453256607,
-0.2077946960926056,
-0.13058869540691376,
0.07769130170345306,
-0.14375238120555878,
0.033998072147369385,
-0.19262315332889557,
-0.05485986918210983,
-0.11307736486196518,
0.2279176265001297,
-0.06267019361257553,
0.1645052134990692,
-0.04851704463362694,
-0.0006833727238699794,
0.10632897168397903,
0.1274561583995819,
0.06000010669231415,
0.01782352291047573,
0.0021994467824697495,
-0.04649586230516434,
-0.031053973361849785,
0.011106820777058601,
-0.08201061189174652,
-0.12609310448169708,
0.016062520444393158,
0.19753414392471313,
0.04437286779284477,
0.10437556356191635,
-0.04393881931900978,
-0.13137304782867432,
0.029790189117193222,
-0.022585848346352577,
-0.054867230355739594,
0.05206163972616196,
0.0737556591629982,
-0.0471172034740448,
-0.007909692823886871,
0.16935718059539795,
-0.13696928322315216,
0.14513862133026123,
-0.054052501916885376,
-0.06624207645654678,
0.3328917920589447,
0.06730705499649048,
-0.15259206295013428,
0.04288176819682121,
0.08497742563486099,
0.04239010438323021,
0.11945437639951706,
0.18735545873641968,
-0.03315957635641098,
-0.038405098021030426,
0.1748112142086029,
0.040004294365644455,
-0.0008787986007519066,
0.014236588962376118,
0.06844601780176163,
-0.08436961472034454,
-0.062412988394498825,
0.03904426470398903,
-0.031065810471773148,
0.22448454797267914,
0.07076667994260788,
-0.08178208768367767,
-0.20080754160881042,
-0.11933274567127228,
0.13697217404842377,
-0.1037503033876419,
-0.0020389927085489035,
-0.11607610434293747,
-0.027049269527196884,
0.01958983950316906,
-0.08105869591236115,
0.13131877779960632,
0.05043834447860718,
-0.09143149107694626,
0.10906483978033066,
0.10749208927154541,
-0.17023922502994537,
-0.03478722646832466,
0.000023824819436413236,
-0.10239109396934509,
-0.0019507547840476036,
-0.05288400128483772,
0.02700139582157135,
-0.14598193764686584,
0.0073737394995987415,
0.06864915043115616,
0.13043656945228577,
0.01931554265320301,
-0.08882728219032288,
-0.07898827642202377,
0.09823618084192276,
-0.039359480142593384,
-0.08744030445814133,
-0.00552690215408802,
0.08499430865049362,
0.22372424602508545,
0.03957631438970566,
-0.023139581084251404,
-0.24903754889965057,
0.032998453825712204,
0.129851296544075,
-0.003789221402257681,
0.14377760887145996,
0.18019595742225647,
-0.11519238352775574,
-0.035185229033231735,
0.03077872283756733,
-0.08520679175853729,
0.07236818969249725,
0.11651215702295303,
0.06032796576619148,
0.10203801840543747,
0.1484406292438507,
-0.14574585855007172,
-0.022848989814519882,
-0.005142849870026112,
-0.15637774765491486,
-0.08486118912696838,
-0.1756763756275177,
-0.016175726428627968,
-0.09172283113002777,
0.200922891497612,
0.07515721768140793,
-0.14328628778457642,
0.014548898674547672,
-0.06860976666212082,
-0.061485327780246735,
-0.1351405680179596,
0.29229307174682617,
0.034465570002794266,
-0.0016528615960851312,
0.02085241489112377,
-0.03495969623327255,
-0.02511875331401825,
-0.002626696601510048,
-0.03007468581199646,
0.10796372592449188,
-0.1304895132780075,
-0.10446198284626007,
-0.09014920890331268,
0.047912996262311935,
0.0010697225807234645,
-0.040976181626319885,
-0.1390829235315323,
0.057665057480335236,
-0.08652747422456741,
-0.04728565365076065,
0.06315070390701294,
-0.0647105723619461,
0.26486560702323914,
-0.07756248861551285,
-0.11413659900426865,
0.01309119537472725,
-0.07432345300912857,
-0.0938967913389206,
0.1647631973028183,
0.07709845155477524,
0.19417798519134521,
0.059356994926929474,
-0.0762777328491211,
0.007412071339786053,
-0.022114740684628487,
-0.1026664525270462,
0.01285806018859148,
0.05890613794326782,
0.05618969723582268,
-0.08695001900196075,
-0.08525458723306656,
0.1348424106836319,
0.011174775660037994,
-0.03235878795385361,
-0.16427209973335266,
-0.09526176750659943,
0.055419616401195526,
0.17990583181381226,
0.002783282659947872,
0.011934497393667698,
0.06608421355485916,
0.0018538925796747208,
0.17033937573432922,
0.04577280580997467,
0.18766820430755615,
0.13173021376132965,
-0.11949075758457184,
-0.014555186964571476,
-0.06983813643455505,
0.10140787810087204,
0.09170860052108765,
0.1440596729516983,
-0.012315466068685055,
0.12783753871917725,
0.0680694431066513,
0.09820416569709778,
0.13737010955810547,
0.16683588922023773,
0.0435975044965744,
0.01829690858721733,
0.009411297738552094,
0.13333973288536072,
-0.014962566085159779,
-0.18803748488426208,
0.0582084096968174,
0.06769025325775146,
-0.042779382318258286,
0.025826284661889076,
0.048945311456918716,
-0.09875962138175964,
-0.09302935004234314,
-0.09065575897693634,
-0.17572960257530212,
-0.01895967312157154,
-0.17316411435604095,
0.17518697679042816,
0.10640761256217957,
0.08957774937152863,
0.06029531732201576,
0.015243850648403168,
0.012668809853494167,
0.0418967567384243,
-0.1779315024614334,
0.06963247060775757,
0.05173344165086746,
0.09951835870742798,
0.03728251904249191,
0.10269366949796677,
-0.04590713605284691,
0.2859986424446106,
-0.10633746534585953,
-0.11063511669635773,
-0.0456559844315052,
-0.2157762050628662,
-0.1575811207294464,
0.02847355604171753,
-0.0655483603477478,
-0.13226643204689026,
-0.04351000487804413,
-0.10899101942777634,
-0.13744057714939117,
0.05124849081039429,
-0.08659122884273529,
-0.19624444842338562,
-0.04575663059949875,
-0.21911300718784332,
-0.18275374174118042,
-0.05381835624575615,
-0.045226529240608215,
0.09993521124124527,
-0.1707037091255188,
-0.01890353485941887,
0.05982854962348938,
-0.2895432710647583,
-0.0849154070019722,
-0.0009450914221815765,
0.10190265625715256,
0.023072242736816406,
0.21600644290447235,
0.16141512989997864,
-0.07760367542505264,
-0.10058962553739548,
0.10635805130004883,
0.017073407769203186,
0.09825291484594345,
-0.12846562266349792,
0.06393562257289886,
0.18688225746154785,
-0.029497606679797173,
0.021486038342118263,
0.0019454350695014,
-0.018770869821310043,
0.026830747723579407,
0.17448998987674713,
0.18776117265224457,
0.1629178524017334,
-0.0711289793252945,
-0.12167187035083771,
0.13705585896968842,
0.08056395500898361,
-0.12100568413734436,
-0.16322022676467896,
-0.03138349950313568,
0.17695915699005127,
-0.006744543556123972,
0.0841810330748558,
-0.03665219992399216,
0.06745703518390656,
-0.022309914231300354,
-0.043072134256362915,
0.10845960676670074,
0.08106976747512817,
0.1260666698217392,
0.002314242534339428,
-0.06432660669088364,
-0.04668465256690979,
-0.04488947615027428,
-0.03251493349671364,
-0.21432839334011078,
0.014493209309875965,
-0.009091061539947987,
-0.10011264681816101,
-0.01633339375257492,
0.0015522959874942899,
-0.06978949904441833,
-0.09537266194820404,
0.10146178305149078,
0.15175989270210266,
-0.05597362294793129,
-0.0619792677462101,
-0.1202164962887764,
0.049954354763031006,
-0.03744911029934883,
-0.021720435470342636,
0.024172216653823853,
-0.0460103414952755,
-0.029398858547210693,
-0.03133369982242584,
0.10294181108474731,
-0.10054412484169006,
-0.02866438962519169,
0.196872279047966,
-0.03242729231715202,
0.08850595355033875,
0.12150957435369492,
0.12396232038736343,
-0.042627666145563126,
0.004323851782828569,
0.028971901163458824,
0.08160905539989471,
-0.10524815320968628,
0.1040538102388382,
0.048072539269924164,
-0.061064835637807846,
-0.1944516897201538,
0.036049213260412216,
0.04160000756382942,
0.004644124303013086,
-0.0012338823871687055,
0.016599712893366814,
0.04022268205881119,
-0.02247157134115696,
-0.20687302947044373,
-0.007881995290517807,
0.17877733707427979,
0.12553633749485016,
-0.008953540585935116,
-0.22497420012950897,
-2.3839251717338524e-32,
0.05827922746539116,
0.08260449022054672,
-0.03135401010513306,
0.019899770617485046,
-0.027832873165607452,
0.009083256125450134,
0.039378684014081955,
-0.06510689854621887,
-0.19033510982990265,
-0.039748482406139374,
-0.11646320670843124,
0.05626463145017624,
0.03190698102116585,
-0.01188289187848568,
-0.23191146552562714,
-0.12980888783931732,
-0.21179403364658356,
-0.13218538463115692,
-0.004284239839762449,
0.00009102875628741458,
0.15446625649929047,
0.09869957715272903,
0.08241455256938934,
-0.01632271707057953,
0.07562865316867828,
-0.1645938754081726,
0.08299277722835541,
-0.2888812720775604,
0.12784461677074432,
0.0568159855902195,
-0.023151341825723648,
0.05439489334821701,
-0.11212944239377975,
-0.036677971482276917,
-0.09453010559082031,
-0.08968524634838104,
-0.13499149680137634,
0.030791213735938072,
-0.04434751346707344,
-0.01599506102502346,
0.06651345640420914,
0.0741143599152565,
0.05816250294446945,
-0.19668534398078918,
0.023319294676184654,
0.05027001351118088,
-0.03935672715306282,
0.006090686656534672,
-0.07429715245962143,
-0.11852534115314484,
0.007496106904000044,
0.02992934361100197,
0.023916900157928467,
-0.05834553390741348,
0.025505684316158295,
-0.1295076459646225,
-0.016561616212129593,
0.15244030952453613,
-0.06346380710601807,
-0.042834583669900894,
0.04781126230955124,
-0.003858190029859543,
0.08029355108737946,
-0.06850061565637589,
0.24765773117542267,
-0.08831167221069336,
0.3366932272911072,
0.06803712993860245,
0.02571861818432808,
0.04015491530299187,
0.16272278130054474,
0.08163940161466599,
-0.08368466794490814,
-0.02361988089978695,
-0.0172331053763628,
-0.051103606820106506,
-0.1767507642507553,
-0.032262422144412994,
0.03863613307476044,
-0.12725740671157837,
0.08658288419246674,
-0.004516589920967817,
-0.08010395616292953,
0.06730499863624573,
0.017881836742162704,
0.033403366804122925,
-0.039936430752277374,
0.037288080900907516,
-0.20507772266864777,
-0.1451469510793686,
0.06436622142791748,
-0.1370714157819748,
-0.07976441085338593,
0.03724099323153496,
-0.029183918610215187,
0.12785561382770538,
-0.05729356035590172,
-0.077015221118927,
-0.011974419467151165,
0.12119101732969284,
-0.08105645328760147,
0.06721293181180954,
0.14104531705379486,
-0.041775159537792206,
0.07223617285490036,
0.01619495265185833,
0.03277827426791191,
-0.07142994552850723,
-0.10884320735931396,
-0.12615178525447845,
-0.07527200132608414,
0.04450863227248192,
0.12061559408903122,
0.03676920756697655,
0.27065765857696533,
0.048240192234516144,
-0.10681982338428497,
-0.0293668732047081,
0.061767272651195526,
0.11888612806797028,
-0.08622700721025467,
0.0017538947286084294,
0.031596213579177856,
-0.018759088590741158,
0.0329488106071949,
0.19924931228160858,
-0.23063315451145172,
-0.08740951120853424,
0.15257492661476135,
0.045990701764822006,
0.06472707539796829,
-0.09087076783180237,
7.706108817728818e-7,
-0.0702865943312645,
0.09343021363019943,
0.0529911033809185,
0.1771959364414215,
-0.0019621967803686857,
0.02677806094288826,
-0.23022015392780304,
-0.00950239971280098,
0.08950604498386383,
0.11083418130874634,
0.2384880781173706,
0.002873157849535346,
-0.05043686926364899,
0.06468519568443298,
0.008767690509557724,
-0.09201774001121521,
-0.04062390699982643,
-0.06457830965518951,
0.06637915223836899,
-0.03028075397014618,
-0.15169405937194824,
0.13621097803115845,
-0.06709219515323639,
0.04643440619111061,
-0.007908008992671967,
-0.12429128587245941,
0.041324689984321594,
-0.020388981327414513,
0.11911924183368683,
0.01257256604731083,
-0.003501069499179721,
-0.008470261469483376,
-0.06716165691614151,
-0.009649512358009815,
0.03202905133366585,
0.10064774006605148,
-0.17184162139892578,
-0.10009182244539261,
0.047659046947956085,
-0.012240945361554623,
0.06657030433416367,
-0.003915648441761732,
-0.1190299466252327,
0.14366237819194794,
0.06999852508306503,
-0.042417947202920914,
-0.05464400351047516,
-0.07463229447603226,
0.02063615620136261,
0.04697343707084656,
0.048687539994716644,
0.028318023309111595,
0.0672820508480072,
0.033482011407613754,
0.008664632216095924,
-0.11308342218399048,
0.010550648905336857,
-0.09940105676651001,
0.11376479268074036,
0.08501647412776947,
-0.047611966729164124,
-0.11046586185693741,
0.06815633177757263,
-0.05260690674185753,
0.18695834279060364,
0.02040235698223114,
0.054275672882795334,
2.2544633962865356e-34,
-0.024289747700095177,
-0.03912446275353432,
0.00628597242757678,
-0.13691455125808716,
-0.02912304364144802,
-0.006034752354025841,
0.08223128318786621,
-0.1282036453485489,
-0.006637307815253735,
-0.18257330358028412,
-0.04536998271942139
] |
https://github.com/huggingface/datasets/issues/2350 | `FaissIndex.save` throws error on GPU | Just in case, this is a workaround that I use in my code and it seems to do the job.
```python
if use_gpu_index:
data["train"]._indexes["text_emb"].faiss_index = faiss.index_gpu_to_cpu(data["train"]._indexes["text_emb"].faiss_index)
``` | ## Describe the bug
After training an index with a factory string `OPQ16_128,IVF512,PQ32` on GPU, `.save_faiss_index` throws this error.
```
File "index_wikipedia.py", line 119, in <module>
data["train"].save_faiss_index("text_emb", index_save_path)
File "/home/vlialin/miniconda3/envs/cat/lib/python3.8/site-packages/datasets/search.py", line 470, in save_faiss_index
index.save(file)
File "/home/vlialin/miniconda3/envs/cat/lib/python3.8/site-packages/datasets/search.py", line 334, in save
faiss.write_index(index, str(file))
File "/home/vlialin/miniconda3/envs/cat/lib/python3.8/site-packages/faiss/swigfaiss_avx2.py", line 5654, in write_index
return _swigfaiss.write_index(*args)
RuntimeError: Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) at /root/miniconda3/conda-bld/faiss-pkg_1613235005464/work/faiss/impl/index_write.cpp:453: don't know how to serialize this type of index
```
## Steps to reproduce the bug
Any dataset will do, I just selected a familiar one.
```python
import numpy as np
import datasets
INDEX_STR = "OPQ16_128,IVF512,PQ32"
INDEX_SAVE_PATH = "will_not_save.faiss"
data = datasets.load_dataset("Fraser/news-category-dataset", split=f"train[:10000]")
def encode(item):
return {"text_emb": np.random.randn(768).astype(np.float32)}
data = data.map(encode)
data.add_faiss_index(column="text_emb", string_factory=INDEX_STR, train_size=10_000, device=0)
data.save_faiss_index("text_emb", INDEX_SAVE_PATH)
```
## Expected results
Saving the index
## Actual results
Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) ... don't know how to serialize this type of index
## Environment info
- `datasets` version: 1.6.2
- Platform: Linux-4.15.0-142-generic-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): 2.2.0 (False)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No
I will be proposing a fix in a couple of minutes | 27 | `FaissIndex.save` throws error on GPU
## Describe the bug
After training an index with a factory string `OPQ16_128,IVF512,PQ32` on GPU, `.save_faiss_index` throws this error.
```
File "index_wikipedia.py", line 119, in <module>
data["train"].save_faiss_index("text_emb", index_save_path)
File "/home/vlialin/miniconda3/envs/cat/lib/python3.8/site-packages/datasets/search.py", line 470, in save_faiss_index
index.save(file)
File "/home/vlialin/miniconda3/envs/cat/lib/python3.8/site-packages/datasets/search.py", line 334, in save
faiss.write_index(index, str(file))
File "/home/vlialin/miniconda3/envs/cat/lib/python3.8/site-packages/faiss/swigfaiss_avx2.py", line 5654, in write_index
return _swigfaiss.write_index(*args)
RuntimeError: Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) at /root/miniconda3/conda-bld/faiss-pkg_1613235005464/work/faiss/impl/index_write.cpp:453: don't know how to serialize this type of index
```
## Steps to reproduce the bug
Any dataset will do, I just selected a familiar one.
```python
import numpy as np
import datasets
INDEX_STR = "OPQ16_128,IVF512,PQ32"
INDEX_SAVE_PATH = "will_not_save.faiss"
data = datasets.load_dataset("Fraser/news-category-dataset", split=f"train[:10000]")
def encode(item):
return {"text_emb": np.random.randn(768).astype(np.float32)}
data = data.map(encode)
data.add_faiss_index(column="text_emb", string_factory=INDEX_STR, train_size=10_000, device=0)
data.save_faiss_index("text_emb", INDEX_SAVE_PATH)
```
## Expected results
Saving the index
## Actual results
Error in void faiss::write_index(const faiss::Index*, faiss::IOWriter*) ... don't know how to serialize this type of index
## Environment info
- `datasets` version: 1.6.2
- Platform: Linux-4.15.0-142-generic-x86_64-with-glibc2.10
- Python version: 3.8.8
- PyTorch version (GPU?): 1.8.1+cu111 (True)
- Tensorflow version (GPU?): 2.2.0 (False)
- Using GPU in script?: Yes
- Using distributed or parallel set-up in script?: No
I will be proposing a fix in a couple of minutes
Just in case, this is a workaround that I use in my code and it seems to do the job.
```python
if use_gpu_index:
data["train"]._indexes["text_emb"].faiss_index = faiss.index_gpu_to_cpu(data["train"]._indexes["text_emb"].faiss_index)
``` | [
0.05467095971107483,
0.10053467005491257,
-0.06569972634315491,
0.11240299791097641,
0.13102173805236816,
0.14471784234046936,
0.1311890184879303,
0.32872363924980164,
-0.07217707484960556,
-0.20688048005104065,
-0.0043802810832858086,
-0.20892448723316193,
0.03486828878521919,
0.013552417047321796,
-0.00944159459322691,
0.09911613911390305,
0.07459592074155807,
-0.0636904388666153,
0.05687584728002548,
-0.09523123502731323,
-0.09120035916566849,
-0.03439506143331528,
0.11444498598575592,
-0.08071374893188477,
-0.005180892068892717,
-0.1468576192855835,
-0.11576876789331436,
0.09473375976085663,
-0.09258697926998138,
-0.05504158139228821,
0.12998709082603455,
0.10167011618614197,
0.10798481851816177,
0.2207554578781128,
0.000004879258085566107,
-0.039742883294820786,
0.09586261212825775,
-0.04301959276199341,
0.0005303089274093509,
-0.0636301264166832,
0.1768655627965927,
0.06326942145824432,
-0.035904284566640854,
-0.00012229481944814324,
0.04796385020017624,
-0.10369252413511276,
0.007863776758313179,
0.08289605379104614,
-0.027682412415742874,
0.01700212061405182,
0.048934206366539,
-0.010052252560853958,
0.17317147552967072,
-0.03035736083984375,
0.08228843659162521,
-0.013208548538386822,
0.03308958560228348,
-0.07944786548614502,
-0.24052253365516663,
0.05288685858249664,
-0.044790759682655334,
-0.03156497702002525,
-0.07579091936349869,
-0.10337293893098831,
-0.30720674991607666,
0.06211673468351364,
0.02237054705619812,
-0.1910473108291626,
0.09076041728258133,
0.07251565158367157,
-0.049236468970775604,
-0.10497628897428513,
-0.20862463116645813,
0.041303958743810654,
-0.07430623471736908,
-0.14060288667678833,
0.08651124686002731,
0.2663666903972626,
-0.08082792162895203,
-0.012973212637007236,
0.28627750277519226,
-0.04739132896065712,
0.10876552015542984,
0.0702996701002121,
-0.02036527544260025,
-0.1571204513311386,
-0.05288471281528473,
0.03910508006811142,
0.028555097058415413,
-0.1573157161474228,
0.08001521974802017,
0.026985080912709236,
-0.0950535237789154,
-0.19026248157024384,
0.005494857672601938,
0.0014862032840028405,
-0.1976003795862198,
-0.24088320136070251,
-0.016586709767580032,
-0.0428156740963459,
-0.20846526324748993,
0.004374451003968716,
0.13293719291687012,
0.04541728273034096,
-0.09228230267763138,
0.11338648945093155,
-0.017990712076425552,
-0.16226159036159515,
0.07575999945402145,
-0.045484963804483414,
-0.10889997333288193,
0.03275854513049126,
-0.030279889702796936,
0.05810917913913727,
-0.026543045416474342,
-0.039659060537815094,
0.16506187617778778,
-0.010193846188485622,
-0.17269618809223175,
0.09398290514945984,
-0.11407990753650665,
0.16408497095108032,
0.08561363071203232,
0.14873583614826202,
0.08370036631822586,
-0.003129242453724146,
0.091083824634552,
0.15201304852962494,
-0.015415726229548454,
0.16990450024604797,
-0.009810168296098709,
0.13196039199829102,
0.1041383445262909,
-0.1166543960571289,
0.04833594709634781,
-0.105019211769104,
0.002290616510435939,
-0.15261515974998474,
-0.030347300693392754,
-0.00822641234844923,
0.04572318121790886,
-0.03191157802939415,
0.1097012311220169,
0.13923896849155426,
0.12721651792526245,
0.05738465115427971,
0.1947258561849594,
-0.11413080990314484,
0.049456637352705,
0.00018578814342617989,
0.03272252529859543,
0.13456261157989502,
-0.29142045974731445,
-0.001737892278470099,
0.08049526810646057,
-0.013468788005411625,
0.2203233540058136,
-0.12842132151126862,
0.048549454659223557,
-0.07933585345745087,
0.008893225342035294,
0.032195545732975006,
0.010051916353404522,
-0.16430141031742096,
0.04181027039885521,
0.12323420494794846,
-0.04581845551729202,
0.031040918081998825,
0.08913396298885345,
0.15110841393470764,
0.22540688514709473,
0.20510421693325043,
-0.06433414667844772,
-0.07038170844316483,
-0.026307741180062294,
0.21606862545013428,
-0.12902958691120148,
0.1752149909734726,
-0.2115994393825531,
-0.17347078025341034,
0.02657085470855236,
-0.26687783002853394,
0.08874627947807312,
-0.04039939120411873,
-0.027188953012228012,
-0.018130995333194733,
0.06411232799291611,
-0.0675608217716217,
-0.00006460800796048716,
-0.12501399219036102,
-0.09637001901865005,
0.02824445813894272,
-0.0764220729470253,
-0.2442568987607956,
-0.005093878135085106,
-0.11306411772966385,
-0.08903750032186508,
-0.2104284167289734,
-0.06761632114648819,
-0.14487552642822266,
0.1326955109834671,
-0.19125106930732727,
0.0024642664939165115,
0.049978453665971756,
0.10600271075963974,
0.14058920741081238,
-0.19029965996742249,
-0.03671115264296532,
-0.15951839089393616,
-0.17526204884052277,
-0.18241873383522034,
0.03376290574669838,
-0.0013538890052586794,
-0.11967382580041885,
-0.0013342720922082663,
-0.06472469121217728,
-0.04040153697133064,
-0.10808587819337845,
-0.1129678264260292,
0.22868748009204865,
-0.12252714484930038,
0.10859835147857666,
-0.1324474811553955,
-0.09435782581567764,
-0.06772486865520477,
-0.05817509442567825,
-0.05563308298587799,
-0.06587604433298111,
-0.060109563171863556,
0.11453883349895477,
-0.14742347598075867,
-0.07561767846345901,
0.05076991394162178,
0.018493887037038803,
0.00540136406198144,
-0.2216005176305771,
-0.007525741588324308,
-0.20264941453933716,
0.0498330183327198,
0.0208616703748703,
-0.06095999851822853,
0.1485462486743927,
-0.04815647751092911,
-0.04924711957573891,
-0.13738645613193512,
-0.10948608815670013,
0.030484730377793312,
0.007784818299114704,
0.00647438270971179,
0.11180861294269562,
0.20658449828624725,
0.03146805241703987,
-0.0957593247294426,
-0.04454117268323898,
0.06974279880523682,
-0.025672031566500664,
0.03772581368684769,
0.044772326946258545,
-0.2322210818529129,
-0.014653940685093403,
0.22026470303535461,
-0.08485456556081772,
0.10549352318048477,
0.03852313011884689,
0.042241837829351425,
0.015669358894228935,
0.01508985087275505,
-0.1501098871231079,
0.15852022171020508,
0.163896381855011,
-0.16482189297676086,
-0.03564544767141342,
0.006372084375470877,
-0.054131001234054565,
0.10170388966798782,
-0.14474038779735565,
0.09809557348489761,
0.046964019536972046,
0.04506006836891174,
0.15397411584854126,
-0.21039272844791412,
0.0947151780128479,
0.08221758157014847,
-0.06725044548511505,
0.018490437418222427,
0.2944287061691284,
0.02245834283530712,
0.06113536283373833,
-0.1754583865404129,
0.06596150994300842,
-0.18130841851234436,
-0.05496658384799957,
0.11533726006746292,
-0.07971875369548798,
-0.08658112585544586,
-0.04443604499101639,
-0.08123278617858887,
-0.03374968841671944,
0.09692016988992691,
0.004275664687156677,
-0.08224393427371979,
0.07920968532562256,
-0.04925243556499481,
-0.10443483293056488,
0.04463581368327141,
-0.01997215300798416,
0.17658431828022003,
0.07327625900506973,
-0.07384755462408066,
-0.0617644302546978,
0.03156006336212158,
-0.13014566898345947,
-0.14558857679367065,
0.0821150615811348,
0.004019168205559254,
0.034753695130348206,
-0.12011821568012238,
-0.12055117636919022,
0.023850256577134132,
0.019119398668408394,
-0.04799285903573036,
-0.04693498834967613,
-0.12455596029758453,
0.10560662299394608,
0.01452474482357502,
-0.01157084759324789,
-0.2843829095363617,
-0.11356981843709946,
0.05390774458646774,
-0.13253328204154968,
0.19516918063163757,
0.09682142734527588,
-0.09518423676490784,
-0.07215990126132965,
0.12405960261821747,
-0.22700321674346924,
-0.16169074177742004,
0.0007284884923137724,
0.12617620825767517,
-0.01227481383830309,
-0.2045568823814392,
0.0056345416232943535,
-0.016072029247879982,
-0.03468186408281326,
0.12173297256231308,
-0.08051380515098572,
0.2281811535358429,
-0.015943191945552826,
0.02961162105202675,
-0.06698647141456604,
0.04706607386469841,
0.054229091852903366,
-0.11463607847690582,
-0.07487811893224716,
-0.13279332220554352,
0.1648091971874237,
0.023371215909719467,
0.02039092406630516,
-0.04376344755291939,
-0.17838828265666962,
0.1615084707736969,
0.1552909016609192,
0.08263885229825974,
-0.12706583738327026,
-0.19870424270629883,
0.1750233769416809,
0.10841614753007889,
0.0718914121389389,
-0.17342664301395416,
-0.26675936579704285,
-0.05479871481657028,
0.006373084150254726,
-0.14447422325611115,
0.013292167335748672,
-0.1052095964550972,
-0.12223170697689056,
0.09200309962034225,
0.045437041670084,
0.2666049003601074,
0.034938979893922806,
-0.004790504463016987,
-0.05934274569153786,
-0.0762099027633667,
0.13671495020389557,
0.3104865550994873,
0.11589749157428741,
0.053021810948848724,
0.10563959181308746,
0.010927779600024223,
0.1681079864501953,
0.09792709350585938,
0.011818598955869675,
-0.22766786813735962,
-0.01973072439432144,
0.010934260673820972,
0.0028412037063390017,
0.22306357324123383,
0.14979255199432373,
0.05417981371283531,
0.16365975141525269,
0.17890247702598572,
0.19009661674499512,
0.002042675158008933,
-0.06898967921733856,
0.1598259061574936,
0.15085984766483307,
-0.1331053525209427,
-0.07379468530416489,
0.12711985409259796,
0.06010648235678673,
-0.03623061254620552,
0.1005193218588829,
-0.004906787071377039,
-0.003919311333447695,
0.16609901189804077,
-0.11524247378110886,
0.06773973256349564,
-0.16601786017417908,
-0.04445298761129379,
-0.13819149136543274,
-0.34133151173591614,
-0.021191583946347237,
-0.06979069113731384,
0.09934967011213303,
-0.03970751911401749,
0.03739674761891365,
-0.09348428249359131,
-0.15901069343090057,
0.08671068400144577,
-0.05266271159052849,
0.027179500088095665,
-0.04471046105027199,
-0.04151899740099907,
0.06521807610988617,
-0.02596340887248516,
-0.020369283854961395,
0.05965188890695572,
0.04007330164313316,
0.03232701122760773,
-0.005312369205057621,
-0.20195122063159943,
-0.003206069115549326,
0.09493596106767654,
-0.06729631870985031,
-0.041268110275268555,
-0.17771345376968384,
-0.15298110246658325,
-0.1472673863172531,
0.08959299325942993,
0.15654531121253967,
-0.1402846723794937,
-0.18671277165412903,
0.010638467967510223,
-0.030963797122240067,
0.0069368137046694756,
0.0823269635438919,
-0.054437264800071716,
-0.0722486823797226,
-0.03740040585398674,
0.2743980586528778,
0.2614070773124695,
-0.060115378350019455,
-0.1732046902179718,
0.1937428116798401,
0.06387533992528915,
0.01374854613095522,
0.1615481674671173,
-0.17830722033977509,
0.13024403154850006,
-0.016260556876659393,
-0.10936316847801208,
0.05081336945295334,
-0.055033110082149506,
0.018437406048178673,
-0.1448531448841095,
-0.11833737045526505,
0.012371508404612541,
-0.06413721293210983,
-0.12277578562498093,
-0.08396197855472565,
0.04480820521712303,
-0.0754719078540802,
-0.10792522132396698,
-0.2333793193101883,
-0.02297814004123211,
0.211374893784523,
0.01950439065694809,
0.04322228580713272,
-0.035987935960292816,
0.0023184095043689013,
0.010031579993665218,
-0.056539684534072876,
0.006939787417650223,
0.003475997829809785,
0.3065078854560852,
-0.1087111383676529,
0.20406320691108704,
-0.02661115862429142,
-0.19048207998275757,
0.1331188976764679,
0.07308400422334671,
0.06143973022699356,
-0.12203691154718399,
-0.021518457680940628,
-0.038458459079265594,
-0.011328142136335373,
-0.027160052210092545,
0.024775827303528786,
0.11941938102245331,
-0.09457774460315704,
0.09626278281211853,
0.0597248338162899,
0.000544569396879524,
-0.18845021724700928,
0.010505341924726963,
-0.22464913129806519,
0.03209494799375534,
-0.03990498185157776,
-0.16384676098823547,
0.08737528324127197,
0.1584950089454651,
-0.026232775300741196,
0.13235563039779663,
-0.1291104406118393,
0.12040838599205017,
0.05443153157830238,
-0.12450627982616425,
-0.06371454894542694,
0.12064416706562042,
0.18426062166690826,
0.14729918539524078,
0.2922760844230652,
0.08626457303762436,
0.013504419475793839,
-0.13799843192100525,
-0.02568846009671688,
0.1170407310128212,
-0.04866868630051613,
-0.009224789217114449,
-0.11833079904317856,
-0.006916915066540241,
-0.21404476463794708,
-0.09688229858875275,
0.12078544497489929,
-0.016439467668533325,
0.015590098686516285,
0.014421887695789337,
-0.1892220675945282,
-0.11314205825328827,
-0.1184866726398468,
0.07659663259983063,
0.07206744700670242,
-0.10068169236183167,
-0.03588011488318443,
0.01929699443280697,
-2.3623858540597664e-32,
-0.0523918978869915,
-0.11560511589050293,
-0.011852003633975983,
-0.07460282742977142,
-0.16439707577228546,
0.06598100811243057,
-0.13684934377670288,
-0.0064906408078968525,
0.17844204604625702,
0.041731782257556915,
0.07760614156723022,
-0.004757590591907501,
-0.03136426955461502,
0.08494377136230469,
-0.04048125818371773,
0.024944979697465897,
0.008356488309800625,
-0.030702972784638405,
0.020968547090888023,
-0.06450876593589783,
0.08224204927682877,
-0.02116314135491848,
-0.014224295504391193,
0.059492070227861404,
-0.010667470283806324,
0.028794264420866966,
0.024761933833360672,
-0.11104860156774521,
0.11085163801908493,
0.0709475502371788,
-0.11225835978984833,
-0.024780798703432083,
-0.005409972742199898,
0.0838964581489563,
0.018967831507325172,
-0.04762876778841019,
-0.0006526088691316545,
-0.031129494309425354,
-0.05257390812039375,
-0.07315361499786377,
-0.07688573002815247,
-0.03258347138762474,
0.02991572953760624,
0.14725272357463837,
-0.04329988360404968,
0.04844535142183304,
0.019817376509308815,
-0.0036721995566040277,
-0.05361608788371086,
-0.027853725478053093,
-0.06671459227800369,
-0.03482998162508011,
-0.016797896474599838,
0.25289952754974365,
0.12020491063594818,
-0.07420387864112854,
0.18304291367530823,
-0.031869076192379,
-0.016622593626379967,
-0.0893121287226677,
-0.05139458179473877,
-0.011976976878941059,
0.18780842423439026,
0.062044985592365265,
-0.09863823652267456,
0.09883720427751541,
0.3389059901237488,
0.06207972392439842,
0.1973116248846054,
0.005707224830985069,
-0.04169255122542381,
0.03324636071920395,
-0.10609352588653564,
0.1812770813703537,
-0.22178013622760773,
0.07331576943397522,
0.037729185074567795,
0.03355008363723755,
-0.07912138849496841,
-0.052559468895196915,
0.036770425736904144,
-0.010824878700077534,
0.06674787402153015,
-0.012731757946312428,
-0.18683144450187683,
0.26248958706855774,
-0.007131672464311123,
0.09150325506925583,
0.007334700785577297,
-0.03335140272974968,
0.05967169255018234,
-0.028924230486154556,
0.04763852432370186,
-0.1392587423324585,
-0.010569215752184391,
-0.044696539640426636,
0.02331804856657982,
0.07125657796859741,
-0.06228860095143318,
-0.023632070049643517,
-0.04704490303993225,
-0.09077494591474533,
0.044595617800951004,
0.08288660645484924,
0.17687489092350006,
0.24950037896633148,
0.06304674595594406,
0.20493897795677185,
-0.1631031185388565,
0.10181064158678055,
-0.02781553380191326,
0.007068608421832323,
0.03021397814154625,
0.048492997884750366,
0.14684605598449707,
-0.0905606672167778,
0.11091825366020203,
-0.0818014144897461,
0.23527754843235016,
0.29904904961586,
0.01831219717860222,
-0.29910770058631897,
0.03770735487341881,
0.2341834157705307,
0.007432880811393261,
-0.04283120483160019,
-0.1481684297323227,
0.10519059002399445,
0.06796151399612427,
-0.01542030368000269,
0.10982049256563187,
0.09977896511554718,
7.08061065779475e-7,
-0.0983487069606781,
0.36291763186454773,
-0.06357061117887497,
-0.08960393816232681,
-0.13217006623744965,
0.20893609523773193,
-0.1606237292289734,
0.06301843374967575,
-0.07453910261392593,
0.3402651846408844,
0.12211032956838608,
0.004043798893690109,
0.025554729625582695,
-0.06885536015033722,
0.04828454181551933,
0.10143931210041046,
0.03839704021811485,
0.14574187994003296,
-0.1109524667263031,
0.0292973630130291,
0.11746057868003845,
-0.017212752252817154,
0.05732075497508049,
-0.060400910675525665,
0.12629461288452148,
0.05746205896139145,
0.040403977036476135,
-0.0371188260614872,
0.039067599922418594,
-0.19622555375099182,
-0.07318611443042755,
0.20448791980743408,
0.04302635043859482,
-0.0039361915551126,
-0.014636228792369366,
-0.19594301283359528,
-0.1857926845550537,
-0.024687524884939194,
-0.11392616480588913,
-0.021334469318389893,
0.06404589116573334,
-0.010161685757339,
0.0971328616142273,
-0.18423131108283997,
-0.028828255832195282,
0.2999226450920105,
-0.006427799817174673,
0.03737734258174896,
-0.08506940305233002,
0.10043622553348541,
-0.15904395282268524,
-0.013335437513887882,
0.04578138142824173,
0.055943865329027176,
-0.007264023646712303,
0.17621424794197083,
-0.10825814306735992,
-0.0505412258207798,
0.2507079839706421,
-0.10007619857788086,
0.039992768317461014,
-0.2701044976711273,
-0.047681864351034164,
0.05553363636136055,
0.25890815258026123,
-0.10291227698326111,
-0.08531241863965988,
1.1985640014290259e-34,
-0.07846496999263763,
-0.04674898460507393,
-0.06064504384994507,
0.05151841416954994,
-0.014669456519186497,
-0.14886096119880676,
0.16900686919689178,
-0.07911970466375351,
0.10804404318332672,
-0.028879739344120026,
-0.1662438064813614
] |
https://github.com/huggingface/datasets/issues/2347 | Add an API to access the language and pretty name of a dataset | Hi ! With @bhavitvyamalik we discussed about having something like
```python
from datasets import load_dataset_card
dataset_card = load_dataset_card("squad")
print(dataset_card.metadata.pretty_name)
# Stanford Question Answering Dataset (SQuAD)
print(dataset_card.metadata.languages)
# ["en"]
```
What do you think ?
I don't know if you already have a way to load the model tags in `transformers` but we can agree on the API to have something consistent.
Also note that the pretty name would only be used to show users something prettier than a dataset id, but in the end the source of truth will stay the dataset id (here `squad`). | It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts. | 95 | Add an API to access the language and pretty name of a dataset
It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts.
Hi ! With @bhavitvyamalik we discussed about having something like
```python
from datasets import load_dataset_card
dataset_card = load_dataset_card("squad")
print(dataset_card.metadata.pretty_name)
# Stanford Question Answering Dataset (SQuAD)
print(dataset_card.metadata.languages)
# ["en"]
```
What do you think ?
I don't know if you already have a way to load the model tags in `transformers` but we can agree on the API to have something consistent.
Also note that the pretty name would only be used to show users something prettier than a dataset id, but in the end the source of truth will stay the dataset id (here `squad`). | [
-0.03650820255279541,
0.2693895399570465,
-0.017373843118548393,
0.05773035064339638,
0.1212429329752922,
-0.0066756694577634335,
0.012033902108669281,
-0.014138356782495975,
-0.07485784590244293,
0.22183184325695038,
-0.042343731969594955,
0.2236001044511795,
-0.014308609999716282,
0.0884525403380394,
0.12454292923212051,
-0.02916344441473484,
-0.192992702126503,
-0.13419130444526672,
0.08024768531322479,
0.008613063022494316,
-0.04933658614754677,
0.06352268159389496,
0.15445517003536224,
0.13283929228782654,
0.15170012414455414,
0.04406584054231644,
-0.052753422409296036,
-0.10272397100925446,
0.02533428929746151,
-0.048980411142110825,
0.011316235177218914,
0.17139407992362976,
0.07004324346780777,
0.06813672184944153,
0.000005427510131994495,
0.043744493275880814,
-0.0304108913987875,
0.011975777335464954,
-0.13450413942337036,
-0.2546014189720154,
0.10487237572669983,
-0.054164133965969086,
0.08692993223667145,
-0.11663732677698135,
-0.06579029560089111,
-0.0332818403840065,
0.22802439332008362,
-0.22628453373908997,
0.048462510108947754,
-0.09657692909240723,
0.04195558652281761,
-0.04859307035803795,
-0.17915058135986328,
-0.16533125936985016,
-0.04683370143175125,
0.17934967577457428,
-0.049534231424331665,
0.09501049667596817,
-0.08431769907474518,
0.07163860648870468,
0.022792737931013107,
0.06486547738313675,
0.04999992251396179,
-0.02372835949063301,
-0.13676980137825012,
-0.056296151131391525,
-0.24685229361057281,
0.002921122359111905,
0.0824604332447052,
0.056970007717609406,
0.02295421063899994,
-0.0333731509745121,
-0.20494355261325836,
0.058917086571455,
0.17197047173976898,
-0.004608066286891699,
-0.0585828498005867,
-0.09034205228090286,
-0.09174556285142899,
0.03075098991394043,
0.11695708334445953,
0.034623097628355026,
0.046645984053611755,
-0.027897287160158157,
0.06945521384477615,
0.1994612216949463,
-0.09799948334693909,
0.11637581139802933,
-0.02037176489830017,
-0.11853379756212234,
0.0968366265296936,
0.005364463198930025,
-0.07486983388662338,
0.18252761662006378,
0.015018066391348839,
0.04054922237992287,
-0.04018625617027283,
-0.1091650053858757,
0.031693361699581146,
0.10403953492641449,
0.003083521733060479,
0.08823437988758087,
-0.13940685987472534,
0.11163041740655899,
0.0622636079788208,
0.026260346174240112,
0.06584044545888901,
-0.02760477364063263,
-0.09698473662137985,
-0.1775442510843277,
0.057347867637872696,
0.05184158682823181,
-0.08236496895551682,
-0.09258665889501572,
0.037998542189598083,
0.24109044671058655,
-0.156793475151062,
0.2195364534854889,
-0.06417369842529297,
-0.005094229243695736,
0.05502641573548317,
-0.050682056695222855,
-0.07021557539701462,
0.0968843474984169,
-0.001179874292574823,
0.020169714465737343,
-0.02358587086200714,
-0.2637645900249481,
0.07396075874567032,
-0.10332495719194412,
-0.029177213087677956,
-0.07082995772361755,
0.036558300256729126,
0.044629476964473724,
0.1726893037557602,
0.2573409974575043,
0.005838824901729822,
-0.11891242116689682,
0.12603190541267395,
-0.05390336364507675,
0.23335248231887817,
-0.0535677894949913,
0.14892593026161194,
-0.17773663997650146,
0.08221051841974258,
0.07424373924732208,
0.016667557880282402,
-0.11711523681879044,
-0.0719069093465805,
-0.0191010981798172,
-0.03893090784549713,
0.15031380951404572,
-0.25639423727989197,
0.13157176971435547,
-0.14785045385360718,
-0.032197415828704834,
-0.06947080045938492,
0.13139604032039642,
-0.2815166711807251,
-0.09670866280794144,
0.21141667664051056,
0.015062356367707253,
0.057410139590501785,
0.14422358572483063,
0.01955927349627018,
0.16633081436157227,
-0.06320676952600479,
-0.13180816173553467,
0.10023615509271622,
-0.12657572329044342,
-0.2719135880470276,
-0.22358116507530212,
-0.021416785195469856,
-0.0646437257528305,
-0.06666608899831772,
0.12487976253032684,
0.09481732547283173,
-0.12220350652933121,
0.031096525490283966,
0.029807312414050102,
0.06446845829486847,
-0.1026448979973793,
0.09270111471414566,
0.11994720995426178,
0.20003017783164978,
0.13168545067310333,
-0.11762139946222305,
0.2587070167064667,
-0.025200707837939262,
-0.055057719349861145,
-0.023416219279170036,
-0.06746271252632141,
-0.060919687151908875,
0.2691340744495392,
0.08999458700418472,
-0.06599073857069016,
0.09752209484577179,
0.08121341466903687,
0.19482770562171936,
-0.10292360186576843,
-0.1916462928056717,
-0.03945111483335495,
-0.013068978674709797,
-0.15132349729537964,
-0.00736423721536994,
-0.17020130157470703,
-0.20107196271419525,
-0.006975883152335882,
-0.07980234175920486,
0.05256074294447899,
-0.09061279892921448,
-0.07115508615970612,
0.1443680077791214,
0.049591515213251114,
-0.14893339574337006,
0.01991223357617855,
0.09644944965839386,
0.08978679776191711,
0.08951539546251297,
0.03565254434943199,
0.006348342634737492,
-0.05990486219525337,
-0.06747016310691833,
-0.03157791867852211,
-0.01620086468756199,
0.004296653438359499,
0.1829630434513092,
0.03478129208087921,
-0.008822265081107616,
0.07442435622215271,
-0.03801852837204933,
-0.07836522161960602,
0.032030411064624786,
0.04350641742348671,
0.09553161263465881,
0.08158235996961594,
0.05053013190627098,
0.09842364490032196,
0.08705096691846848,
0.07595831155776978,
-0.04506031051278114,
-0.01876126416027546,
-0.08487777411937714,
0.008026964962482452,
-0.20069387555122375,
0.15551036596298218,
-0.09615983068943024,
0.06421775370836258,
0.026254629716277122,
-0.08881796151399612,
0.3680308163166046,
0.1285421997308731,
-0.09017588198184967,
-0.0455954484641552,
0.08990731090307236,
0.05853620544075966,
0.022593775764107704,
-0.07867138832807541,
0.006446202285587788,
-0.1987942010164261,
0.29072144627571106,
0.03894464299082756,
0.04566493257880211,
0.0887218788266182,
0.2966732978820801,
-0.011887306347489357,
0.055085521191358566,
0.01070900447666645,
-0.00830969586968422,
0.07977483421564102,
-0.10755878686904907,
-0.046274613589048386,
0.015325328335165977,
-0.059307437390089035,
-0.007533261086791754,
-0.2243327498435974,
-0.028700627386569977,
0.004439658485352993,
0.06219221651554108,
-0.0481596477329731,
-0.15001870691776276,
-0.10839545726776123,
0.067844919860363,
-0.04415448382496834,
0.20755338668823242,
0.17477749288082123,
-0.026201101019978523,
-0.03208228573203087,
-0.1670977622270584,
-0.11299869418144226,
-0.08171440660953522,
0.026563992723822594,
0.026627380400896072,
-0.3084859251976013,
0.0016656407387927175,
-0.09615647792816162,
-0.11151788383722305,
0.031034527346491814,
-0.17030036449432373,
-0.14191362261772156,
0.11862944811582565,
-0.0791856124997139,
0.134874626994133,
0.040283795446157455,
-0.1500599980354309,
-0.12008176743984222,
0.19315606355667114,
-0.08142293989658356,
-0.055317871272563934,
-0.029426854103803635,
-0.11773526668548584,
0.037324804812669754,
0.08646378666162491,
-0.07356991618871689,
0.1310291886329651,
0.03414222598075867,
-0.06034286692738533,
-0.02671869285404682,
0.10698701441287994,
0.09656959772109985,
0.12908798456192017,
-0.15211817622184753,
0.1789170205593109,
-0.15761889517307281,
-0.13525663316249847,
-0.015450680628418922,
-0.2610262632369995,
-0.09546942263841629,
0.16559140384197235,
0.008014632388949394,
-0.008363057859241962,
0.1202412024140358,
0.08937894552946091,
0.09586452692747116,
0.11027482151985168,
0.007124816067516804,
-0.13623033463954926,
-0.015894215553998947,
-0.0070602563209831715,
-0.09785235673189163,
0.0395238995552063,
0.016678467392921448,
-0.09293811023235321,
0.12016487121582031,
-0.13452017307281494,
0.005264276638627052,
0.03443429619073868,
-0.12320474535226822,
-0.017001235857605934,
-0.0434596911072731,
0.11893116682767868,
0.09621930867433548,
0.03567599505186081,
0.0623675100505352,
0.02162744291126728,
-0.034629981964826584,
-0.13543443381786346,
0.18503199517726898,
-0.22123318910598755,
-0.017343461513519287,
0.06019130349159241,
-0.05071638524532318,
-0.01775101013481617,
-0.14387373626232147,
0.01315100584179163,
-0.02947298064827919,
0.22946681082248688,
0.1420917809009552,
0.1936173141002655,
0.01621510274708271,
-0.17809344828128815,
-0.11894108355045319,
-0.03240826353430748,
0.053887609392404556,
-0.07112205773591995,
-0.2982637882232666,
-0.09950911998748779,
-0.016739388927817345,
0.046164486557245255,
0.10440952330827713,
0.12752045691013336,
-0.10034651309251785,
-0.10559666901826859,
0.024309532716870308,
0.16543853282928467,
-0.11785911023616791,
0.002013326855376363,
-0.11019900441169739,
-0.10065125674009323,
-0.004881737288087606,
-0.10815947502851486,
-0.17074240744113922,
-0.013152322731912136,
-0.032280951738357544,
-0.06025727465748787,
0.06661486625671387,
0.02288682572543621,
-0.07472027093172073,
0.14249923825263977,
-0.0584360733628273,
-0.03954051434993744,
-0.01643267646431923,
-0.10328048467636108,
-0.13880924880504608,
-0.07204186916351318,
0.014569498598575592,
0.16174954175949097,
0.15215282142162323,
-0.04119562357664108,
-0.021537456661462784,
0.02497878484427929,
-0.06449217349290848,
-0.10516369342803955,
-0.09577351063489914,
0.24163012206554413,
-0.059152230620384216,
-0.17694157361984253,
-0.04562712460756302,
0.055305201560258865,
-0.025388434529304504,
0.043490245938301086,
-0.06932943314313889,
-0.008730781264603138,
0.20772573351860046,
0.32486870884895325,
-0.06507531553506851,
-0.07328326255083084,
0.12760968506336212,
0.0393664576113224,
0.08249423652887344,
-0.004059803206473589,
0.220323845744133,
-0.1749459058046341,
0.05232252553105354,
0.10303580015897751,
-0.1799391508102417,
0.16988542675971985,
-0.18789726495742798,
-0.2676844596862793,
-0.03590479493141174,
-0.03761487454175949,
0.05720009654760361,
0.053640518337488174,
0.09159519523382187,
0.09758235514163971,
0.01921658404171467,
-0.08146747201681137,
-0.19008785486221313,
0.09737849235534668,
-0.05509594827890396,
-0.16781936585903168,
-0.19710958003997803,
-0.3483039140701294,
0.053132086992263794,
-0.10120922327041626,
0.01002225186675787,
0.018624600023031235,
-0.0018521127058193088,
-0.20234142243862152,
0.1859840303659439,
0.07145308703184128,
-0.05521111935377121,
-0.010593327693641186,
-0.005137346684932709,
0.025556450709700584,
0.00648804847151041,
0.3671214282512665,
-0.16333305835723877,
-0.08517967164516449,
0.034279994666576385,
0.01519352849572897,
-0.01377134583890438,
0.09434117376804352,
-0.014274447225034237,
0.13879604637622833,
0.05648056045174599,
-0.01694774441421032,
0.05027680844068527,
0.005111686885356903,
0.07235966622829437,
0.28641924262046814,
0.115517757833004,
-0.034303098917007446,
-0.050655003637075424,
-0.02852628007531166,
-0.05857667699456215,
-0.11546946316957474,
-0.10015585273504257,
-0.13969764113426208,
0.007902045734226704,
-0.047976430505514145,
-0.2381313443183899,
0.14882467687129974,
0.0409238338470459,
0.07180621474981308,
0.0035237292759120464,
0.07340827584266663,
0.13056834042072296,
-0.03684850037097931,
-0.004854433238506317,
-0.09503130614757538,
0.055029332637786865,
0.06393185257911682,
-0.06211741268634796,
-0.02420734241604805,
-0.12226714938879013,
0.04356114938855171,
0.11973027139902115,
0.11175492405891418,
-0.10075271129608154,
0.17009617388248444,
0.09919091314077377,
0.007178193423897028,
-0.2122649997472763,
0.10593460500240326,
-0.03267772123217583,
0.11232106387615204,
-0.12775184214115143,
0.01886056736111641,
-0.02298925071954727,
-0.024501411244273186,
0.056027062237262726,
0.059462618082761765,
-0.05384887009859085,
-0.07911144942045212,
0.16867870092391968,
-0.049258116632699966,
-0.09695454686880112,
0.007654351647943258,
0.031059758737683296,
-0.07351768016815186,
0.003054253989830613,
0.06580512225627899,
-0.0508967824280262,
-0.013418570160865784,
0.11570364981889725,
-0.06941122561693192,
-0.13382606208324432,
-0.08351674675941467,
0.05934656783938408,
-0.039486292749643326,
-0.23835286498069763,
-0.2164476215839386,
0.004919742699712515,
0.042136210948228836,
0.0253071840852499,
-0.13796375691890717,
0.13481301069259644,
-0.011851909570395947,
-0.034097980707883835,
-0.02092314325273037,
0.22861208021640778,
-0.0699162632226944,
-0.06613913923501968,
-0.022109847515821457,
-2.480352736573331e-32,
-0.03590532764792442,
-0.051090992987155914,
-0.0043831379152834415,
0.03592347353696823,
0.07227496057748795,
-0.004551682621240616,
-0.03572726994752884,
-0.054564833641052246,
-0.206739604473114,
-0.019289836287498474,
0.040517840534448624,
-0.08123770356178284,
0.0768125057220459,
0.1436750441789627,
-0.01774902641773224,
-0.08643912523984909,
-0.09052295237779617,
0.11853287369012833,
-0.008590825833380222,
0.06080196425318718,
0.22119544446468353,
-0.08022616803646088,
0.24789509177207947,
-0.11119306087493896,
-0.024439504370093346,
-0.1171615794301033,
-0.017535340040922165,
0.03673827275633812,
-0.03136027231812477,
0.0732223391532898,
0.035036467015743256,
0.151266947388649,
-0.024605117738246918,
0.0872192531824112,
0.0053876363672316074,
0.14328573644161224,
-0.03499939292669296,
-0.014803647063672543,
-0.07801292091608047,
0.08196424692869186,
0.16643981635570526,
-0.10863891243934631,
0.015468545258045197,
-0.030181851238012314,
0.12880317866802216,
0.05050498992204666,
-0.028373725712299347,
-0.08119133114814758,
-0.003437487641349435,
0.03501099720597267,
-0.003982972353696823,
0.03868044540286064,
0.039856959134340286,
0.009411039762198925,
0.31479132175445557,
0.1389475017786026,
0.09888797998428345,
0.0015584733337163925,
0.038075365126132965,
-0.0654720664024353,
0.09323236346244812,
0.0030559811275452375,
0.08923157304525375,
0.1819324493408203,
0.14926554262638092,
0.009081108495593071,
0.16459551453590393,
-0.0587967149913311,
0.17226895689964294,
0.09886977821588516,
0.05479258671402931,
0.03097357787191868,
0.1800311654806137,
0.10342585295438766,
-0.30954501032829285,
0.060598574578762054,
0.02860301360487938,
-0.024626286700367928,
0.044102102518081665,
-0.046003300696611404,
-0.07304810732603073,
-0.08880031108856201,
-0.11625941097736359,
0.11443337798118591,
0.04506690427660942,
-0.028316151350736618,
-0.06614566594362259,
0.04904353246092796,
-0.11744682490825653,
-0.16545678675174713,
-0.16204963624477386,
0.026590274646878242,
0.03834675997495651,
0.007531799376010895,
0.16391007602214813,
0.18310368061065674,
0.00006553060666192323,
0.1834140419960022,
-0.08976806700229645,
-0.1175120398402214,
0.03908703848719597,
-0.005437864456325769,
0.03290489315986633,
-0.05106392875313759,
0.07198762893676758,
0.03300534188747406,
0.07591236382722855,
0.03740698844194412,
-0.2688111662864685,
0.027648411691188812,
-0.1009654849767685,
0.2039586454629898,
0.04411380738019943,
-0.12643079459667206,
0.17052000761032104,
0.06678030639886856,
-0.052236635237932205,
-0.13239985704421997,
0.117994524538517,
0.04110050946474075,
-0.1451444774866104,
0.01075444184243679,
0.046612534672021866,
0.04643838480114937,
-0.11448633670806885,
0.10491693019866943,
-0.09729787707328796,
0.05207863077521324,
0.09795703738927841,
0.18488095700740814,
-0.04010261595249176,
0.02992665208876133,
7.277996587617963e-7,
-0.04984196648001671,
-0.08166906982660294,
-0.10797113925218582,
0.13095811009407043,
-0.11732717603445053,
0.2734321653842926,
-0.07040978223085403,
-0.20341190695762634,
0.18146024644374847,
-0.02281814068555832,
-0.048599351197481155,
-0.2278040647506714,
0.06317026168107986,
0.09772825986146927,
-0.2967592477798462,
-0.010848158039152622,
-0.1065235584974289,
-0.022142119705677032,
-0.09209664165973663,
-0.032604508101940155,
0.10610455274581909,
0.20862054824829102,
0.06996772438287735,
-0.07875800877809525,
-0.12418878823518753,
-0.05287555605173111,
-0.06945738196372986,
-0.18458257615566254,
-0.05712662637233734,
-0.04620974138379097,
-0.11855389922857285,
0.06666266173124313,
-0.19332297146320343,
0.11662685871124268,
-0.10473506152629852,
-0.05246956646442413,
-0.05373121798038483,
-0.0842335969209671,
0.17208118736743927,
0.12150667607784271,
0.045099761337041855,
0.007805869914591312,
0.05020652338862419,
-0.1179104596376419,
0.0801573395729065,
0.0960708037018776,
-0.16981525719165802,
-0.10053396970033646,
-0.13782820105552673,
-0.01664935238659382,
-0.15159845352172852,
-0.10298827290534973,
-0.09065200388431549,
0.16627053916454315,
-0.06531298905611038,
-0.0032059086952358484,
0.05107665807008743,
0.06663422286510468,
-0.03813501447439194,
-0.11475460976362228,
-0.02786027267575264,
-0.0031293979845941067,
0.039750467985868454,
-0.15220434963703156,
-0.05646050348877907,
-0.09114059805870056,
0.144630566239357,
2.2541536810757428e-34,
-0.11642426252365112,
0.052055779844522476,
-0.0003656528133433312,
0.12801718711853027,
0.045441094785928726,
-0.0821954533457756,
0.06068361923098564,
0.03707670792937279,
0.016335424035787582,
0.044932276010513306,
-0.09452712535858154
] |
https://github.com/huggingface/datasets/issues/2347 | Add an API to access the language and pretty name of a dataset | What dataset_info method are you talking about @julien-c ? In `huggingface_hub` I can only see `model_info`. | It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts. | 16 | Add an API to access the language and pretty name of a dataset
It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts.
What dataset_info method are you talking about @julien-c ? In `huggingface_hub` I can only see `model_info`. | [
-0.018899643793702126,
0.15915094316005707,
-0.018282826989889145,
0.12593044340610504,
0.10389070957899094,
-0.00008792831795290112,
0.02380041964352131,
-0.02534453012049198,
0.06523420661687851,
0.3111920952796936,
-0.061308592557907104,
0.1670198291540146,
-0.016878509894013405,
0.17663384974002838,
0.1718016266822815,
-0.053797196596860886,
-0.21391232311725616,
-0.13327130675315857,
-0.004297739360481501,
0.03578590974211693,
-0.004909823182970285,
0.11425425112247467,
0.19989410042762756,
0.0531236007809639,
0.040224213153123856,
0.04961356520652771,
-0.045361898839473724,
-0.07915932685136795,
0.06637859344482422,
-0.07806326448917389,
0.07588542252779007,
0.16868242621421814,
0.14342522621154785,
0.13046906888484955,
0.000005710177902074065,
0.016464149579405785,
0.03235071524977684,
0.03627903014421463,
-0.08608602732419968,
-0.24373511970043182,
0.08717213571071625,
-0.08478254824876785,
0.1207677498459816,
-0.07899995148181915,
-0.06988808512687683,
0.0004376529832370579,
0.15871042013168335,
-0.16526532173156738,
-0.0015825970331206918,
-0.05913295969367027,
0.019607070833444595,
0.08349959552288055,
-0.12046411633491516,
-0.198563814163208,
-0.059805676341056824,
0.24382054805755615,
-0.09148365259170532,
0.14098231494426727,
-0.14461620151996613,
0.06267210096120834,
-0.021962709724903107,
0.052698519080877304,
0.07282149791717529,
-0.03670743480324745,
-0.09635207056999207,
-0.06272193044424057,
-0.261994332075119,
-0.07796930521726608,
0.027310863137245178,
0.11981179565191269,
0.03734598308801651,
-0.03247218579053879,
-0.11167731136083603,
0.039912790060043335,
0.13670648634433746,
-0.0375002920627594,
-0.06520428508520126,
-0.07728075236082077,
-0.09822172671556473,
0.0021065964829176664,
0.08977561444044113,
0.04617051035165787,
0.016197169199585915,
-0.10900717973709106,
0.07974062860012054,
0.16825835406780243,
-0.12863615155220032,
0.09476528316736221,
0.04097849503159523,
-0.19341643154621124,
0.13834954798221588,
0.01554195024073124,
-0.07902669906616211,
0.13038142025470734,
0.06936851143836975,
0.016048114746809006,
0.05030204728245735,
0.009886479005217552,
0.04636327549815178,
0.08003401756286621,
-0.030452793464064598,
0.10468285530805588,
-0.20549005270004272,
0.12329200655221939,
0.06401681900024414,
0.052563540637493134,
0.0848691388964653,
-0.10672244429588318,
-0.011710477992892265,
-0.09128297120332718,
0.13822762668132782,
0.07283087819814682,
-0.0931708887219429,
-0.08394317328929901,
0.005241310689598322,
0.1723790466785431,
-0.08735401928424835,
0.23814111948013306,
-0.07243890315294266,
-0.05474412068724632,
0.13576924800872803,
-0.05006139725446701,
-0.05414001643657684,
0.09226293116807938,
0.049590591341257095,
0.05183711275458336,
-0.014345365576446056,
-0.18396484851837158,
0.04961121082305908,
-0.15102669596672058,
-0.09622026979923248,
-0.007042227778583765,
0.10608997195959091,
0.05244813114404678,
0.19841216504573822,
0.14140979945659637,
-0.0103900833055377,
-0.20163361728191376,
0.06656881421804428,
-0.03345444053411484,
0.24016010761260986,
-0.030795345082879066,
0.07013556361198425,
-0.14247368276119232,
0.10098287463188171,
0.11445336043834686,
0.08149862289428711,
-0.01871509663760662,
-0.09009005129337311,
-0.07011019438505173,
-0.036699410527944565,
0.05802186578512192,
-0.2673112452030182,
0.10383732616901398,
-0.1566198766231537,
-0.04190872237086296,
-0.16668115556240082,
0.14844265580177307,
-0.3586146831512451,
-0.013779718428850174,
0.18648017942905426,
0.0016829408705234528,
0.03182344511151314,
0.18177136778831482,
0.07188845425844193,
0.16229753196239471,
0.019254174083471298,
-0.13089226186275482,
0.060713063925504684,
-0.19280852377414703,
-0.1982894390821457,
-0.27432551980018616,
-0.0749637708067894,
0.040137942880392075,
-0.11096988618373871,
0.22009040415287018,
-0.00777583010494709,
-0.035362664610147476,
0.005012174602597952,
-0.006556729320436716,
0.11729573458433151,
-0.1429758220911026,
0.08274062722921371,
0.06132611632347107,
0.07434004545211792,
0.09956913441419601,
-0.1418784111738205,
0.2809237539768219,
-0.004819502122700214,
-0.04713400453329086,
0.002705117454752326,
-0.11591401696205139,
-0.04059041291475296,
0.1924152970314026,
0.05742025002837181,
0.004808738827705383,
0.12477816641330719,
0.041205260902643204,
0.17302601039409637,
-0.034211426973342896,
-0.20924954116344452,
0.050567012280225754,
-0.045717768371105194,
-0.12360862642526627,
0.01975712552666664,
-0.15764851868152618,
-0.15327897667884827,
0.040761612355709076,
0.06577182561159134,
0.08060508221387863,
-0.14502428472042084,
-0.027889929711818695,
0.09183083474636078,
0.09583578258752823,
-0.1380774974822998,
-0.03146371990442276,
0.11537346243858337,
0.1116635799407959,
0.07657697796821594,
0.05639534071087837,
0.05165340006351471,
-0.008174185641109943,
-0.028889650478959084,
-0.13070988655090332,
-0.16843506693840027,
0.06566829234361649,
0.18006561696529388,
0.03307070955634117,
0.0458163246512413,
0.08350962400436401,
-0.03271982818841934,
-0.10636088997125626,
0.04451655596494675,
0.0461304746568203,
0.060101218521595,
0.12507735192775726,
0.09120816737413406,
0.1421850472688675,
0.06476835906505585,
0.07673502713441849,
-0.05599423870444298,
-0.06482437998056412,
-0.10483953356742859,
0.06559338420629501,
-0.14029398560523987,
0.15795065462589264,
-0.027853401377797127,
0.0965547189116478,
0.005393719766288996,
-0.04936041682958603,
0.33416038751602173,
0.18204660713672638,
-0.1211748793721199,
-0.09297369420528412,
0.08151111006736755,
0.017689822241663933,
0.0053361100144684315,
-0.0757337287068367,
0.08020132780075073,
-0.16461123526096344,
0.3009265065193176,
0.032200805842876434,
0.003514801850542426,
0.060338206589221954,
0.22256873548030853,
0.022238491103053093,
0.07978682965040207,
-0.08352164179086685,
-0.030483772978186607,
0.04905753955245018,
-0.0868910402059555,
-0.04488440603017807,
0.07285691797733307,
-0.06366410106420517,
-0.03687787801027298,
-0.205437570810318,
0.08796212077140808,
-0.007358035072684288,
-0.015004376880824566,
-0.062001388520002365,
-0.17281797528266907,
-0.15131917595863342,
0.04191705957055092,
-0.0529450885951519,
0.15180101990699768,
0.1459047794342041,
-0.09073599427938461,
-0.011110769584774971,
-0.05490283668041229,
-0.17775288224220276,
-0.05859320983290672,
0.002876556944102049,
-0.0684838518500328,
-0.2555212378501892,
-0.026511071249842644,
-0.08766959607601166,
-0.07179701328277588,
-0.03568188101053238,
-0.20586246252059937,
-0.021331187337636948,
-0.057240549474954605,
-0.0716843232512474,
0.12483125180006027,
0.055450692772865295,
-0.15066878497600555,
-0.052247896790504456,
0.17994867265224457,
-0.12056955695152283,
-0.04851531982421875,
-0.06663181632757187,
-0.05493899807333946,
0.02149580791592598,
0.03816448152065277,
-0.057375144213438034,
0.14767879247665405,
0.005994293838739395,
0.01535884290933609,
-0.011644617654383183,
0.09598811715841293,
0.04117019101977348,
0.07354654371738434,
-0.13891611993312836,
0.22911955416202545,
-0.11184290796518326,
-0.09993801265954971,
0.08514159172773361,
-0.22360345721244812,
-0.11038987338542938,
0.16600823402404785,
-0.00484345993027091,
0.0024277728516608477,
0.05761648342013359,
0.006341477390378714,
0.1705234944820404,
0.14662747085094452,
0.01571754366159439,
-0.10981253534555435,
-0.042571764439344406,
0.008112840354442596,
-0.0769537165760994,
0.015044254250824451,
-0.02656816877424717,
-0.008300432935357094,
0.1989290863275528,
-0.09058978408575058,
-0.060886360704898834,
0.0334148034453392,
-0.12214416265487671,
-0.0030453435610979795,
-0.080373615026474,
0.12449108064174652,
0.1514309048652649,
0.016260983422398567,
0.09316971153020859,
0.008170298300683498,
-0.06166255474090576,
-0.06288457661867142,
0.1298263520002365,
-0.22578004002571106,
0.07678110897541046,
0.03274838626384735,
-0.05389084294438362,
-0.09988419711589813,
-0.207240492105484,
-0.013797443360090256,
-0.01097699161618948,
0.19298222661018372,
0.20125214755535126,
0.08857227116823196,
-0.014636904932558537,
-0.19089065492153168,
-0.05785311013460159,
0.039659902453422546,
0.047704435884952545,
-0.05704537406563759,
-0.16016633808612823,
-0.10014655441045761,
-0.1094462051987648,
0.08633524179458618,
0.07192473858594894,
0.07747182995080948,
-0.18326298892498016,
-0.03378494083881378,
-0.048111822456121445,
0.17311729490756989,
-0.042898137122392654,
0.00043652948806993663,
-0.05790365859866142,
-0.033767182379961014,
0.01926443725824356,
-0.06833086162805557,
-0.12903708219528198,
-0.004875342361629009,
-0.1209171712398529,
-0.06843597441911697,
0.004481794778257608,
0.040292803198099136,
-0.06100253015756607,
0.15729203820228577,
-0.08243769407272339,
-0.04745035991072655,
-0.01149513479322195,
-0.12678565084934235,
-0.14539062976837158,
-0.06193482503294945,
0.02586284838616848,
0.08243109285831451,
0.1614881306886673,
0.012136363424360752,
-0.021248871460556984,
-0.06063259020447731,
0.05895978957414627,
-0.05466535687446594,
-0.16727261245250702,
0.2292696088552475,
0.014278399758040905,
-0.15883420407772064,
-0.09858758002519608,
0.08947215229272842,
-0.05004829913377762,
0.06944136321544647,
-0.089501291513443,
0.05964741110801697,
0.15733006596565247,
0.3004849851131439,
0.015141865238547325,
-0.15094812214374542,
0.10937358438968658,
0.06197009235620499,
0.09490130096673965,
0.07199310511350632,
0.18896710872650146,
-0.1357528567314148,
0.029448293149471283,
0.12199439108371735,
-0.11428944766521454,
0.1475202888250351,
-0.12453721463680267,
-0.3385799825191498,
-0.05782212316989899,
0.010688254609704018,
0.06632213294506073,
0.10437075048685074,
0.1166708841919899,
0.07995656132698059,
0.04787400737404823,
-0.07204006612300873,
-0.26712286472320557,
0.13437998294830322,
0.053290463984012604,
-0.16209739446640015,
-0.25114789605140686,
-0.27285048365592957,
0.033859655261039734,
-0.07952897250652313,
0.025140712037682533,
0.07345375418663025,
-0.025738922879099846,
-0.2534230649471283,
0.13547326624393463,
0.0502752847969532,
-0.042546771466732025,
0.01963210664689541,
-0.035041727125644684,
-0.030640296638011932,
0.02057744935154915,
0.34640204906463623,
-0.15397195518016815,
-0.11785844713449478,
0.06568766385316849,
0.0006026970804668963,
0.003227629465982318,
0.09009093791246414,
-0.006992469076067209,
0.07566390931606293,
0.01653595082461834,
0.025405794382095337,
0.0538935512304306,
-0.03473854064941406,
0.03927110508084297,
0.2546459138393402,
0.09338602423667908,
-0.033288098871707916,
-0.086579829454422,
-0.09461861848831177,
-0.05494016781449318,
-0.08785874396562576,
-0.06146487221121788,
-0.16598297655582428,
0.08934514224529266,
-0.003976990934461355,
-0.2533952295780182,
0.12271640449762344,
0.005281461402773857,
0.08080463111400604,
0.021300921216607094,
0.02916828542947769,
0.03581388667225838,
-0.10211791843175888,
0.010475391522049904,
-0.06694088876247406,
-0.012259703129529953,
0.08303716033697128,
-0.060429610311985016,
-0.025597205385565758,
-0.11879341304302216,
-0.013520654290914536,
0.16908462345600128,
0.03836996108293533,
-0.12412459403276443,
0.12978839874267578,
0.11151707172393799,
0.07178473472595215,
-0.18574324250221252,
0.020738856866955757,
-0.030673181638121605,
0.009540228173136711,
-0.1140095666050911,
0.11646956205368042,
-0.031411219388246536,
0.0002019449748331681,
0.07737007737159729,
0.11951515078544617,
-0.12515898048877716,
-0.1265556663274765,
0.1343652606010437,
-0.0510639026761055,
-0.06571290642023087,
-0.023678086698055267,
0.09567829966545105,
-0.06996511667966843,
0.008975794538855553,
0.09704992175102234,
-0.05015772953629494,
-0.03802496939897537,
0.012945886701345444,
0.16680236160755157,
-0.2421022355556488,
-0.05951641872525215,
0.0848546028137207,
-0.017269957810640335,
-0.22076363861560822,
-0.1908445954322815,
-0.005616435315459967,
-0.09988133609294891,
0.0667044147849083,
-0.15535999834537506,
0.1243065670132637,
-0.002096475102007389,
-0.11640903353691101,
-0.005956575740128756,
0.18030919134616852,
-0.023143306374549866,
-0.05739470571279526,
-0.030943406745791435,
-2.529636806599494e-32,
-0.044549621641635895,
-0.03809184208512306,
-0.048630621284246445,
0.05563153326511383,
0.0191345252096653,
0.05828177556395531,
-0.03197440505027771,
-0.02468036860227585,
-0.1582854986190796,
-0.0724312886595726,
0.06311240792274475,
-0.0888228639960289,
0.06685445457696915,
0.14746874570846558,
-0.05276989936828613,
-0.03170342370867729,
-0.1017814427614212,
0.11153990030288696,
-0.005321979057043791,
0.07348961383104324,
0.20459802448749542,
-0.053294774144887924,
0.25876888632774353,
-0.08597680181264877,
0.004801903385668993,
-0.053340427577495575,
-0.01226657535880804,
0.0059433807618916035,
-0.0029450375586748123,
0.046605080366134644,
0.00750751793384552,
0.09096118807792664,
-0.023032985627651215,
0.0957651436328888,
0.07007765024900436,
0.12489159405231476,
-0.14005112648010254,
-0.11291133612394333,
0.022992881014943123,
0.12693962454795837,
0.10914923995733261,
-0.036788199096918106,
-0.07242831587791443,
-0.07471685111522675,
0.13331151008605957,
0.1181693896651268,
-0.03807472065091133,
-0.05671248584985733,
-0.00009404291631653905,
0.0006838099798187613,
0.027408016845583916,
-0.011526188813149929,
0.012950441800057888,
0.006924014072865248,
0.2578777074813843,
0.1699289083480835,
0.09708312898874283,
-0.10411617904901505,
-0.002546080155298114,
-0.08833497762680054,
0.0945705771446228,
0.00023344943474512547,
0.067735955119133,
0.19341246783733368,
0.1876908242702484,
-0.010120706632733345,
0.10028856992721558,
-0.08538461476564407,
0.19456572830677032,
0.09247443079948425,
0.14385291934013367,
0.05547013878822327,
0.055473215878009796,
0.11102509498596191,
-0.34606409072875977,
-0.03820597380399704,
0.03926480561494827,
-0.06326912343502045,
0.04114473983645439,
-0.10585524141788483,
-0.011627072468400002,
-0.13824468851089478,
-0.0915912538766861,
0.07134538888931274,
0.007292896509170532,
0.011678860522806644,
-0.07010466605424881,
-0.024650853127241135,
-0.11845237761735916,
-0.09251588582992554,
-0.06794553995132446,
-0.024800674989819527,
0.03419917821884155,
-0.004628876689821482,
0.09275099635124207,
0.1483495980501175,
-0.03208611533045769,
0.17734505236148834,
-0.04282617196440697,
-0.11652162671089172,
0.0732085108757019,
-0.02012917585670948,
0.05287479609251022,
0.013975031673908234,
0.10620139539241791,
-0.047490302473306656,
0.0927203819155693,
0.055516839027404785,
-0.19205859303474426,
0.03614335134625435,
-0.1474788337945938,
0.23035916686058044,
0.06350546330213547,
0.006295002531260252,
0.1703740805387497,
0.042507655918598175,
-0.07729450613260269,
-0.12199483066797256,
0.07572165131568909,
0.09026387333869934,
-0.2006998211145401,
-0.000027446591047919355,
0.0368039496243,
0.03252352029085159,
-0.1415303498506546,
0.10975101590156555,
-0.13289186358451843,
-0.031209671869874,
0.10218735039234161,
0.09267918020486832,
-0.06980839371681213,
0.004893120378255844,
7.344679602283577e-7,
-0.1893533617258072,
-0.006059955805540085,
-0.08204793184995651,
0.07498844712972641,
-0.06821558624505997,
0.14922748506069183,
-0.10683578997850418,
-0.13057948648929596,
0.18991288542747498,
-0.06216152757406235,
-0.05035790055990219,
-0.22623927891254425,
0.07338645309209824,
-0.019834205508232117,
-0.2863977551460266,
-0.023319102823734283,
-0.09954820573329926,
-0.06864409893751144,
-0.13726197183132172,
0.05156976729631424,
0.004324961453676224,
0.22989767789840698,
0.039916180074214935,
-0.03468971699476242,
-0.08074349910020828,
-0.020705465227365494,
-0.05647849291563034,
-0.18453972041606903,
-0.01720685511827469,
-0.037057679146528244,
0.03583722189068794,
0.03068704344332218,
-0.1342085301876068,
0.10354728251695633,
-0.10459224134683609,
-0.030308397486805916,
-0.14043864607810974,
-0.055949866771698,
0.10689864307641983,
0.1164034828543663,
0.07051768153905869,
-0.0021018090192228556,
0.03539562225341797,
-0.20702150464057922,
0.06701327860355377,
0.16463452577590942,
-0.18586964905261993,
-0.034759048372507095,
-0.06758629530668259,
-0.015687592327594757,
-0.12751507759094238,
-0.17377525568008423,
-0.03535193204879761,
0.16610991954803467,
0.009379053488373756,
-0.08526134490966797,
0.1250888705253601,
0.07884868234395981,
-0.02837703935801983,
-0.08076803386211395,
-0.054955802857875824,
0.048148054629564285,
-0.0164903923869133,
-0.19186806678771973,
-0.09042063355445862,
-0.046105772256851196,
0.1542941927909851,
3.010045680644918e-34,
-0.10039221495389938,
0.019416872411966324,
0.04318876191973686,
0.07082044333219528,
0.1200370043516159,
-0.024692701175808907,
0.09799458831548691,
0.05894584581255913,
-0.038534726947546005,
0.035587623715400696,
-0.08416687697172165
] |
https://github.com/huggingface/datasets/issues/2347 | Add an API to access the language and pretty name of a dataset | Indeed, this info can now be fetched with `huggingface_hub.dataset_info`, so I think we can close this issue. | It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts. | 17 | Add an API to access the language and pretty name of a dataset
It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts.
Indeed, this info can now be fetched with `huggingface_hub.dataset_info`, so I think we can close this issue. | [
-0.0568784736096859,
0.17022362351417542,
-0.036007992923259735,
0.11076081544160843,
0.11782818287611008,
-0.000751584826502949,
0.01160821970552206,
-0.04438711702823639,
0.07091182470321655,
0.3046444058418274,
-0.044608600437641144,
0.16558460891246796,
-0.03891754895448685,
0.1996523141860962,
0.1444748491048813,
-0.08486007153987885,
-0.21467509865760803,
-0.12068185210227966,
0.0044819265604019165,
0.022615505382418633,
-0.015131953172385693,
0.12617743015289307,
0.20429588854312897,
0.03167126700282097,
0.060112111270427704,
0.059032656252384186,
-0.04060828313231468,
-0.1065988838672638,
0.032036133110523224,
-0.05753272771835327,
0.07478714734315872,
0.15128344297409058,
0.1401548832654953,
0.1633465588092804,
0.000005582033281825716,
0.039795003831386566,
0.009965561330318451,
0.01980477385222912,
-0.06233607605099678,
-0.22966283559799194,
0.09339232742786407,
-0.11212018877267838,
0.10049322247505188,
-0.08926505595445633,
-0.07100478559732437,
-0.029203522950410843,
0.1825907677412033,
-0.184014230966568,
-0.00788076501339674,
-0.06605124473571777,
0.022823235020041466,
0.08641614019870758,
-0.12677372992038727,
-0.21261924505233765,
-0.05216958746314049,
0.23644573986530304,
-0.0990900844335556,
0.10826647281646729,
-0.14129553735256195,
0.05829646810889244,
-0.05293659493327141,
0.04479539021849632,
0.06408599764108658,
-0.045145660638809204,
-0.10008370876312256,
-0.07530685514211655,
-0.29667359590530396,
-0.04280242696404457,
0.026943834498524666,
0.14465974271297455,
0.02541721798479557,
-0.04910176619887352,
-0.12268386781215668,
0.03566444665193558,
0.12421894073486328,
-0.0428561195731163,
-0.04229360073804855,
-0.046916667371988297,
-0.08966796845197678,
0.018441813066601753,
0.09034241735935211,
0.030958767980337143,
0.03844920173287392,
-0.11101353913545609,
0.0629429742693901,
0.16441194713115692,
-0.10320362448692322,
0.0967099592089653,
0.024147748947143555,
-0.2070193588733673,
0.12981313467025757,
0.018092883750796318,
-0.07870349287986755,
0.129205584526062,
0.05097968876361847,
0.016020510345697403,
0.04907069727778435,
0.0015908668283373117,
0.03533008694648743,
0.0944247841835022,
-0.04572205990552902,
0.11917009949684143,
-0.24230241775512695,
0.11321766674518585,
0.04281265288591385,
0.06269589811563492,
0.11743004620075226,
-0.1193968802690506,
-0.02112300880253315,
-0.10726895183324814,
0.1734437197446823,
0.07617555558681488,
-0.09225638210773468,
-0.13241487741470337,
-0.039473824203014374,
0.19918155670166016,
-0.07854590564966202,
0.25448307394981384,
-0.06506984680891037,
-0.040795378386974335,
0.13753023743629456,
-0.030751194804906845,
-0.0924435704946518,
0.08820124715566635,
0.06650432199239731,
0.02850377932190895,
-0.017132174223661423,
-0.1906426101922989,
0.034009914845228195,
-0.1470048427581787,
-0.07467243075370789,
0.004927413538098335,
0.10874352604150772,
0.047516729682683945,
0.21332764625549316,
0.16932521760463715,
0.004296461120247841,
-0.23308652639389038,
0.08911377191543579,
-0.05044814944267273,
0.22096435725688934,
0.01231169793754816,
0.07361336797475815,
-0.13800983130931854,
0.08875276148319244,
0.08249028027057648,
0.07938999682664871,
-0.03357493877410889,
-0.10754944384098053,
-0.06294452399015427,
-0.0070876069366931915,
0.059813112020492554,
-0.2571331560611725,
0.09939268976449966,
-0.16290847957134247,
-0.05822596698999405,
-0.17482726275920868,
0.12819993495941162,
-0.3428637683391571,
-0.024075942113995552,
0.21218891441822052,
0.02116343192756176,
0.028587348759174347,
0.19612018764019012,
0.08311530947685242,
0.1610754281282425,
0.029137875884771347,
-0.16211210191249847,
0.06813038885593414,
-0.1952132284641266,
-0.21323320269584656,
-0.28546154499053955,
-0.04265408217906952,
0.016671197488904,
-0.10934789478778839,
0.22101810574531555,
-0.03565669804811478,
-0.037585534155368805,
0.033170685172080994,
-0.009958227165043354,
0.08120817691087723,
-0.14011961221694946,
0.08822222799062729,
0.06798143684864044,
0.09545391798019409,
0.13476629555225372,
-0.12179156392812729,
0.2680515646934509,
-0.023300908505916595,
-0.04817946255207062,
0.02367577888071537,
-0.12678328156471252,
-0.008300194516777992,
0.1761893630027771,
0.07300236076116562,
-0.016360916197299957,
0.11733410507440567,
0.02320709638297558,
0.1577431559562683,
-0.04927188158035278,
-0.18030905723571777,
0.040933314710855484,
-0.04838071018457413,
-0.1508001685142517,
0.019486520439386368,
-0.16648797690868378,
-0.16983617842197418,
0.029389625415205956,
0.0681515783071518,
0.07312614470720291,
-0.11987454444169998,
-0.04310699552297592,
0.10057816654443741,
0.06893303245306015,
-0.10661502927541733,
-0.05508552864193916,
0.11157398670911789,
0.11943395435810089,
0.07208611816167831,
0.07186078280210495,
0.039095018059015274,
-0.02920243702828884,
-0.03358753025531769,
-0.11048901826143265,
-0.16211043298244476,
0.03038908541202545,
0.2015308141708374,
0.05034080892801285,
0.07200741022825241,
0.08461663126945496,
-0.04037026688456535,
-0.10700486600399017,
0.03286930173635483,
0.0363239161670208,
0.061330318450927734,
0.15536756813526154,
0.10037742555141449,
0.11685232073068619,
0.06057475507259369,
0.062111273407936096,
-0.08120989799499512,
-0.06335143744945526,
-0.15508271753787994,
0.057929567992687225,
-0.12217273563146591,
0.1702030450105667,
-0.04039805382490158,
0.10636847466230392,
0.003148311749100685,
-0.069581039249897,
0.31757107377052307,
0.17283588647842407,
-0.1315966099500656,
-0.09849204868078232,
0.08852139860391617,
0.01522215735167265,
0.024057064205408096,
-0.10029389709234238,
0.05734991654753685,
-0.20240895450115204,
0.28864750266075134,
0.031236300244927406,
-0.005563728511333466,
0.06193649396300316,
0.2321970909833908,
0.030018115416169167,
0.08483286947011948,
-0.08637940138578415,
-0.016138780862092972,
0.05285891890525818,
-0.08334183692932129,
-0.03450210392475128,
0.0755358412861824,
-0.06142552196979523,
-0.04772217944264412,
-0.22185365855693817,
0.05368715524673462,
0.02895205095410347,
-0.01371529046446085,
-0.05608988180756569,
-0.20712889730930328,
-0.17094533145427704,
0.057879939675331116,
-0.05201396346092224,
0.14958445727825165,
0.1127350702881813,
-0.07938168197870255,
-0.01336746010929346,
-0.05452389270067215,
-0.1770104616880417,
-0.0416213683784008,
0.004256695508956909,
-0.050717778503894806,
-0.22916898131370544,
-0.04127669334411621,
-0.0835750624537468,
-0.06431429088115692,
0.0042894259095191956,
-0.17871811985969543,
-0.0329434834420681,
-0.046742748469114304,
-0.07801975309848785,
0.15035021305084229,
0.04841813072562218,
-0.17979678511619568,
-0.09603072702884674,
0.22992423176765442,
-0.12459339201450348,
-0.024219965562224388,
-0.09484812617301941,
-0.0761706605553627,
0.02019873633980751,
0.021379193291068077,
-0.07851742208003998,
0.1522310972213745,
0.029505936428904533,
-0.0015190766425803304,
-0.023796727880835533,
0.09367833286523819,
0.06009248271584511,
0.06976549327373505,
-0.1681174337863922,
0.24231061339378357,
-0.11060436069965363,
-0.09575533866882324,
0.07546888291835785,
-0.20204880833625793,
-0.13523364067077637,
0.14821019768714905,
-0.01018389780074358,
0.004782423842698336,
0.040416695177555084,
0.0278950072824955,
0.15927252173423767,
0.14885781705379486,
-0.005344350356608629,
-0.108948715031147,
-0.007810364477336407,
-0.01671442575752735,
-0.11026088148355484,
0.025847027078270912,
-0.02819436974823475,
-0.018518749624490738,
0.2348894476890564,
-0.10120712965726852,
-0.05057532712817192,
0.030806126073002815,
-0.12593330442905426,
-0.006112656556069851,
-0.08555111289024353,
0.09759505093097687,
0.12864629924297333,
0.04415310174226761,
0.07873736321926117,
0.006214610300958157,
-0.028308942914009094,
-0.08017262816429138,
0.12655939161777496,
-0.2630327641963959,
0.06238674372434616,
0.027338935062289238,
-0.035813748836517334,
-0.07658414542675018,
-0.17380651831626892,
0.0010282965376973152,
0.0034179461654275656,
0.190100759267807,
0.19378778338432312,
0.08761967718601227,
-0.014903171919286251,
-0.22137722373008728,
-0.07506145536899567,
0.030483605340123177,
0.047223612666130066,
-0.051174912601709366,
-0.12477961927652359,
-0.0890699252486229,
-0.12074437737464905,
0.06466707587242126,
0.07135828584432602,
0.08602002263069153,
-0.1893196552991867,
-0.03199327364563942,
-0.060860272496938705,
0.1727059930562973,
-0.043230872601270676,
-0.0179430041462183,
-0.07210587710142136,
-0.07488445192575455,
0.010980769991874695,
-0.043444059789180756,
-0.13400298357009888,
0.015001561492681503,
-0.12502236664295197,
-0.07943050563335419,
-0.0008927867747843266,
0.04238425940275192,
-0.07321872562170029,
0.17383061349391937,
-0.08693402260541916,
-0.057130973786115646,
0.016304342076182365,
-0.12453942745923996,
-0.12300723791122437,
-0.08279227465391159,
0.03830644488334656,
0.055566247552633286,
0.16409353911876678,
0.007532752119004726,
-0.03261297196149826,
-0.0732308030128479,
0.038769226521253586,
-0.0920175239443779,
-0.11440888792276382,
0.21138398349285126,
-0.008150710724294186,
-0.158614382147789,
-0.08747581392526627,
0.10236611217260361,
-0.03871285170316696,
0.057314321398735046,
-0.09815016388893127,
0.04913414269685745,
0.1882631629705429,
0.30133381485939026,
-0.004443040117621422,
-0.14331620931625366,
0.08564520627260208,
0.06725724786520004,
0.08107852935791016,
0.04956154152750969,
0.18353132903575897,
-0.15933376550674438,
0.02648257277905941,
0.14672760665416718,
-0.13332468271255493,
0.16699503362178802,
-0.13181883096694946,
-0.3402605950832367,
-0.04511173442006111,
0.035334568470716476,
0.09026437997817993,
0.12655577063560486,
0.11590717732906342,
0.08922158181667328,
0.06446016579866409,
-0.06716981530189514,
-0.25106146931648254,
0.15486295521259308,
0.0567452572286129,
-0.12920446693897247,
-0.255371630191803,
-0.2562461495399475,
0.04746139794588089,
-0.06916184723377228,
0.02693670056760311,
0.07316236197948456,
0.050808489322662354,
-0.24767270684242249,
0.1602315604686737,
0.047368183732032776,
-0.037290725857019424,
-0.012783749029040337,
-0.017670342698693275,
-0.006035945378243923,
0.013299384154379368,
0.3697992265224457,
-0.16700449585914612,
-0.09614760428667068,
0.06315968185663223,
-0.008595086634159088,
0.004676608834415674,
0.09626254439353943,
-0.03161318972706795,
0.08208007365465164,
0.007761240471154451,
0.028011731803417206,
0.06651709973812103,
-0.003911579493433237,
0.04286819323897362,
0.27034714818000793,
0.09384238719940186,
-0.05615505203604698,
-0.0800618901848793,
-0.09966060519218445,
-0.059966303408145905,
-0.052165303379297256,
-0.06130077317357063,
-0.13102218508720398,
0.09682832658290863,
-0.05172263830900192,
-0.2506803870201111,
0.11523022502660751,
-0.016343817114830017,
0.07650945335626602,
0.03681686148047447,
0.040229056030511856,
0.014597060158848763,
-0.10413510352373123,
-0.001637798617593944,
-0.07532394677400589,
-0.006862398702651262,
0.0997239425778389,
-0.07335968315601349,
-0.05011671409010887,
-0.10721312463283539,
-0.017344258725643158,
0.14147062599658966,
0.061973679810762405,
-0.12124902009963989,
0.10754738748073578,
0.09737243503332138,
0.07247161120176315,
-0.18203847110271454,
0.02655472420156002,
-0.04959234967827797,
0.012114434503018856,
-0.12139682471752167,
0.1296062171459198,
-0.02958289533853531,
-0.013926609419286251,
0.0757676512002945,
0.09467638283967972,
-0.1217479258775711,
-0.1696433275938034,
0.15580710768699646,
-0.05447390303015709,
-0.05876719951629639,
-0.011880911886692047,
0.08111121505498886,
-0.07106130570173264,
0.00788611825555563,
0.0847657322883606,
-0.036786314100027084,
-0.026655742898583412,
0.032334890216588974,
0.17528560757637024,
-0.2373487800359726,
-0.05982565879821777,
0.0775061696767807,
-0.02315138280391693,
-0.2449665516614914,
-0.17918819189071655,
0.015714529901742935,
-0.066766157746315,
0.05257797613739967,
-0.12967956066131592,
0.12163037806749344,
0.013086584396660328,
-0.07630763202905655,
-0.0026042202953249216,
0.21190261840820312,
-0.041251398622989655,
-0.08097120374441147,
0.0021493169479072094,
-2.4953247142461666e-32,
-0.03289975970983505,
-0.04344542697072029,
-0.03990759328007698,
0.09254346042871475,
0.04112899675965309,
0.040635593235492706,
-0.030719393864274025,
-0.030713343992829323,
-0.1452845185995102,
-0.08994673192501068,
0.06631432473659515,
-0.08562954515218735,
0.07098723202943802,
0.15679702162742615,
-0.03996501490473747,
-0.019652988761663437,
-0.08252870291471481,
0.10457082092761993,
-0.006929114460945129,
0.10218870639801025,
0.20234723389148712,
-0.0858573168516159,
0.21975155174732208,
-0.06487678736448288,
0.0003470923693384975,
-0.05593379586935043,
-0.01864371821284294,
0.050041843205690384,
0.021089328452944756,
0.053354859352111816,
0.019873442128300667,
0.08901087194681168,
-0.016028104349970818,
0.14584524929523468,
0.07823284715414047,
0.13669250905513763,
-0.09959609061479568,
-0.11830496042966843,
-0.00015815204824320972,
0.10480295121669769,
0.12903600931167603,
-0.030595215037465096,
-0.06338122487068176,
-0.057742998003959656,
0.1408199667930603,
0.1325707584619522,
-0.04940011724829674,
-0.0562778003513813,
0.010104315355420113,
0.025783738121390343,
0.03497542068362236,
0.003675216343253851,
0.0233407374471426,
0.02376536652445793,
0.26038819551467896,
0.17063212394714355,
0.10398823767900467,
-0.06603452563285828,
0.002500886330381036,
-0.10433822125196457,
0.08850539475679398,
-0.010213326662778854,
0.0749439150094986,
0.18214735388755798,
0.18487274646759033,
-0.0043049962259829044,
0.1286766678094864,
-0.07824620604515076,
0.1945013403892517,
0.09575117379426956,
0.14908164739608765,
0.02636078931391239,
0.05413438379764557,
0.12209974229335785,
-0.32037344574928284,
-0.030528951436281204,
0.029865575954318047,
-0.032394275069236755,
0.043907828629016876,
-0.12361883372068405,
-0.01383210625499487,
-0.1398315280675888,
-0.07971716672182083,
0.07316611707210541,
-0.013819526880979538,
0.012430531904101372,
-0.07033868134021759,
-0.015010328963398933,
-0.10945962369441986,
-0.09895897656679153,
-0.09080587327480316,
-0.024614078924059868,
0.030840951949357986,
0.008252706378698349,
0.11884433776140213,
0.14869560301303864,
-0.045869916677474976,
0.17452110350131989,
-0.031878452748060226,
-0.10064452886581421,
0.09434615820646286,
-0.02876492217183113,
0.02881968580186367,
0.0028681482654064894,
0.11333642899990082,
-0.029873494058847427,
0.09468171000480652,
0.07723691314458847,
-0.2312493771314621,
0.05310383066534996,
-0.1348348706960678,
0.235578715801239,
0.049362663179636,
-0.006288537289947271,
0.17003923654556274,
0.07500221580266953,
-0.05171831324696541,
-0.11516513675451279,
0.1055116355419159,
0.07135803997516632,
-0.19230499863624573,
0.01589999720454216,
0.03774278983473778,
0.054708514362573624,
-0.13793429732322693,
0.09510604292154312,
-0.09638798981904984,
-0.028002018108963966,
0.11055834591388702,
0.06855716556310654,
-0.07076134532690048,
-0.012082252651453018,
7.29297710222454e-7,
-0.17905709147453308,
-0.04224652796983719,
-0.054350968450307846,
0.10620417445898056,
-0.06324418634176254,
0.1459990292787552,
-0.11325501650571823,
-0.11851878464221954,
0.17756503820419312,
-0.06721539795398712,
-0.0681360587477684,
-0.24739910662174225,
0.05320416018366814,
0.00916164368391037,
-0.2858293354511261,
0.03688006475567818,
-0.10573086142539978,
-0.07130486518144608,
-0.1448168009519577,
0.03882602974772453,
0.032779451459646225,
0.23913145065307617,
0.039347611367702484,
-0.04262974113225937,
-0.07236692309379578,
-0.05470326542854309,
-0.06407155841588974,
-0.16855888068675995,
-0.00551362382248044,
-0.027531778439879417,
-0.025150490924715996,
0.02846120297908783,
-0.1627798229455948,
0.11554785817861557,
-0.11398103833198547,
-0.04145969823002815,
-0.14632542431354523,
-0.06007813662290573,
0.1260438859462738,
0.1171911433339119,
0.05591447651386261,
0.0013098210329189897,
0.021016325801610947,
-0.2138061225414276,
0.07367981970310211,
0.1456340104341507,
-0.18966391682624817,
-0.022147467359900475,
-0.06230630353093147,
-0.0033432054333388805,
-0.13060928881168365,
-0.18016566336154938,
-0.038730550557374954,
0.17195959389209747,
0.01583823561668396,
-0.06600472331047058,
0.12065009772777557,
0.061535902321338654,
-0.03283027932047844,
-0.09134859591722488,
-0.04852490872144699,
0.04638330638408661,
-0.03139013424515724,
-0.12532544136047363,
-0.10998143255710602,
-0.027393963187932968,
0.1763264387845993,
3.0732053135388362e-34,
-0.08098016679286957,
0.012778380885720253,
0.0264053326100111,
0.05693252757191658,
0.08203085511922836,
-0.035238247364759445,
0.09840695559978485,
0.07682410627603531,
-0.046990204602479935,
0.03100983239710331,
-0.10977506637573242
] |
https://github.com/huggingface/datasets/issues/2345 | [Question] How to move and reuse preprocessed dataset? | <s>Hi :) Can you share with us the code you used ?</s>
EDIT: from https://github.com/huggingface/transformers/issues/11665#issuecomment-838348291 I understand you're using the run_clm.py script. Can you share your logs ?
| Hi, I am training a gpt-2 from scratch using run_clm.py.
I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess),
I tried to :
copy path_to_cache_dir/datasets to new_cache_dir/datasets
set export HF_DATASETS_CACHE="new_cache_dir/"
but the program still re-preprocess the whole dataset without loading cache.
I also tried to torch.save(lm_datasets, fw), but the saved file is only 14M.
What is the proper way to do this? | 28 | [Question] How to move and reuse preprocessed dataset?
Hi, I am training a gpt-2 from scratch using run_clm.py.
I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess),
I tried to :
copy path_to_cache_dir/datasets to new_cache_dir/datasets
set export HF_DATASETS_CACHE="new_cache_dir/"
but the program still re-preprocess the whole dataset without loading cache.
I also tried to torch.save(lm_datasets, fw), but the saved file is only 14M.
What is the proper way to do this?
<s>Hi :) Can you share with us the code you used ?</s>
EDIT: from https://github.com/huggingface/transformers/issues/11665#issuecomment-838348291 I understand you're using the run_clm.py script. Can you share your logs ?
| [
-0.02081875689327717,
0.12286686152219772,
0.018557298928499222,
0.16089379787445068,
0.0735933855175972,
0.15721134841442108,
0.04875177890062332,
0.05038117244839668,
-0.05237279459834099,
0.0953691154718399,
-0.10455182939767838,
0.12527570128440857,
-0.005909391678869724,
0.020419705659151077,
-0.028738958761096,
-0.31329748034477234,
-0.09442877024412155,
0.03345347195863724,
-0.1533661037683487,
-0.009008199907839298,
-0.0037901385221630335,
-0.07335678488016129,
0.30045175552368164,
-0.08894411474466324,
-0.08048370480537415,
-0.06350751221179962,
-0.10454083979129791,
0.13619883358478546,
0.13424177467823029,
-0.08130751550197601,
0.07538854330778122,
0.11158742010593414,
0.1701885163784027,
0.20533213019371033,
0.000005001048066333169,
0.08221317827701569,
-0.06612365692853928,
0.03133384883403778,
-0.014052900485694408,
-0.0055149756371974945,
0.26364028453826904,
0.06936679035425186,
-0.09687888622283936,
0.10719018429517746,
-0.1128932386636734,
-0.14866308867931366,
-0.10392230749130249,
-0.04540255293250084,
0.25262558460235596,
0.1303638368844986,
-0.08858836442232132,
-0.10650543868541718,
-0.16263426840305328,
-0.08426462858915329,
0.0413849800825119,
-0.13069963455200195,
0.026409003883600235,
-0.07108889520168304,
-0.22819842398166656,
-0.03438180685043335,
0.05159040167927742,
0.05010353401303291,
0.021642297506332397,
0.09243521094322205,
-0.07205377519130707,
-0.07219810783863068,
-0.4022405445575714,
0.004610917065292597,
0.08445650339126587,
0.02071632631123066,
0.03636696934700012,
-0.0766017958521843,
-0.027262268587946892,
0.0953008234500885,
-0.021700432524085045,
-0.1413407027721405,
-0.17520199716091156,
-0.01531587541103363,
0.1030774787068367,
0.01879926584661007,
-0.15766796469688416,
-0.07768064737319946,
0.016221890226006508,
-0.2232481688261032,
-0.1788540631532669,
-0.01743866316974163,
0.021294917911291122,
0.11678319424390793,
-0.017907029017806053,
0.14597272872924805,
0.1257999986410141,
0.07355465739965439,
0.019991368055343628,
-0.0398152731359005,
-0.08068828284740448,
0.16761068999767303,
-0.1586897075176239,
-0.0037296104710549116,
-0.10574719309806824,
0.058362968266010284,
0.11117646098136902,
-0.0603397935628891,
0.047552552074193954,
-0.010003603994846344,
-0.05019227787852287,
-0.034993723034858704,
-0.13631518185138702,
0.0052207414992153645,
-0.05688309296965599,
-0.03428598865866661,
-0.16922056674957275,
-0.08292973786592484,
-0.17562703788280487,
-0.11282177269458771,
0.21958398818969727,
0.12683090567588806,
0.06374089419841766,
0.04917088896036148,
0.045934878289699554,
-0.10709947347640991,
0.17746160924434662,
0.036002449691295624,
-0.12985213100910187,
0.1121651902794838,
-0.07812725752592087,
-0.007424368988722563,
0.025126323103904724,
0.008944678120315075,
0.057613555341959,
-0.21907739341259003,
-0.09784010797739029,
-0.05663422495126724,
0.02911396510899067,
-0.07868054509162903,
0.07255330681800842,
-0.05632994323968887,
-0.07587455213069916,
-0.11070874333381653,
-0.12812985479831696,
0.09970121085643768,
0.2868940532207489,
-0.10365211218595505,
0.03644532710313797,
-0.0003397160326130688,
-0.07197398692369461,
0.044014349579811096,
0.09037483483552933,
0.30515775084495544,
-0.18276368081569672,
0.25536754727363586,
-0.026754630729556084,
0.01893363893032074,
-0.021662073209881783,
0.09662774205207825,
0.08276262879371643,
0.09401664137840271,
-0.03865259140729904,
-0.13660985231399536,
-0.07697311788797379,
0.0207555890083313,
-0.055701084434986115,
-0.25697457790374756,
0.02547568269073963,
0.002996010472998023,
-0.031192433089017868,
0.08699025958776474,
0.1340510994195938,
0.15835700929164886,
0.1688176542520523,
0.0351719930768013,
0.10989919304847717,
-0.01747763715684414,
-0.017386427149176598,
0.03876282647252083,
-0.18231622874736786,
0.09525076299905777,
0.08914093673229218,
0.0029508559964597225,
0.01945921778678894,
0.03834507614374161,
-0.03728495538234711,
0.0401398241519928,
-0.04060579836368561,
-0.012202792800962925,
0.06211264431476593,
-0.1839160919189453,
-0.2408648282289505,
0.2274816781282425,
-0.05883139371871948,
0.12075459957122803,
-0.1074172630906105,
0.0388881154358387,
0.09239424765110016,
0.003946742974221706,
-0.12784822285175323,
-0.016802815720438957,
-0.1336045265197754,
0.02349940873682499,
0.025863151997327805,
-0.21809488534927368,
-0.03337302431464195,
-0.07612302899360657,
-0.12910082936286926,
0.10896272212266922,
-0.08355991542339325,
-0.003946325741708279,
-0.1636788696050644,
0.15246406197547913,
-0.04550176486372948,
-0.2506675124168396,
-0.0697985589504242,
0.1073322594165802,
-0.06426794081926346,
-0.10545430332422256,
-0.09806908667087555,
-0.06076313182711601,
-0.1184910461306572,
0.08903121948242188,
-0.02793867513537407,
-0.010956162586808205,
0.06681220233440399,
0.1529856026172638,
0.1063731461763382,
0.134054496884346,
-0.0921376571059227,
-0.05439356341958046,
-0.027945484966039658,
-0.058687206357717514,
0.12746375799179077,
-0.21269451081752777,
0.05683112144470215,
-0.09198322892189026,
0.08686072379350662,
0.09234422445297241,
-0.025185801088809967,
-0.006636965088546276,
-0.016730260103940964,
0.04373271390795708,
-0.06627669930458069,
-0.06459998339414597,
0.04683706909418106,
-0.025062741711735725,
-0.10661976039409637,
-0.012636279687285423,
-0.14939440786838531,
0.09361155331134796,
-0.048096682876348495,
0.12889017164707184,
0.12361451983451843,
-0.013516920618712902,
0.14452502131462097,
-0.0344109833240509,
0.04128306731581688,
0.19948606193065643,
-0.0559195950627327,
0.17937302589416504,
0.09929335117340088,
0.24607470631599426,
-0.023032940924167633,
0.1559027135372162,
0.07751280069351196,
0.047819916158914566,
-0.04481421038508415,
0.07982682436704636,
0.17792503535747528,
-0.16924697160720825,
-0.0132758105173707,
-0.002727627055719495,
0.06269925832748413,
0.0764615535736084,
0.17941507697105408,
0.0695825070142746,
-0.024256311357021332,
-0.11415060609579086,
0.1327991634607315,
-0.22946800291538239,
0.1126495748758316,
-0.13463447988033295,
0.032083988189697266,
0.0754493772983551,
-0.04204561561346054,
0.2462315708398819,
0.05949447304010391,
0.0595579631626606,
0.3181558847427368,
0.13314223289489746,
-0.06922804564237595,
0.10528893768787384,
-0.15320977568626404,
0.03150934725999832,
0.08273666352033615,
-0.09554754942655563,
0.16315436363220215,
-0.00036942114820703864,
0.15999042987823486,
0.018672408536076546,
0.1522522121667862,
0.016795564442873,
-0.05774454027414322,
-0.11365371942520142,
0.07374203205108643,
-0.06378450244665146,
0.13684555888175964,
-0.08227214217185974,
-0.020012322813272476,
-0.0764819011092186,
0.027222534641623497,
0.1528998762369156,
-0.13752558827400208,
-0.09195271134376526,
0.043652694672346115,
-0.015800688415765762,
-0.061534374952316284,
-0.017676765099167824,
-0.05179041624069214,
0.037046607583761215,
-0.015065633691847324,
-0.0751090943813324,
-0.07944375276565552,
-0.0712832435965538,
0.09501014649868011,
-0.024915186688303947,
-0.07266707718372345,
0.08172357827425003,
-0.011731885373592377,
-0.15359105169773102,
-0.06238729879260063,
-0.06853251904249191,
-0.0002291905548190698,
-0.02006377838551998,
-0.08990684151649475,
-0.10339091718196869,
-0.09342826902866364,
-0.23305320739746094,
0.05596678704023361,
0.07029302418231964,
-0.16305580735206604,
-0.3463767468929291,
0.1027924120426178,
0.12152516841888428,
0.02325466461479664,
0.071409210562706,
-0.10626564174890518,
0.04090362414717674,
0.11146727204322815,
-0.1557244509458542,
-0.009351786226034164,
-0.19557005167007446,
0.07368140667676926,
-0.0883488804101944,
0.059682127088308334,
0.24756988883018494,
0.029528599232435226,
-0.07083277404308319,
0.02873057685792446,
-0.00780051713809371,
-0.09825827181339264,
0.14222434163093567,
-0.08991539478302002,
0.09637473523616791,
-0.00026595627423375845,
0.15684829652309418,
0.18907678127288818,
-0.15458711981773376,
-0.14033202826976776,
-0.09674269706010818,
0.14479410648345947,
0.06211867183446884,
-0.0372529961168766,
-0.10811741650104523,
0.01974562183022499,
-0.06112126260995865,
-0.029601650312542915,
0.007911887019872665,
-0.07683054357767105,
-0.12131185084581375,
-0.018797792494297028,
0.034572307020425797,
0.09023638069629669,
-0.04436822980642319,
0.09989675879478455,
-0.12473930418491364,
-0.06941474229097366,
0.15009257197380066,
0.1738852560520172,
-0.005270213354378939,
-0.052074894309043884,
0.04252433404326439,
-0.20465219020843506,
0.21950824558734894,
0.020040661096572876,
-0.11681800335645676,
0.040250036865472794,
-0.06049845367670059,
-0.03491505607962608,
-0.03317387402057648,
0.05394359678030014,
0.0704728439450264,
0.019565610215067863,
0.10370522737503052,
0.03767838329076767,
0.10785485059022903,
0.06064344942569733,
-0.017770808190107346,
0.14062391221523285,
-0.10571575164794922,
0.02925300970673561,
-0.08953525125980377,
0.13809356093406677,
0.09677159786224365,
0.08232889324426651,
-0.1858985871076584,
0.005919947754591703,
-0.1444762945175171,
0.12164285778999329,
0.13192151486873627,
-0.14191344380378723,
-0.07274399697780609,
0.0771346241235733,
-0.1234963983297348,
-0.17711733281612396,
0.03189420700073242,
0.18103636801242828,
0.06519806385040283,
-0.12279924005270004,
-0.006558157037943602,
-0.10968402028083801,
0.028583921492099762,
0.09860385954380035,
0.022989608347415924,
0.2123977392911911,
0.20378684997558594,
-0.06350787729024887,
-0.0059052156284451485,
0.12256540358066559,
-0.06976312398910522,
0.12426013499498367,
-0.19104567170143127,
0.09030628949403763,
-0.07854478806257248,
0.01932622864842415,
0.06760245561599731,
0.3132687509059906,
-0.03820325806736946,
-0.08807775378227234,
-0.08255761861801147,
0.03440364822745323,
-0.1550327092409134,
0.08025624603033066,
0.015312965027987957,
-0.12859034538269043,
-0.12081385403871536,
-0.2717425227165222,
0.010946277529001236,
0.1503402143716812,
-0.029265137389302254,
0.11369825899600983,
-0.18735483288764954,
0.0010308686178177595,
0.07235667109489441,
-0.10912372916936874,
-0.04051151126623154,
0.048205405473709106,
0.039326250553131104,
-0.06900060921907425,
0.129390150308609,
-0.0073406994342803955,
-0.2653372585773468,
-0.020911287516355515,
-0.08152107149362564,
-0.03671957924962044,
0.1275995969772339,
-0.024622369557619095,
0.016484173014760017,
0.11034679412841797,
0.07690678536891937,
0.01679602824151516,
-0.01303703524172306,
-0.16922684013843536,
0.016185570508241653,
0.10618115216493607,
0.11009817570447922,
0.1546858251094818,
0.02231215313076973,
0.04699499160051346,
0.10017146170139313,
0.08983635902404785,
0.095210000872612,
-0.12393873184919357,
0.13970135152339935,
-0.019011517986655235,
-0.1162678673863411,
-0.1371079534292221,
-0.19032372534275055,
-0.002281274413689971,
-0.1476990431547165,
-0.09178261458873749,
-0.08539393544197083,
0.020495813339948654,
0.10643953830003738,
-0.037402257323265076,
0.10619554668664932,
0.04672147333621979,
-0.04702915623784065,
0.055566880851984024,
-0.12457539886236191,
0.060907166451215744,
0.0018969869706779718,
0.05055254325270653,
0.14717139303684235,
0.1886967420578003,
0.019178327172994614,
0.06972832977771759,
-0.04402931407094002,
-0.024716228246688843,
0.056482575833797455,
-0.17707620561122894,
-0.006675912998616695,
0.01521322038024664,
-0.01751546375453472,
-0.03563698008656502,
-0.006614175159484148,
0.11404228210449219,
-0.044982586055994034,
0.03491302579641342,
-0.11070563644170761,
-0.03528837859630585,
-0.026871535927057266,
0.009939650073647499,
0.024506157264113426,
-0.061281025409698486,
-0.004182016011327505,
0.0965883657336235,
0.06958146393299103,
-0.04988914355635643,
-0.04281233996152878,
0.08755625784397125,
-0.2330627739429474,
0.13388004899024963,
-0.009489181451499462,
0.02285877987742424,
-0.24489644169807434,
-0.21602830290794373,
-0.019742997363209724,
0.10119989514350891,
-0.13473404943943024,
0.11378352344036102,
-0.038288820534944534,
-0.10878647118806839,
0.007462033536285162,
0.12397027015686035,
0.116815485060215,
0.1607566922903061,
-0.09627816081047058,
0.13278016448020935,
-2.6274573322446967e-32,
0.00623982772231102,
0.0558953583240509,
0.13589999079704285,
0.06675522029399872,
-0.24591782689094543,
-0.029958229511976242,
-0.04516750946640968,
-0.16113275289535522,
0.06506527215242386,
-0.025304188951849937,
-0.11328407377004623,
-0.0589352585375309,
0.089234359562397,
-0.0022482655476778746,
-0.19684527814388275,
-0.10832494497299194,
-0.17147496342658997,
-0.02280486188828945,
-0.1792353391647339,
0.16234098374843597,
0.19157074391841888,
0.11858274042606354,
0.15763472020626068,
-0.025326302275061607,
-0.2913404107093811,
-0.09224105626344681,
-0.04735453426837921,
-0.01550375483930111,
-0.20478272438049316,
-0.13166481256484985,
-0.14168992638587952,
0.024780305102467537,
-0.020291725173592567,
-0.13794738054275513,
-0.006452806759625673,
0.07416759431362152,
-0.05558593198657036,
-0.0001288843632210046,
-0.016464227810502052,
0.04393651336431503,
-0.07625176012516022,
-0.017148679122328758,
0.03583906590938568,
-0.042701199650764465,
0.08654385805130005,
0.044034380465745926,
-0.10653182864189148,
-0.04523434489965439,
0.07378391921520233,
0.033166881650686264,
-0.16808448731899261,
0.09117615222930908,
0.08754020184278488,
0.10407663881778717,
0.19425423443317413,
-0.15434867143630981,
0.06861148774623871,
0.07849753648042679,
-0.1778663545846939,
-0.07508446276187897,
0.0692613497376442,
0.05515197291970253,
-0.012278026901185513,
0.023141587153077126,
0.2178274393081665,
-0.04269370809197426,
-0.04209994524717331,
-0.030291512608528137,
0.22923146188259125,
0.13793368637561798,
0.035166185349226,
-0.04323321208357811,
0.029869506135582924,
-0.19486397504806519,
-0.0008323251968249679,
-0.05613476410508156,
0.022002026438713074,
-0.09685817360877991,
0.04642537236213684,
-0.030827179551124573,
-0.2414306104183197,
-0.05045939236879349,
0.29720649123191833,
-0.05038050189614296,
-0.03093900717794895,
0.20612265169620514,
-0.011145029217004776,
0.06626535207033157,
0.03731127455830574,
-0.08316921442747116,
-0.12091480940580368,
0.08421462029218674,
-0.0031926478259265423,
0.008548237383365631,
0.08666642010211945,
0.10064812749624252,
-0.008487597107887268,
0.028372522443532944,
0.04623476415872574,
0.048611611127853394,
0.08328346163034439,
-0.03231920674443245,
0.24973595142364502,
0.0578012689948082,
0.04607367515563965,
-0.054032810032367706,
0.07861720025539398,
0.22090420126914978,
-0.0587206669151783,
0.017011553049087524,
-0.13431814312934875,
-0.062139686197042465,
-0.04843486472964287,
0.08339647203683853,
-0.07921959459781647,
0.05547622963786125,
0.010353685356676579,
-0.00050882447976619,
-0.02417530119419098,
-0.012380947358906269,
-0.08127385377883911,
0.011623155325651169,
0.17598232626914978,
-0.10645683854818344,
-0.02261164039373398,
0.1422620713710785,
-0.16067826747894287,
-0.18054281175136566,
0.08937960118055344,
-0.03797682747244835,
-0.050422608852386475,
0.06352586299180984,
7.439657565555535e-7,
0.06774959713220596,
-0.00533116003498435,
0.009829457849264145,
-0.07199066877365112,
-0.07316843420267105,
0.029883360490202904,
-0.26694390177726746,
0.05065913125872612,
0.0739012360572815,
0.08982878178358078,
0.155931755900383,
-0.007093691732734442,
0.10713589936494827,
-0.08660714328289032,
-0.024318436160683632,
-0.022200677543878555,
0.07355652749538422,
-0.05167151242494583,
-0.10423349589109421,
0.023419026285409927,
-0.051061391830444336,
0.20168356597423553,
0.03867282718420029,
0.02004113793373108,
0.053400252014398575,
0.20643669366836548,
-0.09818871319293976,
-0.09671057015657425,
0.07525131851434708,
-0.02324019931256771,
0.09938902407884598,
-0.006834758911281824,
-0.023936955258250237,
-0.03216007724404335,
0.04362920671701431,
-0.0799478068947792,
0.045752692967653275,
0.031133150681853294,
0.03906739503145218,
-0.07868978381156921,
0.1305597722530365,
-0.0923827588558197,
-0.07267195731401443,
-0.04252111166715622,
0.010499485768377781,
-0.15221945941448212,
-0.12698255479335785,
-0.0164540596306324,
-0.16610798239707947,
-0.27475929260253906,
-0.009540437720716,
0.11400777101516724,
0.20104794204235077,
0.29953649640083313,
0.004720503464341164,
-0.018800117075443268,
-0.15330930054187775,
-0.13652490079402924,
0.22508321702480316,
0.041732870042324066,
-0.14922674000263214,
-0.09824708849191666,
-0.08886069804430008,
-0.018825164064764977,
0.16352568566799164,
0.003621295327320695,
0.1294720470905304,
1.5208518360289908e-34,
-0.08609232306480408,
0.008143864572048187,
0.08935955911874771,
-0.06997695565223694,
0.1378926932811737,
0.046703871339559555,
0.1591242104768753,
0.10870590060949326,
-0.023607417941093445,
-0.19518093764781952,
-0.12626498937606812
] |
https://github.com/huggingface/datasets/issues/2345 | [Question] How to move and reuse preprocessed dataset? | Also note that for the caching to work, you must reuse the exact same parameters as in the first run. Did you change any parameter ? The `preprocessing_num_workers` should also stay the same | Hi, I am training a gpt-2 from scratch using run_clm.py.
I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess),
I tried to :
copy path_to_cache_dir/datasets to new_cache_dir/datasets
set export HF_DATASETS_CACHE="new_cache_dir/"
but the program still re-preprocess the whole dataset without loading cache.
I also tried to torch.save(lm_datasets, fw), but the saved file is only 14M.
What is the proper way to do this? | 33 | [Question] How to move and reuse preprocessed dataset?
Hi, I am training a gpt-2 from scratch using run_clm.py.
I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess),
I tried to :
copy path_to_cache_dir/datasets to new_cache_dir/datasets
set export HF_DATASETS_CACHE="new_cache_dir/"
but the program still re-preprocess the whole dataset without loading cache.
I also tried to torch.save(lm_datasets, fw), but the saved file is only 14M.
What is the proper way to do this?
Also note that for the caching to work, you must reuse the exact same parameters as in the first run. Did you change any parameter ? The `preprocessing_num_workers` should also stay the same | [
-0.0315178819000721,
0.1342579573392868,
0.017326444387435913,
0.152805358171463,
0.06901928037405014,
0.17719557881355286,
0.041675180196762085,
0.0881136879324913,
-0.07323061674833298,
0.09576130658388138,
-0.06360933184623718,
0.11877427250146866,
-0.013303486630320549,
-0.05505243316292763,
-0.03629324957728386,
-0.30652379989624023,
-0.07071204483509064,
0.02748425118625164,
-0.10938321799039841,
0.005007329396903515,
-0.014202960766851902,
-0.05722704529762268,
0.25755754113197327,
-0.1141340434551239,
-0.08938480913639069,
-0.06802599877119064,
-0.1091834083199501,
0.13100050389766693,
0.12088284641504288,
-0.12201419472694397,
0.06675925850868225,
0.10095004737377167,
0.1723300814628601,
0.19076937437057495,
0.000005216187219048152,
0.09268838167190552,
-0.07461903244256973,
0.05323190614581108,
-0.036264076828956604,
-0.009758790023624897,
0.2476382702589035,
0.08603478968143463,
-0.08276048302650452,
0.0887482613325119,
-0.0889374166727066,
-0.14849664270877838,
-0.09210801869630814,
-0.05606309697031975,
0.19548600912094116,
0.17552626132965088,
-0.07440453767776489,
-0.1451605260372162,
-0.13098354637622833,
-0.10098060965538025,
0.07292188704013824,
-0.14540249109268188,
0.012873909436166286,
-0.025927115231752396,
-0.22103732824325562,
-0.03236242011189461,
0.06196356937289238,
0.03401437774300575,
-0.0074241189286112785,
0.13250210881233215,
-0.09287873655557632,
-0.11208291351795197,
-0.35193389654159546,
0.01147460751235485,
0.11916753649711609,
0.0007210892508737743,
0.04462540149688721,
-0.07358676195144653,
-0.010306882672011852,
0.08108092844486237,
-0.010417907498776913,
-0.144174724817276,
-0.13886325061321259,
0.009354716166853905,
0.09668072313070297,
-0.00189446029253304,
-0.12257969379425049,
-0.06639911979436874,
0.028263820335268974,
-0.21928666532039642,
-0.14275136590003967,
0.022294873371720314,
0.039092712104320526,
0.10475679486989975,
-0.04906027019023895,
0.14684002101421356,
0.14747241139411926,
0.06989146769046783,
0.024682234972715378,
-0.054580025374889374,
-0.05790898948907852,
0.2107076793909073,
-0.1466088891029358,
0.005196911748498678,
-0.10215812921524048,
0.05889437720179558,
0.09267215430736542,
-0.06077586114406586,
0.08400861918926239,
0.010570617392659187,
-0.061340730637311935,
-0.09372774511575699,
-0.13762879371643066,
-0.0082083186134696,
-0.06527086347341537,
-0.07458847761154175,
-0.19763796031475067,
-0.07920906692743301,
-0.1740192025899887,
-0.11707402765750885,
0.21166856586933136,
0.09560844302177429,
0.07485562562942505,
0.012548434548079967,
0.0355999730527401,
-0.0788879469037056,
0.09546824544668198,
0.028075087815523148,
-0.09821829944849014,
0.09296954423189163,
-0.09321265667676926,
0.004694703035056591,
-0.037879813462495804,
0.04453437402844429,
0.035731393843889236,
-0.19136619567871094,
-0.08501112461090088,
-0.03816564753651619,
0.015094609931111336,
-0.06881968677043915,
0.05544423311948776,
-0.10678616911172867,
-0.07502593845129013,
-0.066268689930439,
-0.135933518409729,
0.06385596841573715,
0.3046853840351105,
-0.13210542500019073,
0.03016524948179722,
0.007380522321909666,
-0.0743781179189682,
0.038525015115737915,
0.09970561414957047,
0.28391820192337036,
-0.16383913159370422,
0.27254849672317505,
-0.0657975897192955,
-0.003477046499028802,
-0.011496015824377537,
0.07453113794326782,
0.12525875866413116,
0.09542694687843323,
-0.01691810041666031,
-0.12750811874866486,
-0.03666156157851219,
0.03441585227847099,
-0.06135621666908264,
-0.2494376003742218,
-0.04434952512383461,
-0.01624879613518715,
-0.02216286212205887,
0.08044438064098358,
0.13649025559425354,
0.18406787514686584,
0.19261793792247772,
0.08450315147638321,
0.09070383012294769,
-0.028310824185609818,
-0.028720557689666748,
0.028480807319283485,
-0.18512707948684692,
0.10321351140737534,
0.09831815958023071,
-0.013521525077521801,
0.03818057104945183,
0.02863427996635437,
-0.032799895852804184,
0.021713986992836,
-0.035068098455667496,
-0.02060120366513729,
0.042933139950037,
-0.18862073123455048,
-0.17074453830718994,
0.13963037729263306,
-0.05112374573945999,
0.11779915541410446,
-0.10763940215110779,
0.067908875644207,
0.11820609867572784,
0.014809942804276943,
-0.1094558835029602,
-0.05980599671602249,
-0.13503384590148926,
-0.06916308403015137,
0.0156708937138319,
-0.17259834706783295,
-0.03935258835554123,
-0.07514195889234543,
-0.10058722645044327,
0.1303679496049881,
-0.10532666742801666,
-0.0070510972291231155,
-0.08373629301786423,
0.1357041597366333,
-0.03217652812600136,
-0.27962666749954224,
-0.04185975715517998,
0.14071375131607056,
-0.048586681485176086,
-0.10957621783018112,
-0.07984616607427597,
-0.07291361689567566,
-0.10890038311481476,
0.14215824007987976,
-0.06728881597518921,
0.014009427279233932,
0.0881035253405571,
0.21441178023815155,
0.059274785220623016,
0.09783689677715302,
-0.06392525881528854,
-0.06296499073505402,
-0.07447419315576553,
-0.07901246100664139,
0.09344356507062912,
-0.2236328274011612,
0.065293088555336,
-0.06336311995983124,
0.055333130061626434,
0.07798339426517487,
0.029942259192466736,
-0.05761989951133728,
-0.006865689996629953,
-0.0010064486414194107,
-0.08588454127311707,
-0.06020598113536835,
0.02282857894897461,
-0.018100738525390625,
-0.06030387058854103,
-0.06138281896710396,
-0.14580906927585602,
0.082058846950531,
-0.02975611202418804,
0.11127298325300217,
0.08288884162902832,
-0.0059050582349300385,
0.12767702341079712,
-0.003445713547989726,
0.04711366817355156,
0.22157339751720428,
-0.05699809640645981,
0.19384442269802094,
0.14533653855323792,
0.19254672527313232,
-0.04705304652452469,
0.14003832638263702,
0.04089794680476189,
0.12141861766576767,
-0.033759891986846924,
0.09551186114549637,
0.18444623053073883,
-0.19063855707645416,
-0.0026179607957601547,
0.005436243489384651,
0.0822768434882164,
0.05776040628552437,
0.16437844932079315,
0.05599537119269371,
-0.04991418123245239,
-0.12576650083065033,
0.12177041172981262,
-0.25083127617836,
0.08256810158491135,
-0.14769087731838226,
0.050745002925395966,
0.08567264676094055,
-0.05435565114021301,
0.25158077478408813,
0.06733886152505875,
0.0763329342007637,
0.3110332787036896,
0.12306845933198929,
-0.06508215516805649,
0.08758427947759628,
-0.1561426967382431,
0.0395209863781929,
0.0835239514708519,
-0.10259399563074112,
0.18910470604896545,
0.024530215188860893,
0.17961809039115906,
0.011887477710843086,
0.10493413358926773,
0.01901497319340706,
-0.05499405786395073,
-0.06836161762475967,
0.1227656900882721,
-0.05900460109114647,
0.12774540483951569,
-0.06117083132266998,
0.022357942536473274,
-0.06921425461769104,
0.06329463422298431,
0.13092158734798431,
-0.10319407284259796,
-0.12364702671766281,
0.08218339830636978,
-0.02270297147333622,
-0.055701855570077896,
0.010275100357830524,
-0.07754353433847427,
0.012801297940313816,
-0.034993916749954224,
-0.07068371027708054,
-0.06418391317129135,
-0.06369782984256744,
0.11290548741817474,
-0.04596251994371414,
-0.10098478198051453,
0.06800371408462524,
-0.009431212209165096,
-0.17850269377231598,
-0.08962497115135193,
-0.05115862935781479,
-0.03955599293112755,
-0.0022895541042089462,
-0.05598513409495354,
-0.158135324716568,
-0.08003739267587662,
-0.24993494153022766,
0.05128883942961693,
0.030790463089942932,
-0.1682310849428177,
-0.41786736249923706,
0.08915024995803833,
0.10598859190940857,
0.07127700746059418,
0.09973149746656418,
-0.06069609895348549,
0.04123081639409065,
0.12445615977048874,
-0.11362244188785553,
-0.04093356430530548,
-0.19875779747962952,
0.12351243942975998,
-0.06857295334339142,
0.05792343243956566,
0.21163322031497955,
0.028636233881115913,
-0.06182071194052696,
-0.0034121177159249783,
0.028483476489782333,
-0.06299882382154465,
0.11923858523368835,
-0.06785833835601807,
0.07411766052246094,
-0.031194841489195824,
0.13843978941440582,
0.16801056265830994,
-0.13843701779842377,
-0.13325318694114685,
-0.04522307589650154,
0.12580469250679016,
0.0364670492708683,
-0.04015854746103287,
-0.10433055460453033,
0.045354630798101425,
-0.09808050096035004,
0.005487142130732536,
0.014029179699718952,
-0.060405414551496506,
-0.127431720495224,
-0.02306865155696869,
0.034401193261146545,
0.05246554687619209,
-0.06115831434726715,
0.1067851260304451,
-0.15186524391174316,
-0.06983042508363724,
0.13382211327552795,
0.14055277407169342,
-0.03986914083361626,
-0.050562456250190735,
0.025828327983617783,
-0.21657295525074005,
0.20548377931118011,
0.019166037440299988,
-0.06816878169775009,
0.054933805018663406,
-0.01149047538638115,
-0.020200146362185478,
0.0033327830024063587,
0.06535251438617706,
0.06965621560811996,
0.07025495916604996,
0.10913912206888199,
0.06187639757990837,
0.09020103514194489,
0.03180018812417984,
-0.030285246670246124,
0.14790064096450806,
-0.04905740171670914,
0.06687796860933304,
-0.11839888244867325,
0.12517020106315613,
0.10387314856052399,
0.047629665583372116,
-0.2132570445537567,
0.010677950456738472,
-0.1485520601272583,
0.07561720162630081,
0.11932326853275299,
-0.11240964382886887,
-0.039666056632995605,
0.039971593767404556,
-0.10104408860206604,
-0.15153385698795319,
0.08293154835700989,
0.15511763095855713,
0.08173525333404541,
-0.1326306164264679,
-0.028862833976745605,
-0.12447359412908554,
0.04047274962067604,
0.11301804333925247,
0.02163064293563366,
0.206311896443367,
0.17291881144046783,
-0.07621967792510986,
-0.06347226351499557,
0.1176033467054367,
0.02846471592783928,
0.09654298424720764,
-0.18619094789028168,
0.17946448922157288,
-0.08922092616558075,
0.001805362873710692,
0.06492036581039429,
0.30673807859420776,
-0.06515615433454514,
-0.10549996048212051,
-0.10644324868917465,
0.016172848641872406,
-0.13867643475532532,
0.055014777928590775,
0.008455058559775352,
-0.13936454057693481,
-0.0912412703037262,
-0.31461864709854126,
-0.03922615572810173,
0.1889781951904297,
-0.002698071300983429,
0.11093668639659882,
-0.23215940594673157,
0.022890526801347733,
0.0009325876599177718,
-0.10080871731042862,
-0.04867572337388992,
0.06161290407180786,
0.02357032150030136,
-0.08622513711452484,
0.12310098111629486,
-0.06506162136793137,
-0.3285450339317322,
-0.0071103014051914215,
-0.08479547500610352,
-0.028935648500919342,
0.13152587413787842,
-0.017038168385624886,
0.03494269400835037,
0.10551959276199341,
0.06195027008652687,
0.021271253004670143,
-0.002926743356510997,
-0.12287650257349014,
0.022471243515610695,
0.10364428907632828,
0.04559493809938431,
0.20581912994384766,
0.035941231995821,
0.041951633989810944,
0.11113505065441132,
0.06344397366046906,
0.10355131328105927,
-0.1117025762796402,
0.15340778231620789,
-0.041579850018024445,
-0.1190590038895607,
-0.16739951074123383,
-0.20291288197040558,
0.016064753755927086,
-0.19696906208992004,
-0.11688656359910965,
-0.09081915766000748,
0.04144855588674545,
0.14134818315505981,
-0.054926738142967224,
0.10461495816707611,
0.02075425535440445,
-0.06505473703145981,
0.015338120982050896,
-0.0983319953083992,
0.06672240793704987,
-0.020916802808642387,
0.034075379371643066,
0.12194226682186127,
0.15442542731761932,
0.015423593111336231,
0.07209520041942596,
-0.10777869075536728,
-0.017318913713097572,
0.09410721063613892,
-0.165747731924057,
-0.016801320016384125,
-0.0029444333631545305,
-0.0016494913725182414,
-0.06561456620693207,
0.010127196088433266,
0.07360947877168655,
-0.025465337559580803,
0.07085739076137543,
-0.12942500412464142,
0.01219906099140644,
-0.02754323184490204,
0.04914527013897896,
0.007790723349899054,
-0.03761916980147362,
-0.0026941809337586164,
0.09152445942163467,
0.06302909553050995,
-0.027928609400987625,
0.023452499881386757,
0.09382212162017822,
-0.15601134300231934,
0.1260206252336502,
-0.015543477609753609,
0.04174730181694031,
-0.24583137035369873,
-0.27854183316230774,
0.01592010259628296,
0.1415303498506546,
-0.07188326120376587,
0.09226717799901962,
-0.007010342087596655,
-0.14284828305244446,
0.004615871235728264,
0.0967898890376091,
0.08617068082094193,
0.12280503660440445,
-0.06579328328371048,
0.12239275872707367,
-2.60874933965136e-32,
0.012004262767732143,
0.07458546757698059,
0.14976856112480164,
-0.012007216922938824,
-0.22576385736465454,
-0.07380050420761108,
-0.003302913159132004,
-0.15934976935386658,
0.06992504000663757,
0.0036532683297991753,
-0.12032724171876907,
-0.04764232411980629,
0.07039030641317368,
-0.00975648034363985,
-0.16494755446910858,
-0.09659525007009506,
-0.16109389066696167,
-0.014533949084579945,
-0.14529737830162048,
0.16306385397911072,
0.1874549388885498,
0.09142496436834335,
0.16538646817207336,
0.02932571806013584,
-0.23303820192813873,
-0.09265046566724777,
-0.04600118100643158,
-0.028029244393110275,
-0.16229836642742157,
-0.14354543387889862,
-0.1103581115603447,
0.038439925760030746,
-0.018097640946507454,
-0.13500569760799408,
-0.008571990765631199,
0.06763453036546707,
-0.031238039955496788,
-0.042371612042188644,
0.020689602941274643,
0.033872365951538086,
-0.0917140394449234,
-0.050419703125953674,
0.05015925318002701,
-0.023402826860547066,
0.07025351375341415,
0.08062002062797546,
-0.11432471126317978,
-0.08005903661251068,
0.06956899911165237,
0.030395328998565674,
-0.13838739693164825,
0.09312263131141663,
0.09778846055269241,
0.14198380708694458,
0.16217052936553955,
-0.1811336725950241,
0.004470342770218849,
0.04676264524459839,
-0.17880651354789734,
-0.06527163088321686,
0.06664668768644333,
0.07787351310253143,
-0.053557347506284714,
0.012279748916625977,
0.20258864760398865,
-0.05226648971438408,
-0.010980365797877312,
-0.04246952384710312,
0.2525874078273773,
0.1976386308670044,
-0.0265682190656662,
-0.030301228165626526,
0.021494699642062187,
-0.21065913140773773,
0.022740427404642105,
-0.01932845078408718,
-0.006644876208156347,
-0.11818016320466995,
0.07685065269470215,
-0.014401126652956009,
-0.22764010727405548,
-0.05280881002545357,
0.2709248960018158,
-0.05125018581748009,
-0.05273686721920967,
0.16510359942913055,
-0.01569843292236328,
0.020518245175480843,
0.06217581406235695,
-0.09894275665283203,
-0.07279915362596512,
0.10670511424541473,
-0.00009061041055247188,
-0.05316019430756569,
0.09472985565662384,
0.07258643209934235,
-0.024440329521894455,
-0.019093597307801247,
0.04566454142332077,
0.08929849416017532,
0.08614765107631683,
-0.009458716958761215,
0.21022963523864746,
0.023744653910398483,
0.0757867619395256,
-0.051597800105810165,
0.02317870780825615,
0.16520948708057404,
-0.039128176867961884,
-0.005584306549280882,
-0.12181424349546432,
-0.10265357792377472,
-0.03700879216194153,
0.030964283272624016,
-0.0840146467089653,
0.03114512376487255,
0.02315857820212841,
0.05552753433585167,
-0.04482869431376457,
-0.021138790994882584,
-0.052032992243766785,
-0.04416419938206673,
0.1487596184015274,
-0.108934186398983,
-0.01484987698495388,
0.13290618360042572,
-0.12065466493368149,
-0.15185067057609558,
0.11256953328847885,
-0.006656393874436617,
-0.030616698786616325,
0.062075238674879074,
7.597945455017907e-7,
0.05665441229939461,
-0.02277042716741562,
-0.04785217344760895,
-0.04404124617576599,
-0.06866831332445145,
-0.013006857596337795,
-0.23383846879005432,
0.08981521427631378,
0.04219622537493706,
0.09075481444597244,
0.16569551825523376,
0.006203921046108007,
0.08809749782085419,
-0.06205640360713005,
-0.003964363597333431,
-0.013621548190712929,
0.07048863172531128,
0.014670368283987045,
-0.10524100065231323,
-0.017425844445824623,
-0.05761003494262695,
0.17974278330802917,
0.06617551296949387,
0.03502516448497772,
0.007317465264350176,
0.1777312308549881,
-0.09209918230772018,
-0.1343255490064621,
0.03540339320898056,
-0.051594000309705734,
0.13693538308143616,
-0.0002540100831538439,
-0.010876902379095554,
-0.05555444210767746,
0.0783737525343895,
-0.04655139520764351,
0.03368425369262695,
0.03675353154540062,
0.07309824228286743,
-0.03652837872505188,
0.1269761621952057,
-0.11073100566864014,
-0.070491723716259,
-0.04530233517289162,
0.001535676303319633,
-0.09105338156223297,
-0.08106205612421036,
0.03088567405939102,
-0.12364770472049713,
-0.3092750906944275,
0.017241226509213448,
0.14006289839744568,
0.18117094039916992,
0.29885390400886536,
-0.013745050877332687,
-0.010821525938808918,
-0.16170190274715424,
-0.1285565197467804,
0.2086399346590042,
0.0616043284535408,
-0.11428074538707733,
-0.11717434972524643,
-0.059637151658535004,
-0.007044254336506128,
0.20132675766944885,
-0.008629359304904938,
0.12964555621147156,
1.148072042080771e-34,
-0.11306595057249069,
0.013449870981276035,
0.07111243158578873,
-0.03306594491004944,
0.15098965167999268,
0.0261625275015831,
0.11643033474683762,
0.06559194624423981,
0.01635189726948738,
-0.18886499106884003,
-0.13432669639587402
] |
https://github.com/huggingface/datasets/issues/2345 | [Question] How to move and reuse preprocessed dataset? | > Also note that for the caching to work, you must reuse the exact same parameters as in the first run. Did you change any parameter ? The `preprocessing_num_workers` should also stay the same
I only changed the `preprocessing_num_workers` maybe it is the problem~ I will try again~ | Hi, I am training a gpt-2 from scratch using run_clm.py.
I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess),
I tried to :
copy path_to_cache_dir/datasets to new_cache_dir/datasets
set export HF_DATASETS_CACHE="new_cache_dir/"
but the program still re-preprocess the whole dataset without loading cache.
I also tried to torch.save(lm_datasets, fw), but the saved file is only 14M.
What is the proper way to do this? | 48 | [Question] How to move and reuse preprocessed dataset?
Hi, I am training a gpt-2 from scratch using run_clm.py.
I want to move and reuse the preprocessed dataset (It take 2 hour to preprocess),
I tried to :
copy path_to_cache_dir/datasets to new_cache_dir/datasets
set export HF_DATASETS_CACHE="new_cache_dir/"
but the program still re-preprocess the whole dataset without loading cache.
I also tried to torch.save(lm_datasets, fw), but the saved file is only 14M.
What is the proper way to do this?
> Also note that for the caching to work, you must reuse the exact same parameters as in the first run. Did you change any parameter ? The `preprocessing_num_workers` should also stay the same
I only changed the `preprocessing_num_workers` maybe it is the problem~ I will try again~ | [
-0.03252187743782997,
0.11342821270227432,
0.003552090609446168,
0.16063326597213745,
0.08345600217580795,
0.17237308621406555,
0.061922457069158554,
0.09197136014699936,
-0.08665428310632706,
0.10220353305339813,
-0.07108563184738159,
0.11802037060260773,
-0.01737438514828682,
-0.05958638712763786,
-0.03761172667145729,
-0.31273505091667175,
-0.06926079094409943,
0.02905898541212082,
-0.10806114226579666,
-0.007240109145641327,
-0.016519902274012566,
-0.05861296504735947,
0.258574903011322,
-0.12482139468193054,
-0.09394542127847672,
-0.07653321325778961,
-0.1045965775847435,
0.12903152406215668,
0.11290376633405685,
-0.13515138626098633,
0.06779437512159348,
0.09681379795074463,
0.18002840876579285,
0.19400587677955627,
0.000005138187134434702,
0.07309133559465408,
-0.06908638775348663,
0.06421899795532227,
-0.04839931055903435,
-0.017590250819921494,
0.2418375462293625,
0.08952878415584564,
-0.07527720183134079,
0.09435208886861801,
-0.08311107754707336,
-0.1411036252975464,
-0.10617923736572266,
-0.039062149822711945,
0.19927240908145905,
0.19812795519828796,
-0.07094171643257141,
-0.15597011148929596,
-0.12261170893907547,
-0.10851339250802994,
0.08278437703847885,
-0.1400202065706253,
0.013530182652175426,
-0.012455916032195091,
-0.21753813326358795,
-0.022340796887874603,
0.057117562741041183,
0.03885817155241966,
-0.014414518140256405,
0.13562412559986115,
-0.0860782116651535,
-0.10962308198213577,
-0.346186101436615,
-0.014317055232822895,
0.12584814429283142,
0.010277781635522842,
0.05382482707500458,
-0.07762166112661362,
-0.017029089853167534,
0.09379713982343674,
-0.018260229378938675,
-0.15555928647518158,
-0.1357850730419159,
0.030951878055930138,
0.10054108500480652,
-0.00019076540775131434,
-0.13492020964622498,
-0.0695343017578125,
0.02054184302687645,
-0.21406659483909607,
-0.11740477383136749,
0.019154639914631844,
0.02938966080546379,
0.10165218263864517,
-0.053687456995248795,
0.13615506887435913,
0.169860377907753,
0.05738716199994087,
0.03337656706571579,
-0.04940849542617798,
-0.0616900734603405,
0.20863820612430573,
-0.1475832313299179,
0.012070810422301292,
-0.09777694940567017,
0.047086603939533234,
0.06917136907577515,
-0.07552270591259003,
0.08139588683843613,
0.006210659630596638,
-0.07436889410018921,
-0.09412466734647751,
-0.14044569432735443,
-0.005920726340264082,
-0.0615333653986454,
-0.0631728544831276,
-0.19976690411567688,
-0.07985219359397888,
-0.18224938213825226,
-0.10940556228160858,
0.21118049323558807,
0.1079452708363533,
0.07575150579214096,
-0.006020120810717344,
0.049193888902664185,
-0.06625855714082718,
0.10132824629545212,
0.03542173653841019,
-0.10218358784914017,
0.09965460747480392,
-0.09791664779186249,
0.0077192639000713825,
-0.0476078987121582,
0.0554829016327858,
0.01907687447965145,
-0.18040819466114044,
-0.07324377447366714,
-0.03872937336564064,
0.020632850006222725,
-0.06375773251056671,
0.05376191437244415,
-0.10682261735200882,
-0.06926873326301575,
-0.057173069566488266,
-0.13888803124427795,
0.05003073066473007,
0.3154468536376953,
-0.14842429757118225,
0.02531856670975685,
-0.010854832828044891,
-0.07937006652355194,
0.036751750856637955,
0.10499784350395203,
0.2975637912750244,
-0.15941864252090454,
0.2742947041988373,
-0.06434868276119232,
0.0040372577495872974,
-0.033441849052906036,
0.06680473685264587,
0.14027492702007294,
0.10040558129549026,
-0.006034011021256447,
-0.13192738592624664,
-0.040993500500917435,
0.04166179150342941,
-0.06284844875335693,
-0.24750001728534698,
-0.03876689821481705,
-0.03634126856923103,
-0.019805651158094406,
0.0868828296661377,
0.12722541391849518,
0.19069582223892212,
0.17928850650787354,
0.08700550347566605,
0.09059175848960876,
-0.016461361199617386,
-0.029198642820119858,
0.03326251730322838,
-0.18790285289287567,
0.1080566942691803,
0.10421255230903625,
-0.006794893182814121,
0.016806533560156822,
0.01850682683289051,
-0.026857150718569756,
0.011977859772741795,
-0.02185753360390663,
-0.030588170513510704,
0.05766952037811279,
-0.18695038557052612,
-0.17533114552497864,
0.15367937088012695,
-0.05181962251663208,
0.11078386753797531,
-0.11759321391582489,
0.07209562510251999,
0.11488746851682663,
0.018487000837922096,
-0.10896839201450348,
-0.07298095524311066,
-0.1411970555782318,
-0.07320881634950638,
0.003961987793445587,
-0.17682529985904694,
-0.02634877897799015,
-0.0858316570520401,
-0.07719409465789795,
0.11484596133232117,
-0.10789142549037933,
0.005279334262013435,
-0.07759641110897064,
0.1405135691165924,
-0.041493866592645645,
-0.2844567596912384,
-0.048046790063381195,
0.14398279786109924,
-0.031727273017168045,
-0.11067721247673035,
-0.07312291115522385,
-0.06972625851631165,
-0.11784633249044418,
0.14797520637512207,
-0.07995475083589554,
0.016103854402899742,
0.08954545110464096,
0.2154984474182129,
0.051902249455451965,
0.08555116504430771,
-0.06545669585466385,
-0.07082003355026245,
-0.0774744302034378,
-0.07597657293081284,
0.08647653460502625,
-0.21874231100082397,
0.07123187929391861,
-0.06623228639364243,
0.05069129914045334,
0.07373667508363724,
0.028933212161064148,
-0.058056578040122986,
-0.002601467538625002,
-0.012646599672734737,
-0.07257896661758423,
-0.07529503107070923,
0.033789437264204025,
-0.014153719879686832,
-0.054519422352313995,
-0.06981874257326126,
-0.1403706818819046,
0.08058875799179077,
-0.04468882083892822,
0.1141042709350586,
0.0754041001200676,
-0.02106843702495098,
0.12843574583530426,
-0.0018839450785890222,
0.0563981793820858,
0.23105281591415405,
-0.06134869158267975,
0.17755772173404694,
0.14006222784519196,
0.1946699619293213,
-0.046319667249917984,
0.1468159705400467,
0.046641334891319275,
0.11893104016780853,
-0.032866500318050385,
0.10320038348436356,
0.17723079025745392,
-0.20164009928703308,
0.0067790900357067585,
0.0013156691566109657,
0.09295538067817688,
0.0684567242860794,
0.1535433977842331,
0.054023560136556625,
-0.05416804924607277,
-0.11633678525686264,
0.12219243496656418,
-0.26045292615890503,
0.0907491147518158,
-0.14637453854084015,
0.04896872118115425,
0.08214690536260605,
-0.04744848981499672,
0.2516763508319855,
0.06487672030925751,
0.0696529895067215,
0.2985154092311859,
0.11872567981481552,
-0.06801499426364899,
0.07803590595722198,
-0.1591746062040329,
0.042948272079229355,
0.08121402561664581,
-0.09377258270978928,
0.18868184089660645,
0.006200253497809172,
0.17475393414497375,
0.01530137937515974,
0.10475129634141922,
0.02407262660562992,
-0.04840272292494774,
-0.04460041970014572,
0.12364654988050461,
-0.0449189618229866,
0.1233815848827362,
-0.06732341647148132,
0.03022199124097824,
-0.06320495158433914,
0.06134677305817604,
0.13237710297107697,
-0.11104191094636917,
-0.12744732201099396,
0.09644465148448944,
-0.03251858800649643,
-0.04641630873084068,
0.025518443435430527,
-0.07909587025642395,
0.013861879706382751,
-0.04135468602180481,
-0.06802523136138916,
-0.06641042232513428,
-0.06261219084262848,
0.12220469117164612,
-0.05188514292240143,
-0.11115261912345886,
0.07223297655582428,
-0.010605903342366219,
-0.190331369638443,
-0.1094106137752533,
-0.05659623071551323,
-0.04336351901292801,
0.00031578337075188756,
-0.051946986466646194,
-0.1635085791349411,
-0.08076653629541397,
-0.24620294570922852,
0.05350037291646004,
0.023646481335163116,
-0.155783012509346,
-0.42158570885658264,
0.11572585254907608,
0.0955536887049675,
0.062342457473278046,
0.108639657497406,
-0.06168700009584427,
0.04217657819390297,
0.1273803561925888,
-0.11141020059585571,
-0.05015088617801666,
-0.20029976963996887,
0.1294560581445694,
-0.0772121399641037,
0.0767161026597023,
0.20714616775512695,
0.0194177757948637,
-0.059393152594566345,
-0.007493306882679462,
0.027218179777264595,
-0.07267700880765915,
0.1239815279841423,
-0.06824886053800583,
0.07552144676446915,
-0.014985568821430206,
0.12814654409885406,
0.17668215930461884,
-0.11882943660020828,
-0.13709881901741028,
-0.036985062062740326,
0.11792922765016556,
0.025717562064528465,
-0.03449365496635437,
-0.1215374618768692,
0.04382722079753876,
-0.08646810054779053,
0.01055868249386549,
0.008214497938752174,
-0.056462887674570084,
-0.1304597407579422,
-0.014281070791184902,
0.019591541960835457,
0.03655082359910011,
-0.04951362684369087,
0.11066132038831711,
-0.1448301374912262,
-0.07600147277116776,
0.13309220969676971,
0.14448946714401245,
-0.04283973574638367,
-0.04769762605428696,
0.020224783569574356,
-0.2088819295167923,
0.19442641735076904,
0.02413283847272396,
-0.0775032714009285,
0.047125864773988724,
-0.012924392707645893,
-0.017393358051776886,
0.003846887731924653,
0.05250028893351555,
0.07462965697050095,
0.09280615299940109,
0.11120158433914185,
0.06973712891340256,
0.11084885895252228,
0.02163059450685978,
-0.009249765425920486,
0.13385683298110962,
-0.05067053437232971,
0.06273160874843597,
-0.11172668635845184,
0.1166914626955986,
0.09481002390384674,
0.0532403364777565,
-0.2058471143245697,
0.015074867755174637,
-0.14737816154956818,
0.08496458828449249,
0.12476252764463425,
-0.10976975411176682,
-0.04539866000413895,
0.03762388229370117,
-0.10084860026836395,
-0.15658533573150635,
0.07613275200128555,
0.1373060792684555,
0.09720838069915771,
-0.13768303394317627,
-0.02041677199304104,
-0.10269685834646225,
0.04465126246213913,
0.11164450645446777,
0.009243328124284744,
0.20218051970005035,
0.1766953468322754,
-0.06524372845888138,
-0.04683148115873337,
0.11173055320978165,
0.0324917770922184,
0.1077902689576149,
-0.20252172648906708,
0.18282774090766907,
-0.08106089383363724,
-0.006308562122285366,
0.06594426184892654,
0.32401591539382935,
-0.05637273192405701,
-0.10869360715150833,
-0.10569742321968079,
0.028792398050427437,
-0.12886962294578552,
0.059966109693050385,
0.00618008291348815,
-0.13752058148384094,
-0.09212794899940491,
-0.3178165555000305,
-0.04826761409640312,
0.1872028410434723,
0.007891594432294369,
0.11017884314060211,
-0.25566333532333374,
0.015754159539937973,
0.002693069400265813,
-0.09335578978061676,
-0.04296800494194031,
0.05975354090332985,
0.028495147824287415,
-0.08483351767063141,
0.10005392879247665,
-0.06114337593317032,
-0.3353019058704376,
0.0022837123833596706,
-0.09018076956272125,
-0.02505013346672058,
0.13937479257583618,
-0.029650883749127388,
0.03422236442565918,
0.11533492803573608,
0.05772743374109268,
0.0209193117916584,
-0.008985037915408611,
-0.11798713356256485,
0.014049004763364792,
0.13343144953250885,
0.048305898904800415,
0.20808057487010956,
0.03335008770227432,
0.04784277454018593,
0.11450480669736862,
0.0637572854757309,
0.09341300278902054,
-0.11624762415885925,
0.15200191736221313,
-0.046179868280887604,
-0.104673832654953,
-0.16053520143032074,
-0.21634124219417572,
0.03080158308148384,
-0.20714423060417175,
-0.11144071817398071,
-0.07507913559675217,
0.04334290698170662,
0.14286808669567108,
-0.04369285702705383,
0.10785795748233795,
0.0051830424927175045,
-0.06693916767835617,
0.012985299341380596,
-0.09992387890815735,
0.0794755294919014,
-0.025429341942071915,
0.018408358097076416,
0.11666759848594666,
0.13103261590003967,
0.004412553273141384,
0.06434854865074158,
-0.11971403658390045,
-0.021631356328725815,
0.08763529360294342,
-0.17991043627262115,
-0.01705818809568882,
-0.015530961565673351,
-0.007347160018980503,
-0.04137725010514259,
0.004637662321329117,
0.08090192824602127,
-0.024852188304066658,
0.07369288057088852,
-0.11351769417524338,
0.005143404938280582,
-0.026680923998355865,
0.0601445697247982,
0.028814217075705528,
-0.036534205079078674,
0.006957467179745436,
0.10988132655620575,
0.0514090321958065,
-0.029481191188097,
0.04028471186757088,
0.1034756675362587,
-0.1613919734954834,
0.1297946721315384,
-0.0200642216950655,
0.059183210134506226,
-0.24700593948364258,
-0.26542985439300537,
0.025455420836806297,
0.16351743042469025,
-0.06014600396156311,
0.08408330380916595,
-0.017999837175011635,
-0.14914867281913757,
-0.00510311359539628,
0.08513659983873367,
0.07436192780733109,
0.1254739612340927,
-0.05142170563340187,
0.12500815093517303,
-2.6078832941883917e-32,
0.01656149886548519,
0.06287064403295517,
0.14703775942325592,
-0.012141844257712364,
-0.24204936623573303,
-0.07010705024003983,
0.0006513767875730991,
-0.15631896257400513,
0.07217799127101898,
-0.0021835947409272194,
-0.12239176034927368,
-0.040053464472293854,
0.07614979147911072,
-0.0026768650859594345,
-0.1828075349330902,
-0.09675867110490799,
-0.16545216739177704,
-0.009513362310826778,
-0.14683546125888824,
0.14603738486766815,
0.19165079295635223,
0.09048455953598022,
0.16784200072288513,
0.031775545328855515,
-0.2321370244026184,
-0.09752850979566574,
-0.059175170958042145,
-0.035602230578660965,
-0.1606224626302719,
-0.13259978592395782,
-0.11128198355436325,
0.047782786190509796,
-0.025295967236161232,
-0.14651872217655182,
-0.014444634318351746,
0.05769095942378044,
-0.030499311164021492,
-0.05895476043224335,
0.01798076741397381,
0.05084295570850372,
-0.08246015757322311,
-0.041198428720235825,
0.047894686460494995,
-0.031121065840125084,
0.06317593902349472,
0.08967921882867813,
-0.11069740355014801,
-0.06390008330345154,
0.06118834391236305,
0.02716350369155407,
-0.14936563372612,
0.0911351814866066,
0.10100320726633072,
0.1481415033340454,
0.1538175344467163,
-0.19419467449188232,
-0.0038966413121670485,
0.04462752491235733,
-0.18414361774921417,
-0.06503567844629288,
0.07553786784410477,
0.07953662425279617,
-0.0593968890607357,
0.027969304472208023,
0.2090950906276703,
-0.049084972590208054,
-0.005254894029349089,
-0.040855564177036285,
0.24698036909103394,
0.1834898442029953,
-0.030938472598791122,
-0.0201369971036911,
0.01689768210053444,
-0.2148396521806717,
0.023129496723413467,
-0.024928605183959007,
-0.02017020620405674,
-0.12204183638095856,
0.08548483997583389,
-0.019411083310842514,
-0.22221307456493378,
-0.043795693665742874,
0.27730628848075867,
-0.05160687491297722,
-0.05354097858071327,
0.17467159032821655,
-0.017072584480047226,
0.028475934639573097,
0.050730422139167786,
-0.10273472964763641,
-0.060684412717819214,
0.11053495854139328,
-0.002540434245020151,
-0.06208956241607666,
0.09278947114944458,
0.07261054217815399,
-0.021756798028945923,
-0.020486721768975258,
0.04414885863661766,
0.08099910616874695,
0.08131619542837143,
-0.003968183882534504,
0.19868358969688416,
0.021237090229988098,
0.086948923766613,
-0.047587212175130844,
0.029522376134991646,
0.1536923497915268,
-0.03024156577885151,
-0.004597673658281565,
-0.11754796653985977,
-0.11305959522724152,
-0.02805505134165287,
0.040240611881017685,
-0.0697890892624855,
0.017671745270490646,
0.019423069432377815,
0.05543222278356552,
-0.038817793130874634,
-0.023544248193502426,
-0.04844430088996887,
-0.05048093572258949,
0.15321902930736542,
-0.11019162088632584,
-0.022483084350824356,
0.1207442507147789,
-0.12800180912017822,
-0.14899267256259918,
0.11697463691234589,
-0.016177022829651833,
-0.029977137222886086,
0.05725821852684021,
7.575309268759156e-7,
0.03680428862571716,
-0.011287298984825611,
-0.05081748589873314,
-0.034420982003211975,
-0.08518124371767044,
-0.0084695378318429,
-0.2392795979976654,
0.08826304972171783,
0.043574944138526917,
0.10139166563749313,
0.17255957424640656,
-0.0008245785720646381,
0.07954838871955872,
-0.05345924198627472,
0.002924954518675804,
-0.024349641054868698,
0.07587026059627533,
0.03461901471018791,
-0.10518276691436768,
-0.013982721604406834,
-0.052307989448308945,
0.19284619390964508,
0.08092927187681198,
0.04923192039132118,
0.011285031214356422,
0.1820429265499115,
-0.09925166517496109,
-0.15072844922542572,
0.040512923151254654,
-0.05139951780438423,
0.13685743510723114,
-0.0032662604935467243,
-0.009037480689585209,
-0.05443204939365387,
0.08077343553304672,
-0.042220305651426315,
0.03929009288549423,
0.03205699473619461,
0.08471043407917023,
-0.033551089465618134,
0.12715089321136475,
-0.1061437577009201,
-0.06777122616767883,
-0.042323384433984756,
-0.0052612158469855785,
-0.08008433133363724,
-0.09082620590925217,
0.032637275755405426,
-0.12337879836559296,
-0.30270519852638245,
0.027331683784723282,
0.13557210564613342,
0.17591257393360138,
0.2999921441078186,
-0.018217939883470535,
-0.015428782440721989,
-0.17290867865085602,
-0.12702088057994843,
0.20160463452339172,
0.06686913967132568,
-0.12088320404291153,
-0.13158273696899414,
-0.046714771538972855,
-0.0014434196054935455,
0.21505185961723328,
-0.017690196633338928,
0.1262199580669403,
1.0557951615693704e-34,
-0.12860830128192902,
0.013327179476618767,
0.07950390875339508,
-0.03288347274065018,
0.14634454250335693,
0.0181861761957407,
0.10776598751544952,
0.05808191001415253,
0.0287624541670084,
-0.20189490914344788,
-0.1391986757516861
] |
https://github.com/huggingface/datasets/issues/2344 | Is there a way to join multiple datasets in one? | Hi ! We don't have `join`/`merge` on a certain column as in pandas.
Maybe you can just use the [concatenate_datasets](https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate#datasets.concatenate_datasets) function.
| **Is your feature request related to a problem? Please describe.**
I need to join 2 datasets, one that is in the hub and another I've created from my files. Is there an easy way to join these 2?
**Describe the solution you'd like**
Id like to join them with a merge or join method, just like pandas dataframes.
**Additional context**
If you want to extend an existing dataset with more data, for example for training a language model, you need that functionality. I've not found it in the documentation. | 21 | Is there a way to join multiple datasets in one?
**Is your feature request related to a problem? Please describe.**
I need to join 2 datasets, one that is in the hub and another I've created from my files. Is there an easy way to join these 2?
**Describe the solution you'd like**
Id like to join them with a merge or join method, just like pandas dataframes.
**Additional context**
If you want to extend an existing dataset with more data, for example for training a language model, you need that functionality. I've not found it in the documentation.
Hi ! We don't have `join`/`merge` on a certain column as in pandas.
Maybe you can just use the [concatenate_datasets](https://huggingface.co/docs/datasets/package_reference/main_classes.html?highlight=concatenate#datasets.concatenate_datasets) function.
| [
-0.11409489810466766,
-0.028208067640662193,
-0.03940526023507118,
0.0785117819905281,
0.19042132794857025,
0.1998971849679947,
0.09311416000127792,
-0.022774318233132362,
0.13086041808128357,
0.2359553724527359,
-0.09798724204301834,
0.1039576604962349,
0.09905008971691132,
0.08654486387968063,
0.10389029234647751,
-0.22443784773349762,
-0.056693024933338165,
0.043441031128168106,
-0.1171659603714943,
-0.023377379402518272,
0.12098091840744019,
0.20930708944797516,
0.1018039807677269,
0.0019124518148601055,
-0.06517857313156128,
0.14906010031700134,
-0.050520170480012894,
-0.047021057456731796,
0.12040650099515915,
0.030946267768740654,
0.1735476404428482,
0.05238844081759453,
0.13601531088352203,
0.13846905529499054,
0.000005857933501829393,
-0.04833957552909851,
-0.005916352849453688,
-0.06866747885942459,
0.03710681572556496,
-0.20503279566764832,
0.05047702044248581,
0.17831730842590332,
0.023296507075428963,
0.041629042476415634,
0.0404544323682785,
0.07577572762966156,
0.27861088514328003,
0.14946763217449188,
0.09939692169427872,
-0.05899679288268089,
-0.06032707169651985,
0.07769810408353806,
-0.0412742905318737,
-0.1185833290219307,
-0.062042783945798874,
0.17649249732494354,
0.01894238218665123,
0.0973767414689064,
-0.09397468715906143,
-0.03741591051220894,
0.07419540733098984,
-0.041283927857875824,
0.05312879756093025,
-0.062392327934503555,
0.034990184009075165,
0.22666531801223755,
-0.26450493931770325,
-0.12531819939613342,
0.016679750755429268,
0.16531825065612793,
-0.023674454540014267,
-0.10585754364728928,
-0.005048510152846575,
-0.016087602823972702,
0.026327716186642647,
0.024571947753429413,
-0.23761563003063202,
-0.12362375110387802,
0.05870750546455383,
0.06845098733901978,
-0.06222516670823097,
-0.1451532393693924,
0.11733586341142654,
-0.04111722484230995,
-0.14645087718963623,
0.05684806779026985,
-0.11900563538074493,
0.1696469634771347,
-0.11270227283239365,
-0.06630928069353104,
0.05571047589182854,
-0.022885991260409355,
-0.16250716149806976,
0.14947305619716644,
-0.1764237880706787,
-0.10777851194143295,
-0.2343599945306778,
0.14369109272956848,
0.1326722353696823,
-0.0359194278717041,
-0.14858807623386383,
-0.060796186327934265,
-0.19501754641532898,
0.07620485126972198,
-0.049010269343853,
-0.1392437219619751,
-0.05591561272740364,
-0.21089713275432587,
-0.00100267818197608,
-0.11296167969703674,
-0.059787318110466,
0.06539907306432724,
-0.004522973671555519,
-0.07016418874263763,
-0.13583354651927948,
0.03718029707670212,
-0.15213865041732788,
0.1326463222503662,
0.039383865892887115,
-0.0046654934994876385,
0.1380269080400467,
0.025970714166760445,
-0.023161383345723152,
0.06491989642381668,
0.04218269884586334,
0.011453949846327305,
-0.026066048070788383,
0.0888025164604187,
-0.17909419536590576,
0.00045389914885163307,
-0.0018307325663045049,
0.10196343809366226,
0.1292894333600998,
-0.07322300970554352,
0.014284581877291203,
-0.19155050814151764,
-0.12912501394748688,
-0.024545077234506607,
0.15390169620513916,
0.044309794902801514,
0.09702696651220322,
-0.14614662528038025,
-0.22622132301330566,
-0.08916235715150833,
0.22379152476787567,
-0.0650683343410492,
-0.025361765176057816,
0.062425702810287476,
-0.0809551402926445,
-0.05475272238254547,
-0.1305486559867859,
0.1641150712966919,
-0.33342835307121277,
0.13583776354789734,
0.09791897982358932,
-0.06878028064966202,
-0.09381237626075745,
0.001783017534762621,
-0.2286657691001892,
-0.08761511743068695,
-0.04880907014012337,
-0.03427576646208763,
-0.15308219194412231,
-0.06800343841314316,
0.1422014832496643,
0.06316067278385162,
0.22505445778369904,
-0.004665724467486143,
0.11974737793207169,
-0.05903393402695656,
-0.19425101578235626,
0.057050012052059174,
-0.06095610186457634,
-0.06077338010072708,
-0.05078039690852165,
0.1885867416858673,
0.09912312030792236,
-0.02502124011516571,
-0.02087799273431301,
-0.009666476398706436,
0.1045026108622551,
0.013162311166524887,
-0.04964541271328926,
0.09158989787101746,
0.027294859290122986,
-0.06685736775398254,
0.01699499972164631,
0.11033869534730911,
-0.02135797217488289,
-0.08296974003314972,
0.010168679058551788,
-0.0065404996275901794,
0.04743306338787079,
0.16661684215068817,
-0.003854417707771063,
-0.07175683975219727,
0.026857029646635056,
-0.07869818061590195,
0.0837155282497406,
-0.1263343095779419,
0.045409172773361206,
0.024219680577516556,
0.05496726930141449,
0.009599498473107815,
-0.17584778368473053,
-0.19702427089214325,
-0.16418179869651794,
-0.011189552024006844,
0.1284169703722,
0.029415354132652283,
0.08243117481470108,
-0.027714096009731293,
0.0893339291214943,
-0.11237641423940659,
-0.09520526230335236,
-0.03854585438966751,
-0.09720536321401596,
-0.04610346257686615,
-0.003685989649966359,
0.06221070885658264,
0.022093333303928375,
0.1979682296514511,
0.07739386707544327,
0.01629484072327614,
-0.12404795736074448,
0.2893657684326172,
-0.02977525256574154,
0.07606351375579834,
0.04549247398972511,
-0.013694857247173786,
-0.0921260416507721,
-0.018132563680410385,
0.18704432249069214,
0.0849129855632782,
-0.30068033933639526,
0.22883175313472748,
0.29544687271118164,
-0.13868524134159088,
0.1064625233411789,
0.034071553498506546,
-0.1788763850927353,
-0.2146153599023819,
-0.13030602037906647,
-0.05725559964776039,
-0.13471512496471405,
0.10629558563232422,
-0.03906850516796112,
0.0160970501601696,
0.007828310132026672,
0.02463672310113907,
0.12739728391170502,
0.05109492689371109,
0.01253141276538372,
-0.06994478404521942,
0.05227024853229523,
-0.04630916193127632,
0.047050442546606064,
0.15770535171031952,
0.10579220205545425,
0.06937524676322937,
0.052742939442396164,
0.0014473103219643235,
0.003809880232438445,
0.11015505343675613,
-0.0584937259554863,
-0.005073142237961292,
-0.038912560790777206,
-0.0447084978222847,
0.06017512083053589,
0.1316782832145691,
0.08637234568595886,
-0.030601533129811287,
-0.04656785726547241,
0.04957309365272522,
0.08781762421131134,
-0.19907595217227936,
0.04388238489627838,
0.16226647794246674,
0.044457439333200455,
0.08097116649150848,
-0.18476654589176178,
-0.002519352827221155,
0.06717033684253693,
0.08630335330963135,
-0.00015921759768389165,
-0.1077050194144249,
-0.014789479784667492,
-0.13169217109680176,
0.059411875903606415,
-0.03481658175587654,
-0.0846080482006073,
-0.06414127349853516,
-0.06561485677957535,
-0.07936699688434601,
0.09867750108242035,
-0.058539826422929764,
0.11802877485752106,
0.05029311403632164,
-0.05261801555752754,
0.13853013515472412,
-0.13129742443561554,
-0.09503255784511566,
0.1088593453168869,
0.23777085542678833,
0.10834625363349915,
0.05944567173719406,
-0.04678003117442131,
0.13171570003032684,
-0.13956312835216522,
-0.19370919466018677,
0.010257177986204624,
0.010248830541968346,
-0.09032149612903595,
0.053926367312669754,
0.2864910364151001,
0.055281735956668854,
-0.10662096738815308,
-0.0943852961063385,
0.2300785332918167,
0.028410209342837334,
-0.07526910305023193,
0.011936324648559093,
0.11504099518060684,
-0.02359686978161335,
-0.1025700718164444,
0.14230138063430786,
-0.14543123543262482,
-0.03369530290365219,
0.04335819184780121,
-0.1894671469926834,
-0.0462896004319191,
-0.08264171332120895,
-0.08236544579267502,
0.030643388628959656,
-0.09340830147266388,
-0.048590727150440216,
0.001395822619087994,
-0.032971400767564774,
0.1680629849433899,
0.036952827125787735,
-0.01054039690643549,
0.012634560465812683,
-0.0014947137096896768,
0.16213905811309814,
-0.059499021619558334,
-0.13645626604557037,
-0.01945648342370987,
-0.13897185027599335,
-0.14350026845932007,
-0.08238328248262405,
0.042443159967660904,
-0.01892552338540554,
-0.0847056657075882,
-0.03364323452115059,
0.037314701825380325,
0.05195217579603195,
-0.142304927110672,
0.07844049483537674,
-0.1904701292514801,
0.013758087530732155,
-0.0685470700263977,
-0.09932245314121246,
-0.05493972450494766,
-0.0955287516117096,
0.0608183853328228,
-0.09297986328601837,
0.04436282068490982,
0.09021886438131332,
-0.05923914164304733,
-0.19435042142868042,
-0.063661590218544,
-0.03668658807873726,
0.27197498083114624,
0.07869754731655121,
0.014147001318633556,
0.2549777328968048,
-0.08438887447118759,
-0.17741098999977112,
0.06926438957452774,
-0.0019018790917471051,
-0.031583476811647415,
-0.020488357171416283,
-0.10619767755270004,
0.11038099229335785,
-0.08874835073947906,
0.07597622275352478,
-0.009489585645496845,
-0.026031002402305603,
-0.025378838181495667,
0.015781952068209648,
-0.022160377353429794,
-0.1370295137166977,
-0.08940914273262024,
-0.28112897276878357,
0.002821648260578513,
0.025438688695430756,
0.045964185148477554,
0.044253792613744736,
0.16757620871067047,
-0.057843804359436035,
-0.010309208184480667,
0.12984539568424225,
-0.0035977615043520927,
-0.1502736657857895,
-0.056124672293663025,
-0.04506603628396988,
-0.10280679166316986,
0.18900546431541443,
0.03243805468082428,
-0.025590229779481888,
-0.0776027962565422,
0.0421583354473114,
-0.031145047396421432,
-0.18047410249710083,
0.08661355078220367,
-0.07849518954753876,
-0.13885793089866638,
-0.015633516013622284,
0.13592888414859772,
0.08295860886573792,
-0.021023090928792953,
-0.02018016204237938,
0.04629461467266083,
0.1491037756204605,
0.14104622602462769,
-0.04512245953083038,
-0.07812900841236115,
-0.002089124172925949,
0.09290257841348648,
-0.032003339380025864,
0.2123323678970337,
0.22402046620845795,
-0.013442832045257092,
-0.017111394554376602,
0.26683852076530457,
-0.01518229115754366,
0.19760900735855103,
-0.13276241719722748,
-0.29444020986557007,
-0.10364297032356262,
-0.1093531921505928,
0.12630227208137512,
0.31591343879699707,
-0.01918654888868332,
0.2753317356109619,
-0.05740588903427124,
0.04877886548638344,
-0.053407344967126846,
0.08129963278770447,
0.03138509392738342,
0.013269792310893536,
-0.1381649672985077,
0.005545043386518955,
-0.09996295720338821,
0.0038537795189768076,
0.03016658127307892,
0.06393814831972122,
0.006463511381298304,
-0.16765227913856506,
-0.1204172894358635,
-0.04860236123204231,
-0.08007074147462845,
-0.015466427430510521,
0.04834940284490585,
-0.2898416221141815,
-0.07288990914821625,
0.31268078088760376,
-0.14854253828525543,
-0.14898943901062012,
0.009585747495293617,
-0.11253456771373749,
0.09861743450164795,
0.0524318553507328,
-0.12371786683797836,
0.0022635390050709248,
0.035224396735429764,
-0.02962869592010975,
-0.04409237205982208,
0.09038986265659332,
0.05351988226175308,
0.057554591447114944,
-0.07526759058237076,
-0.06639523059129715,
-0.10056593269109726,
-0.08887317031621933,
0.1359148621559143,
-0.1044703871011734,
-0.1017894521355629,
-0.1275133341550827,
0.10387592762708664,
-0.1471821665763855,
-0.2386554628610611,
-0.07429338246583939,
0.15429510176181793,
0.01702408865094185,
-0.09346190094947815,
0.10794118046760559,
-0.026111558079719543,
0.0840652734041214,
0.16142825782299042,
0.056109875440597534,
-0.07067258656024933,
0.11718036234378815,
-0.179494246840477,
-0.06163376569747925,
-0.18022331595420837,
0.0021445120219141245,
-0.12097526341676712,
0.06972984969615936,
-0.046036504209041595,
0.15109199285507202,
-0.03835149109363556,
0.057243384420871735,
-0.14801453053951263,
0.19747291505336761,
-0.08070996403694153,
0.05203201621770859,
0.033936791121959686,
-0.021725311875343323,
-0.00143007084261626,
-0.08597488701343536,
-0.136621356010437,
0.05190197750926018,
-0.16724742949008942,
-0.10036972910165787,
0.051728688180446625,
-0.027895543724298477,
-0.06447049975395203,
0.04328440502285957,
0.1449119746685028,
0.0338241308927536,
0.12345018982887268,
0.06591065973043442,
-0.03411044552922249,
0.08471594750881195,
-0.03381536528468132,
0.1968519389629364,
-0.12103470414876938,
0.0603170245885849,
-0.031184112653136253,
0.17811517417430878,
-0.16057650744915009,
-0.07614170014858246,
0.05960913002490997,
-0.033152755349874496,
-0.008578603155910969,
-0.2104446142911911,
0.043283022940158844,
-0.015469768084585667,
0.06171547994017601,
0.14448213577270508,
0.10761965811252594,
0.09311416745185852,
-0.016582496464252472,
0.13681358098983765,
-2.6183925075583306e-32,
0.002265851479023695,
0.0029975452926009893,
-0.08492773026227951,
-0.023656323552131653,
-0.0745907798409462,
-0.0886039286851883,
-0.0013964558020234108,
-0.036204997450113297,
-0.05873166397213936,
0.0502404049038887,
-0.017343072220683098,
0.13840985298156738,
0.06184855103492737,
0.030082233250141144,
-0.12615609169006348,
0.001629076898097992,
0.09214866161346436,
0.04927816987037659,
0.055142659693956375,
0.06495986878871918,
0.1466873288154602,
-0.0865897610783577,
0.0377514585852623,
0.10271470248699188,
-0.13750408589839935,
0.0806562602519989,
-0.06532685458660126,
0.22135312855243683,
0.0958215668797493,
0.042965132743120193,
-0.09293070435523987,
0.09782272577285767,
0.025719186291098595,
0.1335361897945404,
-0.0680830180644989,
0.14600026607513428,
-0.2146749645471573,
-0.13786588609218597,
0.06487645208835602,
-0.013746211305260658,
0.02774982526898384,
0.12057853490114212,
0.06976894289255142,
-0.07775738090276718,
0.31344130635261536,
0.02973952889442444,
-0.054324328899383545,
-0.1023009791970253,
0.03225061297416687,
-0.01516522467136383,
0.13880467414855957,
-0.045445702970027924,
-0.005503288935869932,
0.06605340540409088,
0.19041013717651367,
0.034576915204524994,
-0.01041420828551054,
-0.03883608058094978,
0.033615563064813614,
0.07353407144546509,
0.08764247596263885,
0.10618667304515839,
0.009440581314265728,
0.0339580737054348,
0.04747731238603592,
0.10950116068124771,
0.08581855893135071,
-0.09518031775951385,
0.09264567494392395,
0.03792766481637955,
0.1603848785161972,
0.14682571589946747,
0.04304986447095871,
0.08121523261070251,
-0.261077344417572,
-0.16354109346866608,
-0.2605336308479309,
0.15718397498130798,
0.15003183484077454,
-0.18771713972091675,
-0.2179703265428543,
-0.023474469780921936,
0.17673878371715546,
-0.02826198935508728,
-0.0013303818413987756,
0.15826787054538727,
-0.058786727488040924,
0.07058797031641006,
-0.015843326225876808,
0.08178713172674179,
-0.14676901698112488,
-0.022595059126615524,
-0.07266520708799362,
0.016717933118343353,
-0.0422353520989418,
0.29216358065605164,
-0.02420157752931118,
-0.04297816753387451,
0.08206067234277725,
-0.10198467969894409,
-0.011546979658305645,
0.0021389054600149393,
0.09167469292879105,
0.13164623081684113,
0.10869407653808594,
-0.05464627221226692,
0.035029731690883636,
-0.01199763361364603,
-0.22062711417675018,
0.09983059018850327,
0.014773864299058914,
-0.08548112213611603,
0.04379015043377876,
-0.12167241424322128,
0.16405338048934937,
0.15013785660266876,
0.11163586378097534,
-0.13870884478092194,
-0.10724423825740814,
0.1000194251537323,
-0.2701815962791443,
-0.06299959123134613,
-0.12633368372917175,
0.010307946242392063,
0.011476299725472927,
-0.005561079829931259,
-0.17711541056632996,
0.054270584136247635,
0.05189326032996178,
-0.1675870567560196,
-0.05829257890582085,
0.11456519365310669,
7.475023835468164e-7,
-0.1729796677827835,
-0.030876416712999344,
-0.026971573010087013,
0.02974040061235428,
-0.011043439619243145,
0.08921298384666443,
-0.07761374861001968,
0.054742343723773956,
0.1646028757095337,
0.09342227131128311,
-0.009435150772333145,
-0.16520702838897705,
0.00767885847017169,
0.04554426670074463,
-0.0770547166466713,
-0.11020997911691666,
-0.13908404111862183,
0.025181319564580917,
-0.1285279095172882,
0.0039367941208183765,
0.024243466556072235,
0.09283357113599777,
0.09814245998859406,
0.04234438017010689,
0.08357667177915573,
-0.03438058868050575,
-0.09063958376646042,
0.05571523681282997,
0.09386836737394333,
0.052042897790670395,
-0.07962702959775925,
-0.09766598045825958,
-0.05187832564115524,
0.14824706315994263,
-0.07683762907981873,
0.06951720267534256,
-0.11098751425743103,
-0.09188854694366455,
-0.09181598573923111,
0.017889805138111115,
0.08796382695436478,
-0.15146014094352722,
-0.055705729871988297,
-0.081179179251194,
0.17720694839954376,
0.00547267310321331,
0.0347948782145977,
0.07901987433433533,
-0.050857387483119965,
-0.039996542036533356,
0.02827339433133602,
-0.02603398822247982,
-0.03214417025446892,
0.164497971534729,
-0.02671884559094906,
-0.0720815509557724,
0.10130459070205688,
-0.09341800957918167,
-0.08668535947799683,
0.06004255264997482,
-0.0314333513379097,
-0.05056945979595184,
-0.14492210745811462,
0.022115319967269897,
-0.06275375932455063,
0.07488268613815308,
0.013051033020019531,
1.3027499942878245e-34,
-0.07660622894763947,
-0.07710183411836624,
0.0024543236941099167,
-0.00206886138767004,
0.0030682235956192017,
-0.002252408070489764,
-0.07671169191598892,
0.1348617970943451,
0.036443404853343964,
-0.021766865625977516,
-0.039833467453718185
] |
https://github.com/huggingface/datasets/issues/2344 | Is there a way to join multiple datasets in one? | Hi! You can use `datasets_sql` for that now. As of recently, PyArrow also supports querying tables via Substrait, so I think we can start adding these methods to the API soon. | **Is your feature request related to a problem? Please describe.**
I need to join 2 datasets, one that is in the hub and another I've created from my files. Is there an easy way to join these 2?
**Describe the solution you'd like**
Id like to join them with a merge or join method, just like pandas dataframes.
**Additional context**
If you want to extend an existing dataset with more data, for example for training a language model, you need that functionality. I've not found it in the documentation. | 31 | Is there a way to join multiple datasets in one?
**Is your feature request related to a problem? Please describe.**
I need to join 2 datasets, one that is in the hub and another I've created from my files. Is there an easy way to join these 2?
**Describe the solution you'd like**
Id like to join them with a merge or join method, just like pandas dataframes.
**Additional context**
If you want to extend an existing dataset with more data, for example for training a language model, you need that functionality. I've not found it in the documentation.
Hi! You can use `datasets_sql` for that now. As of recently, PyArrow also supports querying tables via Substrait, so I think we can start adding these methods to the API soon. | [
-0.15656454861164093,
0.24979110062122345,
-0.05170692503452301,
0.049164969474077225,
0.14978806674480438,
0.1692378669977188,
0.07864255458116531,
0.009773001074790955,
0.03241745010018349,
0.23833218216896057,
-0.1541384905576706,
0.1512720286846161,
0.025418564677238464,
-0.005167470313608646,
0.07838805019855499,
-0.10685346275568008,
-0.031624678522348404,
-0.00971879344433546,
0.022336825728416443,
-0.011170638725161552,
0.05959467962384224,
0.18080909550189972,
-0.01875411905348301,
0.02594546042382717,
-0.06858129799365997,
0.15634341537952423,
-0.04928232356905937,
-0.03876451030373573,
-0.006660672836005688,
0.005693080835044384,
0.18856392800807953,
0.02088617905974388,
0.15543322265148163,
0.16142353415489197,
0.0000056381286412943155,
-0.029429489746689796,
0.08833632618188858,
-0.0528259240090847,
0.023251526057720184,
-0.21010684967041016,
0.05545227602124214,
0.09622788429260254,
0.09574388712644577,
0.008609469048678875,
0.12908756732940674,
0.0429244190454483,
0.2844057083129883,
0.19192413985729218,
0.0973898246884346,
-0.026609936729073524,
-0.07881323993206024,
0.004910856485366821,
-0.05647158995270729,
-0.0724005401134491,
0.0006409127381630242,
0.14987727999687195,
0.044610247015953064,
0.1530589759349823,
-0.07030542194843292,
-0.1472172886133194,
0.1411529928445816,
-0.17308390140533447,
-0.031328681856393814,
-0.020630614832043648,
-0.04648304730653763,
0.13400466740131378,
-0.22490061819553375,
-0.16893751919269562,
0.01170196384191513,
0.1171204075217247,
0.01992945373058319,
-0.22718077898025513,
-0.04358663409948349,
-0.02726198360323906,
0.0005421394016593695,
0.03978737071156502,
-0.22621244192123413,
-0.06404469907283783,
0.0762467086315155,
0.02710372395813465,
-0.015705199912190437,
-0.06762587279081345,
0.09901905059814453,
-0.033893510699272156,
-0.2207876592874527,
0.11357350647449493,
-0.02878153696656227,
0.1984173208475113,
-0.12095379829406738,
-0.024654584005475044,
0.2317175567150116,
-0.04919924587011337,
-0.12604516744613647,
0.1430821716785431,
-0.21535301208496094,
-0.12436255067586899,
-0.2905113399028778,
0.0953449234366417,
0.10573109984397888,
-0.007188259158283472,
-0.21270999312400818,
-0.028761036694049835,
-0.09717558324337006,
0.05523093789815903,
-0.005303904879838228,
-0.15101446211338043,
-0.18071185052394867,
-0.14006511867046356,
-0.04556038975715637,
-0.2118353396654129,
-0.05165760591626167,
0.0642036497592926,
-0.04479663446545601,
-0.12357557564973831,
-0.05868389457464218,
0.07622067630290985,
-0.09305869787931442,
0.16676750779151917,
0.028333120048046112,
0.007534961681813002,
0.00046521020703949034,
0.0571964867413044,
-0.05481583625078201,
0.06143636256456375,
-0.0009943859186023474,
0.051692746579647064,
-0.08843183517456055,
0.09798580408096313,
-0.20483480393886566,
0.05774503946304321,
-0.022063590586185455,
0.18868736922740936,
0.1220979169011116,
-0.0905836671590805,
0.03251759707927704,
-0.04746565595269203,
-0.11363746970891953,
-0.0004193159402348101,
0.1328650414943695,
0.003480507992208004,
0.061493925750255585,
-0.12277090549468994,
-0.21857929229736328,
-0.07508429139852524,
0.2692488729953766,
-0.008521843701601028,
-0.055490169674158096,
0.019324393942952156,
-0.12754957377910614,
0.037462636828422546,
-0.16755469143390656,
0.11381895840167999,
-0.3039911687374115,
0.160172238945961,
0.01993170753121376,
-0.11357538402080536,
-0.11794126033782959,
-0.006502973847091198,
-0.15584516525268555,
-0.06484510004520416,
-0.01656464859843254,
-0.13910351693630219,
-0.13089658319950104,
-0.14388611912727356,
0.1661803275346756,
0.031471263617277145,
0.1666722297668457,
0.03823096305131912,
0.10161887854337692,
0.0286839809268713,
-0.1332889050245285,
0.039019376039505005,
-0.10790664702653885,
-0.06600970774888992,
-0.01497394498437643,
0.26593899726867676,
0.1460498571395874,
-0.023386821150779724,
-0.06497427821159363,
-0.005953850690275431,
0.11004284024238586,
-0.051070988178253174,
-0.04181716963648796,
0.08349453657865524,
0.2097383439540863,
-0.0716305524110794,
0.07234828919172287,
0.14894463121891022,
-0.014424240216612816,
-0.0910952016711235,
-0.01982133649289608,
0.04091149568557739,
0.013338077813386917,
0.23318824172019958,
0.06920401006937027,
-0.15249985456466675,
0.08429601788520813,
-0.03263584524393082,
0.15813417732715607,
-0.10086256265640259,
0.03218724951148033,
-0.06324470788240433,
0.016908997669816017,
-0.051007166504859924,
-0.12145505100488663,
-0.17056578397750854,
-0.04277246445417404,
-0.024329183623194695,
0.06382112950086594,
0.043681107461452484,
0.07499930262565613,
-0.07024121284484863,
0.09694091230630875,
-0.08416125178337097,
-0.1291724294424057,
-0.08264243602752686,
-0.07074911892414093,
-0.02920416183769703,
-0.01799345389008522,
-0.007704880554229021,
0.03371893987059593,
0.12836433947086334,
0.09288027882575989,
0.04087976738810539,
0.008464661426842213,
0.36683642864227295,
-0.07719913125038147,
-0.03561614826321602,
0.04304978996515274,
-0.03450286388397217,
-0.14704014360904694,
-0.007587866857647896,
0.19247280061244965,
0.16386139392852783,
-0.17059281468391418,
0.1509723663330078,
0.24108847975730896,
-0.08720826357603073,
0.04452251270413399,
0.012324174866080284,
-0.05930177494883537,
-0.17502889037132263,
-0.06526444852352142,
-0.11801119893789291,
-0.07004360854625702,
0.10297754406929016,
0.02072926051914692,
-0.003614590736106038,
-0.04106421768665314,
0.044695377349853516,
0.1340925097465515,
0.11658305674791336,
-0.012485679239034653,
0.07081017643213272,
-0.01649419404566288,
0.08454097807407379,
-0.07537861913442612,
0.1119389683008194,
0.12628063559532166,
0.1175832524895668,
0.09593246132135391,
0.011124231852591038,
0.14436696469783783,
0.0936749130487442,
-0.030705105513334274,
-0.06890852749347687,
-0.011786900460720062,
-0.023832885548472404,
0.06035592406988144,
0.05264172703027725,
-0.0027381088584661484,
-0.004143144935369492,
-0.06483491510152817,
0.04381967708468437,
0.09082949906587601,
-0.13324999809265137,
-0.01755938120186329,
0.08854994177818298,
0.13218794763088226,
0.11785351485013962,
-0.1599256992340088,
0.04105762392282486,
0.04577534273266792,
0.025381291285157204,
0.06416585296392441,
-0.06846608221530914,
0.01601206511259079,
-0.08796343207359314,
0.10285774618387222,
-0.09086963534355164,
-0.029871804639697075,
-0.10366364568471909,
-0.011411391198635101,
-0.11115045845508575,
0.15784648060798645,
0.013447834178805351,
0.025468895211815834,
-0.03217868506908417,
-0.15501737594604492,
0.09284251183271408,
-0.06638319790363312,
-0.1298311948776245,
0.17327554523944855,
0.24846909940242767,
0.09945648163557053,
0.034766361117362976,
0.011664402671158314,
0.1858641505241394,
-0.07763643562793732,
-0.1552237570285797,
-0.04300843924283981,
0.013858976773917675,
-0.079218290746212,
0.087337426841259,
0.21133407950401306,
-0.0224048662930727,
-0.11447668075561523,
-0.06651906669139862,
0.24027293920516968,
0.04702083021402359,
-0.0234658345580101,
0.003642894560471177,
-0.004718962591141462,
-0.04015866667032242,
-0.10763675719499588,
0.12458436191082001,
-0.2421276867389679,
0.041043154895305634,
-0.00027182328631170094,
-0.07671010494232178,
-0.019213559105992317,
-0.21571487188339233,
-0.04134734347462654,
-0.036636833101511,
-0.08067654073238373,
-0.17338131368160248,
0.033927276730537415,
0.031112274155020714,
0.18995755910873413,
0.11691749840974808,
0.017641214653849602,
0.06223895028233528,
-0.05977068841457367,
0.13798171281814575,
-0.05577220767736435,
-0.12714721262454987,
-0.014417773112654686,
-0.13408632576465607,
0.002175307832658291,
-0.07902181148529053,
0.03575654327869415,
-0.01876874454319477,
-0.009613924659788609,
0.010525892488658428,
0.07418165355920792,
0.12536701560020447,
-0.22034570574760437,
0.12277110666036606,
-0.2557874023914337,
0.019291045144200325,
-0.1219366267323494,
-0.0009264323743991554,
-0.018122397363185883,
-0.1688792109489441,
0.0975816398859024,
-0.06495007872581482,
0.02849174290895462,
0.015589962713420391,
0.017923127859830856,
-0.1676480919122696,
-0.09181874990463257,
-0.07640577852725983,
0.24443455040454865,
0.03580178692936897,
-0.028178773820400238,
0.060511957854032516,
-0.05663049966096878,
-0.1803961992263794,
0.06936883181333542,
0.005479360464960337,
-0.042995523661375046,
-0.008601556532084942,
-0.15338005125522614,
0.0856812372803688,
-0.07567030191421509,
0.08069704473018646,
-0.03536755591630936,
-0.028300872072577477,
-0.05191025882959366,
0.003309014718979597,
-0.0715462937951088,
-0.08135530352592468,
-0.0880572497844696,
-0.1595732420682907,
-0.005357643589377403,
-0.015673834830522537,
0.005507591180503368,
0.14522024989128113,
0.059171147644519806,
-0.09032361209392548,
-0.049018096178770065,
0.034539271146059036,
-0.024216637015342712,
-0.15018928050994873,
-0.013428015634417534,
-0.018197236582636833,
-0.127955824136734,
0.10657072812318802,
-0.03286086767911911,
-0.004298124462366104,
-0.18813316524028778,
-0.08772027492523193,
-0.11585438251495361,
-0.1264100968837738,
0.1484910398721695,
-0.04961109906435013,
-0.11888163536787033,
-0.006909115705639124,
0.10891639441251755,
-0.026063214987516403,
-0.050121553242206573,
-0.04226812347769737,
-0.005687987897545099,
0.14760072529315948,
0.050260499119758606,
-0.05004161596298218,
-0.027445193380117416,
0.020585818216204643,
0.12064383924007416,
0.01131298765540123,
0.18419751524925232,
0.09042814373970032,
0.021603010594844818,
-0.09697139263153076,
0.13823628425598145,
0.09700027108192444,
0.18137718737125397,
-0.06445986032485962,
-0.20007355511188507,
-0.11293474584817886,
-0.09632623940706253,
0.15086190402507782,
0.1534348428249359,
-0.139528289437294,
0.21038830280303955,
-0.16686317324638367,
-0.0609143041074276,
-0.049608346074819565,
0.02045741304755211,
0.004431755281984806,
-0.0731155276298523,
-0.19189676642417908,
-0.05539494380354881,
-0.06787069886922836,
-0.02634402923285961,
0.007041833363473415,
0.01732630841434002,
-0.16633005440235138,
-0.15494129061698914,
-0.053329430520534515,
-0.043952278792858124,
-0.06873025745153427,
0.05290978029370308,
0.06996864080429077,
-0.18070939183235168,
0.02564542554318905,
0.22543153166770935,
-0.26216238737106323,
-0.12652818858623505,
-0.05181216448545456,
-0.0870227962732315,
0.06415732949972153,
0.0213934239000082,
-0.1973317265510559,
0.0015416811220347881,
0.021225370466709137,
-0.01482287235558033,
0.019481558352708817,
0.1163148358464241,
0.16273225843906403,
0.01410530973225832,
-0.038718052208423615,
0.06715499609708786,
-0.043670691549777985,
-0.08337176591157913,
0.15400820970535278,
-0.1827475130558014,
-0.06667114794254303,
-0.1688900738954544,
0.013958952389657497,
-0.11712895333766937,
-0.19730854034423828,
-0.039592646062374115,
0.11763384938240051,
0.019533570855855942,
-0.09994109719991684,
0.08928358554840088,
-0.022673865780234337,
0.08195416629314423,
0.08221730589866638,
0.06794176250696182,
-0.07848291099071503,
0.1056099683046341,
-0.09802547097206116,
-0.07550200074911118,
-0.029976144433021545,
-0.09537551552057266,
-0.21282131969928741,
0.021573003381490707,
-0.09445767849683762,
0.17440111935138702,
-0.05467362701892853,
0.043601471930742264,
-0.1735294759273529,
0.20116664469242096,
-0.0397682785987854,
0.11533636599779129,
0.010732251219451427,
-0.025320902466773987,
0.02851003222167492,
-0.13856759667396545,
-0.06700488179922104,
0.041326265782117844,
-0.06895036995410919,
0.01865622214972973,
-0.027177823707461357,
-0.04535764455795288,
-0.10484950244426727,
0.023819008842110634,
0.18280009925365448,
0.10158809274435043,
0.1604546308517456,
0.10528230667114258,
-0.036047931760549545,
0.04839785397052765,
-0.036106985062360764,
0.1578569859266281,
-0.1425073891878128,
0.019494153559207916,
-0.005645878612995148,
0.1677674949169159,
-0.1883573979139328,
-0.148537740111351,
0.04342161491513252,
-0.043615639209747314,
-0.11455576121807098,
-0.26200321316719055,
0.07242599874734879,
0.06405975669622421,
0.07900819182395935,
0.128028005361557,
0.09583235532045364,
0.056886568665504456,
-0.03970703110098839,
0.10816780477762222,
-2.5484764545601226e-32,
0.020695405080914497,
-0.010473640635609627,
-0.03078177198767662,
-0.16326624155044556,
-0.008003448136150837,
-0.09528538584709167,
0.08454830199480057,
-0.10897596925497055,
-0.06821676343679428,
0.06224551424384117,
-0.027130665257573128,
0.21971631050109863,
0.06976988911628723,
0.08056394755840302,
-0.08498329669237137,
0.08073272556066513,
0.07564501464366913,
-0.009009134024381638,
0.08646401017904282,
0.11256751418113708,
0.16927747428417206,
-0.1228749081492424,
0.05994901433587074,
0.14830851554870605,
-0.14448702335357666,
0.014599062502384186,
0.0024298522621393204,
0.11039318144321442,
0.12832339107990265,
0.04561653733253479,
-0.08127714693546295,
0.15290674567222595,
0.043832410126924515,
0.15866988897323608,
-0.08310046046972275,
0.09138757735490799,
-0.16073426604270935,
-0.13694290816783905,
0.00013927006511949003,
-0.04958971589803696,
-0.10382183641195297,
0.13544274866580963,
0.19177860021591187,
-0.07278971374034882,
0.3002190887928009,
0.07364333420991898,
-0.06194412708282471,
-0.04296155646443367,
-0.0339776836335659,
0.040622528642416,
0.13894139230251312,
-0.040093954652547836,
-0.03551989048719406,
0.1330348402261734,
0.21987487375736237,
0.04324275255203247,
0.03619718924164772,
-0.008270792663097382,
-0.05472211539745331,
0.033340126276016235,
0.1307593137025833,
0.12244211882352829,
0.00044997379882261157,
0.05038950964808464,
0.02625112421810627,
0.07270365953445435,
0.1632404774427414,
-0.08034323900938034,
0.13766302168369293,
0.18555323779582977,
0.030385078862309456,
0.18877765536308289,
0.043679945170879364,
-0.015148179605603218,
-0.30925852060317993,
-0.13508707284927368,
-0.3249102234840393,
0.18495085835456848,
0.11773360520601273,
-0.030428392812609673,
-0.22791095077991486,
-0.004170604515820742,
0.16784341633319855,
0.006187227554619312,
0.05451910197734833,
0.030245348811149597,
-0.06139472872018814,
0.08458634465932846,
-0.01783304661512375,
-0.04566560685634613,
-0.11578422784805298,
-0.02296149730682373,
-0.025698697194457054,
0.019073491916060448,
-0.0001285999023821205,
0.4009212553501129,
-0.07145664840936661,
-0.11691480129957199,
0.05795520544052124,
-0.04713771492242813,
-0.004641995299607515,
0.01869872957468033,
0.06131806969642639,
0.10924683511257172,
0.1974162757396698,
-0.05403265729546547,
-0.05142148956656456,
-0.08518953621387482,
-0.2412378489971161,
0.08701251447200775,
0.020859509706497192,
-0.08632247895002365,
0.10556682199239731,
-0.16462433338165283,
0.15646852552890778,
0.2691609859466553,
0.07976149767637253,
-0.056662801653146744,
-0.02556290291249752,
0.04850660637021065,
-0.1386898010969162,
-0.13633385300636292,
-0.015964772552251816,
-0.10468544811010361,
0.04043557122349739,
-0.010711466893553734,
-0.18162982165813446,
0.022837413474917412,
0.04967837780714035,
-0.06887764483690262,
-0.0577697716653347,
0.10988686978816986,
7.60587113290967e-7,
-0.13968704640865326,
-0.023235483095049858,
0.01135241985321045,
0.14099521934986115,
-0.028968626633286476,
0.14658446609973907,
-0.055867236107587814,
0.0698036476969719,
0.09551223367452621,
0.03220972791314125,
0.07741367071866989,
-0.18897363543510437,
0.013396745547652245,
0.120899498462677,
-0.006229173857718706,
-0.06906269490718842,
-0.1646801233291626,
0.10600773990154266,
-0.1752968579530716,
-0.005011285189539194,
0.1478719711303711,
0.06244989484548569,
-0.003148777177557349,
-0.014432416297495365,
0.05731264501810074,
-0.15957193076610565,
-0.028117598965764046,
-0.0023920631501823664,
0.011657606810331345,
0.14004486799240112,
-0.01762421987950802,
0.018284380435943604,
-0.11713812500238419,
0.14822472631931305,
-0.04257902875542641,
0.1106741651892662,
-0.16731005907058716,
-0.09617481380701065,
-0.07982094585895538,
0.032233480364084244,
0.055724695324897766,
-0.1901177316904068,
0.031654149293899536,
-0.05231938511133194,
0.16937761008739471,
-0.029493525624275208,
0.03640999644994736,
0.09204545617103577,
0.029460860416293144,
-0.0559118390083313,
0.010634586215019226,
-0.013374116271734238,
-0.08743566274642944,
0.008994401432573795,
-0.09461655467748642,
0.01131985429674387,
-0.021117381751537323,
-0.07107947021722794,
-0.04237139970064163,
0.12273453921079636,
-0.028208928182721138,
-0.02429395169019699,
-0.08106961101293564,
-0.09701430797576904,
0.007929080165922642,
0.1708218902349472,
0.017000755295157433,
9.809822929792244e-35,
0.0052610887214541435,
-0.04505477845668793,
-0.0032534461934119463,
0.016866426914930344,
0.1591913253068924,
-0.06502990424633026,
-0.07673299312591553,
-0.005868568085134029,
0.03332081809639931,
-0.11680552363395691,
-0.05642438679933548
] |
https://github.com/huggingface/datasets/issues/2343 | Columns are removed before or after map function applied? | Hi! Columns are removed **after** applying the function and **before** updating the examples with the function's output (as per the docs [here](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.map.remove_columns)). I agree the docs on this should be more clear. | ## Describe the bug
According to the documentation when applying map function the [remove_columns ](https://huggingface.co/docs/datasets/processing.html#removing-columns) will be removed after they are passed to the function, but in the [source code](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.map) it's documented that they are removed before applying function. I thinks the source code doc is more accurate, right?
| 32 | Columns are removed before or after map function applied?
## Describe the bug
According to the documentation when applying map function the [remove_columns ](https://huggingface.co/docs/datasets/processing.html#removing-columns) will be removed after they are passed to the function, but in the [source code](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.map) it's documented that they are removed before applying function. I thinks the source code doc is more accurate, right?
Hi! Columns are removed **after** applying the function and **before** updating the examples with the function's output (as per the docs [here](https://huggingface.co/docs/datasets/package_reference/main_classes#datasets.Dataset.map.remove_columns)). I agree the docs on this should be more clear. | [
0.06175217777490616,
-0.23172764480113983,
-0.05260199308395386,
0.06840815395116806,
0.06718194484710693,
0.02121889777481556,
0.0665050745010376,
-0.23880504071712494,
0.11776784062385559,
0.1152125746011734,
0.09484966099262238,
-0.08602051436901093,
0.28745585680007935,
-0.017685111612081528,
-0.026307856664061546,
-0.02714797854423523,
-0.019729165360331535,
0.007509802468121052,
-0.29624107480049133,
0.10154701769351959,
-0.14918553829193115,
0.02729974314570427,
-0.03426530584692955,
-0.05673811584711075,
0.10630650818347931,
0.030551757663488388,
-0.14646799862384796,
-0.021557113155722618,
-0.04116189479827881,
0.04502260312438011,
-0.07619238644838333,
0.07046768814325333,
-0.15580645203590393,
0.01385723426938057,
0.000005028351097280392,
0.09366163611412048,
-0.0458938330411911,
0.10232705622911453,
0.20863105356693268,
0.1460726410150528,
-0.020616333931684494,
-0.02864205464720726,
0.016273055225610733,
0.012873535044491291,
-0.07399046421051025,
-0.08933283388614655,
0.021767878904938698,
-0.027239114046096802,
0.1375662088394165,
-0.04945644363760948,
-0.082830049097538,
0.05377969518303871,
-0.020078977569937706,
-0.038182277232408524,
0.03920997679233551,
0.032420121133327484,
0.0009528925875201821,
-0.1239677146077156,
-0.38283541798591614,
-0.012238484807312489,
0.048530932515859604,
0.003610502928495407,
-0.06830459833145142,
-0.00556949945166707,
0.04728091508150101,
-0.031135721132159233,
-0.10602883249521255,
-0.1596297174692154,
0.00703606428578496,
0.007549995556473732,
-0.005298182368278503,
0.1258627027273178,
0.2001442015171051,
0.18652945756912231,
-0.04603537172079086,
0.0070146312937140465,
-0.13884951174259186,
-0.053157150745391846,
0.05245078727602959,
0.09804221987724304,
-0.12694799900054932,
-0.07466737926006317,
-0.05662904679775238,
-0.07038655132055283,
-0.2363252490758896,
0.22562530636787415,
-0.13575023412704468,
0.16464582085609436,
-0.09783827513456345,
-0.14347991347312927,
-0.028059545904397964,
-0.18635176122188568,
-0.0854949951171875,
0.18209302425384521,
0.1493084728717804,
-0.11398612707853317,
0.02700955793261528,
0.02559381164610386,
0.012295324355363846,
-0.11744903028011322,
-0.10684720426797867,
0.0683429092168808,
0.012230444699525833,
0.07953827828168869,
0.05340604484081268,
0.024812571704387665,
0.10964223742485046,
-0.05524516850709915,
0.04343128949403763,
0.0710446685552597,
0.12109923362731934,
0.011721469461917877,
0.28437837958335876,
0.05071175843477249,
-0.03197776898741722,
0.059667859226465225,
0.022419439628720284,
0.06373223662376404,
0.06034840643405914,
0.20857630670070648,
0.14409136772155762,
-0.0787203460931778,
-0.0817943811416626,
0.07628875225782394,
-0.10393837839365005,
0.09603343904018402,
-0.019889473915100098,
0.07287174463272095,
0.07442400604486465,
0.09251819550991058,
-0.10273953527212143,
-0.12044556438922882,
0.06476568430662155,
-0.02418118342757225,
0.011078066192567348,
-0.20112545788288116,
-0.04612496867775917,
0.12868037819862366,
-0.16132192313671112,
0.0013311704387888312,
0.058596543967723846,
-0.1417015790939331,
0.2452874630689621,
0.028736058622598648,
-0.017572160810232162,
-0.025206835940480232,
0.07267982512712479,
0.24748697876930237,
0.00424539390951395,
0.15441514551639557,
-0.22499458491802216,
0.20484568178653717,
-0.08226992934942245,
0.1576225310564041,
-0.06931119412183762,
0.11763689666986465,
0.027626870200037956,
0.010767757892608643,
-0.18595677614212036,
-0.020053410902619362,
0.06264914572238922,
-0.16954638063907623,
-0.006920343730598688,
-0.17625734210014343,
0.1486617922782898,
0.04637179896235466,
0.034879691898822784,
0.12727265059947968,
0.05413535609841347,
-0.23576360940933228,
0.03912153095006943,
-0.06896017491817474,
-0.06479810923337936,
0.11168165504932404,
0.0009944579796865582,
0.280601441860199,
-0.0347660556435585,
0.10117227584123611,
-0.11924741417169571,
0.10984604060649872,
0.09887947887182236,
0.20477308332920074,
-0.0161842443048954,
-0.22874458134174347,
0.15856029093265533,
-0.02263301983475685,
-0.1705310195684433,
0.058461353182792664,
-0.07761958986520767,
-0.059005770832300186,
-0.0466056726872921,
0.15430743992328644,
0.10283798724412918,
-0.10009210556745529,
-0.11802110821008682,
0.11529704928398132,
-0.008487420156598091,
0.025718187913298607,
0.03997186943888664,
-0.035034868866205215,
-0.0475587360560894,
0.012587743811309338,
-0.0368121974170208,
0.1486746370792389,
-0.07678338885307312,
-0.0741523802280426,
-0.3154318034648895,
-0.005146205425262451,
0.1479189097881317,
-0.27240368723869324,
-0.05655452609062195,
0.05597904697060585,
0.09851519018411636,
-0.04918248578906059,
0.007124784402549267,
0.06056595593690872,
-0.07455893605947495,
-0.07131059467792511,
-0.016834525391459465,
0.02313913404941559,
-0.23047411441802979,
0.05852624401450157,
-0.1268741637468338,
0.12863045930862427,
0.03509356454014778,
-0.027316030114889145,
0.08728614449501038,
0.006337667815387249,
-0.15765263140201569,
0.00009510650124866515,
0.11141355335712433,
-0.17801830172538757,
0.10008777678012848,
0.20614749193191528,
0.03625218942761421,
0.08196686208248138,
-0.0798688679933548,
-0.18002818524837494,
0.16897711157798767,
0.21254073083400726,
0.004543415270745754,
-0.009318639524281025,
-0.0650235190987587,
0.07642743736505508,
-0.0125591354444623,
0.019377240911126137,
-0.18559186160564423,
-0.037648290395736694,
-0.02454610913991928,
-0.098638616502285,
-0.018919778987765312,
0.14741073548793793,
-0.0664520114660263,
-0.26589977741241455,
-0.11056134849786758,
-0.0782390758395195,
0.13816067576408386,
0.033982053399086,
0.053116895258426666,
-0.016311906278133392,
0.3144916892051697,
-0.11601075530052185,
-0.1869731992483139,
-0.08555424213409424,
-0.014479964971542358,
-0.11862678825855255,
0.07698103785514832,
-0.039646346122026443,
0.10350736230611801,
0.1020696833729744,
0.14645829796791077,
-0.05027850717306137,
-0.012004941701889038,
0.061621684581041336,
0.02706969901919365,
-0.08019117265939713,
0.025334585458040237,
0.02121400088071823,
-0.06402292847633362,
0.2205563634634018,
0.08080708235502243,
0.07727119326591492,
0.06392384320497513,
-0.03490973636507988,
0.13047918677330017,
-0.02407214231789112,
-0.014293691143393517,
-0.09741640836000443,
0.06150980666279793,
0.09765175729990005,
-0.01769499108195305,
-0.12987318634986877,
-0.024568170309066772,
-0.0867009237408638,
-0.15577930212020874,
0.00795042235404253,
0.08323965966701508,
-0.13345877826213837,
-0.109963558614254,
0.1803295612335205,
-0.13391543924808502,
0.12560345232486725,
0.08545202016830444,
0.029256096109747887,
-0.12745045125484467,
0.10320837050676346,
0.06297298520803452,
0.0905335545539856,
-0.11934709548950195,
-0.008342198096215725,
-0.15481841564178467,
0.006832039915025234,
-0.06672805547714233,
0.088235042989254,
0.1072211042046547,
0.12372037023305893,
-0.12181637436151505,
-0.12728042900562286,
-0.07035406678915024,
0.08595297485589981,
-0.11148012429475784,
-0.06015614792704582,
-0.10500585287809372,
-0.06171410158276558,
-0.008813263848423958,
-0.0802038311958313,
0.19753195345401764,
0.01149821188300848,
0.048243310302495956,
-0.05122410133481026,
-0.03315892443060875,
0.0858730599284172,
-0.15695537626743317,
-0.01316696498543024,
-0.008573788218200207,
0.06241635978221893,
-0.23432619869709015,
-0.23783867061138153,
0.005303816869854927,
0.03881542384624481,
-0.1116243228316307,
0.03487209230661392,
0.027487048879265785,
0.012081428430974483,
0.28403720259666443,
-0.06466203182935715,
-0.015496790409088135,
-0.07416065037250519,
0.03502630442380905,
-0.014705476351082325,
0.15552735328674316,
-0.014586513862013817,
-0.15438951551914215,
0.019154135137796402,
-0.06242639571428299,
-0.015227159485220909,
-0.041479211300611496,
0.12940409779548645,
-0.2973115146160126,
0.20172815024852753,
0.010088959708809853,
-0.014455165714025497,
0.02541501820087433,
0.01583276502788067,
0.05442231148481369,
-0.15524667501449585,
0.09066696465015411,
0.24670954048633575,
-0.038810376077890396,
-0.10313612967729568,
-0.06862889230251312,
0.09621737152338028,
-0.026573605835437775,
0.008694609627127647,
-0.01296695601195097,
0.006690187845379114,
-0.003921126946806908,
0.009353237226605415,
-0.07978823781013489,
0.12964999675750732,
0.027524370700120926,
-0.14221176505088806,
0.044052448123693466,
0.13207794725894928,
0.1980561763048172,
0.0709443986415863,
-0.04828192666172981,
0.038665588945150375,
-0.090377077460289,
0.26423782110214233,
-0.0764477327466011,
-0.21325315535068512,
-0.038258135318756104,
-0.2577401101589203,
-0.0145473787561059,
-0.13195782899856567,
-0.0011587805347517133,
0.13739927113056183,
-0.19243063032627106,
0.11894640326499939,
0.06493526697158813,
0.0566280335187912,
0.000777095730882138,
-0.13108506798744202,
-0.01661725901067257,
0.06909090280532837,
-0.029450252652168274,
0.20501284301280975,
-0.08429092168807983,
0.09670361876487732,
0.13875310122966766,
0.2921796441078186,
0.02887418121099472,
-0.1755686104297638,
0.24781939387321472,
0.01750553771853447,
-0.006881434004753828,
-0.10102454572916031,
0.07249030470848083,
0.055886805057525635,
-0.006795395165681839,
-0.04810045659542084,
0.04042501375079155,
-0.012207322753965855,
-0.08280515670776367,
0.08555471897125244,
0.12128911912441254,
-0.04670422896742821,
0.14905793964862823,
0.16367800533771515,
0.07205230742692947,
0.07780921459197998,
0.09702296555042267,
0.1253526210784912,
0.2205927073955536,
-0.14087893068790436,
0.02478095516562462,
-0.2725958228111267,
-0.08038901537656784,
-0.12574118375778198,
-0.15039321780204773,
0.07938507199287415,
0.22850356996059418,
-0.026735806837677956,
0.10237917304039001,
-0.16489723324775696,
0.1398688405752182,
0.04252422973513603,
-0.030487682670354843,
0.2669418752193451,
-0.017026040703058243,
0.233228400349617,
-0.002398564014583826,
0.0023605318274348974,
-0.02311885729432106,
-0.1453177034854889,
-0.010949475690722466,
0.10783124715089798,
-0.026791568845510483,
0.22109951078891754,
0.005188999231904745,
0.0018237867625430226,
-0.014824326150119305,
0.10993077605962753,
-0.11674462258815765,
-0.11020917445421219,
0.20311273634433746,
-0.017206987366080284,
0.05519985407590866,
-0.13613668084144592,
-0.11716710031032562,
0.13348405063152313,
-0.007904908619821072,
0.20337973535060883,
0.07925097644329071,
0.006396069191396236,
-0.18048250675201416,
0.11824525147676468,
0.21634849905967712,
-0.08380327373743057,
0.08110339194536209,
0.11102139204740524,
0.09407594799995422,
-0.16920174658298492,
-0.017391139641404152,
0.07713086158037186,
0.06755334138870239,
-0.22144795954227448,
0.011643476784229279,
0.08836328983306885,
-0.2775231897830963,
0.19936273992061615,
-0.1566370725631714,
0.11646916717290878,
0.036915309727191925,
0.14614126086235046,
0.03835685923695564,
-0.028344860300421715,
0.19172212481498718,
-0.028522731736302376,
-0.013936499133706093,
0.07557279616594315,
0.01053861528635025,
0.08842137455940247,
0.09455826133489609,
-0.1706196665763855,
0.09044692665338516,
0.12466660141944885,
0.022506985813379288,
-0.0706964060664177,
-0.0982709601521492,
-0.0014401576481759548,
-0.16551482677459717,
-0.11704602837562561,
0.09687527269124985,
-0.09865809231996536,
-0.24094045162200928,
-0.10235464572906494,
0.10316140204668045,
0.08508199453353882,
-0.0056437230668962,
-0.032102879136800766,
-0.011294565163552761,
-0.006248089484870434,
0.20848897099494934,
-0.08056316524744034,
-0.05878838151693344,
-0.20753400027751923,
-0.03687002882361412,
0.07860377430915833,
-0.03939596191048622,
-0.04436441510915756,
-0.029196670278906822,
-0.13560402393341064,
0.06660495698451996,
-0.03865338861942291,
0.09113293141126633,
-0.068854421377182,
-0.035028792917728424,
-0.07181650400161743,
0.1431504189968109,
-0.10689135640859604,
-0.010008004494011402,
-0.0766344889998436,
0.1218341737985611,
-0.10523968935012817,
0.09200707823038101,
-0.07476644963026047,
-0.0071465931832790375,
0.03147432580590248,
-0.07450520247220993,
0.2718842029571533,
-0.061031274497509,
-0.06876612454652786,
-0.003482430474832654,
-2.506248877121946e-32,
0.04405948147177696,
0.014332301914691925,
0.005447851028293371,
0.19266484677791595,
-0.04714338108897209,
0.08659692108631134,
0.0562162771821022,
-0.06096956133842468,
0.08958610147237778,
-0.1547844111919403,
-0.04453522711992264,
0.1373320370912552,
0.10793709009885788,
-0.046487752348184586,
-0.21470490097999573,
-0.0876404345035553,
0.07525747269392014,
-0.1849798560142517,
-0.09727416187524796,
0.13064086437225342,
0.11288826167583466,
0.16507413983345032,
0.06182993948459625,
-0.0790637955069542,
0.07903479784727097,
-0.007091718725860119,
-0.1617737114429474,
-0.08261576294898987,
-0.10202013701200485,
-0.11359754949808121,
-0.13981013000011444,
-0.11965721100568771,
0.05576667934656143,
0.014706774614751339,
-0.05480928346514702,
-0.004925626330077648,
-0.14985312521457672,
0.08350323140621185,
0.10872665047645569,
0.011957056820392609,
-0.15990769863128662,
0.04981527477502823,
-0.03475288674235344,
0.0006291090976446867,
-0.18435677886009216,
-0.1814516931772232,
-0.026578497141599655,
-0.032112449407577515,
0.05745391920208931,
0.000676710915286094,
0.04506511241197586,
0.0947926715016365,
0.029939640313386917,
0.06800903379917145,
0.2012789100408554,
-0.17474213242530823,
0.11033305525779724,
0.07580441981554031,
0.014729583635926247,
-0.0020606035832315683,
0.17012332379817963,
-0.07612134516239166,
0.06463563442230225,
0.028780611231923103,
0.23896582424640656,
-0.028507918119430542,
0.2524137496948242,
0.1673043668270111,
0.10314986854791641,
-0.07221367955207825,
-0.04615166038274765,
0.10266485810279846,
-0.14159707725048065,
0.0031256498768925667,
0.0713224932551384,
-0.11681045591831207,
-0.18006911873817444,
0.13643284142017365,
-0.019178099930286407,
-0.15144787728786469,
-0.1582193225622177,
0.02458912692964077,
0.03384595736861229,
-0.011917863972485065,
0.035649098455905914,
-0.012199578806757927,
-0.08013397455215454,
0.1808924525976181,
-0.04401926323771477,
0.07438553869724274,
-0.17843356728553772,
0.270047664642334,
-0.07184380292892456,
0.0598134882748127,
0.0059865498915314674,
0.03189636766910553,
-0.28234484791755676,
0.08895411342382431,
-0.029567334800958633,
-0.14496995508670807,
0.07686304301023483,
-0.06164097785949707,
0.09058289974927902,
0.02704598195850849,
0.02703256346285343,
0.017507432028651237,
0.3219965696334839,
0.1620413362979889,
-0.10124344378709793,
-0.036870528012514114,
0.1275765746831894,
0.21667174994945526,
0.10184602439403534,
0.08512919396162033,
-0.0625167191028595,
-0.04452879726886749,
0.0235952939838171,
-0.05677570775151253,
0.06282307207584381,
0.36712875962257385,
-0.18591803312301636,
-0.09841108322143555,
-0.13937167823314667,
-0.058501288294792175,
-0.02592296712100506,
-0.034803614020347595,
-0.011481814086437225,
-0.26694315671920776,
-0.020468274131417274,
-0.009902078658342361,
-0.1137586385011673,
-0.11671935021877289,
6.743567837474984e-7,
0.02257206104695797,
0.030047625303268433,
0.1473052054643631,
-0.09489789605140686,
-0.022929133847355843,
0.011708399280905724,
-0.1060052141547203,
0.12150656431913376,
-0.03089458867907524,
0.3121643364429474,
-0.0858391597867012,
-0.18955263495445251,
0.0641946941614151,
-0.002056814031675458,
0.05323530361056328,
-0.09915788471698761,
-0.10312940180301666,
-0.16173209249973297,
-0.051658790558576584,
0.08795750886201859,
-0.32440707087516785,
-0.16324785351753235,
-0.13441841304302216,
0.0016792669193819165,
0.05413244292140007,
0.09855837374925613,
0.009995883330702782,
-0.16400252282619476,
0.3124920427799225,
-0.02273285575211048,
0.010957551188766956,
-0.009748097509145737,
0.05024683475494385,
-0.0788373202085495,
-0.10374989360570908,
0.04900825396180153,
0.050272341817617416,
0.3366985023021698,
0.036442168056964874,
-0.007822398096323013,
0.14000588655471802,
-0.11327056586742401,
0.13318060338497162,
-0.225342258810997,
0.18265023827552795,
0.023733677342534065,
-0.15573754906654358,
-0.04402608051896095,
-0.03605121746659279,
0.11337877810001373,
0.022828202694654465,
0.07337290793657303,
0.13594001531600952,
0.2558960020542145,
0.0056772055104374886,
-0.08597034215927124,
-0.04965692758560181,
0.02487078309059143,
0.009860830381512642,
-0.1606249064207077,
-0.06477264314889908,
-0.19910819828510284,
-0.0608663447201252,
0.20918117463588715,
-0.07742195576429367,
-0.237232968211174,
-0.08664257824420929,
2.007429355452645e-34,
-0.16766484081745148,
-0.09609959274530411,
-0.050453245639801025,
-0.3286922872066498,
-0.11501231789588928,
-0.09303276240825653,
0.23879508674144745,
0.048725105822086334,
-0.23554794490337372,
-0.09179893881082535,
-0.08262816816568375
] |
https://github.com/huggingface/datasets/issues/2337 | NonMatchingChecksumError for web_of_science dataset | I've raised a PR for this. Should work with `dataset = load_dataset("web_of_science", "WOS11967", ignore_verifications=True)`once it gets merged into the main branch. Thanks for reporting this! | NonMatchingChecksumError when trying to download the web_of_science dataset.
>NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://data.mendeley.com/datasets/9rw3vkcfy4/6/files/c9ea673d-5542-44c0-ab7b-f1311f7d61df/WebOfScience.zip?dl=1']
Setting `ignore_verfications=True` results in OSError.
>OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/37ab2c42f50d553c1d0ea432baca3e9e11fedea4aeec63a81e6b7e25dd10d4e7/WOS5736/X.txt'
```python
dataset = load_dataset('web_of_science', 'WOS5736')
```
There are 3 data instances and they all don't work. 'WOS5736', 'WOS11967', 'WOS46985'
datasets 1.6.2
python 3.7.10
Ubuntu 18.04.5 LTS | 25 | NonMatchingChecksumError for web_of_science dataset
NonMatchingChecksumError when trying to download the web_of_science dataset.
>NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://data.mendeley.com/datasets/9rw3vkcfy4/6/files/c9ea673d-5542-44c0-ab7b-f1311f7d61df/WebOfScience.zip?dl=1']
Setting `ignore_verfications=True` results in OSError.
>OSError: Cannot find data file.
Original error:
[Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/37ab2c42f50d553c1d0ea432baca3e9e11fedea4aeec63a81e6b7e25dd10d4e7/WOS5736/X.txt'
```python
dataset = load_dataset('web_of_science', 'WOS5736')
```
There are 3 data instances and they all don't work. 'WOS5736', 'WOS11967', 'WOS46985'
datasets 1.6.2
python 3.7.10
Ubuntu 18.04.5 LTS
I've raised a PR for this. Should work with `dataset = load_dataset("web_of_science", "WOS11967", ignore_verifications=True)`once it gets merged into the main branch. Thanks for reporting this! | [
0.06201925873756409,
0.09893810003995895,
-0.0663885697722435,
0.03516365960240364,
0.12577587366104126,
0.07441522181034088,
0.0016169464215636253,
0.11997531354427338,
0.14795321226119995,
0.07332853227853775,
-0.053975753486156464,
-0.11144184321165085,
0.08188456296920776,
-0.04123964533209801,
-0.03285513073205948,
0.23381347954273224,
0.1022702306509018,
-0.017669254913926125,
-0.07634438574314117,
-0.1629381626844406,
-0.2009744644165039,
0.017039475962519646,
0.010508359409868717,
-0.1911098062992096,
0.0793098658323288,
0.03979014605283737,
0.08464094996452332,
-0.041968319565057755,
0.12992581725120544,
-0.14688828587532043,
0.25449222326278687,
0.01997082494199276,
-0.07375597953796387,
0.22756557166576385,
0.000006358043265208835,
-0.0009066236088983715,
0.15501287579536438,
0.045827120542526245,
-0.08357447385787964,
-0.10489415377378464,
-0.008625579066574574,
-0.030173808336257935,
0.0005543992156162858,
-0.00016750555369071662,
0.10986937582492828,
0.03762434422969818,
-0.1087852343916893,
-0.07690184563398361,
0.10395334661006927,
0.09241530299186707,
0.036122262477874756,
0.30075782537460327,
0.10162552446126938,
-0.030831262469291687,
0.038098521530628204,
0.03634874150156975,
0.017171990126371384,
0.10407006740570068,
-0.09043854475021362,
-0.07229866087436676,
0.03396774083375931,
0.05676807463169098,
-0.005963969975709915,
0.07854660600423813,
-0.2188480943441391,
-0.05787128582596779,
-0.04720797762274742,
-0.22859357297420502,
0.03564609959721565,
0.23772935569286346,
0.0584615059196949,
0.024635663256049156,
-0.10864899307489395,
0.004673897288739681,
-0.1144927516579628,
0.06286920607089996,
0.01586165279150009,
0.08251950889825821,
-0.01219005323946476,
-0.03157467022538185,
-0.2099355310201645,
0.14519451558589935,
0.018843652680516243,
0.07205533981323242,
-0.0671972781419754,
0.01894623599946499,
-0.0031274831853806973,
0.024532629176974297,
0.05075833946466446,
-0.1529521644115448,
0.2572263777256012,
-0.19868645071983337,
-0.07155092060565948,
-0.08040020614862442,
-0.06362312287092209,
-0.07863125950098038,
-0.014824042096734047,
0.08282308280467987,
0.1859608292579651,
0.03641499578952789,
-0.019232889637351036,
-0.028447287157177925,
-0.16080349683761597,
0.09474323689937592,
-0.054554667323827744,
0.05117476359009743,
0.042198315262794495,
-0.08956536650657654,
0.18936486542224884,
0.010313487611711025,
-0.07698312401771545,
0.07019750773906708,
0.0189257450401783,
-0.1389819234609604,
0.13053281605243683,
-0.0015254224417731166,
0.16178886592388153,
-0.01096429955214262,
-0.07348155975341797,
0.05258360505104065,
0.039020612835884094,
0.0895976573228836,
0.051308512687683105,
0.17624810338020325,
0.0012789805186912417,
0.01289566233754158,
0.08953671157360077,
0.0758628323674202,
-0.13274909555912018,
-0.11180131137371063,
-0.06753905117511749,
-0.02129616215825081,
-0.00497634569182992,
-0.04058385640382767,
0.1945466548204422,
0.008798944763839245,
0.1911812573671341,
0.034900978207588196,
0.012786725535988808,
0.035181306302547455,
-0.06731053441762924,
-0.15563499927520752,
0.018796062096953392,
0.12104751169681549,
0.04930536448955536,
0.05369798094034195,
0.01828935742378235,
0.13262628018856049,
-0.00006984933133935556,
0.1019611731171608,
-0.18067896366119385,
0.09207914024591446,
-0.17630891501903534,
0.01792091131210327,
-0.21941682696342468,
0.01597610116004944,
0.06896892189979553,
-0.13149170577526093,
-0.10094695538282394,
-0.14760872721672058,
-0.03711456432938576,
-0.021664423868060112,
0.07536595314741135,
-0.06989819556474686,
0.03031601943075657,
0.15895500779151917,
0.0554436594247818,
0.04667522385716438,
0.003036343026906252,
-0.0882757380604744,
0.12028087675571442,
0.05891108140349388,
-0.12095954269170761,
-0.09977459162473679,
-0.19964182376861572,
0.06815182417631149,
0.01610323041677475,
-0.023068223148584366,
-0.23597124218940735,
-0.059869538992643356,
0.09598671644926071,
-0.03807057812809944,
-0.09731697291135788,
-0.009663851000368595,
-0.15620402991771698,
-0.03955589979887009,
-0.09766198694705963,
-0.11784946918487549,
0.01970411092042923,
-0.014978399500250816,
-0.03480833023786545,
0.06142416596412659,
0.07504262030124664,
0.04134337604045868,
-0.01770167052745819,
-0.07818785309791565,
0.028821902349591255,
-0.10969185084104538,
0.18078376352787018,
-0.2728467881679535,
0.08772755414247513,
-0.11062399297952652,
-0.015681829303503036,
0.050947703421115875,
0.12314402312040329,
0.050836190581321716,
-0.25340723991394043,
0.27286502718925476,
0.04637337848544121,
-0.12985466420650482,
-0.0841582864522934,
-0.0027905048336833715,
-0.02172098122537136,
-0.10747287422418594,
-0.1798320859670639,
0.00769842928275466,
-0.11285359412431717,
-0.10221265256404877,
0.11030491441488266,
0.08670154213905334,
-0.06172694265842438,
-0.07384493947029114,
0.004778763744980097,
0.023222336545586586,
-0.0815078467130661,
0.07446406036615372,
-0.09124618023633957,
-0.026933703571558,
0.04534697160124779,
-0.027173807844519615,
-0.007184905000030994,
0.0055175949819386005,
-0.08021175116300583,
0.13774296641349792,
-0.007762409746646881,
-0.07776859402656555,
0.09073273837566376,
-0.07739636301994324,
0.21505436301231384,
-0.032991260290145874,
-0.04489075392484665,
0.13991311192512512,
0.049160297960042953,
0.05808713659644127,
-0.03722512722015381,
-0.0023764497600495815,
-0.20216506719589233,
0.13187846541404724,
0.023976290598511696,
-0.04671778902411461,
0.19600552320480347,
0.050250519067049026,
-0.14661021530628204,
0.05936950072646141,
0.133943110704422,
-0.04353632405400276,
0.08130987733602524,
0.18147212266921997,
-0.018045686185359955,
-0.05882934853434563,
0.1687861979007721,
-0.038586392998695374,
0.007983173243701458,
0.04378547519445419,
0.07083185762166977,
-0.08855009824037552,
-0.042459722608327866,
0.09972566366195679,
0.036731768399477005,
0.11466065049171448,
0.18812145292758942,
-0.03156805410981178,
-0.12649928033351898,
-0.10029355436563492,
0.020866766571998596,
0.009309602901339531,
0.0409659706056118,
0.12509039044380188,
0.018641985952854156,
-0.04196286201477051,
-0.32549500465393066,
0.04660097137093544,
-0.04186750575900078,
-0.05083164572715759,
0.02108457311987877,
0.052986614406108856,
-0.08093055337667465,
-0.08657890558242798,
-0.1335511952638626,
0.030926533043384552,
-0.09313531219959259,
-0.0247420072555542,
-0.0943613275885582,
-0.0763893574476242,
-0.0390186607837677,
0.06652139127254486,
-0.119606152176857,
-0.10416208207607269,
0.0820758119225502,
-0.002818240085616708,
-0.08925734460353851,
0.08438923209905624,
-0.02357553131878376,
-0.11242733150720596,
0.22990351915359497,
-0.03172065690159798,
0.24010904133319855,
0.08953574299812317,
0.03705233708024025,
-0.16950494050979614,
0.03555529564619064,
-0.12837785482406616,
0.10434336960315704,
0.058771077543497086,
0.1052568331360817,
0.077726349234581,
0.019768835976719856,
-0.15395444631576538,
0.13982892036437988,
-0.07193002104759216,
0.017772376537322998,
0.10339540243148804,
-0.11522317677736282,
-0.05189032852649689,
0.03399104252457619,
-0.08133244514465332,
-0.08518406003713608,
0.010397081263363361,
-0.1979122906923294,
-0.019189223647117615,
-0.025058211758732796,
0.09009920805692673,
0.02113189920783043,
-0.09739641845226288,
0.014558251015841961,
-0.08065648376941681,
-0.1787133365869522,
-0.21135307848453522,
0.32214751839637756,
0.08751063793897629,
-0.07120084762573242,
-0.01021625567227602,
-0.12130129337310791,
0.11871097981929779,
0.12141600251197815,
-0.0578099861741066,
-0.056997936218976974,
-0.05016050115227699,
-0.11514464765787125,
0.04213373363018036,
0.10929664969444275,
0.11760254204273224,
-0.0821324810385704,
-0.10772896558046341,
-0.12935200333595276,
0.0877843052148819,
0.012525524944067001,
0.035923607647418976,
0.15031199157238007,
-0.06815280765295029,
-0.09359641373157501,
-0.005127027630805969,
0.07230833917856216,
0.09174633771181107,
-0.060812126845121384,
0.17058342695236206,
0.13678748905658722,
-0.008494683541357517,
0.05493197962641716,
-0.031639911234378815,
-0.04056258872151375,
-0.03813358396291733,
0.07531891763210297,
-0.0405026338994503,
-0.05085856840014458,
0.07316367328166962,
-0.049234941601753235,
-0.07143813371658325,
-0.16218839585781097,
-0.037173010408878326,
-0.11370909214019775,
-0.07633429020643234,
-0.01718950644135475,
0.08194099366664886,
0.004484911914914846,
0.015081475488841534,
-0.030045947059988976,
0.017503226175904274,
-0.03024408407509327,
0.13730613887310028,
0.06352757662534714,
0.043721720576286316,
-0.08236649632453918,
0.10981139540672302,
0.1310242861509323,
-0.036316853016614914,
0.14293205738067627,
0.12059850990772247,
0.03837043419480324,
-0.013538512401282787,
-0.07709518820047379,
0.11769448220729828,
-0.10324271768331528,
0.3247784674167633,
0.0034928570967167616,
-0.03678140044212341,
0.14339199662208557,
-0.045729540288448334,
0.10904373228549957,
-0.1659456044435501,
0.14715328812599182,
-0.032149214297533035,
0.015414410270750523,
0.09328660368919373,
0.05693027377128601,
0.026464076712727547,
0.09430623799562454,
-0.21022769808769226,
0.001249514170922339,
-0.09528707712888718,
-0.1675555258989334,
-0.1670750379562378,
0.011594971641898155,
0.08300284296274185,
-0.02669707126915455,
-0.006722775753587484,
0.04729261249303818,
-0.08907204866409302,
0.17323262989521027,
-0.0025165528059005737,
0.08090148121118546,
0.003504322376102209,
0.12083756178617477,
0.0815085768699646,
0.0714886486530304,
-0.017935218289494514,
0.3526957035064697,
-0.05512409284710884,
-0.13786326348781586,
-0.007257519289851189,
-0.1367683857679367,
-0.03770260885357857,
-0.04742046073079109,
-0.08980939537286758,
-0.06679224222898483,
0.0656069666147232,
-0.10532405227422714,
-0.08388136327266693,
0.058826860040426254,
-0.10223350673913956,
-0.08194863796234131,
-0.1447238326072693,
0.011904397048056126,
-0.08863865584135056,
0.03797392547130585,
-0.027802133932709694,
0.126576766371727,
-0.2256893515586853,
-0.04230521246790886,
-0.07668912410736084,
0.017929185181856155,
-0.05345848575234413,
-0.1592344492673874,
-0.050721246749162674,
0.015548957511782646,
0.12790565192699432,
0.1478024572134018,
-0.07136139273643494,
0.07292059063911438,
-0.07817401736974716,
-0.11145318299531937,
0.042170654982328415,
-0.13403521478176117,
-0.0014340935740619898,
0.2017274647951126,
0.031035196036100388,
0.14563386142253876,
0.08871885389089584,
0.024988537654280663,
-0.05383561924099922,
0.2295277863740921,
-0.03702275827527046,
0.03950933739542961,
-0.21110710501670837,
0.02606229856610298,
0.0692826583981514,
0.2857307493686676,
-0.04584846273064613,
-0.03788871690630913,
0.04620475694537163,
0.028804361820220947,
-0.047102950513362885,
0.011374895460903645,
0.030741462484002113,
0.10437344759702682,
-0.0697457566857338,
-0.0041757067665457726,
-0.006053586024791002,
0.10721761733293533,
0.0923273116350174,
0.168812096118927,
-0.24354435503482819,
0.09612235426902771,
-0.04672534018754959,
-0.11231574416160583,
-0.15888303518295288,
0.06568989902734756,
-0.14023293554782867,
0.009561864659190178,
-0.07990223914384842,
-0.11843965947628021,
0.08087629824876785,
-0.19434916973114014,
-0.07333165407180786,
-0.07128771394491196,
-0.10136833041906357,
0.00016016933659557253,
0.15733219683170319,
-0.038505274802446365,
0.10609398037195206,
0.014217603020370007,
-0.04416961967945099,
-0.0027591963298618793,
0.04879710450768471,
0.140038400888443,
0.07078340649604797,
0.03206504136323929,
-0.09320966899394989,
0.1873399019241333,
0.012622518464922905,
0.05177401006221771,
0.14716188609600067,
0.17587213218212128,
-0.03026912733912468,
-0.08230093121528625,
0.0006189756095409393,
-0.08634980022907257,
-0.06975632905960083,
0.09217853844165802,
0.048147108405828476,
0.015212316066026688,
-0.12275616079568863,
-0.0027208735700696707,
0.13659869134426117,
0.19600190222263336,
0.095346599817276,
-0.07024891674518585,
0.02612021192908287,
-0.14774195849895477,
-0.057811591774225235,
0.22905193269252777,
0.0534198097884655,
0.04193296283483505,
-0.05248655751347542,
-0.05869652330875397,
-2.525726818515071e-32,
0.009115534834563732,
0.000578313774894923,
-0.06165548041462898,
-0.18305808305740356,
-0.15890569984912872,
0.03379756957292557,
-0.08160127699375153,
-0.19914619624614716,
-0.05893475189805031,
-0.10898569971323013,
0.0031124441884458065,
-0.010232728905975819,
0.07346095889806747,
0.023296767845749855,
-0.03428463265299797,
-0.0022517999168485403,
0.07203655689954758,
0.11823011189699173,
-0.12443209439516068,
-0.06497802585363388,
0.04651016369462013,
-0.04869924485683441,
0.03514189273118973,
0.009655779227614403,
-0.051933299750089645,
-0.07810883969068527,
-0.017017945647239685,
-0.18823261559009552,
-0.05534884333610535,
-0.004700217861682177,
-0.08321359008550644,
0.05910498648881912,
-0.04506586864590645,
0.07465682923793793,
-0.09485778212547302,
-0.09267880022525787,
-0.16806353628635406,
-0.09465458244085312,
-0.11657524108886719,
-0.021048149093985558,
0.2268531173467636,
0.041180554777383804,
0.1045675128698349,
-0.1371246725320816,
0.027630489319562912,
0.05115512013435364,
-0.05354347079992294,
-0.03260065242648125,
-0.10183631628751755,
-0.04815598204731941,
0.017152214422822,
-0.009850009344518185,
0.03326157480478287,
0.0019601115491241217,
0.051673825830221176,
0.07676451653242111,
-0.02771538309752941,
0.015273034572601318,
-0.16456864774227142,
0.11672507226467133,
0.25760743021965027,
-0.018638700246810913,
0.09319684654474258,
-0.06493200361728668,
0.007364280521869659,
0.06158031150698662,
0.19489818811416626,
-0.13601399958133698,
0.16773878037929535,
-0.14563870429992676,
0.0362432524561882,
0.017235800623893738,
-0.03825422376394272,
0.01559686940163374,
-0.050960514694452286,
-0.09742721170186996,
-0.06319934129714966,
0.029573040083050728,
-0.15289908647537231,
-0.09388848394155502,
0.0929003432393074,
-0.12435287237167358,
-0.0176792424172163,
-0.051010407507419586,
-0.06820323318243027,
0.0476592481136322,
-0.06571727246046066,
0.11736106872558594,
-0.03636396676301956,
-0.013187671080231667,
0.0760754868388176,
0.03610339015722275,
-0.14984013140201569,
-0.13756130635738373,
-0.024571506306529045,
0.11930209398269653,
-0.0903332382440567,
0.05386948212981224,
0.034288931638002396,
0.01675424911081791,
0.033369261771440506,
-0.1529274582862854,
0.03233158960938454,
0.11367481201887131,
0.059948354959487915,
0.07160253822803497,
-0.012962291948497295,
0.02288368158042431,
-0.14896680414676666,
0.01250404492020607,
-0.03222030773758888,
0.06540752202272415,
0.13705553114414215,
0.05123716592788696,
0.1715189516544342,
0.03264817222952843,
0.020327851176261902,
-0.061315592378377914,
-0.0023660638835281134,
0.0021473621018230915,
-0.013083008117973804,
0.15300245583057404,
-0.07486023008823395,
0.13934817910194397,
0.008560724556446075,
0.09465735405683517,
-0.1622663289308548,
-0.035840049386024475,
-0.12449328601360321,
0.028281357139348984,
0.07450496405363083,
-0.06816638261079788,
7.923649150143319e-7,
-0.334635466337204,
0.1357472538948059,
-0.062113407999277115,
-0.10423781722784042,
-0.1441001445055008,
0.0028765436727553606,
-0.2884281575679779,
-0.06100780889391899,
-0.13937391340732574,
0.15485858917236328,
-0.05394158884882927,
0.039973869919776917,
0.040034934878349304,
0.0750599354505539,
0.30766209959983826,
-0.09260096400976181,
-0.1018299087882042,
-0.0404449887573719,
-0.02178608812391758,
-0.031341802328825,
-0.03215070068836212,
-0.0685313418507576,
0.06292424350976944,
-0.034167855978012085,
0.1437043696641922,
-0.009417423978447914,
0.024503812193870544,
-0.0006823310977779329,
0.11278204619884491,
0.01109620276838541,
-0.059866271913051605,
-0.13947077095508575,
0.13115601241588593,
0.19657786190509796,
0.04516313970088959,
0.029264060780405998,
-0.14313367009162903,
-0.07496355473995209,
0.03749733418226242,
0.09717550873756409,
-0.04353035241365433,
0.04826558008790016,
-0.022228959947824478,
-0.02086983434855938,
0.13714970648288727,
0.13521422445774078,
-0.024824710562825203,
-0.11754613369703293,
0.0037362421862781048,
-0.07709500193595886,
0.04511898010969162,
0.04579254612326622,
0.04340501129627228,
0.10250447690486908,
-0.0868426188826561,
-0.012823851779103279,
0.038375698029994965,
-0.02222391776740551,
0.11979460716247559,
-0.06623198837041855,
-0.027745964005589485,
-0.10989861935377121,
0.004074268974363804,
0.0018062249291688204,
0.1434534639120102,
-0.150283545255661,
-0.06737801432609558,
1.3614186418308764e-34,
0.09596726298332214,
0.05287052318453789,
0.11347219347953796,
-0.2817142605781555,
0.03970156982541084,
-0.03696468472480774,
0.09002605080604553,
0.007837489247322083,
-0.08634310960769653,
-0.005719712469726801,
-0.060842759907245636
] |
https://github.com/huggingface/datasets/issues/2330 | Allow passing `desc` to `tqdm` in `Dataset.map()` | I think the user could pass the `desc` parameter to `map` so that it can be displayed in the tqdm progress bar, as suggested by @cccntu.
When there's no multiprocessing, the `desc` of the progress bar could be the `desc` passed by the user.
In multiprocessing, we were already using a `desc` equal to `"#" + str(rank)`.
We can change it to be `(desc or "") + "#" + str(rank)` instead.
In the end, since both `desc` and `rank` could be None, we can have:
```python
pbar_desc = (desc or "") + "#" + str(rank) if rank is not None else desc
```
Finally let's remember that if we add `desc` as a new parameter to `map`, we should add it to the `ignore_kwargs` list of the `@fingerprint_transform` decorator of `Dataset._map_single` since we don't want this parameter to affect the fingerprint of the resulting dataset. | It's normal to have many `map()` calls, and some of them can take a few minutes,
it would be nice to have a description on the progress bar.
Alternative solution:
Print the description before/after the `map()` call. | 145 | Allow passing `desc` to `tqdm` in `Dataset.map()`
It's normal to have many `map()` calls, and some of them can take a few minutes,
it would be nice to have a description on the progress bar.
Alternative solution:
Print the description before/after the `map()` call.
I think the user could pass the `desc` parameter to `map` so that it can be displayed in the tqdm progress bar, as suggested by @cccntu.
When there's no multiprocessing, the `desc` of the progress bar could be the `desc` passed by the user.
In multiprocessing, we were already using a `desc` equal to `"#" + str(rank)`.
We can change it to be `(desc or "") + "#" + str(rank)` instead.
In the end, since both `desc` and `rank` could be None, we can have:
```python
pbar_desc = (desc or "") + "#" + str(rank) if rank is not None else desc
```
Finally let's remember that if we add `desc` as a new parameter to `map`, we should add it to the `ignore_kwargs` list of the `@fingerprint_transform` decorator of `Dataset._map_single` since we don't want this parameter to affect the fingerprint of the resulting dataset. | [
-0.033637821674346924,
0.3316994905471802,
-0.08747875690460205,
-0.06979255378246307,
0.20914863049983978,
0.09913107752799988,
0.00947186816483736,
-0.012247031554579735,
-0.10626722872257233,
0.25577467679977417,
-0.055779144167900085,
0.1328655332326889,
-0.038585953414440155,
0.015191593207418919,
0.018960896879434586,
-0.09348791837692261,
-0.051812272518873215,
0.044045958667993546,
-0.14177818596363068,
0.14808432757854462,
-0.31038162112236023,
0.09697438031435013,
0.08339779824018478,
0.11147835850715637,
0.06602663546800613,
-0.03426564857363701,
-0.10566627979278564,
0.09813475608825684,
0.09509098529815674,
-0.07988030463457108,
-0.012331923469901085,
0.06387648731470108,
-0.07316352427005768,
-0.08857985585927963,
0.000005377149136620574,
0.18227386474609375,
0.2126154899597168,
-0.03176086023449898,
0.05170459672808647,
0.05418451130390167,
-0.020524736493825912,
-0.02507699280977249,
0.040560007095336914,
-0.12335123866796494,
-0.011498009786009789,
0.1158578097820282,
0.09169787168502808,
-0.016031820327043533,
0.053218498826026917,
-0.08137597143650055,
0.05330486595630646,
0.007306612562388182,
-0.2215953767299652,
-0.055314306169748306,
-0.048650842159986496,
0.008973774500191212,
0.0056340256705880165,
-0.13301034271717072,
-0.02038078010082245,
-0.04769926145672798,
-0.07499806582927704,
0.00551706412807107,
0.025638820603489876,
0.03536409139633179,
0.004136654548346996,
0.05660943314433098,
0.08665361255407333,
-0.08370097726583481,
0.01916375942528248,
0.10146462172269821,
-0.0487414225935936,
-0.1747736632823944,
-0.05221080407500267,
0.16784065961837769,
-0.0019269377226009965,
-0.04324980080127716,
-0.06179473549127579,
-0.1774512231349945,
-0.0802212506532669,
0.16389982402324677,
-0.10122443735599518,
0.1389010101556778,
0.04015635699033737,
-0.002209997968748212,
-0.1797124445438385,
0.08177139610052109,
0.03842800483107567,
0.01457509957253933,
-0.01669866032898426,
0.03225890174508095,
0.08307154476642609,
0.15630459785461426,
-0.12827478349208832,
0.01822766475379467,
-0.0770728588104248,
-0.0037531894631683826,
0.07185161858797073,
-0.13642410933971405,
-0.002134556183591485,
-0.08419813215732574,
-0.09798058867454529,
0.04182341694831848,
0.004023381508886814,
0.14764319360256195,
0.02168639376759529,
-0.037518952041864395,
0.10008136928081512,
0.0792965292930603,
-0.10322713106870651,
-0.09558205306529999,
-0.10402120649814606,
0.013517714105546474,
0.1912747174501419,
-0.09936635196208954,
0.2851574420928955,
0.03286348283290863,
-0.038542553782463074,
0.316664457321167,
0.11995797604322433,
0.1128188818693161,
0.14336028695106506,
0.09622463583946228,
-0.14148762822151184,
0.07096759229898453,
0.04956376180052757,
0.03287706524133682,
0.005598976276814938,
-0.04712597653269768,
-0.020549803972244263,
0.1650061160326004,
-0.14087006449699402,
0.03256766498088837,
0.05309261009097099,
0.07466639578342438,
0.009352188557386398,
0.12041695415973663,
0.029540156945586205,
-0.04905723035335541,
0.20558154582977295,
-0.032867949455976486,
0.07605946063995361,
-0.07669328898191452,
0.18934468924999237,
0.17002275586128235,
0.12243005633354187,
0.08550266176462173,
0.24111789464950562,
0.13017013669013977,
-0.1738344430923462,
0.08019822090864182,
0.008443161845207214,
0.09910394251346588,
-0.051676373928785324,
0.06219058483839035,
-0.10527201741933823,
0.11765332520008087,
-0.07984714210033417,
-0.044614847749471664,
-0.23280522227287292,
-0.04078023508191109,
0.05641501769423485,
-0.11276450008153915,
-0.16668805480003357,
-0.10528883337974548,
-0.01490800641477108,
-0.03589131310582161,
0.019310597330331802,
0.15058062970638275,
0.06234239414334297,
-0.07213331758975983,
0.10591233521699905,
-0.17504765093326569,
-0.12140018492937088,
-0.03877142071723938,
0.06502135843038559,
0.3523096740245819,
0.08695033192634583,
0.09340909123420715,
-0.05913230776786804,
0.06715081632137299,
-0.027016425505280495,
-0.06006676331162453,
0.017961513251066208,
0.014297288842499256,
0.25625061988830566,
0.08423051238059998,
0.14692778885364532,
0.09349247813224792,
-0.08785414695739746,
-0.018457435071468353,
0.02006913721561432,
-0.07193295657634735,
-0.050753865391016006,
0.03519309684634209,
-0.1291431188583374,
0.029349379241466522,
0.047568898648023605,
-0.09740734100341797,
-0.07315872609615326,
0.023999258875846863,
0.030093425884842873,
-0.0261077843606472,
-0.08113645762205124,
-0.05119416490197182,
-0.07825613021850586,
0.03952028974890709,
0.00032536248909309506,
-0.03240633383393288,
-0.11832410097122192,
-0.16680577397346497,
-0.02313808910548687,
-0.0013732098741456866,
-0.004991894122213125,
-0.00725837517529726,
-0.1361161321401596,
-0.04180360585451126,
-0.04306275397539139,
-0.05840132385492325,
-0.18742558360099792,
-0.04653270170092583,
-0.02787337452173233,
-0.07751893252134323,
0.17250525951385498,
0.010580803267657757,
0.1987997442483902,
-0.1317632645368576,
0.22493110597133636,
-0.1308891475200653,
0.14322851598262787,
0.015976229682564735,
0.02299766056239605,
-0.017261585220694542,
0.024905046448111534,
0.1360163688659668,
-0.0521957129240036,
0.008149749599397182,
0.06291177868843079,
-0.1156032457947731,
-0.1318172961473465,
-0.11345750838518143,
-0.1311146765947342,
0.249586284160614,
-0.1166272908449173,
-0.039107222110033035,
-0.0054909177124500275,
0.07822863012552261,
-0.09934487193822861,
0.023450924083590508,
0.03198935091495514,
0.06576018780469894,
0.129802867770195,
0.08749829977750778,
0.026460589841008186,
0.034597914665937424,
-0.03588235005736351,
0.1613687127828598,
0.14481836557388306,
-0.188881978392601,
-0.040075596421957016,
-0.017982713878154755,
0.2219303548336029,
0.1048034280538559,
-0.017847733572125435,
0.017894629389047623,
0.0888502448797226,
0.05886304751038551,
-0.010676227509975433,
0.008494822308421135,
0.12981796264648438,
0.1560317575931549,
0.14021514356136322,
-0.004687023349106312,
-0.1106448844075203,
-0.016976675018668175,
-0.026180580258369446,
-0.1496148556470871,
-0.07755590975284576,
-0.0007052883738651872,
-0.005193715449422598,
0.10805308818817139,
0.0021854061633348465,
-0.019488194957375526,
0.14444822072982788,
-0.04886234179139137,
0.021223438903689384,
0.01112191379070282,
-0.07441187649965286,
0.11228004097938538,
-0.16287952661514282,
-0.1863279789686203,
-0.018517237156629562,
-0.21308757364749908,
0.018984518945217133,
-0.0012260827934369445,
0.000872186734341085,
0.0690678283572197,
-0.10278536379337311,
-0.18717342615127563,
0.016338011249899864,
-0.1972677856683731,
-0.07323544472455978,
0.051325876265764236,
0.06547683477401733,
0.049342162907123566,
-0.06215020269155502,
0.05737393721938133,
0.16567790508270264,
0.06622609496116638,
-0.0933324545621872,
0.058132462203502655,
-0.0793905258178711,
0.03655458986759186,
-0.0686742290854454,
-0.009880385361611843,
0.13018405437469482,
-0.00418083043769002,
-0.23037020862102509,
-0.09178992360830307,
0.13338881731033325,
-0.11548792570829391,
0.07486791908740997,
-0.07659626007080078,
0.10582219809293747,
0.06737127155065536,
-0.0732438713312149,
0.0851341113448143,
-0.11605842411518097,
-0.11371301859617233,
-0.050680432468652725,
-0.06155038997530937,
0.012517631985247135,
-0.03947122395038605,
0.056244757026433945,
-0.009549385868012905,
0.011101987212896347,
-0.1126633733510971,
0.014013983309268951,
-0.18285401165485382,
0.04754457250237465,
-0.015811603516340256,
-0.017779257148504257,
-0.03921233117580414,
0.044679004698991776,
-0.013378612697124481,
0.12184466421604156,
0.11626755446195602,
-0.007323140744119883,
-0.08059743791818619,
0.15335415303707123,
0.14030630886554718,
0.012835115194320679,
-0.04541883245110512,
0.0026288863737136126,
-0.11467354744672775,
-0.09019056707620621,
-0.13344410061836243,
-0.10047301650047302,
0.1255713701248169,
-0.21377138793468475,
0.06204796954989433,
0.061953652650117874,
0.1654832512140274,
0.16602762043476105,
0.010983221232891083,
0.14645260572433472,
0.012610615231096745,
0.029177028685808182,
0.06128755584359169,
0.010874034836888313,
-0.012181480415165424,
-0.3191019296646118,
-0.031362224370241165,
-0.04179007187485695,
-0.0632970854640007,
-0.05731990560889244,
-0.022038286551833153,
0.13595139980316162,
-0.02783881686627865,
0.01342333946377039,
-0.06078176945447922,
0.019109714776277542,
-0.1889871060848236,
0.12187295407056808,
-0.06300929933786392,
0.2439734935760498,
-0.06516358256340027,
0.05417625233530998,
-0.05228853598237038,
0.04153885692358017,
0.16150934994220734,
0.04664045572280884,
0.15025724470615387,
0.004645258188247681,
-0.23231878876686096,
0.039867300540208817,
0.0019949940033257008,
-0.022961532697081566,
-0.0023758274037390947,
0.13112688064575195,
-0.022491782903671265,
0.05346110835671425,
0.1288307160139084,
-0.20976561307907104,
0.0256499070674181,
0.14648300409317017,
-0.18877069652080536,
-0.018247704952955246,
0.1856173723936081,
0.1557570993900299,
-0.1247626394033432,
-0.10776655375957489,
0.040150269865989685,
-0.09923411905765533,
-0.022988108918070793,
-0.10791973769664764,
-0.12215575575828552,
-0.139598548412323,
-0.07868798077106476,
0.1565205305814743,
-0.059092771261930466,
0.010591934435069561,
-0.11639820039272308,
0.07271988689899445,
0.09654448926448822,
0.11461745947599411,
-0.05924028530716896,
0.002738008974120021,
0.057805221527814865,
0.06493055075407028,
-0.017427168786525726,
0.013828665018081665,
0.11737100034952164,
0.04967261850833893,
0.007890667766332626,
0.02711806260049343,
-0.21605141460895538,
0.03056962601840496,
-0.14251486957073212,
-0.10251668095588684,
-0.04218234866857529,
-0.1519632190465927,
0.08988344669342041,
0.13398610055446625,
-0.15963055193424225,
0.0871095284819603,
-0.13088223338127136,
-0.1292465329170227,
0.0994056910276413,
-0.0009980825707316399,
0.01065723318606615,
-0.15492190420627594,
-0.06050846725702286,
-0.19370105862617493,
-0.12376333773136139,
0.07371789962053299,
-0.01571691408753395,
-0.04535209387540817,
-0.04401829093694687,
-0.12495070695877075,
0.08790535479784012,
0.03447256609797478,
-0.10864097625017166,
-0.045700374990701675,
0.00690878601744771,
-0.22885920107364655,
0.20873738825321198,
-0.008469336666166782,
0.1327972710132599,
-0.027111876755952835,
-0.054653383791446686,
-0.022483550012111664,
-0.03969453275203705,
-0.006525905802845955,
0.08672185242176056,
0.10949309170246124,
-0.1255553513765335,
-0.019918223842978477,
-0.08403280377388,
-0.1243475079536438,
0.038889821618795395,
-0.01996719464659691,
0.20942801237106323,
-0.002768180565908551,
-0.15819187462329865,
0.05201910063624382,
0.11961434781551361,
-0.2543123662471771,
0.0070349895395338535,
-0.11985427141189575,
0.08831682801246643,
-0.05288311466574669,
-0.08513687551021576,
0.03150620311498642,
-0.06297727674245834,
0.019149398431181908,
-0.020024094730615616,
0.03974205255508423,
-0.022208862006664276,
-0.11740745604038239,
-0.05435723066329956,
-0.005794166121631861,
-0.09982385486364365,
-0.09133470058441162,
0.016269946470856667,
0.09541498124599457,
-0.0057562170550227165,
0.05861504375934601,
0.0006973238196223974,
0.18761345744132996,
0.09207239001989365,
0.24027203023433685,
0.03028746135532856,
-0.19211703538894653,
-0.053393371403217316,
0.07365800440311432,
-0.1383824646472931,
-0.029468536376953125,
0.09361327439546585,
-0.01389788556843996,
-0.09493310749530792,
-0.022806191816926003,
-0.022151362150907516,
-0.06018055975437164,
-0.03156641125679016,
0.07629000395536423,
0.06373997777700424,
-0.01270387414842844,
-0.02075343020260334,
0.027612142264842987,
0.0014402560191228986,
0.18789026141166687,
-0.06072232499718666,
-0.016008410602808,
-0.06488240510225296,
-0.13792556524276733,
0.10250688344240189,
0.043148912489414215,
0.08611804991960526,
0.05244254320859909,
-0.009433208033442497,
0.04593919962644577,
-0.14111657440662384,
-0.1408628225326538,
-0.08405482769012451,
-0.004420001059770584,
-0.3403078019618988,
-0.03233819827437401,
-0.09816407412290573,
-0.10353972762823105,
-0.1848737895488739,
-0.043951366096735,
-0.05303341895341873,
0.3253544867038727,
-0.03673987835645676,
-0.06045851856470108,
-2.6787147634123025e-32,
-0.026852209120988846,
-0.05551017448306084,
0.017197199165821075,
-0.05063275620341301,
-0.02049669437110424,
-0.10694976896047592,
0.16100727021694183,
-0.07816710323095322,
0.12406797707080841,
-0.05068163573741913,
-0.1036955714225769,
-0.008459359407424927,
0.06158524379134178,
0.04009908437728882,
0.04084179177880287,
-0.11814115196466446,
0.19584238529205322,
0.0030211685225367546,
-0.033124327659606934,
0.13332721590995789,
0.17042110860347748,
-0.12949825823307037,
0.14340840280056,
0.05867728590965271,
0.12452507764101028,
0.034645821899175644,
-0.14815042912960052,
-0.16867011785507202,
0.01347493939101696,
-0.09565207362174988,
-0.11681552976369858,
0.0678613930940628,
-0.03891792893409729,
0.036627039313316345,
-0.03354979306459427,
0.05417099595069885,
-0.07209178060293198,
0.05303133651614189,
0.06909488141536713,
0.0542621985077858,
0.03079153038561344,
0.0040371050126850605,
-0.04314591735601425,
0.015185277909040451,
0.04545458033680916,
-0.0763017013669014,
-0.07433313131332397,
0.07581882178783417,
0.031133389100432396,
-0.011169090867042542,
0.1806596964597702,
0.0903460755944252,
-0.025048410519957542,
-0.01423780806362629,
0.07221939414739609,
0.03120659478008747,
0.1324535459280014,
-0.19885128736495972,
-0.16780519485473633,
0.019064266234636307,
0.1454681009054184,
-0.004697946831583977,
0.1353425234556198,
0.23974528908729553,
0.15492361783981323,
-0.11467812210321426,
0.09293273091316223,
0.028095681220293045,
0.2179877907037735,
-0.07542983442544937,
-0.08228813111782074,
-0.11768016219139099,
0.09959864616394043,
-0.1158112958073616,
-0.26770395040512085,
0.09457685053348541,
0.036818813532590866,
0.03733928129076958,
-0.02699090540409088,
-0.09758364409208298,
-0.0013661191333085299,
-0.031955987215042114,
-0.0740116536617279,
-0.019324790686368942,
0.06187926605343819,
0.1485360860824585,
0.1537076234817505,
0.08571633696556091,
-0.019478632137179375,
-0.025238756090402603,
-0.12121772021055222,
0.3129361867904663,
-0.0774727463722229,
0.022412337362766266,
-0.019032059237360954,
-0.15196436643600464,
0.10808339715003967,
0.0418664813041687,
-0.10257421433925629,
-0.14063045382499695,
-0.028753094375133514,
0.1545509696006775,
0.22084678709506989,
0.03960656374692917,
0.17698103189468384,
0.05478505417704582,
-0.056809138506650925,
-0.026089204475283623,
-0.200355663895607,
-0.16425146162509918,
0.024046236649155617,
-0.04984065890312195,
0.04888422042131424,
0.05543866381049156,
0.1845911294221878,
-0.03397200629115105,
0.02150524966418743,
0.0067565892823040485,
0.022035034373402596,
0.19661010801792145,
-0.0431857593357563,
0.05711006745696068,
-0.02777928300201893,
-0.02783116325736046,
0.12857694923877716,
0.06478779017925262,
-0.13443753123283386,
-0.11435738205909729,
0.17825543880462646,
-0.08840221911668777,
-0.0150142265483737,
-0.04102037847042084,
7.672335868846858e-7,
0.03590396046638489,
-0.07305019348859787,
-0.030184218659996986,
-0.004804758820682764,
-0.14137710630893707,
0.07833347469568253,
-0.00018750890740193427,
0.10722224414348602,
-0.14858396351337433,
0.030331995338201523,
0.21207848191261292,
-0.030665505677461624,
-0.026891719549894333,
0.10663465410470963,
-0.10197506844997406,
-0.20424070954322815,
-0.21633455157279968,
0.04864489659667015,
-0.07578433305025101,
-0.12311019003391266,
0.06105967238545418,
0.016624167561531067,
-0.029990289360284805,
0.02467622049152851,
0.06273812055587769,
0.07677816599607468,
-0.07123859226703644,
0.014292321167886257,
-0.0900978147983551,
0.07857055962085724,
0.22739499807357788,
-0.17489421367645264,
0.007851000875234604,
0.044476334005594254,
-0.11298566311597824,
0.1323780119419098,
0.01085171103477478,
0.09077128767967224,
0.04810074344277382,
-0.04774901270866394,
-0.08426560461521149,
0.015495121479034424,
0.01078820787370205,
-0.08279334008693695,
0.14742599427700043,
-0.11596977710723877,
-0.13284608721733093,
-0.010741160251200199,
0.011728043667972088,
0.050474561750888824,
0.1751563400030136,
-0.05292278900742531,
-0.12613235414028168,
0.12472129613161087,
0.01746378093957901,
0.08492174744606018,
0.004000380169600248,
-0.13374650478363037,
-0.08630050718784332,
-0.09596915543079376,
-0.16436302661895752,
-0.07629998028278351,
-0.05239391326904297,
-0.1884344518184662,
0.09474509209394455,
-0.11871723085641861,
-0.046550653874874115,
2.9225007388674283e-34,
0.11255002021789551,
-0.03366436809301376,
0.07681987434625626,
-0.06674633175134659,
0.1085413321852684,
-0.09172336012125015,
-0.07032234221696854,
0.03039533831179142,
0.19574876129627228,
-0.3263663947582245,
-0.17106503248214722
] |
https://github.com/huggingface/datasets/issues/2327 | A syntax error in example | cc @beurkinger but I think this has been fixed internally and will soon be updated right ? | ![image](https://user-images.githubusercontent.com/6883957/117315905-b47a5c00-aeba-11eb-91eb-b2a4a0212a56.png)
Sorry to report with an image, I can't find the template source code of this snippet. | 17 | A syntax error in example
![image](https://user-images.githubusercontent.com/6883957/117315905-b47a5c00-aeba-11eb-91eb-b2a4a0212a56.png)
Sorry to report with an image, I can't find the template source code of this snippet.
cc @beurkinger but I think this has been fixed internally and will soon be updated right ? | [
0.12160401791334152,
-0.23784597218036652,
-0.06860560923814774,
-0.14124836027622223,
0.11867599189281464,
0.05395594611763954,
0.13498713076114655,
-0.029261242598295212,
-0.25926366448402405,
-0.036887288093566895,
0.011206564493477345,
0.11267109960317612,
-0.015861960127949715,
0.02277190051972866,
0.06239902228116989,
-0.1121450662612915,
0.012962334789335728,
-0.0373145192861557,
0.1400204747915268,
0.029445741325616837,
-0.030158866196870804,
0.15074075758457184,
-0.07598573714494705,
0.1639590710401535,
0.09884811192750931,
-0.08490799367427826,
0.030550673604011536,
0.1539333462715149,
-0.08098877966403961,
-0.0291876420378685,
0.08931706845760345,
0.061256106942892075,
0.0938962772488594,
-0.09028097987174988,
0.0000054666970754624344,
0.07393072545528412,
-0.014959188178181648,
0.12004610151052475,
-0.05546540394425392,
-0.07096602022647858,
-0.08865249902009964,
0.11140232533216476,
-0.17152848839759827,
-0.004439142998307943,
-0.16434958577156067,
-0.1686100959777832,
-0.11805642396211624,
0.23316554725170135,
-0.014185506850481033,
0.21197888255119324,
-0.00038724576006643474,
-0.12028167396783829,
-0.062378156930208206,
-0.04880732297897339,
0.16243375837802887,
0.14717841148376465,
-0.038473427295684814,
-0.10865126550197601,
0.0712936744093895,
-0.02868443727493286,
0.07750853151082993,
0.10789553076028824,
0.0384988933801651,
-0.08495814353227615,
-0.07922820001840591,
0.09617303311824799,
-0.026945848017930984,
-0.08038696646690369,
-0.058447450399398804,
0.009250872768461704,
0.08938898146152496,
0.12475454807281494,
-0.06683128327131271,
-0.02927485853433609,
-0.04148394614458084,
-0.009106102399528027,
-0.08968988060951233,
0.06135011836886406,
-0.10259658098220825,
0.16293704509735107,
-0.04941016435623169,
-0.04359365254640579,
-0.026066048070788383,
0.05471118912100792,
0.18532446026802063,
0.1138257384300232,
-0.06844183057546616,
0.021205954253673553,
-0.04474933445453644,
0.011417349800467491,
0.12904393672943115,
-0.0012213867157697678,
-0.05341754108667374,
-0.13665474951267242,
0.22113041579723358,
-0.181404709815979,
-0.050912536680698395,
-0.2637586295604706,
-0.011719737201929092,
0.05030624568462372,
0.032091010361909866,
-0.192678302526474,
0.08121442794799805,
0.08064323663711548,
0.026072435081005096,
0.11106541007757187,
0.04926888272166252,
0.13585886359214783,
0.022734787315130234,
0.27236682176589966,
0.12439916282892227,
-0.07170776277780533,
-0.1831245720386505,
-0.1161259189248085,
0.059724971652030945,
0.008576647378504276,
0.1301598846912384,
0.007883433252573013,
-0.06512249261140823,
0.15759792923927307,
0.055439822375774384,
-0.044198159128427505,
0.0701296404004097,
0.12252102047204971,
0.020840946584939957,
-0.15751612186431885,
0.06440093368291855,
0.049066267907619476,
0.00550871854647994,
0.036870069801807404,
0.004230234771966934,
0.281212717294693,
-0.12071822583675385,
-0.12502866983413696,
0.009679991751909256,
-0.13480916619300842,
-0.013740308582782745,
-0.059807416051626205,
0.3396179676055908,
0.10848427563905716,
0.06717492640018463,
0.012980516999959946,
0.030322199687361717,
-0.14045003056526184,
-0.11456279456615448,
0.1425420492887497,
0.13744594156742096,
-0.02242729812860489,
0.08548693358898163,
0.1111517921090126,
-0.0830802470445633,
-0.008622797206044197,
-0.21519848704338074,
-0.09238232672214508,
-0.08153682202100754,
0.003432987257838249,
0.07066146284341812,
-0.03632121533155441,
0.12007264047861099,
-0.14621096849441528,
0.05326559767127037,
0.1582750827074051,
0.03465227410197258,
-0.1412370800971985,
-0.027813617140054703,
0.03515983000397682,
0.046372924000024796,
0.03788832202553749,
-0.0052182055078446865,
-0.02018265798687935,
0.10743951052427292,
0.05469673499464989,
-0.14484460651874542,
0.016300329938530922,
-0.15618790686130524,
0.09790665656328201,
0.02709580585360527,
0.11699740588665009,
0.08630786091089249,
-0.023530302569270134,
0.0010365451453253627,
-0.19576099514961243,
-0.3040147125720978,
-0.14647656679153442,
0.005040607415139675,
-0.0020276608411222696,
-0.0983707532286644,
0.04849771782755852,
-0.09399405866861343,
0.016571855172514915,
-0.03653087094426155,
0.18117357790470123,
-0.030691156163811684,
-0.10818567126989365,
-0.06087033078074455,
-0.04657553881406784,
-0.06498344242572784,
0.11428911238908768,
-0.08170134574174881,
0.08752325177192688,
-0.005726139061152935,
0.09019358456134796,
0.10409015417098999,
-0.0214404109865427,
-0.02176954410970211,
0.14152231812477112,
0.04992811754345894,
-0.04316576570272446,
-0.15365317463874817,
-0.026489736512303352,
-0.07330520451068878,
0.14399105310440063,
0.13112390041351318,
-0.014342649839818478,
-0.029116449877619743,
-0.059333570301532745,
-0.004641581326723099,
-0.024395784363150597,
-0.030850544571876526,
-0.06640820950269699,
0.060826752334833145,
-0.17322345077991486,
0.11155170202255249,
-0.035551443696022034,
0.18883521854877472,
0.04787377268075943,
-0.2716697156429291,
0.0017583065200597048,
-0.02225317992269993,
-0.035616446286439896,
-0.1688966006040573,
-0.03001066856086254,
-0.024165388196706772,
-0.02359522320330143,
0.01230515819042921,
0.04494190216064453,
-0.08607090264558792,
-0.3074054419994354,
-0.1788497418165207,
-0.18876944482326508,
-0.299691766500473,
-0.11189965158700943,
-0.09156820178031921,
0.12529663741588593,
0.09300941228866577,
0.08434631675481796,
-0.012420818209648132,
-0.06407134234905243,
-0.00556099321693182,
0.00018488566274754703,
0.1115695983171463,
-0.04504937678575516,
-0.06461808830499649,
-0.042220260947942734,
0.057807642966508865,
-0.14069710671901703,
-0.19713875651359558,
-0.16544197499752045,
-0.04831365868449211,
-0.06145868077874184,
0.02810177020728588,
0.04027577117085457,
0.11660486459732056,
0.09903933852910995,
0.2718507945537567,
0.026384752243757248,
0.15836241841316223,
-0.1374485194683075,
0.11460088938474655,
0.019363218918442726,
-0.014559025876224041,
-0.11099719256162643,
0.12423204630613327,
-0.08632427453994751,
0.11303380876779556,
0.007317868061363697,
-0.08157967776060104,
-0.03266286104917526,
0.05054349824786186,
0.024378731846809387,
0.025279367342591286,
0.03837951272726059,
0.11385621875524521,
-0.1323237419128418,
-0.058637168258428574,
0.24834375083446503,
-0.00035107816802337766,
-0.040672577917575836,
-0.010018316097557545,
0.12955500185489655,
0.06267934292554855,
0.04069080948829651,
0.134372740983963,
-0.18368776142597198,
-0.02176479436457157,
0.056552451103925705,
0.23071147501468658,
-0.053323894739151,
-0.07392516732215881,
-0.037648770958185196,
-0.186528280377388,
0.08183737844228745,
0.005609612446278334,
0.0931738093495369,
0.12535573542118073,
0.032040033489465714,
0.09812042862176895,
0.12489766627550125,
-0.11455170065164566,
-0.17946431040763855,
0.054947394877672195,
0.10928952693939209,
-0.1008148044347763,
0.12408015131950378,
-0.014128836803138256,
-0.06974150240421295,
-0.1423632651567459,
0.10578254610300064,
0.11994310468435287,
0.1570611447095871,
0.03376709297299385,
0.07536875456571579,
-0.05055571720004082,
0.0685754045844078,
-0.021785084158182144,
0.2835749089717865,
-0.04603245109319687,
-0.10631579905748367,
-0.12467044591903687,
-0.011872352100908756,
0.017206450924277306,
0.08574530482292175,
0.062252845615148544,
-0.03133472055196762,
-0.03858008235692978,
-0.09631197154521942,
0.06136428564786911,
-0.010801855474710464,
0.1454269289970398,
-0.02694360539317131,
-0.012532188557088375,
-0.06568152457475662,
0.037600256502628326,
-0.012311440892517567,
-0.0281456857919693,
0.1668207049369812,
-0.1115327775478363,
0.24668528139591217,
-0.08790786564350128,
-0.14262904226779938,
-0.033427294343709946,
-0.1238933652639389,
-0.02314271777868271,
-0.0615590438246727,
-0.16366922855377197,
0.06144721806049347,
-0.15904934704303741,
-0.22808872163295746,
-0.0803193673491478,
-0.04569618031382561,
0.22602497041225433,
0.1469070017337799,
0.24797120690345764,
0.23155617713928223,
-0.23807521164417267,
0.19641081988811493,
0.05359068140387535,
0.07487354427576065,
-0.21158833801746368,
-0.16686977446079254,
0.03578675910830498,
0.08538252860307693,
0.04236486181616783,
0.1272207647562027,
-0.0696990117430687,
0.006568607408553362,
-0.08097384870052338,
-0.08799628913402557,
0.16752409934997559,
0.10796461254358292,
-0.006054578814655542,
-0.07838369905948639,
-0.012514673173427582,
0.11233748495578766,
-0.050445884466171265,
0.0013195938663557172,
0.027037737891077995,
0.09925501048564911,
0.064238041639328,
0.0653381198644638,
0.05071665719151497,
0.04006338492035866,
0.06521084159612656,
-0.029415734112262726,
-0.00656698876991868,
0.028699910268187523,
-0.037152230739593506,
0.1508944034576416,
-0.033647842705249786,
0.12347720563411713,
-0.08128835260868073,
0.018844105303287506,
-0.20020347833633423,
0.027360284700989723,
0.053627174347639084,
-0.011956887319684029,
0.12296885997056961,
-0.10255510360002518,
-0.12386699765920639,
0.03911317512392998,
0.0747656598687172,
-0.008918548002839088,
0.009529031813144684,
0.03793318569660187,
0.002473898697644472,
-0.08406026661396027,
-0.09252239018678665,
-0.03535012900829315,
-0.08190043270587921,
-0.13814149796962738,
-0.15835900604724884,
-0.3120035231113434,
0.2500053346157074,
0.1018400713801384,
0.05287230759859085,
-0.037783991545438766,
0.04860764741897583,
0.0364968441426754,
-0.1508934497833252,
0.010631727054715157,
0.06070144101977348,
-0.16910436749458313,
-0.06336633861064911,
-0.030439715832471848,
-0.15314985811710358,
-0.009700893424451351,
0.13693560659885406,
0.002046171808615327,
0.053322333842515945,
0.03152143582701683,
-0.09635696560144424,
-0.049337174743413925,
0.09933341294527054,
-0.2793926000595093,
-0.11424164474010468,
-0.257982075214386,
0.05916672945022583,
0.038623224943876266,
0.08959222584962845,
0.05766357108950615,
0.12155558168888092,
-0.17461755871772766,
-0.04999813064932823,
-0.11938320100307465,
0.12743829190731049,
0.023148715496063232,
0.13065870106220245,
-0.11813504993915558,
0.01002494990825653,
-0.04932548478245735,
0.13411037623882294,
-0.043353963643312454,
-0.13612154126167297,
-0.02609848976135254,
0.05647507309913635,
0.013500403612852097,
0.2555924952030182,
-0.048597920686006546,
-0.06637527793645859,
0.05485096946358681,
-0.13857565820217133,
0.16625520586967468,
0.03398366644978523,
0.00248558702878654,
0.046666499227285385,
-0.23171766102313995,
-0.12743768095970154,
-0.18426282703876495,
0.029943857342004776,
0.08906018733978271,
-0.027172690257430077,
0.08460362255573273,
0.09936990588903427,
0.0970502644777298,
0.05440237373113632,
-0.027209030464291573,
-0.07177016139030457,
-0.14964468777179718,
-0.053039755672216415,
-0.09227756410837173,
-0.14074435830116272,
-0.007423474919050932,
0.12562409043312073,
-0.05116835981607437,
0.06310619413852692,
0.1458352655172348,
0.03873597830533981,
0.21883463859558105,
-0.07590826600790024,
-0.03334939479827881,
-0.02593916840851307,
0.026707883924245834,
-0.034948527812957764,
0.03608941659331322,
-0.02754727192223072,
-0.17168113589286804,
0.06595534831285477,
0.06877981871366501,
-0.03023522160947323,
-0.014377661980688572,
0.01608012616634369,
-0.16365846991539001,
0.04669499024748802,
-0.18132507801055908,
0.1654350906610489,
-0.11861302703619003,
0.0034030971582978964,
-0.13164304196834564,
0.0860631987452507,
0.02382166124880314,
-0.009409788064658642,
0.020318785682320595,
-0.05718257278203964,
-0.09304924309253693,
-0.16687923669815063,
0.08361715078353882,
0.055222272872924805,
0.14336711168289185,
-0.03924282640218735,
0.07779078185558319,
0.10872025787830353,
0.09125187993049622,
0.292577862739563,
-0.04626985266804695,
0.060668010264635086,
0.05897260457277298,
0.05600196123123169,
-0.19852137565612793,
0.1634344607591629,
-0.0027086371555924416,
0.026093240827322006,
-0.006306925322860479,
0.04717504233121872,
0.06684751063585281,
0.09841420501470566,
0.06501302123069763,
0.07428178936243057,
-0.02462916076183319,
-0.05559874325990677,
-0.24760891497135162,
-0.13651709258556366,
0.08207552880048752,
0.09125258773565292,
0.0766359493136406,
0.014824368990957737,
-2.534632951464076e-32,
-0.07079096883535385,
0.16229155659675598,
0.008396921679377556,
0.001259643817320466,
-0.170143723487854,
0.07190535217523575,
0.004391575697809458,
0.03327999636530876,
0.06861533969640732,
-0.08107110112905502,
-0.038387417793273926,
0.016542546451091766,
0.05797085165977478,
0.10972610861063004,
0.019275186583399773,
0.045616067945957184,
-0.03400701656937599,
-0.06359846889972687,
-0.042397163808345795,
-0.07180559635162354,
-0.08729824423789978,
-0.07763384282588959,
0.1628010869026184,
-0.02303212322294712,
-0.2255445271730423,
0.20896472036838531,
-0.10365566611289978,
-0.1498682200908661,
0.09444478899240494,
0.004093998111784458,
0.024252120405435562,
0.010141242295503616,
-0.0886409729719162,
0.09560485184192657,
-0.00884899403899908,
-0.13853073120117188,
0.004686273634433746,
-0.3794553875923157,
-0.015486026182770729,
0.20345067977905273,
-0.214807391166687,
0.08820728212594986,
-0.023050595074892044,
-0.18924768269062042,
0.00018463020387571305,
-0.022366568446159363,
-0.006906909868121147,
-0.006781055126339197,
0.07071617990732193,
-0.0014206798514351249,
0.11647918075323105,
0.14594115316867828,
-0.11531578004360199,
0.05300833657383919,
-0.04005400463938713,
0.08965542912483215,
0.029399048537015915,
-0.07033450156450272,
-0.08568182587623596,
0.11865106970071793,
0.1237562820315361,
-0.0279653612524271,
0.08032100647687912,
-0.0708722472190857,
0.04652689769864082,
0.04632674530148506,
0.09570406377315521,
-0.1439918726682663,
-0.056141775101423264,
-0.08349979668855667,
0.04494887590408325,
0.13566863536834717,
-0.051870401948690414,
-0.04908030480146408,
-0.1533728539943695,
0.17224383354187012,
0.02818445675075054,
-0.002083009574562311,
0.02961721643805504,
0.2731349766254425,
0.13054388761520386,
0.15208059549331665,
0.06484977900981903,
-0.0645490288734436,
-0.12211768329143524,
-0.13562585413455963,
0.01790648326277733,
-0.1354636549949646,
-0.0500674769282341,
0.012901799753308296,
0.12798769772052765,
0.23782508075237274,
-0.063614122569561,
0.07233379036188126,
-0.09365776181221008,
0.07701371610164642,
-0.027377795428037643,
0.12588417530059814,
-0.1522325873374939,
-0.053069815039634705,
-0.07146629691123962,
0.044547297060489655,
0.03802238404750824,
-0.09243914484977722,
0.17957261204719543,
0.10896538943052292,
0.11338731646537781,
0.05460841581225395,
-0.27292516827583313,
-0.08689592778682709,
0.12467171996831894,
-0.016763467341661453,
-0.01049040351063013,
-0.09146632254123688,
0.03484685346484184,
-0.18045969307422638,
-0.14832447469234467,
-0.0436883382499218,
0.010592685081064701,
-0.10812555253505707,
-0.22233231365680695,
-0.08210499584674835,
-0.22048303484916687,
0.06804800778627396,
-0.02792169339954853,
0.11578915268182755,
-0.14382469654083252,
0.04090198501944542,
0.000576564809307456,
0.08351217955350876,
-0.04451664164662361,
-0.011046540923416615,
7.379682074315497e-7,
-0.02180102840065956,
0.1080055832862854,
-0.12912461161613464,
0.042631715536117554,
-0.012716361321508884,
0.03503274917602539,
-0.07599862664937973,
0.08122164011001587,
-0.1444040834903717,
0.3141658306121826,
0.10950924456119537,
0.0032786421943455935,
-0.04189476743340492,
0.05926252156496048,
0.20264631509780884,
0.19776389002799988,
-0.09460391104221344,
0.11486304551362991,
-0.13346797227859497,
-0.027862412855029106,
-0.00012867867189925164,
0.015664706006646156,
0.2742435336112976,
0.08669117093086243,
-0.007862204685807228,
-0.037434469908475876,
0.03933943808078766,
-0.2729661464691162,
0.06738550215959549,
-0.1039801836013794,
-0.18343666195869446,
0.03633549064397812,
-0.13840879499912262,
-0.025882786139845848,
0.09767550230026245,
-0.10687939077615738,
0.17157496511936188,
-0.048650458455085754,
-0.08057956397533417,
0.2847459018230438,
0.0886220782995224,
-0.09144383668899536,
-0.027040613815188408,
-0.2726536691188812,
-0.09119266271591187,
-0.03453075513243675,
-0.0913645550608635,
-0.04358813166618347,
-0.20750808715820312,
0.05336964875459671,
0.11952785402536392,
0.07549310475587845,
-0.2127041220664978,
0.005350756458938122,
0.021024297922849655,
-0.18502599000930786,
-0.07333558797836304,
0.02275056391954422,
0.057373546063899994,
0.02524084784090519,
-0.06438181549310684,
0.02480860985815525,
-0.05528410151600838,
0.08148946613073349,
-0.17719590663909912,
0.02006208710372448,
-0.013825359754264355,
1.3858930311457215e-34,
0.23570403456687927,
0.07913719862699509,
0.028544628992676735,
0.08169086277484894,
0.07628439366817474,
0.02483472228050232,
0.0912524089217186,
-0.023357976227998734,
0.09586753696203232,
-0.0445638969540596,
-0.10719116777181625
] |
https://github.com/huggingface/datasets/issues/2323 | load_dataset("timit_asr") gives back duplicates of just one sample text | Thanks @ekeleshian for having reported.
I am closing this issue once that you updated `datasets`. Feel free to reopen it if the problem persists. | ## Describe the bug
When you look up on key ["train"] and then ['text'], you get back a list with just one sentence duplicated 4620 times. Namely, the sentence "Would such an act of refusal be useful?". Similarly when you look up ['test'] and then ['text'], the list is one sentence repeated "The bungalow was pleasantly situated near the shore." 1680 times.
I tried to work around the issue by downgrading to datasets version 1.3.0, inspired by [this post](https://www.gitmemory.com/issue/huggingface/datasets/2052/798904836) and removing the entire huggingface directory from ~/.cache, but I still get the same issue.
## Steps to reproduce the bug
```python
from datasets import load_dataset
timit = load_dataset("timit_asr")
print(timit['train']['text'])
print(timit['test']['text'])
```
## Expected Result
Rows of diverse text, like how it is shown in the [wav2vec2.0 tutorial](https://colab.research.google.com/github/patrickvonplaten/notebooks/blob/master/Fine_tuning_Wav2Vec2_for_English_ASR.ipynb)
<img width="485" alt="Screen Shot 2021-05-05 at 9 09 57 AM" src="https://user-images.githubusercontent.com/33647474/117146094-d9b77f00-ad81-11eb-8306-f281850c127a.png">
## Actual results
Rows of repeated text.
<img width="319" alt="Screen Shot 2021-05-05 at 9 11 53 AM" src="https://user-images.githubusercontent.com/33647474/117146231-f8b61100-ad81-11eb-834a-fc10410b0c9c.png">
## Versions
- Datasets: 1.3.0
- Python: 3.9.1
- Platform: macOS-11.2.1-x86_64-i386-64bit}
| 24 | load_dataset("timit_asr") gives back duplicates of just one sample text
## Describe the bug
When you look up on key ["train"] and then ['text'], you get back a list with just one sentence duplicated 4620 times. Namely, the sentence "Would such an act of refusal be useful?". Similarly when you look up ['test'] and then ['text'], the list is one sentence repeated "The bungalow was pleasantly situated near the shore." 1680 times.
I tried to work around the issue by downgrading to datasets version 1.3.0, inspired by [this post](https://www.gitmemory.com/issue/huggingface/datasets/2052/798904836) and removing the entire huggingface directory from ~/.cache, but I still get the same issue.
## Steps to reproduce the bug
```python
from datasets import load_dataset
timit = load_dataset("timit_asr")
print(timit['train']['text'])
print(timit['test']['text'])
```
## Expected Result
Rows of diverse text, like how it is shown in the [wav2vec2.0 tutorial](https://colab.research.google.com/github/patrickvonplaten/notebooks/blob/master/Fine_tuning_Wav2Vec2_for_English_ASR.ipynb)
<img width="485" alt="Screen Shot 2021-05-05 at 9 09 57 AM" src="https://user-images.githubusercontent.com/33647474/117146094-d9b77f00-ad81-11eb-8306-f281850c127a.png">
## Actual results
Rows of repeated text.
<img width="319" alt="Screen Shot 2021-05-05 at 9 11 53 AM" src="https://user-images.githubusercontent.com/33647474/117146231-f8b61100-ad81-11eb-834a-fc10410b0c9c.png">
## Versions
- Datasets: 1.3.0
- Python: 3.9.1
- Platform: macOS-11.2.1-x86_64-i386-64bit}
Thanks @ekeleshian for having reported.
I am closing this issue once that you updated `datasets`. Feel free to reopen it if the problem persists. | [
0.10393456369638443,
-0.018824933096766472,
-0.09039068967103958,
0.13646350800991058,
0.10520577430725098,
0.026546070352196693,
0.056712646037340164,
-0.017206253483891487,
-0.06259558349847794,
0.1664482206106186,
-0.02158473990857601,
-0.09450367093086243,
0.05284883826971054,
-0.14486142992973328,
-0.025799572467803955,
0.08704297244548798,
0.04352366551756859,
0.10130981355905533,
-0.1353597193956375,
-0.04937973991036415,
-0.03586720675230026,
0.057644329965114594,
0.05373632535338402,
0.057994090020656586,
0.00568733923137188,
0.06669385731220245,
-0.08108643442392349,
0.012029268778860569,
0.13916513323783875,
-0.1759292483329773,
0.08012612909078598,
-0.02808239683508873,
-0.02447771653532982,
0.047745995223522186,
0.0000061945070228830446,
0.0999821275472641,
0.03370431065559387,
0.01233841571956873,
-0.03980136290192604,
-0.1138790175318718,
0.20233625173568726,
-0.06631773710250854,
0.04682501405477524,
0.039297137409448624,
0.0078174052760005,
-0.07868677377700806,
0.035016849637031555,
0.01435015443712473,
-0.04493986442685127,
0.05371827259659767,
-0.0003857104748021811,
0.056745629757642746,
-0.1589803695678711,
-0.2112145572900772,
0.17117920517921448,
0.004023104440420866,
-0.0736738070845604,
-0.06023634597659111,
-0.104271799325943,
-0.01675437018275261,
-0.0475122444331646,
0.011479380540549755,
-0.07983103394508362,
0.13153453171253204,
-0.06105460599064827,
0.17089082300662994,
-0.21821454167366028,
-0.003042360534891486,
0.06683418154716492,
0.2024453729391098,
0.05992857366800308,
0.07781040668487549,
-0.0026766126975417137,
-0.021650606766343117,
-0.016799980774521828,
0.06124745309352875,
-0.04527854919433594,
0.07017789781093597,
-0.2416067123413086,
0.01925729401409626,
-0.17110629379749298,
0.006441458128392696,
-0.042777169495821,
-0.016895122826099396,
-0.21942372620105743,
-0.15043465793132782,
-0.11433111876249313,
0.07721114903688431,
0.04179792478680611,
-0.007402615621685982,
0.12800376117229462,
-0.008991616778075695,
-0.1492377519607544,
-0.08956033736467361,
0.046467021107673645,
0.069169782102108,
0.06766366213560104,
-0.1363120973110199,
0.09951470047235489,
-0.08020353317260742,
0.09749026596546173,
0.063669852912426,
-0.10322131961584091,
0.003932558465749025,
0.09824378043413162,
0.02657347358763218,
0.04431445151567459,
-0.13449548184871674,
-0.10918445140123367,
0.06012550741434097,
-0.17940203845500946,
0.11236627399921417,
-0.35246771574020386,
0.04842234402894974,
0.17736761271953583,
-0.02350708097219467,
0.10084628313779831,
0.056380923837423325,
0.04215388745069504,
0.042355168610811234,
0.010964692570269108,
0.0013188262237235904,
-0.03586886450648308,
0.23625916242599487,
0.13446272909641266,
0.040197744965553284,
-0.005377388559281826,
-0.036899104714393616,
-0.02011040784418583,
0.02521888166666031,
-0.06709940731525421,
-0.056616201996803284,
-0.02219400368630886,
0.04219915345311165,
-0.02279382385313511,
-0.2710385024547577,
-0.02453625574707985,
-0.061132192611694336,
-0.055316951125860214,
-0.00322214444167912,
-0.04794301465153694,
0.03892584145069122,
-0.13816197216510773,
0.09197565168142319,
-0.0000667916756356135,
0.026892518624663353,
0.0993443951010704,
0.1643427312374115,
-0.015206954441964626,
0.006006433162838221,
-0.2694496214389801,
0.22197431325912476,
-0.084610715508461,
0.1531764566898346,
-0.09598594903945923,
0.009637817740440369,
-0.06524651497602463,
0.0006265341653488576,
-0.18689367175102234,
0.03904739022254944,
0.06769196689128876,
0.00554592115804553,
-0.02352050691843033,
-0.020262036472558975,
0.050859179347753525,
0.03493354097008705,
-0.005346610210835934,
-0.06244372949004173,
-0.08412046730518341,
-0.009756138548254967,
0.03400826454162598,
-0.05653268098831177,
-0.17776921391487122,
0.0509231872856617,
-0.1120847687125206,
0.11823299527168274,
0.01171733159571886,
-0.044756706804037094,
-0.06816112250089645,
0.07580940425395966,
0.08372808992862701,
0.00010761461453512311,
-0.0518590547144413,
-0.13124340772628784,
0.016612417995929718,
0.02050154283642769,
0.03026542067527771,
0.0056512546725571156,
0.042064424604177475,
-0.038607630878686905,
-0.010518987663090229,
-0.029844224452972412,
-0.055636268109083176,
-0.0001668443437665701,
-0.042552124708890915,
-0.03121206909418106,
0.07371383905410767,
-0.03970438614487648,
0.13474103808403015,
-0.21344231069087982,
-0.07101329416036606,
-0.022554298862814903,
0.06743644177913666,
0.12233694642782211,
-0.0783553346991539,
-0.02136867679655552,
-0.044964224100112915,
0.1528499722480774,
0.1230064406991005,
-0.07070005685091019,
0.005092284642159939,
0.06831138581037521,
-0.11376480013132095,
0.004038703627884388,
-0.18683676421642303,
0.023902416229248047,
-0.10840082168579102,
0.1922958493232727,
-0.2171369343996048,
0.2784421443939209,
-0.08840065449476242,
0.06475437432527542,
0.10246959328651428,
0.08937443047761917,
0.041547466069459915,
0.11188644915819168,
0.06181793659925461,
-0.02451387047767639,
0.01375581044703722,
0.027915269136428833,
-0.1452290266752243,
-0.022543268278241158,
0.10307642817497253,
0.053521670401096344,
0.0021416929084807634,
-0.06945796310901642,
0.002768562640994787,
-0.1453550159931183,
0.14692506194114685,
-0.0014266283251345158,
-0.15972881019115448,
0.09790265560150146,
0.051372230052948,
-0.062363967299461365,
-0.04550081491470337,
0.06131133437156677,
-0.021200895309448242,
0.05697520449757576,
-0.0228827316313982,
0.02144501730799675,
0.24869820475578308,
0.09034129977226257,
-0.004575325176119804,
0.03169843181967735,
0.0030992638785392046,
-0.05828399956226349,
0.0029942274559289217,
0.2021113932132721,
-0.05729563534259796,
-0.05116653814911842,
0.30558621883392334,
0.010418415069580078,
-0.0276558268815279,
-0.011374205350875854,
0.08662380278110504,
0.0184212327003479,
-0.08791636675596237,
-0.07167641818523407,
0.07929666340351105,
0.16609835624694824,
0.03174208849668503,
-0.15125934779644012,
-0.12869828939437866,
-0.02737373113632202,
0.07587390393018723,
-0.10700514912605286,
-0.05140361562371254,
-0.0046248058788478374,
-0.005105860531330109,
-0.05827181413769722,
-0.2053581327199936,
0.048862699419260025,
-0.0016421526670455933,
-0.05764982849359512,
0.10364833474159241,
-0.0833895206451416,
-0.02118663862347603,
-0.06448188424110413,
-0.10156672447919846,
-0.034077923744916916,
0.05248100683093071,
-0.0562182292342186,
-0.036587294191122055,
-0.07115114480257034,
0.12485059350728989,
0.029033860191702843,
0.0675467699766159,
-0.08155626058578491,
0.0035476763732731342,
0.06923708319664001,
0.009691648185253143,
0.061503421515226364,
-0.1878119260072708,
0.1648729294538498,
-0.004178465344011784,
0.11460603773593903,
0.1372421234846115,
-0.029346100986003876,
-0.18084360659122467,
-0.08261986076831818,
-0.022902999073266983,
0.023078998550772667,
-0.044809821993112564,
0.09234872460365295,
0.02251184917986393,
0.08023762702941895,
-0.12561054527759552,
-0.28349989652633667,
0.039407841861248016,
0.01763458363711834,
0.049468398094177246,
0.16043445467948914,
-0.08302129805088043,
-0.07479214668273926,
0.05527455359697342,
-0.0998285785317421,
-0.0024857535026967525,
0.03650857135653496,
0.07103563100099564,
-0.007708339020609856,
-0.028453674167394638,
0.24781781435012817,
0.04643615335226059,
-0.07890704274177551,
0.09677115082740784,
-0.0294327512383461,
-0.16206085681915283,
0.02932756394147873,
0.29970383644104004,
0.0024207537062466145,
0.02320273406803608,
-0.014107090421020985,
-0.1433974951505661,
-0.07669391483068466,
-0.0014795622555539012,
-0.18726538121700287,
-0.06588509678840637,
-0.11368989199399948,
-0.08446356654167175,
-0.10288795083761215,
0.031247852370142937,
-0.037367500364780426,
-0.048569463193416595,
-0.09663116931915283,
0.018918005749583244,
0.11492028087377548,
0.042371273040771484,
0.08837606757879257,
0.06866393983364105,
0.1309807300567627,
0.01296866126358509,
-0.06331416964530945,
0.037953007966279984,
0.19027145206928253,
0.0029890506993979216,
0.11799164861440659,
0.13305126130580902,
-0.031840261071920395,
-0.01589595340192318,
-0.1713443398475647,
-0.048390451818704605,
0.030004797503352165,
-0.010925360955297947,
0.14292092621326447,
0.020247910171747208,
0.018549172207713127,
0.04844287037849426,
-0.0634460523724556,
0.09180398285388947,
-0.07985947281122208,
-0.03356567397713661,
-0.2635655105113983,
-0.0665346011519432,
0.003493836848065257,
0.14042554795742035,
0.1519252061843872,
0.03879544138908386,
-0.027260366827249527,
-0.22540327906608582,
0.1520676165819168,
0.0037628458812832832,
0.001323355478234589,
0.10077612102031708,
-0.0680871531367302,
-0.17416784167289734,
0.046304915100336075,
0.2618516981601715,
0.08516239374876022,
0.026047132909297943,
0.07168389111757278,
0.11268743127584457,
0.11671528965234756,
-0.044503841549158096,
0.04956208914518356,
0.07106677442789078,
0.173703134059906,
-0.03977374732494354,
-0.020557885989546776,
-0.06884878128767014,
0.019992543384432793,
0.11269207298755646,
0.03623729199171066,
0.008757154457271099,
-0.05072823166847229,
0.1469907909631729,
0.046265386044979095,
-0.0853271409869194,
-0.0951790064573288,
-0.20101802051067352,
-0.09665727615356445,
-0.11484359949827194,
-0.05616757646203041,
0.009677267633378506,
0.12185952067375183,
-0.04916058108210564,
-0.07511045783758163,
-0.029899246990680695,
-0.08900491893291473,
0.2103073000907898,
-0.003758680308237672,
0.17263735830783844,
0.0892999917268753,
0.13383522629737854,
0.0665493831038475,
-0.018080776557326317,
-0.16757412254810333,
0.2932581603527069,
-0.027968384325504303,
0.02059129998087883,
-0.050119780004024506,
-0.22003978490829468,
-0.042339663952589035,
-0.23274944722652435,
0.032290201634168625,
0.045549239963293076,
-0.09219152480363846,
-0.102532759308815,
-0.02246668003499508,
0.014096100814640522,
-0.1308421790599823,
-0.12908467650413513,
-0.05285521224141121,
-0.1196541041135788,
-0.07760512083768845,
-0.036346159875392914,
-0.053061593323946,
0.049056362360715866,
-0.09660463780164719,
-0.0021605484653264284,
0.08747979998588562,
-0.20104393362998962,
-0.03209584578871727,
-0.019886186346411705,
0.03504662215709686,
-0.0735417976975441,
0.062021736055612564,
0.17277482151985168,
-0.07212824374437332,
-0.04112321510910988,
0.0008999558631330729,
-0.07077796012163162,
0.04251692071557045,
0.055390357971191406,
-0.07331934571266174,
0.20447158813476562,
0.03275924548506737,
0.005231890827417374,
0.15041956305503845,
-0.0752144604921341,
0.020478826016187668,
0.16421040892601013,
0.1608581691980362,
0.04318975657224655,
-0.06065942347049713,
-0.13058900833129883,
0.038325052708387375,
0.061121415346860886,
0.027165153995156288,
-0.14332443475723267,
0.14520414173603058,
0.09291978180408478,
0.025457188487052917,
-0.030795685946941376,
-0.10900644212961197,
0.04505641385912895,
0.06683710962533951,
-0.10892145335674286,
-0.015460626222193241,
0.07376298308372498,
0.15231198072433472,
0.04360087960958481,
-0.1254204511642456,
-0.00781749002635479,
0.015045324340462685,
0.11704657971858978,
-0.1349707841873169,
-0.05010474845767021,
-0.006269162055104971,
0.11376086622476578,
-0.058666475117206573,
0.0991785004734993,
0.07570796459913254,
-0.07616396248340607,
-0.09255935996770859,
0.10960334539413452,
-0.11112907528877258,
-0.12566284835338593,
-0.07140935212373734,
0.020268065854907036,
0.08781194686889648,
0.1358855664730072,
-0.06805869191884995,
-0.013606132939457893,
-0.02386298216879368,
0.09673941135406494,
0.10432775318622589,
-0.043017175048589706,
0.0014721374027431011,
0.231636181473732,
-0.004472561180591583,
-0.05753492936491966,
0.06915044784545898,
0.15048161149024963,
0.010133029893040657,
0.04609530046582222,
0.09587953984737396,
0.13093362748622894,
-0.15720906853675842,
-0.014487923122942448,
0.009328585118055344,
0.0827944353222847,
-0.132646381855011,
0.0566762275993824,
0.17980974912643433,
0.03401261195540428,
0.13653910160064697,
-0.03160487487912178,
-0.02690812200307846,
-0.012306518852710724,
-0.0998079925775528,
0.10840906947851181,
-0.012225146405398846,
-0.04172515496611595,
-0.004512706305831671,
-0.01601606048643589,
-2.689568984374208e-32,
0.003172492841258645,
0.03962754085659981,
-0.06416354328393936,
-0.047739870846271515,
-0.09994929283857346,
0.01822698302567005,
-0.015462675131857395,
0.006516745779663324,
-0.0830756425857544,
-0.050096120685338974,
-0.039289649575948715,
-0.08298785984516144,
0.09074196964502335,
-0.04620733857154846,
-0.06012008711695671,
-0.03678860887885094,
0.025176361203193665,
0.027886932715773582,
-0.06637401133775711,
0.0749310776591301,
0.06963993608951569,
0.07605785876512527,
0.04263053834438324,
-0.14045864343643188,
0.03894646465778351,
-0.09849191457033157,
-0.016142500564455986,
-0.21337245404720306,
0.058440737426280975,
0.12486425787210464,
-0.09756476432085037,
0.055623240768909454,
0.04203091561794281,
-0.029780860990285873,
-0.021498771384358406,
-0.09773952513933182,
-0.2640524208545685,
-0.24762919545173645,
0.1022648885846138,
-0.028544267639517784,
0.0858055055141449,
0.03896388038992882,
0.1645677089691162,
-0.23323658108711243,
-0.11989042907953262,
-0.05089655518531799,
0.15164770185947418,
-0.08440886437892914,
-0.2195659726858139,
-0.06571335345506668,
0.03076791949570179,
0.05262896046042442,
0.08663522452116013,
-0.0184783898293972,
-0.056065093725919724,
-0.052706070244312286,
0.08116456866264343,
-0.016849322244524956,
-0.11766748130321503,
0.007402555551379919,
0.056571800261735916,
-0.006483432836830616,
-0.04325008764863014,
-0.18445418775081635,
0.16663095355033875,
0.027318507432937622,
0.30502933263778687,
-0.10280074179172516,
-0.04351669177412987,
-0.23151318728923798,
0.11895494908094406,
0.129518061876297,
-0.11956296861171722,
-0.042735014110803604,
-0.1150994822382927,
-0.15790845453739166,
-0.1576746702194214,
0.10606767982244492,
0.038538847118616104,
-0.14155304431915283,
0.11493165791034698,
-0.03825070708990097,
-0.24357326328754425,
0.06302895396947861,
0.0001888169936137274,
-0.041267625987529755,
0.01916584186255932,
-0.08548208326101303,
0.06043533980846405,
-0.04682259261608124,
0.0203412938863039,
-0.0567421093583107,
-0.08634188026189804,
-0.07496482878923416,
-0.1461801677942276,
-0.10965456813573837,
-0.07125680893659592,
-0.016204416751861572,
-0.14454501867294312,
0.1355951428413391,
0.017334328964352608,
-0.06656647473573685,
0.17268137633800507,
-0.08350638300180435,
0.08296869695186615,
0.08408094942569733,
0.1283123791217804,
0.039698708802461624,
-0.2035621702671051,
-0.01951761357486248,
-0.01790805160999298,
0.018223702907562256,
0.08793199062347412,
0.1103554368019104,
0.1908133327960968,
-0.017146388068795204,
0.01596275344491005,
0.033757444471120834,
0.13228155672550201,
0.13361212611198425,
-0.2272355854511261,
-0.03825453296303749,
0.035247065126895905,
-0.030619697645306587,
-0.1069149374961853,
0.26510679721832275,
-0.21002599596977234,
-0.09434280544519424,
0.04577035829424858,
0.02338259108364582,
0.07603375613689423,
-0.036483172327280045,
7.898595413280418e-7,
-0.21093463897705078,
0.04997623339295387,
-0.0631844773888588,
-0.004517043940722942,
-0.06191127747297287,
0.006201436743140221,
-0.2942503094673157,
-0.0120401531457901,
0.035910043865442276,
0.16846054792404175,
0.17577429115772247,
-0.062294572591781616,
-0.03351633995771408,
0.06794676184654236,
-0.0034931134432554245,
0.056315235793590546,
-0.10460786521434784,
-0.06739399582147598,
-0.08790518343448639,
-0.049212630838155746,
0.17462357878684998,
0.2848394513130188,
-0.09228050708770752,
-0.00861472450196743,
-0.03394754230976105,
-0.16984276473522186,
-0.03181784600019455,
-0.09679365903139114,
0.025335999205708504,
0.00010242127609672025,
-0.020987385883927345,
-0.02732831984758377,
-0.08583804219961166,
0.10574894398450851,
0.011764029040932655,
0.05130324512720108,
-0.07435827702283859,
-0.07165723294019699,
0.08796896785497665,
0.08362989127635956,
0.12061907351016998,
-0.08247426152229309,
0.11706721037626266,
-0.09181179851293564,
0.1800694614648819,
0.085952028632164,
-0.029514368623495102,
0.03749530762434006,
0.05170826613903046,
0.04801749065518379,
0.09943840652704239,
0.13932453095912933,
0.10129590332508087,
0.1608797162771225,
0.06673113256692886,
0.010497793555259705,
-0.028891364112496376,
-0.32924410700798035,
0.15171536803245544,
-0.13432841002941132,
-0.15603995323181152,
-0.07274188846349716,
0.13656513392925262,
-0.006007314193993807,
0.1891266256570816,
-0.10449743270874023,
0.007298321463167667,
3.315782290758254e-35,
0.030455246567726135,
-0.07072718441486359,
0.09575434029102325,
-0.18687234818935394,
0.11705635488033295,
-0.08905550837516785,
0.08434493839740753,
-0.01133144460618496,
0.10209640860557556,
-0.2303106039762497,
-0.11525163054466248
] |
https://github.com/huggingface/datasets/issues/2322 | Calls to map are not cached. | I tried upgrading to `datasets==1.6.2` and downgrading to `1.6.0`. Both versions produce the same output.
Downgrading to `1.5.0` works and produces the following output for me:
```bash
Downloading: 9.20kB [00:00, 3.94MB/s]
Downloading: 5.99kB [00:00, 3.29MB/s]
No config specified, defaulting to: sst/default
Downloading and preparing dataset sst/default (download: 6.83 MiB, generated: 3.73 MiB, post-processed: Unknown size, total: 10.56 MiB) to /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b...
Dataset sst downloaded and prepared to /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b. Subsequent calls will reuse this data.
executed [0, 1]
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 94.83ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 92.75ba/s]
executed [0, 1]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#0: 100%|██████████| 1/1 [00:00<00:00, 118.81ba/s]
#1: 100%|██████████| 1/1 [00:00<00:00, 123.06ba/s]
executed [0, 1]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 119.42ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 123.33ba/s]
##############################
executed [0, 1]
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-6079777aa097c8f8.arrow
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-2dc05c46f68eda6e.arrow
executed [0, 1]
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-1ca347e7430b98f1.arrow
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-c0f1a73ce3ba40cd.arrow
executed [0, 1]
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-832a1407bf1ac5b7.arrow
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-036316a259b773c4.arrow
- Datasets: 1.5.0
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
``` | ## Describe the bug
Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed?
## Steps to reproduce the bug
```python
import datasets
datasets.set_caching_enabled(True)
sst = datasets.load_dataset("sst")
def foo(samples, i):
print("executed", i[:10])
return samples
# first call
x = sst.map(foo, batched=True, with_indices=True, num_proc=2)
print('\n'*3, "#" * 30, '\n'*3)
# second call
y = sst.map(foo, batched=True, with_indices=True, num_proc=2)
# print version
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
## Actual results
This code prints the following output for me:
```bash
No config specified, defaulting to: sst/default
Reusing dataset sst (/home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/b8a7889ef01c5d3ae8c379b84cc4080f8aad3ac2bc538701cbe0ac6416fb76ff)
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 59.85ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 60.85ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 69.32ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 70.93ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 63.25ba/s]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 57.69ba/s]
##############################
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 58.10ba/s]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 57.19ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 60.10ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 53.82ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
#0: 100%|██████████| 2/2 [00:00<00:00, 72.76ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 71.55ba/s]
- Datasets: 1.6.1
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
```
## Expected results
Caching should work.
| 387 | Calls to map are not cached.
## Describe the bug
Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed?
## Steps to reproduce the bug
```python
import datasets
datasets.set_caching_enabled(True)
sst = datasets.load_dataset("sst")
def foo(samples, i):
print("executed", i[:10])
return samples
# first call
x = sst.map(foo, batched=True, with_indices=True, num_proc=2)
print('\n'*3, "#" * 30, '\n'*3)
# second call
y = sst.map(foo, batched=True, with_indices=True, num_proc=2)
# print version
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
## Actual results
This code prints the following output for me:
```bash
No config specified, defaulting to: sst/default
Reusing dataset sst (/home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/b8a7889ef01c5d3ae8c379b84cc4080f8aad3ac2bc538701cbe0ac6416fb76ff)
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 59.85ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 60.85ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 69.32ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 70.93ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 63.25ba/s]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 57.69ba/s]
##############################
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 58.10ba/s]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 57.19ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 60.10ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 53.82ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
#0: 100%|██████████| 2/2 [00:00<00:00, 72.76ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 71.55ba/s]
- Datasets: 1.6.1
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
```
## Expected results
Caching should work.
I tried upgrading to `datasets==1.6.2` and downgrading to `1.6.0`. Both versions produce the same output.
Downgrading to `1.5.0` works and produces the following output for me:
```bash
Downloading: 9.20kB [00:00, 3.94MB/s]
Downloading: 5.99kB [00:00, 3.29MB/s]
No config specified, defaulting to: sst/default
Downloading and preparing dataset sst/default (download: 6.83 MiB, generated: 3.73 MiB, post-processed: Unknown size, total: 10.56 MiB) to /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b...
Dataset sst downloaded and prepared to /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b. Subsequent calls will reuse this data.
executed [0, 1]
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 94.83ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 92.75ba/s]
executed [0, 1]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#0: 100%|██████████| 1/1 [00:00<00:00, 118.81ba/s]
#1: 100%|██████████| 1/1 [00:00<00:00, 123.06ba/s]
executed [0, 1]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 119.42ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 123.33ba/s]
##############################
executed [0, 1]
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-6079777aa097c8f8.arrow
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-2dc05c46f68eda6e.arrow
executed [0, 1]
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-1ca347e7430b98f1.arrow
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-c0f1a73ce3ba40cd.arrow
executed [0, 1]
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-832a1407bf1ac5b7.arrow
Loading cached processed dataset at /home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/a16a45566b63b2c3179e6c1d0f8edadde56e45570ee8cf99394fbb738491d34b/cache-036316a259b773c4.arrow
- Datasets: 1.5.0
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
``` | [
-0.0703437551856041,
-0.0300114918500185,
-0.045539598912000656,
0.007572168484330177,
0.20420002937316895,
0.033359892666339874,
-0.0057458230294287205,
-0.06884242594242096,
0.042900945991277695,
0.11804776638746262,
-0.08427239209413528,
-0.022930199280381203,
0.226115882396698,
-0.16550979018211365,
0.018629513680934906,
0.20789462327957153,
0.04761511832475662,
0.01838490553200245,
-0.08934538066387177,
-0.028458891436457634,
-0.10442078113555908,
0.0353427417576313,
0.003979180008172989,
-0.06685999035835266,
-0.030658720061182976,
-0.017745569348335266,
-0.146988645195961,
-0.01637713983654976,
0.08016839623451233,
-0.01062142476439476,
0.0325544998049736,
0.04170548543334007,
-0.07120756059885025,
0.1624116748571396,
0.000005889599378861021,
0.03327513113617897,
0.24255897104740143,
0.03253878653049469,
-0.11423802375793457,
0.21479545533657074,
-0.07244689017534256,
-0.041469208896160126,
0.01946534588932991,
-0.088322214782238,
0.024013293907046318,
0.05521715059876442,
0.0007898816838860512,
-0.28565070033073425,
0.20355595648288727,
-0.028469307348132133,
-0.05220479890704155,
-0.029551438987255096,
-0.15875813364982605,
-0.06448321789503098,
0.13816788792610168,
0.03872033953666687,
-0.03245491534471512,
-0.08105925470590591,
-0.26669156551361084,
-0.049210429191589355,
0.049467023462057114,
-0.08065763115882874,
-0.017107848078012466,
0.0752357542514801,
-0.14042456448078156,
0.07325313240289688,
0.008509939536452293,
-0.04312744364142418,
0.08587966859340668,
0.0837889164686203,
0.006686491891741753,
-0.10457037389278412,
-0.10532727092504501,
0.1855544000864029,
-0.13957013189792633,
-0.12353504449129105,
-0.03631974756717682,
-0.08336835354566574,
0.07705304771661758,
0.006522556766867638,
-0.13477516174316406,
0.08863504230976105,
0.022435475140810013,
-0.04066116735339165,
-0.1934320330619812,
0.04499167948961258,
-0.002711785025894642,
0.09447835385799408,
-0.06573657691478729,
-0.04578351229429245,
0.1097082793712616,
-0.022213831543922424,
-0.0944487452507019,
0.006408414803445339,
-0.033172521740198135,
0.14508578181266785,
0.15098005533218384,
-0.11043117940425873,
0.00010906800162047148,
-0.0753747895359993,
-0.01690952479839325,
0.019307563081383705,
0.045811042189598083,
0.0768018513917923,
-0.006421919446438551,
0.03187881410121918,
-0.031148189678788185,
-0.020381378009915352,
0.05378851667046547,
0.11287438124418259,
-0.047148674726486206,
-0.09941482543945312,
0.05627252906560898,
0.06379525363445282,
0.3030589520931244,
-0.001964971423149109,
0.13060639798641205,
0.1542125940322876,
0.03087761253118515,
0.13821327686309814,
-0.02267075888812542,
0.03737429156899452,
-0.033806681632995605,
0.19676758348941803,
-0.033427491784095764,
-0.055774129927158356,
-0.0781635195016861,
-0.0905231460928917,
0.07260578125715256,
0.10896120965480804,
-0.0952056273818016,
-0.23313288390636444,
-0.02038552798330784,
0.12257762998342514,
0.07342525571584702,
0.003905000863596797,
0.039751555770635605,
0.10721030086278915,
-0.18769513070583344,
-0.21416091918945312,
0.11664728820323944,
-0.16600275039672852,
0.23901419341564178,
-0.03417263552546501,
-0.06353331357240677,
0.06535085290670395,
0.16610464453697205,
0.17266248166561127,
-0.002011918695643544,
0.04306049644947052,
-0.2005990892648697,
0.1626427322626114,
0.11110487580299377,
-0.021918153390288353,
-0.13576321303844452,
0.10767589509487152,
0.17764653265476227,
0.13261927664279938,
-0.04490106925368309,
-0.021752001717686653,
0.13614757359027863,
-0.17193974554538727,
-0.04503803700208664,
-0.12719322741031647,
0.05167164281010628,
0.14096525311470032,
0.030501315370202065,
0.09730837494134903,
0.020829133689403534,
-0.03945797309279442,
0.1639491766691208,
0.04360737279057503,
-0.1576969474554062,
-0.15883947908878326,
-0.1202210932970047,
0.164242684841156,
-0.0987733006477356,
0.05952238291501999,
-0.16351567208766937,
-0.012526046484708786,
0.0876070186495781,
0.0751650482416153,
-0.1063244491815567,
-0.10448849201202393,
0.14728040993213654,
0.10446524620056152,
0.006863396614789963,
0.02577906660735607,
-0.107598677277565,
0.031747814267873764,
-0.08966322988271713,
0.07837554067373276,
0.010462592355906963,
0.10016955435276031,
-0.06722251325845718,
0.02675321325659752,
0.015102148056030273,
0.05740327388048172,
-0.08833343535661697,
-0.061769723892211914,
-0.0007750879158265889,
0.07753313332796097,
0.0257647056132555,
0.13113752007484436,
0.00629457039758563,
0.030049700289964676,
-0.2588839828968048,
0.15243016183376312,
-0.07082755118608475,
-0.30684733390808105,
-0.013655099086463451,
0.08296865969896317,
0.1602311134338379,
0.10875671356916428,
-0.12725095450878143,
-0.0630558580160141,
-0.13502463698387146,
0.21723061800003052,
-0.08790189027786255,
0.06377865374088287,
-0.08222068846225739,
0.049285825341939926,
0.15248699486255646,
0.10638748109340668,
-0.11157762259244919,
-0.1767445206642151,
-0.06747974455356598,
0.01585245691239834,
-0.173817440867424,
0.056868407875299454,
0.03039265051484108,
0.024936305359005928,
0.13586656749248505,
0.15227031707763672,
0.014766094274818897,
0.024208983406424522,
-0.2502850890159607,
-0.17905695736408234,
-0.00556661281734705,
0.16342470049858093,
-0.0018166638910770416,
0.18552400171756744,
-0.03997412323951721,
-0.10349155217409134,
0.06309965997934341,
0.043855056166648865,
0.06471964716911316,
0.1846894919872284,
-0.0038263723254203796,
-0.0467207208275795,
0.06488189846277237,
0.11143987625837326,
-0.1729568988084793,
-0.021461937576532364,
-0.06475581228733063,
-0.06618374586105347,
0.31287622451782227,
0.11195105314254761,
0.09284334629774094,
0.07830056548118591,
0.4085341989994049,
0.02492174506187439,
-0.046670764684677124,
-0.11603960394859314,
0.03201861307024956,
-0.13498221337795258,
0.1272490918636322,
-0.022996453568339348,
0.09816373139619827,
0.1762308031320572,
0.1988174021244049,
-0.10658905655145645,
-0.06347707659006119,
-0.053467072546482086,
-0.09535358101129532,
-0.058610208332538605,
-0.1649036556482315,
-0.2104821801185608,
0.22153490781784058,
0.04575361683964729,
-0.007899845018982887,
0.13441887497901917,
0.019882386550307274,
-0.12571749091148376,
0.06269652396440506,
0.135736346244812,
-0.11089366674423218,
0.07185506820678711,
-0.14195117354393005,
0.004425368271768093,
-0.041533127427101135,
-0.18927744030952454,
-0.0736512839794159,
-0.10226808488368988,
0.06606706976890564,
-0.0612519271671772,
-0.03440287709236145,
-0.02801434136927128,
-0.027366308495402336,
-0.1705169677734375,
-0.09664624184370041,
0.05816425383090973,
0.005752851255238056,
-0.09739872068166733,
0.03504349663853645,
-0.14427360892295837,
-0.03555617853999138,
0.12739799916744232,
-0.14046485722064972,
-0.01833287440240383,
-0.0277551356703043,
0.07321188598871231,
0.015330953523516655,
-0.08211172372102737,
0.043336618691682816,
-0.0667213574051857,
-0.16284850239753723,
-0.13953019678592682,
0.10899618268013,
-0.10529288649559021,
-0.01644461788237095,
-0.05495349317789078,
-0.08093269169330597,
-0.044487860053777695,
-0.038540977984666824,
-0.05843086540699005,
0.03752574324607849,
-0.05188886448740959,
-0.0020629465579986572,
-0.010704105719923973,
-0.04469609260559082,
0.11515699326992035,
-0.11794106662273407,
-0.09594115614891052,
0.04078827053308487,
-0.1111157238483429,
-0.09811272472143173,
-0.10435151308774948,
0.1709229052066803,
0.04601362720131874,
-0.0014074114151299,
-0.06794101744890213,
-0.11294346302747726,
0.035549700260162354,
0.12151868641376495,
-0.044199470430612564,
0.09692209213972092,
-0.1216023713350296,
0.1714501529932022,
0.015048866160213947,
0.07137780636548996,
0.12090567499399185,
-0.04519594460725784,
-0.09392142295837402,
-0.12372056394815445,
0.014603054150938988,
-0.006693447008728981,
-0.013609037734568119,
-0.21326595544815063,
0.21675623953342438,
0.07610657811164856,
0.11514121294021606,
0.126797616481781,
0.11898992210626602,
-0.058017533272504807,
0.12003910541534424,
0.179595947265625,
-0.05626465752720833,
0.019567003473639488,
-0.1100027859210968,
-0.0019232293125241995,
-0.03826535865664482,
-0.001747767673805356,
-0.07676156610250473,
0.08984720706939697,
-0.04709097370505333,
0.10207238048315048,
-0.07212646305561066,
0.027640119194984436,
0.11335238814353943,
-0.07545071095228195,
-0.2528980076313019,
-0.0213642418384552,
0.07433327287435532,
0.1195497140288353,
-0.1351775825023651,
-0.03152190521359444,
-0.07929845154285431,
-0.19104336202144623,
0.12728740274906158,
-0.026757223531603813,
-0.07985551655292511,
0.0608171783387661,
-0.19229254126548767,
0.04147198423743248,
-0.02594657614827156,
0.06993728131055832,
0.10569895058870316,
-0.04194820672273636,
0.09942780435085297,
0.026231447234749794,
0.1512177288532257,
0.028458256274461746,
0.08337235450744629,
0.12196634709835052,
-0.10764700174331665,
0.10176847875118256,
-0.04895374923944473,
0.10431680828332901,
0.07959423959255219,
0.042239002883434296,
0.043468475341796875,
-0.04167122393846512,
-0.06732548028230667,
0.11092901229858398,
0.017096079885959625,
0.007128624245524406,
0.03308568522334099,
-0.02635386399924755,
-0.12688282132148743,
0.025268210098147392,
-0.1648073047399521,
-0.13542760908603668,
0.05310429632663727,
0.05826076865196228,
-0.02677983231842518,
0.0173975620418787,
-0.11125358939170837,
-0.0449184775352478,
0.011118508875370026,
0.15161395072937012,
0.051132287830114365,
-0.10218394547700882,
0.23122310638427734,
0.09989816695451736,
-0.11649355292320251,
0.1952328085899353,
-0.13618876039981842,
-0.10044459998607635,
-0.041764628142118454,
-0.08734248578548431,
0.007323083467781544,
-0.005078778136521578,
-0.07064317166805267,
-0.010766732506453991,
-0.12313961982727051,
-0.11989398300647736,
0.007048292085528374,
-0.007834294810891151,
0.020091645419597626,
0.005882759112864733,
-0.03644877299666405,
-0.053974833339452744,
-0.06254145503044128,
0.23615115880966187,
-0.032327473163604736,
0.06478995084762573,
-0.26098260283470154,
0.00571357412263751,
0.08956128358840942,
0.035903092473745346,
-0.03587138280272484,
0.02289316989481449,
-0.03651151806116104,
0.1302243173122406,
0.13023334741592407,
0.12096115201711655,
0.04735593870282173,
0.09249873459339142,
0.0687331035733223,
0.009102466516196728,
0.12255175411701202,
-0.11809464544057846,
0.10643104463815689,
0.017057117074728012,
0.11012551188468933,
-0.0779280960559845,
-0.024002429097890854,
0.17278438806533813,
-0.05519736930727959,
0.012425125576555729,
0.17029070854187012,
-0.0030680266208946705,
-0.0935671404004097,
0.15323816239833832,
0.16783806681632996,
0.05462081357836723,
0.089473195374012,
0.04396577551960945,
-0.10506471991539001,
0.05758444219827652,
0.10617717355489731,
0.09906213730573654,
0.04046814888715744,
0.1639062613248825,
0.09117923676967621,
0.04459751024842262,
-0.13724304735660553,
-0.042075447738170624,
0.07780016213655472,
-0.032119784504175186,
-0.04203247278928757,
-0.10710151493549347,
0.0025622909888625145,
-0.0030960352160036564,
-0.12971888482570648,
0.040391705930233,
0.01758190616965294,
0.08105597645044327,
-0.08762290328741074,
0.18116281926631927,
0.09369231015443802,
-0.2163839340209961,
-0.15525449812412262,
0.01149270124733448,
-0.1944378763437271,
-0.21304230391979218,
-0.043933264911174774,
0.008896568790078163,
0.016762401908636093,
0.11133167892694473,
-0.1374230831861496,
-0.008824090473353863,
-0.04866327345371246,
0.07453583180904388,
-0.14339818060398102,
0.04452501982450485,
-0.050341472029685974,
0.30715247988700867,
0.12265647947788239,
0.050780169665813446,
0.05079717934131622,
0.08689659088850021,
-0.14289192855358124,
-0.08898555487394333,
-0.032268982380628586,
0.040076564997434616,
-0.09975545108318329,
-0.006073402240872383,
-0.10300856828689575,
-0.07992871105670929,
-0.19431030750274658,
-0.06366566568613052,
-0.06053723767399788,
0.17822259664535522,
-0.08240553736686707,
0.06053991988301277,
-0.12438506633043289,
-0.11244959384202957,
-0.11028141528367996,
0.03920838236808777,
0.22004710137844086,
-0.027416732162237167,
-0.12992136180400848,
-0.00784382689744234,
-2.696220225284748e-32,
-0.03965045511722565,
-0.09920215606689453,
0.057718563824892044,
-0.114813432097435,
-0.15431034564971924,
0.03348645940423012,
0.1147935688495636,
0.049264561384916306,
-0.07308714091777802,
-0.12594932317733765,
-0.12232504785060883,
0.04824148118495941,
0.04464111104607582,
-0.050521370023489,
-0.08761806041002274,
-0.16433848440647125,
0.023175889626145363,
0.00336845894344151,
-0.17338554561138153,
0.09995459020137787,
0.13269805908203125,
0.11015049368143082,
0.06314931064844131,
-0.058062151074409485,
-0.10425499826669693,
0.05447513237595558,
0.017640424892306328,
-0.23818355798721313,
-0.14246220886707306,
-0.14227327704429626,
0.11400248110294342,
0.12660735845565796,
-0.06268806755542755,
-0.14424286782741547,
-0.019390873610973358,
0.03688408061861992,
-0.1782938539981842,
0.003517088247463107,
-0.058744948357343674,
0.026407282799482346,
-0.012172669172286987,
0.15308676660060883,
-0.03316182270646095,
0.05776763707399368,
-0.07807985693216324,
-0.08153188228607178,
-0.02441275864839554,
-0.02191670425236225,
-0.19893033802509308,
-0.05159813538193703,
-0.017165321856737137,
0.04226991534233093,
0.03261033073067665,
0.0022750534117221832,
-0.046383701264858246,
-0.11354289948940277,
0.1322079300880432,
0.19166289269924164,
-0.07338526844978333,
0.1059974804520607,
0.05649641528725624,
0.1268874704837799,
0.02073063515126705,
0.04667603224515915,
0.14746205508708954,
-0.09173833578824997,
0.2711540460586548,
0.1919633448123932,
0.12948265671730042,
-0.060104746371507645,
0.09293637424707413,
0.036076486110687256,
-0.12623028457164764,
-0.08297492563724518,
-0.12618224322795868,
-0.03881177678704262,
0.1281348466873169,
-0.15680083632469177,
-0.002437393181025982,
0.08371672034263611,
-0.16153617203235626,
-0.10930950939655304,
0.06520183384418488,
0.006884635426104069,
-0.1581943780183792,
0.1357192099094391,
0.05676215514540672,
0.17264100909233093,
-0.20840401947498322,
-0.04760212078690529,
0.10744007676839828,
0.25445088744163513,
-0.2003706842660904,
0.08583025634288788,
0.06516444683074951,
-0.0009922533063217998,
-0.0737038105726242,
0.07208634167909622,
-0.062094856053590775,
0.0932602509856224,
-0.05048961937427521,
0.00925040990114212,
0.0131518030539155,
0.008047735318541527,
0.05244165286421776,
0.09634698927402496,
0.09305738657712936,
0.03677518293261528,
-0.04764801636338234,
-0.13694150745868683,
-0.06867925077676773,
0.0721728727221489,
0.03483331948518753,
-0.12274817377328873,
0.25386354327201843,
-0.037411563098430634,
0.03705247491598129,
0.1037464439868927,
0.044392697513103485,
0.19776827096939087,
-0.08282346278429031,
-0.1495775431394577,
-0.0653262659907341,
0.04098325967788696,
-0.00903952307999134,
0.0480799600481987,
-0.11300300806760788,
-0.19749245047569275,
0.043369878083467484,
-0.12656764686107635,
0.01185435988008976,
-0.1308841109275818,
7.620556630172359e-7,
-0.1744629442691803,
0.07294830679893494,
-0.01704578846693039,
0.05683531612157822,
-0.035725221037864685,
0.13280357420444489,
-0.15950961410999298,
0.20336320996284485,
-0.035159219056367874,
0.22370554506778717,
0.059007324278354645,
-0.12455859035253525,
0.003898774040862918,
-0.15674054622650146,
0.07852461189031601,
-0.14327454566955566,
-0.06746324896812439,
0.021964482963085175,
-0.1304025501012802,
-0.040945447981357574,
-0.1973973512649536,
-0.003137030405923724,
0.11794590950012207,
-0.10659021139144897,
0.09170454740524292,
-0.050916265696287155,
-0.03952527418732643,
-0.18990091979503632,
0.07972172647714615,
-0.043226875364780426,
-0.006630309857428074,
0.05766274780035019,
0.16601480543613434,
-0.08929890394210815,
-0.026636840775609016,
-0.07135593891143799,
-0.08524337410926819,
-0.01142228301614523,
0.12471537292003632,
-0.16702277958393097,
0.04811166971921921,
0.021715965121984482,
-0.0435963049530983,
-0.021961817517876625,
0.09975451231002808,
0.11627821624279022,
-0.008421747013926506,
0.11971056461334229,
-0.024100041016936302,
0.039010968059301376,
0.024432484060525894,
0.09704522043466568,
0.005818735808134079,
0.1968744993209839,
0.012616151012480259,
-0.02344224974513054,
0.04516451805830002,
-0.10463070124387741,
0.07639329135417938,
-0.14323386549949646,
-0.12290575355291367,
-0.16878058016300201,
0.03531091287732124,
-0.07676345854997635,
0.026499053463339806,
-0.11305754631757736,
-0.07386273145675659,
2.3410858505051184e-34,
0.0119778448715806,
-0.022065142169594765,
0.18361473083496094,
-0.10699492692947388,
0.0229471605271101,
-0.0428091362118721,
0.06320130825042725,
0.03953167051076889,
0.029405785724520683,
-0.07534008473157883,
-0.07123079150915146
] |
https://github.com/huggingface/datasets/issues/2322 | Calls to map are not cached. | Hi,
set `keep_in_memory` to False when loading a dataset (`sst = load_dataset("sst", keep_in_memory=False)`) to prevent it from loading in-memory. Currently, in-memory datasets fail to find cached files due to this check (always False for them):
https://github.com/huggingface/datasets/blob/241a0b4a3a868778ee91e767ad406f9da7610df2/src/datasets/arrow_dataset.py#L1718
@albertvillanova It seems like this behavior was overlooked in #2182.
| ## Describe the bug
Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed?
## Steps to reproduce the bug
```python
import datasets
datasets.set_caching_enabled(True)
sst = datasets.load_dataset("sst")
def foo(samples, i):
print("executed", i[:10])
return samples
# first call
x = sst.map(foo, batched=True, with_indices=True, num_proc=2)
print('\n'*3, "#" * 30, '\n'*3)
# second call
y = sst.map(foo, batched=True, with_indices=True, num_proc=2)
# print version
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
## Actual results
This code prints the following output for me:
```bash
No config specified, defaulting to: sst/default
Reusing dataset sst (/home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/b8a7889ef01c5d3ae8c379b84cc4080f8aad3ac2bc538701cbe0ac6416fb76ff)
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 59.85ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 60.85ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 69.32ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 70.93ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 63.25ba/s]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 57.69ba/s]
##############################
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 58.10ba/s]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 57.19ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 60.10ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 53.82ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
#0: 100%|██████████| 2/2 [00:00<00:00, 72.76ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 71.55ba/s]
- Datasets: 1.6.1
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
```
## Expected results
Caching should work.
| 46 | Calls to map are not cached.
## Describe the bug
Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed?
## Steps to reproduce the bug
```python
import datasets
datasets.set_caching_enabled(True)
sst = datasets.load_dataset("sst")
def foo(samples, i):
print("executed", i[:10])
return samples
# first call
x = sst.map(foo, batched=True, with_indices=True, num_proc=2)
print('\n'*3, "#" * 30, '\n'*3)
# second call
y = sst.map(foo, batched=True, with_indices=True, num_proc=2)
# print version
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
## Actual results
This code prints the following output for me:
```bash
No config specified, defaulting to: sst/default
Reusing dataset sst (/home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/b8a7889ef01c5d3ae8c379b84cc4080f8aad3ac2bc538701cbe0ac6416fb76ff)
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 59.85ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 60.85ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 69.32ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 70.93ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 63.25ba/s]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 57.69ba/s]
##############################
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 58.10ba/s]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 57.19ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 60.10ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 53.82ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
#0: 100%|██████████| 2/2 [00:00<00:00, 72.76ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 71.55ba/s]
- Datasets: 1.6.1
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
```
## Expected results
Caching should work.
Hi,
set `keep_in_memory` to False when loading a dataset (`sst = load_dataset("sst", keep_in_memory=False)`) to prevent it from loading in-memory. Currently, in-memory datasets fail to find cached files due to this check (always False for them):
https://github.com/huggingface/datasets/blob/241a0b4a3a868778ee91e767ad406f9da7610df2/src/datasets/arrow_dataset.py#L1718
@albertvillanova It seems like this behavior was overlooked in #2182.
| [
-0.0703437551856041,
-0.0300114918500185,
-0.045539598912000656,
0.007572168484330177,
0.20420002937316895,
0.033359892666339874,
-0.0057458230294287205,
-0.06884242594242096,
0.042900945991277695,
0.11804776638746262,
-0.08427239209413528,
-0.022930199280381203,
0.226115882396698,
-0.16550979018211365,
0.018629513680934906,
0.20789462327957153,
0.04761511832475662,
0.01838490553200245,
-0.08934538066387177,
-0.028458891436457634,
-0.10442078113555908,
0.0353427417576313,
0.003979180008172989,
-0.06685999035835266,
-0.030658720061182976,
-0.017745569348335266,
-0.146988645195961,
-0.01637713983654976,
0.08016839623451233,
-0.01062142476439476,
0.0325544998049736,
0.04170548543334007,
-0.07120756059885025,
0.1624116748571396,
0.000005889599378861021,
0.03327513113617897,
0.24255897104740143,
0.03253878653049469,
-0.11423802375793457,
0.21479545533657074,
-0.07244689017534256,
-0.041469208896160126,
0.01946534588932991,
-0.088322214782238,
0.024013293907046318,
0.05521715059876442,
0.0007898816838860512,
-0.28565070033073425,
0.20355595648288727,
-0.028469307348132133,
-0.05220479890704155,
-0.029551438987255096,
-0.15875813364982605,
-0.06448321789503098,
0.13816788792610168,
0.03872033953666687,
-0.03245491534471512,
-0.08105925470590591,
-0.26669156551361084,
-0.049210429191589355,
0.049467023462057114,
-0.08065763115882874,
-0.017107848078012466,
0.0752357542514801,
-0.14042456448078156,
0.07325313240289688,
0.008509939536452293,
-0.04312744364142418,
0.08587966859340668,
0.0837889164686203,
0.006686491891741753,
-0.10457037389278412,
-0.10532727092504501,
0.1855544000864029,
-0.13957013189792633,
-0.12353504449129105,
-0.03631974756717682,
-0.08336835354566574,
0.07705304771661758,
0.006522556766867638,
-0.13477516174316406,
0.08863504230976105,
0.022435475140810013,
-0.04066116735339165,
-0.1934320330619812,
0.04499167948961258,
-0.002711785025894642,
0.09447835385799408,
-0.06573657691478729,
-0.04578351229429245,
0.1097082793712616,
-0.022213831543922424,
-0.0944487452507019,
0.006408414803445339,
-0.033172521740198135,
0.14508578181266785,
0.15098005533218384,
-0.11043117940425873,
0.00010906800162047148,
-0.0753747895359993,
-0.01690952479839325,
0.019307563081383705,
0.045811042189598083,
0.0768018513917923,
-0.006421919446438551,
0.03187881410121918,
-0.031148189678788185,
-0.020381378009915352,
0.05378851667046547,
0.11287438124418259,
-0.047148674726486206,
-0.09941482543945312,
0.05627252906560898,
0.06379525363445282,
0.3030589520931244,
-0.001964971423149109,
0.13060639798641205,
0.1542125940322876,
0.03087761253118515,
0.13821327686309814,
-0.02267075888812542,
0.03737429156899452,
-0.033806681632995605,
0.19676758348941803,
-0.033427491784095764,
-0.055774129927158356,
-0.0781635195016861,
-0.0905231460928917,
0.07260578125715256,
0.10896120965480804,
-0.0952056273818016,
-0.23313288390636444,
-0.02038552798330784,
0.12257762998342514,
0.07342525571584702,
0.003905000863596797,
0.039751555770635605,
0.10721030086278915,
-0.18769513070583344,
-0.21416091918945312,
0.11664728820323944,
-0.16600275039672852,
0.23901419341564178,
-0.03417263552546501,
-0.06353331357240677,
0.06535085290670395,
0.16610464453697205,
0.17266248166561127,
-0.002011918695643544,
0.04306049644947052,
-0.2005990892648697,
0.1626427322626114,
0.11110487580299377,
-0.021918153390288353,
-0.13576321303844452,
0.10767589509487152,
0.17764653265476227,
0.13261927664279938,
-0.04490106925368309,
-0.021752001717686653,
0.13614757359027863,
-0.17193974554538727,
-0.04503803700208664,
-0.12719322741031647,
0.05167164281010628,
0.14096525311470032,
0.030501315370202065,
0.09730837494134903,
0.020829133689403534,
-0.03945797309279442,
0.1639491766691208,
0.04360737279057503,
-0.1576969474554062,
-0.15883947908878326,
-0.1202210932970047,
0.164242684841156,
-0.0987733006477356,
0.05952238291501999,
-0.16351567208766937,
-0.012526046484708786,
0.0876070186495781,
0.0751650482416153,
-0.1063244491815567,
-0.10448849201202393,
0.14728040993213654,
0.10446524620056152,
0.006863396614789963,
0.02577906660735607,
-0.107598677277565,
0.031747814267873764,
-0.08966322988271713,
0.07837554067373276,
0.010462592355906963,
0.10016955435276031,
-0.06722251325845718,
0.02675321325659752,
0.015102148056030273,
0.05740327388048172,
-0.08833343535661697,
-0.061769723892211914,
-0.0007750879158265889,
0.07753313332796097,
0.0257647056132555,
0.13113752007484436,
0.00629457039758563,
0.030049700289964676,
-0.2588839828968048,
0.15243016183376312,
-0.07082755118608475,
-0.30684733390808105,
-0.013655099086463451,
0.08296865969896317,
0.1602311134338379,
0.10875671356916428,
-0.12725095450878143,
-0.0630558580160141,
-0.13502463698387146,
0.21723061800003052,
-0.08790189027786255,
0.06377865374088287,
-0.08222068846225739,
0.049285825341939926,
0.15248699486255646,
0.10638748109340668,
-0.11157762259244919,
-0.1767445206642151,
-0.06747974455356598,
0.01585245691239834,
-0.173817440867424,
0.056868407875299454,
0.03039265051484108,
0.024936305359005928,
0.13586656749248505,
0.15227031707763672,
0.014766094274818897,
0.024208983406424522,
-0.2502850890159607,
-0.17905695736408234,
-0.00556661281734705,
0.16342470049858093,
-0.0018166638910770416,
0.18552400171756744,
-0.03997412323951721,
-0.10349155217409134,
0.06309965997934341,
0.043855056166648865,
0.06471964716911316,
0.1846894919872284,
-0.0038263723254203796,
-0.0467207208275795,
0.06488189846277237,
0.11143987625837326,
-0.1729568988084793,
-0.021461937576532364,
-0.06475581228733063,
-0.06618374586105347,
0.31287622451782227,
0.11195105314254761,
0.09284334629774094,
0.07830056548118591,
0.4085341989994049,
0.02492174506187439,
-0.046670764684677124,
-0.11603960394859314,
0.03201861307024956,
-0.13498221337795258,
0.1272490918636322,
-0.022996453568339348,
0.09816373139619827,
0.1762308031320572,
0.1988174021244049,
-0.10658905655145645,
-0.06347707659006119,
-0.053467072546482086,
-0.09535358101129532,
-0.058610208332538605,
-0.1649036556482315,
-0.2104821801185608,
0.22153490781784058,
0.04575361683964729,
-0.007899845018982887,
0.13441887497901917,
0.019882386550307274,
-0.12571749091148376,
0.06269652396440506,
0.135736346244812,
-0.11089366674423218,
0.07185506820678711,
-0.14195117354393005,
0.004425368271768093,
-0.041533127427101135,
-0.18927744030952454,
-0.0736512839794159,
-0.10226808488368988,
0.06606706976890564,
-0.0612519271671772,
-0.03440287709236145,
-0.02801434136927128,
-0.027366308495402336,
-0.1705169677734375,
-0.09664624184370041,
0.05816425383090973,
0.005752851255238056,
-0.09739872068166733,
0.03504349663853645,
-0.14427360892295837,
-0.03555617853999138,
0.12739799916744232,
-0.14046485722064972,
-0.01833287440240383,
-0.0277551356703043,
0.07321188598871231,
0.015330953523516655,
-0.08211172372102737,
0.043336618691682816,
-0.0667213574051857,
-0.16284850239753723,
-0.13953019678592682,
0.10899618268013,
-0.10529288649559021,
-0.01644461788237095,
-0.05495349317789078,
-0.08093269169330597,
-0.044487860053777695,
-0.038540977984666824,
-0.05843086540699005,
0.03752574324607849,
-0.05188886448740959,
-0.0020629465579986572,
-0.010704105719923973,
-0.04469609260559082,
0.11515699326992035,
-0.11794106662273407,
-0.09594115614891052,
0.04078827053308487,
-0.1111157238483429,
-0.09811272472143173,
-0.10435151308774948,
0.1709229052066803,
0.04601362720131874,
-0.0014074114151299,
-0.06794101744890213,
-0.11294346302747726,
0.035549700260162354,
0.12151868641376495,
-0.044199470430612564,
0.09692209213972092,
-0.1216023713350296,
0.1714501529932022,
0.015048866160213947,
0.07137780636548996,
0.12090567499399185,
-0.04519594460725784,
-0.09392142295837402,
-0.12372056394815445,
0.014603054150938988,
-0.006693447008728981,
-0.013609037734568119,
-0.21326595544815063,
0.21675623953342438,
0.07610657811164856,
0.11514121294021606,
0.126797616481781,
0.11898992210626602,
-0.058017533272504807,
0.12003910541534424,
0.179595947265625,
-0.05626465752720833,
0.019567003473639488,
-0.1100027859210968,
-0.0019232293125241995,
-0.03826535865664482,
-0.001747767673805356,
-0.07676156610250473,
0.08984720706939697,
-0.04709097370505333,
0.10207238048315048,
-0.07212646305561066,
0.027640119194984436,
0.11335238814353943,
-0.07545071095228195,
-0.2528980076313019,
-0.0213642418384552,
0.07433327287435532,
0.1195497140288353,
-0.1351775825023651,
-0.03152190521359444,
-0.07929845154285431,
-0.19104336202144623,
0.12728740274906158,
-0.026757223531603813,
-0.07985551655292511,
0.0608171783387661,
-0.19229254126548767,
0.04147198423743248,
-0.02594657614827156,
0.06993728131055832,
0.10569895058870316,
-0.04194820672273636,
0.09942780435085297,
0.026231447234749794,
0.1512177288532257,
0.028458256274461746,
0.08337235450744629,
0.12196634709835052,
-0.10764700174331665,
0.10176847875118256,
-0.04895374923944473,
0.10431680828332901,
0.07959423959255219,
0.042239002883434296,
0.043468475341796875,
-0.04167122393846512,
-0.06732548028230667,
0.11092901229858398,
0.017096079885959625,
0.007128624245524406,
0.03308568522334099,
-0.02635386399924755,
-0.12688282132148743,
0.025268210098147392,
-0.1648073047399521,
-0.13542760908603668,
0.05310429632663727,
0.05826076865196228,
-0.02677983231842518,
0.0173975620418787,
-0.11125358939170837,
-0.0449184775352478,
0.011118508875370026,
0.15161395072937012,
0.051132287830114365,
-0.10218394547700882,
0.23122310638427734,
0.09989816695451736,
-0.11649355292320251,
0.1952328085899353,
-0.13618876039981842,
-0.10044459998607635,
-0.041764628142118454,
-0.08734248578548431,
0.007323083467781544,
-0.005078778136521578,
-0.07064317166805267,
-0.010766732506453991,
-0.12313961982727051,
-0.11989398300647736,
0.007048292085528374,
-0.007834294810891151,
0.020091645419597626,
0.005882759112864733,
-0.03644877299666405,
-0.053974833339452744,
-0.06254145503044128,
0.23615115880966187,
-0.032327473163604736,
0.06478995084762573,
-0.26098260283470154,
0.00571357412263751,
0.08956128358840942,
0.035903092473745346,
-0.03587138280272484,
0.02289316989481449,
-0.03651151806116104,
0.1302243173122406,
0.13023334741592407,
0.12096115201711655,
0.04735593870282173,
0.09249873459339142,
0.0687331035733223,
0.009102466516196728,
0.12255175411701202,
-0.11809464544057846,
0.10643104463815689,
0.017057117074728012,
0.11012551188468933,
-0.0779280960559845,
-0.024002429097890854,
0.17278438806533813,
-0.05519736930727959,
0.012425125576555729,
0.17029070854187012,
-0.0030680266208946705,
-0.0935671404004097,
0.15323816239833832,
0.16783806681632996,
0.05462081357836723,
0.089473195374012,
0.04396577551960945,
-0.10506471991539001,
0.05758444219827652,
0.10617717355489731,
0.09906213730573654,
0.04046814888715744,
0.1639062613248825,
0.09117923676967621,
0.04459751024842262,
-0.13724304735660553,
-0.042075447738170624,
0.07780016213655472,
-0.032119784504175186,
-0.04203247278928757,
-0.10710151493549347,
0.0025622909888625145,
-0.0030960352160036564,
-0.12971888482570648,
0.040391705930233,
0.01758190616965294,
0.08105597645044327,
-0.08762290328741074,
0.18116281926631927,
0.09369231015443802,
-0.2163839340209961,
-0.15525449812412262,
0.01149270124733448,
-0.1944378763437271,
-0.21304230391979218,
-0.043933264911174774,
0.008896568790078163,
0.016762401908636093,
0.11133167892694473,
-0.1374230831861496,
-0.008824090473353863,
-0.04866327345371246,
0.07453583180904388,
-0.14339818060398102,
0.04452501982450485,
-0.050341472029685974,
0.30715247988700867,
0.12265647947788239,
0.050780169665813446,
0.05079717934131622,
0.08689659088850021,
-0.14289192855358124,
-0.08898555487394333,
-0.032268982380628586,
0.040076564997434616,
-0.09975545108318329,
-0.006073402240872383,
-0.10300856828689575,
-0.07992871105670929,
-0.19431030750274658,
-0.06366566568613052,
-0.06053723767399788,
0.17822259664535522,
-0.08240553736686707,
0.06053991988301277,
-0.12438506633043289,
-0.11244959384202957,
-0.11028141528367996,
0.03920838236808777,
0.22004710137844086,
-0.027416732162237167,
-0.12992136180400848,
-0.00784382689744234,
-2.696220225284748e-32,
-0.03965045511722565,
-0.09920215606689453,
0.057718563824892044,
-0.114813432097435,
-0.15431034564971924,
0.03348645940423012,
0.1147935688495636,
0.049264561384916306,
-0.07308714091777802,
-0.12594932317733765,
-0.12232504785060883,
0.04824148118495941,
0.04464111104607582,
-0.050521370023489,
-0.08761806041002274,
-0.16433848440647125,
0.023175889626145363,
0.00336845894344151,
-0.17338554561138153,
0.09995459020137787,
0.13269805908203125,
0.11015049368143082,
0.06314931064844131,
-0.058062151074409485,
-0.10425499826669693,
0.05447513237595558,
0.017640424892306328,
-0.23818355798721313,
-0.14246220886707306,
-0.14227327704429626,
0.11400248110294342,
0.12660735845565796,
-0.06268806755542755,
-0.14424286782741547,
-0.019390873610973358,
0.03688408061861992,
-0.1782938539981842,
0.003517088247463107,
-0.058744948357343674,
0.026407282799482346,
-0.012172669172286987,
0.15308676660060883,
-0.03316182270646095,
0.05776763707399368,
-0.07807985693216324,
-0.08153188228607178,
-0.02441275864839554,
-0.02191670425236225,
-0.19893033802509308,
-0.05159813538193703,
-0.017165321856737137,
0.04226991534233093,
0.03261033073067665,
0.0022750534117221832,
-0.046383701264858246,
-0.11354289948940277,
0.1322079300880432,
0.19166289269924164,
-0.07338526844978333,
0.1059974804520607,
0.05649641528725624,
0.1268874704837799,
0.02073063515126705,
0.04667603224515915,
0.14746205508708954,
-0.09173833578824997,
0.2711540460586548,
0.1919633448123932,
0.12948265671730042,
-0.060104746371507645,
0.09293637424707413,
0.036076486110687256,
-0.12623028457164764,
-0.08297492563724518,
-0.12618224322795868,
-0.03881177678704262,
0.1281348466873169,
-0.15680083632469177,
-0.002437393181025982,
0.08371672034263611,
-0.16153617203235626,
-0.10930950939655304,
0.06520183384418488,
0.006884635426104069,
-0.1581943780183792,
0.1357192099094391,
0.05676215514540672,
0.17264100909233093,
-0.20840401947498322,
-0.04760212078690529,
0.10744007676839828,
0.25445088744163513,
-0.2003706842660904,
0.08583025634288788,
0.06516444683074951,
-0.0009922533063217998,
-0.0737038105726242,
0.07208634167909622,
-0.062094856053590775,
0.0932602509856224,
-0.05048961937427521,
0.00925040990114212,
0.0131518030539155,
0.008047735318541527,
0.05244165286421776,
0.09634698927402496,
0.09305738657712936,
0.03677518293261528,
-0.04764801636338234,
-0.13694150745868683,
-0.06867925077676773,
0.0721728727221489,
0.03483331948518753,
-0.12274817377328873,
0.25386354327201843,
-0.037411563098430634,
0.03705247491598129,
0.1037464439868927,
0.044392697513103485,
0.19776827096939087,
-0.08282346278429031,
-0.1495775431394577,
-0.0653262659907341,
0.04098325967788696,
-0.00903952307999134,
0.0480799600481987,
-0.11300300806760788,
-0.19749245047569275,
0.043369878083467484,
-0.12656764686107635,
0.01185435988008976,
-0.1308841109275818,
7.620556630172359e-7,
-0.1744629442691803,
0.07294830679893494,
-0.01704578846693039,
0.05683531612157822,
-0.035725221037864685,
0.13280357420444489,
-0.15950961410999298,
0.20336320996284485,
-0.035159219056367874,
0.22370554506778717,
0.059007324278354645,
-0.12455859035253525,
0.003898774040862918,
-0.15674054622650146,
0.07852461189031601,
-0.14327454566955566,
-0.06746324896812439,
0.021964482963085175,
-0.1304025501012802,
-0.040945447981357574,
-0.1973973512649536,
-0.003137030405923724,
0.11794590950012207,
-0.10659021139144897,
0.09170454740524292,
-0.050916265696287155,
-0.03952527418732643,
-0.18990091979503632,
0.07972172647714615,
-0.043226875364780426,
-0.006630309857428074,
0.05766274780035019,
0.16601480543613434,
-0.08929890394210815,
-0.026636840775609016,
-0.07135593891143799,
-0.08524337410926819,
-0.01142228301614523,
0.12471537292003632,
-0.16702277958393097,
0.04811166971921921,
0.021715965121984482,
-0.0435963049530983,
-0.021961817517876625,
0.09975451231002808,
0.11627821624279022,
-0.008421747013926506,
0.11971056461334229,
-0.024100041016936302,
0.039010968059301376,
0.024432484060525894,
0.09704522043466568,
0.005818735808134079,
0.1968744993209839,
0.012616151012480259,
-0.02344224974513054,
0.04516451805830002,
-0.10463070124387741,
0.07639329135417938,
-0.14323386549949646,
-0.12290575355291367,
-0.16878058016300201,
0.03531091287732124,
-0.07676345854997635,
0.026499053463339806,
-0.11305754631757736,
-0.07386273145675659,
2.3410858505051184e-34,
0.0119778448715806,
-0.022065142169594765,
0.18361473083496094,
-0.10699492692947388,
0.0229471605271101,
-0.0428091362118721,
0.06320130825042725,
0.03953167051076889,
0.029405785724520683,
-0.07534008473157883,
-0.07123079150915146
] |
https://github.com/huggingface/datasets/issues/2322 | Calls to map are not cached. | Hi @villmow, thanks for reporting.
As @mariosasko has pointed out, we did not consider this case when introducing the feature of automatic in-memory for small datasets. This needs to be fixed. | ## Describe the bug
Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed?
## Steps to reproduce the bug
```python
import datasets
datasets.set_caching_enabled(True)
sst = datasets.load_dataset("sst")
def foo(samples, i):
print("executed", i[:10])
return samples
# first call
x = sst.map(foo, batched=True, with_indices=True, num_proc=2)
print('\n'*3, "#" * 30, '\n'*3)
# second call
y = sst.map(foo, batched=True, with_indices=True, num_proc=2)
# print version
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
## Actual results
This code prints the following output for me:
```bash
No config specified, defaulting to: sst/default
Reusing dataset sst (/home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/b8a7889ef01c5d3ae8c379b84cc4080f8aad3ac2bc538701cbe0ac6416fb76ff)
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 59.85ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 60.85ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 69.32ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 70.93ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 63.25ba/s]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 57.69ba/s]
##############################
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 58.10ba/s]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 57.19ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 60.10ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 53.82ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
#0: 100%|██████████| 2/2 [00:00<00:00, 72.76ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 71.55ba/s]
- Datasets: 1.6.1
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
```
## Expected results
Caching should work.
| 31 | Calls to map are not cached.
## Describe the bug
Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed?
## Steps to reproduce the bug
```python
import datasets
datasets.set_caching_enabled(True)
sst = datasets.load_dataset("sst")
def foo(samples, i):
print("executed", i[:10])
return samples
# first call
x = sst.map(foo, batched=True, with_indices=True, num_proc=2)
print('\n'*3, "#" * 30, '\n'*3)
# second call
y = sst.map(foo, batched=True, with_indices=True, num_proc=2)
# print version
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
## Actual results
This code prints the following output for me:
```bash
No config specified, defaulting to: sst/default
Reusing dataset sst (/home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/b8a7889ef01c5d3ae8c379b84cc4080f8aad3ac2bc538701cbe0ac6416fb76ff)
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 59.85ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 60.85ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 69.32ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 70.93ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 63.25ba/s]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 57.69ba/s]
##############################
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 58.10ba/s]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 57.19ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 60.10ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 53.82ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
#0: 100%|██████████| 2/2 [00:00<00:00, 72.76ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 71.55ba/s]
- Datasets: 1.6.1
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
```
## Expected results
Caching should work.
Hi @villmow, thanks for reporting.
As @mariosasko has pointed out, we did not consider this case when introducing the feature of automatic in-memory for small datasets. This needs to be fixed. | [
-0.0703437551856041,
-0.0300114918500185,
-0.045539598912000656,
0.007572168484330177,
0.20420002937316895,
0.033359892666339874,
-0.0057458230294287205,
-0.06884242594242096,
0.042900945991277695,
0.11804776638746262,
-0.08427239209413528,
-0.022930199280381203,
0.226115882396698,
-0.16550979018211365,
0.018629513680934906,
0.20789462327957153,
0.04761511832475662,
0.01838490553200245,
-0.08934538066387177,
-0.028458891436457634,
-0.10442078113555908,
0.0353427417576313,
0.003979180008172989,
-0.06685999035835266,
-0.030658720061182976,
-0.017745569348335266,
-0.146988645195961,
-0.01637713983654976,
0.08016839623451233,
-0.01062142476439476,
0.0325544998049736,
0.04170548543334007,
-0.07120756059885025,
0.1624116748571396,
0.000005889599378861021,
0.03327513113617897,
0.24255897104740143,
0.03253878653049469,
-0.11423802375793457,
0.21479545533657074,
-0.07244689017534256,
-0.041469208896160126,
0.01946534588932991,
-0.088322214782238,
0.024013293907046318,
0.05521715059876442,
0.0007898816838860512,
-0.28565070033073425,
0.20355595648288727,
-0.028469307348132133,
-0.05220479890704155,
-0.029551438987255096,
-0.15875813364982605,
-0.06448321789503098,
0.13816788792610168,
0.03872033953666687,
-0.03245491534471512,
-0.08105925470590591,
-0.26669156551361084,
-0.049210429191589355,
0.049467023462057114,
-0.08065763115882874,
-0.017107848078012466,
0.0752357542514801,
-0.14042456448078156,
0.07325313240289688,
0.008509939536452293,
-0.04312744364142418,
0.08587966859340668,
0.0837889164686203,
0.006686491891741753,
-0.10457037389278412,
-0.10532727092504501,
0.1855544000864029,
-0.13957013189792633,
-0.12353504449129105,
-0.03631974756717682,
-0.08336835354566574,
0.07705304771661758,
0.006522556766867638,
-0.13477516174316406,
0.08863504230976105,
0.022435475140810013,
-0.04066116735339165,
-0.1934320330619812,
0.04499167948961258,
-0.002711785025894642,
0.09447835385799408,
-0.06573657691478729,
-0.04578351229429245,
0.1097082793712616,
-0.022213831543922424,
-0.0944487452507019,
0.006408414803445339,
-0.033172521740198135,
0.14508578181266785,
0.15098005533218384,
-0.11043117940425873,
0.00010906800162047148,
-0.0753747895359993,
-0.01690952479839325,
0.019307563081383705,
0.045811042189598083,
0.0768018513917923,
-0.006421919446438551,
0.03187881410121918,
-0.031148189678788185,
-0.020381378009915352,
0.05378851667046547,
0.11287438124418259,
-0.047148674726486206,
-0.09941482543945312,
0.05627252906560898,
0.06379525363445282,
0.3030589520931244,
-0.001964971423149109,
0.13060639798641205,
0.1542125940322876,
0.03087761253118515,
0.13821327686309814,
-0.02267075888812542,
0.03737429156899452,
-0.033806681632995605,
0.19676758348941803,
-0.033427491784095764,
-0.055774129927158356,
-0.0781635195016861,
-0.0905231460928917,
0.07260578125715256,
0.10896120965480804,
-0.0952056273818016,
-0.23313288390636444,
-0.02038552798330784,
0.12257762998342514,
0.07342525571584702,
0.003905000863596797,
0.039751555770635605,
0.10721030086278915,
-0.18769513070583344,
-0.21416091918945312,
0.11664728820323944,
-0.16600275039672852,
0.23901419341564178,
-0.03417263552546501,
-0.06353331357240677,
0.06535085290670395,
0.16610464453697205,
0.17266248166561127,
-0.002011918695643544,
0.04306049644947052,
-0.2005990892648697,
0.1626427322626114,
0.11110487580299377,
-0.021918153390288353,
-0.13576321303844452,
0.10767589509487152,
0.17764653265476227,
0.13261927664279938,
-0.04490106925368309,
-0.021752001717686653,
0.13614757359027863,
-0.17193974554538727,
-0.04503803700208664,
-0.12719322741031647,
0.05167164281010628,
0.14096525311470032,
0.030501315370202065,
0.09730837494134903,
0.020829133689403534,
-0.03945797309279442,
0.1639491766691208,
0.04360737279057503,
-0.1576969474554062,
-0.15883947908878326,
-0.1202210932970047,
0.164242684841156,
-0.0987733006477356,
0.05952238291501999,
-0.16351567208766937,
-0.012526046484708786,
0.0876070186495781,
0.0751650482416153,
-0.1063244491815567,
-0.10448849201202393,
0.14728040993213654,
0.10446524620056152,
0.006863396614789963,
0.02577906660735607,
-0.107598677277565,
0.031747814267873764,
-0.08966322988271713,
0.07837554067373276,
0.010462592355906963,
0.10016955435276031,
-0.06722251325845718,
0.02675321325659752,
0.015102148056030273,
0.05740327388048172,
-0.08833343535661697,
-0.061769723892211914,
-0.0007750879158265889,
0.07753313332796097,
0.0257647056132555,
0.13113752007484436,
0.00629457039758563,
0.030049700289964676,
-0.2588839828968048,
0.15243016183376312,
-0.07082755118608475,
-0.30684733390808105,
-0.013655099086463451,
0.08296865969896317,
0.1602311134338379,
0.10875671356916428,
-0.12725095450878143,
-0.0630558580160141,
-0.13502463698387146,
0.21723061800003052,
-0.08790189027786255,
0.06377865374088287,
-0.08222068846225739,
0.049285825341939926,
0.15248699486255646,
0.10638748109340668,
-0.11157762259244919,
-0.1767445206642151,
-0.06747974455356598,
0.01585245691239834,
-0.173817440867424,
0.056868407875299454,
0.03039265051484108,
0.024936305359005928,
0.13586656749248505,
0.15227031707763672,
0.014766094274818897,
0.024208983406424522,
-0.2502850890159607,
-0.17905695736408234,
-0.00556661281734705,
0.16342470049858093,
-0.0018166638910770416,
0.18552400171756744,
-0.03997412323951721,
-0.10349155217409134,
0.06309965997934341,
0.043855056166648865,
0.06471964716911316,
0.1846894919872284,
-0.0038263723254203796,
-0.0467207208275795,
0.06488189846277237,
0.11143987625837326,
-0.1729568988084793,
-0.021461937576532364,
-0.06475581228733063,
-0.06618374586105347,
0.31287622451782227,
0.11195105314254761,
0.09284334629774094,
0.07830056548118591,
0.4085341989994049,
0.02492174506187439,
-0.046670764684677124,
-0.11603960394859314,
0.03201861307024956,
-0.13498221337795258,
0.1272490918636322,
-0.022996453568339348,
0.09816373139619827,
0.1762308031320572,
0.1988174021244049,
-0.10658905655145645,
-0.06347707659006119,
-0.053467072546482086,
-0.09535358101129532,
-0.058610208332538605,
-0.1649036556482315,
-0.2104821801185608,
0.22153490781784058,
0.04575361683964729,
-0.007899845018982887,
0.13441887497901917,
0.019882386550307274,
-0.12571749091148376,
0.06269652396440506,
0.135736346244812,
-0.11089366674423218,
0.07185506820678711,
-0.14195117354393005,
0.004425368271768093,
-0.041533127427101135,
-0.18927744030952454,
-0.0736512839794159,
-0.10226808488368988,
0.06606706976890564,
-0.0612519271671772,
-0.03440287709236145,
-0.02801434136927128,
-0.027366308495402336,
-0.1705169677734375,
-0.09664624184370041,
0.05816425383090973,
0.005752851255238056,
-0.09739872068166733,
0.03504349663853645,
-0.14427360892295837,
-0.03555617853999138,
0.12739799916744232,
-0.14046485722064972,
-0.01833287440240383,
-0.0277551356703043,
0.07321188598871231,
0.015330953523516655,
-0.08211172372102737,
0.043336618691682816,
-0.0667213574051857,
-0.16284850239753723,
-0.13953019678592682,
0.10899618268013,
-0.10529288649559021,
-0.01644461788237095,
-0.05495349317789078,
-0.08093269169330597,
-0.044487860053777695,
-0.038540977984666824,
-0.05843086540699005,
0.03752574324607849,
-0.05188886448740959,
-0.0020629465579986572,
-0.010704105719923973,
-0.04469609260559082,
0.11515699326992035,
-0.11794106662273407,
-0.09594115614891052,
0.04078827053308487,
-0.1111157238483429,
-0.09811272472143173,
-0.10435151308774948,
0.1709229052066803,
0.04601362720131874,
-0.0014074114151299,
-0.06794101744890213,
-0.11294346302747726,
0.035549700260162354,
0.12151868641376495,
-0.044199470430612564,
0.09692209213972092,
-0.1216023713350296,
0.1714501529932022,
0.015048866160213947,
0.07137780636548996,
0.12090567499399185,
-0.04519594460725784,
-0.09392142295837402,
-0.12372056394815445,
0.014603054150938988,
-0.006693447008728981,
-0.013609037734568119,
-0.21326595544815063,
0.21675623953342438,
0.07610657811164856,
0.11514121294021606,
0.126797616481781,
0.11898992210626602,
-0.058017533272504807,
0.12003910541534424,
0.179595947265625,
-0.05626465752720833,
0.019567003473639488,
-0.1100027859210968,
-0.0019232293125241995,
-0.03826535865664482,
-0.001747767673805356,
-0.07676156610250473,
0.08984720706939697,
-0.04709097370505333,
0.10207238048315048,
-0.07212646305561066,
0.027640119194984436,
0.11335238814353943,
-0.07545071095228195,
-0.2528980076313019,
-0.0213642418384552,
0.07433327287435532,
0.1195497140288353,
-0.1351775825023651,
-0.03152190521359444,
-0.07929845154285431,
-0.19104336202144623,
0.12728740274906158,
-0.026757223531603813,
-0.07985551655292511,
0.0608171783387661,
-0.19229254126548767,
0.04147198423743248,
-0.02594657614827156,
0.06993728131055832,
0.10569895058870316,
-0.04194820672273636,
0.09942780435085297,
0.026231447234749794,
0.1512177288532257,
0.028458256274461746,
0.08337235450744629,
0.12196634709835052,
-0.10764700174331665,
0.10176847875118256,
-0.04895374923944473,
0.10431680828332901,
0.07959423959255219,
0.042239002883434296,
0.043468475341796875,
-0.04167122393846512,
-0.06732548028230667,
0.11092901229858398,
0.017096079885959625,
0.007128624245524406,
0.03308568522334099,
-0.02635386399924755,
-0.12688282132148743,
0.025268210098147392,
-0.1648073047399521,
-0.13542760908603668,
0.05310429632663727,
0.05826076865196228,
-0.02677983231842518,
0.0173975620418787,
-0.11125358939170837,
-0.0449184775352478,
0.011118508875370026,
0.15161395072937012,
0.051132287830114365,
-0.10218394547700882,
0.23122310638427734,
0.09989816695451736,
-0.11649355292320251,
0.1952328085899353,
-0.13618876039981842,
-0.10044459998607635,
-0.041764628142118454,
-0.08734248578548431,
0.007323083467781544,
-0.005078778136521578,
-0.07064317166805267,
-0.010766732506453991,
-0.12313961982727051,
-0.11989398300647736,
0.007048292085528374,
-0.007834294810891151,
0.020091645419597626,
0.005882759112864733,
-0.03644877299666405,
-0.053974833339452744,
-0.06254145503044128,
0.23615115880966187,
-0.032327473163604736,
0.06478995084762573,
-0.26098260283470154,
0.00571357412263751,
0.08956128358840942,
0.035903092473745346,
-0.03587138280272484,
0.02289316989481449,
-0.03651151806116104,
0.1302243173122406,
0.13023334741592407,
0.12096115201711655,
0.04735593870282173,
0.09249873459339142,
0.0687331035733223,
0.009102466516196728,
0.12255175411701202,
-0.11809464544057846,
0.10643104463815689,
0.017057117074728012,
0.11012551188468933,
-0.0779280960559845,
-0.024002429097890854,
0.17278438806533813,
-0.05519736930727959,
0.012425125576555729,
0.17029070854187012,
-0.0030680266208946705,
-0.0935671404004097,
0.15323816239833832,
0.16783806681632996,
0.05462081357836723,
0.089473195374012,
0.04396577551960945,
-0.10506471991539001,
0.05758444219827652,
0.10617717355489731,
0.09906213730573654,
0.04046814888715744,
0.1639062613248825,
0.09117923676967621,
0.04459751024842262,
-0.13724304735660553,
-0.042075447738170624,
0.07780016213655472,
-0.032119784504175186,
-0.04203247278928757,
-0.10710151493549347,
0.0025622909888625145,
-0.0030960352160036564,
-0.12971888482570648,
0.040391705930233,
0.01758190616965294,
0.08105597645044327,
-0.08762290328741074,
0.18116281926631927,
0.09369231015443802,
-0.2163839340209961,
-0.15525449812412262,
0.01149270124733448,
-0.1944378763437271,
-0.21304230391979218,
-0.043933264911174774,
0.008896568790078163,
0.016762401908636093,
0.11133167892694473,
-0.1374230831861496,
-0.008824090473353863,
-0.04866327345371246,
0.07453583180904388,
-0.14339818060398102,
0.04452501982450485,
-0.050341472029685974,
0.30715247988700867,
0.12265647947788239,
0.050780169665813446,
0.05079717934131622,
0.08689659088850021,
-0.14289192855358124,
-0.08898555487394333,
-0.032268982380628586,
0.040076564997434616,
-0.09975545108318329,
-0.006073402240872383,
-0.10300856828689575,
-0.07992871105670929,
-0.19431030750274658,
-0.06366566568613052,
-0.06053723767399788,
0.17822259664535522,
-0.08240553736686707,
0.06053991988301277,
-0.12438506633043289,
-0.11244959384202957,
-0.11028141528367996,
0.03920838236808777,
0.22004710137844086,
-0.027416732162237167,
-0.12992136180400848,
-0.00784382689744234,
-2.696220225284748e-32,
-0.03965045511722565,
-0.09920215606689453,
0.057718563824892044,
-0.114813432097435,
-0.15431034564971924,
0.03348645940423012,
0.1147935688495636,
0.049264561384916306,
-0.07308714091777802,
-0.12594932317733765,
-0.12232504785060883,
0.04824148118495941,
0.04464111104607582,
-0.050521370023489,
-0.08761806041002274,
-0.16433848440647125,
0.023175889626145363,
0.00336845894344151,
-0.17338554561138153,
0.09995459020137787,
0.13269805908203125,
0.11015049368143082,
0.06314931064844131,
-0.058062151074409485,
-0.10425499826669693,
0.05447513237595558,
0.017640424892306328,
-0.23818355798721313,
-0.14246220886707306,
-0.14227327704429626,
0.11400248110294342,
0.12660735845565796,
-0.06268806755542755,
-0.14424286782741547,
-0.019390873610973358,
0.03688408061861992,
-0.1782938539981842,
0.003517088247463107,
-0.058744948357343674,
0.026407282799482346,
-0.012172669172286987,
0.15308676660060883,
-0.03316182270646095,
0.05776763707399368,
-0.07807985693216324,
-0.08153188228607178,
-0.02441275864839554,
-0.02191670425236225,
-0.19893033802509308,
-0.05159813538193703,
-0.017165321856737137,
0.04226991534233093,
0.03261033073067665,
0.0022750534117221832,
-0.046383701264858246,
-0.11354289948940277,
0.1322079300880432,
0.19166289269924164,
-0.07338526844978333,
0.1059974804520607,
0.05649641528725624,
0.1268874704837799,
0.02073063515126705,
0.04667603224515915,
0.14746205508708954,
-0.09173833578824997,
0.2711540460586548,
0.1919633448123932,
0.12948265671730042,
-0.060104746371507645,
0.09293637424707413,
0.036076486110687256,
-0.12623028457164764,
-0.08297492563724518,
-0.12618224322795868,
-0.03881177678704262,
0.1281348466873169,
-0.15680083632469177,
-0.002437393181025982,
0.08371672034263611,
-0.16153617203235626,
-0.10930950939655304,
0.06520183384418488,
0.006884635426104069,
-0.1581943780183792,
0.1357192099094391,
0.05676215514540672,
0.17264100909233093,
-0.20840401947498322,
-0.04760212078690529,
0.10744007676839828,
0.25445088744163513,
-0.2003706842660904,
0.08583025634288788,
0.06516444683074951,
-0.0009922533063217998,
-0.0737038105726242,
0.07208634167909622,
-0.062094856053590775,
0.0932602509856224,
-0.05048961937427521,
0.00925040990114212,
0.0131518030539155,
0.008047735318541527,
0.05244165286421776,
0.09634698927402496,
0.09305738657712936,
0.03677518293261528,
-0.04764801636338234,
-0.13694150745868683,
-0.06867925077676773,
0.0721728727221489,
0.03483331948518753,
-0.12274817377328873,
0.25386354327201843,
-0.037411563098430634,
0.03705247491598129,
0.1037464439868927,
0.044392697513103485,
0.19776827096939087,
-0.08282346278429031,
-0.1495775431394577,
-0.0653262659907341,
0.04098325967788696,
-0.00903952307999134,
0.0480799600481987,
-0.11300300806760788,
-0.19749245047569275,
0.043369878083467484,
-0.12656764686107635,
0.01185435988008976,
-0.1308841109275818,
7.620556630172359e-7,
-0.1744629442691803,
0.07294830679893494,
-0.01704578846693039,
0.05683531612157822,
-0.035725221037864685,
0.13280357420444489,
-0.15950961410999298,
0.20336320996284485,
-0.035159219056367874,
0.22370554506778717,
0.059007324278354645,
-0.12455859035253525,
0.003898774040862918,
-0.15674054622650146,
0.07852461189031601,
-0.14327454566955566,
-0.06746324896812439,
0.021964482963085175,
-0.1304025501012802,
-0.040945447981357574,
-0.1973973512649536,
-0.003137030405923724,
0.11794590950012207,
-0.10659021139144897,
0.09170454740524292,
-0.050916265696287155,
-0.03952527418732643,
-0.18990091979503632,
0.07972172647714615,
-0.043226875364780426,
-0.006630309857428074,
0.05766274780035019,
0.16601480543613434,
-0.08929890394210815,
-0.026636840775609016,
-0.07135593891143799,
-0.08524337410926819,
-0.01142228301614523,
0.12471537292003632,
-0.16702277958393097,
0.04811166971921921,
0.021715965121984482,
-0.0435963049530983,
-0.021961817517876625,
0.09975451231002808,
0.11627821624279022,
-0.008421747013926506,
0.11971056461334229,
-0.024100041016936302,
0.039010968059301376,
0.024432484060525894,
0.09704522043466568,
0.005818735808134079,
0.1968744993209839,
0.012616151012480259,
-0.02344224974513054,
0.04516451805830002,
-0.10463070124387741,
0.07639329135417938,
-0.14323386549949646,
-0.12290575355291367,
-0.16878058016300201,
0.03531091287732124,
-0.07676345854997635,
0.026499053463339806,
-0.11305754631757736,
-0.07386273145675659,
2.3410858505051184e-34,
0.0119778448715806,
-0.022065142169594765,
0.18361473083496094,
-0.10699492692947388,
0.0229471605271101,
-0.0428091362118721,
0.06320130825042725,
0.03953167051076889,
0.029405785724520683,
-0.07534008473157883,
-0.07123079150915146
] |
https://github.com/huggingface/datasets/issues/2322 | Calls to map are not cached. | Hi ! Currently a dataset that is in memory doesn't know doesn't know in which directory it has to read/write cache files.
On the other hand, a dataset that loaded from the disk (via memory mapping) uses the directory from which the dataset is located to read/write cache files.
Because of that, currently in-memory datasets simply don't use caching.
Maybe a Dataset object could have a `cache_dir` that is set to the directory where the arrow files are created during `load_dataset` ? | ## Describe the bug
Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed?
## Steps to reproduce the bug
```python
import datasets
datasets.set_caching_enabled(True)
sst = datasets.load_dataset("sst")
def foo(samples, i):
print("executed", i[:10])
return samples
# first call
x = sst.map(foo, batched=True, with_indices=True, num_proc=2)
print('\n'*3, "#" * 30, '\n'*3)
# second call
y = sst.map(foo, batched=True, with_indices=True, num_proc=2)
# print version
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
## Actual results
This code prints the following output for me:
```bash
No config specified, defaulting to: sst/default
Reusing dataset sst (/home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/b8a7889ef01c5d3ae8c379b84cc4080f8aad3ac2bc538701cbe0ac6416fb76ff)
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 59.85ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 60.85ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 69.32ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 70.93ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 63.25ba/s]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 57.69ba/s]
##############################
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 58.10ba/s]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 57.19ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 60.10ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 53.82ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
#0: 100%|██████████| 2/2 [00:00<00:00, 72.76ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 71.55ba/s]
- Datasets: 1.6.1
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
```
## Expected results
Caching should work.
| 82 | Calls to map are not cached.
## Describe the bug
Somehow caching does not work for me anymore. Am I doing something wrong, or is there anything that I missed?
## Steps to reproduce the bug
```python
import datasets
datasets.set_caching_enabled(True)
sst = datasets.load_dataset("sst")
def foo(samples, i):
print("executed", i[:10])
return samples
# first call
x = sst.map(foo, batched=True, with_indices=True, num_proc=2)
print('\n'*3, "#" * 30, '\n'*3)
# second call
y = sst.map(foo, batched=True, with_indices=True, num_proc=2)
# print version
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
## Actual results
This code prints the following output for me:
```bash
No config specified, defaulting to: sst/default
Reusing dataset sst (/home/johannes/.cache/huggingface/datasets/sst/default/1.0.0/b8a7889ef01c5d3ae8c379b84cc4080f8aad3ac2bc538701cbe0ac6416fb76ff)
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 59.85ba/s]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 60.85ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 69.32ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 70.93ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
#0: 100%|██████████| 2/2 [00:00<00:00, 63.25ba/s]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 57.69ba/s]
##############################
#0: 0%| | 0/5 [00:00<?, ?ba/s]
#1: 0%| | 0/5 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [4272, 4273, 4274, 4275, 4276, 4277, 4278, 4279, 4280, 4281]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [5272, 5273, 5274, 5275, 5276, 5277, 5278, 5279, 5280, 5281]
executed [2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009]
executed [6272, 6273, 6274, 6275, 6276, 6277, 6278, 6279, 6280, 6281]
executed [3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009]
executed [4000, 4001, 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009]
#0: 100%|██████████| 5/5 [00:00<00:00, 58.10ba/s]
executed [7272, 7273, 7274, 7275, 7276, 7277, 7278, 7279, 7280, 7281]
executed [8272, 8273, 8274, 8275, 8276, 8277, 8278, 8279, 8280, 8281]
#1: 100%|██████████| 5/5 [00:00<00:00, 57.19ba/s]
#0: 0%| | 0/1 [00:00<?, ?ba/s]
#1: 0%| | 0/1 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#0: 100%|██████████| 1/1 [00:00<00:00, 60.10ba/s]
executed [551, 552, 553, 554, 555, 556, 557, 558, 559, 560]
#1: 100%|██████████| 1/1 [00:00<00:00, 53.82ba/s]
#0: 0%| | 0/2 [00:00<?, ?ba/s]
#1: 0%| | 0/2 [00:00<?, ?ba/s]
executed [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
executed [1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009]
executed [1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114]
#0: 100%|██████████| 2/2 [00:00<00:00, 72.76ba/s]
executed [2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114]
#1: 100%|██████████| 2/2 [00:00<00:00, 71.55ba/s]
- Datasets: 1.6.1
- Python: 3.8.3 (default, May 19 2020, 18:47:26)
[GCC 7.3.0]
- Platform: Linux-5.4.0-72-generic-x86_64-with-glibc2.10
```
## Expected results
Caching should work.
Hi ! Currently a dataset that is in memory doesn't know doesn't know in which directory it has to read/write cache files.
On the other hand, a dataset that loaded from the disk (via memory mapping) uses the directory from which the dataset is located to read/write cache files.
Because of that, currently in-memory datasets simply don't use caching.
Maybe a Dataset object could have a `cache_dir` that is set to the directory where the arrow files are created during `load_dataset` ? | [
-0.0703437551856041,
-0.0300114918500185,
-0.045539598912000656,
0.007572168484330177,
0.20420002937316895,
0.033359892666339874,
-0.0057458230294287205,
-0.06884242594242096,
0.042900945991277695,
0.11804776638746262,
-0.08427239209413528,
-0.022930199280381203,
0.226115882396698,
-0.16550979018211365,
0.018629513680934906,
0.20789462327957153,
0.04761511832475662,
0.01838490553200245,
-0.08934538066387177,
-0.028458891436457634,
-0.10442078113555908,
0.0353427417576313,
0.003979180008172989,
-0.06685999035835266,
-0.030658720061182976,
-0.017745569348335266,
-0.146988645195961,
-0.01637713983654976,
0.08016839623451233,
-0.01062142476439476,
0.0325544998049736,
0.04170548543334007,
-0.07120756059885025,
0.1624116748571396,
0.000005889599378861021,
0.03327513113617897,
0.24255897104740143,
0.03253878653049469,
-0.11423802375793457,
0.21479545533657074,
-0.07244689017534256,
-0.041469208896160126,
0.01946534588932991,
-0.088322214782238,
0.024013293907046318,
0.05521715059876442,
0.0007898816838860512,
-0.28565070033073425,
0.20355595648288727,
-0.028469307348132133,
-0.05220479890704155,
-0.029551438987255096,
-0.15875813364982605,
-0.06448321789503098,
0.13816788792610168,
0.03872033953666687,
-0.03245491534471512,
-0.08105925470590591,
-0.26669156551361084,
-0.049210429191589355,
0.049467023462057114,
-0.08065763115882874,
-0.017107848078012466,
0.0752357542514801,
-0.14042456448078156,
0.07325313240289688,
0.008509939536452293,
-0.04312744364142418,
0.08587966859340668,
0.0837889164686203,
0.006686491891741753,
-0.10457037389278412,
-0.10532727092504501,
0.1855544000864029,
-0.13957013189792633,
-0.12353504449129105,
-0.03631974756717682,
-0.08336835354566574,
0.07705304771661758,
0.006522556766867638,
-0.13477516174316406,
0.08863504230976105,
0.022435475140810013,
-0.04066116735339165,
-0.1934320330619812,
0.04499167948961258,
-0.002711785025894642,
0.09447835385799408,
-0.06573657691478729,
-0.04578351229429245,
0.1097082793712616,
-0.022213831543922424,
-0.0944487452507019,
0.006408414803445339,
-0.033172521740198135,
0.14508578181266785,
0.15098005533218384,
-0.11043117940425873,
0.00010906800162047148,
-0.0753747895359993,
-0.01690952479839325,
0.019307563081383705,
0.045811042189598083,
0.0768018513917923,
-0.006421919446438551,
0.03187881410121918,
-0.031148189678788185,
-0.020381378009915352,
0.05378851667046547,
0.11287438124418259,
-0.047148674726486206,
-0.09941482543945312,
0.05627252906560898,
0.06379525363445282,
0.3030589520931244,
-0.001964971423149109,
0.13060639798641205,
0.1542125940322876,
0.03087761253118515,
0.13821327686309814,
-0.02267075888812542,
0.03737429156899452,
-0.033806681632995605,
0.19676758348941803,
-0.033427491784095764,
-0.055774129927158356,
-0.0781635195016861,
-0.0905231460928917,
0.07260578125715256,
0.10896120965480804,
-0.0952056273818016,
-0.23313288390636444,
-0.02038552798330784,
0.12257762998342514,
0.07342525571584702,
0.003905000863596797,
0.039751555770635605,
0.10721030086278915,
-0.18769513070583344,
-0.21416091918945312,
0.11664728820323944,
-0.16600275039672852,
0.23901419341564178,
-0.03417263552546501,
-0.06353331357240677,
0.06535085290670395,
0.16610464453697205,
0.17266248166561127,
-0.002011918695643544,
0.04306049644947052,
-0.2005990892648697,
0.1626427322626114,
0.11110487580299377,
-0.021918153390288353,
-0.13576321303844452,
0.10767589509487152,
0.17764653265476227,
0.13261927664279938,
-0.04490106925368309,
-0.021752001717686653,
0.13614757359027863,
-0.17193974554538727,
-0.04503803700208664,
-0.12719322741031647,
0.05167164281010628,
0.14096525311470032,
0.030501315370202065,
0.09730837494134903,
0.020829133689403534,
-0.03945797309279442,
0.1639491766691208,
0.04360737279057503,
-0.1576969474554062,
-0.15883947908878326,
-0.1202210932970047,
0.164242684841156,
-0.0987733006477356,
0.05952238291501999,
-0.16351567208766937,
-0.012526046484708786,
0.0876070186495781,
0.0751650482416153,
-0.1063244491815567,
-0.10448849201202393,
0.14728040993213654,
0.10446524620056152,
0.006863396614789963,
0.02577906660735607,
-0.107598677277565,
0.031747814267873764,
-0.08966322988271713,
0.07837554067373276,
0.010462592355906963,
0.10016955435276031,
-0.06722251325845718,
0.02675321325659752,
0.015102148056030273,
0.05740327388048172,
-0.08833343535661697,
-0.061769723892211914,
-0.0007750879158265889,
0.07753313332796097,
0.0257647056132555,
0.13113752007484436,
0.00629457039758563,
0.030049700289964676,
-0.2588839828968048,
0.15243016183376312,
-0.07082755118608475,
-0.30684733390808105,
-0.013655099086463451,
0.08296865969896317,
0.1602311134338379,
0.10875671356916428,
-0.12725095450878143,
-0.0630558580160141,
-0.13502463698387146,
0.21723061800003052,
-0.08790189027786255,
0.06377865374088287,
-0.08222068846225739,
0.049285825341939926,
0.15248699486255646,
0.10638748109340668,
-0.11157762259244919,
-0.1767445206642151,
-0.06747974455356598,
0.01585245691239834,
-0.173817440867424,
0.056868407875299454,
0.03039265051484108,
0.024936305359005928,
0.13586656749248505,
0.15227031707763672,
0.014766094274818897,
0.024208983406424522,
-0.2502850890159607,
-0.17905695736408234,
-0.00556661281734705,
0.16342470049858093,
-0.0018166638910770416,
0.18552400171756744,
-0.03997412323951721,
-0.10349155217409134,
0.06309965997934341,
0.043855056166648865,
0.06471964716911316,
0.1846894919872284,
-0.0038263723254203796,
-0.0467207208275795,
0.06488189846277237,
0.11143987625837326,
-0.1729568988084793,
-0.021461937576532364,
-0.06475581228733063,
-0.06618374586105347,
0.31287622451782227,
0.11195105314254761,
0.09284334629774094,
0.07830056548118591,
0.4085341989994049,
0.02492174506187439,
-0.046670764684677124,
-0.11603960394859314,
0.03201861307024956,
-0.13498221337795258,
0.1272490918636322,
-0.022996453568339348,
0.09816373139619827,
0.1762308031320572,
0.1988174021244049,
-0.10658905655145645,
-0.06347707659006119,
-0.053467072546482086,
-0.09535358101129532,
-0.058610208332538605,
-0.1649036556482315,
-0.2104821801185608,
0.22153490781784058,
0.04575361683964729,
-0.007899845018982887,
0.13441887497901917,
0.019882386550307274,
-0.12571749091148376,
0.06269652396440506,
0.135736346244812,
-0.11089366674423218,
0.07185506820678711,
-0.14195117354393005,
0.004425368271768093,
-0.041533127427101135,
-0.18927744030952454,
-0.0736512839794159,
-0.10226808488368988,
0.06606706976890564,
-0.0612519271671772,
-0.03440287709236145,
-0.02801434136927128,
-0.027366308495402336,
-0.1705169677734375,
-0.09664624184370041,
0.05816425383090973,
0.005752851255238056,
-0.09739872068166733,
0.03504349663853645,
-0.14427360892295837,
-0.03555617853999138,
0.12739799916744232,
-0.14046485722064972,
-0.01833287440240383,
-0.0277551356703043,
0.07321188598871231,
0.015330953523516655,
-0.08211172372102737,
0.043336618691682816,
-0.0667213574051857,
-0.16284850239753723,
-0.13953019678592682,
0.10899618268013,
-0.10529288649559021,
-0.01644461788237095,
-0.05495349317789078,
-0.08093269169330597,
-0.044487860053777695,
-0.038540977984666824,
-0.05843086540699005,
0.03752574324607849,
-0.05188886448740959,
-0.0020629465579986572,
-0.010704105719923973,
-0.04469609260559082,
0.11515699326992035,
-0.11794106662273407,
-0.09594115614891052,
0.04078827053308487,
-0.1111157238483429,
-0.09811272472143173,
-0.10435151308774948,
0.1709229052066803,
0.04601362720131874,
-0.0014074114151299,
-0.06794101744890213,
-0.11294346302747726,
0.035549700260162354,
0.12151868641376495,
-0.044199470430612564,
0.09692209213972092,
-0.1216023713350296,
0.1714501529932022,
0.015048866160213947,
0.07137780636548996,
0.12090567499399185,
-0.04519594460725784,
-0.09392142295837402,
-0.12372056394815445,
0.014603054150938988,
-0.006693447008728981,
-0.013609037734568119,
-0.21326595544815063,
0.21675623953342438,
0.07610657811164856,
0.11514121294021606,
0.126797616481781,
0.11898992210626602,
-0.058017533272504807,
0.12003910541534424,
0.179595947265625,
-0.05626465752720833,
0.019567003473639488,
-0.1100027859210968,
-0.0019232293125241995,
-0.03826535865664482,
-0.001747767673805356,
-0.07676156610250473,
0.08984720706939697,
-0.04709097370505333,
0.10207238048315048,
-0.07212646305561066,
0.027640119194984436,
0.11335238814353943,
-0.07545071095228195,
-0.2528980076313019,
-0.0213642418384552,
0.07433327287435532,
0.1195497140288353,
-0.1351775825023651,
-0.03152190521359444,
-0.07929845154285431,
-0.19104336202144623,
0.12728740274906158,
-0.026757223531603813,
-0.07985551655292511,
0.0608171783387661,
-0.19229254126548767,
0.04147198423743248,
-0.02594657614827156,
0.06993728131055832,
0.10569895058870316,
-0.04194820672273636,
0.09942780435085297,
0.026231447234749794,
0.1512177288532257,
0.028458256274461746,
0.08337235450744629,
0.12196634709835052,
-0.10764700174331665,
0.10176847875118256,
-0.04895374923944473,
0.10431680828332901,
0.07959423959255219,
0.042239002883434296,
0.043468475341796875,
-0.04167122393846512,
-0.06732548028230667,
0.11092901229858398,
0.017096079885959625,
0.007128624245524406,
0.03308568522334099,
-0.02635386399924755,
-0.12688282132148743,
0.025268210098147392,
-0.1648073047399521,
-0.13542760908603668,
0.05310429632663727,
0.05826076865196228,
-0.02677983231842518,
0.0173975620418787,
-0.11125358939170837,
-0.0449184775352478,
0.011118508875370026,
0.15161395072937012,
0.051132287830114365,
-0.10218394547700882,
0.23122310638427734,
0.09989816695451736,
-0.11649355292320251,
0.1952328085899353,
-0.13618876039981842,
-0.10044459998607635,
-0.041764628142118454,
-0.08734248578548431,
0.007323083467781544,
-0.005078778136521578,
-0.07064317166805267,
-0.010766732506453991,
-0.12313961982727051,
-0.11989398300647736,
0.007048292085528374,
-0.007834294810891151,
0.020091645419597626,
0.005882759112864733,
-0.03644877299666405,
-0.053974833339452744,
-0.06254145503044128,
0.23615115880966187,
-0.032327473163604736,
0.06478995084762573,
-0.26098260283470154,
0.00571357412263751,
0.08956128358840942,
0.035903092473745346,
-0.03587138280272484,
0.02289316989481449,
-0.03651151806116104,
0.1302243173122406,
0.13023334741592407,
0.12096115201711655,
0.04735593870282173,
0.09249873459339142,
0.0687331035733223,
0.009102466516196728,
0.12255175411701202,
-0.11809464544057846,
0.10643104463815689,
0.017057117074728012,
0.11012551188468933,
-0.0779280960559845,
-0.024002429097890854,
0.17278438806533813,
-0.05519736930727959,
0.012425125576555729,
0.17029070854187012,
-0.0030680266208946705,
-0.0935671404004097,
0.15323816239833832,
0.16783806681632996,
0.05462081357836723,
0.089473195374012,
0.04396577551960945,
-0.10506471991539001,
0.05758444219827652,
0.10617717355489731,
0.09906213730573654,
0.04046814888715744,
0.1639062613248825,
0.09117923676967621,
0.04459751024842262,
-0.13724304735660553,
-0.042075447738170624,
0.07780016213655472,
-0.032119784504175186,
-0.04203247278928757,
-0.10710151493549347,
0.0025622909888625145,
-0.0030960352160036564,
-0.12971888482570648,
0.040391705930233,
0.01758190616965294,
0.08105597645044327,
-0.08762290328741074,
0.18116281926631927,
0.09369231015443802,
-0.2163839340209961,
-0.15525449812412262,
0.01149270124733448,
-0.1944378763437271,
-0.21304230391979218,
-0.043933264911174774,
0.008896568790078163,
0.016762401908636093,
0.11133167892694473,
-0.1374230831861496,
-0.008824090473353863,
-0.04866327345371246,
0.07453583180904388,
-0.14339818060398102,
0.04452501982450485,
-0.050341472029685974,
0.30715247988700867,
0.12265647947788239,
0.050780169665813446,
0.05079717934131622,
0.08689659088850021,
-0.14289192855358124,
-0.08898555487394333,
-0.032268982380628586,
0.040076564997434616,
-0.09975545108318329,
-0.006073402240872383,
-0.10300856828689575,
-0.07992871105670929,
-0.19431030750274658,
-0.06366566568613052,
-0.06053723767399788,
0.17822259664535522,
-0.08240553736686707,
0.06053991988301277,
-0.12438506633043289,
-0.11244959384202957,
-0.11028141528367996,
0.03920838236808777,
0.22004710137844086,
-0.027416732162237167,
-0.12992136180400848,
-0.00784382689744234,
-2.696220225284748e-32,
-0.03965045511722565,
-0.09920215606689453,
0.057718563824892044,
-0.114813432097435,
-0.15431034564971924,
0.03348645940423012,
0.1147935688495636,
0.049264561384916306,
-0.07308714091777802,
-0.12594932317733765,
-0.12232504785060883,
0.04824148118495941,
0.04464111104607582,
-0.050521370023489,
-0.08761806041002274,
-0.16433848440647125,
0.023175889626145363,
0.00336845894344151,
-0.17338554561138153,
0.09995459020137787,
0.13269805908203125,
0.11015049368143082,
0.06314931064844131,
-0.058062151074409485,
-0.10425499826669693,
0.05447513237595558,
0.017640424892306328,
-0.23818355798721313,
-0.14246220886707306,
-0.14227327704429626,
0.11400248110294342,
0.12660735845565796,
-0.06268806755542755,
-0.14424286782741547,
-0.019390873610973358,
0.03688408061861992,
-0.1782938539981842,
0.003517088247463107,
-0.058744948357343674,
0.026407282799482346,
-0.012172669172286987,
0.15308676660060883,
-0.03316182270646095,
0.05776763707399368,
-0.07807985693216324,
-0.08153188228607178,
-0.02441275864839554,
-0.02191670425236225,
-0.19893033802509308,
-0.05159813538193703,
-0.017165321856737137,
0.04226991534233093,
0.03261033073067665,
0.0022750534117221832,
-0.046383701264858246,
-0.11354289948940277,
0.1322079300880432,
0.19166289269924164,
-0.07338526844978333,
0.1059974804520607,
0.05649641528725624,
0.1268874704837799,
0.02073063515126705,
0.04667603224515915,
0.14746205508708954,
-0.09173833578824997,
0.2711540460586548,
0.1919633448123932,
0.12948265671730042,
-0.060104746371507645,
0.09293637424707413,
0.036076486110687256,
-0.12623028457164764,
-0.08297492563724518,
-0.12618224322795868,
-0.03881177678704262,
0.1281348466873169,
-0.15680083632469177,
-0.002437393181025982,
0.08371672034263611,
-0.16153617203235626,
-0.10930950939655304,
0.06520183384418488,
0.006884635426104069,
-0.1581943780183792,
0.1357192099094391,
0.05676215514540672,
0.17264100909233093,
-0.20840401947498322,
-0.04760212078690529,
0.10744007676839828,
0.25445088744163513,
-0.2003706842660904,
0.08583025634288788,
0.06516444683074951,
-0.0009922533063217998,
-0.0737038105726242,
0.07208634167909622,
-0.062094856053590775,
0.0932602509856224,
-0.05048961937427521,
0.00925040990114212,
0.0131518030539155,
0.008047735318541527,
0.05244165286421776,
0.09634698927402496,
0.09305738657712936,
0.03677518293261528,
-0.04764801636338234,
-0.13694150745868683,
-0.06867925077676773,
0.0721728727221489,
0.03483331948518753,
-0.12274817377328873,
0.25386354327201843,
-0.037411563098430634,
0.03705247491598129,
0.1037464439868927,
0.044392697513103485,
0.19776827096939087,
-0.08282346278429031,
-0.1495775431394577,
-0.0653262659907341,
0.04098325967788696,
-0.00903952307999134,
0.0480799600481987,
-0.11300300806760788,
-0.19749245047569275,
0.043369878083467484,
-0.12656764686107635,
0.01185435988008976,
-0.1308841109275818,
7.620556630172359e-7,
-0.1744629442691803,
0.07294830679893494,
-0.01704578846693039,
0.05683531612157822,
-0.035725221037864685,
0.13280357420444489,
-0.15950961410999298,
0.20336320996284485,
-0.035159219056367874,
0.22370554506778717,
0.059007324278354645,
-0.12455859035253525,
0.003898774040862918,
-0.15674054622650146,
0.07852461189031601,
-0.14327454566955566,
-0.06746324896812439,
0.021964482963085175,
-0.1304025501012802,
-0.040945447981357574,
-0.1973973512649536,
-0.003137030405923724,
0.11794590950012207,
-0.10659021139144897,
0.09170454740524292,
-0.050916265696287155,
-0.03952527418732643,
-0.18990091979503632,
0.07972172647714615,
-0.043226875364780426,
-0.006630309857428074,
0.05766274780035019,
0.16601480543613434,
-0.08929890394210815,
-0.026636840775609016,
-0.07135593891143799,
-0.08524337410926819,
-0.01142228301614523,
0.12471537292003632,
-0.16702277958393097,
0.04811166971921921,
0.021715965121984482,
-0.0435963049530983,
-0.021961817517876625,
0.09975451231002808,
0.11627821624279022,
-0.008421747013926506,
0.11971056461334229,
-0.024100041016936302,
0.039010968059301376,
0.024432484060525894,
0.09704522043466568,
0.005818735808134079,
0.1968744993209839,
0.012616151012480259,
-0.02344224974513054,
0.04516451805830002,
-0.10463070124387741,
0.07639329135417938,
-0.14323386549949646,
-0.12290575355291367,
-0.16878058016300201,
0.03531091287732124,
-0.07676345854997635,
0.026499053463339806,
-0.11305754631757736,
-0.07386273145675659,
2.3410858505051184e-34,
0.0119778448715806,
-0.022065142169594765,
0.18361473083496094,
-0.10699492692947388,
0.0229471605271101,
-0.0428091362118721,
0.06320130825042725,
0.03953167051076889,
0.029405785724520683,
-0.07534008473157883,
-0.07123079150915146
] |
https://github.com/huggingface/datasets/issues/2319 | UnicodeDecodeError for OSCAR (Afrikaans) | Thanks for reporting, @sgraaf.
I am going to have a look at it.
I guess the expected codec is "UTF-8". Normally, when no explicitly codec is passed, Python uses one which is platform-dependent. For Linux machines, the default codec is `utf_8`, which is OK. However for Windows machine, the default codec is `cp1252`, which causes the problem. | ## Describe the bug
When loading the [OSCAR dataset](https://huggingface.co/datasets/oscar) (specifically `unshuffled_deduplicated_af`), I encounter a `UnicodeDecodeError`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("oscar", "unshuffled_deduplicated_af")
```
## Expected results
Anything but an error, really.
## Actual results
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset("oscar", "unshuffled_deduplicated_af")
Downloading: 14.7kB [00:00, 4.91MB/s]
Downloading: 3.07MB [00:00, 32.6MB/s]
Downloading and preparing dataset oscar/unshuffled_deduplicated_af (download: 62.93 MiB, generated: 163.38 MiB, post-processed: Unknown size, total: 226.32 MiB) to C:\Users\sgraaf\.cache\huggingface\datasets\oscar\unshuffled_deduplicated_af\1.0.0\bd4f96df5b4512007ef9fd17bbc1ecde459fa53d2fc0049cf99392ba2efcc464...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 81.0/81.0 [00:00<00:00, 40.5kB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 66.0M/66.0M [00:18<00:00, 3.50MB/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\load.py", line 745, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 574, in download_and_prepare
self._download_and_prepare(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 979, in _prepare_split
for key, record in utils.tqdm(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\tqdm\std.py", line 1133, in __iter__
for obj in iterable:
File "C:\Users\sgraaf\.cache\huggingface\modules\datasets_modules\datasets\oscar\bd4f96df5b4512007ef9fd17bbc1ecde459fa53d2fc0049cf99392ba2efcc464\oscar.py", line 359, in _generate_examples
for line in f:
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 7454: character maps to <undefined>
```
## Versions
Paste the output of the following code:
```python
import datasets
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
- Datasets: 1.6.2
- Python: 3.9.4 (tags/v3.9.4:1f2e308, Apr 6 2021, 13:40:21) [MSC v.1928 64 bit (AMD64)]
- Platform: Windows-10-10.0.19041-SP0 | 57 | UnicodeDecodeError for OSCAR (Afrikaans)
## Describe the bug
When loading the [OSCAR dataset](https://huggingface.co/datasets/oscar) (specifically `unshuffled_deduplicated_af`), I encounter a `UnicodeDecodeError`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("oscar", "unshuffled_deduplicated_af")
```
## Expected results
Anything but an error, really.
## Actual results
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset("oscar", "unshuffled_deduplicated_af")
Downloading: 14.7kB [00:00, 4.91MB/s]
Downloading: 3.07MB [00:00, 32.6MB/s]
Downloading and preparing dataset oscar/unshuffled_deduplicated_af (download: 62.93 MiB, generated: 163.38 MiB, post-processed: Unknown size, total: 226.32 MiB) to C:\Users\sgraaf\.cache\huggingface\datasets\oscar\unshuffled_deduplicated_af\1.0.0\bd4f96df5b4512007ef9fd17bbc1ecde459fa53d2fc0049cf99392ba2efcc464...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 81.0/81.0 [00:00<00:00, 40.5kB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 66.0M/66.0M [00:18<00:00, 3.50MB/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\load.py", line 745, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 574, in download_and_prepare
self._download_and_prepare(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 979, in _prepare_split
for key, record in utils.tqdm(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\tqdm\std.py", line 1133, in __iter__
for obj in iterable:
File "C:\Users\sgraaf\.cache\huggingface\modules\datasets_modules\datasets\oscar\bd4f96df5b4512007ef9fd17bbc1ecde459fa53d2fc0049cf99392ba2efcc464\oscar.py", line 359, in _generate_examples
for line in f:
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 7454: character maps to <undefined>
```
## Versions
Paste the output of the following code:
```python
import datasets
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
- Datasets: 1.6.2
- Python: 3.9.4 (tags/v3.9.4:1f2e308, Apr 6 2021, 13:40:21) [MSC v.1928 64 bit (AMD64)]
- Platform: Windows-10-10.0.19041-SP0
Thanks for reporting, @sgraaf.
I am going to have a look at it.
I guess the expected codec is "UTF-8". Normally, when no explicitly codec is passed, Python uses one which is platform-dependent. For Linux machines, the default codec is `utf_8`, which is OK. However for Windows machine, the default codec is `cp1252`, which causes the problem. | [
0.1496029943227768,
0.06900017708539963,
0.053023774176836014,
0.15833650529384613,
0.3723223805427551,
0.06972809135913849,
-0.0291114691644907,
0.008728225715458393,
-0.06854259967803955,
0.1486326903104782,
-0.08997990190982819,
-0.11390159279108047,
0.04851563274860382,
-0.054585445672273636,
0.005195834673941135,
0.07381438463926315,
-0.09675037860870361,
-0.14173541963100433,
0.06552834063768387,
-0.15367555618286133,
-0.1272258758544922,
0.14995376765727997,
0.060015782713890076,
0.22345858812332153,
-0.06644649803638458,
-0.06362131237983704,
-0.020052336156368256,
0.11877540498971939,
0.05487411469221115,
0.006958895828574896,
-0.07757298648357391,
-0.03382260352373123,
-0.07386615872383118,
0.1831131875514984,
0.000005319889169186354,
0.02577255293726921,
0.08556661009788513,
-0.060124509036540985,
-0.1687522679567337,
-0.05844720080494881,
0.18028555810451508,
0.03919692710042,
-0.10149507224559784,
0.015011335723102093,
0.02715151570737362,
-0.0646205022931099,
0.1612379401922226,
-0.13058416545391083,
-0.2055569738149643,
0.04121746867895126,
0.06717576831579208,
-0.07424180209636688,
0.08155803382396698,
-0.14287810027599335,
-0.07464805990457535,
0.023667382076382637,
-0.02789817750453949,
-0.006884234491735697,
-0.07544773072004318,
-0.056806158274412155,
-0.0886293426156044,
-0.031202241778373718,
-0.019368840381503105,
0.016280081123113632,
-0.05117620527744293,
0.008433325216174126,
-0.14830677211284637,
-0.08506239950656891,
0.06388352811336517,
0.17638550698757172,
0.05811122804880142,
0.029965071007609367,
-0.2083071768283844,
0.0903271958231926,
0.15933306515216827,
-0.1629614382982254,
0.1201598271727562,
0.04536409303545952,
-0.04272940382361412,
0.09679881483316422,
0.08254873752593994,
0.08601069450378418,
0.06203135848045349,
0.09765849262475967,
-0.1081005334854126,
0.029193934053182602,
-0.20478039979934692,
-0.05226770415902138,
0.09068571031093597,
0.04668975993990898,
0.09503252804279327,
-0.0688469335436821,
0.040503278374671936,
-0.10800977796316147,
-0.045459017157554626,
0.1812720000743866,
-0.07779501378536224,
-0.017125286161899567,
0.0501922182738781,
0.04350462555885315,
0.06839180737733841,
0.025155367329716682,
-0.13729606568813324,
-0.028231186792254448,
-0.0477178618311882,
0.1654130071401596,
-0.05394195020198822,
-0.029536738991737366,
0.18656226992607117,
0.011141963303089142,
0.0057592871598899364,
0.06880848109722137,
-0.0685042291879654,
-0.07195699959993362,
0.19486893713474274,
0.09703917056322098,
0.15807326138019562,
-0.02289004810154438,
0.1620292365550995,
0.13485319912433624,
0.03161535784602165,
-0.009623687714338303,
-0.023991301655769348,
0.0917578935623169,
0.03550688549876213,
-0.009533342905342579,
0.05756048485636711,
0.03527845814824104,
-0.11850503832101822,
-0.06628435850143433,
0.03747663274407387,
-0.0669267550110817,
0.018039604648947716,
0.025365710258483887,
0.0031416285783052444,
0.055944379419088364,
-0.08434406667947769,
-0.09677457809448242,
0.2781206965446472,
0.07435867190361023,
-0.22648382186889648,
-0.0026290526147931814,
-0.0750139057636261,
0.02071991376578808,
0.09857717901468277,
-0.020282497629523277,
0.14531750977039337,
-0.01633092761039734,
0.07977074384689331,
-0.07556648552417755,
-0.21117594838142395,
0.17796875536441803,
-0.0431334413588047,
-0.02409146912395954,
0.038888491690158844,
-0.061336297541856766,
0.016647741198539734,
-0.05311489477753639,
-0.1540372371673584,
0.002860583830624819,
0.019437694922089577,
0.21635054051876068,
-0.026725802570581436,
0.0252144243568182,
0.02923044003546238,
0.15217147767543793,
0.041208382695913315,
-0.004564093425869942,
-0.14340826869010925,
-0.12335436046123505,
0.07020406424999237,
0.07463549822568893,
0.004728286061435938,
-0.08938924968242645,
-0.15813083946704865,
-0.044553015381097794,
-0.1871940791606903,
-0.051138605922460556,
-0.26209989190101624,
-0.037669818848371506,
0.10355229675769806,
-0.15264248847961426,
0.2060590237379074,
-0.1313510686159134,
0.20202979445457458,
-0.027795610949397087,
0.06667991727590561,
0.0932815745472908,
0.04861794039607048,
-0.06397809833288193,
-0.045427050441503525,
-0.06842518597841263,
0.006966975051909685,
-0.009969422593712807,
0.04594873636960983,
-0.16769182682037354,
-0.12083061784505844,
-0.1775573045015335,
-0.07214611768722534,
-0.16324740648269653,
0.1494218409061432,
-0.08427389711141586,
-0.09762383252382278,
0.1667017638683319,
0.16218756139278412,
0.154128298163414,
-0.04106457531452179,
0.01137366984039545,
-0.163238525390625,
0.03475683182477951,
-0.19597101211547852,
-0.08210939168930054,
0.08529555797576904,
-0.0807536318898201,
-0.043058570474386215,
-0.04989846050739288,
0.03389851748943329,
0.19172558188438416,
-0.1291225403547287,
0.20448818802833557,
-0.0625535175204277,
0.1612410545349121,
-0.052895259112119675,
-0.001826738123781979,
-0.06785508990287781,
0.0454723946750164,
0.009708047844469547,
-0.0539051815867424,
0.012748658657073975,
0.22814220190048218,
-0.12165335565805435,
0.022457104176282883,
-0.11170624196529388,
0.06881510466337204,
-0.03108282759785652,
0.14515994489192963,
0.02756238915026188,
-0.2669031322002411,
0.06757704168558121,
0.012577648274600506,
-0.10081358253955841,
0.06878099590539932,
0.0908396765589714,
0.062253668904304504,
0.04122547432780266,
-0.026374446228146553,
-0.08150117844343185,
-0.02427559345960617,
0.06514830887317657,
-0.02969909831881523,
0.21828290820121765,
0.09482014924287796,
-0.08045733720064163,
-0.061634887009859085,
0.04746471717953682,
-0.09478286653757095,
0.03286708518862724,
0.11130557209253311,
-0.1490361988544464,
-0.10156664252281189,
0.3973960280418396,
-0.11252828687429428,
0.007601653225719929,
0.0548611655831337,
0.1102817952632904,
0.17797036468982697,
-0.0706275999546051,
0.04327017441391945,
0.07623958587646484,
0.009724212810397148,
-0.007244253996759653,
-0.054532814770936966,
-0.07587335258722305,
-0.10660845041275024,
-0.07232876121997833,
0.011617914773523808,
0.16775991022586823,
0.0342039130628109,
-0.11278308928012848,
-0.0967135801911354,
-0.25444716215133667,
0.04604097455739975,
0.08749552071094513,
-0.03838806226849556,
0.06448492407798767,
0.17349298298358917,
-0.10662414133548737,
-0.0712035745382309,
-0.08203638345003128,
0.2783108651638031,
-0.12829606235027313,
-0.09338714927434921,
0.01968979276716709,
-0.13246206939220428,
0.09547846764326096,
-0.027731558308005333,
0.012935256585478783,
-0.07798771560192108,
-0.13730736076831818,
0.08265559375286102,
-0.13400456309318542,
0.025889309123158455,
0.10124426335096359,
-0.02157919853925705,
0.013253465294837952,
-0.007867065258324146,
0.009608465246856213,
-0.02367263473570347,
-0.07357145100831985,
-0.09603486955165863,
0.08282113075256348,
-0.056396253407001495,
-0.057436104863882065,
-0.11987418681383133,
-0.09381584078073502,
-0.17671170830726624,
-0.07338347285985947,
-0.21997277438640594,
0.2025502324104309,
0.09191645681858063,
-0.127648264169693,
0.08931241929531097,
-0.021747641265392303,
0.016079166904091835,
-0.04450557380914688,
0.032652247697114944,
-0.16132882237434387,
-0.08988741785287857,
0.010431411676108837,
-0.011612177826464176,
0.12509572505950928,
-0.049828559160232544,
-0.22646848857402802,
0.022032735869288445,
0.08326181024312973,
-0.10559161007404327,
-0.17972640693187714,
0.10229115933179855,
0.17886991798877716,
-0.03093758039176464,
-0.03468110039830208,
-0.09732453525066376,
-0.01846025511622429,
0.018768740817904472,
-0.018985696136951447,
-0.1869724690914154,
-0.16099439561367035,
-0.10437914729118347,
-0.06953522562980652,
-0.06017612665891647,
-0.19593873620033264,
-0.005597992800176144,
-0.0625729039311409,
-0.010932804085314274,
-0.09162323921918869,
0.007400437258183956,
-0.29531827569007874,
-0.0348452553153038,
-0.01158472802489996,
-0.1586858630180359,
0.21490052342414856,
-0.016348648816347122,
-0.10572821646928787,
0.06599181890487671,
-0.029662420973181725,
0.24035096168518066,
0.10537667572498322,
0.10169130563735962,
-0.05674236640334129,
-0.1525973230600357,
0.1689169853925705,
-0.02845504693686962,
0.0008010099991224706,
0.08720821887254715,
0.10486050695180893,
0.0474507175385952,
0.06535238027572632,
0.0027204491198062897,
0.08039010316133499,
-0.12239442765712738,
-0.07866207510232925,
-0.24997733533382416,
-0.10427739471197128,
0.014230756089091301,
0.10069591552019119,
0.053259339183568954,
-0.009687762707471848,
-0.0383453369140625,
-0.2602471709251404,
0.06720218062400818,
0.2129824310541153,
0.06592171639204025,
0.07494331896305084,
0.1312428116798401,
-0.013597416691482067,
-0.19695791602134705,
0.16484875977039337,
0.08831927925348282,
0.3921175003051758,
0.12684926390647888,
0.1916225403547287,
0.2272469848394394,
-0.14904986321926117,
0.05971086770296097,
0.13195741176605225,
0.012726930901408195,
0.12656155228614807,
-0.012545141391456127,
-0.11496761441230774,
0.004320432897657156,
-0.004246885422617197,
-0.07601107656955719,
0.10483185201883316,
0.02143719419836998,
0.12195844948291779,
0.03204954043030739,
-0.0694112479686737,
0.058647241443395615,
-0.05402785912156105,
-0.3359336853027344,
-0.193952739238739,
-0.2557494342327118,
0.04866776615381241,
0.14321660995483398,
-0.00036971067311242223,
0.05895039439201355,
-0.10723338276147842,
-0.02145661972463131,
0.07117242366075516,
-0.08786612749099731,
0.14673839509487152,
-0.05513324216008186,
-0.12728780508041382,
0.0538460947573185,
-0.08826489001512527,
-0.027830353006720543,
0.25861749053001404,
0.13265596330165863,
-0.24932515621185303,
-0.03479043394327164,
-0.2042059302330017,
0.027918485924601555,
-0.06563755869865417,
-0.1995021551847458,
0.007531162817031145,
-0.2199690192937851,
-0.011296494863927364,
-0.10675641894340515,
-0.19433358311653137,
0.04060197249054909,
0.03157419711351395,
-0.06678911298513412,
-0.0753377303481102,
-0.23953567445278168,
0.13631486892700195,
0.10000582039356232,
0.09370268881320953,
0.05421263724565506,
-0.12111755460500717,
0.14216260612010956,
0.028255730867385864,
-0.06399698555469513,
-0.10767587274312973,
-0.07469560205936432,
-0.11806757003068924,
-0.06385914236307144,
0.09802132099866867,
0.05403701588511467,
-0.03461948409676552,
0.10927481949329376,
-0.2105066180229187,
0.10137982666492462,
-0.03853170946240425,
0.14201538264751434,
0.10193277895450592,
0.04890695586800575,
0.0375744104385376,
0.048805397003889084,
-0.20938318967819214,
0.03662337735295296,
0.10322444885969162,
-0.29504820704460144,
-0.14444370567798615,
-0.3114180564880371,
-0.01794108934700489,
-0.014240928925573826,
0.10510217398405075,
0.12205631285905838,
-0.03951510787010193,
-0.10677697509527206,
0.21119582653045654,
-0.10599415004253387,
0.00876628514379263,
-0.1844492107629776,
0.056820183992385864,
-0.2236076295375824,
0.13667677342891693,
0.14402291178703308,
0.1392667293548584,
0.10787662118673325,
0.17197515070438385,
0.13066691160202026,
0.0765404999256134,
0.044983889907598495,
0.0700424388051033,
-0.09428926557302475,
0.1468544900417328,
-0.08512973040342331,
-0.17715904116630554,
-0.17283758521080017,
0.1552836149930954,
0.06527996808290482,
0.0724545493721962,
0.05775962024927139,
-0.16984902322292328,
0.019884726032614708,
0.02081838995218277,
-0.03147810697555542,
-0.06773625314235687,
-0.10989999771118164,
0.1881469190120697,
-0.06377317011356354,
-0.07601364701986313,
-0.12381819635629654,
-0.057568859308958054,
0.01240173727273941,
-0.05281183123588562,
-0.02788395807147026,
0.0944933295249939,
0.18644729256629944,
-0.010503910481929779,
0.1547302007675171,
0.2129681408405304,
-0.1141856238245964,
0.038035038858652115,
0.09405969083309174,
0.17748808860778809,
-0.23879888653755188,
-0.14047080278396606,
0.02613515593111515,
0.1322212517261505,
-0.2774401009082794,
-0.20945531129837036,
0.0346975177526474,
0.21151287853717804,
0.18351557850837708,
-0.11175172030925751,
-0.03676029294729233,
-0.022264976054430008,
0.16114765405654907,
0.05353201553225517,
0.029221706092357635,
-0.0983223244547844,
0.09597556293010712,
0.005139805376529694,
-2.3292874596236632e-32,
0.05648992210626602,
0.03395983949303627,
-0.11707060039043427,
-0.07169274985790253,
-0.1360432654619217,
0.04144381731748581,
-0.15286485850811005,
0.01498840469866991,
-0.02396148443222046,
0.013850510120391846,
-0.011374788358807564,
0.03555537387728691,
0.059970494359731674,
0.014060410670936108,
-0.1514841467142105,
-0.05104527994990349,
0.018347131088376045,
0.03164152428507805,
-0.04193810746073723,
0.04943421855568886,
0.178373783826828,
0.14831936359405518,
-0.07766702771186829,
0.0042432802729308605,
0.08668279647827148,
0.05646905303001404,
-0.14409670233726501,
0.014582718722522259,
0.17581772804260254,
0.0478082075715065,
-0.08174221962690353,
0.09941719472408295,
0.07511848211288452,
0.026249432936310768,
-0.13811108469963074,
-0.01934516802430153,
-0.049068693071603775,
-0.03884343430399895,
-0.1551043540239334,
0.14345647394657135,
0.03357734903693199,
0.10980579257011414,
0.07757948338985443,
-0.08874458074569702,
-0.12804782390594482,
0.03535941615700722,
-0.11128834635019302,
-0.2122805118560791,
-0.027914568781852722,
0.06683304905891418,
0.08515463024377823,
0.07407337427139282,
-0.08649224042892456,
0.005187668837606907,
0.23581114411354065,
-0.07910283654928207,
0.045100919902324677,
-0.02739294432103634,
0.04132126271724701,
0.00901199784129858,
0.15781767666339874,
-0.0344136543571949,
0.1926976591348648,
-0.06223108246922493,
-0.14443770051002502,
-0.047124192118644714,
0.4851202070713043,
-0.018077204003930092,
0.14422547817230225,
-0.07169351726770401,
-0.042907364666461945,
0.016061371192336082,
0.037343934178352356,
-0.06141257286071777,
-0.08018404990434647,
-0.06732599437236786,
0.05167824774980545,
0.03091348148882389,
-0.15879696607589722,
-0.06726235896348953,
-0.02623450942337513,
0.05231454223394394,
0.026163902133703232,
-0.051103174686431885,
-0.04556753486394882,
0.17167891561985016,
0.05997545272111893,
-0.028324060142040253,
0.032517410814762115,
-0.18696200847625732,
0.0018621566705405712,
0.13233134150505066,
0.001625153236091137,
-0.16206520795822144,
-0.18759699165821075,
-0.023541761562228203,
-0.00257650064304471,
0.26069414615631104,
-0.11062192171812057,
0.06688080728054047,
0.03898477926850319,
0.11252706497907639,
-0.02893843501806259,
-0.007509985473006964,
-0.00306211831048131,
0.17793187499046326,
0.01771390251815319,
0.14326077699661255,
-0.15310247242450714,
0.033294569700956345,
0.0509592741727829,
-0.029313335195183754,
0.25305482745170593,
0.32655131816864014,
0.04774860292673111,
-0.13367213308811188,
0.07072176784276962,
-0.10100135207176208,
0.17985159158706665,
0.026825714856386185,
-0.0064468481577932835,
0.07278518378734589,
-0.053394582122564316,
0.10650072991847992,
-0.11587322503328323,
0.021637683734297752,
-0.10180778056383133,
0.032121770083904266,
-0.133188858628273,
-0.07568927854299545,
-0.054870493710041046,
-0.03812793269753456,
6.65407696942566e-7,
-0.10306716710329056,
0.17889128625392914,
0.03234775736927986,
-0.09006716310977936,
0.1022099107503891,
0.08743831515312195,
-0.3013034164905548,
-0.0006792290951125324,
-0.053144220262765884,
0.20960289239883423,
0.11720911413431168,
-0.09351979941129684,
0.12551535665988922,
-0.002566638635471463,
0.08586840331554413,
0.1107785776257515,
-0.025829097256064415,
0.15825007855892181,
-0.28244873881340027,
0.02821168303489685,
0.017469756305217743,
0.22366656363010406,
-0.07064671069383621,
-0.0029421860817819834,
0.055575910955667496,
-0.11861561238765717,
-0.17159098386764526,
-0.017153916880488396,
-0.029559550806879997,
-0.141998291015625,
-0.10156267881393433,
-0.20629093050956726,
-0.07787583023309708,
0.23226140439510345,
-0.09062793850898743,
-0.05651086941361427,
-0.0717351883649826,
-0.12441513687372208,
0.013028007000684738,
0.26374730467796326,
-0.024055548012256622,
-0.008539366535842419,
-0.06421021372079849,
-0.015486962161958218,
-0.009733655489981174,
0.40106239914894104,
-0.15846392512321472,
0.1597641110420227,
0.0729515478014946,
0.04275599494576454,
0.1055602952837944,
-0.07152346521615982,
0.028138939291238785,
0.12217241525650024,
-0.022230330854654312,
0.10458073765039444,
0.01713627576828003,
-0.06639984995126724,
0.02537442557513714,
-0.17610867321491241,
-0.02355613000690937,
-0.04956142604351044,
-0.08060130476951599,
0.19740043580532074,
0.0032090835738927126,
-0.1837383359670639,
0.12908540666103363,
1.3571389929155439e-34,
-0.006816048640757799,
-0.013605034910142422,
0.09545701742172241,
0.013182778842747211,
-0.0545920729637146,
-0.16320165991783142,
0.22879932820796967,
0.11613886803388596,
0.021169889718294144,
0.08649865537881851,
-0.0946880355477333
] |
https://github.com/huggingface/datasets/issues/2319 | UnicodeDecodeError for OSCAR (Afrikaans) | @sgraaf, I have just merged the fix in the master branch.
You can either:
- install `datasets` from source code
- wait until we make the next release of `datasets`
- set the `utf-8` codec as your default instead of `cp1252`. This can be done by activating the Python [UTF-8 mode](https://www.python.org/dev/peps/pep-0540) either by passing the command-line option `-X utf8` or by setting the environment variable `PYTHONUTF8=1`. | ## Describe the bug
When loading the [OSCAR dataset](https://huggingface.co/datasets/oscar) (specifically `unshuffled_deduplicated_af`), I encounter a `UnicodeDecodeError`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("oscar", "unshuffled_deduplicated_af")
```
## Expected results
Anything but an error, really.
## Actual results
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset("oscar", "unshuffled_deduplicated_af")
Downloading: 14.7kB [00:00, 4.91MB/s]
Downloading: 3.07MB [00:00, 32.6MB/s]
Downloading and preparing dataset oscar/unshuffled_deduplicated_af (download: 62.93 MiB, generated: 163.38 MiB, post-processed: Unknown size, total: 226.32 MiB) to C:\Users\sgraaf\.cache\huggingface\datasets\oscar\unshuffled_deduplicated_af\1.0.0\bd4f96df5b4512007ef9fd17bbc1ecde459fa53d2fc0049cf99392ba2efcc464...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 81.0/81.0 [00:00<00:00, 40.5kB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 66.0M/66.0M [00:18<00:00, 3.50MB/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\load.py", line 745, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 574, in download_and_prepare
self._download_and_prepare(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 979, in _prepare_split
for key, record in utils.tqdm(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\tqdm\std.py", line 1133, in __iter__
for obj in iterable:
File "C:\Users\sgraaf\.cache\huggingface\modules\datasets_modules\datasets\oscar\bd4f96df5b4512007ef9fd17bbc1ecde459fa53d2fc0049cf99392ba2efcc464\oscar.py", line 359, in _generate_examples
for line in f:
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 7454: character maps to <undefined>
```
## Versions
Paste the output of the following code:
```python
import datasets
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
- Datasets: 1.6.2
- Python: 3.9.4 (tags/v3.9.4:1f2e308, Apr 6 2021, 13:40:21) [MSC v.1928 64 bit (AMD64)]
- Platform: Windows-10-10.0.19041-SP0 | 66 | UnicodeDecodeError for OSCAR (Afrikaans)
## Describe the bug
When loading the [OSCAR dataset](https://huggingface.co/datasets/oscar) (specifically `unshuffled_deduplicated_af`), I encounter a `UnicodeDecodeError`.
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("oscar", "unshuffled_deduplicated_af")
```
## Expected results
Anything but an error, really.
## Actual results
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset("oscar", "unshuffled_deduplicated_af")
Downloading: 14.7kB [00:00, 4.91MB/s]
Downloading: 3.07MB [00:00, 32.6MB/s]
Downloading and preparing dataset oscar/unshuffled_deduplicated_af (download: 62.93 MiB, generated: 163.38 MiB, post-processed: Unknown size, total: 226.32 MiB) to C:\Users\sgraaf\.cache\huggingface\datasets\oscar\unshuffled_deduplicated_af\1.0.0\bd4f96df5b4512007ef9fd17bbc1ecde459fa53d2fc0049cf99392ba2efcc464...
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 81.0/81.0 [00:00<00:00, 40.5kB/s]
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 66.0M/66.0M [00:18<00:00, 3.50MB/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\load.py", line 745, in load_dataset
builder_instance.download_and_prepare(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 574, in download_and_prepare
self._download_and_prepare(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 652, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\builder.py", line 979, in _prepare_split
for key, record in utils.tqdm(
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\site-packages\tqdm\std.py", line 1133, in __iter__
for obj in iterable:
File "C:\Users\sgraaf\.cache\huggingface\modules\datasets_modules\datasets\oscar\bd4f96df5b4512007ef9fd17bbc1ecde459fa53d2fc0049cf99392ba2efcc464\oscar.py", line 359, in _generate_examples
for line in f:
File "C:\Users\sgraaf\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 7454: character maps to <undefined>
```
## Versions
Paste the output of the following code:
```python
import datasets
import sys
import platform
print(f"""
- Datasets: {datasets.__version__}
- Python: {sys.version}
- Platform: {platform.platform()}
""")
```
- Datasets: 1.6.2
- Python: 3.9.4 (tags/v3.9.4:1f2e308, Apr 6 2021, 13:40:21) [MSC v.1928 64 bit (AMD64)]
- Platform: Windows-10-10.0.19041-SP0
@sgraaf, I have just merged the fix in the master branch.
You can either:
- install `datasets` from source code
- wait until we make the next release of `datasets`
- set the `utf-8` codec as your default instead of `cp1252`. This can be done by activating the Python [UTF-8 mode](https://www.python.org/dev/peps/pep-0540) either by passing the command-line option `-X utf8` or by setting the environment variable `PYTHONUTF8=1`. | [
0.1496029943227768,
0.06900017708539963,
0.053023774176836014,
0.15833650529384613,
0.3723223805427551,
0.06972809135913849,
-0.0291114691644907,
0.008728225715458393,
-0.06854259967803955,
0.1486326903104782,
-0.08997990190982819,
-0.11390159279108047,
0.04851563274860382,
-0.054585445672273636,
0.005195834673941135,
0.07381438463926315,
-0.09675037860870361,
-0.14173541963100433,
0.06552834063768387,
-0.15367555618286133,
-0.1272258758544922,
0.14995376765727997,
0.060015782713890076,
0.22345858812332153,
-0.06644649803638458,
-0.06362131237983704,
-0.020052336156368256,
0.11877540498971939,
0.05487411469221115,
0.006958895828574896,
-0.07757298648357391,
-0.03382260352373123,
-0.07386615872383118,
0.1831131875514984,
0.000005319889169186354,
0.02577255293726921,
0.08556661009788513,
-0.060124509036540985,
-0.1687522679567337,
-0.05844720080494881,
0.18028555810451508,
0.03919692710042,
-0.10149507224559784,
0.015011335723102093,
0.02715151570737362,
-0.0646205022931099,
0.1612379401922226,
-0.13058416545391083,
-0.2055569738149643,
0.04121746867895126,
0.06717576831579208,
-0.07424180209636688,
0.08155803382396698,
-0.14287810027599335,
-0.07464805990457535,
0.023667382076382637,
-0.02789817750453949,
-0.006884234491735697,
-0.07544773072004318,
-0.056806158274412155,
-0.0886293426156044,
-0.031202241778373718,
-0.019368840381503105,
0.016280081123113632,
-0.05117620527744293,
0.008433325216174126,
-0.14830677211284637,
-0.08506239950656891,
0.06388352811336517,
0.17638550698757172,
0.05811122804880142,
0.029965071007609367,
-0.2083071768283844,
0.0903271958231926,
0.15933306515216827,
-0.1629614382982254,
0.1201598271727562,
0.04536409303545952,
-0.04272940382361412,
0.09679881483316422,
0.08254873752593994,
0.08601069450378418,
0.06203135848045349,
0.09765849262475967,
-0.1081005334854126,
0.029193934053182602,
-0.20478039979934692,
-0.05226770415902138,
0.09068571031093597,
0.04668975993990898,
0.09503252804279327,
-0.0688469335436821,
0.040503278374671936,
-0.10800977796316147,
-0.045459017157554626,
0.1812720000743866,
-0.07779501378536224,
-0.017125286161899567,
0.0501922182738781,
0.04350462555885315,
0.06839180737733841,
0.025155367329716682,
-0.13729606568813324,
-0.028231186792254448,
-0.0477178618311882,
0.1654130071401596,
-0.05394195020198822,
-0.029536738991737366,
0.18656226992607117,
0.011141963303089142,
0.0057592871598899364,
0.06880848109722137,
-0.0685042291879654,
-0.07195699959993362,
0.19486893713474274,
0.09703917056322098,
0.15807326138019562,
-0.02289004810154438,
0.1620292365550995,
0.13485319912433624,
0.03161535784602165,
-0.009623687714338303,
-0.023991301655769348,
0.0917578935623169,
0.03550688549876213,
-0.009533342905342579,
0.05756048485636711,
0.03527845814824104,
-0.11850503832101822,
-0.06628435850143433,
0.03747663274407387,
-0.0669267550110817,
0.018039604648947716,
0.025365710258483887,
0.0031416285783052444,
0.055944379419088364,
-0.08434406667947769,
-0.09677457809448242,
0.2781206965446472,
0.07435867190361023,
-0.22648382186889648,
-0.0026290526147931814,
-0.0750139057636261,
0.02071991376578808,
0.09857717901468277,
-0.020282497629523277,
0.14531750977039337,
-0.01633092761039734,
0.07977074384689331,
-0.07556648552417755,
-0.21117594838142395,
0.17796875536441803,
-0.0431334413588047,
-0.02409146912395954,
0.038888491690158844,
-0.061336297541856766,
0.016647741198539734,
-0.05311489477753639,
-0.1540372371673584,
0.002860583830624819,
0.019437694922089577,
0.21635054051876068,
-0.026725802570581436,
0.0252144243568182,
0.02923044003546238,
0.15217147767543793,
0.041208382695913315,
-0.004564093425869942,
-0.14340826869010925,
-0.12335436046123505,
0.07020406424999237,
0.07463549822568893,
0.004728286061435938,
-0.08938924968242645,
-0.15813083946704865,
-0.044553015381097794,
-0.1871940791606903,
-0.051138605922460556,
-0.26209989190101624,
-0.037669818848371506,
0.10355229675769806,
-0.15264248847961426,
0.2060590237379074,
-0.1313510686159134,
0.20202979445457458,
-0.027795610949397087,
0.06667991727590561,
0.0932815745472908,
0.04861794039607048,
-0.06397809833288193,
-0.045427050441503525,
-0.06842518597841263,
0.006966975051909685,
-0.009969422593712807,
0.04594873636960983,
-0.16769182682037354,
-0.12083061784505844,
-0.1775573045015335,
-0.07214611768722534,
-0.16324740648269653,
0.1494218409061432,
-0.08427389711141586,
-0.09762383252382278,
0.1667017638683319,
0.16218756139278412,
0.154128298163414,
-0.04106457531452179,
0.01137366984039545,
-0.163238525390625,
0.03475683182477951,
-0.19597101211547852,
-0.08210939168930054,
0.08529555797576904,
-0.0807536318898201,
-0.043058570474386215,
-0.04989846050739288,
0.03389851748943329,
0.19172558188438416,
-0.1291225403547287,
0.20448818802833557,
-0.0625535175204277,
0.1612410545349121,
-0.052895259112119675,
-0.001826738123781979,
-0.06785508990287781,
0.0454723946750164,
0.009708047844469547,
-0.0539051815867424,
0.012748658657073975,
0.22814220190048218,
-0.12165335565805435,
0.022457104176282883,
-0.11170624196529388,
0.06881510466337204,
-0.03108282759785652,
0.14515994489192963,
0.02756238915026188,
-0.2669031322002411,
0.06757704168558121,
0.012577648274600506,
-0.10081358253955841,
0.06878099590539932,
0.0908396765589714,
0.062253668904304504,
0.04122547432780266,
-0.026374446228146553,
-0.08150117844343185,
-0.02427559345960617,
0.06514830887317657,
-0.02969909831881523,
0.21828290820121765,
0.09482014924287796,
-0.08045733720064163,
-0.061634887009859085,
0.04746471717953682,
-0.09478286653757095,
0.03286708518862724,
0.11130557209253311,
-0.1490361988544464,
-0.10156664252281189,
0.3973960280418396,
-0.11252828687429428,
0.007601653225719929,
0.0548611655831337,
0.1102817952632904,
0.17797036468982697,
-0.0706275999546051,
0.04327017441391945,
0.07623958587646484,
0.009724212810397148,
-0.007244253996759653,
-0.054532814770936966,
-0.07587335258722305,
-0.10660845041275024,
-0.07232876121997833,
0.011617914773523808,
0.16775991022586823,
0.0342039130628109,
-0.11278308928012848,
-0.0967135801911354,
-0.25444716215133667,
0.04604097455739975,
0.08749552071094513,
-0.03838806226849556,
0.06448492407798767,
0.17349298298358917,
-0.10662414133548737,
-0.0712035745382309,
-0.08203638345003128,
0.2783108651638031,
-0.12829606235027313,
-0.09338714927434921,
0.01968979276716709,
-0.13246206939220428,
0.09547846764326096,
-0.027731558308005333,
0.012935256585478783,
-0.07798771560192108,
-0.13730736076831818,
0.08265559375286102,
-0.13400456309318542,
0.025889309123158455,
0.10124426335096359,
-0.02157919853925705,
0.013253465294837952,
-0.007867065258324146,
0.009608465246856213,
-0.02367263473570347,
-0.07357145100831985,
-0.09603486955165863,
0.08282113075256348,
-0.056396253407001495,
-0.057436104863882065,
-0.11987418681383133,
-0.09381584078073502,
-0.17671170830726624,
-0.07338347285985947,
-0.21997277438640594,
0.2025502324104309,
0.09191645681858063,
-0.127648264169693,
0.08931241929531097,
-0.021747641265392303,
0.016079166904091835,
-0.04450557380914688,
0.032652247697114944,
-0.16132882237434387,
-0.08988741785287857,
0.010431411676108837,
-0.011612177826464176,
0.12509572505950928,
-0.049828559160232544,
-0.22646848857402802,
0.022032735869288445,
0.08326181024312973,
-0.10559161007404327,
-0.17972640693187714,
0.10229115933179855,
0.17886991798877716,
-0.03093758039176464,
-0.03468110039830208,
-0.09732453525066376,
-0.01846025511622429,
0.018768740817904472,
-0.018985696136951447,
-0.1869724690914154,
-0.16099439561367035,
-0.10437914729118347,
-0.06953522562980652,
-0.06017612665891647,
-0.19593873620033264,
-0.005597992800176144,
-0.0625729039311409,
-0.010932804085314274,
-0.09162323921918869,
0.007400437258183956,
-0.29531827569007874,
-0.0348452553153038,
-0.01158472802489996,
-0.1586858630180359,
0.21490052342414856,
-0.016348648816347122,
-0.10572821646928787,
0.06599181890487671,
-0.029662420973181725,
0.24035096168518066,
0.10537667572498322,
0.10169130563735962,
-0.05674236640334129,
-0.1525973230600357,
0.1689169853925705,
-0.02845504693686962,
0.0008010099991224706,
0.08720821887254715,
0.10486050695180893,
0.0474507175385952,
0.06535238027572632,
0.0027204491198062897,
0.08039010316133499,
-0.12239442765712738,
-0.07866207510232925,
-0.24997733533382416,
-0.10427739471197128,
0.014230756089091301,
0.10069591552019119,
0.053259339183568954,
-0.009687762707471848,
-0.0383453369140625,
-0.2602471709251404,
0.06720218062400818,
0.2129824310541153,
0.06592171639204025,
0.07494331896305084,
0.1312428116798401,
-0.013597416691482067,
-0.19695791602134705,
0.16484875977039337,
0.08831927925348282,
0.3921175003051758,
0.12684926390647888,
0.1916225403547287,
0.2272469848394394,
-0.14904986321926117,
0.05971086770296097,
0.13195741176605225,
0.012726930901408195,
0.12656155228614807,
-0.012545141391456127,
-0.11496761441230774,
0.004320432897657156,
-0.004246885422617197,
-0.07601107656955719,
0.10483185201883316,
0.02143719419836998,
0.12195844948291779,
0.03204954043030739,
-0.0694112479686737,
0.058647241443395615,
-0.05402785912156105,
-0.3359336853027344,
-0.193952739238739,
-0.2557494342327118,
0.04866776615381241,
0.14321660995483398,
-0.00036971067311242223,
0.05895039439201355,
-0.10723338276147842,
-0.02145661972463131,
0.07117242366075516,
-0.08786612749099731,
0.14673839509487152,
-0.05513324216008186,
-0.12728780508041382,
0.0538460947573185,
-0.08826489001512527,
-0.027830353006720543,
0.25861749053001404,
0.13265596330165863,
-0.24932515621185303,
-0.03479043394327164,
-0.2042059302330017,
0.027918485924601555,
-0.06563755869865417,
-0.1995021551847458,
0.007531162817031145,
-0.2199690192937851,
-0.011296494863927364,
-0.10675641894340515,
-0.19433358311653137,
0.04060197249054909,
0.03157419711351395,
-0.06678911298513412,
-0.0753377303481102,
-0.23953567445278168,
0.13631486892700195,
0.10000582039356232,
0.09370268881320953,
0.05421263724565506,
-0.12111755460500717,
0.14216260612010956,
0.028255730867385864,
-0.06399698555469513,
-0.10767587274312973,
-0.07469560205936432,
-0.11806757003068924,
-0.06385914236307144,
0.09802132099866867,
0.05403701588511467,
-0.03461948409676552,
0.10927481949329376,
-0.2105066180229187,
0.10137982666492462,
-0.03853170946240425,
0.14201538264751434,
0.10193277895450592,
0.04890695586800575,
0.0375744104385376,
0.048805397003889084,
-0.20938318967819214,
0.03662337735295296,
0.10322444885969162,
-0.29504820704460144,
-0.14444370567798615,
-0.3114180564880371,
-0.01794108934700489,
-0.014240928925573826,
0.10510217398405075,
0.12205631285905838,
-0.03951510787010193,
-0.10677697509527206,
0.21119582653045654,
-0.10599415004253387,
0.00876628514379263,
-0.1844492107629776,
0.056820183992385864,
-0.2236076295375824,
0.13667677342891693,
0.14402291178703308,
0.1392667293548584,
0.10787662118673325,
0.17197515070438385,
0.13066691160202026,
0.0765404999256134,
0.044983889907598495,
0.0700424388051033,
-0.09428926557302475,
0.1468544900417328,
-0.08512973040342331,
-0.17715904116630554,
-0.17283758521080017,
0.1552836149930954,
0.06527996808290482,
0.0724545493721962,
0.05775962024927139,
-0.16984902322292328,
0.019884726032614708,
0.02081838995218277,
-0.03147810697555542,
-0.06773625314235687,
-0.10989999771118164,
0.1881469190120697,
-0.06377317011356354,
-0.07601364701986313,
-0.12381819635629654,
-0.057568859308958054,
0.01240173727273941,
-0.05281183123588562,
-0.02788395807147026,
0.0944933295249939,
0.18644729256629944,
-0.010503910481929779,
0.1547302007675171,
0.2129681408405304,
-0.1141856238245964,
0.038035038858652115,
0.09405969083309174,
0.17748808860778809,
-0.23879888653755188,
-0.14047080278396606,
0.02613515593111515,
0.1322212517261505,
-0.2774401009082794,
-0.20945531129837036,
0.0346975177526474,
0.21151287853717804,
0.18351557850837708,
-0.11175172030925751,
-0.03676029294729233,
-0.022264976054430008,
0.16114765405654907,
0.05353201553225517,
0.029221706092357635,
-0.0983223244547844,
0.09597556293010712,
0.005139805376529694,
-2.3292874596236632e-32,
0.05648992210626602,
0.03395983949303627,
-0.11707060039043427,
-0.07169274985790253,
-0.1360432654619217,
0.04144381731748581,
-0.15286485850811005,
0.01498840469866991,
-0.02396148443222046,
0.013850510120391846,
-0.011374788358807564,
0.03555537387728691,
0.059970494359731674,
0.014060410670936108,
-0.1514841467142105,
-0.05104527994990349,
0.018347131088376045,
0.03164152428507805,
-0.04193810746073723,
0.04943421855568886,
0.178373783826828,
0.14831936359405518,
-0.07766702771186829,
0.0042432802729308605,
0.08668279647827148,
0.05646905303001404,
-0.14409670233726501,
0.014582718722522259,
0.17581772804260254,
0.0478082075715065,
-0.08174221962690353,
0.09941719472408295,
0.07511848211288452,
0.026249432936310768,
-0.13811108469963074,
-0.01934516802430153,
-0.049068693071603775,
-0.03884343430399895,
-0.1551043540239334,
0.14345647394657135,
0.03357734903693199,
0.10980579257011414,
0.07757948338985443,
-0.08874458074569702,
-0.12804782390594482,
0.03535941615700722,
-0.11128834635019302,
-0.2122805118560791,
-0.027914568781852722,
0.06683304905891418,
0.08515463024377823,
0.07407337427139282,
-0.08649224042892456,
0.005187668837606907,
0.23581114411354065,
-0.07910283654928207,
0.045100919902324677,
-0.02739294432103634,
0.04132126271724701,
0.00901199784129858,
0.15781767666339874,
-0.0344136543571949,
0.1926976591348648,
-0.06223108246922493,
-0.14443770051002502,
-0.047124192118644714,
0.4851202070713043,
-0.018077204003930092,
0.14422547817230225,
-0.07169351726770401,
-0.042907364666461945,
0.016061371192336082,
0.037343934178352356,
-0.06141257286071777,
-0.08018404990434647,
-0.06732599437236786,
0.05167824774980545,
0.03091348148882389,
-0.15879696607589722,
-0.06726235896348953,
-0.02623450942337513,
0.05231454223394394,
0.026163902133703232,
-0.051103174686431885,
-0.04556753486394882,
0.17167891561985016,
0.05997545272111893,
-0.028324060142040253,
0.032517410814762115,
-0.18696200847625732,
0.0018621566705405712,
0.13233134150505066,
0.001625153236091137,
-0.16206520795822144,
-0.18759699165821075,
-0.023541761562228203,
-0.00257650064304471,
0.26069414615631104,
-0.11062192171812057,
0.06688080728054047,
0.03898477926850319,
0.11252706497907639,
-0.02893843501806259,
-0.007509985473006964,
-0.00306211831048131,
0.17793187499046326,
0.01771390251815319,
0.14326077699661255,
-0.15310247242450714,
0.033294569700956345,
0.0509592741727829,
-0.029313335195183754,
0.25305482745170593,
0.32655131816864014,
0.04774860292673111,
-0.13367213308811188,
0.07072176784276962,
-0.10100135207176208,
0.17985159158706665,
0.026825714856386185,
-0.0064468481577932835,
0.07278518378734589,
-0.053394582122564316,
0.10650072991847992,
-0.11587322503328323,
0.021637683734297752,
-0.10180778056383133,
0.032121770083904266,
-0.133188858628273,
-0.07568927854299545,
-0.054870493710041046,
-0.03812793269753456,
6.65407696942566e-7,
-0.10306716710329056,
0.17889128625392914,
0.03234775736927986,
-0.09006716310977936,
0.1022099107503891,
0.08743831515312195,
-0.3013034164905548,
-0.0006792290951125324,
-0.053144220262765884,
0.20960289239883423,
0.11720911413431168,
-0.09351979941129684,
0.12551535665988922,
-0.002566638635471463,
0.08586840331554413,
0.1107785776257515,
-0.025829097256064415,
0.15825007855892181,
-0.28244873881340027,
0.02821168303489685,
0.017469756305217743,
0.22366656363010406,
-0.07064671069383621,
-0.0029421860817819834,
0.055575910955667496,
-0.11861561238765717,
-0.17159098386764526,
-0.017153916880488396,
-0.029559550806879997,
-0.141998291015625,
-0.10156267881393433,
-0.20629093050956726,
-0.07787583023309708,
0.23226140439510345,
-0.09062793850898743,
-0.05651086941361427,
-0.0717351883649826,
-0.12441513687372208,
0.013028007000684738,
0.26374730467796326,
-0.024055548012256622,
-0.008539366535842419,
-0.06421021372079849,
-0.015486962161958218,
-0.009733655489981174,
0.40106239914894104,
-0.15846392512321472,
0.1597641110420227,
0.0729515478014946,
0.04275599494576454,
0.1055602952837944,
-0.07152346521615982,
0.028138939291238785,
0.12217241525650024,
-0.022230330854654312,
0.10458073765039444,
0.01713627576828003,
-0.06639984995126724,
0.02537442557513714,
-0.17610867321491241,
-0.02355613000690937,
-0.04956142604351044,
-0.08060130476951599,
0.19740043580532074,
0.0032090835738927126,
-0.1837383359670639,
0.12908540666103363,
1.3571389929155439e-34,
-0.006816048640757799,
-0.013605034910142422,
0.09545701742172241,
0.013182778842747211,
-0.0545920729637146,
-0.16320165991783142,
0.22879932820796967,
0.11613886803388596,
0.021169889718294144,
0.08649865537881851,
-0.0946880355477333
] |
https://github.com/huggingface/datasets/issues/2318 | [api request] API to obtain "dataset_module" dynamic path? | Hi @richardliaw,
First, thanks for the compliments.
In relation with your request, currently, the dynamic modules path is obtained this way:
```python
from datasets.load import init_dynamic_modules, MODULE_NAME_FOR_DYNAMIC_MODULES
dynamic_modules_path = init_dynamic_modules(MODULE_NAME_FOR_DYNAMIC_MODULES)
```
Let me know if it is OK for you this way.
I could set `MODULE_NAME_FOR_DYNAMIC_MODULES` as default value, so that you could instead obtain the path with:
```
dynamic_modules_path = datasets.load.init_dynamic_modules()
``` | **Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
This is an awesome library.
It seems like the dynamic module path in this library has broken some of hyperparameter tuning functionality: https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34
This is because Ray will spawn new processes, and each process will load modules by path. However, we need to explicitly inform Ray to load the right modules, or else it will error upon import.
I'd like an API to obtain the dynamic paths. This will allow us to support this functionality in this awesome library while being future proof.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
`datasets.get_dynamic_paths -> List[str]` will be sufficient for my use case.
By offering this API, we will be able to address the following issues (by patching the ray integration sufficiently):
https://github.com/huggingface/blog/issues/106
https://github.com/huggingface/transformers/issues/11565
https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34
https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/35
| 63 | [api request] API to obtain "dataset_module" dynamic path?
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
This is an awesome library.
It seems like the dynamic module path in this library has broken some of hyperparameter tuning functionality: https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34
This is because Ray will spawn new processes, and each process will load modules by path. However, we need to explicitly inform Ray to load the right modules, or else it will error upon import.
I'd like an API to obtain the dynamic paths. This will allow us to support this functionality in this awesome library while being future proof.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
`datasets.get_dynamic_paths -> List[str]` will be sufficient for my use case.
By offering this API, we will be able to address the following issues (by patching the ray integration sufficiently):
https://github.com/huggingface/blog/issues/106
https://github.com/huggingface/transformers/issues/11565
https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34
https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/35
Hi @richardliaw,
First, thanks for the compliments.
In relation with your request, currently, the dynamic modules path is obtained this way:
```python
from datasets.load import init_dynamic_modules, MODULE_NAME_FOR_DYNAMIC_MODULES
dynamic_modules_path = init_dynamic_modules(MODULE_NAME_FOR_DYNAMIC_MODULES)
```
Let me know if it is OK for you this way.
I could set `MODULE_NAME_FOR_DYNAMIC_MODULES` as default value, so that you could instead obtain the path with:
```
dynamic_modules_path = datasets.load.init_dynamic_modules()
``` | [
0.0800328478217125,
0.02769363857805729,
-0.18874473869800568,
0.04237448796629906,
0.10618822276592255,
-0.00012312320177443326,
-0.030098069459199905,
0.01776665821671486,
-0.04978512227535248,
0.20279604196548462,
-0.05773024260997772,
0.23516729474067688,
-0.08423494547605515,
0.16763214766979218,
0.05685435235500336,
-0.22477500140666962,
-0.09648214280605316,
-0.19217289984226227,
-0.06376916915178299,
0.042365167289972305,
0.06524232029914856,
0.15067900717258453,
0.08150838315486908,
0.0961102843284607,
0.07600616663694382,
0.021104484796524048,
-0.13665224611759186,
0.012280811555683613,
0.13678324222564697,
-0.14397858083248138,
0.1003866046667099,
-0.051764991134405136,
0.14907409250736237,
0.10158069431781769,
0.000005759897248935886,
0.0857589840888977,
-0.044906530529260635,
0.01655212789773941,
-0.21290817856788635,
-0.09361627697944641,
0.21818110346794128,
-0.0665527880191803,
0.1548653393983841,
-0.07057378441095352,
-0.0023030259180814028,
0.007870861329138279,
0.03486846387386322,
-0.2737360894680023,
-0.04007437080144882,
-0.20816685259342194,
0.006217268295586109,
0.190786674618721,
-0.1333639919757843,
-0.1242697536945343,
-0.09528689831495285,
0.1394527703523636,
0.005584683269262314,
0.046097755432128906,
-0.11081522703170776,
0.09104597568511963,
0.0670420229434967,
-0.03272046148777008,
-0.0013559332583099604,
0.08213535696268082,
0.020352760329842567,
-0.058856841176748276,
-0.2493569403886795,
0.007821045815944672,
-0.092878557741642,
0.20266161859035492,
-0.11240705847740173,
-0.043930474668741226,
-0.007891136221587658,
-0.010957685299217701,
0.003328335005789995,
0.006457377690821886,
0.010723711922764778,
0.029088201001286507,
-0.01795932464301586,
-0.07940879464149475,
0.02253207378089428,
-0.013980632647871971,
-0.07066230475902557,
-0.1649334877729416,
0.10718260705471039,
0.14815399050712585,
-0.032040875405073166,
0.04957796260714531,
-0.06242607161402702,
-0.23292510211467743,
0.2478400021791458,
0.06924960762262344,
-0.008837546221911907,
0.06119105592370033,
0.06760512292385101,
0.14290527999401093,
-0.007203994318842888,
0.0195738784968853,
0.07808514684438705,
-0.004548173397779465,
0.020544981583952904,
-0.03776813670992851,
-0.11947572976350784,
-0.05735793337225914,
0.06608597189188004,
-0.07886569201946259,
0.07431459426879883,
-0.02998393587768078,
0.04059585928916931,
-0.06384491920471191,
0.04951602220535278,
0.020737867802381516,
0.013935511931777,
-0.09763283282518387,
-0.05905362591147423,
0.07845243811607361,
-0.18420793116092682,
0.23698033392429352,
-0.1098848357796669,
-0.11555279791355133,
0.03262249380350113,
-0.014579874463379383,
-0.10840273648500443,
0.2410207837820053,
0.05124523118138313,
0.004819176625460386,
-0.044871985912323,
-0.24042899906635284,
0.0014504616847261786,
0.021051276475191116,
-0.011453762650489807,
-0.032939013093709946,
0.07138059288263321,
0.05381570756435394,
0.16682402789592743,
0.11535266786813736,
0.06334070861339569,
-0.40596774220466614,
0.10751399397850037,
-0.10677710175514221,
0.16647398471832275,
0.05243302136659622,
0.017781993374228477,
-0.044511113315820694,
0.16949476301670074,
-0.05184552073478699,
0.008266340009868145,
0.11435693502426147,
-0.12244293838739395,
0.04988374561071396,
-0.12970924377441406,
-0.14259983599185944,
-0.13742591440677643,
0.16340109705924988,
-0.03892597556114197,
-0.05603131651878357,
-0.08332306146621704,
-0.15966562926769257,
-0.3168328106403351,
0.0567341186106205,
0.14980269968509674,
0.041641369462013245,
0.0074994214810431,
0.02883368916809559,
0.01109117828309536,
0.103249192237854,
-0.040157709270715714,
-0.020102888345718384,
0.07408840954303741,
-0.10744557529687881,
-0.17419889569282532,
-0.2238520234823227,
-0.23434732854366302,
-0.050561241805553436,
-0.14168579876422882,
0.18575510382652283,
0.031393107026815414,
-0.0804663822054863,
0.1098804771900177,
0.008560115471482277,
0.12655366957187653,
-0.0121364276856184,
0.13367466628551483,
-0.05038796737790108,
0.0673239603638649,
0.004791572690010071,
-0.061788395047187805,
0.15747441351413727,
0.06994888186454773,
-0.022922595962882042,
-0.015888450667262077,
-0.09275735914707184,
-0.1046702116727829,
0.16542209684848785,
0.04691372439265251,
-0.14556916058063507,
0.03886064141988754,
-0.0059867543168365955,
0.10651742666959763,
-0.10312623530626297,
-0.20938971638679504,
0.06105469912290573,
0.07809902727603912,
-0.024152269586920738,
0.1103164404630661,
-0.1275545060634613,
-0.2608446180820465,
0.1495421677827835,
-0.03607639670372009,
-0.10867538303136826,
-0.22706875205039978,
-0.12069873511791229,
0.20655003190040588,
0.10746657103300095,
-0.1111588105559349,
-0.04075250029563904,
0.021773768588900566,
0.058374661952257156,
0.0700446367263794,
0.12900792062282562,
-0.08372566103935242,
0.014651100151240826,
-0.008937926962971687,
0.037145525217056274,
-0.10462214797735214,
-0.02679702453315258,
0.03681325167417526,
0.06924114376306534,
0.009830891154706478,
-0.04428664594888687,
-0.04797573760151863,
-0.2269280105829239,
0.2009902447462082,
0.13922205567359924,
0.08397333323955536,
0.20905141532421112,
0.10993213951587677,
0.07699964940547943,
0.08676011115312576,
0.056228943169116974,
-0.02082546055316925,
-0.03522660210728645,
-0.1483934074640274,
0.11770148575305939,
-0.04746023565530777,
0.2847532629966736,
-0.21190455555915833,
0.09294227510690689,
-0.08417711406946182,
-0.03661041334271431,
0.34976133704185486,
0.16506001353263855,
-0.0958351343870163,
0.15632414817810059,
0.0961860865354538,
0.036648400127887726,
-0.031472764909267426,
0.041082654148340225,
-0.03100510872900486,
-0.050082847476005554,
0.10047915577888489,
0.06638709455728531,
-0.07718278467655182,
0.01932370290160179,
0.10508893430233002,
0.08918672800064087,
0.020104292780160904,
0.24241343140602112,
0.010201243683695793,
0.12449736148118973,
-0.028742657974362373,
0.10504710674285889,
0.016489572823047638,
-0.009042654186487198,
0.03361477330327034,
0.012920437380671501,
0.09298877418041229,
-0.07370525598526001,
0.053070515394210815,
-0.06456046551465988,
-0.0989326536655426,
0.0437031090259552,
0.014292854815721512,
0.012094193138182163,
0.05877868831157684,
0.09450355172157288,
-0.13502871990203857,
0.14271554350852966,
-0.15782062709331512,
-0.2607487142086029,
-0.02215752750635147,
0.06425344944000244,
-0.055752988904714584,
-0.32219722867012024,
0.050550416111946106,
-0.15972532331943512,
-0.020546212792396545,
0.07775510102510452,
-0.10034845769405365,
-0.10272213071584702,
0.08519993722438812,
0.023721687495708466,
0.10249117016792297,
0.02160772494971752,
-0.1051504909992218,
-0.002839417429640889,
0.19067391753196716,
-0.02084868960082531,
-0.03198383376002312,
-0.015155034139752388,
-0.060523755848407745,
0.06462350487709045,
0.06187295541167259,
-0.04857465997338295,
0.20069687068462372,
0.13812386989593506,
0.049659401178359985,
-0.10960491746664047,
0.07856044173240662,
0.06088883429765701,
0.09143756330013275,
-0.11870916932821274,
0.09408077597618103,
-0.1160522848367691,
-0.044070690870285034,
0.025797532871365547,
-0.22168318927288055,
-0.1653391420841217,
0.10887468606233597,
-0.012676941230893135,
0.022908274084329605,
0.170878067612648,
0.12162972241640091,
0.03244248032569885,
0.07422090321779251,
0.0023724583443254232,
-0.05032858997583389,
-0.07617892324924469,
0.04982214421033859,
-0.025572551414370537,
0.02439974993467331,
0.0014317854074761271,
-0.009681407362222672,
0.1303088217973709,
0.053957242518663406,
-0.08769875764846802,
-0.06636737287044525,
-0.16230544447898865,
0.011735484004020691,
-0.0586058609187603,
0.10680887848138809,
0.12397867441177368,
0.09952247142791748,
-0.05864608287811279,
-0.09056874364614487,
-0.15114249289035797,
0.0321664959192276,
0.0878370925784111,
-0.24153614044189453,
0.2497180700302124,
0.0751892700791359,
-0.01884385198354721,
0.009438793174922466,
-0.09809564054012299,
-0.16148345172405243,
-0.026362905278801918,
0.0644059032201767,
0.07658747583627701,
0.19133208692073822,
0.060785844922065735,
-0.1648573875427246,
-0.16128137707710266,
-0.013421057723462582,
-0.06731773912906647,
0.015063186176121235,
-0.03789201006293297,
-0.01631631702184677,
0.034784115850925446,
0.11000246554613113,
0.003734153462573886,
0.10422094911336899,
-0.14440973103046417,
-0.015444854274392128,
0.05641394853591919,
0.22158703207969666,
-0.05947917327284813,
0.10629019141197205,
0.08376993238925934,
-0.05552268400788307,
0.15226911008358002,
-0.04257191717624664,
0.07848024368286133,
0.11514001339673996,
-0.11809218674898148,
0.07548338174819946,
0.11096880584955215,
-0.0178215354681015,
-0.012212025001645088,
0.013167898170650005,
0.08750368654727936,
-0.03423372656106949,
0.003308861516416073,
0.030265096575021744,
0.08194233477115631,
-0.12249121069908142,
-0.11862575262784958,
-0.0331842266023159,
0.161461740732193,
0.23421888053417206,
-0.05635600537061691,
-0.17596159875392914,
-0.030083583667874336,
-0.010225361213088036,
-0.09489812701940536,
0.11963844299316406,
0.034167345613241196,
-0.06718495488166809,
-0.11667916923761368,
0.12838751077651978,
-0.22894583642482758,
0.08041060715913773,
-0.13504081964492798,
0.052999429404735565,
0.09338507801294327,
0.37139397859573364,
-0.09472053498029709,
-0.02150322124361992,
0.06512612104415894,
0.0625302866101265,
0.009556473232805729,
0.15041600167751312,
0.12607532739639282,
-0.011307173408567905,
0.03065902553498745,
0.23743803799152374,
-0.13056689500808716,
0.18252940475940704,
-0.284499853849411,
-0.08879054337739944,
-0.10196267813444138,
0.06411545723676682,
0.006595389451831579,
0.32897013425827026,
0.014378564432263374,
0.10181786864995956,
0.05322236940264702,
-0.08590038865804672,
-0.06323648244142532,
0.1535201519727707,
0.06808590888977051,
-0.1048860251903534,
0.00791955180466175,
-0.17772415280342102,
0.016694191843271255,
-0.0159286055713892,
-0.024822259321808815,
0.16727858781814575,
0.03488260880112648,
-0.1277434378862381,
0.04199467971920967,
0.04156757891178131,
-0.02788829430937767,
0.02847951278090477,
-0.014720063656568527,
0.09577663242816925,
0.007011342328041792,
0.07898878306150436,
-0.015814820304512978,
0.0564865916967392,
0.061830949038267136,
0.1601279228925705,
0.050766922533512115,
0.019055945798754692,
0.033784933388233185,
-0.07353080809116364,
0.16633139550685883,
0.06475154310464859,
0.14263224601745605,
-0.058256860822439194,
-0.003870221786201,
0.14881747961044312,
0.1326625645160675,
0.09692402929067612,
-0.2411825805902481,
-0.0803207978606224,
0.0759701207280159,
-0.03409717604517937,
0.030254170298576355,
-0.20753589272499084,
0.08720018714666367,
-0.14226442575454712,
-0.15173469483852386,
-0.05482101067900658,
-0.09401142597198486,
0.03219803795218468,
0.19231060147285461,
-0.05423089116811752,
-0.021981647238135338,
-0.056109532713890076,
-0.016622796654701233,
-0.08731435984373093,
-0.0222378708422184,
0.20717300474643707,
-0.17694184184074402,
-0.14339303970336914,
-0.1789630800485611,
-0.06377284228801727,
-0.02652883343398571,
0.049334026873111725,
0.026960402727127075,
0.04281236603856087,
0.028188440948724747,
-0.05837820842862129,
-0.16841967403888702,
0.14629335701465607,
0.10904832184314728,
-0.028524022549390793,
0.0325583890080452,
0.15941743552684784,
0.06907329708337784,
-0.058401621878147125,
0.04932374507188797,
-0.01842549629509449,
-0.10795808583498001,
0.009123517200350761,
0.12461157888174057,
0.016371576115489006,
-0.0637630894780159,
0.04035085812211037,
0.11088469624519348,
-0.05502266064286232,
0.16708002984523773,
0.13303887844085693,
-0.10608123987913132,
0.022759918123483658,
0.08905691653490067,
0.07156572490930557,
-0.07725147902965546,
0.026400290429592133,
0.03213163837790489,
-0.036135002970695496,
-0.09988225251436234,
0.023912016302347183,
0.0396338626742363,
-0.02962636947631836,
-0.1423427313566208,
-0.0939474031329155,
0.010124748572707176,
-0.0005960038979537785,
-0.1603487730026245,
0.1053275540471077,
0.1630173623561859,
0.0887933224439621,
-0.08604582399129868,
-0.19310343265533447,
-2.7224264024683924e-32,
0.06481742113828659,
0.0773712769150734,
-0.015554623678326607,
-0.026504317298531532,
-0.09576144069433212,
0.06176424026489258,
0.0410703606903553,
-0.12217476963996887,
-0.04815603047609329,
-0.1452651172876358,
0.03344332054257393,
-0.006772423163056374,
0.042295604944229126,
-0.05320202186703682,
-0.14682793617248535,
-0.05491369962692261,
-0.13597950339317322,
-0.0822441503405571,
-0.07331617921590805,
-0.030716555193066597,
0.1346532255411148,
0.014007764868438244,
0.10774367302656174,
-0.12741734087467194,
-0.07253697514533997,
-0.08798670768737793,
0.02801883965730667,
0.04835377633571625,
-0.12231884151697159,
0.07567230612039566,
-0.011496294289827347,
0.10043453425168991,
-0.06436330825090408,
0.06891248375177383,
0.060985174030065536,
0.038743868470191956,
-0.2290613204240799,
-0.17180654406547546,
0.03152891620993614,
-0.1314271241426468,
-0.05895266681909561,
-0.02062111906707287,
0.068679079413414,
-0.09339183568954468,
0.08438828587532043,
0.1896500438451767,
-0.06313243508338928,
-0.02816930040717125,
-0.022909002378582954,
-0.083346888422966,
-0.06513882428407669,
-0.06723549962043762,
0.01828112080693245,
0.059876132756471634,
0.08900405466556549,
-0.007411521393805742,
0.15237124264240265,
0.034856270998716354,
-0.004103655926883221,
-0.12772594392299652,
0.02710866369307041,
-0.014705565758049488,
-0.04409869760274887,
0.08304524421691895,
0.31547561287879944,
0.039004962891340256,
0.20180612802505493,
-0.09066394716501236,
0.2758576273918152,
0.007305481005460024,
0.09522136300802231,
-0.027629593387246132,
0.01972239837050438,
-0.05109128728508949,
-0.225388303399086,
0.08266870677471161,
0.02118692919611931,
-0.10091226547956467,
0.20727187395095825,
-0.14065241813659668,
0.09242389351129532,
-0.03892535716295242,
-0.04869023337960243,
0.1880015879869461,
-0.01676640845835209,
0.08356042951345444,
-0.06304574012756348,
-0.020527014508843422,
-0.10248323529958725,
0.10148333013057709,
-0.023403335362672806,
-0.005633907858282328,
-0.04722980409860611,
0.051826659590005875,
0.11326126009225845,
0.022992171347141266,
0.0007540601072832942,
-0.023375336080789566,
0.04965246841311455,
0.03689735382795334,
0.12082624435424805,
-0.10065986216068268,
0.07496027648448944,
-0.007033746223896742,
0.06768952310085297,
-0.06123973801732063,
0.025514820590615273,
0.09555107355117798,
-0.13218878209590912,
0.09054004400968552,
-0.13036033511161804,
0.13719706237316132,
0.053670596331357956,
0.1466783732175827,
0.16783326864242554,
0.044284429401159286,
-0.0034360704012215137,
-0.1459815800189972,
0.05349290370941162,
0.16176080703735352,
-0.0767793282866478,
0.023930836468935013,
-0.04451389238238335,
0.03517602011561394,
-0.1651134490966797,
0.033040136098861694,
-0.158668652176857,
-0.08373487740755081,
0.06514007598161697,
-0.08740147203207016,
-0.049696534872055054,
0.057852718979120255,
7.217233246592514e-7,
-0.08199916779994965,
-0.013398689217865467,
0.03006044588983059,
0.11912087351083755,
0.010762144811451435,
0.04945515841245651,
-0.11010278761386871,
-0.22539877891540527,
0.050911884754896164,
-0.08418039232492447,
-0.029850754886865616,
-0.08005735278129578,
0.05901409313082695,
-0.06517695635557175,
-0.08929750323295593,
-0.07844562083482742,
-0.13020506501197815,
-0.08925098925828934,
-0.1300835758447647,
0.024348167702555656,
0.02470799908041954,
0.12173286825418472,
0.06938005983829498,
0.01778181828558445,
-0.06406977772712708,
-0.13226287066936493,
-0.18622906506061554,
0.0032776545267552137,
0.15898478031158447,
0.07470259070396423,
-0.09228488802909851,
-0.061601653695106506,
-0.1929662674665451,
-0.03878115862607956,
-0.03572991117835045,
-0.005349141079932451,
-0.2675013542175293,
0.019704531878232956,
0.0015342823462560773,
-0.13334760069847107,
0.2401919960975647,
-0.0721978098154068,
0.06231297552585602,
-0.17265813052654266,
0.06751314550638199,
0.11064248532056808,
-0.07563470304012299,
-0.03802647069096565,
-0.08385024219751358,
0.06590428948402405,
-0.1938028335571289,
-0.1283591091632843,
0.1266687959432602,
0.23494908213615417,
-0.07298655807971954,
-0.1523371934890747,
0.002079072641208768,
-0.1030246689915657,
0.10432341694831848,
-0.20513176918029785,
-0.022990792989730835,
0.04431229457259178,
-0.09466244280338287,
0.009092070162296295,
-0.033690184354782104,
-0.08618571609258652,
0.07475589215755463,
3.218386671882562e-34,
-0.1330253779888153,
0.010838278569281101,
0.018938589841127396,
-0.05312333628535271,
-0.005726602394133806,
-0.05576438456773758,
-0.06773246824741364,
0.044136080890893936,
-0.07248508185148239,
-0.1734929382801056,
-0.1394442766904831
] |
https://github.com/huggingface/datasets/issues/2318 | [api request] API to obtain "dataset_module" dynamic path? | Hi @richardliaw, the feature is on the master branch and will be included in the next release in a couple of weeks. | **Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
This is an awesome library.
It seems like the dynamic module path in this library has broken some of hyperparameter tuning functionality: https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34
This is because Ray will spawn new processes, and each process will load modules by path. However, we need to explicitly inform Ray to load the right modules, or else it will error upon import.
I'd like an API to obtain the dynamic paths. This will allow us to support this functionality in this awesome library while being future proof.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
`datasets.get_dynamic_paths -> List[str]` will be sufficient for my use case.
By offering this API, we will be able to address the following issues (by patching the ray integration sufficiently):
https://github.com/huggingface/blog/issues/106
https://github.com/huggingface/transformers/issues/11565
https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34
https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/35
| 22 | [api request] API to obtain "dataset_module" dynamic path?
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is.
This is an awesome library.
It seems like the dynamic module path in this library has broken some of hyperparameter tuning functionality: https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34
This is because Ray will spawn new processes, and each process will load modules by path. However, we need to explicitly inform Ray to load the right modules, or else it will error upon import.
I'd like an API to obtain the dynamic paths. This will allow us to support this functionality in this awesome library while being future proof.
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
`datasets.get_dynamic_paths -> List[str]` will be sufficient for my use case.
By offering this API, we will be able to address the following issues (by patching the ray integration sufficiently):
https://github.com/huggingface/blog/issues/106
https://github.com/huggingface/transformers/issues/11565
https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/34
https://discuss.huggingface.co/t/using-hyperparameter-search-in-trainer/785/35
Hi @richardliaw, the feature is on the master branch and will be included in the next release in a couple of weeks. | [
0.06409663707017899,
0.015986131504178047,
-0.17760108411312103,
0.06481819599866867,
0.10115092247724533,
-0.030944161117076874,
-0.056416139006614685,
0.03757006675004959,
-0.08974739164113998,
0.23697026073932648,
-0.07006331533193588,
0.24602128565311432,
-0.11732248961925507,
0.17204789817333221,
0.031289856880903244,
-0.218544602394104,
-0.09637090563774109,
-0.2052854746580124,
-0.11481970548629761,
0.04940560832619667,
0.08446664363145828,
0.15777072310447693,
0.09399598836898804,
0.10345621407032013,
0.06393902748823166,
0.044316455721855164,
-0.11437714844942093,
0.003236473072320223,
0.11550793796777725,
-0.11532536894083023,
0.07932542264461517,
-0.05790717527270317,
0.1514909565448761,
0.12825341522693634,
0.0000057981851568911225,
0.0672236755490303,
-0.0832945704460144,
0.04304312914609909,
-0.1989849954843521,
-0.09925863146781921,
0.2117435187101364,
-0.053455520421266556,
0.16840994358062744,
-0.05820082128047943,
-0.010126042179763317,
0.02872060239315033,
0.04742487519979477,
-0.22490593791007996,
-0.03976169973611832,
-0.1961241066455841,
0.0051646362990140915,
0.22232471406459808,
-0.11345521360635757,
-0.1407611221075058,
-0.056727323681116104,
0.15646418929100037,
-0.01381177082657814,
0.02633626200258732,
-0.10734455287456512,
0.14906135201454163,
0.07028334587812424,
-0.011864501051604748,
0.03156929835677147,
0.07024961709976196,
0.026699919253587723,
-0.07865564525127411,
-0.29163658618927,
0.05224653333425522,
-0.04304316267371178,
0.17755083739757538,
-0.09800910204648972,
-0.051852162927389145,
0.009888655506074429,
0.012817496433854103,
0.0025697697419673204,
0.05260773003101349,
0.02572772093117237,
0.038947973400354385,
-0.014766551554203033,
-0.08251456916332245,
-0.015385041013360023,
-0.02848280966281891,
-0.07420147210359573,
-0.15544167160987854,
0.1423739194869995,
0.18190014362335205,
-0.04453170299530029,
0.031519707292318344,
-0.0415986105799675,
-0.23481589555740356,
0.21944992244243622,
0.08847303688526154,
-0.010263794101774693,
0.0445818156003952,
0.0590977817773819,
0.1196410208940506,
-0.004156621638685465,
0.046120624989271164,
0.08143679052591324,
-0.006538051180541515,
0.04523470997810364,
-0.017329387366771698,
-0.13946908712387085,
-0.05664687976241112,
0.05682404711842537,
-0.07895475625991821,
0.08843022584915161,
-0.0730227380990982,
0.06312347203493118,
-0.058783359825611115,
0.05663169175386429,
0.009019291028380394,
0.03727682679891586,
-0.11265885084867477,
-0.09214566648006439,
0.0943874940276146,
-0.19220198690891266,
0.21413064002990723,
-0.08115246891975403,
-0.11452970653772354,
0.07649137079715729,
-0.02408459410071373,
-0.09839719533920288,
0.20855596661567688,
0.039602313190698624,
0.02466389536857605,
-0.03788072243332863,
-0.22367644309997559,
-0.014279247261583805,
0.05614173039793968,
-0.02423044480383396,
-0.03126285597681999,
0.05233952775597572,
0.04728149622678757,
0.14685560762882233,
0.07251955568790436,
0.08054465800523758,
-0.3980417251586914,
0.09919720888137817,
-0.13675586879253387,
0.1524137705564499,
0.07795683294534683,
0.036599092185497284,
-0.07267790287733078,
0.15925414860248566,
-0.08265088498592377,
0.030846847221255302,
0.10013750940561295,
-0.12666119635105133,
0.06933261454105377,
-0.09212502837181091,
-0.13916969299316406,
-0.15243563055992126,
0.1339414119720459,
-0.05118012800812721,
-0.03480597957968712,
-0.06838222593069077,
-0.11447249352931976,
-0.33300334215164185,
0.05275233834981918,
0.1521567851305008,
0.04600096121430397,
0.001606171252205968,
0.03762064501643181,
0.005477500148117542,
0.06590496748685837,
-0.022504784166812897,
-0.02747555449604988,
0.051142897456884384,
-0.11971890926361084,
-0.1789594292640686,
-0.23287087678909302,
-0.22606585919857025,
-0.08025636523962021,
-0.16802965104579926,
0.21522454917430878,
0.004081491380929947,
-0.07123827189207077,
0.1484963595867157,
0.006953943986445665,
0.11316099017858505,
-0.004367517773061991,
0.11603443324565887,
-0.05362127348780632,
0.04323406517505646,
0.010595159605145454,
-0.055147163569927216,
0.13131946325302124,
0.05254165083169937,
-0.013379809446632862,
-0.01343629416078329,
-0.09255216270685196,
-0.1526504009962082,
0.14857624471187592,
0.03325918689370155,
-0.14420321583747864,
0.08521541208028793,
-0.0034508213866502047,
0.12211957573890686,
-0.13909173011779785,
-0.21451444923877716,
0.04960579797625542,
0.060495827347040176,
-0.018693678081035614,
0.1043846383690834,
-0.1559142768383026,
-0.2670072019100189,
0.14771154522895813,
-0.010119377635419369,
-0.12232810258865356,
-0.19986660778522491,
-0.10642710328102112,
0.20005187392234802,
0.08910346031188965,
-0.09152565896511078,
-0.037050485610961914,
0.0159283597022295,
0.055056702345609665,
0.09594815969467163,
0.10767257213592529,
-0.0899117961525917,
0.006029647309333086,
-0.014214316383004189,
0.024447154253721237,
-0.1067284420132637,
-0.028921322897076607,
0.0701877772808075,
0.05737258121371269,
0.03793523833155632,
-0.03614549711346626,
-0.05306807905435562,
-0.2435188591480255,
0.23556198179721832,
0.11398947238922119,
0.06404012441635132,
0.20757612586021423,
0.15385639667510986,
0.062263574451208115,
0.08551116287708282,
0.055169254541397095,
-0.02741081453859806,
-0.0230376236140728,
-0.1858384609222412,
0.12646159529685974,
-0.046952955424785614,
0.29421767592430115,
-0.2086864858865738,
0.08328801393508911,
-0.05253439024090767,
0.001429363270290196,
0.3234976530075073,
0.1744195967912674,
-0.10329165309667587,
0.13117095828056335,
0.1029176115989685,
-0.013517114333808422,
-0.029710788279771805,
0.021189311519265175,
-0.045311667025089264,
-0.056045591831207275,
0.0794299989938736,
0.055711615830659866,
-0.10247991234064102,
0.04100063443183899,
0.10717987269163132,
0.10290435701608658,
0.016795380041003227,
0.1952403336763382,
-0.02894691564142704,
0.14080403745174408,
-0.012084610760211945,
0.06686019152402878,
0.0313735231757164,
-0.029817884787917137,
0.022710710763931274,
-0.00298647815361619,
0.08480452746152878,
-0.06095416098833084,
0.060701970010995865,
-0.071933813393116,
-0.13198839128017426,
0.05586853250861168,
0.0018011638894677162,
-0.0012605690862983465,
0.06197185069322586,
0.0811367779970169,
-0.16957131028175354,
0.1160319596529007,
-0.1748650223016739,
-0.2241189330816269,
-0.015815086662769318,
0.07455538958311081,
-0.04921482875943184,
-0.2669624090194702,
0.04908014088869095,
-0.16676002740859985,
-0.022635014727711678,
0.0909382626414299,
-0.11851228773593903,
-0.06194068118929863,
0.06583220511674881,
0.04473920539021492,
0.11751392483711243,
0.022069428116083145,
-0.09542938321828842,
-0.06456523388624191,
0.17605653405189514,
-0.030629392713308334,
0.0064742243848741055,
-0.07561171054840088,
-0.11468061804771423,
0.06206413358449936,
0.0919823870062828,
-0.039075639098882675,
0.17573769390583038,
0.10844434052705765,
0.05820097401738167,
-0.09277357906103134,
0.1021203100681305,
0.05419217795133591,
0.08880123496055603,
-0.1191101148724556,
0.09139526635408401,
-0.11766226589679718,
-0.0356067456305027,
0.0251028910279274,
-0.19255563616752625,
-0.1776484102010727,
0.12675054371356964,
-0.025123201310634613,
0.03896525129675865,
0.1680743545293808,
0.1338401734828949,
0.06565645337104797,
0.0600009523332119,
-0.022632725536823273,
-0.03127921000123024,
-0.0822528526186943,
0.04019738361239433,
-0.026461539790034294,
0.03449784591794014,
0.008384887129068375,
0.021028079092502594,
0.1337670087814331,
0.06585785001516342,
-0.081304632127285,
-0.054465968161821365,
-0.14483293890953064,
-0.009105568751692772,
-0.048184264451265335,
0.07478690892457962,
0.16318832337856293,
0.075491763651371,
-0.10092343389987946,
-0.08262515813112259,
-0.15772046148777008,
0.042136162519454956,
0.07651811838150024,
-0.23455223441123962,
0.2220691591501236,
0.04213448986411095,
0.025834208354353905,
0.002444713143631816,
-0.12664596736431122,
-0.1566735953092575,
-0.015335467644035816,
0.07178794592618942,
0.0984579399228096,
0.19629709422588348,
0.04558734595775604,
-0.12844298779964447,
-0.17687757313251495,
-0.03805484622716904,
-0.04777020588517189,
0.04820197820663452,
-0.017678506672382355,
-0.015289323404431343,
0.025876037776470184,
0.13980428874492645,
-0.004868512507528067,
0.12418244779109955,
-0.139447420835495,
-0.022281205281615257,
0.04531653970479965,
0.21149234473705292,
-0.02146594412624836,
0.0817621722817421,
0.0679592713713646,
-0.0600031241774559,
0.1714334934949875,
-0.04509682208299637,
0.023210136219859123,
0.09464862942695618,
-0.11090266704559326,
0.06016736477613449,
0.10626085102558136,
-0.03026569075882435,
-0.01755271852016449,
-0.010466480627655983,
0.07968730479478836,
-0.04848188906908035,
0.01610051654279232,
0.05092368274927139,
0.07626749575138092,
-0.15484097599983215,
-0.1409139633178711,
-0.024264920502901077,
0.1891772747039795,
0.2575744688510895,
-0.07113325595855713,
-0.1536121666431427,
0.01891128160059452,
0.007017862517386675,
-0.11373817920684814,
0.09988736361265182,
-0.015419255010783672,
-0.07173346728086472,
-0.07779569178819656,
0.16850553452968597,
-0.21991172432899475,
0.09251789003610611,
-0.12017034739255905,
0.02394513413310051,
0.07638203352689743,
0.38057076930999756,
-0.08456923812627792,
-0.025744695216417313,
0.05814092606306076,
0.05926357954740524,
0.0018763755215331912,
0.13817478716373444,
0.12556831538677216,
-0.04321522265672684,
0.05106165632605553,
0.2542612552642822,
-0.13122400641441345,
0.13906431198120117,
-0.29310643672943115,
-0.08412815630435944,
-0.08028619736433029,
0.05713135004043579,
0.0164021123200655,
0.3565901517868042,
-0.0024731354787945747,
0.10188622027635574,
0.09109742939472198,
-0.07251948863267899,
-0.04551045969128609,
0.1841743290424347,
0.049888331443071365,
-0.09973835945129395,
0.02051118202507496,
-0.12448370456695557,
-0.008428270928561687,
0.0024975042324513197,
-0.0044622463174164295,
0.14697960019111633,
0.07068139314651489,
-0.11865910142660141,
-0.0019002141198143363,
0.058608993887901306,
-0.01714356616139412,
0.03226684778928757,
-0.008706829510629177,
0.0869772732257843,
-0.043284401297569275,
0.10266238451004028,
-0.031686216592788696,
0.07906917482614517,
0.06437923014163971,
0.13023026287555695,
0.03954339027404785,
0.03268038481473923,
0.047927822917699814,
-0.07280422747135162,
0.1338329166173935,
0.05667100101709366,
0.13621670007705688,
-0.007079355418682098,
-0.009885893203318119,
0.14113670587539673,
0.15445354580879211,
0.09270550310611725,
-0.21775312721729279,
-0.09166935086250305,
0.1011975035071373,
-0.06752042472362518,
0.04719950258731842,
-0.21606864035129547,
0.10925062745809555,
-0.1704384833574295,
-0.14713597297668457,
-0.07116673141717911,
-0.10977022349834442,
0.016747483983635902,
0.20345401763916016,
-0.08549048751592636,
-0.06359870731830597,
-0.028682533651590347,
-0.017201414331793785,
-0.09346592426300049,
-0.03977788984775543,
0.23423288762569427,
-0.17663070559501648,
-0.15253505110740662,
-0.178302600979805,
-0.06028173118829727,
-0.033679574728012085,
0.04638785496354103,
0.06001663953065872,
0.029170185327529907,
0.04996531456708908,
-0.07283664494752884,
-0.16743598878383636,
0.133466437458992,
0.08591574430465698,
-0.025663703680038452,
0.007514525204896927,
0.17707760632038116,
0.026097137480974197,
-0.06525014340877533,
0.05620185658335686,
-0.05552659556269646,
-0.10695069283246994,
0.0009861637372523546,
0.12041007727384567,
0.011658839881420135,
-0.06238122656941414,
0.0125966165214777,
0.11180948466062546,
-0.040829457342624664,
0.16383621096611023,
0.11890638619661331,
-0.11993332207202911,
0.030374834313988686,
0.06373415887355804,
0.09219395369291306,
-0.07381657510995865,
0.025346294045448303,
-0.004166757687926292,
-0.027470482513308525,
-0.11109192669391632,
0.033493440598249435,
0.047542449086904526,
-0.03071986697614193,
-0.12858615815639496,
-0.09996720403432846,
0.035186294466257095,
-0.01056491956114769,
-0.16140121221542358,
0.11123070120811462,
0.13196751475334167,
0.06293560564517975,
-0.0909474641084671,
-0.16748982667922974,
-2.728655053159812e-32,
0.03923206031322479,
0.07714677602052689,
0.010433712042868137,
-0.010195028968155384,
-0.07816116511821747,
0.08691292256116867,
0.050198353826999664,
-0.15362311899662018,
-0.03783795237541199,
-0.1558353453874588,
0.019237784668803215,
-0.0018660366768017411,
0.044066861271858215,
-0.04764286428689957,
-0.12287287414073944,
-0.05215626209974289,
-0.12401261925697327,
-0.07208176702260971,
-0.061761438846588135,
-0.0380328930914402,
0.1570281833410263,
-0.008227283135056496,
0.07325419783592224,
-0.11505826562643051,
-0.08246137946844101,
-0.018501119688153267,
0.016948511824011803,
0.1015680655837059,
-0.11290638148784637,
0.0714409276843071,
0.0014254245907068253,
0.1062193438410759,
-0.06384580582380295,
0.06449562311172485,
0.06407935172319412,
0.02212958224117756,
-0.21295799314975739,
-0.19754764437675476,
0.032252341508865356,
-0.16357003152370453,
-0.05102499946951866,
0.00012105346831958741,
0.03619830682873726,
-0.06897515803575516,
0.09137881547212601,
0.1956186145544052,
-0.08044206351041794,
0.012469163164496422,
-0.006576681509613991,
-0.10887634009122849,
-0.07093707472085953,
-0.071151964366436,
0.042999204248189926,
0.04623953998088837,
0.09936097264289856,
0.01660933345556259,
0.1542872190475464,
0.01285608671605587,
-0.018938744440674782,
-0.10567628592252731,
0.02665262669324875,
0.010426285676658154,
-0.05323142930865288,
0.0902176946401596,
0.29707100987434387,
0.04205857217311859,
0.18908953666687012,
-0.09443814307451248,
0.2664834260940552,
-0.00023837950720917434,
0.10801822692155838,
-0.019795862957835197,
0.04141838103532791,
-0.09379757195711136,
-0.2361575961112976,
0.0892980769276619,
0.015632370486855507,
-0.09278859198093414,
0.18605686724185944,
-0.13184507191181183,
0.10017454624176025,
-0.04135559871792793,
-0.04738474637269974,
0.16154682636260986,
-0.01934772916138172,
0.053218573331832886,
-0.08659997582435608,
0.0034178129862993956,
-0.06791063398122787,
0.0877855196595192,
0.0187675803899765,
0.019630026072263718,
-0.06468963623046875,
0.07025012373924255,
0.11673953384160995,
0.05466322600841522,
-0.017749391496181488,
-0.022888028994202614,
0.05468365177512169,
0.04107474163174629,
0.10460124164819717,
-0.0866277664899826,
0.10079189389944077,
0.0034038517624139786,
0.07546721398830414,
-0.06912770122289658,
0.05997825413942337,
0.10274608433246613,
-0.1597076952457428,
0.0830722227692604,
-0.12061162292957306,
0.1510200798511505,
0.055529914796352386,
0.13444167375564575,
0.16468395292758942,
0.056562166661024094,
0.025951968505978584,
-0.09056948870420456,
0.031032828614115715,
0.16813699901103973,
-0.0891704261302948,
0.0221257247030735,
-0.05032985284924507,
0.051213156431913376,
-0.13555003702640533,
0.047731149941682816,
-0.11737307161092758,
-0.06368710845708847,
0.05309699848294258,
-0.12670232355594635,
-0.07281918823719025,
0.03575646132230759,
7.257030461005343e-7,
-0.08468993753194809,
0.010337376035749912,
0.01185374055057764,
0.08477992564439774,
0.01679614558815956,
0.04326257109642029,
-0.08180266618728638,
-0.19906924664974213,
0.07433103770017624,
-0.0795140489935875,
-0.02496497333049774,
-0.06624389439821243,
0.05205661058425903,
-0.06723687797784805,
-0.11837518215179443,
-0.12973153591156006,
-0.10463521629571915,
-0.09596935659646988,
-0.17037764191627502,
0.04510500282049179,
0.03659869730472565,
0.13375519216060638,
0.06944400817155838,
0.017821576446294785,
-0.08563058078289032,
-0.09922313690185547,
-0.19032642245292664,
-0.014469172805547714,
0.14169363677501678,
0.050292693078517914,
-0.1036350354552269,
-0.08255117386579514,
-0.19208066165447235,
-0.03680100291967392,
-0.05022529512643814,
0.002566097304224968,
-0.24467350542545319,
0.015595114789903164,
-0.01630033552646637,
-0.13668279349803925,
0.23214580118656158,
-0.05110885947942734,
0.021988196298480034,
-0.16511262953281403,
0.05817506089806557,
0.11918006837368011,
-0.07708759605884552,
-0.009839477017521858,
-0.0710475742816925,
0.04544782638549805,
-0.1878906637430191,
-0.11764934659004211,
0.10000179708003998,
0.23759183287620544,
-0.04353600740432739,
-0.15586495399475098,
-0.00923002790659666,
-0.11021223664283752,
0.10277119278907776,
-0.20418772101402283,
0.010165737941861153,
0.053233157843351364,
-0.12822982668876648,
0.05116412043571472,
-0.06870405375957489,
-0.08514083176851273,
0.07507230341434479,
3.537114847857073e-34,
-0.10131241381168365,
0.02872265875339508,
0.019397106021642685,
-0.0994262620806694,
0.009539339691400528,
-0.04196814447641373,
-0.06390085071325302,
0.07923818379640579,
-0.09870386868715286,
-0.1826964020729065,
-0.13307522237300873
] |
https://github.com/huggingface/datasets/issues/2301 | Unable to setup dev env on Windows | Hi @gchhablani,
There are some 3rd-party dependencies that require to build code in C. In this case, it is the library `python-Levenshtein`.
On Windows, in order to be able to build C code, you need to install at least `Microsoft C++ Build Tools` version 14. You can find more info here: https://visualstudio.microsoft.com/visual-cpp-build-tools/ | Hi
I tried installing the `".[dev]"` version on Windows 10 after cloning.
Here is the error I'm facing:
```bat
(env) C:\testing\datasets>pip install -e ".[dev]"
Obtaining file:///C:/testing/datasets
Requirement already satisfied: numpy>=1.17 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.19.5)
Collecting pyarrow>=0.17.1
Using cached pyarrow-4.0.0-cp37-cp37m-win_amd64.whl (13.3 MB)
Requirement already satisfied: dill in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (0.3.1.1)
Collecting pandas
Using cached pandas-1.2.4-cp37-cp37m-win_amd64.whl (9.1 MB)
Requirement already satisfied: requests>=2.19.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (2.25.1)
Requirement already satisfied: tqdm<4.50.0,>=4.27 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (4.49.0)
Requirement already satisfied: xxhash in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (2.0.2)
Collecting multiprocess
Using cached multiprocess-0.70.11.1-py37-none-any.whl (108 kB)
Requirement already satisfied: fsspec in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (2021.4.0)
Collecting huggingface_hub<0.1.0
Using cached huggingface_hub-0.0.8-py3-none-any.whl (34 kB)
Requirement already satisfied: importlib_metadata in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (4.0.1)
Requirement already satisfied: absl-py in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (0.12.0)
Requirement already satisfied: pytest in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (6.2.3)
Collecting pytest-xdist
Using cached pytest_xdist-2.2.1-py3-none-any.whl (37 kB)
Collecting apache-beam>=2.24.0
Using cached apache_beam-2.29.0-cp37-cp37m-win_amd64.whl (3.7 MB)
Collecting elasticsearch
Using cached elasticsearch-7.12.1-py2.py3-none-any.whl (339 kB)
Requirement already satisfied: boto3==1.16.43 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.16.43)
Requirement already satisfied: botocore==1.19.43 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.19.43)
Collecting moto[s3]==1.3.16
Using cached moto-1.3.16-py2.py3-none-any.whl (879 kB)
Collecting rarfile>=4.0
Using cached rarfile-4.0-py3-none-any.whl (28 kB)
Collecting tensorflow>=2.3
Using cached tensorflow-2.4.1-cp37-cp37m-win_amd64.whl (370.7 MB)
Requirement already satisfied: torch in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.8.1)
Requirement already satisfied: transformers in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (4.5.1)
Collecting bs4
Using cached bs4-0.0.1-py3-none-any.whl
Collecting conllu
Using cached conllu-4.4-py2.py3-none-any.whl (15 kB)
Collecting langdetect
Using cached langdetect-1.0.8-py3-none-any.whl
Collecting lxml
Using cached lxml-4.6.3-cp37-cp37m-win_amd64.whl (3.5 MB)
Collecting mwparserfromhell
Using cached mwparserfromhell-0.6-cp37-cp37m-win_amd64.whl (101 kB)
Collecting nltk
Using cached nltk-3.6.2-py3-none-any.whl (1.5 MB)
Collecting openpyxl
Using cached openpyxl-3.0.7-py2.py3-none-any.whl (243 kB)
Collecting py7zr
Using cached py7zr-0.15.2-py3-none-any.whl (66 kB)
Collecting tldextract
Using cached tldextract-3.1.0-py2.py3-none-any.whl (87 kB)
Collecting zstandard
Using cached zstandard-0.15.2-cp37-cp37m-win_amd64.whl (582 kB)
Collecting bert_score>=0.3.6
Using cached bert_score-0.3.9-py3-none-any.whl (59 kB)
Collecting rouge_score
Using cached rouge_score-0.0.4-py2.py3-none-any.whl (22 kB)
Collecting sacrebleu
Using cached sacrebleu-1.5.1-py3-none-any.whl (54 kB)
Requirement already satisfied: scipy in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.6.3)
Collecting seqeval
Using cached seqeval-1.2.2-py3-none-any.whl
Collecting sklearn
Using cached sklearn-0.0-py2.py3-none-any.whl
Collecting jiwer
Using cached jiwer-2.2.0-py3-none-any.whl (13 kB)
Requirement already satisfied: toml>=0.10.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (0.10.2)
Requirement already satisfied: requests_file>=1.5.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.5.1)
Requirement already satisfied: texttable>=1.6.3 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.6.3)
Requirement already satisfied: s3fs>=0.4.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (0.4.2)
Requirement already satisfied: Werkzeug>=1.0.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.0.1)
Collecting black
Using cached black-21.4b2-py3-none-any.whl (130 kB)
Collecting isort
Using cached isort-5.8.0-py3-none-any.whl (103 kB)
Collecting flake8==3.7.9
Using cached flake8-3.7.9-py2.py3-none-any.whl (69 kB)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from boto3==1.16.43->datasets==1.5.0.dev0) (0.10.0)
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from boto3==1.16.43->datasets==1.5.0.dev0) (0.3.7)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from botocore==1.19.43->datasets==1.5.0.dev0) (1.26.4)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from botocore==1.19.43->datasets==1.5.0.dev0) (2.8.1)
Collecting entrypoints<0.4.0,>=0.3.0
Using cached entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting pyflakes<2.2.0,>=2.1.0
Using cached pyflakes-2.1.1-py2.py3-none-any.whl (59 kB)
Collecting pycodestyle<2.6.0,>=2.5.0
Using cached pycodestyle-2.5.0-py2.py3-none-any.whl (51 kB)
Collecting mccabe<0.7.0,>=0.6.0
Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Requirement already satisfied: jsondiff>=1.1.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.3.0)
Requirement already satisfied: pytz in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2021.1)
Requirement already satisfied: mock in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (4.0.3)
Requirement already satisfied: MarkupSafe<2.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.1.1)
Requirement already satisfied: python-jose[cryptography]<4.0.0,>=3.1.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.2.0)
Requirement already satisfied: aws-xray-sdk!=0.96,>=0.93 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.8.0)
Requirement already satisfied: cryptography>=2.3.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.4.7)
Requirement already satisfied: more-itertools in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (8.7.0)
Requirement already satisfied: PyYAML>=5.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (5.4.1)
Requirement already satisfied: boto>=2.36.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.49.0)
Requirement already satisfied: idna<3,>=2.5 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.10)
Requirement already satisfied: sshpubkeys>=3.1.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.3.1)
Requirement already satisfied: responses>=0.9.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.13.3)
Requirement already satisfied: xmltodict in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.12.0)
Requirement already satisfied: setuptools in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (52.0.0.post20210125)
Requirement already satisfied: Jinja2>=2.10.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.11.3)
Requirement already satisfied: zipp in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.4.1)
Requirement already satisfied: six>1.9 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.15.0)
Requirement already satisfied: ecdsa<0.15 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.14.1)
Requirement already satisfied: docker>=2.5.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (5.0.0)
Requirement already satisfied: cfn-lint>=0.4.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.49.0)
Requirement already satisfied: grpcio<2,>=1.29.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (1.32.0)
Collecting hdfs<3.0.0,>=2.1.0
Using cached hdfs-2.6.0-py3-none-any.whl (33 kB)
Collecting pyarrow>=0.17.1
Using cached pyarrow-3.0.0-cp37-cp37m-win_amd64.whl (12.6 MB)
Collecting fastavro<2,>=0.21.4
Using cached fastavro-1.4.0-cp37-cp37m-win_amd64.whl (394 kB)
Requirement already satisfied: httplib2<0.18.0,>=0.8 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.17.4)
Collecting pymongo<4.0.0,>=3.8.0
Using cached pymongo-3.11.3-cp37-cp37m-win_amd64.whl (382 kB)
Collecting crcmod<2.0,>=1.7
Using cached crcmod-1.7-py3-none-any.whl
Collecting avro-python3!=1.9.2,<1.10.0,>=1.8.1
Using cached avro_python3-1.9.2.1-py3-none-any.whl
Requirement already satisfied: typing-extensions<3.8.0,>=3.7.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (3.7.4.3)
Requirement already satisfied: future<1.0.0,>=0.18.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.18.2)
Collecting oauth2client<5,>=2.0.1
Using cached oauth2client-4.1.3-py2.py3-none-any.whl (98 kB)
Collecting pydot<2,>=1.2.0
Using cached pydot-1.4.2-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: protobuf<4,>=3.12.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (3.15.8)
Requirement already satisfied: wrapt in c:\programdata\anaconda3\envs\env\lib\site-packages (from aws-xray-sdk!=0.96,>=0.93->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.12.1)
Collecting matplotlib
Using cached matplotlib-3.4.1-cp37-cp37m-win_amd64.whl (7.1 MB)
Requirement already satisfied: junit-xml~=1.9 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.9)
Requirement already satisfied: jsonpatch in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.32)
Requirement already satisfied: jsonschema~=3.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.2.0)
Requirement already satisfied: networkx~=2.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.5.1)
Requirement already satisfied: aws-sam-translator>=1.35.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.35.0)
Requirement already satisfied: cffi>=1.12 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cryptography>=2.3.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.14.5)
Requirement already satisfied: pycparser in c:\programdata\anaconda3\envs\env\lib\site-packages (from cffi>=1.12->cryptography>=2.3.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.20)
Requirement already satisfied: pywin32==227 in c:\programdata\anaconda3\envs\env\lib\site-packages (from docker>=2.5.1->moto[s3]==1.3.16->datasets==1.5.0.dev0) (227)
Requirement already satisfied: websocket-client>=0.32.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from docker>=2.5.1->moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.58.0)
Requirement already satisfied: docopt in c:\programdata\anaconda3\envs\env\lib\site-packages (from hdfs<3.0.0,>=2.1.0->apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.6.2)
Requirement already satisfied: filelock in c:\programdata\anaconda3\envs\env\lib\site-packages (from huggingface_hub<0.1.0->datasets==1.5.0.dev0) (3.0.12)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from jsonschema~=3.0->cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.17.3)
Requirement already satisfied: attrs>=17.4.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from jsonschema~=3.0->cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (20.3.0)
Requirement already satisfied: decorator<5,>=4.3 in c:\programdata\anaconda3\envs\env\lib\site-packages (from networkx~=2.4->cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (4.4.2)
Requirement already satisfied: rsa>=3.1.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from oauth2client<5,>=2.0.1->apache-beam>=2.24.0->datasets==1.5.0.dev0) (4.7.2)
Requirement already satisfied: pyasn1-modules>=0.0.5 in c:\programdata\anaconda3\envs\env\lib\site-packages (from oauth2client<5,>=2.0.1->apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.2.8)
Requirement already satisfied: pyasn1>=0.1.7 in c:\programdata\anaconda3\envs\env\lib\site-packages (from oauth2client<5,>=2.0.1->apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.4.8)
Requirement already satisfied: pyparsing>=2.1.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from pydot<2,>=1.2.0->apache-beam>=2.24.0->datasets==1.5.0.dev0) (2.4.7)
Requirement already satisfied: certifi>=2017.4.17 in c:\programdata\anaconda3\envs\env\lib\site-packages (from requests>=2.19.0->datasets==1.5.0.dev0) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from requests>=2.19.0->datasets==1.5.0.dev0) (4.0.0)
Collecting keras-preprocessing~=1.1.2
Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Requirement already satisfied: termcolor~=1.1.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorflow>=2.3->datasets==1.5.0.dev0) (1.1.0)
Requirement already satisfied: tensorboard~=2.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorflow>=2.3->datasets==1.5.0.dev0) (2.5.0)
Requirement already satisfied: wheel~=0.35 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorflow>=2.3->datasets==1.5.0.dev0) (0.36.2)
Collecting opt-einsum~=3.3.0
Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Collecting gast==0.3.3
Using cached gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Collecting google-pasta~=0.2
Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Requirement already satisfied: tensorflow-estimator<2.5.0,>=2.4.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorflow>=2.3->datasets==1.5.0.dev0) (2.4.0)
Collecting astunparse~=1.6.3
Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting flatbuffers~=1.12.0
Using cached flatbuffers-1.12-py2.py3-none-any.whl (15 kB)
Collecting h5py~=2.10.0
Using cached h5py-2.10.0-cp37-cp37m-win_amd64.whl (2.5 MB)
Requirement already satisfied: markdown>=2.6.8 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (3.3.4)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (1.8.0)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (0.4.4)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (0.6.0)
Requirement already satisfied: google-auth<2,>=1.6.3 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (1.30.0)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (4.2.2)
Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (1.3.0)
Requirement already satisfied: oauthlib>=3.0.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (3.1.0)
Requirement already satisfied: regex!=2019.12.17 in c:\programdata\anaconda3\envs\env\lib\site-packages (from transformers->datasets==1.5.0.dev0) (2021.4.4)
Requirement already satisfied: tokenizers<0.11,>=0.10.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from transformers->datasets==1.5.0.dev0) (0.10.2)
Requirement already satisfied: sacremoses in c:\programdata\anaconda3\envs\env\lib\site-packages (from transformers->datasets==1.5.0.dev0) (0.0.45)
Requirement already satisfied: packaging in c:\programdata\anaconda3\envs\env\lib\site-packages (from transformers->datasets==1.5.0.dev0) (20.9)
Collecting pathspec<1,>=0.8.1
Using cached pathspec-0.8.1-py2.py3-none-any.whl (28 kB)
Requirement already satisfied: click>=7.1.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from black->datasets==1.5.0.dev0) (7.1.2)
Collecting appdirs
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting mypy-extensions>=0.4.3
Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Requirement already satisfied: typed-ast>=1.4.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from black->datasets==1.5.0.dev0) (1.4.3)
Collecting beautifulsoup4
Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Requirement already satisfied: soupsieve>1.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from beautifulsoup4->bs4->datasets==1.5.0.dev0) (2.2.1)
Collecting python-Levenshtein
Using cached python-Levenshtein-0.12.2.tar.gz (50 kB)
Requirement already satisfied: jsonpointer>=1.9 in c:\programdata\anaconda3\envs\env\lib\site-packages (from jsonpatch->cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.1)
Requirement already satisfied: pillow>=6.2.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from matplotlib->bert_score>=0.3.6->datasets==1.5.0.dev0) (8.2.0)
Requirement already satisfied: cycler>=0.10 in c:\programdata\anaconda3\envs\env\lib\site-packages (from matplotlib->bert_score>=0.3.6->datasets==1.5.0.dev0) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from matplotlib->bert_score>=0.3.6->datasets==1.5.0.dev0) (1.3.1)
Collecting multiprocess
Using cached multiprocess-0.70.11-py3-none-any.whl (98 kB)
Using cached multiprocess-0.70.10.zip (2.4 MB)
Using cached multiprocess-0.70.9-py3-none-any.whl
Requirement already satisfied: joblib in c:\programdata\anaconda3\envs\env\lib\site-packages (from nltk->datasets==1.5.0.dev0) (1.0.1)
Collecting et-xmlfile
Using cached et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Requirement already satisfied: pyzstd<0.15.0,>=0.14.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from py7zr->datasets==1.5.0.dev0) (0.14.4)
Collecting pyppmd<0.13.0,>=0.12.1
Using cached pyppmd-0.12.1-cp37-cp37m-win_amd64.whl (32 kB)
Collecting pycryptodome>=3.6.6
Using cached pycryptodome-3.10.1-cp35-abi3-win_amd64.whl (1.6 MB)
Collecting bcj-cffi<0.6.0,>=0.5.1
Using cached bcj_cffi-0.5.1-cp37-cp37m-win_amd64.whl (21 kB)
Collecting multivolumefile<0.3.0,>=0.2.0
Using cached multivolumefile-0.2.3-py3-none-any.whl (17 kB)
Requirement already satisfied: iniconfig in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (1.1.1)
Requirement already satisfied: py>=1.8.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (1.10.0)
Requirement already satisfied: pluggy<1.0.0a1,>=0.12 in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (0.13.1)
Requirement already satisfied: atomicwrites>=1.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (1.4.0)
Requirement already satisfied: colorama in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (0.4.4)
Collecting pytest-forked
Using cached pytest_forked-1.3.0-py2.py3-none-any.whl (4.7 kB)
Collecting execnet>=1.1
Using cached execnet-1.8.0-py2.py3-none-any.whl (39 kB)
Requirement already satisfied: apipkg>=1.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from execnet>=1.1->pytest-xdist->datasets==1.5.0.dev0) (1.5)
Collecting portalocker==2.0.0
Using cached portalocker-2.0.0-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: scikit-learn>=0.21.3 in c:\programdata\anaconda3\envs\env\lib\site-packages (from seqeval->datasets==1.5.0.dev0) (0.24.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from scikit-learn>=0.21.3->seqeval->datasets==1.5.0.dev0) (2.1.0)
Building wheels for collected packages: python-Levenshtein
Building wheel for python-Levenshtein (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"'; __file__='"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\VKC~1\AppData\Local\Temp\pip-wheel-8jh7fm18'
cwd: C:\Users\VKC~1\AppData\Local\Temp\pip-install-ynt_dbm4\python-levenshtein_c02e7e6f9def4629a475349654670ae9\
Complete output (27 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\StringMatcher.py -> build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\__init__.py -> build\lib.win-amd64-3.7\Levenshtein
running egg_info
writing python_Levenshtein.egg-info\PKG-INFO
writing dependency_links to python_Levenshtein.egg-info\dependency_links.txt
writing entry points to python_Levenshtein.egg-info\entry_points.txt
writing namespace_packages to python_Levenshtein.egg-info\namespace_packages.txt
writing requirements to python_Levenshtein.egg-info\requires.txt
writing top-level names to python_Levenshtein.egg-info\top_level.txt
reading manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*so' found anywhere in distribution
warning: no previously-included files matching '.project' found anywhere in distribution
warning: no previously-included files matching '.pydevproject' found anywhere in distribution
writing manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
copying Levenshtein\_levenshtein.c -> build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\_levenshtein.h -> build\lib.win-amd64-3.7\Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for python-Levenshtein
Running setup.py clean for python-Levenshtein
Failed to build python-Levenshtein
Installing collected packages: python-Levenshtein, pytest-forked, pyppmd, pymongo, pyflakes, pydot, pycryptodome, pycodestyle, pyarrow, portalocker, pathspec, pandas, opt-einsum, oauth2client, nltk, mypy-extensions, multivolumefile, multiprocess, moto, mccabe, matplotlib, keras-preprocessing, huggingface-hub, hdfs, h5py, google-pasta, gast, flatbuffers, fastavro, execnet, et-xmlfile, entrypoints, crcmod, beautifulsoup4, bcj-cffi, avro-python3, astunparse, appdirs, zstandard, tldextract, tensorflow, sklearn, seqeval, sacrebleu, rouge-score, rarfile, pytest-xdist, py7zr, openpyxl, mwparserfromhell, lxml, langdetect, jiwer, isort, flake8, elasticsearch, datasets, conllu, bs4, black, bert-score, apache-beam
Running setup.py install for python-Levenshtein ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"'; __file__='"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\VKC~1\AppData\Local\Temp\pip-record-v7l7zitb\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\env\Include\python-Levenshtein'
cwd: C:\Users\VKC~1\AppData\Local\Temp\pip-install-ynt_dbm4\python-levenshtein_c02e7e6f9def4629a475349654670ae9\
Complete output (27 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\StringMatcher.py -> build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\__init__.py -> build\lib.win-amd64-3.7\Levenshtein
running egg_info
writing python_Levenshtein.egg-info\PKG-INFO
writing dependency_links to python_Levenshtein.egg-info\dependency_links.txt
writing entry points to python_Levenshtein.egg-info\entry_points.txt
writing namespace_packages to python_Levenshtein.egg-info\namespace_packages.txt
writing requirements to python_Levenshtein.egg-info\requires.txt
writing top-level names to python_Levenshtein.egg-info\top_level.txt
reading manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*so' found anywhere in distribution
warning: no previously-included files matching '.project' found anywhere in distribution
warning: no previously-included files matching '.pydevproject' found anywhere in distribution
writing manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
copying Levenshtein\_levenshtein.c -> build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\_levenshtein.h -> build\lib.win-amd64-3.7\Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\envs\env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"'; __file__='"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\VKC~1\AppData\Local\Temp\pip-record-v7l7zitb\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\env\Include\python-Levenshtein' Check the logs for full command output.
```
Here are conda and python versions:
```bat
(env) C:\testing\datasets>conda --version
conda 4.9.2
(env) C:\testing\datasets>python --version
Python 3.7.10
```
Please help me out. Thanks. | 52 | Unable to setup dev env on Windows
Hi
I tried installing the `".[dev]"` version on Windows 10 after cloning.
Here is the error I'm facing:
```bat
(env) C:\testing\datasets>pip install -e ".[dev]"
Obtaining file:///C:/testing/datasets
Requirement already satisfied: numpy>=1.17 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.19.5)
Collecting pyarrow>=0.17.1
Using cached pyarrow-4.0.0-cp37-cp37m-win_amd64.whl (13.3 MB)
Requirement already satisfied: dill in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (0.3.1.1)
Collecting pandas
Using cached pandas-1.2.4-cp37-cp37m-win_amd64.whl (9.1 MB)
Requirement already satisfied: requests>=2.19.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (2.25.1)
Requirement already satisfied: tqdm<4.50.0,>=4.27 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (4.49.0)
Requirement already satisfied: xxhash in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (2.0.2)
Collecting multiprocess
Using cached multiprocess-0.70.11.1-py37-none-any.whl (108 kB)
Requirement already satisfied: fsspec in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (2021.4.0)
Collecting huggingface_hub<0.1.0
Using cached huggingface_hub-0.0.8-py3-none-any.whl (34 kB)
Requirement already satisfied: importlib_metadata in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (4.0.1)
Requirement already satisfied: absl-py in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (0.12.0)
Requirement already satisfied: pytest in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (6.2.3)
Collecting pytest-xdist
Using cached pytest_xdist-2.2.1-py3-none-any.whl (37 kB)
Collecting apache-beam>=2.24.0
Using cached apache_beam-2.29.0-cp37-cp37m-win_amd64.whl (3.7 MB)
Collecting elasticsearch
Using cached elasticsearch-7.12.1-py2.py3-none-any.whl (339 kB)
Requirement already satisfied: boto3==1.16.43 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.16.43)
Requirement already satisfied: botocore==1.19.43 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.19.43)
Collecting moto[s3]==1.3.16
Using cached moto-1.3.16-py2.py3-none-any.whl (879 kB)
Collecting rarfile>=4.0
Using cached rarfile-4.0-py3-none-any.whl (28 kB)
Collecting tensorflow>=2.3
Using cached tensorflow-2.4.1-cp37-cp37m-win_amd64.whl (370.7 MB)
Requirement already satisfied: torch in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.8.1)
Requirement already satisfied: transformers in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (4.5.1)
Collecting bs4
Using cached bs4-0.0.1-py3-none-any.whl
Collecting conllu
Using cached conllu-4.4-py2.py3-none-any.whl (15 kB)
Collecting langdetect
Using cached langdetect-1.0.8-py3-none-any.whl
Collecting lxml
Using cached lxml-4.6.3-cp37-cp37m-win_amd64.whl (3.5 MB)
Collecting mwparserfromhell
Using cached mwparserfromhell-0.6-cp37-cp37m-win_amd64.whl (101 kB)
Collecting nltk
Using cached nltk-3.6.2-py3-none-any.whl (1.5 MB)
Collecting openpyxl
Using cached openpyxl-3.0.7-py2.py3-none-any.whl (243 kB)
Collecting py7zr
Using cached py7zr-0.15.2-py3-none-any.whl (66 kB)
Collecting tldextract
Using cached tldextract-3.1.0-py2.py3-none-any.whl (87 kB)
Collecting zstandard
Using cached zstandard-0.15.2-cp37-cp37m-win_amd64.whl (582 kB)
Collecting bert_score>=0.3.6
Using cached bert_score-0.3.9-py3-none-any.whl (59 kB)
Collecting rouge_score
Using cached rouge_score-0.0.4-py2.py3-none-any.whl (22 kB)
Collecting sacrebleu
Using cached sacrebleu-1.5.1-py3-none-any.whl (54 kB)
Requirement already satisfied: scipy in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.6.3)
Collecting seqeval
Using cached seqeval-1.2.2-py3-none-any.whl
Collecting sklearn
Using cached sklearn-0.0-py2.py3-none-any.whl
Collecting jiwer
Using cached jiwer-2.2.0-py3-none-any.whl (13 kB)
Requirement already satisfied: toml>=0.10.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (0.10.2)
Requirement already satisfied: requests_file>=1.5.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.5.1)
Requirement already satisfied: texttable>=1.6.3 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.6.3)
Requirement already satisfied: s3fs>=0.4.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (0.4.2)
Requirement already satisfied: Werkzeug>=1.0.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from datasets==1.5.0.dev0) (1.0.1)
Collecting black
Using cached black-21.4b2-py3-none-any.whl (130 kB)
Collecting isort
Using cached isort-5.8.0-py3-none-any.whl (103 kB)
Collecting flake8==3.7.9
Using cached flake8-3.7.9-py2.py3-none-any.whl (69 kB)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from boto3==1.16.43->datasets==1.5.0.dev0) (0.10.0)
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from boto3==1.16.43->datasets==1.5.0.dev0) (0.3.7)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from botocore==1.19.43->datasets==1.5.0.dev0) (1.26.4)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from botocore==1.19.43->datasets==1.5.0.dev0) (2.8.1)
Collecting entrypoints<0.4.0,>=0.3.0
Using cached entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting pyflakes<2.2.0,>=2.1.0
Using cached pyflakes-2.1.1-py2.py3-none-any.whl (59 kB)
Collecting pycodestyle<2.6.0,>=2.5.0
Using cached pycodestyle-2.5.0-py2.py3-none-any.whl (51 kB)
Collecting mccabe<0.7.0,>=0.6.0
Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Requirement already satisfied: jsondiff>=1.1.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.3.0)
Requirement already satisfied: pytz in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2021.1)
Requirement already satisfied: mock in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (4.0.3)
Requirement already satisfied: MarkupSafe<2.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.1.1)
Requirement already satisfied: python-jose[cryptography]<4.0.0,>=3.1.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.2.0)
Requirement already satisfied: aws-xray-sdk!=0.96,>=0.93 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.8.0)
Requirement already satisfied: cryptography>=2.3.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.4.7)
Requirement already satisfied: more-itertools in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (8.7.0)
Requirement already satisfied: PyYAML>=5.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (5.4.1)
Requirement already satisfied: boto>=2.36.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.49.0)
Requirement already satisfied: idna<3,>=2.5 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.10)
Requirement already satisfied: sshpubkeys>=3.1.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.3.1)
Requirement already satisfied: responses>=0.9.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.13.3)
Requirement already satisfied: xmltodict in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.12.0)
Requirement already satisfied: setuptools in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (52.0.0.post20210125)
Requirement already satisfied: Jinja2>=2.10.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.11.3)
Requirement already satisfied: zipp in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.4.1)
Requirement already satisfied: six>1.9 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.15.0)
Requirement already satisfied: ecdsa<0.15 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.14.1)
Requirement already satisfied: docker>=2.5.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (5.0.0)
Requirement already satisfied: cfn-lint>=0.4.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.49.0)
Requirement already satisfied: grpcio<2,>=1.29.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (1.32.0)
Collecting hdfs<3.0.0,>=2.1.0
Using cached hdfs-2.6.0-py3-none-any.whl (33 kB)
Collecting pyarrow>=0.17.1
Using cached pyarrow-3.0.0-cp37-cp37m-win_amd64.whl (12.6 MB)
Collecting fastavro<2,>=0.21.4
Using cached fastavro-1.4.0-cp37-cp37m-win_amd64.whl (394 kB)
Requirement already satisfied: httplib2<0.18.0,>=0.8 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.17.4)
Collecting pymongo<4.0.0,>=3.8.0
Using cached pymongo-3.11.3-cp37-cp37m-win_amd64.whl (382 kB)
Collecting crcmod<2.0,>=1.7
Using cached crcmod-1.7-py3-none-any.whl
Collecting avro-python3!=1.9.2,<1.10.0,>=1.8.1
Using cached avro_python3-1.9.2.1-py3-none-any.whl
Requirement already satisfied: typing-extensions<3.8.0,>=3.7.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (3.7.4.3)
Requirement already satisfied: future<1.0.0,>=0.18.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.18.2)
Collecting oauth2client<5,>=2.0.1
Using cached oauth2client-4.1.3-py2.py3-none-any.whl (98 kB)
Collecting pydot<2,>=1.2.0
Using cached pydot-1.4.2-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: protobuf<4,>=3.12.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from apache-beam>=2.24.0->datasets==1.5.0.dev0) (3.15.8)
Requirement already satisfied: wrapt in c:\programdata\anaconda3\envs\env\lib\site-packages (from aws-xray-sdk!=0.96,>=0.93->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.12.1)
Collecting matplotlib
Using cached matplotlib-3.4.1-cp37-cp37m-win_amd64.whl (7.1 MB)
Requirement already satisfied: junit-xml~=1.9 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.9)
Requirement already satisfied: jsonpatch in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.32)
Requirement already satisfied: jsonschema~=3.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (3.2.0)
Requirement already satisfied: networkx~=2.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.5.1)
Requirement already satisfied: aws-sam-translator>=1.35.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.35.0)
Requirement already satisfied: cffi>=1.12 in c:\programdata\anaconda3\envs\env\lib\site-packages (from cryptography>=2.3.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (1.14.5)
Requirement already satisfied: pycparser in c:\programdata\anaconda3\envs\env\lib\site-packages (from cffi>=1.12->cryptography>=2.3.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.20)
Requirement already satisfied: pywin32==227 in c:\programdata\anaconda3\envs\env\lib\site-packages (from docker>=2.5.1->moto[s3]==1.3.16->datasets==1.5.0.dev0) (227)
Requirement already satisfied: websocket-client>=0.32.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from docker>=2.5.1->moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.58.0)
Requirement already satisfied: docopt in c:\programdata\anaconda3\envs\env\lib\site-packages (from hdfs<3.0.0,>=2.1.0->apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.6.2)
Requirement already satisfied: filelock in c:\programdata\anaconda3\envs\env\lib\site-packages (from huggingface_hub<0.1.0->datasets==1.5.0.dev0) (3.0.12)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from jsonschema~=3.0->cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (0.17.3)
Requirement already satisfied: attrs>=17.4.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from jsonschema~=3.0->cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (20.3.0)
Requirement already satisfied: decorator<5,>=4.3 in c:\programdata\anaconda3\envs\env\lib\site-packages (from networkx~=2.4->cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (4.4.2)
Requirement already satisfied: rsa>=3.1.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from oauth2client<5,>=2.0.1->apache-beam>=2.24.0->datasets==1.5.0.dev0) (4.7.2)
Requirement already satisfied: pyasn1-modules>=0.0.5 in c:\programdata\anaconda3\envs\env\lib\site-packages (from oauth2client<5,>=2.0.1->apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.2.8)
Requirement already satisfied: pyasn1>=0.1.7 in c:\programdata\anaconda3\envs\env\lib\site-packages (from oauth2client<5,>=2.0.1->apache-beam>=2.24.0->datasets==1.5.0.dev0) (0.4.8)
Requirement already satisfied: pyparsing>=2.1.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from pydot<2,>=1.2.0->apache-beam>=2.24.0->datasets==1.5.0.dev0) (2.4.7)
Requirement already satisfied: certifi>=2017.4.17 in c:\programdata\anaconda3\envs\env\lib\site-packages (from requests>=2.19.0->datasets==1.5.0.dev0) (2020.12.5)
Requirement already satisfied: chardet<5,>=3.0.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from requests>=2.19.0->datasets==1.5.0.dev0) (4.0.0)
Collecting keras-preprocessing~=1.1.2
Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Requirement already satisfied: termcolor~=1.1.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorflow>=2.3->datasets==1.5.0.dev0) (1.1.0)
Requirement already satisfied: tensorboard~=2.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorflow>=2.3->datasets==1.5.0.dev0) (2.5.0)
Requirement already satisfied: wheel~=0.35 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorflow>=2.3->datasets==1.5.0.dev0) (0.36.2)
Collecting opt-einsum~=3.3.0
Using cached opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Collecting gast==0.3.3
Using cached gast-0.3.3-py2.py3-none-any.whl (9.7 kB)
Collecting google-pasta~=0.2
Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Requirement already satisfied: tensorflow-estimator<2.5.0,>=2.4.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorflow>=2.3->datasets==1.5.0.dev0) (2.4.0)
Collecting astunparse~=1.6.3
Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting flatbuffers~=1.12.0
Using cached flatbuffers-1.12-py2.py3-none-any.whl (15 kB)
Collecting h5py~=2.10.0
Using cached h5py-2.10.0-cp37-cp37m-win_amd64.whl (2.5 MB)
Requirement already satisfied: markdown>=2.6.8 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (3.3.4)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (1.8.0)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (0.4.4)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (0.6.0)
Requirement already satisfied: google-auth<2,>=1.6.3 in c:\programdata\anaconda3\envs\env\lib\site-packages (from tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (1.30.0)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from google-auth<2,>=1.6.3->tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (4.2.2)
Requirement already satisfied: requests-oauthlib>=0.7.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (1.3.0)
Requirement already satisfied: oauthlib>=3.0.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.4->tensorflow>=2.3->datasets==1.5.0.dev0) (3.1.0)
Requirement already satisfied: regex!=2019.12.17 in c:\programdata\anaconda3\envs\env\lib\site-packages (from transformers->datasets==1.5.0.dev0) (2021.4.4)
Requirement already satisfied: tokenizers<0.11,>=0.10.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from transformers->datasets==1.5.0.dev0) (0.10.2)
Requirement already satisfied: sacremoses in c:\programdata\anaconda3\envs\env\lib\site-packages (from transformers->datasets==1.5.0.dev0) (0.0.45)
Requirement already satisfied: packaging in c:\programdata\anaconda3\envs\env\lib\site-packages (from transformers->datasets==1.5.0.dev0) (20.9)
Collecting pathspec<1,>=0.8.1
Using cached pathspec-0.8.1-py2.py3-none-any.whl (28 kB)
Requirement already satisfied: click>=7.1.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from black->datasets==1.5.0.dev0) (7.1.2)
Collecting appdirs
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting mypy-extensions>=0.4.3
Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Requirement already satisfied: typed-ast>=1.4.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from black->datasets==1.5.0.dev0) (1.4.3)
Collecting beautifulsoup4
Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Requirement already satisfied: soupsieve>1.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from beautifulsoup4->bs4->datasets==1.5.0.dev0) (2.2.1)
Collecting python-Levenshtein
Using cached python-Levenshtein-0.12.2.tar.gz (50 kB)
Requirement already satisfied: jsonpointer>=1.9 in c:\programdata\anaconda3\envs\env\lib\site-packages (from jsonpatch->cfn-lint>=0.4.0->moto[s3]==1.3.16->datasets==1.5.0.dev0) (2.1)
Requirement already satisfied: pillow>=6.2.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from matplotlib->bert_score>=0.3.6->datasets==1.5.0.dev0) (8.2.0)
Requirement already satisfied: cycler>=0.10 in c:\programdata\anaconda3\envs\env\lib\site-packages (from matplotlib->bert_score>=0.3.6->datasets==1.5.0.dev0) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\programdata\anaconda3\envs\env\lib\site-packages (from matplotlib->bert_score>=0.3.6->datasets==1.5.0.dev0) (1.3.1)
Collecting multiprocess
Using cached multiprocess-0.70.11-py3-none-any.whl (98 kB)
Using cached multiprocess-0.70.10.zip (2.4 MB)
Using cached multiprocess-0.70.9-py3-none-any.whl
Requirement already satisfied: joblib in c:\programdata\anaconda3\envs\env\lib\site-packages (from nltk->datasets==1.5.0.dev0) (1.0.1)
Collecting et-xmlfile
Using cached et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Requirement already satisfied: pyzstd<0.15.0,>=0.14.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from py7zr->datasets==1.5.0.dev0) (0.14.4)
Collecting pyppmd<0.13.0,>=0.12.1
Using cached pyppmd-0.12.1-cp37-cp37m-win_amd64.whl (32 kB)
Collecting pycryptodome>=3.6.6
Using cached pycryptodome-3.10.1-cp35-abi3-win_amd64.whl (1.6 MB)
Collecting bcj-cffi<0.6.0,>=0.5.1
Using cached bcj_cffi-0.5.1-cp37-cp37m-win_amd64.whl (21 kB)
Collecting multivolumefile<0.3.0,>=0.2.0
Using cached multivolumefile-0.2.3-py3-none-any.whl (17 kB)
Requirement already satisfied: iniconfig in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (1.1.1)
Requirement already satisfied: py>=1.8.2 in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (1.10.0)
Requirement already satisfied: pluggy<1.0.0a1,>=0.12 in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (0.13.1)
Requirement already satisfied: atomicwrites>=1.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (1.4.0)
Requirement already satisfied: colorama in c:\programdata\anaconda3\envs\env\lib\site-packages (from pytest->datasets==1.5.0.dev0) (0.4.4)
Collecting pytest-forked
Using cached pytest_forked-1.3.0-py2.py3-none-any.whl (4.7 kB)
Collecting execnet>=1.1
Using cached execnet-1.8.0-py2.py3-none-any.whl (39 kB)
Requirement already satisfied: apipkg>=1.4 in c:\programdata\anaconda3\envs\env\lib\site-packages (from execnet>=1.1->pytest-xdist->datasets==1.5.0.dev0) (1.5)
Collecting portalocker==2.0.0
Using cached portalocker-2.0.0-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: scikit-learn>=0.21.3 in c:\programdata\anaconda3\envs\env\lib\site-packages (from seqeval->datasets==1.5.0.dev0) (0.24.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\programdata\anaconda3\envs\env\lib\site-packages (from scikit-learn>=0.21.3->seqeval->datasets==1.5.0.dev0) (2.1.0)
Building wheels for collected packages: python-Levenshtein
Building wheel for python-Levenshtein (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"'; __file__='"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\VKC~1\AppData\Local\Temp\pip-wheel-8jh7fm18'
cwd: C:\Users\VKC~1\AppData\Local\Temp\pip-install-ynt_dbm4\python-levenshtein_c02e7e6f9def4629a475349654670ae9\
Complete output (27 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\StringMatcher.py -> build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\__init__.py -> build\lib.win-amd64-3.7\Levenshtein
running egg_info
writing python_Levenshtein.egg-info\PKG-INFO
writing dependency_links to python_Levenshtein.egg-info\dependency_links.txt
writing entry points to python_Levenshtein.egg-info\entry_points.txt
writing namespace_packages to python_Levenshtein.egg-info\namespace_packages.txt
writing requirements to python_Levenshtein.egg-info\requires.txt
writing top-level names to python_Levenshtein.egg-info\top_level.txt
reading manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*so' found anywhere in distribution
warning: no previously-included files matching '.project' found anywhere in distribution
warning: no previously-included files matching '.pydevproject' found anywhere in distribution
writing manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
copying Levenshtein\_levenshtein.c -> build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\_levenshtein.h -> build\lib.win-amd64-3.7\Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for python-Levenshtein
Running setup.py clean for python-Levenshtein
Failed to build python-Levenshtein
Installing collected packages: python-Levenshtein, pytest-forked, pyppmd, pymongo, pyflakes, pydot, pycryptodome, pycodestyle, pyarrow, portalocker, pathspec, pandas, opt-einsum, oauth2client, nltk, mypy-extensions, multivolumefile, multiprocess, moto, mccabe, matplotlib, keras-preprocessing, huggingface-hub, hdfs, h5py, google-pasta, gast, flatbuffers, fastavro, execnet, et-xmlfile, entrypoints, crcmod, beautifulsoup4, bcj-cffi, avro-python3, astunparse, appdirs, zstandard, tldextract, tensorflow, sklearn, seqeval, sacrebleu, rouge-score, rarfile, pytest-xdist, py7zr, openpyxl, mwparserfromhell, lxml, langdetect, jiwer, isort, flake8, elasticsearch, datasets, conllu, bs4, black, bert-score, apache-beam
Running setup.py install for python-Levenshtein ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"'; __file__='"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\VKC~1\AppData\Local\Temp\pip-record-v7l7zitb\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\env\Include\python-Levenshtein'
cwd: C:\Users\VKC~1\AppData\Local\Temp\pip-install-ynt_dbm4\python-levenshtein_c02e7e6f9def4629a475349654670ae9\
Complete output (27 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\StringMatcher.py -> build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\__init__.py -> build\lib.win-amd64-3.7\Levenshtein
running egg_info
writing python_Levenshtein.egg-info\PKG-INFO
writing dependency_links to python_Levenshtein.egg-info\dependency_links.txt
writing entry points to python_Levenshtein.egg-info\entry_points.txt
writing namespace_packages to python_Levenshtein.egg-info\namespace_packages.txt
writing requirements to python_Levenshtein.egg-info\requires.txt
writing top-level names to python_Levenshtein.egg-info\top_level.txt
reading manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*pyc' found anywhere in distribution
warning: no previously-included files matching '*so' found anywhere in distribution
warning: no previously-included files matching '.project' found anywhere in distribution
warning: no previously-included files matching '.pydevproject' found anywhere in distribution
writing manifest file 'python_Levenshtein.egg-info\SOURCES.txt'
copying Levenshtein\_levenshtein.c -> build\lib.win-amd64-3.7\Levenshtein
copying Levenshtein\_levenshtein.h -> build\lib.win-amd64-3.7\Levenshtein
running build_ext
building 'Levenshtein._levenshtein' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\envs\env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"'; __file__='"'"'C:\\Users\\VKC~1\\AppData\\Local\\Temp\\pip-install-ynt_dbm4\\python-levenshtein_c02e7e6f9def4629a475349654670ae9\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\VKC~1\AppData\Local\Temp\pip-record-v7l7zitb\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\envs\env\Include\python-Levenshtein' Check the logs for full command output.
```
Here are conda and python versions:
```bat
(env) C:\testing\datasets>conda --version
conda 4.9.2
(env) C:\testing\datasets>python --version
Python 3.7.10
```
Please help me out. Thanks.
Hi @gchhablani,
There are some 3rd-party dependencies that require to build code in C. In this case, it is the library `python-Levenshtein`.
On Windows, in order to be able to build C code, you need to install at least `Microsoft C++ Build Tools` version 14. You can find more info here: https://visualstudio.microsoft.com/visual-cpp-build-tools/ | [
0.07005234807729721,
0.09760957956314087,
-0.11216267198324203,
-0.1518246978521347,
0.10099837183952332,
0.16031627357006073,
0.09502676874399185,
-0.07332377135753632,
-0.13490484654903412,
0.304951548576355,
0.0637664943933487,
0.00577067956328392,
-0.06498544663190842,
-0.05760401859879494,
0.04387206211686134,
-0.01603221334517002,
-0.21396753191947937,
-0.013555917888879776,
-0.017516708001494408,
0.1119048073887825,
0.004199851304292679,
0.08111046999692917,
-0.00896636676043272,
-0.1728067547082901,
0.12932825088500977,
-0.2454472929239273,
-0.05710054934024811,
0.01863911934196949,
-0.015825223177671432,
-0.010005215182900429,
0.22927214205265045,
0.023684965446591377,
0.14218975603580475,
0.24429818987846375,
0.0000051531442295527086,
-0.008178581483662128,
0.12255280464887619,
0.12552809715270996,
0.022695032879710197,
-0.13533835113048553,
-0.049260348081588745,
0.04902224987745285,
-0.027357283979654312,
-0.01728801243007183,
0.008834482170641422,
-0.09918240457773209,
-0.04127931967377663,
-0.1284865289926529,
-0.05062954127788544,
0.1253633201122284,
0.09728439152240753,
-0.03157505765557289,
0.029383068904280663,
0.02248840592801571,
0.008233878761529922,
-0.06926912814378738,
-0.023172171786427498,
0.13759273290634155,
-0.1242552250623703,
-0.09389308094978333,
0.10571011155843735,
-0.039555251598358154,
0.11426658928394318,
0.001193675328977406,
-0.08660566061735153,
0.05249226838350296,
0.2263985425233841,
0.016650445759296417,
-0.03684163838624954,
0.32318979501724243,
-0.030369624495506287,
0.05537809804081917,
-0.2069823294878006,
-0.02265976183116436,
-0.048501431941986084,
-0.1916818469762802,
0.09020710736513138,
0.13190773129463196,
-0.14330607652664185,
0.1077592521905899,
-0.08571520447731018,
0.0351686105132103,
-0.07838784158229828,
-0.08271849900484085,
0.11388516426086426,
-0.04087337851524353,
-0.16452646255493164,
0.04217968508601189,
-0.057135194540023804,
-0.15184752643108368,
0.07215536385774612,
-0.023683933541178703,
0.08236037939786911,
-0.0813681110739708,
0.1688566952943802,
0.07558053731918335,
-0.05553838983178139,
0.026291757822036743,
-0.02413717843592167,
0.051375944167375565,
-0.2697809040546417,
-0.15033088624477386,
0.17549781501293182,
0.2167130559682846,
-0.0726560577750206,
0.10805881768465042,
-0.0391959622502327,
-0.010584460571408272,
-0.03494131565093994,
-0.09504708647727966,
0.04809098318219185,
0.17419053614139557,
-0.14238891005516052,
-0.21740910410881042,
-0.062092993408441544,
0.08491530269384384,
0.07716359943151474,
-0.05373869091272354,
-0.16030557453632355,
0.1036807969212532,
-0.13456587493419647,
0.10872403532266617,
0.08703106641769409,
0.08591807633638382,
0.03113459050655365,
-0.07436157017946243,
-0.13049952685832977,
0.20125579833984375,
-0.009679967537522316,
0.16159306466579437,
0.06113085150718689,
0.06693920493125916,
-0.08541124314069748,
-0.13646598160266876,
0.25967317819595337,
0.09266453236341476,
0.10484249889850616,
-0.1522115170955658,
0.10583729296922684,
0.2249375730752945,
-0.02528565004467964,
-0.047557469457387924,
-0.0563095323741436,
0.017102457582950592,
0.1572326421737671,
0.050852220505476,
-0.04745309427380562,
-0.15494491159915924,
-0.07774410396814346,
0.06779763102531433,
-0.06187344714999199,
0.09673792868852615,
-0.04009396210312843,
-0.07336390763521194,
-0.035026706755161285,
0.07416529208421707,
0.068594790995121,
-0.13124819099903107,
-0.07403594255447388,
-0.07187609374523163,
0.06367120146751404,
-0.06395607441663742,
-0.01818382740020752,
-0.06866023689508438,
0.2996780276298523,
0.1580468863248825,
0.05388567969202995,
0.06565211713314056,
-0.05875636637210846,
0.037998415529727936,
0.10886872559785843,
0.14721836149692535,
0.05717768892645836,
0.10319541394710541,
-0.11253732442855835,
0.014047295786440372,
-0.15101303160190582,
-0.11684418469667435,
-0.18472716212272644,
0.11144508421421051,
0.19080303609371185,
-0.11905937641859055,
0.10737114399671555,
-0.13776147365570068,
0.22652459144592285,
0.09966512024402618,
-0.09299426525831223,
-0.11687740683555603,
-0.005007174797356129,
-0.04399935528635979,
0.11069446802139282,
0.08968590199947357,
0.10817433893680573,
-0.06468392163515091,
0.027365457266569138,
-0.2636849284172058,
0.06019426882266998,
-0.07045423239469528,
-0.028501562774181366,
-0.09479402005672455,
0.07586777210235596,
-0.10758033394813538,
-0.03622071072459221,
-0.005995582789182663,
-0.00000511021789861843,
-0.06619829684495926,
-0.05111418664455414,
0.03174114599823952,
-0.06657032668590546,
-0.032602980732917786,
-0.2148316204547882,
-0.005919251125305891,
-0.021764632314443588,
0.023783031851053238,
0.054260991513729095,
-0.08972376585006714,
-0.1023554652929306,
-0.09336879104375839,
-0.02413231134414673,
0.07631926983594894,
0.033405695110559464,
0.28053686022758484,
0.10580216348171234,
0.10352754592895508,
-0.05478332191705704,
0.020136239007115364,
-0.06925149261951447,
-0.009068651124835014,
0.03515910729765892,
0.12610548734664917,
-0.2444889396429062,
0.043255969882011414,
0.013504663482308388,
-0.04617804288864136,
0.1172565296292305,
-0.19994762539863586,
-0.02792050503194332,
-0.21913787722587585,
0.002884061075747013,
-0.14621677994728088,
-0.025821011513471603,
0.0022105423267930746,
-0.06437522917985916,
0.08119868487119675,
-0.1381525695323944,
-0.09358222782611847,
-0.0638570711016655,
0.02877327986061573,
-0.00045269110705703497,
-0.04858359694480896,
0.1687610000371933,
-0.15040239691734314,
-0.10053703933954239,
0.11395981162786484,
0.13992749154567719,
0.0033135933335870504,
-0.08089954406023026,
-0.018252057954669,
0.01259553525596857,
-0.10976287722587585,
-0.027715478092432022,
0.14545689523220062,
-0.12309587746858597,
0.03891654685139656,
0.20205406844615936,
-0.12027575820684433,
0.12714651226997375,
-0.06398709863424301,
0.021252615377306938,
0.08054781705141068,
-0.31037604808807373,
0.04348975047469139,
-0.14168189465999603,
-0.03804662078619003,
0.1390570104122162,
-0.05550074204802513,
-0.06755175441503525,
0.033425021916627884,
0.05622154101729393,
0.09513214230537415,
-0.20201288163661957,
0.017804767936468124,
0.14539526402950287,
-0.11452746391296387,
-0.020265916362404823,
0.05935700610280037,
-0.23654435575008392,
-0.05213318392634392,
-0.11533668637275696,
-0.01616213656961918,
0.09548744559288025,
0.168512225151062,
0.17708802223205566,
-0.05377960205078125,
-0.11776906251907349,
0.021749457344412804,
0.1398581564426422,
-0.30835747718811035,
0.009659430012106895,
-0.0313374362885952,
-0.06338660418987274,
0.14870953559875488,
0.09709861874580383,
-0.03679727762937546,
0.1981259137392044,
0.07246999442577362,
0.2992415428161621,
0.2449457049369812,
-0.06428048014640808,
-0.15174703299999237,
0.06369736790657043,
-0.20664635300636292,
0.07377645373344421,
0.36242854595184326,
0.09504382312297821,
-0.11145641654729843,
-0.08457594364881516,
-0.032138075679540634,
0.03773559257388115,
0.038518983870744705,
-0.13887621462345123,
-0.06252162903547287,
0.036087725311517715,
0.06493233144283295,
-0.11384173482656479,
0.023158609867095947,
-0.33720749616622925,
0.0319545641541481,
-0.05631306767463684,
-0.11693622171878815,
-0.12479531019926071,
0.06496068835258484,
-0.244943305850029,
-0.11330372840166092,
-0.0032110235188156366,
-0.12049178779125214,
-0.18833212554454803,
0.12479769438505173,
0.22317777574062347,
0.006737891118973494,
0.004504553973674774,
0.10076328366994858,
-0.09365443140268326,
0.03635071590542793,
0.16420307755470276,
0.0109586575999856,
0.18265290558338165,
-0.06983877718448639,
-0.007394485175609589,
-0.26849856972694397,
0.09869410842657089,
0.13460543751716614,
0.07793015241622925,
-0.022132480517029762,
0.04485681280493736,
0.3053182065486908,
0.05105072632431984,
0.01412909384816885,
0.06448277086019516,
-0.038260601460933685,
0.1671329140663147,
0.03760400414466858,
0.07546425610780716,
0.13625092804431915,
0.0009443562594242394,
0.14319376647472382,
0.05707739293575287,
0.12453065812587738,
-0.001337740570306778,
0.03879283368587494,
0.0665486678481102,
-0.12873372435569763,
0.0586002916097641,
-0.03419441729784012,
0.08835934102535248,
-0.011590472422540188,
-0.19598327577114105,
0.1527525633573532,
0.1241491511464119,
-0.010073855519294739,
0.003594728885218501,
-0.0674113854765892,
-0.15421731770038605,
0.14923472702503204,
-0.04381105303764343,
0.008917028084397316,
-0.042311761528253555,
-0.04256594926118851,
-0.011317853815853596,
-0.16740933060646057,
0.13883204758167267,
-0.13138118386268616,
-0.07740503549575806,
-0.03901614993810654,
0.15749411284923553,
-0.19677282869815826,
0.26466137170791626,
0.012520788237452507,
0.18523328006267548,
0.04629991203546524,
-0.05070820078253746,
0.10694002360105515,
-0.08524371683597565,
0.05317790061235428,
0.011698528192937374,
0.028868574649095535,
-0.010859241709113121,
0.015141657553613186,
-0.04005829244852066,
-0.10923787951469421,
-0.05481307953596115,
0.05371682718396187,
-0.0048630572855472565,
0.09967180341482162,
0.1121940091252327,
0.04835600033402443,
0.01817435771226883,
-0.18636615574359894,
-0.04982594773173332,
-0.30746543407440186,
-0.11913058906793594,
-0.05319185182452202,
0.07166314125061035,
0.188452810049057,
-0.002051302930340171,
-0.018787169829010963,
0.01704409159719944,
0.22602349519729614,
0.159945547580719,
-0.0030054848175495863,
-0.07714980840682983,
-0.03733731061220169,
0.0486859492957592,
-0.008665625005960464,
0.022419771179556847,
-0.10264063626527786,
0.28261205554008484,
-0.10033581405878067,
-0.052621450275182724,
-0.06870534271001816,
-0.11078385263681412,
0.09419664740562439,
0.2957865595817566,
-0.01693796180188656,
-0.14566127955913544,
-0.08909843116998672,
-0.10574426501989365,
-0.009594290517270565,
-0.09631125628948212,
-0.05716874077916145,
0.10032487660646439,
0.08213318884372711,
-0.025366758927702904,
-0.1821230798959732,
0.18805785477161407,
0.018784713000059128,
0.11609955877065659,
-0.03732709586620331,
0.029611092060804367,
0.022904952988028526,
0.12411016970872879,
-0.08383823186159134,
-0.12856999039649963,
-0.0554952509701252,
0.17951171100139618,
-0.04708535969257355,
-0.009822685271501541,
-0.20455776154994965,
-0.10976438969373703,
0.11867760866880417,
-0.042066723108291626,
0.09256424754858017,
-0.19113335013389587,
0.10829413682222366,
-0.00014574987289961427,
-0.04896698519587517,
0.00418957881629467,
0.004271360579878092,
-0.014197944663465023,
0.10860776901245117,
0.12458165735006332,
-0.05635043978691101,
-0.05505198985338211,
-0.06565405428409576,
0.0553475022315979,
-0.02559318207204342,
0.0964440405368805,
-0.19508802890777588,
0.07640161365270615,
-0.2792133092880249,
-0.08314048498868942,
-0.022463062778115273,
-0.10715392231941223,
-0.0776776447892189,
0.16558115184307098,
-0.26236891746520996,
-0.009458273649215698,
0.19529370963573456,
0.016752371564507484,
0.15698453783988953,
0.04590965062379837,
-0.09197437018156052,
-0.0012191890273243189,
0.1542406976222992,
-0.08125116676092148,
-0.058204006403684616,
0.03762555122375488,
-0.031174952164292336,
-0.03432949632406235,
-0.32891878485679626,
-0.12340643256902695,
0.09570015221834183,
0.0818423256278038,
-0.17616605758666992,
-0.030499421060085297,
-0.09491613507270813,
0.17552702128887177,
0.02752038836479187,
-0.14557211101055145,
0.27875784039497375,
0.02264130674302578,
-0.13552457094192505,
0.029683321714401245,
-0.08894501626491547,
0.14049503207206726,
-0.08040844649076462,
-0.11718860268592834,
0.16906523704528809,
0.007622730452567339,
-0.07213546335697174,
0.08320147544145584,
0.2786512076854706,
0.13434413075447083,
-0.09403335303068161,
-0.19750283658504486,
0.10197483003139496,
-0.007135757245123386,
-0.028780924156308174,
0.16100262105464935,
0.11946363747119904,
0.15269504487514496,
0.028411660343408585,
-0.1326194554567337,
0.05241888388991356,
0.06569823622703552,
0.15176646411418915,
0.07034417986869812,
-0.10573483258485794,
-0.18595491349697113,
-0.14027796685695648,
-0.10012723505496979,
0.10869763046503067,
0.15057413280010223,
0.02799075096845627,
-0.018745869398117065,
-2.1969157754615347e-32,
-0.020534101873636246,
0.10675127804279327,
0.03580426797270775,
-0.000028015558200422674,
-0.2139182686805725,
-0.0008045847062021494,
-0.1028897762298584,
0.07036776840686798,
-0.08926767110824585,
-0.02898145094513893,
-0.039667852222919464,
0.1127597764134407,
-0.06300454586744308,
-0.005830794107168913,
0.041244130581617355,
0.0902627483010292,
-0.16384975612163544,
-0.12637540698051453,
0.13016223907470703,
0.06882064789533615,
0.02528534084558487,
0.026338571682572365,
0.10941659659147263,
0.02246590331196785,
-0.0465150810778141,
-0.010716773569583893,
-0.15873093903064728,
-0.040312618017196655,
0.0946412980556488,
-0.030212409794330597,
0.10222596675157547,
0.06594772636890411,
0.13802705705165863,
-0.253050297498703,
-0.11420208215713501,
-0.07558109611272812,
-0.10170266777276993,
-0.2348204106092453,
-0.19530844688415527,
0.06214645504951477,
-0.10230354964733124,
0.031366199254989624,
0.11431242525577545,
0.028849981725215912,
0.003132309066131711,
0.15586495399475098,
0.10647080838680267,
-0.02679312601685524,
0.06253262609243393,
-0.0690806582570076,
-0.19592992961406708,
-0.08992145210504532,
-0.15614169836044312,
0.12279718369245529,
0.09423061460256577,
0.07311845570802689,
-0.23257119953632355,
0.14599233865737915,
-0.08334007114171982,
0.10647189617156982,
0.06295724213123322,
-0.07384699583053589,
-0.04887368530035019,
-0.03100869059562683,
0.1041184738278389,
0.12387549132108688,
0.4506981372833252,
-0.0013420176692306995,
0.04130743816494942,
0.05919346958398819,
0.13295580446720123,
0.034487392753362656,
-0.010225203819572926,
0.0005810247967019677,
-0.1973140835762024,
0.1006060242652893,
-0.3958510160446167,
0.13672949373722076,
0.1272418349981308,
-0.059101298451423645,
0.023048844188451767,
-0.09097519516944885,
-0.0384482815861702,
-0.05457182228565216,
-0.028095826506614685,
-0.006649077869951725,
-0.10717213153839111,
0.05089779570698738,
-0.14391078054904938,
0.007703022100031376,
-0.17744189500808716,
0.1258036345243454,
0.00793981458991766,
-0.11972863972187042,
-0.09121047705411911,
0.22676166892051697,
-0.03715084120631218,
-0.13145624101161957,
-0.09101822227239609,
-0.055573467165231705,
-0.17146992683410645,
0.0006657634512521327,
-0.054318808019161224,
0.10616160184144974,
0.265203058719635,
-0.07411599904298782,
-0.07492870092391968,
-0.07005254179239273,
-0.19519095122814178,
0.026759188622236252,
-0.0037934435531497,
-0.003811962902545929,
0.2137153297662735,
0.01924288272857666,
0.15247638523578644,
-0.11759181320667267,
0.051369909197092056,
-0.034994181245565414,
0.1592557430267334,
-0.044006332755088806,
0.03111782856285572,
-0.0021471260115504265,
-0.10476895421743393,
0.13800156116485596,
0.12086976319551468,
-0.05120245739817619,
-0.019375545904040337,
-0.08641450852155685,
-0.05149273946881294,
0.10584521293640137,
0.0009438318083994091,
-0.13211998343467712,
6.406614829757018e-7,
-0.35798579454421997,
0.0723632425069809,
0.07890922576189041,
-0.00949107576161623,
-0.09254888445138931,
0.07163567841053009,
-0.17207668721675873,
0.016978003084659576,
-0.03385372459888458,
0.01573917083442211,
0.044633783400058746,
-0.11557720601558685,
-0.09170432388782501,
0.03303547948598862,
0.037627480924129486,
-0.05492134764790535,
0.010877980850636959,
0.2750455141067505,
0.040422406047582626,
0.22775594890117645,
0.1379009336233139,
0.19352738559246063,
0.18707743287086487,
-0.01698988862335682,
-0.0012673146557062864,
-0.02860916033387184,
-0.17571410536766052,
-0.06867356598377228,
0.11473021656274796,
0.0017521169502288103,
-0.15458928048610687,
0.023665500804781914,
-0.14280159771442413,
0.1580396443605423,
-0.019772984087467194,
-0.10235825926065445,
-0.07592503726482391,
-0.025230547413229942,
0.0861474797129631,
0.06749922037124634,
-0.019322996959090233,
0.02519822120666504,
-0.09978695958852768,
-0.0354887954890728,
0.2167186290025711,
0.09254244714975357,
-0.04127040505409241,
0.018550194799900055,
-0.10880482941865921,
0.13590729236602783,
0.04838943108916283,
0.15465165674686432,
-0.06455879658460617,
-0.010366788133978844,
-0.00932739395648241,
0.07842977344989777,
-0.1170465275645256,
-0.09391693025827408,
-0.005588746629655361,
0.11501887440681458,
0.011024395003914833,
-0.1137164756655693,
-0.14394742250442505,
-0.1830597072839737,
0.11404610425233841,
-0.030012575909495354,
-0.022836022078990936,
-1.0490832495382934e-34,
-0.023914938792586327,
-0.013095309026539326,
0.14535704255104065,
-0.14148014783859253,
-0.19803312420845032,
-0.08069834858179092,
0.2629004418849945,
-0.22018329799175262,
0.2257011979818344,
-0.05620698630809784,
-0.047041382640600204
] |
https://github.com/huggingface/datasets/issues/2300 | Add VoxPopuli | I'm happy to take this on:) One question: The original unlabelled data is stored unsegmented (see e.g. https://github.com/facebookresearch/voxpopuli/blob/main/voxpopuli/get_unlabelled_data.py#L30), but segmenting the audio in the dataset would require a dependency on something like soundfile or torchaudio. An alternative could be to provide the segments start and end times as a Sequence and then it's up to the user to perform the segmentation on-the-fly if they wish? | ## Adding a Dataset
- **Name:** Voxpopuli
- **Description:** VoxPopuli is raw data is collected from 2009-2020 European Parliament event recordings
- **Paper:** https://arxiv.org/abs/2101.00390
- **Data:** https://github.com/facebookresearch/voxpopuli
- **Motivation:** biggest unlabeled speech dataset
**Note**: Since the dataset is so huge, we should only add the config `10k` in the beginning.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 65 | Add VoxPopuli
## Adding a Dataset
- **Name:** Voxpopuli
- **Description:** VoxPopuli is raw data is collected from 2009-2020 European Parliament event recordings
- **Paper:** https://arxiv.org/abs/2101.00390
- **Data:** https://github.com/facebookresearch/voxpopuli
- **Motivation:** biggest unlabeled speech dataset
**Note**: Since the dataset is so huge, we should only add the config `10k` in the beginning.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
I'm happy to take this on:) One question: The original unlabelled data is stored unsegmented (see e.g. https://github.com/facebookresearch/voxpopuli/blob/main/voxpopuli/get_unlabelled_data.py#L30), but segmenting the audio in the dataset would require a dependency on something like soundfile or torchaudio. An alternative could be to provide the segments start and end times as a Sequence and then it's up to the user to perform the segmentation on-the-fly if they wish? | [
-0.1646355539560318,
0.14541155099868774,
-0.04890457168221474,
-0.06614523380994797,
0.14994704723358154,
-0.08944039791822433,
0.12981586158275604,
-0.04893643781542778,
-0.12730932235717773,
0.06939670443534851,
0.009711739607155323,
-0.00113921076990664,
-0.233147531747818,
0.13959689438343048,
0.09223082661628723,
-0.24559321999549866,
0.003560354933142662,
0.01521189697086811,
0.17192327976226807,
0.06157930940389633,
-0.10268788784742355,
0.030662931501865387,
0.0407695546746254,
-0.11880043894052505,
-0.043202728033065796,
-0.04530377313494682,
-0.26431015133857727,
0.03521762415766716,
-0.030290573835372925,
-0.0901709645986557,
-0.08080049604177475,
0.08220168948173523,
0.06529834866523743,
0.10632812976837158,
0.000005840270659973612,
-0.004416223149746656,
-0.0004258666012901813,
-0.057429756969213486,
0.015062949620187283,
-0.08845186978578568,
0.04875310882925987,
0.018317943438887596,
-0.17164617776870728,
0.014829385094344616,
0.10303939133882523,
-0.03339783474802971,
-0.040553636848926544,
-0.12170098721981049,
0.17009717226028442,
0.152767151594162,
-0.011545303277671337,
-0.028503503650426865,
0.07156836241483688,
-0.10833166539669037,
0.14761000871658325,
0.04301632195711136,
-0.16422806680202484,
0.024893062189221382,
0.05793462321162224,
0.06518121808767319,
0.0553802028298378,
0.04125828295946121,
-0.09170719981193542,
-0.012431278824806213,
0.09360448271036148,
0.028989756479859352,
-0.28273651003837585,
-0.17403221130371094,
0.02150387316942215,
0.10767628252506256,
0.18116246163845062,
0.07079590111970901,
0.17409612238407135,
0.0361151322722435,
-0.0911145955324173,
-0.3032701909542084,
-0.13425657153129578,
-0.023398371413350105,
-0.018831215798854828,
-0.0685265064239502,
0.09378994256258011,
-0.047994256019592285,
-0.002753183012828231,
-0.01572820357978344,
0.058985210955142975,
0.12592245638370514,
-0.004881569650024176,
-0.015895171090960503,
0.08877266943454742,
-0.030935944989323616,
-0.01863405480980873,
-0.1178584173321724,
-0.017786318436264992,
0.0695878341794014,
-0.016633635386824608,
-0.08288895338773727,
-0.0626673698425293,
-0.1289922297000885,
-0.010262507945299149,
0.027395358309149742,
-0.004207041580229998,
-0.09433634579181671,
-0.016505371779203415,
0.1838749349117279,
-0.011599946767091751,
-0.017657317221164703,
-0.06826315075159073,
0.07609151303768158,
-0.014828735962510109,
-0.0200812928378582,
-0.015756145119667053,
0.15957750380039215,
-0.06791102141141891,
-0.023380372673273087,
0.02678084559738636,
0.1190900132060051,
-0.11283434927463531,
0.09277816116809845,
-0.02974019944667816,
-0.029936499893665314,
0.05632970854640007,
-0.1929996907711029,
-0.013475097715854645,
0.08750583231449127,
0.033348213881254196,
-0.23329518735408783,
-0.08332332968711853,
0.0776836946606636,
-0.06364753097295761,
-0.03981688618659973,
0.04895254969596863,
0.11337064206600189,
0.11876428127288818,
0.04871101677417755,
0.24045437574386597,
-0.1153758242726326,
0.008067812770605087,
-0.058625973761081696,
-0.12680137157440186,
-0.047899190336465836,
-0.14373835921287537,
-0.012923212721943855,
-0.1497357040643692,
-0.03162241727113724,
0.0884980633854866,
-0.05270538479089737,
-0.09211418032646179,
0.38195452094078064,
-0.07039887458086014,
0.035887349396944046,
0.035783082246780396,
0.0019078440964221954,
-0.26254117488861084,
0.19742055237293243,
0.04219694063067436,
-0.038593851029872894,
-0.04445730894804001,
0.0016447148518636823,
-0.030670035630464554,
-0.10133867710828781,
0.04771725460886955,
0.09620268642902374,
-0.04000410810112953,
0.11331027001142502,
0.03667078912258148,
0.19836315512657166,
-0.195870041847229,
-0.0491236075758934,
-0.10865282267332077,
0.0839846283197403,
0.1136561706662178,
-0.14957541227340698,
0.08295734971761703,
-0.005775927100330591,
-0.06830305606126785,
0.016870351508259773,
-0.06042508780956268,
-0.13467000424861908,
-0.09730520099401474,
-0.08773130923509598,
-0.08561614155769348,
-0.2576821744441986,
0.10683686286211014,
0.02476663887500763,
0.23817668855190277,
0.08941283077001572,
0.11161325871944427,
0.18431667983531952,
0.013224179856479168,
-0.11274808645248413,
-0.07351738214492798,
0.019708910956978798,
0.11076132953166962,
-0.007898332551121712,
0.016675949096679688,
0.03996504470705986,
0.036757323890924454,
0.038181595504283905,
0.046422313898801804,
-0.15551356971263885,
0.13168218731880188,
0.007766841910779476,
0.21540917456150055,
-0.10368206351995468,
0.07645981758832932,
-0.2956024408340454,
0.05255553498864174,
-0.06084540858864784,
0.17490635812282562,
0.013023999519646168,
0.0989079400897026,
0.0111537529155612,
-0.14780771732330322,
-0.2809930443763733,
-0.13470977544784546,
0.07325705885887146,
-0.0012425280874595046,
-0.0043495730496943,
-0.02340957149863243,
0.09286289662122726,
-0.036770984530448914,
-0.19577528536319733,
0.12569177150726318,
0.0678236186504364,
0.013169070705771446,
0.06533900648355484,
-0.08281087130308151,
0.029879020527005196,
0.12170048803091049,
0.18999166786670685,
0.06999406963586807,
0.045935459434986115,
0.12353343516588211,
0.021542558446526527,
-0.01770058460533619,
-0.031179245561361313,
-0.009487269446253777,
-0.09054404497146606,
0.014699517749249935,
0.025089457631111145,
0.007545390632003546,
-0.046812206506729126,
-0.020063649863004684,
-0.1304725855588913,
-0.07732119411230087,
0.03366299346089363,
-0.005343597382307053,
0.012317716144025326,
0.035028018057346344,
-0.043970439583063126,
-0.03602274879813194,
-0.005278239957988262,
-0.03426247835159302,
0.06114709749817848,
0.024684665724635124,
-0.040478046983480453,
0.10242591053247452,
0.04401171952486038,
-0.05072113499045372,
-0.07624177634716034,
0.0459103100001812,
-0.1020524874329567,
-0.05936610698699951,
-0.024933941662311554,
-0.012759372591972351,
-0.09038583934307098,
0.011750368401408195,
-0.09380179643630981,
0.03274767845869064,
0.028035322204232216,
0.06089804694056511,
-0.028795883059501648,
-0.05953214690089226,
-0.11286979168653488,
0.043406665325164795,
-0.22227902710437775,
0.05193307623267174,
0.1317603439092636,
-0.009429080411791801,
-0.05656125396490097,
0.004933311138302088,
-0.00789355393499136,
0.025173265486955643,
-0.08009323477745056,
-0.04303152114152908,
-0.014526266604661942,
0.033041324466466904,
-0.12581871449947357,
0.03579225391149521,
-0.2426900416612625,
-0.03188040107488632,
0.04723944142460823,
0.19237573444843292,
-0.028537381440401077,
0.010374918580055237,
0.07490018755197525,
0.20620784163475037,
0.04734138399362564,
0.03191269934177399,
-0.07954724878072739,
-0.02501269057393074,
-0.059539422392845154,
0.2738116383552551,
0.16227789223194122,
-0.11281369626522064,
0.19677898287773132,
0.01315888948738575,
0.11259058117866516,
0.092476025223732,
-0.00035569060128182173,
0.07553419470787048,
-0.06330202519893646,
0.02737361565232277,
-0.06274300068616867,
-0.1527654081583023,
0.12514089047908783,
-0.04130422696471214,
-0.2111968845129013,
-0.17050233483314514,
0.07364186644554138,
0.054589077830314636,
-0.04182244837284088,
-0.11748721450567245,
-0.07953634113073349,
-0.0807991772890091,
-0.11560080200433731,
-0.31851375102996826,
-0.17634136974811554,
0.04695706441998482,
0.02481500245630741,
0.0793536901473999,
0.16322991251945496,
-0.05254322290420532,
-0.08656628429889679,
0.19074423611164093,
-0.06528197228908539,
-0.18494991958141327,
-0.05313124507665634,
0.12603242695331573,
-0.12876294553279877,
0.15909628570079803,
-0.020718220621347427,
-0.23398493230342865,
-0.03275641053915024,
-0.03605430945754051,
-0.010680833831429482,
0.14212164282798767,
-0.016545651480555534,
-0.13371574878692627,
0.015082511119544506,
0.04890984669327736,
0.24939845502376556,
0.06783384084701538,
0.06275313347578049,
-0.0936405211687088,
0.16540198028087616,
-0.13262484967708588,
0.19647885859012604,
-0.1777246594429016,
-0.0493311733007431,
0.005822163540869951,
0.01815641298890114,
0.26361483335494995,
0.06409269571304321,
-0.032577477395534515,
0.030924757942557335,
0.0753990113735199,
-0.004872710444033146,
-0.16499818861484528,
-0.09202011674642563,
0.2337334305047989,
0.019184675067663193,
-0.029371414333581924,
0.21808478236198425,
-0.02695469558238983,
-0.016397105529904366,
-0.01192126702517271,
-0.06858953088521957,
0.16556723415851593,
0.11007677763700485,
-0.02658095397055149,
-0.02577837184071541,
0.005413736682385206,
0.14458072185516357,
0.14574773609638214,
-0.05920417606830597,
-0.04747279733419418,
-0.015540034510195255,
-0.12056320905685425,
0.14291156828403473,
0.0671219751238823,
-0.14312252402305603,
0.13720057904720306,
-0.10493089258670807,
-0.16965653002262115,
-0.08134905248880386,
0.027862295508384705,
-0.02459813840687275,
0.011748147197067738,
0.0385875441133976,
0.2195490449666977,
-0.12112092226743698,
-0.05541156604886055,
-0.03407222032546997,
0.04395146295428276,
0.24232065677642822,
0.05955767259001732,
0.1443234384059906,
-0.06621808558702469,
0.011945007368922234,
0.07485407590866089,
0.034909408539533615,
-0.23331770300865173,
0.20398066937923431,
0.15244488418102264,
0.04989680275321007,
-0.02466586045920849,
0.050378698855638504,
0.11077983677387238,
0.07376998662948608,
-0.2020941972732544,
0.23649975657463074,
0.09167799353599548,
0.13152030110359192,
0.12339764833450317,
-0.06636261940002441,
0.17796513438224792,
-0.031550951302051544,
0.19460153579711914,
-0.06115446239709854,
0.03277122229337692,
0.14654691517353058,
0.08995328843593597,
0.05376053974032402,
-0.15692667663097382,
0.05294148251414299,
0.13176201283931732,
-0.14076891541481018,
-0.049433913081884384,
-0.20160165429115295,
-0.1363636702299118,
0.012018373236060143,
0.11321607977151871,
0.00026259548030793667,
0.03210260346531868,
0.09005869179964066,
-0.1926838755607605,
-0.08433208614587784,
-0.0514780730009079,
-0.010877215303480625,
-0.13283666968345642,
-0.3142668604850769,
-0.1613558679819107,
0.0008738117758184671,
0.0654391199350357,
-0.08964312821626663,
0.0736992210149765,
-0.031362004578113556,
-0.036305468529462814,
0.12392517179250717,
-0.05338386818766594,
-0.057045742869377136,
0.13021881878376007,
-0.11083883792161942,
0.06090225651860237,
0.2782183587551117,
0.25018519163131714,
-0.10596375167369843,
-0.020879196003079414,
-0.04421529918909073,
0.09563770145177841,
0.07396648079156876,
0.052959248423576355,
-0.06936702877283096,
0.30570873618125916,
-0.06971738487482071,
0.004645328037440777,
-0.1456979662179947,
0.09511081129312515,
-0.033156003803014755,
0.058379970490932465,
0.1771637350320816,
-0.10862487554550171,
0.1226230263710022,
-0.19892264902591705,
-0.09832655638456345,
0.0748094841837883,
0.04227517172694206,
-0.07023117691278458,
0.031484443694353104,
-0.05404260382056236,
-0.14199510216712952,
0.03691656142473221,
-0.07588456571102142,
-0.11849436163902283,
-0.05069253593683243,
0.04150541126728058,
0.024717170745134354,
0.021310720592737198,
0.0370246060192585,
-0.13963474333286285,
-0.07001501321792603,
0.07850698381662369,
0.0415220744907856,
-0.020279724150896072,
-0.00805011484771967,
0.035736050456762314,
0.052658673375844955,
0.031180206686258316,
-0.1131100058555603,
0.09283655881881714,
0.09628034383058548,
0.03033364936709404,
0.08416535705327988,
-0.15893276035785675,
-0.042566731572151184,
-0.09261829406023026,
0.012942485511302948,
0.09556417167186737,
0.09690560400485992,
-0.1266918182373047,
-0.02800973691046238,
0.06064440682530403,
-0.1268356293439865,
0.01925535872578621,
0.07147201150655746,
0.09069691598415375,
-0.12764804065227509,
-0.03143072873353958,
0.03748781234025955,
0.07993095368146896,
0.019722606986761093,
0.15893134474754333,
-0.004395659547299147,
-0.06513244658708572,
0.12437959760427475,
-0.08450215309858322,
-0.07070504128932953,
-0.0446104072034359,
-0.0029377806931734085,
0.014307224191725254,
0.003082731505855918,
-0.054740387946367264,
0.013110474683344364,
-0.0018436197424307466,
0.09990071505308151,
-0.0632065087556839,
-0.12779097259044647,
-0.14222268760204315,
-0.039269983768463135,
0.006197609473019838,
0.008024056442081928,
0.06052178889513016,
-0.12871824204921722,
0.1384555548429489,
-2.6841567145094343e-32,
-0.03382446989417076,
-0.11235561221837997,
-0.012312987819314003,
-0.11213427037000656,
-0.1624448299407959,
0.0012169580440968275,
0.09098312258720398,
-0.08816618472337723,
0.054296527057886124,
-0.10040316730737686,
0.16597214341163635,
-0.07161474227905273,
0.03561780974268913,
0.17431539297103882,
0.034511368721723557,
-0.00442856177687645,
0.05829276144504547,
0.029286719858646393,
-0.08981530368328094,
0.06074385344982147,
0.03438122943043709,
-0.046049948781728745,
0.05079223960638046,
-0.10525254905223846,
-0.20453768968582153,
-0.0012087458744645119,
-0.13420461118221283,
-0.042577531188726425,
-0.06658095121383667,
0.10063595324754715,
0.07474030554294586,
-0.03877443075180054,
-0.02256735973060131,
-0.01446108240634203,
0.010365292429924011,
0.2924324572086334,
0.02313380502164364,
0.17592622339725494,
-0.25515663623809814,
0.10291697829961777,
-0.002445672173053026,
0.03940518572926521,
-0.06404680013656616,
-0.04936118423938751,
0.30281367897987366,
0.050007160753011703,
0.022517316043376923,
-0.09296800941228867,
0.02399146370589733,
0.17983153462409973,
0.08398952335119247,
0.12438613176345825,
-0.01287295762449503,
-0.08054130524396896,
0.19249612092971802,
0.11975601315498352,
0.13851606845855713,
-0.07806146144866943,
-0.15289121866226196,
0.10133778303861618,
0.02925030328333378,
-0.03247416764497757,
0.03465883061289787,
0.04060705006122589,
-0.001322873984463513,
0.03611906245350838,
0.19474510848522186,
-0.05222790688276291,
0.07822609692811966,
0.1362437903881073,
-0.06557795405387878,
0.18193815648555756,
-0.018729394301772118,
-0.09347999095916748,
-0.035465508699417114,
0.030515823513269424,
-0.1615827977657318,
0.027378637343645096,
0.05751226097345352,
-0.2731460630893707,
-0.17097057402133942,
0.042143773287534714,
-0.0414421483874321,
0.029595941305160522,
-0.05869792401790619,
-0.15863186120986938,
-0.03134463354945183,
0.057552941143512726,
0.042086657136678696,
-0.041294727474451065,
-0.07819617539644241,
-0.12368116527795792,
-0.0714055672287941,
-0.0022100580390542746,
0.09693585336208344,
-0.21275515854358673,
-0.09753933548927307,
0.1232713907957077,
-0.02210376225411892,
-0.06389070302248001,
0.004010860342532396,
-0.13565191626548767,
0.2296992391347885,
-0.06135860085487366,
0.019497398287057877,
-0.018061429262161255,
0.051873382180929184,
0.18747243285179138,
-0.1625017523765564,
0.0009435219690203667,
0.11490526795387268,
0.11047191917896271,
0.02810550108551979,
0.15587463974952698,
0.13404050469398499,
-0.2118164747953415,
0.046168021857738495,
0.03673063591122627,
0.19739346206188202,
0.13989660143852234,
-0.17445215582847595,
-0.11168737709522247,
-0.17791955173015594,
-0.06030002236366272,
0.0929545983672142,
0.09304144233465195,
-0.06940396875143051,
-0.03801936283707619,
-0.0018949583172798157,
0.00007324410398723558,
-0.011320600286126137,
-0.10802076011896133,
7.350230930569523e-7,
-0.18505194783210754,
0.026372265070676804,
-0.12041442096233368,
-0.021745506674051285,
-0.0014561908319592476,
0.03588390722870827,
-0.12180456519126892,
0.01955065131187439,
-0.1773800253868103,
0.013432477600872517,
0.07580708712339401,
-0.2667907476425171,
0.0917162075638771,
0.09833585470914841,
-0.21933545172214508,
-0.013961602002382278,
-0.19888396561145782,
-0.038842540234327316,
-0.2707696855068207,
0.11052395403385162,
0.04902660846710205,
0.2224188596010208,
0.1289811134338379,
0.09317860007286072,
0.06844254583120346,
-0.039829954504966736,
-0.00963726919144392,
0.0978032723069191,
-0.155252605676651,
0.12707559764385223,
0.022733263671398163,
0.07381735742092133,
-0.14303740859031677,
0.11821988224983215,
-0.23561996221542358,
-0.08172502368688583,
0.10735081881284714,
0.046073660254478455,
0.035162072628736496,
-0.08094192296266556,
0.17101989686489105,
0.21411900222301483,
-0.05516539141535759,
0.050007760524749756,
-0.022426089271903038,
0.13467638194561005,
-0.08647002279758453,
0.019960816949605942,
-0.08472827076911926,
0.16631647944450378,
0.12265081703662872,
0.11424294114112854,
0.0058135357685387135,
-0.05394262820482254,
-0.07073263078927994,
0.10789185762405396,
0.04056103527545929,
0.07157336920499802,
0.05032365769147873,
0.1497720181941986,
-0.1216975525021553,
-0.09452897310256958,
-0.08388585597276688,
0.04520459845662117,
0.07415502518415451,
-0.012436207383871078,
0.03293383866548538,
1.4275049571929795e-34,
-0.028609449043869972,
-0.14021557569503784,
-0.05867043137550354,
-0.05628003925085068,
-0.02449399046599865,
0.024851901456713676,
0.013834687881171703,
-0.05877120420336723,
0.052298642694950104,
-0.013989106751978397,
-0.04744210094213486
] |