html_url
stringlengths
51
51
title
stringlengths
6
280
comments
stringlengths
67
24.7k
body
stringlengths
51
36.2k
__index_level_0__
int64
1
1.17k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
sequence
https://github.com/huggingface/datasets/issues/3606
audio column not saved correctly after resampling
Hi @lhoestq, Just tested the latest datasets version, and confirming that this is fixed for me. Thanks!
## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version:
995
17
audio column not saved correctly after resampling ## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version: Hi @lhoestq, Just tested the latest datasets version, and confirming that this is fixed for me. Thanks!
[ -1.3430960178375244, -1.1578905582427979, -0.758400559425354, 1.7860935926437378, -0.2986602187156677, -0.9259240031242371, 0.08126549422740936, -0.9642009735107422, 1.477781891822815, -0.602222204208374, 0.1990954577922821, -1.5646151304244995, -0.07825441658496857, -0.7650704383850098, -0.6334887146949768, -0.8066398501396179, -0.28156787157058716, -0.7911815643310547, 1.2543941736221313, 2.4462881088256836, 1.1958062648773193, -1.5060052871704102, 2.8199682235717773, 0.9077052474021912, -0.06301429867744446, -1.184325098991394, 0.4904230833053589, -0.15547677874565125, -1.079023838043213, -0.6414474844932556, -0.9128745198249817, -0.07344114780426025, -0.5633729100227356, -0.32170331478118896, -0.09691710025072098, 0.49820810556411743, -0.1995449662208557, -0.49904999136924744, -0.5528222322463989, -0.7585212588310242, 0.5088798999786377, -0.49490466713905334, 0.7111311554908752, -0.11676768958568573, 1.7680456638336182, -0.3094818890094757, 0.23172038793563843, 0.548053503036499, 1.4081120491027832, 0.21022437512874603, 0.07014701515436172, 0.4954385757446289, 0.4387800097465515, -0.05961953103542328, 0.631499171257019, 1.0773543119430542, 0.858514666557312, 0.3039611279964447, 0.8162190914154053, -2.4045095443725586, 1.0752240419387817, -1.2270989418029785, 0.44751930236816406, 1.450884222984314, -0.8702410459518433, 0.6455224752426147, -1.7018662691116333, 0.030936378985643387, 0.6897577047348022, -2.0922441482543945, 0.44178229570388794, -1.073960304260254, -0.34816139936447144, 0.919961154460907, 0.4482753276824951, -1.3309684991836548, 0.06858309358358383, -0.3372544050216675, 1.1092780828475952, 0.18314413726329803, 0.9137652516365051, -1.681897759437561, 0.10923423618078232, -0.24655155837535858, 0.049682486802339554, -1.2425274848937988, -1.4744272232055664, 0.3855125904083252, 0.3915659785270691, 0.6702761650085449, -0.1937275230884552, 1.1004670858383179, -1.206576943397522, 0.6289946436882019, -1.0880217552185059, -1.6558291912078857, -1.4454524517059326, -2.501321792602539, -2.1510939598083496, 0.6413002610206604, -0.3310721516609192, -0.5578584671020508, 1.9932262897491455, -0.8492835760116577, -1.7523348331451416, 1.3800232410430908, 0.42144569754600525, 0.07239381223917007, 2.5490267276763916, 0.13527865707874298, -0.7476987242698669, 0.503101110458374, -0.8896654844284058, 0.7335511445999146, -0.5415335893630981, 1.5490390062332153, 0.4036668837070465, -0.7925218343734741, 1.7040181159973145, -0.39598503708839417, 0.4908353090286255, -0.7276358604431152, -0.4032514691352844, -0.906934916973114, 0.4223387539386749, 1.8926852941513062, -0.11199668794870377, 1.3033541440963745, -0.5113908648490906, -1.4455534219741821, -1.5005288124084473, 1.0543897151947021, 0.29459062218666077, -0.9297149181365967, 0.2785308361053467, -0.43822699785232544, 0.3399461507797241, -0.17260313034057617, 1.1758508682250977, 1.2723802328109741, 0.4877123534679413, -0.33091944456100464, -0.9256730675697327, 0.1476026475429535, -0.27600428462028503, -0.5842220783233643, -1.7932454347610474, -0.229981929063797, 0.021629296243190765, 0.6934981346130371, -1.2990694046020508, 1.5173298120498657, 0.9275861978530884, 1.7921019792556763, 1.0772995948791504, -0.49385786056518555, 1.5776677131652832, 0.09258117526769638, 1.8406776189804077, -0.708808183670044, 0.6695214509963989, -0.3890286386013031, -1.1739801168441772, 0.8506205677986145, -0.20394723117351532, -2.0139577388763428, -0.8063947558403015, -0.8026085495948792, -0.37362122535705566, -0.8080605268478394, 0.8840048909187317, -0.504595160484314, -1.4409573078155518, 0.2756408154964447, -0.8915093541145325, 0.42224323749542236, -1.0215210914611816, 0.4706087112426758, 0.7394489049911499, -0.5240143537521362, 0.07339804619550705, -0.2784152030944824, -1.2460118532180786, -0.4997178316116333, 0.5348716378211975, 1.859958529472351, -0.8703423142433167, 0.5893303751945496, 1.0487196445465088, -0.5910202264785767, 0.0996752381324768, 0.24884402751922607, -0.18357209861278534, 0.8605244159698486, -1.0288057327270508, -0.8528387546539307, 1.2149791717529297, -0.31012657284736633, -0.5805702805519104, 1.324195146560669, 0.8273196220397949, -1.0588276386260986, -0.3500937223434448, -0.15727302432060242, -0.8552836179733276, 0.11901145428419113, -1.6104166507720947, -0.18447744846343994, 0.6088606119155884, -1.614598274230957, -0.4758565425872803, -0.2723398506641388, 1.3785393238067627, -0.04801133647561073, 1.4887844324111938, -0.41561123728752136, -0.0418071411550045, -0.09480762481689453, -0.3617539405822754, 0.3605520725250244, -0.27228838205337524, -0.5793043971061707, -0.02618444710969925, -0.8143740892410278, 0.47128814458847046, 1.4123557806015015, 0.3320038914680481, 0.09708285331726074, 0.6133859753608704, 1.1591728925704956, 0.5729011297225952, 0.2432561218738556, -0.7855472564697266, -1.534348726272583, 1.9168360233306885, -1.6965898275375366, 2.0758144855499268, 0.6174435019493103, 0.021865949034690857, -1.5298980474472046, -1.7659012079238892, 1.3732542991638184, 1.1503866910934448, 2.1854875087738037, 0.6526608467102051, 0.42525914311408997, -1.0455513000488281, -0.7254161238670349, 0.010101835243403912, -0.9195826649665833, -0.8300281763076782, 0.14334332942962646, 2.5832254886627197, 1.8961865901947021, -0.36006322503089905, -0.2201128751039505, -0.8898328542709351, 1.6352711915969849, -0.29603174328804016, 0.29050973057746887, 2.022756814956665, -0.057212863117456436, -1.0731950998306274, 1.1603198051452637, -2.6674692630767822, 0.2387199103832245, 2.0027034282684326, 0.39433103799819946, 0.27619850635528564, -1.401079773902893, -0.7501051425933838, -0.0881047397851944, -0.5019217133522034, -1.2753407955169678, 0.4564807713031769, -0.3533828854560852, -0.6948673725128174, -1.4469553232192993, 0.24090376496315002, -1.1066616773605347, -1.474818229675293, 0.20769567787647247, 1.935846209526062, 2.2258825302124023, -0.8418369293212891, 1.7657631635665894, -0.018292058259248734, 0.30574706196784973, 1.293196201324463, 1.2313073873519897, 2.84704852104187, 1.8694229125976562, -1.2482460737228394, 0.34142276644706726, -0.1952309012413025, -0.5017710328102112, 1.063983678817749, -1.1912089586257935, 1.2019422054290771, -0.03530032932758331, -1.14145028591156, -1.1760742664337158, 0.8660569190979004, 0.6282238960266113, -0.14014442265033722, -0.47069206833839417, 1.0606554746627808, -0.0909719243645668, 1.2563430070877075, 0.7282025218009949, -0.3347720503807068, 0.3825952410697937, -0.4188452661037445, -0.5687882304191589, 1.501287579536438, 0.032181836664676666, -1.354779839515686, -2.1071972846984863, -0.11888522654771805, -0.8328075408935547, -0.056706152856349945, -0.5683385133743286, -0.9702971577644348, 1.420332670211792, 0.21577681601047516, -1.0763765573501587, -0.21230070292949677, -0.2614442706108093, -0.44571253657341003, 2.7141847610473633, -1.3157093524932861, -0.5313762426376343, -0.9506816864013672, -0.6458051204681396, 1.6454102993011475, -1.0253045558929443, -0.2729240655899048, -1.1162763833999634, -0.6558843851089478, -1.261802315711975, -0.44986632466316223, 0.01331534143537283, -0.7859101295471191, 0.9282914996147156, 0.5168387293815613, -1.225268840789795, -0.3826412260532379, -0.9051085710525513, 0.9565157890319824, -0.09443997591733932, 0.1559194028377533, 1.7656413316726685, 0.33901089429855347, -0.36542314291000366, 1.0388023853302002, 1.1051360368728638, 0.6297974586486816, -0.5320218205451965, 0.2396644651889801, -0.45610859990119934, 0.3565252125263214, -1.3614201545715332, 0.30774566531181335, -2.8961520195007324, 0.5736068487167358, 0.09505200386047363, -0.08396951854228973, -0.04207605868577957, -1.3634757995605469, 1.1442234516143799, 2.3681817054748535, -1.1857490539550781, 0.6448615193367004, 0.34287479519844055, 1.4132269620895386, -1.9438406229019165, 0.2145768702030182, -0.3858200013637543, 2.141378402709961, 0.15955355763435364, 1.240092158317566, -0.4847399890422821, -2.6113290786743164, 0.4433988928794861, -1.4181921482086182, -1.029455304145813, 0.4226212203502655, -0.9587783217430115, 0.2045571357011795, -1.6890630722045898, -0.35849982500076294, -0.9672367572784424, -1.2215124368667603, 0.6636798977851868, 0.23992353677749634, 0.10499706864356995, -0.5070100426673889, 0.3845485746860504, -2.181382656097412, -1.4138025045394897, -0.08595932275056839, -0.834122359752655, 0.4981355667114258, -0.5442475080490112, 0.8066439628601074, -0.19451914727687836, -0.09039842337369919, 0.2554263174533844, 1.5215071439743042, 3.2836294174194336, 0.209462970495224, 0.5428584218025208, -0.259112685918808, -0.8583725690841675, 1.543647050857544, 0.8624324798583984, -0.23376332223415375, -0.48083925247192383, -1.2711292505264282, 1.5027241706848145, 1.8521502017974854, 0.9053514003753662, 0.05656047165393829, -0.6349638104438782, -0.5708805322647095, -0.09942507743835449, 0.35069817304611206, 0.5338123440742493, 0.8180361390113831, -0.19688524305820465, -0.11122790724039078, 1.3375475406646729, 1.0851194858551025, -0.5219195485115051, 0.2811504602432251, -0.8411389589309692, -0.4288996160030365, 0.5246690511703491, 0.019800491631031036, -0.23591358959674835, 0.2590125501155853, -0.9033349752426147, -0.1901378482580185, -0.3304922878742218, -0.778753399848938, -0.6661773324012756, -0.32869860529899597, -0.335851788520813, 1.4609440565109253, 0.5050926804542542, -0.6857286095619202, -0.22360895574092865, -0.7076573371887207, -0.15213069319725037, -1.0886019468307495, 0.05755481868982315, -0.13727958500385284, -0.23532676696777344, -0.29485467076301575, 1.742982029914856, -0.777239978313446, -2.1972529888153076, 0.017157670110464096, 0.4224356412887573, -0.022256281226873398, 0.364948570728302, 1.7805198431015015, 0.45627617835998535, 1.32094144821167, 1.299548864364624, 0.9879356622695923, -0.5389044284820557, -1.414388656616211, 0.7582183480262756, 1.2104253768920898, -1.3525258302688599, 0.7592605352401733, -0.0555121935904026, -0.4327162504196167, 0.5376050472259521, 1.4755326509475708, 0.4546879529953003, -2.015374183654785, 0.9014816880226135, -1.1560783386230469, 1.1192470788955688, 0.7252050638198853, 0.576947033405304, 0.3249194622039795, 0.8222624659538269, -1.2549318075180054, -1.1187384128570557, -0.7858166098594666, -0.819613516330719, 2.143669366836548, -0.34815531969070435, 0.5962302088737488, -0.08969760686159134, -1.3597391843795776, 0.06525658816099167, 0.6026601195335388, 0.22341293096542358, -0.5481542944908142, 0.8622098565101624, -0.8024275302886963, -1.3212599754333496, -1.2608401775360107, -0.4248541295528412, -0.9782891273498535, -1.0287606716156006, 1.126733660697937, 0.8109962940216064, -0.02494864910840988, 1.7642022371292114, 0.6797254085540771, 0.11569700390100479, -2.48065185546875, 0.8887943625450134, 0.2797505259513855, -0.11313275247812271, 0.6235178112983704, 0.43670952320098877, 1.1235541105270386, 0.2085075080394745, 0.5057421326637268, -2.412677526473999, 2.280900716781616, -0.11909105628728867, 0.8590611815452576, -0.17442743480205536, -0.07285597175359726, 1.1110721826553345, 0.5326666235923767, 0.5603265166282654, -0.7329139113426208, 0.5207827091217041, -0.48409509658813477, 1.3546066284179688, 1.025412917137146, -0.8393677473068237, -0.10308703035116196, 1.256073236465454, 0.27987444400787354, -0.7802035212516785, -0.9973540306091309, -0.8593765497207642, 0.9141483902931213, 1.6956943273544312, -0.009945474565029144, 0.058097049593925476, 0.7908076643943787, 0.5919962525367737, -1.1735936403274536, -0.002931518480181694, -0.5746617913246155, -0.6302162408828735, 1.8342305421829224, 1.9891269207000732, -0.4885697364807129, -0.2007002979516983, -0.5372680425643921, -1.4759197235107422, 0.6616749167442322, -0.17075303196907043, 0.12129420787096024, 0.6652854084968567, -0.587824821472168, 0.7810575366020203, 0.8255650997161865, 0.7780030369758606, 0.09830720722675323, 0.15714772045612335, 0.5201243758201599, -0.6134353280067444, -1.0422508716583252, -0.2594343423843384, -1.3812772035598755, -2.560638904571533, 0.2197120636701584, -0.06574501842260361, -1.1990493535995483, 0.15634183585643768, -0.9258977770805359, 1.2228938341140747, -0.5065923929214478, -1.229744553565979, -1.2586569786071777, 0.13761764764785767, 0.03192676231265068, 0.7709188461303711, -1.7975268363952637, -0.023101869970560074, 1.20368492603302, 0.8796184659004211, -0.7259921431541443, 0.9746967554092407, 0.2502473294734955, 1.2606244087219238, 0.6400160789489746, -0.27904000878334045, 0.522061824798584, -0.168930321931839, -1.33413565158844, 0.6080389022827148, 1.1158733367919922, 0.08668334037065506, 1.4666739702224731, -0.4965519607067108, -0.16731053590774536, 0.3332480192184448, -0.684642493724823, -0.4041692614555359, -0.22836235165596008, 0.5101929903030396, 0.005937126465141773, -0.6681131720542908, 0.004907530732452869, 0.09327412396669388, -0.3369303047657013, 0.021426599472761154, -1.5281380414962769, -0.1585598886013031, -0.5335057377815247, -0.38468560576438904, -1.2536286115646362, -0.19090241193771362, 1.224103331565857, -0.5108558535575867, -0.4407857358455658, 0.6200443506240845, 0.2643180191516876, 0.4868001639842987, 0.6305259466171265, -0.667980432510376, -0.3491010069847107, -0.013431146740913391, -0.3432682454586029, 0.24585172533988953, 1.4240080118179321, -0.12066685408353806, -0.955292820930481, 0.6740768551826477, -0.28427231311798096, 0.08840391039848328, 1.5291023254394531, -0.12061578780412674, -0.8359596729278564, 0.17606468498706818, -0.876312255859375, 1.9803136587142944, 1.5571123361587524, 1.3086761236190796, -0.4498601257801056, -0.7596820592880249, 0.7633724808692932, -0.5522134900093079, -0.464081734418869, 0.6805001497268677, 0.565571129322052, -0.19630391895771027, -1.430290937423706, 0.8573907017707825, 1.1640739440917969, -0.7084550261497498, -0.7930847406387329, 0.26508966088294983, -0.6613707542419434, 1.2189218997955322, 0.6152307391166687, 0.37314775586128235, 0.26683786511421204, 1.801771640777588, 0.8262246251106262, -0.5408809781074524, 0.6493972539901733, 0.5822327136993408, -0.3330822288990021, -2.1763031482696533, -1.2756720781326294, 0.15786628425121307, -0.49956685304641724, -1.6629098653793335, 1.2798908948898315, -1.017160177230835, -0.8613433241844177, 0.6654229164123535, 0.14262160658836365, 1.27811598777771, 0.5008267760276794, 1.3113981485366821, 1.959169864654541, 0.6014063358306885, 0.5642998218536377, 1.087039589881897, -0.14892518520355225, -0.4177355468273163, 1.7988255023956299, -0.24972209334373474, 0.5687621235847473, 1.1412842273712158, -0.20772439241409302, -1.2678194046020508, -0.6717470288276672, -1.3962520360946655, -0.6446495056152344, 1.1382890939712524, 0.12873299419879913, -1.0111191272735596, 0.2887234389781952, 1.5689181089401245, -0.02097228169441223, -0.5663111805915833, 0.7055771350860596, 0.3701438903808594, -0.8802386522293091, -0.028823476284742355, -0.8632286787033081, 0.43965664505958557, -0.26728910207748413, -0.20071129500865936, 0.4867044985294342, 0.43589547276496887, 1.4471702575683594, 0.15954448282718658, 0.22836579382419586, 0.9407135248184204, -1.3421036005020142, 1.5496325492858887, -0.8048701882362366, 0.44823163747787476, -2.2864935398101807, 1.3427152633666992, -0.6680173873901367, 2.0931460857391357, -2.7079834938049316, 0.5590811967849731, -0.6853843331336975, -0.499214231967926, 0.3329813480377197, -0.3015820384025574, -0.027576107531785965, -0.08909709751605988, -1.122780680656433, 0.23908424377441406, -0.4470844268798828, 0.3347005248069763, 1.3437308073043823, 1.1919209957122803, -1.0179237127304077, -0.14675261080265045, -1.759091854095459, -0.20975324511528015, -0.9110821485519409, 0.28762638568878174, -2.129215955734253, -0.4338964521884918, -1.8271369934082031, -2.022557020187378, -1.0482416152954102, -0.8272583484649658, 1.3377407789230347, 0.09275434166193008, -0.8466646075248718, 1.5271462202072144, -0.3652172386646271, -1.6384296417236328, 0.8934744000434875, -2.003497362136841 ]
https://github.com/huggingface/datasets/issues/3606
audio column not saved correctly after resampling
Also, just an FYI, data that I had saved (with save_to_disk) previously from common voice using datasets==1.17.0 now give the error below when loading (with load_from disk) using datasets==1.18.0. However, when starting fresh using load_dataset, then doing the resampling, the save/load_from disk worked fine. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <timed exec> in <module> /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_from_disk(dataset_path, fs, keep_in_memory) 1747 return Dataset.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory) 1748 elif fs.isfile(Path(dest_dataset_path, config.DATASETDICT_JSON_FILENAME).as_posix()): -> 1749 return DatasetDict.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory) 1750 else: 1751 raise FileNotFoundError( /opt/conda/lib/python3.7/site-packages/datasets/dataset_dict.py in load_from_disk(dataset_dict_path, fs, keep_in_memory) 769 else Path(dest_dataset_dict_path, k).as_posix() 770 ) --> 771 dataset_dict[k] = Dataset.load_from_disk(dataset_dict_split_path, fs, keep_in_memory=keep_in_memory) 772 return dataset_dict 773 /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in load_from_disk(dataset_path, fs, keep_in_memory) 1118 info=dataset_info, 1119 split=split, -> 1120 fingerprint=state["_fingerprint"], 1121 ) 1122 /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 655 if self.info.features.type != inferred_features.type: 656 raise ValueError( --> 657 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 658 ) 659 ValueError: External features info don't match the dataset: Got {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=48000, mono=True, id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} with type struct<accent: string, age: string, audio: struct<bytes: binary, path: string>, client_id: string, down_votes: int64, gender: string, locale: string, path: string, segment: string, sentence: string, up_votes: int64> but expected something like {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'path': Value(dtype='string', id=None), 'bytes': Value(dtype='binary', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} with type struct<accent: string, age: string, audio: struct<path: string, bytes: binary>, client_id: string, down_votes: int64, gender: string, locale: string, path: string, segment: string, sentence: string, up_votes: int64> ```
## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version:
995
290
audio column not saved correctly after resampling ## Describe the bug After resampling the audio column, saving with save_to_disk doesn't seem to save with the correct type. ## Steps to reproduce the bug - load a subset of common voice dataset (48Khz) - resample audio column to 16Khz - save with save_to_disk() - load with load_from_disk() ## Expected results I expected that after saving the data, and then loading it back in, the audio column has the correct dataset.Audio type (i.e. same as before saving it) {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Actual results Audio column does not have the right type {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='string', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: linux - Python version: - PyArrow version: Also, just an FYI, data that I had saved (with save_to_disk) previously from common voice using datasets==1.17.0 now give the error below when loading (with load_from disk) using datasets==1.18.0. However, when starting fresh using load_dataset, then doing the resampling, the save/load_from disk worked fine. ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <timed exec> in <module> /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_from_disk(dataset_path, fs, keep_in_memory) 1747 return Dataset.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory) 1748 elif fs.isfile(Path(dest_dataset_path, config.DATASETDICT_JSON_FILENAME).as_posix()): -> 1749 return DatasetDict.load_from_disk(dataset_path, fs, keep_in_memory=keep_in_memory) 1750 else: 1751 raise FileNotFoundError( /opt/conda/lib/python3.7/site-packages/datasets/dataset_dict.py in load_from_disk(dataset_dict_path, fs, keep_in_memory) 769 else Path(dest_dataset_dict_path, k).as_posix() 770 ) --> 771 dataset_dict[k] = Dataset.load_from_disk(dataset_dict_split_path, fs, keep_in_memory=keep_in_memory) 772 return dataset_dict 773 /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in load_from_disk(dataset_path, fs, keep_in_memory) 1118 info=dataset_info, 1119 split=split, -> 1120 fingerprint=state["_fingerprint"], 1121 ) 1122 /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 655 if self.info.features.type != inferred_features.type: 656 raise ValueError( --> 657 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 658 ) 659 ValueError: External features info don't match the dataset: Got {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=48000, mono=True, id=None), 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} with type struct<accent: string, age: string, audio: struct<bytes: binary, path: string>, client_id: string, down_votes: int64, gender: string, locale: string, path: string, segment: string, sentence: string, up_votes: int64> but expected something like {'accent': Value(dtype='string', id=None), 'age': Value(dtype='string', id=None), 'audio': {'path': Value(dtype='string', id=None), 'bytes': Value(dtype='binary', id=None)}, 'client_id': Value(dtype='string', id=None), 'down_votes': Value(dtype='int64', id=None), 'gender': Value(dtype='string', id=None), 'locale': Value(dtype='string', id=None), 'path': Value(dtype='string', id=None), 'segment': Value(dtype='string', id=None), 'sentence': Value(dtype='string', id=None), 'up_votes': Value(dtype='int64', id=None)} with type struct<accent: string, age: string, audio: struct<path: string, bytes: binary>, client_id: string, down_votes: int64, gender: string, locale: string, path: string, segment: string, sentence: string, up_votes: int64> ```
[ -1.3430960178375244, -1.1578905582427979, -0.758400559425354, 1.7860935926437378, -0.2986602187156677, -0.9259240031242371, 0.08126549422740936, -0.9642009735107422, 1.477781891822815, -0.602222204208374, 0.1990954577922821, -1.5646151304244995, -0.07825441658496857, -0.7650704383850098, -0.6334887146949768, -0.8066398501396179, -0.28156787157058716, -0.7911815643310547, 1.2543941736221313, 2.4462881088256836, 1.1958062648773193, -1.5060052871704102, 2.8199682235717773, 0.9077052474021912, -0.06301429867744446, -1.184325098991394, 0.4904230833053589, -0.15547677874565125, -1.079023838043213, -0.6414474844932556, -0.9128745198249817, -0.07344114780426025, -0.5633729100227356, -0.32170331478118896, -0.09691710025072098, 0.49820810556411743, -0.1995449662208557, -0.49904999136924744, -0.5528222322463989, -0.7585212588310242, 0.5088798999786377, -0.49490466713905334, 0.7111311554908752, -0.11676768958568573, 1.7680456638336182, -0.3094818890094757, 0.23172038793563843, 0.548053503036499, 1.4081120491027832, 0.21022437512874603, 0.07014701515436172, 0.4954385757446289, 0.4387800097465515, -0.05961953103542328, 0.631499171257019, 1.0773543119430542, 0.858514666557312, 0.3039611279964447, 0.8162190914154053, -2.4045095443725586, 1.0752240419387817, -1.2270989418029785, 0.44751930236816406, 1.450884222984314, -0.8702410459518433, 0.6455224752426147, -1.7018662691116333, 0.030936378985643387, 0.6897577047348022, -2.0922441482543945, 0.44178229570388794, -1.073960304260254, -0.34816139936447144, 0.919961154460907, 0.4482753276824951, -1.3309684991836548, 0.06858309358358383, -0.3372544050216675, 1.1092780828475952, 0.18314413726329803, 0.9137652516365051, -1.681897759437561, 0.10923423618078232, -0.24655155837535858, 0.049682486802339554, -1.2425274848937988, -1.4744272232055664, 0.3855125904083252, 0.3915659785270691, 0.6702761650085449, -0.1937275230884552, 1.1004670858383179, -1.206576943397522, 0.6289946436882019, -1.0880217552185059, -1.6558291912078857, -1.4454524517059326, -2.501321792602539, -2.1510939598083496, 0.6413002610206604, -0.3310721516609192, -0.5578584671020508, 1.9932262897491455, -0.8492835760116577, -1.7523348331451416, 1.3800232410430908, 0.42144569754600525, 0.07239381223917007, 2.5490267276763916, 0.13527865707874298, -0.7476987242698669, 0.503101110458374, -0.8896654844284058, 0.7335511445999146, -0.5415335893630981, 1.5490390062332153, 0.4036668837070465, -0.7925218343734741, 1.7040181159973145, -0.39598503708839417, 0.4908353090286255, -0.7276358604431152, -0.4032514691352844, -0.906934916973114, 0.4223387539386749, 1.8926852941513062, -0.11199668794870377, 1.3033541440963745, -0.5113908648490906, -1.4455534219741821, -1.5005288124084473, 1.0543897151947021, 0.29459062218666077, -0.9297149181365967, 0.2785308361053467, -0.43822699785232544, 0.3399461507797241, -0.17260313034057617, 1.1758508682250977, 1.2723802328109741, 0.4877123534679413, -0.33091944456100464, -0.9256730675697327, 0.1476026475429535, -0.27600428462028503, -0.5842220783233643, -1.7932454347610474, -0.229981929063797, 0.021629296243190765, 0.6934981346130371, -1.2990694046020508, 1.5173298120498657, 0.9275861978530884, 1.7921019792556763, 1.0772995948791504, -0.49385786056518555, 1.5776677131652832, 0.09258117526769638, 1.8406776189804077, -0.708808183670044, 0.6695214509963989, -0.3890286386013031, -1.1739801168441772, 0.8506205677986145, -0.20394723117351532, -2.0139577388763428, -0.8063947558403015, -0.8026085495948792, -0.37362122535705566, -0.8080605268478394, 0.8840048909187317, -0.504595160484314, -1.4409573078155518, 0.2756408154964447, -0.8915093541145325, 0.42224323749542236, -1.0215210914611816, 0.4706087112426758, 0.7394489049911499, -0.5240143537521362, 0.07339804619550705, -0.2784152030944824, -1.2460118532180786, -0.4997178316116333, 0.5348716378211975, 1.859958529472351, -0.8703423142433167, 0.5893303751945496, 1.0487196445465088, -0.5910202264785767, 0.0996752381324768, 0.24884402751922607, -0.18357209861278534, 0.8605244159698486, -1.0288057327270508, -0.8528387546539307, 1.2149791717529297, -0.31012657284736633, -0.5805702805519104, 1.324195146560669, 0.8273196220397949, -1.0588276386260986, -0.3500937223434448, -0.15727302432060242, -0.8552836179733276, 0.11901145428419113, -1.6104166507720947, -0.18447744846343994, 0.6088606119155884, -1.614598274230957, -0.4758565425872803, -0.2723398506641388, 1.3785393238067627, -0.04801133647561073, 1.4887844324111938, -0.41561123728752136, -0.0418071411550045, -0.09480762481689453, -0.3617539405822754, 0.3605520725250244, -0.27228838205337524, -0.5793043971061707, -0.02618444710969925, -0.8143740892410278, 0.47128814458847046, 1.4123557806015015, 0.3320038914680481, 0.09708285331726074, 0.6133859753608704, 1.1591728925704956, 0.5729011297225952, 0.2432561218738556, -0.7855472564697266, -1.534348726272583, 1.9168360233306885, -1.6965898275375366, 2.0758144855499268, 0.6174435019493103, 0.021865949034690857, -1.5298980474472046, -1.7659012079238892, 1.3732542991638184, 1.1503866910934448, 2.1854875087738037, 0.6526608467102051, 0.42525914311408997, -1.0455513000488281, -0.7254161238670349, 0.010101835243403912, -0.9195826649665833, -0.8300281763076782, 0.14334332942962646, 2.5832254886627197, 1.8961865901947021, -0.36006322503089905, -0.2201128751039505, -0.8898328542709351, 1.6352711915969849, -0.29603174328804016, 0.29050973057746887, 2.022756814956665, -0.057212863117456436, -1.0731950998306274, 1.1603198051452637, -2.6674692630767822, 0.2387199103832245, 2.0027034282684326, 0.39433103799819946, 0.27619850635528564, -1.401079773902893, -0.7501051425933838, -0.0881047397851944, -0.5019217133522034, -1.2753407955169678, 0.4564807713031769, -0.3533828854560852, -0.6948673725128174, -1.4469553232192993, 0.24090376496315002, -1.1066616773605347, -1.474818229675293, 0.20769567787647247, 1.935846209526062, 2.2258825302124023, -0.8418369293212891, 1.7657631635665894, -0.018292058259248734, 0.30574706196784973, 1.293196201324463, 1.2313073873519897, 2.84704852104187, 1.8694229125976562, -1.2482460737228394, 0.34142276644706726, -0.1952309012413025, -0.5017710328102112, 1.063983678817749, -1.1912089586257935, 1.2019422054290771, -0.03530032932758331, -1.14145028591156, -1.1760742664337158, 0.8660569190979004, 0.6282238960266113, -0.14014442265033722, -0.47069206833839417, 1.0606554746627808, -0.0909719243645668, 1.2563430070877075, 0.7282025218009949, -0.3347720503807068, 0.3825952410697937, -0.4188452661037445, -0.5687882304191589, 1.501287579536438, 0.032181836664676666, -1.354779839515686, -2.1071972846984863, -0.11888522654771805, -0.8328075408935547, -0.056706152856349945, -0.5683385133743286, -0.9702971577644348, 1.420332670211792, 0.21577681601047516, -1.0763765573501587, -0.21230070292949677, -0.2614442706108093, -0.44571253657341003, 2.7141847610473633, -1.3157093524932861, -0.5313762426376343, -0.9506816864013672, -0.6458051204681396, 1.6454102993011475, -1.0253045558929443, -0.2729240655899048, -1.1162763833999634, -0.6558843851089478, -1.261802315711975, -0.44986632466316223, 0.01331534143537283, -0.7859101295471191, 0.9282914996147156, 0.5168387293815613, -1.225268840789795, -0.3826412260532379, -0.9051085710525513, 0.9565157890319824, -0.09443997591733932, 0.1559194028377533, 1.7656413316726685, 0.33901089429855347, -0.36542314291000366, 1.0388023853302002, 1.1051360368728638, 0.6297974586486816, -0.5320218205451965, 0.2396644651889801, -0.45610859990119934, 0.3565252125263214, -1.3614201545715332, 0.30774566531181335, -2.8961520195007324, 0.5736068487167358, 0.09505200386047363, -0.08396951854228973, -0.04207605868577957, -1.3634757995605469, 1.1442234516143799, 2.3681817054748535, -1.1857490539550781, 0.6448615193367004, 0.34287479519844055, 1.4132269620895386, -1.9438406229019165, 0.2145768702030182, -0.3858200013637543, 2.141378402709961, 0.15955355763435364, 1.240092158317566, -0.4847399890422821, -2.6113290786743164, 0.4433988928794861, -1.4181921482086182, -1.029455304145813, 0.4226212203502655, -0.9587783217430115, 0.2045571357011795, -1.6890630722045898, -0.35849982500076294, -0.9672367572784424, -1.2215124368667603, 0.6636798977851868, 0.23992353677749634, 0.10499706864356995, -0.5070100426673889, 0.3845485746860504, -2.181382656097412, -1.4138025045394897, -0.08595932275056839, -0.834122359752655, 0.4981355667114258, -0.5442475080490112, 0.8066439628601074, -0.19451914727687836, -0.09039842337369919, 0.2554263174533844, 1.5215071439743042, 3.2836294174194336, 0.209462970495224, 0.5428584218025208, -0.259112685918808, -0.8583725690841675, 1.543647050857544, 0.8624324798583984, -0.23376332223415375, -0.48083925247192383, -1.2711292505264282, 1.5027241706848145, 1.8521502017974854, 0.9053514003753662, 0.05656047165393829, -0.6349638104438782, -0.5708805322647095, -0.09942507743835449, 0.35069817304611206, 0.5338123440742493, 0.8180361390113831, -0.19688524305820465, -0.11122790724039078, 1.3375475406646729, 1.0851194858551025, -0.5219195485115051, 0.2811504602432251, -0.8411389589309692, -0.4288996160030365, 0.5246690511703491, 0.019800491631031036, -0.23591358959674835, 0.2590125501155853, -0.9033349752426147, -0.1901378482580185, -0.3304922878742218, -0.778753399848938, -0.6661773324012756, -0.32869860529899597, -0.335851788520813, 1.4609440565109253, 0.5050926804542542, -0.6857286095619202, -0.22360895574092865, -0.7076573371887207, -0.15213069319725037, -1.0886019468307495, 0.05755481868982315, -0.13727958500385284, -0.23532676696777344, -0.29485467076301575, 1.742982029914856, -0.777239978313446, -2.1972529888153076, 0.017157670110464096, 0.4224356412887573, -0.022256281226873398, 0.364948570728302, 1.7805198431015015, 0.45627617835998535, 1.32094144821167, 1.299548864364624, 0.9879356622695923, -0.5389044284820557, -1.414388656616211, 0.7582183480262756, 1.2104253768920898, -1.3525258302688599, 0.7592605352401733, -0.0555121935904026, -0.4327162504196167, 0.5376050472259521, 1.4755326509475708, 0.4546879529953003, -2.015374183654785, 0.9014816880226135, -1.1560783386230469, 1.1192470788955688, 0.7252050638198853, 0.576947033405304, 0.3249194622039795, 0.8222624659538269, -1.2549318075180054, -1.1187384128570557, -0.7858166098594666, -0.819613516330719, 2.143669366836548, -0.34815531969070435, 0.5962302088737488, -0.08969760686159134, -1.3597391843795776, 0.06525658816099167, 0.6026601195335388, 0.22341293096542358, -0.5481542944908142, 0.8622098565101624, -0.8024275302886963, -1.3212599754333496, -1.2608401775360107, -0.4248541295528412, -0.9782891273498535, -1.0287606716156006, 1.126733660697937, 0.8109962940216064, -0.02494864910840988, 1.7642022371292114, 0.6797254085540771, 0.11569700390100479, -2.48065185546875, 0.8887943625450134, 0.2797505259513855, -0.11313275247812271, 0.6235178112983704, 0.43670952320098877, 1.1235541105270386, 0.2085075080394745, 0.5057421326637268, -2.412677526473999, 2.280900716781616, -0.11909105628728867, 0.8590611815452576, -0.17442743480205536, -0.07285597175359726, 1.1110721826553345, 0.5326666235923767, 0.5603265166282654, -0.7329139113426208, 0.5207827091217041, -0.48409509658813477, 1.3546066284179688, 1.025412917137146, -0.8393677473068237, -0.10308703035116196, 1.256073236465454, 0.27987444400787354, -0.7802035212516785, -0.9973540306091309, -0.8593765497207642, 0.9141483902931213, 1.6956943273544312, -0.009945474565029144, 0.058097049593925476, 0.7908076643943787, 0.5919962525367737, -1.1735936403274536, -0.002931518480181694, -0.5746617913246155, -0.6302162408828735, 1.8342305421829224, 1.9891269207000732, -0.4885697364807129, -0.2007002979516983, -0.5372680425643921, -1.4759197235107422, 0.6616749167442322, -0.17075303196907043, 0.12129420787096024, 0.6652854084968567, -0.587824821472168, 0.7810575366020203, 0.8255650997161865, 0.7780030369758606, 0.09830720722675323, 0.15714772045612335, 0.5201243758201599, -0.6134353280067444, -1.0422508716583252, -0.2594343423843384, -1.3812772035598755, -2.560638904571533, 0.2197120636701584, -0.06574501842260361, -1.1990493535995483, 0.15634183585643768, -0.9258977770805359, 1.2228938341140747, -0.5065923929214478, -1.229744553565979, -1.2586569786071777, 0.13761764764785767, 0.03192676231265068, 0.7709188461303711, -1.7975268363952637, -0.023101869970560074, 1.20368492603302, 0.8796184659004211, -0.7259921431541443, 0.9746967554092407, 0.2502473294734955, 1.2606244087219238, 0.6400160789489746, -0.27904000878334045, 0.522061824798584, -0.168930321931839, -1.33413565158844, 0.6080389022827148, 1.1158733367919922, 0.08668334037065506, 1.4666739702224731, -0.4965519607067108, -0.16731053590774536, 0.3332480192184448, -0.684642493724823, -0.4041692614555359, -0.22836235165596008, 0.5101929903030396, 0.005937126465141773, -0.6681131720542908, 0.004907530732452869, 0.09327412396669388, -0.3369303047657013, 0.021426599472761154, -1.5281380414962769, -0.1585598886013031, -0.5335057377815247, -0.38468560576438904, -1.2536286115646362, -0.19090241193771362, 1.224103331565857, -0.5108558535575867, -0.4407857358455658, 0.6200443506240845, 0.2643180191516876, 0.4868001639842987, 0.6305259466171265, -0.667980432510376, -0.3491010069847107, -0.013431146740913391, -0.3432682454586029, 0.24585172533988953, 1.4240080118179321, -0.12066685408353806, -0.955292820930481, 0.6740768551826477, -0.28427231311798096, 0.08840391039848328, 1.5291023254394531, -0.12061578780412674, -0.8359596729278564, 0.17606468498706818, -0.876312255859375, 1.9803136587142944, 1.5571123361587524, 1.3086761236190796, -0.4498601257801056, -0.7596820592880249, 0.7633724808692932, -0.5522134900093079, -0.464081734418869, 0.6805001497268677, 0.565571129322052, -0.19630391895771027, -1.430290937423706, 0.8573907017707825, 1.1640739440917969, -0.7084550261497498, -0.7930847406387329, 0.26508966088294983, -0.6613707542419434, 1.2189218997955322, 0.6152307391166687, 0.37314775586128235, 0.26683786511421204, 1.801771640777588, 0.8262246251106262, -0.5408809781074524, 0.6493972539901733, 0.5822327136993408, -0.3330822288990021, -2.1763031482696533, -1.2756720781326294, 0.15786628425121307, -0.49956685304641724, -1.6629098653793335, 1.2798908948898315, -1.017160177230835, -0.8613433241844177, 0.6654229164123535, 0.14262160658836365, 1.27811598777771, 0.5008267760276794, 1.3113981485366821, 1.959169864654541, 0.6014063358306885, 0.5642998218536377, 1.087039589881897, -0.14892518520355225, -0.4177355468273163, 1.7988255023956299, -0.24972209334373474, 0.5687621235847473, 1.1412842273712158, -0.20772439241409302, -1.2678194046020508, -0.6717470288276672, -1.3962520360946655, -0.6446495056152344, 1.1382890939712524, 0.12873299419879913, -1.0111191272735596, 0.2887234389781952, 1.5689181089401245, -0.02097228169441223, -0.5663111805915833, 0.7055771350860596, 0.3701438903808594, -0.8802386522293091, -0.028823476284742355, -0.8632286787033081, 0.43965664505958557, -0.26728910207748413, -0.20071129500865936, 0.4867044985294342, 0.43589547276496887, 1.4471702575683594, 0.15954448282718658, 0.22836579382419586, 0.9407135248184204, -1.3421036005020142, 1.5496325492858887, -0.8048701882362366, 0.44823163747787476, -2.2864935398101807, 1.3427152633666992, -0.6680173873901367, 2.0931460857391357, -2.7079834938049316, 0.5590811967849731, -0.6853843331336975, -0.499214231967926, 0.3329813480377197, -0.3015820384025574, -0.027576107531785965, -0.08909709751605988, -1.122780680656433, 0.23908424377441406, -0.4470844268798828, 0.3347005248069763, 1.3437308073043823, 1.1919209957122803, -1.0179237127304077, -0.14675261080265045, -1.759091854095459, -0.20975324511528015, -0.9110821485519409, 0.28762638568878174, -2.129215955734253, -0.4338964521884918, -1.8271369934082031, -2.022557020187378, -1.0482416152954102, -0.8272583484649658, 1.3377407789230347, 0.09275434166193008, -0.8466646075248718, 1.5271462202072144, -0.3652172386646271, -1.6384296417236328, 0.8934744000434875, -2.003497362136841 ]
https://github.com/huggingface/datasets/issues/3598
Readme info not being parsed to show on Dataset card page
i suspect a markdown parsing error, @severo do you want to take a quick look at it when you have some time?
## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully.
998
22
Readme info not being parsed to show on Dataset card page ## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully. i suspect a markdown parsing error, @severo do you want to take a quick look at it when you have some time?
[ -1.1686972379684448, -0.9188395142555237, -0.9231842756271362, 1.5109773874282837, -0.17175830900669098, -1.3260403871536255, 0.11855380237102509, -1.123905062675476, 1.5808448791503906, -0.7592137455940247, 0.2556160092353821, -1.7014713287353516, -0.09950146079063416, -0.6011108160018921, -0.6491587162017822, -1.00570809841156, -0.4800316393375397, -0.7764011025428772, 1.0262417793273926, 2.452265739440918, 1.1889525651931763, -1.400061011314392, 2.6730401515960693, 0.781634509563446, -0.2742846608161926, -1.1025153398513794, 0.5682687759399414, 0.09402768313884735, -1.2368541955947876, -0.5826631188392639, -0.9343133568763733, 0.021050769835710526, -0.5077274441719055, -0.4432585537433624, 0.04715341702103615, 0.352983295917511, -0.24781304597854614, -0.3336576819419861, -0.5172755718231201, -0.7847690582275391, 0.4735918641090393, -0.4868335723876953, 0.9120830297470093, -0.4738536477088928, 1.8078060150146484, -0.48330220580101013, 0.40210071206092834, 0.8243836760520935, 1.453322410583496, 0.159550741314888, -0.006292938254773617, 0.21251274645328522, 0.37011924386024475, -0.07419803738594055, 0.3439001739025116, 1.1495918035507202, 0.5449459552764893, 0.5453428626060486, 0.5645671486854553, -2.1403307914733887, 1.3192776441574097, -0.9193683862686157, 0.39517274498939514, 1.3922302722930908, -1.0213985443115234, 0.4206681251525879, -1.6469955444335938, -0.18132875859737396, 0.5196757912635803, -2.292511224746704, 0.25349897146224976, -1.138959288597107, -0.5280981063842773, 0.949085533618927, 0.3292894959449768, -1.129374623298645, 0.039007674902677536, -0.4974426329135895, 1.056503176689148, 0.5547245144844055, 1.1689900159835815, -1.526185154914856, 0.04841037094593048, -0.3084024488925934, -0.06749549508094788, -1.3654793500900269, -1.4134663343429565, 0.3548908233642578, 0.674072802066803, 0.6764860153198242, 0.004620115272700787, 0.8874878287315369, -0.8701058626174927, 0.8438319563865662, -0.7606645226478577, -1.667549729347229, -1.3973313570022583, -2.3173515796661377, -2.360790967941284, 0.7746521234512329, -0.6084098219871521, -0.5454480051994324, 2.1521096229553223, -1.0306321382522583, -1.8068839311599731, 1.0814887285232544, 0.20589718222618103, 0.0558597557246685, 2.4137704372406006, 0.19841279089450836, -0.733611524105072, 0.47641927003860474, -0.5582714676856995, 0.7719914317131042, -0.7136746048927307, 1.2867189645767212, 0.3832378387451172, -1.0456477403640747, 1.5948235988616943, -0.38027456402778625, 0.5805882215499878, -0.6811195015907288, -0.48119521141052246, -0.954872190952301, 0.3144837021827698, 1.7305346727371216, -0.3013496994972229, 1.6042892932891846, -0.3432632386684418, -1.5305086374282837, -1.6865863800048828, 0.9380199313163757, 0.540066659450531, -0.7714230418205261, 0.1989184021949768, -0.2886902391910553, -0.033771827816963196, 0.06092880293726921, 1.0514777898788452, 1.261899471282959, 0.58684241771698, -0.3009283244609833, -0.9052537083625793, 0.27043962478637695, 0.0006837593391537666, -0.5918871164321899, -1.738412618637085, -0.30314135551452637, 0.14060747623443604, 0.514096200466156, -1.305930733680725, 1.6935348510742188, 0.8791137337684631, 1.9699796438217163, 1.0657315254211426, -0.2224569469690323, 1.5402230024337769, 0.052978143095970154, 1.7754497528076172, -0.442426860332489, 0.7176922559738159, -0.29601749777793884, -1.1520525217056274, 0.7513207197189331, -0.4361264407634735, -1.9182536602020264, -0.8154149055480957, -0.9437466859817505, -0.11870910227298737, -0.5755460858345032, 1.105221152305603, -0.274138480424881, -1.1582609415054321, 0.25863000750541687, -0.6771262288093567, 0.09882175922393799, -1.4156736135482788, 0.39496666193008423, 0.7023704051971436, -0.5902390480041504, 0.023181263357400894, -0.3321194648742676, -1.2955067157745361, -0.3528239130973816, 0.3591284453868866, 1.8938989639282227, -0.9525972008705139, 0.9043058753013611, 0.9357894659042358, -0.8036608695983887, 0.1774199903011322, 0.3348429501056671, -0.3422418534755707, 0.8539429903030396, -1.0695717334747314, -0.301419734954834, 1.2044928073883057, -0.24817313253879547, -0.7980772852897644, 1.4560273885726929, 0.8175835609436035, -1.0043959617614746, -0.12389053404331207, -0.2692520022392273, -0.9320924282073975, -0.13041184842586517, -1.6277109384536743, -0.11146092414855957, 0.26463839411735535, -1.5616909265518188, -0.4433194398880005, -0.32199403643608093, 1.3183395862579346, -0.10134203732013702, 1.4253123998641968, -0.31676366925239563, -0.2480240762233734, -0.3986921012401581, -0.4895392656326294, 0.18423770368099213, -0.21599936485290527, -0.5918187499046326, 0.21900016069412231, -0.8054662346839905, 0.21840322017669678, 1.3409924507141113, 0.379056841135025, -0.01230098120868206, 0.7025750279426575, 0.9401566386222839, 0.2911783754825592, -0.17156648635864258, -0.8237733244895935, -1.5051499605178833, 2.0192463397979736, -1.3218145370483398, 1.900869607925415, 0.8617540597915649, -0.10571072995662689, -1.863289713859558, -1.8839819431304932, 1.2778533697128296, 1.2317826747894287, 2.234642744064331, 0.6361051797866821, 0.5058514475822449, -0.809290885925293, -0.689814567565918, 0.3285873532295227, -1.1704206466674805, -0.7195301055908203, -0.03476822003722191, 2.3386969566345215, 1.7262663841247559, -0.5076687335968018, -0.22682949900627136, -1.0198334455490112, 1.359234094619751, -0.16344794631004333, 0.14399532973766327, 2.011321783065796, -0.2893749475479126, -1.0599578619003296, 1.15413498878479, -2.3865554332733154, 0.07033570110797882, 2.0852861404418945, 0.23070453107357025, -0.011149635538458824, -1.4444206953048706, -0.6718923449516296, -0.1876063048839569, -0.4256746172904968, -1.2220412492752075, 0.6332122087478638, -0.3130951225757599, -0.8441216945648193, -1.5505841970443726, 0.160320445895195, -1.0578116178512573, -1.6902891397476196, 0.3709554374217987, 1.9369654655456543, 1.947380781173706, -0.8141375184059143, 1.5155693292617798, -0.10792326927185059, 0.1164267361164093, 1.2052569389343262, 1.1444134712219238, 3.195394277572632, 1.9931094646453857, -1.2196266651153564, 0.6405004858970642, -0.009496086277067661, -0.4528312683105469, 1.1437031030654907, -1.098684310913086, 1.2338035106658936, -0.265458881855011, -1.2890552282333374, -1.31156587600708, 0.9740158915519714, 0.4562198221683502, 0.06976722180843353, -0.4972549080848694, 1.339392066001892, 0.041853103786706924, 1.388841986656189, 0.49949708580970764, -0.4508453607559204, 0.5980978608131409, -0.4304864704608917, -0.5443040132522583, 1.5976033210754395, 0.22843438386917114, -1.483354091644287, -2.3709304332733154, -0.24962104856967926, -0.6584552526473999, -0.05317799374461174, -0.5996158123016357, -0.9497246146202087, 1.5352299213409424, 0.5128931999206543, -1.2693963050842285, -0.5003401637077332, -0.4054301083087921, -0.6114426851272583, 2.710585355758667, -1.535579800605774, -0.1966007649898529, -0.9467848539352417, -0.4223361611366272, 1.7424118518829346, -1.2240885496139526, -0.1363643854856491, -1.0153124332427979, -0.5908796191215515, -1.316211462020874, -0.6309821009635925, -0.021559463813900948, -0.9323239922523499, 0.8025359511375427, 0.1505567729473114, -1.1776041984558105, -0.05457523465156555, -0.8745808601379395, 0.8821786046028137, -0.08954282104969025, 0.26220598816871643, 1.8781615495681763, 0.47205761075019836, -0.40988415479660034, 0.7630946040153503, 1.1958259344100952, 0.5907028317451477, -0.6943755745887756, 0.054232168942689896, -0.7242090106010437, 0.26439037919044495, -1.383503794670105, 0.10292619466781616, -2.9652798175811768, 0.5978657007217407, -0.15408416092395782, -0.13668192923069, 0.03664938360452652, -1.276269793510437, 1.1875364780426025, 2.6217081546783447, -1.332100510597229, 0.4303357005119324, 0.26433509588241577, 1.174690842628479, -1.5754081010818481, 0.31035587191581726, -0.4078572392463684, 1.9584500789642334, 0.11548654735088348, 1.2449910640716553, -0.4801289439201355, -2.145397663116455, 0.6217987537384033, -1.2245734930038452, -1.194759488105774, 0.8639984726905823, -0.9555034637451172, 0.009950120002031326, -1.4550625085830688, -0.1097312718629837, -0.7482320666313171, -1.239274501800537, 0.7981853485107422, 0.17228877544403076, 0.44344785809516907, -0.6676488518714905, 0.3054143786430359, -2.108555316925049, -1.3336706161499023, -0.22374001145362854, -0.8961626887321472, 0.32054078578948975, -0.271138459444046, 0.6215125322341919, -0.28026083111763, 0.12977184355258942, 0.3788355886936188, 1.3364050388336182, 3.3873238563537598, 0.1420794427394867, 0.29119592905044556, -0.039409324526786804, -1.0132652521133423, 1.4922679662704468, 1.018001914024353, -0.1214737594127655, -0.5715323090553284, -0.9299384355545044, 1.3290557861328125, 1.9730420112609863, 1.0413936376571655, 0.11986427009105682, -0.9108004570007324, -0.5749378800392151, -0.07124138623476028, 0.2645930349826813, 0.5954892635345459, 0.9217630624771118, -0.035305507481098175, 0.00805465318262577, 1.5104416608810425, 1.2356688976287842, -0.36002564430236816, 0.4703262448310852, -0.8941567540168762, -0.4600478708744049, 0.37552589178085327, 0.38369882106781006, -0.09808900952339172, 0.35938870906829834, -1.0161383152008057, -0.2560994029045105, -0.31069836020469666, -0.9242645502090454, -0.754483163356781, -0.38778483867645264, -0.433227002620697, 1.6275335550308228, 0.1542307287454605, -0.5314807891845703, 0.02803530916571617, -0.8179124593734741, -0.07153564691543579, -1.041852593421936, 0.35744836926460266, -0.2093169093132019, -0.08447405695915222, -0.07649557292461395, 1.8759567737579346, -1.07227623462677, -2.0992798805236816, 0.35502687096595764, 0.2550821602344513, -0.2917712926864624, 0.20771059393882751, 1.6056220531463623, 0.5087136626243591, 1.4528840780258179, 1.3493757247924805, 1.0116426944732666, -0.7895717620849609, -1.2569959163665771, 0.7203664183616638, 1.0128881931304932, -1.4223699569702148, 0.6580615639686584, 0.0012070834636688232, -0.600064754486084, 0.6764867305755615, 1.169959545135498, 0.4554358422756195, -1.9398056268692017, 0.8618969321250916, -0.857388436794281, 0.799945592880249, 0.6431688070297241, 0.7847370505332947, 0.37641826272010803, 0.7074717879295349, -1.168612003326416, -1.1622555255889893, -0.8259943127632141, -0.6162528991699219, 1.8845294713974, -0.2468012124300003, 0.6855629682540894, -0.07745921611785889, -1.2208741903305054, -0.157140851020813, 0.6845266819000244, 0.2935587167739868, -0.33109524846076965, 0.8617507219314575, -0.6056072115898132, -1.2189756631851196, -1.513640284538269, -0.36030277609825134, -1.0315128564834595, -0.8336758017539978, 1.064511775970459, 0.8138155341148376, 0.27041542530059814, 1.8423702716827393, 0.5493546724319458, 0.1691867858171463, -2.7321789264678955, 0.9717561602592468, 0.33980634808540344, -0.05684696510434151, 0.840074360370636, 0.3819769024848938, 0.9751310348510742, 0.10369719564914703, 0.4187021851539612, -2.335721015930176, 2.2356319427490234, -0.20566709339618683, 0.6775575280189514, 0.021369952708482742, -0.1091298907995224, 1.1478936672210693, 0.503375232219696, 0.7181900143623352, -1.0617953538894653, 0.7745034098625183, -0.5633538365364075, 1.3081015348434448, 1.0631147623062134, -0.8661690354347229, -0.0025712070055305958, 1.4202284812927246, 0.567369818687439, -0.47438809275627136, -0.8757166266441345, -0.8431321382522583, 0.9469881057739258, 1.84083890914917, -0.019694752991199493, 0.011395663022994995, 0.7758575677871704, 0.5111287236213684, -1.366295576095581, 0.02113235555589199, -0.8071087002754211, -0.7196939587593079, 1.6206340789794922, 1.9709700345993042, -0.059290479868650436, -0.19384928047657013, -0.8322797417640686, -1.2162736654281616, 0.785473108291626, -0.1058696061372757, 0.0633559376001358, 0.7698867321014404, -0.6279289126396179, 1.0677741765975952, 0.7354896068572998, 0.8330932259559631, 0.08883991837501526, 0.27601590752601624, 0.4297073185443878, -0.29377204179763794, -1.1721370220184326, -0.17356374859809875, -1.0798622369766235, -2.4474568367004395, 0.4039137363433838, -0.34907346963882446, -1.3615978956222534, -0.026006294414401054, -1.1816641092300415, 0.9670854806900024, -0.5136339664459229, -1.0059391260147095, -1.573577642440796, 0.16457384824752808, -0.23749719560146332, 0.9159969687461853, -1.4835952520370483, -0.03695283085107803, 1.314213752746582, 0.8850315809249878, -0.7202197909355164, 1.0397528409957886, 0.24265779554843903, 1.0697219371795654, 0.785620927810669, -0.40502461791038513, 0.4534182846546173, 0.08687561750411987, -1.3189905881881714, 0.5776628255844116, 1.1583669185638428, 0.18695120513439178, 1.475146770477295, -0.6776028871536255, -0.01943475380539894, 0.44370925426483154, -0.4620358645915985, -0.3405536413192749, -0.49219265580177307, 0.7084327340126038, 0.1714733988046646, -1.0037869215011597, 0.10634338855743408, -0.29553309082984924, -0.3232930302619934, 0.1642799824476242, -1.5502431392669678, -0.25030699372291565, -0.23890964686870575, -0.5565817356109619, -1.2737159729003906, 0.16206815838813782, 1.3630203008651733, -0.7269701957702637, -0.16445238888263702, 0.5546753406524658, 0.31539037823677063, 0.6133288145065308, 0.60503089427948, -0.7750429511070251, -0.32418254017829895, -0.26304033398628235, -0.2644779086112976, 0.3201523423194885, 1.2939214706420898, -0.11482366919517517, -0.9447615742683411, 0.7465445399284363, -0.2849184572696686, -0.01801704429090023, 2.0021843910217285, 0.16296112537384033, -0.9400895237922668, 0.23916298151016235, -0.6851312518119812, 2.004166603088379, 1.63534677028656, 1.3354895114898682, -0.11586010456085205, -0.8573205471038818, 0.5242154598236084, -0.20725156366825104, -0.23403581976890564, 0.8895536661148071, 0.6021724343299866, -0.07539458572864532, -1.4133708477020264, 0.5045657157897949, 1.1959946155548096, -0.9191906452178955, -0.8984004855155945, 0.0309857577085495, -0.8059228658676147, 1.032386302947998, 0.7716807723045349, 0.45824992656707764, 0.17175337672233582, 1.60679030418396, 0.8226431012153625, -0.6386717557907104, 0.40726926922798157, 0.48249155282974243, -0.11963289976119995, -2.035545825958252, -0.9772472381591797, 0.43343424797058105, -0.34010550379753113, -1.5865449905395508, 1.3686186075210571, -1.2059746980667114, -0.9167492985725403, 0.5076866745948792, 0.09007079899311066, 1.5375005006790161, 0.24471981823444366, 1.4939543008804321, 1.992765188217163, 1.0619536638259888, 0.3221210539340973, 1.5147829055786133, -0.08970102667808533, -0.36268290877342224, 1.7926738262176514, -0.38978397846221924, 0.34297770261764526, 1.1014772653579712, -0.5390352010726929, -0.9617514610290527, -0.7316510081291199, -1.1049236059188843, -0.6213783621788025, 1.1134796142578125, 0.18989431858062744, -0.9971928596496582, 0.2215607911348343, 1.467381477355957, 0.2159375548362732, -0.4272897243499756, 0.6300535202026367, 0.4925117790699005, -0.7523872256278992, 0.012620346620678902, -0.8487491011619568, 0.5469399094581604, -0.16418999433517456, -0.42370641231536865, 0.38556501269340515, 0.3065278232097626, 1.3231685161590576, -0.042537275701761246, 0.19545356929302216, 1.192887783050537, -1.334701418876648, 1.53240168094635, -0.5304239988327026, 0.22277624905109406, -2.3928067684173584, 1.5158824920654297, -0.7111188173294067, 1.8798494338989258, -2.6129519939422607, 0.403372198343277, -0.592860758304596, -0.3471105098724365, 0.3769846558570862, -0.4143811762332916, 0.053715143352746964, -0.28880026936531067, -1.061089277267456, -0.10768768191337585, -0.7388730645179749, 0.5879119634628296, 1.120923399925232, 1.3080706596374512, -1.048330545425415, -0.3552664518356323, -1.7878843545913696, -0.19742724299430847, -0.6796236038208008, 0.4453583359718323, -2.0166752338409424, -0.20694969594478607, -1.9862287044525146, -2.3710215091705322, -1.3703073263168335, -0.723059892654419, 1.1720889806747437, 0.22393617033958435, -0.8716126680374146, 1.1655735969543457, -0.297720730304718, -1.7934281826019287, 1.074538230895996, -2.2633910179138184 ]
https://github.com/huggingface/datasets/issues/3598
Readme info not being parsed to show on Dataset card page
# Problem The issue seems to coming from the front matter of the README ```--- annotations_creators: - no-annotation language_creators: - machine-generated languages: - 'ca' - 'de' licenses: - cc-by-4.0 multilinguality: - translation pretty_name: Catalan-German aligned corpora to train NMT systems. size_categories: - "1M<n<10M" source_datasets: - extended|tilde_model task_categories: - machine-translation task_ids: - machine-translation --- ``` # Solution The fix is to correctly style the README as explained [here](https://huggingface.co/docs/datasets/v1.12.0/dataset_card.html). I have also correctly parsed the font matter as shown below: ``` --- annotations_creators: [] language_creators: [machine-generated] languages: ['ca', 'de'] licenses: [] multilinguality: - multilingual pretty_name: 'Catalan-German aligned corpora to train NMT systems.' size_categories: - 1M<n<10M source_datasets: ['extended|tilde_model'] task_categories: ['machine-translation'] task_ids: ['machine-translation'] --- ``` You can find the README for a sample dataset [here](https://huggingface.co/datasets/ritwikraha/Test)
## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully.
998
121
Readme info not being parsed to show on Dataset card page ## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully. # Problem The issue seems to coming from the front matter of the README ```--- annotations_creators: - no-annotation language_creators: - machine-generated languages: - 'ca' - 'de' licenses: - cc-by-4.0 multilinguality: - translation pretty_name: Catalan-German aligned corpora to train NMT systems. size_categories: - "1M<n<10M" source_datasets: - extended|tilde_model task_categories: - machine-translation task_ids: - machine-translation --- ``` # Solution The fix is to correctly style the README as explained [here](https://huggingface.co/docs/datasets/v1.12.0/dataset_card.html). I have also correctly parsed the font matter as shown below: ``` --- annotations_creators: [] language_creators: [machine-generated] languages: ['ca', 'de'] licenses: [] multilinguality: - multilingual pretty_name: 'Catalan-German aligned corpora to train NMT systems.' size_categories: - 1M<n<10M source_datasets: ['extended|tilde_model'] task_categories: ['machine-translation'] task_ids: ['machine-translation'] --- ``` You can find the README for a sample dataset [here](https://huggingface.co/datasets/ritwikraha/Test)
[ -1.2161000967025757, -0.8169951438903809, -0.805944561958313, 1.534591555595398, -0.06292217969894409, -1.3639832735061646, 0.055866412818431854, -0.9962313771247864, 1.647753357887268, -0.6916386485099792, 0.3125935196876526, -1.6750051975250244, -0.03523848205804825, -0.6807298064231873, -0.7643170356750488, -0.817807137966156, -0.3942524492740631, -0.711113452911377, 1.066706657409668, 2.3663344383239746, 1.2929370403289795, -1.46511709690094, 2.7295613288879395, 0.723686695098877, -0.18292048573493958, -0.9769671559333801, 0.4857989549636841, -0.004753720946609974, -1.3859318494796753, -0.4262408912181854, -0.8996289968490601, -0.03703623265028, -0.5699090361595154, -0.5178330540657043, 0.05563804507255554, 0.4654054045677185, -0.2120310366153717, -0.510617733001709, -0.5517496466636658, -0.7612961530685425, 0.45792749524116516, -0.3150172829627991, 0.8751899600028992, -0.3672190010547638, 1.7523479461669922, -0.5520536303520203, 0.3788025975227356, 0.6793217062950134, 1.3694467544555664, 0.15514811873435974, 0.009955015033483505, 0.3383667469024658, 0.2858133912086487, 0.0034742411226034164, 0.5338080525398254, 1.2100733518600464, 0.6664870381355286, 0.457125723361969, 0.8035998940467834, -2.256899118423462, 1.2433902025222778, -0.914551854133606, 0.3187069594860077, 1.3740352392196655, -1.0265655517578125, 0.39888572692871094, -1.7898226976394653, -0.03763876110315323, 0.56089848279953, -2.1659066677093506, 0.292815625667572, -1.2363773584365845, -0.48106127977371216, 0.947323203086853, 0.31143850088119507, -1.1760526895523071, 0.12085040658712387, -0.4456005394458771, 1.0349558591842651, 0.4501515328884125, 1.2365825176239014, -1.6487239599227905, 0.10239346325397491, -0.26451215147972107, 0.09275747835636139, -1.2216812372207642, -1.5382916927337646, 0.42117223143577576, 0.6530014872550964, 0.6450139284133911, -0.07641459256410599, 0.9065367579460144, -1.0425771474838257, 0.8458125591278076, -0.9557603597640991, -1.8181501626968384, -1.4453067779541016, -2.3049325942993164, -2.3071272373199463, 0.6690745949745178, -0.4646485149860382, -0.42497244477272034, 2.072376251220703, -0.9564254879951477, -1.7436704635620117, 1.053868293762207, 0.3716440200805664, 0.09590136259794235, 2.343493700027466, 0.14798861742019653, -0.8494126796722412, 0.5575348734855652, -0.7529752254486084, 0.6943544745445251, -0.47376003861427307, 1.2902240753173828, 0.33338508009910583, -0.9913531541824341, 1.6159567832946777, -0.3765932321548462, 0.6302633881568909, -0.7379176616668701, -0.4290972650051117, -0.6826192140579224, 0.1958417296409607, 1.8552846908569336, -0.2396869957447052, 1.509275197982788, -0.2965930700302124, -1.5295110940933228, -1.4823174476623535, 0.8563416600227356, 0.4888922870159149, -0.7759544253349304, 0.12720689177513123, -0.39878520369529724, 0.07797542959451675, -0.058538030833005905, 1.1007978916168213, 1.262225866317749, 0.689179003238678, -0.30515629053115845, -0.9040988683700562, 0.1445026397705078, -0.02586117759346962, -0.6735547184944153, -1.7527594566345215, -0.22544953227043152, 0.1987171173095703, 0.5449924468994141, -1.2641305923461914, 1.7779752016067505, 0.8307506442070007, 1.9794456958770752, 1.0114428997039795, -0.403519868850708, 1.5829468965530396, 0.07215794175863266, 1.863457441329956, -0.4434882700443268, 0.610205888748169, -0.30034586787223816, -1.1999475955963135, 0.8538019061088562, -0.38190922141075134, -2.0234360694885254, -0.6415094137191772, -0.8329121470451355, -0.18287959694862366, -0.7162778377532959, 1.0200202465057373, -0.2580357789993286, -1.3477983474731445, 0.2169751524925232, -0.7431362867355347, 0.12384883314371109, -1.2430567741394043, 0.23358923196792603, 0.7388503551483154, -0.5802838206291199, 0.1182398721575737, -0.382048100233078, -1.3779524564743042, -0.5202108025550842, 0.5194988250732422, 1.7549445629119873, -0.8222538232803345, 0.903791606426239, 1.0577841997146606, -0.6266735792160034, 0.09064650535583496, 0.3275112509727478, -0.3035951852798462, 0.861785352230072, -1.0573128461837769, -0.5390819311141968, 1.1466349363327026, -0.19550487399101257, -0.7021777033805847, 1.525937795639038, 0.7718121409416199, -0.9961546659469604, -0.22797074913978577, -0.11136563867330551, -0.9755040407180786, 0.005947750061750412, -1.6900416612625122, -0.08216942101716995, 0.30213505029678345, -1.6029256582260132, -0.4522670805454254, -0.20495009422302246, 1.333558440208435, -0.11704762279987335, 1.4557029008865356, -0.3036878705024719, -0.14696696400642395, -0.3619844317436218, -0.46701040863990784, 0.14361193776130676, -0.1839277148246765, -0.6691554188728333, 0.22520247101783752, -0.7875482439994812, 0.28931090235710144, 1.393447756767273, 0.29998698830604553, 0.035138435661792755, 0.5819950103759766, 1.1353564262390137, 0.37534356117248535, -0.03353679180145264, -0.8225061893463135, -1.625118374824524, 2.0122387409210205, -1.4750224351882935, 1.9923725128173828, 0.8181629776954651, -0.04363752156496048, -1.8334927558898926, -1.9060015678405762, 1.3719971179962158, 1.117676854133606, 2.3156416416168213, 0.6130708456039429, 0.4337834119796753, -0.8362520337104797, -0.6726381778717041, 0.3700481951236725, -0.865393877029419, -0.7473070025444031, 0.1296616494655609, 2.3564693927764893, 1.7357994318008423, -0.3667595088481903, -0.19207414984703064, -0.9017916917800903, 1.4541845321655273, -0.25646838545799255, 0.2769618332386017, 1.997502326965332, -0.1906086802482605, -0.9644371271133423, 1.3121742010116577, -2.4738547801971436, 0.2785484194755554, 2.0680763721466064, 0.291703999042511, 0.05356358736753464, -1.3296605348587036, -0.6942688822746277, -0.23367318511009216, -0.429447203874588, -1.2093214988708496, 0.5164549946784973, -0.2564118206501007, -0.8622955679893494, -1.4252465963363647, 0.16106176376342773, -1.1126331090927124, -1.6619679927825928, 0.342153936624527, 1.9477933645248413, 2.0073204040527344, -0.8012205958366394, 1.538056492805481, -0.27184852957725525, 0.20208877325057983, 1.2086665630340576, 1.2322696447372437, 3.1966710090637207, 1.8900024890899658, -1.2822637557983398, 0.6516680121421814, -0.10069111734628677, -0.4658421576023102, 1.130130410194397, -1.1428022384643555, 1.1148450374603271, -0.28922683000564575, -1.2733608484268188, -1.2445193529129028, 1.0630336999893188, 0.5437453985214233, 0.04427485167980194, -0.5464147925376892, 1.178735613822937, 0.014580130577087402, 1.286044955253601, 0.6428129076957703, -0.39229580760002136, 0.45884695649147034, -0.35930535197257996, -0.5062437653541565, 1.5653247833251953, 0.077785424888134, -1.421213150024414, -2.3510446548461914, -0.23604851961135864, -0.8025455474853516, -0.01864716038107872, -0.6917782425880432, -1.030143141746521, 1.5823065042495728, 0.4351464807987213, -1.2167556285858154, -0.33682864904403687, -0.35191720724105835, -0.5309547781944275, 2.703558921813965, -1.4315587282180786, -0.2718202769756317, -1.0085210800170898, -0.494000643491745, 1.6579399108886719, -1.1403794288635254, -0.24852100014686584, -1.0460915565490723, -0.5723944306373596, -1.282408595085144, -0.5830897092819214, 0.005629455670714378, -0.8281416893005371, 0.843478262424469, 0.0749940350651741, -1.2388834953308105, -0.2196331024169922, -0.9585101008415222, 0.9585743546485901, -0.24924418330192566, 0.16381791234016418, 1.9053122997283936, 0.4188011586666107, -0.363238662481308, 0.7859393358230591, 1.1670035123825073, 0.7158764004707336, -0.6189667582511902, 0.14080223441123962, -0.5738481283187866, 0.38829559087753296, -1.3887479305267334, 0.2593756914138794, -2.8830692768096924, 0.6807327270507812, 0.004723068326711655, 0.008318854495882988, -0.011032386682927608, -1.3689377307891846, 1.1193935871124268, 2.531033515930176, -1.2491514682769775, 0.4715445637702942, 0.2959778606891632, 1.1535762548446655, -1.6342195272445679, 0.200335294008255, -0.5238286852836609, 2.0477330684661865, 0.014422520995140076, 1.196441650390625, -0.4558069705963135, -2.3331427574157715, 0.5491862893104553, -1.2684024572372437, -1.0716822147369385, 0.7991137504577637, -0.8773750066757202, 0.18479207158088684, -1.4733636379241943, -0.1693633496761322, -0.9067507982254028, -1.169593334197998, 0.5878724455833435, 0.11550114303827286, 0.3998130261898041, -0.7037259936332703, 0.3333646357059479, -2.1438584327697754, -1.3766157627105713, -0.17352426052093506, -0.8991490006446838, 0.5171661972999573, -0.35486990213394165, 0.6976365447044373, -0.07708916068077087, 0.07317260652780533, 0.2687062919139862, 1.3841356039047241, 3.3849713802337646, 0.11204778403043747, 0.2673512101173401, -0.20879718661308289, -0.9851694703102112, 1.4613043069839478, 0.9607234597206116, -0.1351495385169983, -0.5587282180786133, -0.9448216557502747, 1.361026406288147, 2.0145857334136963, 1.012981653213501, 0.02518896386027336, -0.842656672000885, -0.7710829973220825, 0.018445899710059166, 0.23277154564857483, 0.6221510767936707, 0.935214102268219, 0.08730387687683105, 0.038913045078516006, 1.3741544485092163, 1.111997365951538, -0.2791171073913574, 0.43528246879577637, -0.889078676700592, -0.44941914081573486, 0.4583408236503601, 0.3285020589828491, -0.01577748730778694, 0.33781298995018005, -1.1086012125015259, -0.21886438131332397, -0.35638055205345154, -0.8573275804519653, -0.7532152533531189, -0.33175498247146606, -0.37891316413879395, 1.6319875717163086, 0.11837216466665268, -0.5726750493049622, -0.06628285348415375, -0.7108138203620911, -0.03136859089136124, -1.079072117805481, 0.3566940128803253, -0.21316388249397278, 0.01849193125963211, -0.17474475502967834, 1.7522672414779663, -1.0027016401290894, -2.041395664215088, 0.18664515018463135, 0.2690408229827881, -0.3413640856742859, 0.1314679980278015, 1.7451177835464478, 0.5795572400093079, 1.3410998582839966, 1.421135425567627, 0.9848735332489014, -0.6824271082878113, -1.287631630897522, 0.6549063324928284, 1.0301433801651, -1.3727798461914062, 0.8136031627655029, -0.08320262283086777, -0.6426516771316528, 0.7123031616210938, 1.369080901145935, 0.4376412630081177, -2.0703487396240234, 0.8464874625205994, -0.9967991709709167, 0.9042189717292786, 0.7286099195480347, 0.7830725908279419, 0.2745005190372467, 0.7841265797615051, -1.2605541944503784, -1.0818798542022705, -0.7263383865356445, -0.7657630443572998, 1.8724617958068848, -0.3052375614643097, 0.5324874520301819, -0.1736784279346466, -1.3211487531661987, -0.0747208446264267, 0.6559489965438843, 0.35963961482048035, -0.40561074018478394, 0.8091976642608643, -0.6542112827301025, -1.2037949562072754, -1.319875717163086, -0.4583526849746704, -0.89894038438797, -0.8995825052261353, 0.9847878813743591, 0.8238989114761353, 0.4276368021965027, 1.8681676387786865, 0.6281079053878784, 0.08476071059703827, -2.6358580589294434, 0.8478938341140747, 0.35390132665634155, -0.14298436045646667, 0.8778146505355835, 0.3222092390060425, 1.0507618188858032, 0.005922550335526466, 0.5368680357933044, -2.3530571460723877, 2.207224130630493, -0.16629043221473694, 0.7284611463546753, -0.07949768751859665, -0.07510387897491455, 1.0545405149459839, 0.545168936252594, 0.6054491400718689, -1.0275880098342896, 0.8224639296531677, -0.6202486157417297, 1.2389943599700928, 0.9129863977432251, -0.7838490605354309, -0.01241975650191307, 1.3755097389221191, 0.425904780626297, -0.581364631652832, -0.9414547681808472, -0.8648330569267273, 0.9419011473655701, 1.795967698097229, 0.07431530952453613, 0.04120834544301033, 0.8653983473777771, 0.6272847652435303, -1.3334554433822632, 0.047607775777578354, -0.6509931087493896, -0.6755613088607788, 1.746093511581421, 2.022552013397217, -0.13321498036384583, -0.09950992465019226, -0.7748449444770813, -1.375798225402832, 0.7429054975509644, -0.08416251838207245, 0.027345094829797745, 0.7149651050567627, -0.6164039969444275, 1.1194884777069092, 0.680000901222229, 0.8552704453468323, -0.02049912139773369, 0.22674161195755005, 0.30079150199890137, -0.3202838599681854, -1.2547091245651245, -0.27649250626564026, -1.042157769203186, -2.3813178539276123, 0.3891332745552063, -0.16300040483474731, -1.4292570352554321, -0.0034632026217877865, -1.053705096244812, 0.9121317267417908, -0.5301252603530884, -1.1708040237426758, -1.42283034324646, 0.2699059545993805, -0.0769478902220726, 0.8386160731315613, -1.5161887407302856, -0.11368459463119507, 1.268876314163208, 0.9018874168395996, -0.7625658512115479, 0.9302459359169006, 0.16516882181167603, 0.9843546748161316, 0.8205020427703857, -0.3186163008213043, 0.3537311553955078, 0.16523823142051697, -1.3099443912506104, 0.5210792422294617, 1.2704102993011475, 0.07836436480283737, 1.4910508394241333, -0.5710073709487915, -0.020049799233675003, 0.3859008848667145, -0.4392980635166168, -0.42061495780944824, -0.654580295085907, 0.6728041172027588, 0.02339804172515869, -0.8816675543785095, 0.024918965995311737, -0.1226574033498764, -0.26693108677864075, 0.18759259581565857, -1.5256211757659912, -0.11830288171768188, -0.30773043632507324, -0.5562916398048401, -1.2828278541564941, 0.16173043847084045, 1.3637487888336182, -0.7336205244064331, -0.15645062923431396, 0.5095351338386536, 0.2636443078517914, 0.5680272579193115, 0.6885817646980286, -0.6704390645027161, -0.3065483570098877, -0.2246471643447876, -0.3575138747692108, 0.2593880891799927, 1.2931634187698364, -0.10539432615041733, -0.9591001272201538, 0.6489720940589905, -0.4598580598831177, 0.027953602373600006, 1.9884337186813354, 0.08558467030525208, -0.8394957780838013, 0.36320045590400696, -0.8168334364891052, 1.9512403011322021, 1.6743409633636475, 1.3263880014419556, -0.17798501253128052, -0.9704273343086243, 0.6277484893798828, -0.32179462909698486, -0.35251322388648987, 0.8105195164680481, 0.44756120443344116, -0.20158731937408447, -1.4064334630966187, 0.5649930834770203, 1.265114426612854, -0.8855588436126709, -0.8154586553573608, 0.20103400945663452, -0.8017810583114624, 1.1392165422439575, 0.6898784041404724, 0.4024869203567505, 0.2346687614917755, 1.5787142515182495, 0.6874644160270691, -0.555880069732666, 0.5020318627357483, 0.5326407551765442, -0.14161276817321777, -1.9591790437698364, -1.1021482944488525, 0.35390594601631165, -0.424586683511734, -1.6864264011383057, 1.371030569076538, -1.2564451694488525, -0.9710451364517212, 0.5280247330665588, 0.012273909524083138, 1.3608970642089844, 0.29313644766807556, 1.6339778900146484, 2.006579637527466, 0.9304072856903076, 0.4079265296459198, 1.2779521942138672, -0.1398385763168335, -0.3971816897392273, 1.8069813251495361, -0.48818182945251465, 0.6052386164665222, 1.0925325155258179, -0.47245264053344727, -1.1633074283599854, -0.752496063709259, -1.1775906085968018, -0.6741952300071716, 1.205278754234314, 0.12111597508192062, -1.1141831874847412, 0.3065202534198761, 1.5853610038757324, 0.1578390896320343, -0.32665178179740906, 0.6545097827911377, 0.3635750412940979, -0.7998402118682861, -0.06277722120285034, -0.9227511286735535, 0.5369823575019836, -0.17114579677581787, -0.33002766966819763, 0.3229338824748993, 0.45123833417892456, 1.334662914276123, 0.042625147849321365, 0.12614095211029053, 1.2750242948532104, -1.3935502767562866, 1.4580022096633911, -0.7774721384048462, 0.3032837212085724, -2.404785394668579, 1.430074691772461, -0.7997429370880127, 2.00887393951416, -2.664440870285034, 0.37545156478881836, -0.5289869904518127, -0.46302956342697144, 0.2403845489025116, -0.2151351273059845, 0.07006661593914032, -0.16189593076705933, -1.0507692098617554, -0.09934710711240768, -0.7926201820373535, 0.5335555672645569, 1.2194427251815796, 1.3925981521606445, -1.0358960628509521, -0.3127165138721466, -1.6911602020263672, -0.24513500928878784, -0.6462458968162537, 0.34422677755355835, -1.9273008108139038, -0.13860952854156494, -1.991640329360962, -2.421046018600464, -1.3703150749206543, -0.8497287631034851, 1.1303937435150146, 0.15367698669433594, -0.8823559284210205, 1.154934048652649, -0.3657473027706146, -1.7638435363769531, 1.036686897277832, -2.113025665283203 ]
https://github.com/huggingface/datasets/issues/3598
Readme info not being parsed to show on Dataset card page
Thank you. It finally worked implementing your changes and leaving a white line between title and text in the description.
## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully.
998
20
Readme info not being parsed to show on Dataset card page ## Describe the bug The info contained in the README.md file is not being shown in the dataset main page. Basic info and table of contents are properly formatted in the README. ## Steps to reproduce the bug # Sample code to reproduce the bug The README file is this one: https://huggingface.co/datasets/softcatala/Tilde-MODEL-Catalan/blob/main/README.md ## Expected results README info should appear in the Dataset card page. ## Actual results Nothing is shown. However, labels are parsed and shown successfully. Thank you. It finally worked implementing your changes and leaving a white line between title and text in the description.
[ -1.1832036972045898, -0.9427013993263245, -0.9175537824630737, 1.4753670692443848, -0.19871041178703308, -1.324866533279419, 0.12502571940422058, -1.0877068042755127, 1.6096718311309814, -0.7839428186416626, 0.24859030544757843, -1.6844475269317627, -0.10332629829645157, -0.5322568416595459, -0.6658713221549988, -1.0132814645767212, -0.5057207345962524, -0.8209690451622009, 1.0471082925796509, 2.430506944656372, 1.2121260166168213, -1.405091643333435, 2.637552499771118, 0.7880934476852417, -0.297854483127594, -1.1127989292144775, 0.5759352445602417, 0.09641135483980179, -1.2955235242843628, -0.566356897354126, -0.9424331784248352, 0.07302211970090866, -0.47346723079681396, -0.43597176671028137, 0.05268900841474533, 0.3925876021385193, -0.2086767703294754, -0.3956317901611328, -0.5028403997421265, -0.7970049977302551, 0.44621527194976807, -0.4888533353805542, 0.9053468704223633, -0.4885845482349396, 1.850334882736206, -0.48755943775177, 0.36476966738700867, 0.849763810634613, 1.416476845741272, 0.13806867599487305, -0.03736520931124687, 0.17473436892032623, 0.4284183979034424, -0.06636470556259155, 0.32940784096717834, 1.1619985103607178, 0.5224316716194153, 0.5345296263694763, 0.6041457056999207, -2.1356022357940674, 1.3204147815704346, -0.9057726263999939, 0.3866029977798462, 1.459244966506958, -1.0984430313110352, 0.3861422538757324, -1.6319372653961182, -0.16086605191230774, 0.5128593444824219, -2.3429038524627686, 0.26205435395240784, -1.1231052875518799, -0.5085332989692688, 0.9307863712310791, 0.3304018974304199, -1.1263076066970825, 0.010076071135699749, -0.48642781376838684, 1.0462573766708374, 0.5741817355155945, 1.1319125890731812, -1.5364534854888916, 0.015576512552797794, -0.31363409757614136, -0.0806242898106575, -1.4117413759231567, -1.4057958126068115, 0.3121398091316223, 0.7330775260925293, 0.6480079889297485, 0.020869407802820206, 0.9354792833328247, -0.9075530171394348, 0.8603567481040955, -0.6610521078109741, -1.6859334707260132, -1.350315809249878, -2.3428542613983154, -2.333385467529297, 0.7756293416023254, -0.5562869906425476, -0.6005886197090149, 2.217036247253418, -1.0351217985153198, -1.775688648223877, 1.1170144081115723, 0.1637769639492035, 0.0757882371544838, 2.4944968223571777, 0.19820460677146912, -0.7918614745140076, 0.4643503725528717, -0.5725919008255005, 0.7691358327865601, -0.7372643351554871, 1.2503447532653809, 0.3738192617893219, -1.0137407779693604, 1.5868903398513794, -0.3321865200996399, 0.600739061832428, -0.7195435762405396, -0.5196596384048462, -0.9528055191040039, 0.275465726852417, 1.735007882118225, -0.34096911549568176, 1.5676825046539307, -0.24775195121765137, -1.5391699075698853, -1.682379961013794, 0.953728199005127, 0.4771924614906311, -0.7547757625579834, 0.16167031228542328, -0.25823310017585754, -0.023668944835662842, 0.05278083682060242, 1.0087711811065674, 1.3096656799316406, 0.5833227634429932, -0.3327094614505768, -0.900740385055542, 0.3067837059497833, -0.04693248122930527, -0.5753993391990662, -1.7178622484207153, -0.2856202721595764, 0.13753241300582886, 0.4904918968677521, -1.2866475582122803, 1.7048144340515137, 0.8670232892036438, 1.968833565711975, 1.002053141593933, -0.23451626300811768, 1.5151718854904175, 0.048301804810762405, 1.8153977394104004, -0.4430575370788574, 0.7418162822723389, -0.3001610040664673, -1.163855791091919, 0.799892246723175, -0.43571382761001587, -1.8507962226867676, -0.8265562653541565, -0.9524742960929871, -0.08777269721031189, -0.532278835773468, 1.1280335187911987, -0.2658799886703491, -1.2111146450042725, 0.23603400588035583, -0.6490855813026428, 0.0819162130355835, -1.394188642501831, 0.3994359076023102, 0.7074138522148132, -0.6035057902336121, 0.020093444734811783, -0.29813024401664734, -1.29194974899292, -0.3885277509689331, 0.3894593417644501, 1.8715221881866455, -0.9366547465324402, 0.9406426548957825, 0.8958616852760315, -0.8333091139793396, 0.2124662846326828, 0.26710325479507446, -0.3279012441635132, 0.8691201210021973, -1.1006041765213013, -0.2372831404209137, 1.2109122276306152, -0.231805682182312, -0.8455920219421387, 1.4974364042282104, 0.775857150554657, -0.9738793969154358, -0.12055602669715881, -0.25848332047462463, -0.8812310099601746, -0.13579785823822021, -1.6292623281478882, -0.060377560555934906, 0.2683936059474945, -1.569368600845337, -0.4373777210712433, -0.327880859375, 1.3172707557678223, -0.05897938087582588, 1.5094938278198242, -0.300058513879776, -0.25401750206947327, -0.41165488958358765, -0.4517068564891815, 0.14509616792201996, -0.2291346788406372, -0.5677685141563416, 0.2483968585729599, -0.9034970998764038, 0.21330198645591736, 1.3663426637649536, 0.3761313557624817, 0.027237944304943085, 0.7347964644432068, 0.9551551938056946, 0.3093285858631134, -0.21477897465229034, -0.830123245716095, -1.4754258394241333, 2.039762496948242, -1.3100786209106445, 1.9333441257476807, 0.8633428812026978, -0.14065654575824738, -1.8121064901351929, -1.9763792753219604, 1.300369143486023, 1.23686683177948, 2.205942392349243, 0.6479661464691162, 0.5166594982147217, -0.8287261724472046, -0.6999282240867615, 0.3070478141307831, -1.2118889093399048, -0.7097318768501282, 0.009757711552083492, 2.31923508644104, 1.661813735961914, -0.5081945657730103, -0.17266540229320526, -1.0542054176330566, 1.316196084022522, -0.09665587544441223, 0.13053855299949646, 2.028754472732544, -0.24992290139198303, -1.0382484197616577, 1.1491165161132812, -2.3707051277160645, 0.09785623848438263, 2.1032638549804688, 0.1823369413614273, 0.019952282309532166, -1.4567805528640747, -0.6707457900047302, -0.1284046322107315, -0.4130362272262573, -1.1844842433929443, 0.6356377005577087, -0.339547723531723, -0.9079307913780212, -1.5384135246276855, 0.1467215120792389, -1.0183022022247314, -1.738303303718567, 0.3334828019142151, 1.9560075998306274, 1.9613730907440186, -0.8318894505500793, 1.5215401649475098, -0.018067514523863792, 0.06570522487163544, 1.160576581954956, 1.1371111869812012, 3.134254217147827, 1.9852862358093262, -1.2114474773406982, 0.6452186107635498, 0.038377322256565094, -0.4143473505973816, 1.126416802406311, -1.1302176713943481, 1.2167946100234985, -0.32133808732032776, -1.331833839416504, -1.3439828157424927, 0.9959579110145569, 0.49090757966041565, 0.06457941979169846, -0.5040763020515442, 1.3674933910369873, 0.02785491943359375, 1.4066399335861206, 0.4715968668460846, -0.4169646203517914, 0.6245265603065491, -0.5141556859016418, -0.47537562251091003, 1.620599389076233, 0.25457948446273804, -1.4375485181808472, -2.3630340099334717, -0.23853838443756104, -0.6274247765541077, -0.04544597119092941, -0.5949439406394958, -0.9423907995223999, 1.569408893585205, 0.4978969395160675, -1.222174048423767, -0.5518609881401062, -0.3689870536327362, -0.6373215317726135, 2.705399990081787, -1.515633463859558, -0.19755356013774872, -0.9258438348770142, -0.42081132531166077, 1.7054930925369263, -1.2623909711837769, -0.10036318749189377, -1.0030956268310547, -0.5660254955291748, -1.3073347806930542, -0.6107487678527832, -0.03297438845038414, -0.9763021469116211, 0.8095264434814453, 0.1877281814813614, -1.1760213375091553, -0.03097878396511078, -0.8661769032478333, 0.8825674653053284, -0.020273182541131973, 0.24944360554218292, 1.828814148902893, 0.4712335467338562, -0.3789466321468353, 0.7213146090507507, 1.1231203079223633, 0.6288447380065918, -0.6736879944801331, 0.09251239895820618, -0.6895635724067688, 0.27707335352897644, -1.3886104822158813, 0.1150287389755249, -2.9289321899414062, 0.6274439096450806, -0.1669769585132599, -0.09895540773868561, 0.012594086118042469, -1.2386960983276367, 1.17957603931427, 2.5961661338806152, -1.314754605293274, 0.46857956051826477, 0.21485188603401184, 1.180470585823059, -1.5794336795806885, 0.3281339406967163, -0.4698915481567383, 2.000042676925659, 0.06728027015924454, 1.2362947463989258, -0.4666626453399658, -2.1417324542999268, 0.6156923174858093, -1.2146519422531128, -1.180497169494629, 0.8455636501312256, -0.9781396389007568, -0.016754183918237686, -1.4319103956222534, -0.13454124331474304, -0.7630842328071594, -1.239053726196289, 0.8023476004600525, 0.13258741796016693, 0.443461537361145, -0.6406440138816833, 0.32962507009506226, -2.127119779586792, -1.2770534753799438, -0.2373695820569992, -0.9046117067337036, 0.3297867476940155, -0.30823609232902527, 0.6228026747703552, -0.3257257044315338, 0.11724793165922165, 0.3412906527519226, 1.2744678258895874, 3.3885338306427, 0.09474392235279083, 0.26495638489723206, -0.02789447456598282, -1.0450713634490967, 1.4920005798339844, 1.0540564060211182, -0.1591409295797348, -0.6101129055023193, -0.9285387396812439, 1.3560371398925781, 2.0120673179626465, 1.000630497932434, 0.12655934691429138, -0.8460264801979065, -0.5910792946815491, -0.044806238263845444, 0.23521986603736877, 0.6608895063400269, 0.9335572123527527, -0.04205919802188873, -0.0027467012405395508, 1.5253545045852661, 1.2483587265014648, -0.33633413910865784, 0.44100379943847656, -0.8985627293586731, -0.5040499567985535, 0.394074022769928, 0.4135354459285736, -0.07114510983228683, 0.3620232045650482, -1.029875636100769, -0.2667422592639923, -0.2751333713531494, -0.9412931799888611, -0.7688408493995667, -0.33356034755706787, -0.43789297342300415, 1.6478221416473389, 0.15206238627433777, -0.511383056640625, 0.00813725870102644, -0.8025692701339722, -0.011420472525060177, -1.0685081481933594, 0.4324333965778351, -0.23388302326202393, -0.06562526524066925, -0.07112107425928116, 1.8785006999969482, -1.0689148902893066, -2.117083787918091, 0.33585411310195923, 0.2565629780292511, -0.3145751953125, 0.22961530089378357, 1.5859832763671875, 0.509967029094696, 1.4366375207901, 1.3921481370925903, 1.016331434249878, -0.7831636667251587, -1.2602472305297852, 0.6535741686820984, 0.9877586960792542, -1.4629812240600586, 0.6613062620162964, 0.0068548377603292465, -0.6020448207855225, 0.662091851234436, 1.2150615453720093, 0.46181386709213257, -1.974861741065979, 0.8608503341674805, -0.877686619758606, 0.8296953439712524, 0.6410648226737976, 0.8270398378372192, 0.3489249050617218, 0.7230867743492126, -1.1868605613708496, -1.1375230550765991, -0.7773482203483582, -0.6512368321418762, 1.9099135398864746, -0.25068074464797974, 0.696054220199585, -0.10671884566545486, -1.1897141933441162, -0.18799389898777008, 0.6411606669425964, 0.2978461682796478, -0.29670366644859314, 0.87436842918396, -0.6145194172859192, -1.2262881994247437, -1.4960641860961914, -0.38256216049194336, -1.054079532623291, -0.8217153549194336, 1.0569407939910889, 0.7739372253417969, 0.22707150876522064, 1.850710391998291, 0.4937730133533478, 0.165602445602417, -2.7455906867980957, 0.9304531812667847, 0.3891177773475647, -0.02244451455771923, 0.823291540145874, 0.3291124999523163, 0.9728794097900391, 0.06427910923957825, 0.38965728878974915, -2.3018605709075928, 2.2401692867279053, -0.204522967338562, 0.6982303261756897, 0.040026772767305374, -0.10112827271223068, 1.1356818675994873, 0.5393958687782288, 0.7172566652297974, -1.0514209270477295, 0.8136650323867798, -0.6129575371742249, 1.3016791343688965, 1.0375912189483643, -0.8509719967842102, -0.011735847219824791, 1.4001083374023438, 0.5689469575881958, -0.4457930326461792, -0.869874119758606, -0.8129169344902039, 0.8831578493118286, 1.8255563974380493, -0.008590053766965866, 0.0972309485077858, 0.7552958130836487, 0.4763234257698059, -1.344952940940857, -0.002310769632458687, -0.8130245208740234, -0.6792087554931641, 1.6255894899368286, 1.9440008401870728, -0.07308616489171982, -0.2304774522781372, -0.8435019254684448, -1.2498745918273926, 0.7635290026664734, -0.10856328904628754, 0.042577605694532394, 0.79961097240448, -0.6323431134223938, 1.0322072505950928, 0.7209613919258118, 0.8592429757118225, 0.021515004336833954, 0.3022972643375397, 0.43447360396385193, -0.35562393069267273, -1.2329198122024536, -0.12525016069412231, -1.088799238204956, -2.4645767211914062, 0.40468931198120117, -0.3117837905883789, -1.3698374032974243, -0.0014693057164549828, -1.1650346517562866, 0.9939234852790833, -0.5257158279418945, -1.0455811023712158, -1.5339345932006836, 0.13839691877365112, -0.3023495674133301, 0.9373055100440979, -1.4513320922851562, -0.03410658240318298, 1.3464561700820923, 0.9083178639411926, -0.7570466995239258, 1.0591458082199097, 0.1918955296278, 1.104744553565979, 0.757998526096344, -0.3767554461956024, 0.4298114478588104, 0.08726967871189117, -1.3040717840194702, 0.5822032690048218, 1.1309980154037476, 0.14675943553447723, 1.4739528894424438, -0.7067245244979858, -0.060623649507761, 0.4472205638885498, -0.4241882562637329, -0.34529033303260803, -0.44699084758758545, 0.7641251683235168, 0.12269748002290726, -1.0097465515136719, 0.09889359772205353, -0.32334965467453003, -0.3076043128967285, 0.19181138277053833, -1.5440614223480225, -0.27771201729774475, -0.2770726680755615, -0.5242530107498169, -1.3039830923080444, 0.21715185046195984, 1.312233328819275, -0.7177549004554749, -0.15275982022285461, 0.5120046734809875, 0.35203099250793457, 0.6148433089256287, 0.6090565919876099, -0.7498651146888733, -0.3178628385066986, -0.2757807970046997, -0.251836359500885, 0.4049246311187744, 1.2939672470092773, -0.12902286648750305, -0.9521121382713318, 0.806390106678009, -0.27170318365097046, -0.015307930298149586, 1.9884222745895386, 0.1480480581521988, -0.9447171688079834, 0.2213234305381775, -0.6715200543403625, 1.9598476886749268, 1.608007550239563, 1.3304673433303833, -0.08810678869485855, -0.8425577878952026, 0.5119628310203552, -0.19528719782829285, -0.22578705847263336, 0.8805490136146545, 0.6396971344947815, -0.08100473135709763, -1.4447957277297974, 0.5029365420341492, 1.1958853006362915, -0.9243008494377136, -0.8628177046775818, 0.09786835312843323, -0.7403861880302429, 1.00582754611969, 0.7767424583435059, 0.5183353424072266, 0.17037901282310486, 1.5917993783950806, 0.813144862651825, -0.6316810250282288, 0.37589260935783386, 0.4402160942554474, -0.1079845279455185, -2.009495258331299, -0.9698701500892639, 0.4388090968132019, -0.4087070822715759, -1.5853337049484253, 1.3620530366897583, -1.200295329093933, -0.9213737845420837, 0.46191689372062683, 0.09081131964921951, 1.530413269996643, 0.26714152097702026, 1.5011454820632935, 1.9881361722946167, 1.0378340482711792, 0.2725464105606079, 1.5410609245300293, -0.11371399462223053, -0.3391040563583374, 1.7899237871170044, -0.4199739396572113, 0.3120487630367279, 1.1118497848510742, -0.5661520957946777, -0.9511618614196777, -0.7104091644287109, -1.124915361404419, -0.5512293577194214, 1.066365361213684, 0.20726686716079712, -0.9704132080078125, 0.15903156995773315, 1.4456603527069092, 0.21926598250865936, -0.40147820115089417, 0.6460338234901428, 0.5107842683792114, -0.7821922898292542, -0.005004260689020157, -0.7937567234039307, 0.5198194980621338, -0.129949152469635, -0.41393816471099854, 0.42129456996917725, 0.2895655333995819, 1.320210576057434, -0.053407441824674606, 0.19843292236328125, 1.2475898265838623, -1.3027675151824951, 1.5399197340011597, -0.5660526752471924, 0.14865738153457642, -2.3721163272857666, 1.4936285018920898, -0.7605723142623901, 1.8791342973709106, -2.6216418743133545, 0.40613889694213867, -0.6095669865608215, -0.3243810832500458, 0.3544883131980896, -0.4372503161430359, 0.05015233904123306, -0.3057616949081421, -1.078563928604126, -0.0978299230337143, -0.693680465221405, 0.6136326789855957, 1.1277480125427246, 1.2969186305999756, -1.0089538097381592, -0.333222895860672, -1.8806581497192383, -0.23569603264331818, -0.6988841891288757, 0.49201181530952454, -2.0457253456115723, -0.19317638874053955, -1.9969425201416016, -2.3595333099365234, -1.3994576930999756, -0.7600826025009155, 1.1297399997711182, 0.21735268831253052, -0.8730104565620422, 1.1551793813705444, -0.23112942278385162, -1.7926079034805298, 1.084259033203125, -2.258896827697754 ]
https://github.com/huggingface/datasets/issues/3597
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content
Hi! The `cd` command in Jupyer/Colab needs to start with `%`, so this should work: ``` !git clone https://github.com/huggingface/datasets.git %cd datasets !pip install -e ".[streaming]" ```
## Bug The install of streaming dataset is giving following error. ## Steps to reproduce the bug ```python ! git clone https://github.com/huggingface/datasets.git ! cd datasets ! pip install -e ".[streaming]" ``` ## Actual results Cloning into 'datasets'... remote: Enumerating objects: 50816, done. remote: Counting objects: 100% (2356/2356), done. remote: Compressing objects: 100% (1606/1606), done. remote: Total 50816 (delta 834), reused 1741 (delta 525), pack-reused 48460 Receiving objects: 100% (50816/50816), 72.47 MiB | 27.68 MiB/s, done. Resolving deltas: 100% (22541/22541), done. Checking out files: 100% (6722/6722), done. ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content
999
26
ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content ## Bug The install of streaming dataset is giving following error. ## Steps to reproduce the bug ```python ! git clone https://github.com/huggingface/datasets.git ! cd datasets ! pip install -e ".[streaming]" ``` ## Actual results Cloning into 'datasets'... remote: Enumerating objects: 50816, done. remote: Counting objects: 100% (2356/2356), done. remote: Compressing objects: 100% (1606/1606), done. remote: Total 50816 (delta 834), reused 1741 (delta 525), pack-reused 48460 Receiving objects: 100% (50816/50816), 72.47 MiB | 27.68 MiB/s, done. Resolving deltas: 100% (22541/22541), done. Checking out files: 100% (6722/6722), done. ERROR: File "setup.py" or "setup.cfg" not found. Directory cannot be installed in editable mode: /content Hi! The `cd` command in Jupyer/Colab needs to start with `%`, so this should work: ``` !git clone https://github.com/huggingface/datasets.git %cd datasets !pip install -e ".[streaming]" ```
[ -1.230460524559021, -0.8420829176902771, -0.7707810401916504, 1.4377800226211548, -0.20801785588264465, -1.2016303539276123, 0.12844546139240265, -1.0445902347564697, 1.6168543100357056, -0.6373675465583801, 0.2768639028072357, -1.6935113668441772, -0.09944842755794525, -0.45546263456344604, -0.7834286093711853, -0.8995603322982788, -0.5779802203178406, -0.713548481464386, 0.9413806796073914, 2.6148741245269775, 1.2732667922973633, -1.3537070751190186, 2.6552908420562744, 0.6787458062171936, -0.13506044447422028, -1.0756523609161377, 0.5483478307723999, 0.0424196720123291, -1.41300630569458, -0.356257826089859, -0.9212443232536316, -0.06865890324115753, -0.5694392919540405, -0.5785149335861206, 0.04674480855464935, 0.41283878684043884, -0.2377471774816513, -0.45402032136917114, -0.5279396772384644, -0.8153329491615295, 0.538004457950592, -0.3792221248149872, 0.9353583455085754, -0.3527870774269104, 1.7741186618804932, -0.6748548746109009, 0.48885220289230347, 0.7593532800674438, 1.4066869020462036, 0.2443746030330658, 0.04351639747619629, 0.4050315022468567, 0.42144739627838135, 0.15762358903884888, 0.44509705901145935, 1.0744210481643677, 0.6918667554855347, 0.3669365346431732, 0.7532443404197693, -2.1980719566345215, 1.1299710273742676, -1.0619540214538574, 0.2622314691543579, 1.346098780632019, -0.8841825127601624, 0.2791501581668854, -1.9019418954849243, -0.057165056467056274, 0.5588420629501343, -2.233165979385376, 0.25688111782073975, -1.2999130487442017, -0.5068315267562866, 1.1173715591430664, 0.3857947587966919, -1.3150629997253418, 0.14789532124996185, -0.40610551834106445, 0.9478781223297119, 0.4643217921257019, 1.2035657167434692, -1.6923195123672485, -0.04189266264438629, -0.3272147476673126, -0.008752163499593735, -1.2103798389434814, -1.4049757719039917, 0.42584648728370667, 0.5412368178367615, 0.581807553768158, -0.06747628003358841, 0.8930732011795044, -0.9627022743225098, 0.8473498821258545, -1.0266598463058472, -1.7318730354309082, -1.4009804725646973, -2.175131320953369, -2.225175142288208, 0.8270469903945923, -0.44813114404678345, -0.5289037227630615, 1.9980683326721191, -0.9412410855293274, -1.7751429080963135, 1.1433584690093994, 0.39827096462249756, 0.02662416361272335, 2.30802583694458, 0.29388347268104553, -0.7855867147445679, 0.4117468595504761, -0.7784029245376587, 0.7315865755081177, -0.45442885160446167, 1.4276522397994995, 0.49704834818840027, -1.0178662538528442, 1.5611666440963745, -0.5363603234291077, 0.5056273937225342, -0.7589666247367859, -0.49611377716064453, -0.7839879393577576, 0.3564557433128357, 1.9409115314483643, -0.3353147804737091, 1.5719599723815918, -0.26190489530563354, -1.626318097114563, -1.4652365446090698, 0.869935154914856, 0.5057031512260437, -0.7620203495025635, -0.016656547784805298, -0.3252003490924835, 0.13510213792324066, -0.09681237488985062, 1.0600152015686035, 1.2045528888702393, 0.803221583366394, -0.3067106306552887, -0.950989842414856, 0.1976417601108551, -0.0018004192970693111, -0.8140808939933777, -1.7685866355895996, -0.37134575843811035, 0.1688634753227234, 0.6714850068092346, -1.263878345489502, 1.6927746534347534, 0.8173148036003113, 1.8748891353607178, 0.9757082462310791, -0.42909255623817444, 1.527438759803772, 0.03254882991313934, 1.9484320878982544, -0.5396444201469421, 0.7040901780128479, -0.33375781774520874, -1.2293606996536255, 0.7927573919296265, -0.28152698278427124, -2.1618716716766357, -0.8173580765724182, -0.8268322348594666, -0.19116072356700897, -0.7399195432662964, 0.9037474989891052, -0.2894180119037628, -1.4535565376281738, 0.2237657904624939, -0.7614963054656982, 0.0059932321310043335, -1.2877591848373413, 0.25756746530532837, 0.715995192527771, -0.5869038105010986, 0.12841494381427765, -0.17904672026634216, -1.3445165157318115, -0.48517686128616333, 0.25800821185112, 1.8111412525177002, -0.8359320163726807, 1.020162582397461, 1.0670658349990845, -0.7688049077987671, 0.051110051572322845, 0.358699768781662, -0.3889141082763672, 0.9074434041976929, -1.0478651523590088, -0.43222466111183167, 1.2080458402633667, -0.025042954832315445, -0.6362075805664062, 1.443967342376709, 0.758480429649353, -0.94575434923172, -0.18610481917858124, -0.1653355062007904, -0.7726943492889404, 0.09392596036195755, -1.683767318725586, -0.1050402820110321, 0.37077799439430237, -1.4524234533309937, -0.5070692300796509, -0.17727887630462646, 1.3274890184402466, -0.2036237120628357, 1.4124536514282227, -0.3373177647590637, -0.1646563559770584, -0.49280861020088196, -0.38629448413848877, 0.1642448604106903, -0.2216821163892746, -0.5972506403923035, 0.29417744278907776, -0.8566300272941589, 0.31519395112991333, 1.435663104057312, 0.3472636044025421, 0.08404719829559326, 0.4630683362483978, 1.0131189823150635, 0.3110584318637848, -0.06389974057674408, -0.8824464678764343, -1.6198461055755615, 2.127380847930908, -1.444661021232605, 1.9598902463912964, 0.6669711470603943, -0.10282155871391296, -1.7296756505966187, -1.9357930421829224, 1.3063724040985107, 1.1168941259384155, 2.424748420715332, 0.6386384963989258, 0.4382191002368927, -0.8354669213294983, -0.6134267449378967, 0.2790820002555847, -1.0511418581008911, -0.7386335134506226, 0.16637015342712402, 2.493786096572876, 1.7178761959075928, -0.5504202246665955, -0.1786084771156311, -1.1029850244522095, 1.3528919219970703, -0.14858746528625488, 0.22323071956634521, 1.9131442308425903, -0.17060932517051697, -1.078437089920044, 1.2151849269866943, -2.259467601776123, 0.19735823571681976, 2.0166800022125244, 0.345034122467041, 0.13086584210395813, -1.4361439943313599, -0.7097505331039429, -0.2687624990940094, -0.49731019139289856, -1.0599051713943481, 0.6282995939254761, -0.2894524037837982, -0.8985497951507568, -1.3485008478164673, 0.05622519552707672, -1.115885615348816, -1.7746553421020508, 0.2427743375301361, 1.8114855289459229, 1.8790463209152222, -0.731548547744751, 1.5219411849975586, -0.37685394287109375, 0.14054128527641296, 1.2795600891113281, 1.2600290775299072, 3.108609914779663, 1.927645206451416, -1.2339986562728882, 0.7307445406913757, -0.12810690701007843, -0.4400266706943512, 1.143325686454773, -1.2357410192489624, 1.2404459714889526, -0.11376280337572098, -1.200299620628357, -1.1939542293548584, 0.975275456905365, 0.5110114216804504, 0.09219525009393692, -0.4815911054611206, 1.127557396888733, 0.06837700307369232, 1.3124147653579712, 0.5423601269721985, -0.27371400594711304, 0.6288191676139832, -0.37250152230262756, -0.429069459438324, 1.5811909437179565, 0.21301281452178955, -1.4161354303359985, -2.3247087001800537, -0.24464179575443268, -0.965444803237915, -0.017272213473916054, -0.5231230854988098, -0.9927468299865723, 1.6829105615615845, 0.367803156375885, -1.294305443763733, -0.2623593211174011, -0.3356800675392151, -0.4891834259033203, 2.762707233428955, -1.437866449356079, -0.21284256875514984, -0.9173059463500977, -0.5719103217124939, 1.6553500890731812, -1.0832133293151855, -0.24993552267551422, -1.0364688634872437, -0.6223434209823608, -1.3603074550628662, -0.6421834230422974, 0.11166009306907654, -0.9631888270378113, 0.7794970273971558, 0.2288367599248886, -1.1963423490524292, -0.3371323049068451, -0.8548413515090942, 0.8538739085197449, 0.027693210169672966, 0.2245233803987503, 2.004478931427002, 0.532249927520752, -0.20425795018672943, 0.6877396106719971, 1.2045273780822754, 0.6240674257278442, -0.5970978736877441, 0.28291556239128113, -0.6801097393035889, 0.1908176690340042, -1.3616669178009033, 0.1278233379125595, -2.7938754558563232, 0.7038125991821289, -0.15144777297973633, -0.04238419979810715, -0.01211828738451004, -1.2797263860702515, 1.2062623500823975, 2.6447887420654297, -1.1579773426055908, 0.4777568280696869, 0.3879378139972687, 1.1212979555130005, -1.5534389019012451, 0.2737357020378113, -0.40067654848098755, 2.160083055496216, 0.19681337475776672, 1.2324010133743286, -0.487216979265213, -2.2044999599456787, 0.6299906969070435, -1.2988156080245972, -1.2139774560928345, 0.736571192741394, -0.7507016062736511, 0.12697112560272217, -1.4929169416427612, -0.2152702659368515, -0.8439386487007141, -1.2544567584991455, 0.7642334699630737, 0.12512868642807007, 0.4700219929218292, -0.49354812502861023, 0.42378756403923035, -2.155829906463623, -1.3014687299728394, -0.20672160387039185, -0.9319713115692139, 0.42393195629119873, -0.22263112664222717, 0.7465372085571289, -0.12902235984802246, 0.020230714231729507, 0.4097749888896942, 1.3698021173477173, 3.473999261856079, 0.19727981090545654, 0.26653799414634705, -0.12673114240169525, -1.00424063205719, 1.4239996671676636, 0.9713343977928162, -0.19377413392066956, -0.5318403840065002, -0.981315016746521, 1.1173083782196045, 2.030172348022461, 1.103384017944336, 0.07146404683589935, -0.7802062630653381, -0.7113044261932373, 0.07572127133607864, 0.11841171979904175, 0.4290338456630707, 0.9068748354911804, -0.01856786385178566, -0.009465932846069336, 1.416099190711975, 1.187334418296814, -0.3660662770271301, 0.29944443702697754, -0.8701642751693726, -0.45939508080482483, 0.6238378882408142, 0.22104616463184357, 0.062781423330307, 0.4312288165092468, -1.0850608348846436, -0.1862061768770218, -0.32981541752815247, -0.9206245541572571, -0.6924896240234375, -0.4417007863521576, -0.34819886088371277, 1.5633360147476196, 0.06359401345252991, -0.4241899251937866, -0.00927060004323721, -0.8029825687408447, -0.07689068466424942, -1.031998872756958, 0.26352575421333313, -0.1607653796672821, -0.012146915309131145, -0.16158363223075867, 1.7729732990264893, -0.9262688755989075, -2.109226703643799, 0.2928915023803711, 0.23439566791057587, -0.49790728092193604, 0.2746279835700989, 1.5997809171676636, 0.5929800868034363, 1.3912261724472046, 1.3046518564224243, 0.9304168820381165, -0.5262220501899719, -1.3205841779708862, 0.642829418182373, 1.1080667972564697, -1.3818845748901367, 0.7805954217910767, 0.03867969661951065, -0.45027607679367065, 0.6393084526062012, 1.2612789869308472, 0.36016738414764404, -1.9524277448654175, 0.8211862444877625, -0.7319523096084595, 0.7897900342941284, 0.565129280090332, 0.6973021626472473, 0.13840989768505096, 0.7911873459815979, -1.3296287059783936, -1.0397696495056152, -0.7910017967224121, -0.632648766040802, 1.8410661220550537, -0.14080697298049927, 0.48997762799263, -0.15344829857349396, -1.2800548076629639, -0.0863918736577034, 0.6164905428886414, 0.3545166850090027, -0.5278483629226685, 0.8745286464691162, -0.5715034604072571, -1.1679139137268066, -1.3626136779785156, -0.5093782544136047, -0.9342038631439209, -0.8668175339698792, 1.017238736152649, 0.8115719556808472, 0.37772685289382935, 1.785844087600708, 0.6786966323852539, 0.19301927089691162, -2.7037501335144043, 0.8930747509002686, 0.3121221661567688, -0.02588888630270958, 0.8772835731506348, 0.23399873077869415, 1.0399562120437622, -0.20874521136283875, 0.5522094368934631, -2.334293842315674, 2.262882947921753, -0.28870511054992676, 0.6216540932655334, 0.0841813012957573, -0.1515348255634308, 0.9789438247680664, 0.509497344493866, 0.559914231300354, -1.1176259517669678, 0.6279130578041077, -0.6371487975120544, 1.2217496633529663, 0.8834170699119568, -0.8506886959075928, -0.0697852075099945, 1.3914742469787598, 0.5069206357002258, -0.45895180106163025, -0.898131787776947, -0.8332399129867554, 1.0446990728378296, 1.7502917051315308, -0.14186309278011322, 0.01333865337073803, 0.9580869674682617, 0.6240412592887878, -1.3525464534759521, -0.035619281232357025, -0.8946276903152466, -0.6337290406227112, 1.808371663093567, 2.1475024223327637, 0.0004615616053342819, -0.2852845788002014, -0.7825506925582886, -1.2715649604797363, 0.76985764503479, -0.09910575300455093, 0.22089232504367828, 0.6432810425758362, -0.5903421640396118, 1.1598469018936157, 0.8096652030944824, 1.0460649728775024, 0.20567411184310913, 0.31706875562667847, 0.18296489119529724, -0.24779659509658813, -1.1828399896621704, -0.3555428385734558, -1.092818021774292, -2.548778772354126, 0.47909852862358093, -0.166489839553833, -1.4661474227905273, 0.06817388534545898, -1.0331811904907227, 0.8795075416564941, -0.5129675269126892, -1.0938645601272583, -1.3964568376541138, 0.23356424272060394, -0.05645415186882019, 0.945492148399353, -1.6421220302581787, -0.08965996652841568, 1.365147352218628, 0.879982054233551, -0.6880623698234558, 0.9008904695510864, 0.3102472126483917, 1.1535329818725586, 0.8644763827323914, -0.3318873345851898, 0.4533751308917999, 0.05547488480806351, -1.3363656997680664, 0.46333950757980347, 1.1755399703979492, 0.1666257679462433, 1.4489976167678833, -0.5598944425582886, 0.10429347306489944, 0.3669930696487427, -0.5188276767730713, -0.42388513684272766, -0.6073098182678223, 0.6278904676437378, 0.0975484773516655, -1.0538357496261597, 0.03275344520807266, -0.05280259996652603, -0.09430265426635742, 0.18335357308387756, -1.5268257856369019, -0.2253863364458084, -0.20169033110141754, -0.5552569031715393, -1.0981959104537964, -0.14922496676445007, 1.3347692489624023, -0.810119092464447, -0.1881132572889328, 0.5168298482894897, 0.21860304474830627, 0.603588342666626, 0.6632881760597229, -0.6411042213439941, -0.4639025032520294, -0.33078306913375854, -0.4166344106197357, 0.22474132478237152, 1.3494502305984497, -0.08290951699018478, -0.9668984413146973, 0.7658819556236267, -0.34617435932159424, 0.1220880001783371, 1.9102449417114258, 0.043778762221336365, -0.851012110710144, 0.31102249026298523, -0.6655414700508118, 1.866420865058899, 1.6391481161117554, 1.2674199342727661, -0.13208237290382385, -0.9596886038780212, 0.52530837059021, -0.34883439540863037, -0.40560492873191833, 0.8298443555831909, 0.4739050567150116, -0.1527664214372635, -1.3473148345947266, 0.578481912612915, 1.3377602100372314, -0.963477373123169, -0.8332571983337402, 0.1380067765712738, -0.8912662863731384, 1.0610953569412231, 0.7710890173912048, 0.38164740800857544, 0.3098475933074951, 1.5640668869018555, 0.8664352297782898, -0.4223727285861969, 0.5798423886299133, 0.5487961769104004, -0.09030108898878098, -2.0601000785827637, -1.0959264039993286, 0.2626573145389557, -0.39745330810546875, -1.6246930360794067, 1.3449890613555908, -1.19419527053833, -0.8273165225982666, 0.49649301171302795, 0.2604915499687195, 1.52641761302948, 0.35813042521476746, 1.6162320375442505, 2.0979862213134766, 0.9783859848976135, 0.29367268085479736, 1.345859408378601, 0.017442060634493828, -0.5012978911399841, 1.8266949653625488, -0.39387398958206177, 0.4817139506340027, 1.1152458190917969, -0.3747158646583557, -1.0652292966842651, -0.7980297803878784, -1.3377944231033325, -0.728481113910675, 1.2187151908874512, 0.06614283472299576, -1.1910293102264404, 0.2479373812675476, 1.6477049589157104, 0.041370853781700134, -0.36176496744155884, 0.7174364328384399, 0.3430662751197815, -0.8295748233795166, -0.12032823264598846, -0.9357007741928101, 0.4206778109073639, -0.039152950048446655, -0.3299146890640259, 0.23198933899402618, 0.45840370655059814, 1.2648835182189941, 0.028637049719691277, 0.08795215934515, 1.062387228012085, -1.4318702220916748, 1.562350869178772, -0.7278836369514465, 0.2915240228176117, -2.3192074298858643, 1.3523274660110474, -0.843544602394104, 1.794439435005188, -2.6177873611450195, 0.37660273909568787, -0.46365049481391907, -0.47573354840278625, 0.14062835276126862, -0.4509666860103607, 0.14818504452705383, -0.1112704947590828, -1.178088903427124, -0.153514564037323, -0.767338752746582, 0.651556134223938, 1.1921498775482178, 1.3543659448623657, -1.1598905324935913, -0.3631533980369568, -1.7806662321090698, -0.19068343937397003, -0.6391419172286987, 0.3267561197280884, -1.960614800453186, -0.13434875011444092, -1.8257346153259277, -2.2745113372802734, -1.4003252983093262, -0.9017486572265625, 1.0927324295043945, 0.14303554594516754, -0.9190769791603088, 1.1178067922592163, -0.39172598719596863, -1.8895220756530762, 1.1157680749893188, -2.2734780311584473 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
1,000
30
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature.
[ -1.201468825340271, -0.7746816873550415, -0.6459198594093323, 1.4882506132125854, -0.015453265979886055, -1.35554039478302, 0.10223808139562607, -0.8974181413650513, 1.6938108205795288, -0.8448341488838196, 0.3939143121242523, -1.7225538492202759, 0.07499473541975021, -0.656111478805542, -0.7071961760520935, -0.6894180774688721, -0.3152649998664856, -0.6501471996307373, 1.112879991531372, 2.470877170562744, 1.1746184825897217, -1.3025654554367065, 2.789386034011841, 0.688117265701294, -0.25606226921081543, -0.8240587711334229, 0.3747425377368927, 0.014296460896730423, -1.5077736377716064, -0.24961517751216888, -0.9448063373565674, -0.0729837566614151, -0.6687612533569336, -0.6563407182693481, 0.08756828308105469, 0.505547821521759, -0.238017737865448, -0.4602823257446289, -0.42629143595695496, -0.7297080159187317, 0.5533207058906555, -0.30505430698394775, 0.822564959526062, -0.29781463742256165, 1.7647637128829956, -0.6602283716201782, 0.4728640913963318, 0.5213006138801575, 1.2364734411239624, 0.2708864212036133, -0.06202666461467743, 0.40524473786354065, 0.2279330939054489, 0.012271145358681679, 0.5187274217605591, 1.233500599861145, 0.5942846536636353, 0.5271718502044678, 0.7835416793823242, -2.215269088745117, 1.381300449371338, -0.7481448650360107, 0.24688097834587097, 1.2414252758026123, -1.0790479183197021, 0.4997422397136688, -1.8764984607696533, -0.13699857890605927, 0.39545026421546936, -2.281707286834717, 0.11317183077335358, -1.2849129438400269, -0.5666986107826233, 1.0231406688690186, 0.3283330202102661, -1.212731957435608, -0.06368289887905121, -0.4578624963760376, 0.9151660799980164, 0.4001508355140686, 1.1582388877868652, -1.6949098110198975, 0.007444122806191444, -0.26210013031959534, 0.3835093080997467, -1.2398474216461182, -1.5760197639465332, 0.6828622817993164, 0.7846688032150269, 0.609448254108429, -0.18654966354370117, 0.8484405875205994, -1.024340271949768, 0.751608669757843, -0.9432849884033203, -1.8502197265625, -1.321057915687561, -2.33842134475708, -2.3891656398773193, 0.7380644679069519, -0.4097014367580414, -0.4062805771827698, 2.152127742767334, -1.150689721107483, -1.8164435625076294, 1.0232963562011719, 0.33407342433929443, -0.14787563681602478, 2.360823154449463, 0.2007141411304474, -0.9212551712989807, 0.7551915645599365, -0.8252842426300049, 0.658152163028717, -0.4024004638195038, 1.3242223262786865, 0.38029006123542786, -1.1295491456985474, 1.5935887098312378, -0.4126223921775818, 0.5571125149726868, -0.7871409058570862, -0.3381344974040985, -0.5580514073371887, 0.1951962113380432, 1.953160285949707, -0.174503356218338, 1.568914771080017, -0.1908753514289856, -1.465942621231079, -1.3799595832824707, 0.7228844165802002, 0.5848079919815063, -0.7996624708175659, 0.24939599633216858, -0.409881055355072, 0.13779950141906738, 0.17121915519237518, 1.0896117687225342, 1.2891641855239868, 0.8144619464874268, -0.12946587800979614, -0.8869891166687012, 0.0770874172449112, -0.007810352370142937, -0.574394941329956, -1.7385804653167725, -0.29992175102233887, 0.24127066135406494, 0.6263999342918396, -1.2169146537780762, 1.8994386196136475, 0.858680248260498, 2.0380210876464844, 1.0485899448394775, -0.34937095642089844, 1.5422089099884033, 0.09400199353694916, 1.957802176475525, -0.2661740481853485, 0.7129787802696228, -0.5146142244338989, -1.157945156097412, 0.6353763937950134, -0.30835506319999695, -2.043769121170044, -0.3779616057872772, -0.8416277766227722, -0.13917723298072815, -0.8657509684562683, 1.0124825239181519, -0.18772821128368378, -1.3485304117202759, 0.27852219343185425, -0.7146972417831421, 0.1495269536972046, -1.402872920036316, 0.2729056179523468, 0.754913866519928, -0.7505882978439331, 0.10139936208724976, -0.48883700370788574, -1.393741250038147, -0.659003734588623, 0.44911590218544006, 1.6958245038986206, -0.7013188600540161, 1.0011491775512695, 0.991405189037323, -0.5705760717391968, -0.11192061752080917, 0.5079029202461243, -0.38511940836906433, 0.8888553380966187, -1.0078318119049072, -0.34781819581985474, 1.080191969871521, -0.3032941222190857, -0.4890117049217224, 1.2902580499649048, 0.7316467761993408, -0.9398584365844727, -0.28088489174842834, -0.10859625786542892, -0.8433868288993835, 0.04916349798440933, -1.617735505104065, -0.05937136709690094, 0.2870771288871765, -1.4873046875, -0.4976198673248291, -0.06480041146278381, 1.2607054710388184, 0.06992010027170181, 1.2943115234375, -0.21317560970783234, -0.1610497385263443, -0.5361241698265076, -0.5060766339302063, 0.0909973606467247, -0.15384751558303833, -0.6539743542671204, 0.2979034185409546, -0.7091692090034485, 0.18328270316123962, 1.4142369031906128, 0.2618023753166199, 0.11206815391778946, 0.5901713371276855, 1.2499994039535522, 0.31445252895355225, -0.18336860835552216, -0.772445797920227, -1.732638955116272, 1.9482563734054565, -1.5691277980804443, 1.9479024410247803, 0.8673080801963806, 0.0014239614829421043, -1.858672022819519, -1.8373103141784668, 1.558694839477539, 1.0795022249221802, 2.570787191390991, 0.5650807619094849, 0.40766197443008423, -0.7858330607414246, -0.6597399115562439, 0.4502127766609192, -0.715076744556427, -0.9572372436523438, 0.14473195374011993, 2.328169107437134, 1.7350926399230957, -0.3777216076850891, -0.20446887612342834, -1.0133424997329712, 1.3652435541152954, -0.2681247293949127, 0.22504965960979462, 1.830952763557434, -0.36107829213142395, -1.0487788915634155, 1.2755053043365479, -2.3247106075286865, 0.27772098779678345, 1.9427870512008667, 0.2717963457107544, 0.006953036412596703, -1.1116902828216553, -0.783701479434967, -0.1205984577536583, -0.4500259757041931, -1.2554713487625122, 0.32936325669288635, -0.16649824380874634, -0.7625059485435486, -1.4086873531341553, 0.021292319521307945, -1.1961060762405396, -1.682641863822937, 0.29657915234565735, 1.8141071796417236, 2.106194019317627, -0.7784294486045837, 1.3460066318511963, -0.30273857712745667, 0.29950010776519775, 1.1622828245162964, 1.234825849533081, 3.260634422302246, 1.9066451787948608, -1.2543556690216064, 0.720266580581665, -0.13894039392471313, -0.5563351511955261, 1.2417494058609009, -1.013346552848816, 1.2092790603637695, -0.33021795749664307, -1.3268898725509644, -1.2059366703033447, 0.8869647979736328, 0.4865941107273102, -0.014840260148048401, -0.4947716295719147, 1.0511285066604614, 0.19122430682182312, 1.3279528617858887, 0.596170961856842, -0.2892022728919983, 0.5567654967308044, -0.33169522881507874, -0.5662591457366943, 1.5777031183242798, 0.06225132197141647, -1.4739171266555786, -2.290219783782959, -0.12195274978876114, -0.9449542760848999, -0.0027741813100874424, -0.8759316802024841, -1.0455337762832642, 1.5079234838485718, 0.49071672558784485, -0.9442551136016846, -0.037448130548000336, -0.39228981733322144, -0.6468560695648193, 2.632032871246338, -1.3778924942016602, -0.28207921981811523, -0.9191087484359741, -0.630527138710022, 1.5160080194473267, -1.1117615699768066, -0.26403284072875977, -1.0326963663101196, -0.4496256113052368, -1.2791239023208618, -0.4670484960079193, -0.08356039226055145, -0.7715320587158203, 0.7473523020744324, -0.06054338812828064, -1.3258483409881592, -0.24466468393802643, -1.0478432178497314, 0.8693869113922119, -0.28737303614616394, 0.023350069299340248, 1.7498698234558105, 0.3315906524658203, -0.3591654300689697, 0.7607805132865906, 1.2122787237167358, 0.6051623225212097, -0.5535537600517273, 0.31379300355911255, -0.6522537469863892, 0.4306876063346863, -1.2028446197509766, 0.2950459420681, -2.894490957260132, 0.6960712671279907, 0.10950663685798645, -0.055471912026405334, -0.10868041962385178, -1.441673994064331, 0.8843791484832764, 2.5070414543151855, -1.1157417297363281, 0.5619699954986572, 0.3104025423526764, 1.1655995845794678, -1.640162706375122, 0.05423733592033386, -0.6655118465423584, 2.0842580795288086, 0.0443560853600502, 1.0811678171157837, -0.5868567228317261, -2.3253796100616455, 0.5220686197280884, -1.2153003215789795, -1.0221208333969116, 0.8538513779640198, -0.8759205341339111, 0.1374487578868866, -1.1626005172729492, -0.09819314628839493, -0.8839735388755798, -1.151525855064392, 0.5814100503921509, 0.06595674902200699, 0.6793345808982849, -0.6233767867088318, 0.26461127400398254, -2.288417339324951, -1.3869082927703857, -0.24583180248737335, -0.9067347049713135, 0.469872385263443, -0.35908812284469604, 0.7329635620117188, -0.12847764790058136, 0.05793441832065582, 0.2755252718925476, 1.4886471033096313, 3.118514060974121, 0.0346575528383255, 0.34808599948883057, -0.3134879767894745, -1.0424354076385498, 1.5054048299789429, 0.9359871745109558, -0.25801730155944824, -0.6335965394973755, -0.9731473326683044, 1.2532204389572144, 1.9402899742126465, 1.0773742198944092, 0.08509235829114914, -0.966342568397522, -0.8021821975708008, 0.13146962225437164, 0.08279679715633392, 0.3918518126010895, 1.018835186958313, 0.18512028455734253, 0.22095297276973724, 1.4173731803894043, 1.1093249320983887, -0.2757227420806885, 0.5406167507171631, -0.7743393182754517, -0.39383581280708313, 0.5499423146247864, 0.4359515309333801, 0.0000016335397958755493, 0.19322705268859863, -1.0890237092971802, -0.1721791923046112, -0.28192535042762756, -0.9059517979621887, -0.7602343559265137, -0.42876943945884705, -0.3996554911136627, 1.7789133787155151, -0.12382671982049942, -0.5190041065216064, -0.0032545411959290504, -0.7755884528160095, -0.058744803071022034, -0.9346883893013, 0.3721960484981537, -0.18005214631557465, 0.042739540338516235, -0.07194353640079498, 1.604207158088684, -1.0311747789382935, -2.2529799938201904, 0.196816548705101, 0.18411627411842346, -0.3946150243282318, -0.06581635773181915, 1.8396074771881104, 0.6020734310150146, 1.4361562728881836, 1.61467444896698, 1.10371994972229, -0.7296827435493469, -1.3096450567245483, 0.7046563625335693, 0.9100799560546875, -1.3158116340637207, 0.8996793627738953, -0.10813993960618973, -0.6841897964477539, 0.5322864055633545, 1.2753334045410156, 0.44281989336013794, -1.960756778717041, 0.8108444213867188, -1.1045105457305908, 0.8282637000083923, 0.7521418333053589, 0.8258810639381409, 0.07836233079433441, 0.857681155204773, -1.2702178955078125, -1.0060466527938843, -0.6026333570480347, -0.6458929777145386, 1.8460592031478882, -0.25004470348358154, 0.32049983739852905, -0.28204232454299927, -1.342283844947815, 0.1682417243719101, 0.7027988433837891, 0.30904996395111084, -0.3663824200630188, 0.6944335103034973, -0.6981566548347473, -1.1054733991622925, -1.3113315105438232, -0.48689979314804077, -0.9930881857872009, -0.8193573355674744, 0.9313908219337463, 0.7511075139045715, 0.49630966782569885, 1.9397300481796265, 0.6759385466575623, 0.17984400689601898, -2.624729871749878, 0.8234508633613586, 0.34136685729026794, -0.08673397451639175, 0.8527865409851074, 0.3072778880596161, 1.1615084409713745, -0.18895632028579712, 0.6142283082008362, -2.3127217292785645, 2.212042808532715, -0.3042292594909668, 0.736598789691925, 0.02491932176053524, -0.005282753612846136, 1.0011780261993408, 0.48196130990982056, 0.5483041405677795, -1.0755219459533691, 0.8999155759811401, -0.6300313472747803, 1.1636353731155396, 0.8328479528427124, -0.8939896821975708, 0.15255895256996155, 1.186693787574768, 0.3114810585975647, -0.4918684661388397, -1.0417389869689941, -0.8501225709915161, 0.9943477511405945, 1.8018149137496948, -0.00883434433490038, 0.13518007099628448, 0.8681736588478088, 0.7577421069145203, -1.3771682977676392, 0.031921714544296265, -0.6390563249588013, -0.7194453477859497, 1.8209028244018555, 2.045346260070801, -0.01586369425058365, -0.08446905761957169, -0.7342537045478821, -1.412050724029541, 0.8873291611671448, 0.1864491105079651, -0.06600609421730042, 0.7794934511184692, -0.6784667372703552, 1.1871663331985474, 0.8610138297080994, 0.8591586351394653, 0.2473793625831604, 0.04365275800228119, 0.24786821007728577, -0.29156723618507385, -1.2281798124313354, -0.2563679814338684, -0.9303256869316101, -2.502229928970337, 0.4184199273586273, -0.21245887875556946, -1.4847383499145508, 0.17155908048152924, -1.0106775760650635, 0.6978781819343567, -0.5112450122833252, -1.20186185836792, -1.3973090648651123, 0.2414984107017517, -0.1763676106929779, 0.7636175751686096, -1.5676897764205933, -0.12865059077739716, 1.125870943069458, 0.9718422889709473, -0.6717217564582825, 0.870185911655426, 0.27849727869033813, 0.9034169912338257, 1.0995668172836304, -0.41958245635032654, 0.3806340992450714, 0.2668458819389343, -1.3211814165115356, 0.30982741713523865, 1.354398488998413, 0.20955359935760498, 1.3849190473556519, -0.5146029591560364, -0.07527947425842285, 0.40370097756385803, -0.22992603480815887, -0.47976475954055786, -0.8485048413276672, 0.624768078327179, -0.0843496322631836, -0.9338443875312805, -0.04848656803369522, 0.11824756860733032, -0.14401984214782715, 0.35141199827194214, -1.5319617986679077, 0.0019267667084932327, -0.35662126541137695, -0.7027246952056885, -1.2877098321914673, -0.05615779757499695, 1.312835454940796, -0.8541297912597656, -0.1262964904308319, 0.6055002808570862, 0.15783856809139252, 0.557590126991272, 0.6521531343460083, -0.7781538963317871, -0.2665068209171295, -0.08440238237380981, -0.45544013381004333, 0.32839876413345337, 1.2975953817367554, -0.0921090766787529, -0.9772144556045532, 0.5530056953430176, -0.2583930492401123, 0.20737087726593018, 1.958711862564087, 0.0500183179974556, -0.9087716341018677, 0.2788313925266266, -0.7419353127479553, 1.863126516342163, 1.6553999185562134, 1.3270083665847778, -0.08253075927495956, -0.9969663023948669, 0.5982213020324707, -0.3174856901168823, -0.42143964767456055, 0.9208745956420898, 0.4239766001701355, -0.2501840591430664, -1.360418677330017, 0.7494872808456421, 1.26554274559021, -0.792462170124054, -0.7983929514884949, 0.08561665564775467, -0.8287448287010193, 1.2413268089294434, 0.7241576910018921, 0.3007506728172302, 0.26707687973976135, 1.6710528135299683, 0.7367475628852844, -0.5493157505989075, 0.5454475283622742, 0.43073126673698425, -0.1752508282661438, -1.9808584451675415, -1.1080704927444458, 0.30904412269592285, -0.4212270975112915, -1.5248932838439941, 1.3920910358428955, -1.3072500228881836, -0.9957011342048645, 0.5750454664230347, 0.17602603137493134, 1.379516363143921, 0.24138939380645752, 1.7160663604736328, 1.999550461769104, 0.9299308657646179, 0.4542989730834961, 1.1223992109298706, -0.2838484048843384, -0.25701677799224854, 1.631195306777954, -0.5170602202415466, 0.6952012181282043, 1.0477124452590942, -0.37720581889152527, -1.2286851406097412, -0.8288577198982239, -1.2363709211349487, -0.8450298309326172, 1.0429445505142212, 0.15226227045059204, -1.1974190473556519, 0.3648289144039154, 1.6392958164215088, -0.013575771823525429, -0.14695364236831665, 0.7589622735977173, 0.3666572570800781, -0.6666484475135803, -0.07905784994363785, -1.0437040328979492, 0.5599266290664673, -0.3341742753982544, -0.3887561559677124, 0.2080451250076294, 0.6017283201217651, 1.2064934968948364, 0.20471619069576263, 0.04651052504777908, 1.409522294998169, -1.3461003303527832, 1.1902832984924316, -1.0343292951583862, 0.3633604943752289, -2.2895100116729736, 1.5518839359283447, -0.9570980668067932, 1.9153822660446167, -2.699584722518921, 0.5081380605697632, -0.48597779870033264, -0.5765770673751831, 0.18318305909633636, -0.11230562627315521, 0.11323156952857971, -0.048978790640830994, -1.0202202796936035, -0.16897642612457275, -0.8790683150291443, 0.4643232822418213, 1.235912561416626, 1.342649221420288, -0.9669384360313416, -0.24354293942451477, -1.6425423622131348, -0.25706544518470764, -0.43694552779197693, 0.17694993317127228, -1.7467728853225708, -0.1533956378698349, -2.02063250541687, -2.55645489692688, -1.3563764095306396, -0.9903221130371094, 1.294335126876831, 0.11170317977666855, -0.928274393081665, 1.1123363971710205, -0.46942806243896484, -1.7956551313400269, 1.3005471229553223, -2.252528190612793 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
> Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature. Thanks, I'll keep an eye out for #3575 getting merged. I managed to use `push_to_hub` sucesfully with images when they were loaded via `map` - something like `ds.map(lambda example: {"img": load_image_function(example['fname']})`, this only pushed the images to the hub if the `load_image_function` return a PIL Image without the filename attribute though. I guess this might often be the prefered behaviour though.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
1,000
92
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 > Hi! Thanks for reporting! The issue with `cast_column` should be fixed by #3575 and after we merge that PR I'll start working on the `push_to_hub` support for the `Image`/`Audio` feature. Thanks, I'll keep an eye out for #3575 getting merged. I managed to use `push_to_hub` sucesfully with images when they were loaded via `map` - something like `ds.map(lambda example: {"img": load_image_function(example['fname']})`, this only pushed the images to the hub if the `load_image_function` return a PIL Image without the filename attribute though. I guess this might often be the prefered behaviour though.
[ -1.201468825340271, -0.7746816873550415, -0.6459198594093323, 1.4882506132125854, -0.015453265979886055, -1.35554039478302, 0.10223808139562607, -0.8974181413650513, 1.6938108205795288, -0.8448341488838196, 0.3939143121242523, -1.7225538492202759, 0.07499473541975021, -0.656111478805542, -0.7071961760520935, -0.6894180774688721, -0.3152649998664856, -0.6501471996307373, 1.112879991531372, 2.470877170562744, 1.1746184825897217, -1.3025654554367065, 2.789386034011841, 0.688117265701294, -0.25606226921081543, -0.8240587711334229, 0.3747425377368927, 0.014296460896730423, -1.5077736377716064, -0.24961517751216888, -0.9448063373565674, -0.0729837566614151, -0.6687612533569336, -0.6563407182693481, 0.08756828308105469, 0.505547821521759, -0.238017737865448, -0.4602823257446289, -0.42629143595695496, -0.7297080159187317, 0.5533207058906555, -0.30505430698394775, 0.822564959526062, -0.29781463742256165, 1.7647637128829956, -0.6602283716201782, 0.4728640913963318, 0.5213006138801575, 1.2364734411239624, 0.2708864212036133, -0.06202666461467743, 0.40524473786354065, 0.2279330939054489, 0.012271145358681679, 0.5187274217605591, 1.233500599861145, 0.5942846536636353, 0.5271718502044678, 0.7835416793823242, -2.215269088745117, 1.381300449371338, -0.7481448650360107, 0.24688097834587097, 1.2414252758026123, -1.0790479183197021, 0.4997422397136688, -1.8764984607696533, -0.13699857890605927, 0.39545026421546936, -2.281707286834717, 0.11317183077335358, -1.2849129438400269, -0.5666986107826233, 1.0231406688690186, 0.3283330202102661, -1.212731957435608, -0.06368289887905121, -0.4578624963760376, 0.9151660799980164, 0.4001508355140686, 1.1582388877868652, -1.6949098110198975, 0.007444122806191444, -0.26210013031959534, 0.3835093080997467, -1.2398474216461182, -1.5760197639465332, 0.6828622817993164, 0.7846688032150269, 0.609448254108429, -0.18654966354370117, 0.8484405875205994, -1.024340271949768, 0.751608669757843, -0.9432849884033203, -1.8502197265625, -1.321057915687561, -2.33842134475708, -2.3891656398773193, 0.7380644679069519, -0.4097014367580414, -0.4062805771827698, 2.152127742767334, -1.150689721107483, -1.8164435625076294, 1.0232963562011719, 0.33407342433929443, -0.14787563681602478, 2.360823154449463, 0.2007141411304474, -0.9212551712989807, 0.7551915645599365, -0.8252842426300049, 0.658152163028717, -0.4024004638195038, 1.3242223262786865, 0.38029006123542786, -1.1295491456985474, 1.5935887098312378, -0.4126223921775818, 0.5571125149726868, -0.7871409058570862, -0.3381344974040985, -0.5580514073371887, 0.1951962113380432, 1.953160285949707, -0.174503356218338, 1.568914771080017, -0.1908753514289856, -1.465942621231079, -1.3799595832824707, 0.7228844165802002, 0.5848079919815063, -0.7996624708175659, 0.24939599633216858, -0.409881055355072, 0.13779950141906738, 0.17121915519237518, 1.0896117687225342, 1.2891641855239868, 0.8144619464874268, -0.12946587800979614, -0.8869891166687012, 0.0770874172449112, -0.007810352370142937, -0.574394941329956, -1.7385804653167725, -0.29992175102233887, 0.24127066135406494, 0.6263999342918396, -1.2169146537780762, 1.8994386196136475, 0.858680248260498, 2.0380210876464844, 1.0485899448394775, -0.34937095642089844, 1.5422089099884033, 0.09400199353694916, 1.957802176475525, -0.2661740481853485, 0.7129787802696228, -0.5146142244338989, -1.157945156097412, 0.6353763937950134, -0.30835506319999695, -2.043769121170044, -0.3779616057872772, -0.8416277766227722, -0.13917723298072815, -0.8657509684562683, 1.0124825239181519, -0.18772821128368378, -1.3485304117202759, 0.27852219343185425, -0.7146972417831421, 0.1495269536972046, -1.402872920036316, 0.2729056179523468, 0.754913866519928, -0.7505882978439331, 0.10139936208724976, -0.48883700370788574, -1.393741250038147, -0.659003734588623, 0.44911590218544006, 1.6958245038986206, -0.7013188600540161, 1.0011491775512695, 0.991405189037323, -0.5705760717391968, -0.11192061752080917, 0.5079029202461243, -0.38511940836906433, 0.8888553380966187, -1.0078318119049072, -0.34781819581985474, 1.080191969871521, -0.3032941222190857, -0.4890117049217224, 1.2902580499649048, 0.7316467761993408, -0.9398584365844727, -0.28088489174842834, -0.10859625786542892, -0.8433868288993835, 0.04916349798440933, -1.617735505104065, -0.05937136709690094, 0.2870771288871765, -1.4873046875, -0.4976198673248291, -0.06480041146278381, 1.2607054710388184, 0.06992010027170181, 1.2943115234375, -0.21317560970783234, -0.1610497385263443, -0.5361241698265076, -0.5060766339302063, 0.0909973606467247, -0.15384751558303833, -0.6539743542671204, 0.2979034185409546, -0.7091692090034485, 0.18328270316123962, 1.4142369031906128, 0.2618023753166199, 0.11206815391778946, 0.5901713371276855, 1.2499994039535522, 0.31445252895355225, -0.18336860835552216, -0.772445797920227, -1.732638955116272, 1.9482563734054565, -1.5691277980804443, 1.9479024410247803, 0.8673080801963806, 0.0014239614829421043, -1.858672022819519, -1.8373103141784668, 1.558694839477539, 1.0795022249221802, 2.570787191390991, 0.5650807619094849, 0.40766197443008423, -0.7858330607414246, -0.6597399115562439, 0.4502127766609192, -0.715076744556427, -0.9572372436523438, 0.14473195374011993, 2.328169107437134, 1.7350926399230957, -0.3777216076850891, -0.20446887612342834, -1.0133424997329712, 1.3652435541152954, -0.2681247293949127, 0.22504965960979462, 1.830952763557434, -0.36107829213142395, -1.0487788915634155, 1.2755053043365479, -2.3247106075286865, 0.27772098779678345, 1.9427870512008667, 0.2717963457107544, 0.006953036412596703, -1.1116902828216553, -0.783701479434967, -0.1205984577536583, -0.4500259757041931, -1.2554713487625122, 0.32936325669288635, -0.16649824380874634, -0.7625059485435486, -1.4086873531341553, 0.021292319521307945, -1.1961060762405396, -1.682641863822937, 0.29657915234565735, 1.8141071796417236, 2.106194019317627, -0.7784294486045837, 1.3460066318511963, -0.30273857712745667, 0.29950010776519775, 1.1622828245162964, 1.234825849533081, 3.260634422302246, 1.9066451787948608, -1.2543556690216064, 0.720266580581665, -0.13894039392471313, -0.5563351511955261, 1.2417494058609009, -1.013346552848816, 1.2092790603637695, -0.33021795749664307, -1.3268898725509644, -1.2059366703033447, 0.8869647979736328, 0.4865941107273102, -0.014840260148048401, -0.4947716295719147, 1.0511285066604614, 0.19122430682182312, 1.3279528617858887, 0.596170961856842, -0.2892022728919983, 0.5567654967308044, -0.33169522881507874, -0.5662591457366943, 1.5777031183242798, 0.06225132197141647, -1.4739171266555786, -2.290219783782959, -0.12195274978876114, -0.9449542760848999, -0.0027741813100874424, -0.8759316802024841, -1.0455337762832642, 1.5079234838485718, 0.49071672558784485, -0.9442551136016846, -0.037448130548000336, -0.39228981733322144, -0.6468560695648193, 2.632032871246338, -1.3778924942016602, -0.28207921981811523, -0.9191087484359741, -0.630527138710022, 1.5160080194473267, -1.1117615699768066, -0.26403284072875977, -1.0326963663101196, -0.4496256113052368, -1.2791239023208618, -0.4670484960079193, -0.08356039226055145, -0.7715320587158203, 0.7473523020744324, -0.06054338812828064, -1.3258483409881592, -0.24466468393802643, -1.0478432178497314, 0.8693869113922119, -0.28737303614616394, 0.023350069299340248, 1.7498698234558105, 0.3315906524658203, -0.3591654300689697, 0.7607805132865906, 1.2122787237167358, 0.6051623225212097, -0.5535537600517273, 0.31379300355911255, -0.6522537469863892, 0.4306876063346863, -1.2028446197509766, 0.2950459420681, -2.894490957260132, 0.6960712671279907, 0.10950663685798645, -0.055471912026405334, -0.10868041962385178, -1.441673994064331, 0.8843791484832764, 2.5070414543151855, -1.1157417297363281, 0.5619699954986572, 0.3104025423526764, 1.1655995845794678, -1.640162706375122, 0.05423733592033386, -0.6655118465423584, 2.0842580795288086, 0.0443560853600502, 1.0811678171157837, -0.5868567228317261, -2.3253796100616455, 0.5220686197280884, -1.2153003215789795, -1.0221208333969116, 0.8538513779640198, -0.8759205341339111, 0.1374487578868866, -1.1626005172729492, -0.09819314628839493, -0.8839735388755798, -1.151525855064392, 0.5814100503921509, 0.06595674902200699, 0.6793345808982849, -0.6233767867088318, 0.26461127400398254, -2.288417339324951, -1.3869082927703857, -0.24583180248737335, -0.9067347049713135, 0.469872385263443, -0.35908812284469604, 0.7329635620117188, -0.12847764790058136, 0.05793441832065582, 0.2755252718925476, 1.4886471033096313, 3.118514060974121, 0.0346575528383255, 0.34808599948883057, -0.3134879767894745, -1.0424354076385498, 1.5054048299789429, 0.9359871745109558, -0.25801730155944824, -0.6335965394973755, -0.9731473326683044, 1.2532204389572144, 1.9402899742126465, 1.0773742198944092, 0.08509235829114914, -0.966342568397522, -0.8021821975708008, 0.13146962225437164, 0.08279679715633392, 0.3918518126010895, 1.018835186958313, 0.18512028455734253, 0.22095297276973724, 1.4173731803894043, 1.1093249320983887, -0.2757227420806885, 0.5406167507171631, -0.7743393182754517, -0.39383581280708313, 0.5499423146247864, 0.4359515309333801, 0.0000016335397958755493, 0.19322705268859863, -1.0890237092971802, -0.1721791923046112, -0.28192535042762756, -0.9059517979621887, -0.7602343559265137, -0.42876943945884705, -0.3996554911136627, 1.7789133787155151, -0.12382671982049942, -0.5190041065216064, -0.0032545411959290504, -0.7755884528160095, -0.058744803071022034, -0.9346883893013, 0.3721960484981537, -0.18005214631557465, 0.042739540338516235, -0.07194353640079498, 1.604207158088684, -1.0311747789382935, -2.2529799938201904, 0.196816548705101, 0.18411627411842346, -0.3946150243282318, -0.06581635773181915, 1.8396074771881104, 0.6020734310150146, 1.4361562728881836, 1.61467444896698, 1.10371994972229, -0.7296827435493469, -1.3096450567245483, 0.7046563625335693, 0.9100799560546875, -1.3158116340637207, 0.8996793627738953, -0.10813993960618973, -0.6841897964477539, 0.5322864055633545, 1.2753334045410156, 0.44281989336013794, -1.960756778717041, 0.8108444213867188, -1.1045105457305908, 0.8282637000083923, 0.7521418333053589, 0.8258810639381409, 0.07836233079433441, 0.857681155204773, -1.2702178955078125, -1.0060466527938843, -0.6026333570480347, -0.6458929777145386, 1.8460592031478882, -0.25004470348358154, 0.32049983739852905, -0.28204232454299927, -1.342283844947815, 0.1682417243719101, 0.7027988433837891, 0.30904996395111084, -0.3663824200630188, 0.6944335103034973, -0.6981566548347473, -1.1054733991622925, -1.3113315105438232, -0.48689979314804077, -0.9930881857872009, -0.8193573355674744, 0.9313908219337463, 0.7511075139045715, 0.49630966782569885, 1.9397300481796265, 0.6759385466575623, 0.17984400689601898, -2.624729871749878, 0.8234508633613586, 0.34136685729026794, -0.08673397451639175, 0.8527865409851074, 0.3072778880596161, 1.1615084409713745, -0.18895632028579712, 0.6142283082008362, -2.3127217292785645, 2.212042808532715, -0.3042292594909668, 0.736598789691925, 0.02491932176053524, -0.005282753612846136, 1.0011780261993408, 0.48196130990982056, 0.5483041405677795, -1.0755219459533691, 0.8999155759811401, -0.6300313472747803, 1.1636353731155396, 0.8328479528427124, -0.8939896821975708, 0.15255895256996155, 1.186693787574768, 0.3114810585975647, -0.4918684661388397, -1.0417389869689941, -0.8501225709915161, 0.9943477511405945, 1.8018149137496948, -0.00883434433490038, 0.13518007099628448, 0.8681736588478088, 0.7577421069145203, -1.3771682977676392, 0.031921714544296265, -0.6390563249588013, -0.7194453477859497, 1.8209028244018555, 2.045346260070801, -0.01586369425058365, -0.08446905761957169, -0.7342537045478821, -1.412050724029541, 0.8873291611671448, 0.1864491105079651, -0.06600609421730042, 0.7794934511184692, -0.6784667372703552, 1.1871663331985474, 0.8610138297080994, 0.8591586351394653, 0.2473793625831604, 0.04365275800228119, 0.24786821007728577, -0.29156723618507385, -1.2281798124313354, -0.2563679814338684, -0.9303256869316101, -2.502229928970337, 0.4184199273586273, -0.21245887875556946, -1.4847383499145508, 0.17155908048152924, -1.0106775760650635, 0.6978781819343567, -0.5112450122833252, -1.20186185836792, -1.3973090648651123, 0.2414984107017517, -0.1763676106929779, 0.7636175751686096, -1.5676897764205933, -0.12865059077739716, 1.125870943069458, 0.9718422889709473, -0.6717217564582825, 0.870185911655426, 0.27849727869033813, 0.9034169912338257, 1.0995668172836304, -0.41958245635032654, 0.3806340992450714, 0.2668458819389343, -1.3211814165115356, 0.30982741713523865, 1.354398488998413, 0.20955359935760498, 1.3849190473556519, -0.5146029591560364, -0.07527947425842285, 0.40370097756385803, -0.22992603480815887, -0.47976475954055786, -0.8485048413276672, 0.624768078327179, -0.0843496322631836, -0.9338443875312805, -0.04848656803369522, 0.11824756860733032, -0.14401984214782715, 0.35141199827194214, -1.5319617986679077, 0.0019267667084932327, -0.35662126541137695, -0.7027246952056885, -1.2877098321914673, -0.05615779757499695, 1.312835454940796, -0.8541297912597656, -0.1262964904308319, 0.6055002808570862, 0.15783856809139252, 0.557590126991272, 0.6521531343460083, -0.7781538963317871, -0.2665068209171295, -0.08440238237380981, -0.45544013381004333, 0.32839876413345337, 1.2975953817367554, -0.0921090766787529, -0.9772144556045532, 0.5530056953430176, -0.2583930492401123, 0.20737087726593018, 1.958711862564087, 0.0500183179974556, -0.9087716341018677, 0.2788313925266266, -0.7419353127479553, 1.863126516342163, 1.6553999185562134, 1.3270083665847778, -0.08253075927495956, -0.9969663023948669, 0.5982213020324707, -0.3174856901168823, -0.42143964767456055, 0.9208745956420898, 0.4239766001701355, -0.2501840591430664, -1.360418677330017, 0.7494872808456421, 1.26554274559021, -0.792462170124054, -0.7983929514884949, 0.08561665564775467, -0.8287448287010193, 1.2413268089294434, 0.7241576910018921, 0.3007506728172302, 0.26707687973976135, 1.6710528135299683, 0.7367475628852844, -0.5493157505989075, 0.5454475283622742, 0.43073126673698425, -0.1752508282661438, -1.9808584451675415, -1.1080704927444458, 0.30904412269592285, -0.4212270975112915, -1.5248932838439941, 1.3920910358428955, -1.3072500228881836, -0.9957011342048645, 0.5750454664230347, 0.17602603137493134, 1.379516363143921, 0.24138939380645752, 1.7160663604736328, 1.999550461769104, 0.9299308657646179, 0.4542989730834961, 1.1223992109298706, -0.2838484048843384, -0.25701677799224854, 1.631195306777954, -0.5170602202415466, 0.6952012181282043, 1.0477124452590942, -0.37720581889152527, -1.2286851406097412, -0.8288577198982239, -1.2363709211349487, -0.8450298309326172, 1.0429445505142212, 0.15226227045059204, -1.1974190473556519, 0.3648289144039154, 1.6392958164215088, -0.013575771823525429, -0.14695364236831665, 0.7589622735977173, 0.3666572570800781, -0.6666484475135803, -0.07905784994363785, -1.0437040328979492, 0.5599266290664673, -0.3341742753982544, -0.3887561559677124, 0.2080451250076294, 0.6017283201217651, 1.2064934968948364, 0.20471619069576263, 0.04651052504777908, 1.409522294998169, -1.3461003303527832, 1.1902832984924316, -1.0343292951583862, 0.3633604943752289, -2.2895100116729736, 1.5518839359283447, -0.9570980668067932, 1.9153822660446167, -2.699584722518921, 0.5081380605697632, -0.48597779870033264, -0.5765770673751831, 0.18318305909633636, -0.11230562627315521, 0.11323156952857971, -0.048978790640830994, -1.0202202796936035, -0.16897642612457275, -0.8790683150291443, 0.4643232822418213, 1.235912561416626, 1.342649221420288, -0.9669384360313416, -0.24354293942451477, -1.6425423622131348, -0.25706544518470764, -0.43694552779197693, 0.17694993317127228, -1.7467728853225708, -0.1533956378698349, -2.02063250541687, -2.55645489692688, -1.3563764095306396, -0.9903221130371094, 1.294335126876831, 0.11170317977666855, -0.928274393081665, 1.1123363971710205, -0.46942806243896484, -1.7956551313400269, 1.3005471229553223, -2.252528190612793 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ?
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
1,000
25
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ?
[ -1.201468825340271, -0.7746816873550415, -0.6459198594093323, 1.4882506132125854, -0.015453265979886055, -1.35554039478302, 0.10223808139562607, -0.8974181413650513, 1.6938108205795288, -0.8448341488838196, 0.3939143121242523, -1.7225538492202759, 0.07499473541975021, -0.656111478805542, -0.7071961760520935, -0.6894180774688721, -0.3152649998664856, -0.6501471996307373, 1.112879991531372, 2.470877170562744, 1.1746184825897217, -1.3025654554367065, 2.789386034011841, 0.688117265701294, -0.25606226921081543, -0.8240587711334229, 0.3747425377368927, 0.014296460896730423, -1.5077736377716064, -0.24961517751216888, -0.9448063373565674, -0.0729837566614151, -0.6687612533569336, -0.6563407182693481, 0.08756828308105469, 0.505547821521759, -0.238017737865448, -0.4602823257446289, -0.42629143595695496, -0.7297080159187317, 0.5533207058906555, -0.30505430698394775, 0.822564959526062, -0.29781463742256165, 1.7647637128829956, -0.6602283716201782, 0.4728640913963318, 0.5213006138801575, 1.2364734411239624, 0.2708864212036133, -0.06202666461467743, 0.40524473786354065, 0.2279330939054489, 0.012271145358681679, 0.5187274217605591, 1.233500599861145, 0.5942846536636353, 0.5271718502044678, 0.7835416793823242, -2.215269088745117, 1.381300449371338, -0.7481448650360107, 0.24688097834587097, 1.2414252758026123, -1.0790479183197021, 0.4997422397136688, -1.8764984607696533, -0.13699857890605927, 0.39545026421546936, -2.281707286834717, 0.11317183077335358, -1.2849129438400269, -0.5666986107826233, 1.0231406688690186, 0.3283330202102661, -1.212731957435608, -0.06368289887905121, -0.4578624963760376, 0.9151660799980164, 0.4001508355140686, 1.1582388877868652, -1.6949098110198975, 0.007444122806191444, -0.26210013031959534, 0.3835093080997467, -1.2398474216461182, -1.5760197639465332, 0.6828622817993164, 0.7846688032150269, 0.609448254108429, -0.18654966354370117, 0.8484405875205994, -1.024340271949768, 0.751608669757843, -0.9432849884033203, -1.8502197265625, -1.321057915687561, -2.33842134475708, -2.3891656398773193, 0.7380644679069519, -0.4097014367580414, -0.4062805771827698, 2.152127742767334, -1.150689721107483, -1.8164435625076294, 1.0232963562011719, 0.33407342433929443, -0.14787563681602478, 2.360823154449463, 0.2007141411304474, -0.9212551712989807, 0.7551915645599365, -0.8252842426300049, 0.658152163028717, -0.4024004638195038, 1.3242223262786865, 0.38029006123542786, -1.1295491456985474, 1.5935887098312378, -0.4126223921775818, 0.5571125149726868, -0.7871409058570862, -0.3381344974040985, -0.5580514073371887, 0.1951962113380432, 1.953160285949707, -0.174503356218338, 1.568914771080017, -0.1908753514289856, -1.465942621231079, -1.3799595832824707, 0.7228844165802002, 0.5848079919815063, -0.7996624708175659, 0.24939599633216858, -0.409881055355072, 0.13779950141906738, 0.17121915519237518, 1.0896117687225342, 1.2891641855239868, 0.8144619464874268, -0.12946587800979614, -0.8869891166687012, 0.0770874172449112, -0.007810352370142937, -0.574394941329956, -1.7385804653167725, -0.29992175102233887, 0.24127066135406494, 0.6263999342918396, -1.2169146537780762, 1.8994386196136475, 0.858680248260498, 2.0380210876464844, 1.0485899448394775, -0.34937095642089844, 1.5422089099884033, 0.09400199353694916, 1.957802176475525, -0.2661740481853485, 0.7129787802696228, -0.5146142244338989, -1.157945156097412, 0.6353763937950134, -0.30835506319999695, -2.043769121170044, -0.3779616057872772, -0.8416277766227722, -0.13917723298072815, -0.8657509684562683, 1.0124825239181519, -0.18772821128368378, -1.3485304117202759, 0.27852219343185425, -0.7146972417831421, 0.1495269536972046, -1.402872920036316, 0.2729056179523468, 0.754913866519928, -0.7505882978439331, 0.10139936208724976, -0.48883700370788574, -1.393741250038147, -0.659003734588623, 0.44911590218544006, 1.6958245038986206, -0.7013188600540161, 1.0011491775512695, 0.991405189037323, -0.5705760717391968, -0.11192061752080917, 0.5079029202461243, -0.38511940836906433, 0.8888553380966187, -1.0078318119049072, -0.34781819581985474, 1.080191969871521, -0.3032941222190857, -0.4890117049217224, 1.2902580499649048, 0.7316467761993408, -0.9398584365844727, -0.28088489174842834, -0.10859625786542892, -0.8433868288993835, 0.04916349798440933, -1.617735505104065, -0.05937136709690094, 0.2870771288871765, -1.4873046875, -0.4976198673248291, -0.06480041146278381, 1.2607054710388184, 0.06992010027170181, 1.2943115234375, -0.21317560970783234, -0.1610497385263443, -0.5361241698265076, -0.5060766339302063, 0.0909973606467247, -0.15384751558303833, -0.6539743542671204, 0.2979034185409546, -0.7091692090034485, 0.18328270316123962, 1.4142369031906128, 0.2618023753166199, 0.11206815391778946, 0.5901713371276855, 1.2499994039535522, 0.31445252895355225, -0.18336860835552216, -0.772445797920227, -1.732638955116272, 1.9482563734054565, -1.5691277980804443, 1.9479024410247803, 0.8673080801963806, 0.0014239614829421043, -1.858672022819519, -1.8373103141784668, 1.558694839477539, 1.0795022249221802, 2.570787191390991, 0.5650807619094849, 0.40766197443008423, -0.7858330607414246, -0.6597399115562439, 0.4502127766609192, -0.715076744556427, -0.9572372436523438, 0.14473195374011993, 2.328169107437134, 1.7350926399230957, -0.3777216076850891, -0.20446887612342834, -1.0133424997329712, 1.3652435541152954, -0.2681247293949127, 0.22504965960979462, 1.830952763557434, -0.36107829213142395, -1.0487788915634155, 1.2755053043365479, -2.3247106075286865, 0.27772098779678345, 1.9427870512008667, 0.2717963457107544, 0.006953036412596703, -1.1116902828216553, -0.783701479434967, -0.1205984577536583, -0.4500259757041931, -1.2554713487625122, 0.32936325669288635, -0.16649824380874634, -0.7625059485435486, -1.4086873531341553, 0.021292319521307945, -1.1961060762405396, -1.682641863822937, 0.29657915234565735, 1.8141071796417236, 2.106194019317627, -0.7784294486045837, 1.3460066318511963, -0.30273857712745667, 0.29950010776519775, 1.1622828245162964, 1.234825849533081, 3.260634422302246, 1.9066451787948608, -1.2543556690216064, 0.720266580581665, -0.13894039392471313, -0.5563351511955261, 1.2417494058609009, -1.013346552848816, 1.2092790603637695, -0.33021795749664307, -1.3268898725509644, -1.2059366703033447, 0.8869647979736328, 0.4865941107273102, -0.014840260148048401, -0.4947716295719147, 1.0511285066604614, 0.19122430682182312, 1.3279528617858887, 0.596170961856842, -0.2892022728919983, 0.5567654967308044, -0.33169522881507874, -0.5662591457366943, 1.5777031183242798, 0.06225132197141647, -1.4739171266555786, -2.290219783782959, -0.12195274978876114, -0.9449542760848999, -0.0027741813100874424, -0.8759316802024841, -1.0455337762832642, 1.5079234838485718, 0.49071672558784485, -0.9442551136016846, -0.037448130548000336, -0.39228981733322144, -0.6468560695648193, 2.632032871246338, -1.3778924942016602, -0.28207921981811523, -0.9191087484359741, -0.630527138710022, 1.5160080194473267, -1.1117615699768066, -0.26403284072875977, -1.0326963663101196, -0.4496256113052368, -1.2791239023208618, -0.4670484960079193, -0.08356039226055145, -0.7715320587158203, 0.7473523020744324, -0.06054338812828064, -1.3258483409881592, -0.24466468393802643, -1.0478432178497314, 0.8693869113922119, -0.28737303614616394, 0.023350069299340248, 1.7498698234558105, 0.3315906524658203, -0.3591654300689697, 0.7607805132865906, 1.2122787237167358, 0.6051623225212097, -0.5535537600517273, 0.31379300355911255, -0.6522537469863892, 0.4306876063346863, -1.2028446197509766, 0.2950459420681, -2.894490957260132, 0.6960712671279907, 0.10950663685798645, -0.055471912026405334, -0.10868041962385178, -1.441673994064331, 0.8843791484832764, 2.5070414543151855, -1.1157417297363281, 0.5619699954986572, 0.3104025423526764, 1.1655995845794678, -1.640162706375122, 0.05423733592033386, -0.6655118465423584, 2.0842580795288086, 0.0443560853600502, 1.0811678171157837, -0.5868567228317261, -2.3253796100616455, 0.5220686197280884, -1.2153003215789795, -1.0221208333969116, 0.8538513779640198, -0.8759205341339111, 0.1374487578868866, -1.1626005172729492, -0.09819314628839493, -0.8839735388755798, -1.151525855064392, 0.5814100503921509, 0.06595674902200699, 0.6793345808982849, -0.6233767867088318, 0.26461127400398254, -2.288417339324951, -1.3869082927703857, -0.24583180248737335, -0.9067347049713135, 0.469872385263443, -0.35908812284469604, 0.7329635620117188, -0.12847764790058136, 0.05793441832065582, 0.2755252718925476, 1.4886471033096313, 3.118514060974121, 0.0346575528383255, 0.34808599948883057, -0.3134879767894745, -1.0424354076385498, 1.5054048299789429, 0.9359871745109558, -0.25801730155944824, -0.6335965394973755, -0.9731473326683044, 1.2532204389572144, 1.9402899742126465, 1.0773742198944092, 0.08509235829114914, -0.966342568397522, -0.8021821975708008, 0.13146962225437164, 0.08279679715633392, 0.3918518126010895, 1.018835186958313, 0.18512028455734253, 0.22095297276973724, 1.4173731803894043, 1.1093249320983887, -0.2757227420806885, 0.5406167507171631, -0.7743393182754517, -0.39383581280708313, 0.5499423146247864, 0.4359515309333801, 0.0000016335397958755493, 0.19322705268859863, -1.0890237092971802, -0.1721791923046112, -0.28192535042762756, -0.9059517979621887, -0.7602343559265137, -0.42876943945884705, -0.3996554911136627, 1.7789133787155151, -0.12382671982049942, -0.5190041065216064, -0.0032545411959290504, -0.7755884528160095, -0.058744803071022034, -0.9346883893013, 0.3721960484981537, -0.18005214631557465, 0.042739540338516235, -0.07194353640079498, 1.604207158088684, -1.0311747789382935, -2.2529799938201904, 0.196816548705101, 0.18411627411842346, -0.3946150243282318, -0.06581635773181915, 1.8396074771881104, 0.6020734310150146, 1.4361562728881836, 1.61467444896698, 1.10371994972229, -0.7296827435493469, -1.3096450567245483, 0.7046563625335693, 0.9100799560546875, -1.3158116340637207, 0.8996793627738953, -0.10813993960618973, -0.6841897964477539, 0.5322864055633545, 1.2753334045410156, 0.44281989336013794, -1.960756778717041, 0.8108444213867188, -1.1045105457305908, 0.8282637000083923, 0.7521418333053589, 0.8258810639381409, 0.07836233079433441, 0.857681155204773, -1.2702178955078125, -1.0060466527938843, -0.6026333570480347, -0.6458929777145386, 1.8460592031478882, -0.25004470348358154, 0.32049983739852905, -0.28204232454299927, -1.342283844947815, 0.1682417243719101, 0.7027988433837891, 0.30904996395111084, -0.3663824200630188, 0.6944335103034973, -0.6981566548347473, -1.1054733991622925, -1.3113315105438232, -0.48689979314804077, -0.9930881857872009, -0.8193573355674744, 0.9313908219337463, 0.7511075139045715, 0.49630966782569885, 1.9397300481796265, 0.6759385466575623, 0.17984400689601898, -2.624729871749878, 0.8234508633613586, 0.34136685729026794, -0.08673397451639175, 0.8527865409851074, 0.3072778880596161, 1.1615084409713745, -0.18895632028579712, 0.6142283082008362, -2.3127217292785645, 2.212042808532715, -0.3042292594909668, 0.736598789691925, 0.02491932176053524, -0.005282753612846136, 1.0011780261993408, 0.48196130990982056, 0.5483041405677795, -1.0755219459533691, 0.8999155759811401, -0.6300313472747803, 1.1636353731155396, 0.8328479528427124, -0.8939896821975708, 0.15255895256996155, 1.186693787574768, 0.3114810585975647, -0.4918684661388397, -1.0417389869689941, -0.8501225709915161, 0.9943477511405945, 1.8018149137496948, -0.00883434433490038, 0.13518007099628448, 0.8681736588478088, 0.7577421069145203, -1.3771682977676392, 0.031921714544296265, -0.6390563249588013, -0.7194453477859497, 1.8209028244018555, 2.045346260070801, -0.01586369425058365, -0.08446905761957169, -0.7342537045478821, -1.412050724029541, 0.8873291611671448, 0.1864491105079651, -0.06600609421730042, 0.7794934511184692, -0.6784667372703552, 1.1871663331985474, 0.8610138297080994, 0.8591586351394653, 0.2473793625831604, 0.04365275800228119, 0.24786821007728577, -0.29156723618507385, -1.2281798124313354, -0.2563679814338684, -0.9303256869316101, -2.502229928970337, 0.4184199273586273, -0.21245887875556946, -1.4847383499145508, 0.17155908048152924, -1.0106775760650635, 0.6978781819343567, -0.5112450122833252, -1.20186185836792, -1.3973090648651123, 0.2414984107017517, -0.1763676106929779, 0.7636175751686096, -1.5676897764205933, -0.12865059077739716, 1.125870943069458, 0.9718422889709473, -0.6717217564582825, 0.870185911655426, 0.27849727869033813, 0.9034169912338257, 1.0995668172836304, -0.41958245635032654, 0.3806340992450714, 0.2668458819389343, -1.3211814165115356, 0.30982741713523865, 1.354398488998413, 0.20955359935760498, 1.3849190473556519, -0.5146029591560364, -0.07527947425842285, 0.40370097756385803, -0.22992603480815887, -0.47976475954055786, -0.8485048413276672, 0.624768078327179, -0.0843496322631836, -0.9338443875312805, -0.04848656803369522, 0.11824756860733032, -0.14401984214782715, 0.35141199827194214, -1.5319617986679077, 0.0019267667084932327, -0.35662126541137695, -0.7027246952056885, -1.2877098321914673, -0.05615779757499695, 1.312835454940796, -0.8541297912597656, -0.1262964904308319, 0.6055002808570862, 0.15783856809139252, 0.557590126991272, 0.6521531343460083, -0.7781538963317871, -0.2665068209171295, -0.08440238237380981, -0.45544013381004333, 0.32839876413345337, 1.2975953817367554, -0.0921090766787529, -0.9772144556045532, 0.5530056953430176, -0.2583930492401123, 0.20737087726593018, 1.958711862564087, 0.0500183179974556, -0.9087716341018677, 0.2788313925266266, -0.7419353127479553, 1.863126516342163, 1.6553999185562134, 1.3270083665847778, -0.08253075927495956, -0.9969663023948669, 0.5982213020324707, -0.3174856901168823, -0.42143964767456055, 0.9208745956420898, 0.4239766001701355, -0.2501840591430664, -1.360418677330017, 0.7494872808456421, 1.26554274559021, -0.792462170124054, -0.7983929514884949, 0.08561665564775467, -0.8287448287010193, 1.2413268089294434, 0.7241576910018921, 0.3007506728172302, 0.26707687973976135, 1.6710528135299683, 0.7367475628852844, -0.5493157505989075, 0.5454475283622742, 0.43073126673698425, -0.1752508282661438, -1.9808584451675415, -1.1080704927444458, 0.30904412269592285, -0.4212270975112915, -1.5248932838439941, 1.3920910358428955, -1.3072500228881836, -0.9957011342048645, 0.5750454664230347, 0.17602603137493134, 1.379516363143921, 0.24138939380645752, 1.7160663604736328, 1.999550461769104, 0.9299308657646179, 0.4542989730834961, 1.1223992109298706, -0.2838484048843384, -0.25701677799224854, 1.631195306777954, -0.5170602202415466, 0.6952012181282043, 1.0477124452590942, -0.37720581889152527, -1.2286851406097412, -0.8288577198982239, -1.2363709211349487, -0.8450298309326172, 1.0429445505142212, 0.15226227045059204, -1.1974190473556519, 0.3648289144039154, 1.6392958164215088, -0.013575771823525429, -0.14695364236831665, 0.7589622735977173, 0.3666572570800781, -0.6666484475135803, -0.07905784994363785, -1.0437040328979492, 0.5599266290664673, -0.3341742753982544, -0.3887561559677124, 0.2080451250076294, 0.6017283201217651, 1.2064934968948364, 0.20471619069576263, 0.04651052504777908, 1.409522294998169, -1.3461003303527832, 1.1902832984924316, -1.0343292951583862, 0.3633604943752289, -2.2895100116729736, 1.5518839359283447, -0.9570980668067932, 1.9153822660446167, -2.699584722518921, 0.5081380605697632, -0.48597779870033264, -0.5765770673751831, 0.18318305909633636, -0.11230562627315521, 0.11323156952857971, -0.048978790640830994, -1.0202202796936035, -0.16897642612457275, -0.8790683150291443, 0.4643232822418213, 1.235912561416626, 1.342649221420288, -0.9669384360313416, -0.24354293942451477, -1.6425423622131348, -0.25706544518470764, -0.43694552779197693, 0.17694993317127228, -1.7467728853225708, -0.1533956378698349, -2.02063250541687, -2.55645489692688, -1.3563764095306396, -0.9903221130371094, 1.294335126876831, 0.11170317977666855, -0.928274393081665, 1.1123363971710205, -0.46942806243896484, -1.7956551313400269, 1.3005471229553223, -2.252528190612793 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
> Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ? Thanks for checking. There is no longer an error when calling `select` but it appears the cast value isn't preserved. Before `select` ```python dataset.features {'url': Image(id=None)} ``` after select: ``` {'url': Value(dtype='string', id=None)} ``` Updated Colab example [here](https://colab.research.google.com/gist/davanstrien/4e88f55a3675c279b5c2f64299ae5c6f/potential_casting_bug.ipynb)
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
1,000
64
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 > Hi ! We merged the PR and did a release of `datasets` that includes the changes. Can you try updating `datasets` and try again ? Thanks for checking. There is no longer an error when calling `select` but it appears the cast value isn't preserved. Before `select` ```python dataset.features {'url': Image(id=None)} ``` after select: ``` {'url': Value(dtype='string', id=None)} ``` Updated Colab example [here](https://colab.research.google.com/gist/davanstrien/4e88f55a3675c279b5c2f64299ae5c6f/potential_casting_bug.ipynb)
[ -1.201468825340271, -0.7746816873550415, -0.6459198594093323, 1.4882506132125854, -0.015453265979886055, -1.35554039478302, 0.10223808139562607, -0.8974181413650513, 1.6938108205795288, -0.8448341488838196, 0.3939143121242523, -1.7225538492202759, 0.07499473541975021, -0.656111478805542, -0.7071961760520935, -0.6894180774688721, -0.3152649998664856, -0.6501471996307373, 1.112879991531372, 2.470877170562744, 1.1746184825897217, -1.3025654554367065, 2.789386034011841, 0.688117265701294, -0.25606226921081543, -0.8240587711334229, 0.3747425377368927, 0.014296460896730423, -1.5077736377716064, -0.24961517751216888, -0.9448063373565674, -0.0729837566614151, -0.6687612533569336, -0.6563407182693481, 0.08756828308105469, 0.505547821521759, -0.238017737865448, -0.4602823257446289, -0.42629143595695496, -0.7297080159187317, 0.5533207058906555, -0.30505430698394775, 0.822564959526062, -0.29781463742256165, 1.7647637128829956, -0.6602283716201782, 0.4728640913963318, 0.5213006138801575, 1.2364734411239624, 0.2708864212036133, -0.06202666461467743, 0.40524473786354065, 0.2279330939054489, 0.012271145358681679, 0.5187274217605591, 1.233500599861145, 0.5942846536636353, 0.5271718502044678, 0.7835416793823242, -2.215269088745117, 1.381300449371338, -0.7481448650360107, 0.24688097834587097, 1.2414252758026123, -1.0790479183197021, 0.4997422397136688, -1.8764984607696533, -0.13699857890605927, 0.39545026421546936, -2.281707286834717, 0.11317183077335358, -1.2849129438400269, -0.5666986107826233, 1.0231406688690186, 0.3283330202102661, -1.212731957435608, -0.06368289887905121, -0.4578624963760376, 0.9151660799980164, 0.4001508355140686, 1.1582388877868652, -1.6949098110198975, 0.007444122806191444, -0.26210013031959534, 0.3835093080997467, -1.2398474216461182, -1.5760197639465332, 0.6828622817993164, 0.7846688032150269, 0.609448254108429, -0.18654966354370117, 0.8484405875205994, -1.024340271949768, 0.751608669757843, -0.9432849884033203, -1.8502197265625, -1.321057915687561, -2.33842134475708, -2.3891656398773193, 0.7380644679069519, -0.4097014367580414, -0.4062805771827698, 2.152127742767334, -1.150689721107483, -1.8164435625076294, 1.0232963562011719, 0.33407342433929443, -0.14787563681602478, 2.360823154449463, 0.2007141411304474, -0.9212551712989807, 0.7551915645599365, -0.8252842426300049, 0.658152163028717, -0.4024004638195038, 1.3242223262786865, 0.38029006123542786, -1.1295491456985474, 1.5935887098312378, -0.4126223921775818, 0.5571125149726868, -0.7871409058570862, -0.3381344974040985, -0.5580514073371887, 0.1951962113380432, 1.953160285949707, -0.174503356218338, 1.568914771080017, -0.1908753514289856, -1.465942621231079, -1.3799595832824707, 0.7228844165802002, 0.5848079919815063, -0.7996624708175659, 0.24939599633216858, -0.409881055355072, 0.13779950141906738, 0.17121915519237518, 1.0896117687225342, 1.2891641855239868, 0.8144619464874268, -0.12946587800979614, -0.8869891166687012, 0.0770874172449112, -0.007810352370142937, -0.574394941329956, -1.7385804653167725, -0.29992175102233887, 0.24127066135406494, 0.6263999342918396, -1.2169146537780762, 1.8994386196136475, 0.858680248260498, 2.0380210876464844, 1.0485899448394775, -0.34937095642089844, 1.5422089099884033, 0.09400199353694916, 1.957802176475525, -0.2661740481853485, 0.7129787802696228, -0.5146142244338989, -1.157945156097412, 0.6353763937950134, -0.30835506319999695, -2.043769121170044, -0.3779616057872772, -0.8416277766227722, -0.13917723298072815, -0.8657509684562683, 1.0124825239181519, -0.18772821128368378, -1.3485304117202759, 0.27852219343185425, -0.7146972417831421, 0.1495269536972046, -1.402872920036316, 0.2729056179523468, 0.754913866519928, -0.7505882978439331, 0.10139936208724976, -0.48883700370788574, -1.393741250038147, -0.659003734588623, 0.44911590218544006, 1.6958245038986206, -0.7013188600540161, 1.0011491775512695, 0.991405189037323, -0.5705760717391968, -0.11192061752080917, 0.5079029202461243, -0.38511940836906433, 0.8888553380966187, -1.0078318119049072, -0.34781819581985474, 1.080191969871521, -0.3032941222190857, -0.4890117049217224, 1.2902580499649048, 0.7316467761993408, -0.9398584365844727, -0.28088489174842834, -0.10859625786542892, -0.8433868288993835, 0.04916349798440933, -1.617735505104065, -0.05937136709690094, 0.2870771288871765, -1.4873046875, -0.4976198673248291, -0.06480041146278381, 1.2607054710388184, 0.06992010027170181, 1.2943115234375, -0.21317560970783234, -0.1610497385263443, -0.5361241698265076, -0.5060766339302063, 0.0909973606467247, -0.15384751558303833, -0.6539743542671204, 0.2979034185409546, -0.7091692090034485, 0.18328270316123962, 1.4142369031906128, 0.2618023753166199, 0.11206815391778946, 0.5901713371276855, 1.2499994039535522, 0.31445252895355225, -0.18336860835552216, -0.772445797920227, -1.732638955116272, 1.9482563734054565, -1.5691277980804443, 1.9479024410247803, 0.8673080801963806, 0.0014239614829421043, -1.858672022819519, -1.8373103141784668, 1.558694839477539, 1.0795022249221802, 2.570787191390991, 0.5650807619094849, 0.40766197443008423, -0.7858330607414246, -0.6597399115562439, 0.4502127766609192, -0.715076744556427, -0.9572372436523438, 0.14473195374011993, 2.328169107437134, 1.7350926399230957, -0.3777216076850891, -0.20446887612342834, -1.0133424997329712, 1.3652435541152954, -0.2681247293949127, 0.22504965960979462, 1.830952763557434, -0.36107829213142395, -1.0487788915634155, 1.2755053043365479, -2.3247106075286865, 0.27772098779678345, 1.9427870512008667, 0.2717963457107544, 0.006953036412596703, -1.1116902828216553, -0.783701479434967, -0.1205984577536583, -0.4500259757041931, -1.2554713487625122, 0.32936325669288635, -0.16649824380874634, -0.7625059485435486, -1.4086873531341553, 0.021292319521307945, -1.1961060762405396, -1.682641863822937, 0.29657915234565735, 1.8141071796417236, 2.106194019317627, -0.7784294486045837, 1.3460066318511963, -0.30273857712745667, 0.29950010776519775, 1.1622828245162964, 1.234825849533081, 3.260634422302246, 1.9066451787948608, -1.2543556690216064, 0.720266580581665, -0.13894039392471313, -0.5563351511955261, 1.2417494058609009, -1.013346552848816, 1.2092790603637695, -0.33021795749664307, -1.3268898725509644, -1.2059366703033447, 0.8869647979736328, 0.4865941107273102, -0.014840260148048401, -0.4947716295719147, 1.0511285066604614, 0.19122430682182312, 1.3279528617858887, 0.596170961856842, -0.2892022728919983, 0.5567654967308044, -0.33169522881507874, -0.5662591457366943, 1.5777031183242798, 0.06225132197141647, -1.4739171266555786, -2.290219783782959, -0.12195274978876114, -0.9449542760848999, -0.0027741813100874424, -0.8759316802024841, -1.0455337762832642, 1.5079234838485718, 0.49071672558784485, -0.9442551136016846, -0.037448130548000336, -0.39228981733322144, -0.6468560695648193, 2.632032871246338, -1.3778924942016602, -0.28207921981811523, -0.9191087484359741, -0.630527138710022, 1.5160080194473267, -1.1117615699768066, -0.26403284072875977, -1.0326963663101196, -0.4496256113052368, -1.2791239023208618, -0.4670484960079193, -0.08356039226055145, -0.7715320587158203, 0.7473523020744324, -0.06054338812828064, -1.3258483409881592, -0.24466468393802643, -1.0478432178497314, 0.8693869113922119, -0.28737303614616394, 0.023350069299340248, 1.7498698234558105, 0.3315906524658203, -0.3591654300689697, 0.7607805132865906, 1.2122787237167358, 0.6051623225212097, -0.5535537600517273, 0.31379300355911255, -0.6522537469863892, 0.4306876063346863, -1.2028446197509766, 0.2950459420681, -2.894490957260132, 0.6960712671279907, 0.10950663685798645, -0.055471912026405334, -0.10868041962385178, -1.441673994064331, 0.8843791484832764, 2.5070414543151855, -1.1157417297363281, 0.5619699954986572, 0.3104025423526764, 1.1655995845794678, -1.640162706375122, 0.05423733592033386, -0.6655118465423584, 2.0842580795288086, 0.0443560853600502, 1.0811678171157837, -0.5868567228317261, -2.3253796100616455, 0.5220686197280884, -1.2153003215789795, -1.0221208333969116, 0.8538513779640198, -0.8759205341339111, 0.1374487578868866, -1.1626005172729492, -0.09819314628839493, -0.8839735388755798, -1.151525855064392, 0.5814100503921509, 0.06595674902200699, 0.6793345808982849, -0.6233767867088318, 0.26461127400398254, -2.288417339324951, -1.3869082927703857, -0.24583180248737335, -0.9067347049713135, 0.469872385263443, -0.35908812284469604, 0.7329635620117188, -0.12847764790058136, 0.05793441832065582, 0.2755252718925476, 1.4886471033096313, 3.118514060974121, 0.0346575528383255, 0.34808599948883057, -0.3134879767894745, -1.0424354076385498, 1.5054048299789429, 0.9359871745109558, -0.25801730155944824, -0.6335965394973755, -0.9731473326683044, 1.2532204389572144, 1.9402899742126465, 1.0773742198944092, 0.08509235829114914, -0.966342568397522, -0.8021821975708008, 0.13146962225437164, 0.08279679715633392, 0.3918518126010895, 1.018835186958313, 0.18512028455734253, 0.22095297276973724, 1.4173731803894043, 1.1093249320983887, -0.2757227420806885, 0.5406167507171631, -0.7743393182754517, -0.39383581280708313, 0.5499423146247864, 0.4359515309333801, 0.0000016335397958755493, 0.19322705268859863, -1.0890237092971802, -0.1721791923046112, -0.28192535042762756, -0.9059517979621887, -0.7602343559265137, -0.42876943945884705, -0.3996554911136627, 1.7789133787155151, -0.12382671982049942, -0.5190041065216064, -0.0032545411959290504, -0.7755884528160095, -0.058744803071022034, -0.9346883893013, 0.3721960484981537, -0.18005214631557465, 0.042739540338516235, -0.07194353640079498, 1.604207158088684, -1.0311747789382935, -2.2529799938201904, 0.196816548705101, 0.18411627411842346, -0.3946150243282318, -0.06581635773181915, 1.8396074771881104, 0.6020734310150146, 1.4361562728881836, 1.61467444896698, 1.10371994972229, -0.7296827435493469, -1.3096450567245483, 0.7046563625335693, 0.9100799560546875, -1.3158116340637207, 0.8996793627738953, -0.10813993960618973, -0.6841897964477539, 0.5322864055633545, 1.2753334045410156, 0.44281989336013794, -1.960756778717041, 0.8108444213867188, -1.1045105457305908, 0.8282637000083923, 0.7521418333053589, 0.8258810639381409, 0.07836233079433441, 0.857681155204773, -1.2702178955078125, -1.0060466527938843, -0.6026333570480347, -0.6458929777145386, 1.8460592031478882, -0.25004470348358154, 0.32049983739852905, -0.28204232454299927, -1.342283844947815, 0.1682417243719101, 0.7027988433837891, 0.30904996395111084, -0.3663824200630188, 0.6944335103034973, -0.6981566548347473, -1.1054733991622925, -1.3113315105438232, -0.48689979314804077, -0.9930881857872009, -0.8193573355674744, 0.9313908219337463, 0.7511075139045715, 0.49630966782569885, 1.9397300481796265, 0.6759385466575623, 0.17984400689601898, -2.624729871749878, 0.8234508633613586, 0.34136685729026794, -0.08673397451639175, 0.8527865409851074, 0.3072778880596161, 1.1615084409713745, -0.18895632028579712, 0.6142283082008362, -2.3127217292785645, 2.212042808532715, -0.3042292594909668, 0.736598789691925, 0.02491932176053524, -0.005282753612846136, 1.0011780261993408, 0.48196130990982056, 0.5483041405677795, -1.0755219459533691, 0.8999155759811401, -0.6300313472747803, 1.1636353731155396, 0.8328479528427124, -0.8939896821975708, 0.15255895256996155, 1.186693787574768, 0.3114810585975647, -0.4918684661388397, -1.0417389869689941, -0.8501225709915161, 0.9943477511405945, 1.8018149137496948, -0.00883434433490038, 0.13518007099628448, 0.8681736588478088, 0.7577421069145203, -1.3771682977676392, 0.031921714544296265, -0.6390563249588013, -0.7194453477859497, 1.8209028244018555, 2.045346260070801, -0.01586369425058365, -0.08446905761957169, -0.7342537045478821, -1.412050724029541, 0.8873291611671448, 0.1864491105079651, -0.06600609421730042, 0.7794934511184692, -0.6784667372703552, 1.1871663331985474, 0.8610138297080994, 0.8591586351394653, 0.2473793625831604, 0.04365275800228119, 0.24786821007728577, -0.29156723618507385, -1.2281798124313354, -0.2563679814338684, -0.9303256869316101, -2.502229928970337, 0.4184199273586273, -0.21245887875556946, -1.4847383499145508, 0.17155908048152924, -1.0106775760650635, 0.6978781819343567, -0.5112450122833252, -1.20186185836792, -1.3973090648651123, 0.2414984107017517, -0.1763676106929779, 0.7636175751686096, -1.5676897764205933, -0.12865059077739716, 1.125870943069458, 0.9718422889709473, -0.6717217564582825, 0.870185911655426, 0.27849727869033813, 0.9034169912338257, 1.0995668172836304, -0.41958245635032654, 0.3806340992450714, 0.2668458819389343, -1.3211814165115356, 0.30982741713523865, 1.354398488998413, 0.20955359935760498, 1.3849190473556519, -0.5146029591560364, -0.07527947425842285, 0.40370097756385803, -0.22992603480815887, -0.47976475954055786, -0.8485048413276672, 0.624768078327179, -0.0843496322631836, -0.9338443875312805, -0.04848656803369522, 0.11824756860733032, -0.14401984214782715, 0.35141199827194214, -1.5319617986679077, 0.0019267667084932327, -0.35662126541137695, -0.7027246952056885, -1.2877098321914673, -0.05615779757499695, 1.312835454940796, -0.8541297912597656, -0.1262964904308319, 0.6055002808570862, 0.15783856809139252, 0.557590126991272, 0.6521531343460083, -0.7781538963317871, -0.2665068209171295, -0.08440238237380981, -0.45544013381004333, 0.32839876413345337, 1.2975953817367554, -0.0921090766787529, -0.9772144556045532, 0.5530056953430176, -0.2583930492401123, 0.20737087726593018, 1.958711862564087, 0.0500183179974556, -0.9087716341018677, 0.2788313925266266, -0.7419353127479553, 1.863126516342163, 1.6553999185562134, 1.3270083665847778, -0.08253075927495956, -0.9969663023948669, 0.5982213020324707, -0.3174856901168823, -0.42143964767456055, 0.9208745956420898, 0.4239766001701355, -0.2501840591430664, -1.360418677330017, 0.7494872808456421, 1.26554274559021, -0.792462170124054, -0.7983929514884949, 0.08561665564775467, -0.8287448287010193, 1.2413268089294434, 0.7241576910018921, 0.3007506728172302, 0.26707687973976135, 1.6710528135299683, 0.7367475628852844, -0.5493157505989075, 0.5454475283622742, 0.43073126673698425, -0.1752508282661438, -1.9808584451675415, -1.1080704927444458, 0.30904412269592285, -0.4212270975112915, -1.5248932838439941, 1.3920910358428955, -1.3072500228881836, -0.9957011342048645, 0.5750454664230347, 0.17602603137493134, 1.379516363143921, 0.24138939380645752, 1.7160663604736328, 1.999550461769104, 0.9299308657646179, 0.4542989730834961, 1.1223992109298706, -0.2838484048843384, -0.25701677799224854, 1.631195306777954, -0.5170602202415466, 0.6952012181282043, 1.0477124452590942, -0.37720581889152527, -1.2286851406097412, -0.8288577198982239, -1.2363709211349487, -0.8450298309326172, 1.0429445505142212, 0.15226227045059204, -1.1974190473556519, 0.3648289144039154, 1.6392958164215088, -0.013575771823525429, -0.14695364236831665, 0.7589622735977173, 0.3666572570800781, -0.6666484475135803, -0.07905784994363785, -1.0437040328979492, 0.5599266290664673, -0.3341742753982544, -0.3887561559677124, 0.2080451250076294, 0.6017283201217651, 1.2064934968948364, 0.20471619069576263, 0.04651052504777908, 1.409522294998169, -1.3461003303527832, 1.1902832984924316, -1.0343292951583862, 0.3633604943752289, -2.2895100116729736, 1.5518839359283447, -0.9570980668067932, 1.9153822660446167, -2.699584722518921, 0.5081380605697632, -0.48597779870033264, -0.5765770673751831, 0.18318305909633636, -0.11230562627315521, 0.11323156952857971, -0.048978790640830994, -1.0202202796936035, -0.16897642612457275, -0.8790683150291443, 0.4643232822418213, 1.235912561416626, 1.342649221420288, -0.9669384360313416, -0.24354293942451477, -1.6425423622131348, -0.25706544518470764, -0.43694552779197693, 0.17694993317127228, -1.7467728853225708, -0.1533956378698349, -2.02063250541687, -2.55645489692688, -1.3563764095306396, -0.9903221130371094, 1.294335126876831, 0.11170317977666855, -0.928274393081665, 1.1123363971710205, -0.46942806243896484, -1.7956551313400269, 1.3005471229553223, -2.252528190612793 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Hmmm, if I re-run your google colab I'm getting the right type at the end: ``` sample.features # {'url': Image(id=None)} ```
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
1,000
21
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 Hmmm, if I re-run your google colab I'm getting the right type at the end: ``` sample.features # {'url': Image(id=None)} ```
[ -1.201468825340271, -0.7746816873550415, -0.6459198594093323, 1.4882506132125854, -0.015453265979886055, -1.35554039478302, 0.10223808139562607, -0.8974181413650513, 1.6938108205795288, -0.8448341488838196, 0.3939143121242523, -1.7225538492202759, 0.07499473541975021, -0.656111478805542, -0.7071961760520935, -0.6894180774688721, -0.3152649998664856, -0.6501471996307373, 1.112879991531372, 2.470877170562744, 1.1746184825897217, -1.3025654554367065, 2.789386034011841, 0.688117265701294, -0.25606226921081543, -0.8240587711334229, 0.3747425377368927, 0.014296460896730423, -1.5077736377716064, -0.24961517751216888, -0.9448063373565674, -0.0729837566614151, -0.6687612533569336, -0.6563407182693481, 0.08756828308105469, 0.505547821521759, -0.238017737865448, -0.4602823257446289, -0.42629143595695496, -0.7297080159187317, 0.5533207058906555, -0.30505430698394775, 0.822564959526062, -0.29781463742256165, 1.7647637128829956, -0.6602283716201782, 0.4728640913963318, 0.5213006138801575, 1.2364734411239624, 0.2708864212036133, -0.06202666461467743, 0.40524473786354065, 0.2279330939054489, 0.012271145358681679, 0.5187274217605591, 1.233500599861145, 0.5942846536636353, 0.5271718502044678, 0.7835416793823242, -2.215269088745117, 1.381300449371338, -0.7481448650360107, 0.24688097834587097, 1.2414252758026123, -1.0790479183197021, 0.4997422397136688, -1.8764984607696533, -0.13699857890605927, 0.39545026421546936, -2.281707286834717, 0.11317183077335358, -1.2849129438400269, -0.5666986107826233, 1.0231406688690186, 0.3283330202102661, -1.212731957435608, -0.06368289887905121, -0.4578624963760376, 0.9151660799980164, 0.4001508355140686, 1.1582388877868652, -1.6949098110198975, 0.007444122806191444, -0.26210013031959534, 0.3835093080997467, -1.2398474216461182, -1.5760197639465332, 0.6828622817993164, 0.7846688032150269, 0.609448254108429, -0.18654966354370117, 0.8484405875205994, -1.024340271949768, 0.751608669757843, -0.9432849884033203, -1.8502197265625, -1.321057915687561, -2.33842134475708, -2.3891656398773193, 0.7380644679069519, -0.4097014367580414, -0.4062805771827698, 2.152127742767334, -1.150689721107483, -1.8164435625076294, 1.0232963562011719, 0.33407342433929443, -0.14787563681602478, 2.360823154449463, 0.2007141411304474, -0.9212551712989807, 0.7551915645599365, -0.8252842426300049, 0.658152163028717, -0.4024004638195038, 1.3242223262786865, 0.38029006123542786, -1.1295491456985474, 1.5935887098312378, -0.4126223921775818, 0.5571125149726868, -0.7871409058570862, -0.3381344974040985, -0.5580514073371887, 0.1951962113380432, 1.953160285949707, -0.174503356218338, 1.568914771080017, -0.1908753514289856, -1.465942621231079, -1.3799595832824707, 0.7228844165802002, 0.5848079919815063, -0.7996624708175659, 0.24939599633216858, -0.409881055355072, 0.13779950141906738, 0.17121915519237518, 1.0896117687225342, 1.2891641855239868, 0.8144619464874268, -0.12946587800979614, -0.8869891166687012, 0.0770874172449112, -0.007810352370142937, -0.574394941329956, -1.7385804653167725, -0.29992175102233887, 0.24127066135406494, 0.6263999342918396, -1.2169146537780762, 1.8994386196136475, 0.858680248260498, 2.0380210876464844, 1.0485899448394775, -0.34937095642089844, 1.5422089099884033, 0.09400199353694916, 1.957802176475525, -0.2661740481853485, 0.7129787802696228, -0.5146142244338989, -1.157945156097412, 0.6353763937950134, -0.30835506319999695, -2.043769121170044, -0.3779616057872772, -0.8416277766227722, -0.13917723298072815, -0.8657509684562683, 1.0124825239181519, -0.18772821128368378, -1.3485304117202759, 0.27852219343185425, -0.7146972417831421, 0.1495269536972046, -1.402872920036316, 0.2729056179523468, 0.754913866519928, -0.7505882978439331, 0.10139936208724976, -0.48883700370788574, -1.393741250038147, -0.659003734588623, 0.44911590218544006, 1.6958245038986206, -0.7013188600540161, 1.0011491775512695, 0.991405189037323, -0.5705760717391968, -0.11192061752080917, 0.5079029202461243, -0.38511940836906433, 0.8888553380966187, -1.0078318119049072, -0.34781819581985474, 1.080191969871521, -0.3032941222190857, -0.4890117049217224, 1.2902580499649048, 0.7316467761993408, -0.9398584365844727, -0.28088489174842834, -0.10859625786542892, -0.8433868288993835, 0.04916349798440933, -1.617735505104065, -0.05937136709690094, 0.2870771288871765, -1.4873046875, -0.4976198673248291, -0.06480041146278381, 1.2607054710388184, 0.06992010027170181, 1.2943115234375, -0.21317560970783234, -0.1610497385263443, -0.5361241698265076, -0.5060766339302063, 0.0909973606467247, -0.15384751558303833, -0.6539743542671204, 0.2979034185409546, -0.7091692090034485, 0.18328270316123962, 1.4142369031906128, 0.2618023753166199, 0.11206815391778946, 0.5901713371276855, 1.2499994039535522, 0.31445252895355225, -0.18336860835552216, -0.772445797920227, -1.732638955116272, 1.9482563734054565, -1.5691277980804443, 1.9479024410247803, 0.8673080801963806, 0.0014239614829421043, -1.858672022819519, -1.8373103141784668, 1.558694839477539, 1.0795022249221802, 2.570787191390991, 0.5650807619094849, 0.40766197443008423, -0.7858330607414246, -0.6597399115562439, 0.4502127766609192, -0.715076744556427, -0.9572372436523438, 0.14473195374011993, 2.328169107437134, 1.7350926399230957, -0.3777216076850891, -0.20446887612342834, -1.0133424997329712, 1.3652435541152954, -0.2681247293949127, 0.22504965960979462, 1.830952763557434, -0.36107829213142395, -1.0487788915634155, 1.2755053043365479, -2.3247106075286865, 0.27772098779678345, 1.9427870512008667, 0.2717963457107544, 0.006953036412596703, -1.1116902828216553, -0.783701479434967, -0.1205984577536583, -0.4500259757041931, -1.2554713487625122, 0.32936325669288635, -0.16649824380874634, -0.7625059485435486, -1.4086873531341553, 0.021292319521307945, -1.1961060762405396, -1.682641863822937, 0.29657915234565735, 1.8141071796417236, 2.106194019317627, -0.7784294486045837, 1.3460066318511963, -0.30273857712745667, 0.29950010776519775, 1.1622828245162964, 1.234825849533081, 3.260634422302246, 1.9066451787948608, -1.2543556690216064, 0.720266580581665, -0.13894039392471313, -0.5563351511955261, 1.2417494058609009, -1.013346552848816, 1.2092790603637695, -0.33021795749664307, -1.3268898725509644, -1.2059366703033447, 0.8869647979736328, 0.4865941107273102, -0.014840260148048401, -0.4947716295719147, 1.0511285066604614, 0.19122430682182312, 1.3279528617858887, 0.596170961856842, -0.2892022728919983, 0.5567654967308044, -0.33169522881507874, -0.5662591457366943, 1.5777031183242798, 0.06225132197141647, -1.4739171266555786, -2.290219783782959, -0.12195274978876114, -0.9449542760848999, -0.0027741813100874424, -0.8759316802024841, -1.0455337762832642, 1.5079234838485718, 0.49071672558784485, -0.9442551136016846, -0.037448130548000336, -0.39228981733322144, -0.6468560695648193, 2.632032871246338, -1.3778924942016602, -0.28207921981811523, -0.9191087484359741, -0.630527138710022, 1.5160080194473267, -1.1117615699768066, -0.26403284072875977, -1.0326963663101196, -0.4496256113052368, -1.2791239023208618, -0.4670484960079193, -0.08356039226055145, -0.7715320587158203, 0.7473523020744324, -0.06054338812828064, -1.3258483409881592, -0.24466468393802643, -1.0478432178497314, 0.8693869113922119, -0.28737303614616394, 0.023350069299340248, 1.7498698234558105, 0.3315906524658203, -0.3591654300689697, 0.7607805132865906, 1.2122787237167358, 0.6051623225212097, -0.5535537600517273, 0.31379300355911255, -0.6522537469863892, 0.4306876063346863, -1.2028446197509766, 0.2950459420681, -2.894490957260132, 0.6960712671279907, 0.10950663685798645, -0.055471912026405334, -0.10868041962385178, -1.441673994064331, 0.8843791484832764, 2.5070414543151855, -1.1157417297363281, 0.5619699954986572, 0.3104025423526764, 1.1655995845794678, -1.640162706375122, 0.05423733592033386, -0.6655118465423584, 2.0842580795288086, 0.0443560853600502, 1.0811678171157837, -0.5868567228317261, -2.3253796100616455, 0.5220686197280884, -1.2153003215789795, -1.0221208333969116, 0.8538513779640198, -0.8759205341339111, 0.1374487578868866, -1.1626005172729492, -0.09819314628839493, -0.8839735388755798, -1.151525855064392, 0.5814100503921509, 0.06595674902200699, 0.6793345808982849, -0.6233767867088318, 0.26461127400398254, -2.288417339324951, -1.3869082927703857, -0.24583180248737335, -0.9067347049713135, 0.469872385263443, -0.35908812284469604, 0.7329635620117188, -0.12847764790058136, 0.05793441832065582, 0.2755252718925476, 1.4886471033096313, 3.118514060974121, 0.0346575528383255, 0.34808599948883057, -0.3134879767894745, -1.0424354076385498, 1.5054048299789429, 0.9359871745109558, -0.25801730155944824, -0.6335965394973755, -0.9731473326683044, 1.2532204389572144, 1.9402899742126465, 1.0773742198944092, 0.08509235829114914, -0.966342568397522, -0.8021821975708008, 0.13146962225437164, 0.08279679715633392, 0.3918518126010895, 1.018835186958313, 0.18512028455734253, 0.22095297276973724, 1.4173731803894043, 1.1093249320983887, -0.2757227420806885, 0.5406167507171631, -0.7743393182754517, -0.39383581280708313, 0.5499423146247864, 0.4359515309333801, 0.0000016335397958755493, 0.19322705268859863, -1.0890237092971802, -0.1721791923046112, -0.28192535042762756, -0.9059517979621887, -0.7602343559265137, -0.42876943945884705, -0.3996554911136627, 1.7789133787155151, -0.12382671982049942, -0.5190041065216064, -0.0032545411959290504, -0.7755884528160095, -0.058744803071022034, -0.9346883893013, 0.3721960484981537, -0.18005214631557465, 0.042739540338516235, -0.07194353640079498, 1.604207158088684, -1.0311747789382935, -2.2529799938201904, 0.196816548705101, 0.18411627411842346, -0.3946150243282318, -0.06581635773181915, 1.8396074771881104, 0.6020734310150146, 1.4361562728881836, 1.61467444896698, 1.10371994972229, -0.7296827435493469, -1.3096450567245483, 0.7046563625335693, 0.9100799560546875, -1.3158116340637207, 0.8996793627738953, -0.10813993960618973, -0.6841897964477539, 0.5322864055633545, 1.2753334045410156, 0.44281989336013794, -1.960756778717041, 0.8108444213867188, -1.1045105457305908, 0.8282637000083923, 0.7521418333053589, 0.8258810639381409, 0.07836233079433441, 0.857681155204773, -1.2702178955078125, -1.0060466527938843, -0.6026333570480347, -0.6458929777145386, 1.8460592031478882, -0.25004470348358154, 0.32049983739852905, -0.28204232454299927, -1.342283844947815, 0.1682417243719101, 0.7027988433837891, 0.30904996395111084, -0.3663824200630188, 0.6944335103034973, -0.6981566548347473, -1.1054733991622925, -1.3113315105438232, -0.48689979314804077, -0.9930881857872009, -0.8193573355674744, 0.9313908219337463, 0.7511075139045715, 0.49630966782569885, 1.9397300481796265, 0.6759385466575623, 0.17984400689601898, -2.624729871749878, 0.8234508633613586, 0.34136685729026794, -0.08673397451639175, 0.8527865409851074, 0.3072778880596161, 1.1615084409713745, -0.18895632028579712, 0.6142283082008362, -2.3127217292785645, 2.212042808532715, -0.3042292594909668, 0.736598789691925, 0.02491932176053524, -0.005282753612846136, 1.0011780261993408, 0.48196130990982056, 0.5483041405677795, -1.0755219459533691, 0.8999155759811401, -0.6300313472747803, 1.1636353731155396, 0.8328479528427124, -0.8939896821975708, 0.15255895256996155, 1.186693787574768, 0.3114810585975647, -0.4918684661388397, -1.0417389869689941, -0.8501225709915161, 0.9943477511405945, 1.8018149137496948, -0.00883434433490038, 0.13518007099628448, 0.8681736588478088, 0.7577421069145203, -1.3771682977676392, 0.031921714544296265, -0.6390563249588013, -0.7194453477859497, 1.8209028244018555, 2.045346260070801, -0.01586369425058365, -0.08446905761957169, -0.7342537045478821, -1.412050724029541, 0.8873291611671448, 0.1864491105079651, -0.06600609421730042, 0.7794934511184692, -0.6784667372703552, 1.1871663331985474, 0.8610138297080994, 0.8591586351394653, 0.2473793625831604, 0.04365275800228119, 0.24786821007728577, -0.29156723618507385, -1.2281798124313354, -0.2563679814338684, -0.9303256869316101, -2.502229928970337, 0.4184199273586273, -0.21245887875556946, -1.4847383499145508, 0.17155908048152924, -1.0106775760650635, 0.6978781819343567, -0.5112450122833252, -1.20186185836792, -1.3973090648651123, 0.2414984107017517, -0.1763676106929779, 0.7636175751686096, -1.5676897764205933, -0.12865059077739716, 1.125870943069458, 0.9718422889709473, -0.6717217564582825, 0.870185911655426, 0.27849727869033813, 0.9034169912338257, 1.0995668172836304, -0.41958245635032654, 0.3806340992450714, 0.2668458819389343, -1.3211814165115356, 0.30982741713523865, 1.354398488998413, 0.20955359935760498, 1.3849190473556519, -0.5146029591560364, -0.07527947425842285, 0.40370097756385803, -0.22992603480815887, -0.47976475954055786, -0.8485048413276672, 0.624768078327179, -0.0843496322631836, -0.9338443875312805, -0.04848656803369522, 0.11824756860733032, -0.14401984214782715, 0.35141199827194214, -1.5319617986679077, 0.0019267667084932327, -0.35662126541137695, -0.7027246952056885, -1.2877098321914673, -0.05615779757499695, 1.312835454940796, -0.8541297912597656, -0.1262964904308319, 0.6055002808570862, 0.15783856809139252, 0.557590126991272, 0.6521531343460083, -0.7781538963317871, -0.2665068209171295, -0.08440238237380981, -0.45544013381004333, 0.32839876413345337, 1.2975953817367554, -0.0921090766787529, -0.9772144556045532, 0.5530056953430176, -0.2583930492401123, 0.20737087726593018, 1.958711862564087, 0.0500183179974556, -0.9087716341018677, 0.2788313925266266, -0.7419353127479553, 1.863126516342163, 1.6553999185562134, 1.3270083665847778, -0.08253075927495956, -0.9969663023948669, 0.5982213020324707, -0.3174856901168823, -0.42143964767456055, 0.9208745956420898, 0.4239766001701355, -0.2501840591430664, -1.360418677330017, 0.7494872808456421, 1.26554274559021, -0.792462170124054, -0.7983929514884949, 0.08561665564775467, -0.8287448287010193, 1.2413268089294434, 0.7241576910018921, 0.3007506728172302, 0.26707687973976135, 1.6710528135299683, 0.7367475628852844, -0.5493157505989075, 0.5454475283622742, 0.43073126673698425, -0.1752508282661438, -1.9808584451675415, -1.1080704927444458, 0.30904412269592285, -0.4212270975112915, -1.5248932838439941, 1.3920910358428955, -1.3072500228881836, -0.9957011342048645, 0.5750454664230347, 0.17602603137493134, 1.379516363143921, 0.24138939380645752, 1.7160663604736328, 1.999550461769104, 0.9299308657646179, 0.4542989730834961, 1.1223992109298706, -0.2838484048843384, -0.25701677799224854, 1.631195306777954, -0.5170602202415466, 0.6952012181282043, 1.0477124452590942, -0.37720581889152527, -1.2286851406097412, -0.8288577198982239, -1.2363709211349487, -0.8450298309326172, 1.0429445505142212, 0.15226227045059204, -1.1974190473556519, 0.3648289144039154, 1.6392958164215088, -0.013575771823525429, -0.14695364236831665, 0.7589622735977173, 0.3666572570800781, -0.6666484475135803, -0.07905784994363785, -1.0437040328979492, 0.5599266290664673, -0.3341742753982544, -0.3887561559677124, 0.2080451250076294, 0.6017283201217651, 1.2064934968948364, 0.20471619069576263, 0.04651052504777908, 1.409522294998169, -1.3461003303527832, 1.1902832984924316, -1.0343292951583862, 0.3633604943752289, -2.2895100116729736, 1.5518839359283447, -0.9570980668067932, 1.9153822660446167, -2.699584722518921, 0.5081380605697632, -0.48597779870033264, -0.5765770673751831, 0.18318305909633636, -0.11230562627315521, 0.11323156952857971, -0.048978790640830994, -1.0202202796936035, -0.16897642612457275, -0.8790683150291443, 0.4643232822418213, 1.235912561416626, 1.342649221420288, -0.9669384360313416, -0.24354293942451477, -1.6425423622131348, -0.25706544518470764, -0.43694552779197693, 0.17694993317127228, -1.7467728853225708, -0.1533956378698349, -2.02063250541687, -2.55645489692688, -1.3563764095306396, -0.9903221130371094, 1.294335126876831, 0.11170317977666855, -0.928274393081665, 1.1123363971710205, -0.46942806243896484, -1.7956551313400269, 1.3005471229553223, -2.252528190612793 ]
https://github.com/huggingface/datasets/issues/3596
Loss of cast `Image` feature on certain dataset method
Appolgies - I've just run again and also got this output. I have also sucesfully used the `push_to_hub` method. I think this is fixed now so will close this issue.
## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
1,000
30
Loss of cast `Image` feature on certain dataset method ## Describe the bug When an a column is cast to an `Image` feature, the cast type appears to be lost during certain operations. I first noticed this when using the `push_to_hub` method on a dataset that contained urls pointing to images which had been cast to an `image`. This also happens when using select on a dataset which has had a column cast to an `Image`. I suspect this might be related to https://github.com/huggingface/datasets/pull/3556 but I don't believe that pull request fixes this issue. ## Steps to reproduce the bug An example of casting a url to an image followed by using the `select` method: ```python from datasets import Dataset from datasets import features url = "https://cf.ltkcdn.net/cats/images/std-lg/246866-1200x816-grey-white-kitten.webp" data_dict = {"url": [url]*2} dataset = Dataset.from_dict(data_dict) dataset = dataset.cast_column('url',features.Image()) sample = dataset.select([1]) ``` [example notebook](https://gist.github.com/davanstrien/06e53f4383c28ae77ce1b30d0eaf0d70#file-potential_casting_bug-ipynb) ## Expected results The cast value is maintained when further methods are applied to the dataset. ## Actual results ```python --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-12-47f393bc2d0d> in <module>() ----> 1 sample = dataset.select([1]) 4 frames /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 487 } 488 # apply actual function --> 489 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 490 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 491 # re-apply format to the output /usr/local/lib/python3.7/dist-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 409 # Call actual function 410 --> 411 out = func(self, *args, **kwargs) 412 413 # Update fingerprint of in-place transforms + update in-place history of transforms /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in select(self, indices, keep_in_memory, indices_cache_file_name, writer_batch_size, new_fingerprint) 2772 ) 2773 else: -> 2774 return self._new_dataset_with_indices(indices_buffer=buf_writer.getvalue(), fingerprint=new_fingerprint) 2775 2776 @transmit_format /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in _new_dataset_with_indices(self, indices_cache_file_name, indices_buffer, fingerprint) 2688 split=self.split, 2689 indices_table=indices_table, -> 2690 fingerprint=fingerprint, 2691 ) 2692 /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in __init__(self, arrow_table, info, split, indices_table, fingerprint) 664 if self.info.features.type != inferred_features.type: 665 raise ValueError( --> 666 f"External features info don't match the dataset:\nGot\n{self.info.features}\nwith type\n{self.info.features.type}\n\nbut expected something like\n{inferred_features}\nwith type\n{inferred_features.type}" 667 ) 668 ValueError: External features info don't match the dataset: Got {'url': Image(id=None)} with type struct<url: extension<arrow.py_extension_type<ImageExtensionType>>> but expected something like {'url': Value(dtype='string', id=None)} with type struct<url: string> ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.1.dev0 - Platform: Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 Appolgies - I've just run again and also got this output. I have also sucesfully used the `push_to_hub` method. I think this is fixed now so will close this issue.
[ -1.201468825340271, -0.7746816873550415, -0.6459198594093323, 1.4882506132125854, -0.015453265979886055, -1.35554039478302, 0.10223808139562607, -0.8974181413650513, 1.6938108205795288, -0.8448341488838196, 0.3939143121242523, -1.7225538492202759, 0.07499473541975021, -0.656111478805542, -0.7071961760520935, -0.6894180774688721, -0.3152649998664856, -0.6501471996307373, 1.112879991531372, 2.470877170562744, 1.1746184825897217, -1.3025654554367065, 2.789386034011841, 0.688117265701294, -0.25606226921081543, -0.8240587711334229, 0.3747425377368927, 0.014296460896730423, -1.5077736377716064, -0.24961517751216888, -0.9448063373565674, -0.0729837566614151, -0.6687612533569336, -0.6563407182693481, 0.08756828308105469, 0.505547821521759, -0.238017737865448, -0.4602823257446289, -0.42629143595695496, -0.7297080159187317, 0.5533207058906555, -0.30505430698394775, 0.822564959526062, -0.29781463742256165, 1.7647637128829956, -0.6602283716201782, 0.4728640913963318, 0.5213006138801575, 1.2364734411239624, 0.2708864212036133, -0.06202666461467743, 0.40524473786354065, 0.2279330939054489, 0.012271145358681679, 0.5187274217605591, 1.233500599861145, 0.5942846536636353, 0.5271718502044678, 0.7835416793823242, -2.215269088745117, 1.381300449371338, -0.7481448650360107, 0.24688097834587097, 1.2414252758026123, -1.0790479183197021, 0.4997422397136688, -1.8764984607696533, -0.13699857890605927, 0.39545026421546936, -2.281707286834717, 0.11317183077335358, -1.2849129438400269, -0.5666986107826233, 1.0231406688690186, 0.3283330202102661, -1.212731957435608, -0.06368289887905121, -0.4578624963760376, 0.9151660799980164, 0.4001508355140686, 1.1582388877868652, -1.6949098110198975, 0.007444122806191444, -0.26210013031959534, 0.3835093080997467, -1.2398474216461182, -1.5760197639465332, 0.6828622817993164, 0.7846688032150269, 0.609448254108429, -0.18654966354370117, 0.8484405875205994, -1.024340271949768, 0.751608669757843, -0.9432849884033203, -1.8502197265625, -1.321057915687561, -2.33842134475708, -2.3891656398773193, 0.7380644679069519, -0.4097014367580414, -0.4062805771827698, 2.152127742767334, -1.150689721107483, -1.8164435625076294, 1.0232963562011719, 0.33407342433929443, -0.14787563681602478, 2.360823154449463, 0.2007141411304474, -0.9212551712989807, 0.7551915645599365, -0.8252842426300049, 0.658152163028717, -0.4024004638195038, 1.3242223262786865, 0.38029006123542786, -1.1295491456985474, 1.5935887098312378, -0.4126223921775818, 0.5571125149726868, -0.7871409058570862, -0.3381344974040985, -0.5580514073371887, 0.1951962113380432, 1.953160285949707, -0.174503356218338, 1.568914771080017, -0.1908753514289856, -1.465942621231079, -1.3799595832824707, 0.7228844165802002, 0.5848079919815063, -0.7996624708175659, 0.24939599633216858, -0.409881055355072, 0.13779950141906738, 0.17121915519237518, 1.0896117687225342, 1.2891641855239868, 0.8144619464874268, -0.12946587800979614, -0.8869891166687012, 0.0770874172449112, -0.007810352370142937, -0.574394941329956, -1.7385804653167725, -0.29992175102233887, 0.24127066135406494, 0.6263999342918396, -1.2169146537780762, 1.8994386196136475, 0.858680248260498, 2.0380210876464844, 1.0485899448394775, -0.34937095642089844, 1.5422089099884033, 0.09400199353694916, 1.957802176475525, -0.2661740481853485, 0.7129787802696228, -0.5146142244338989, -1.157945156097412, 0.6353763937950134, -0.30835506319999695, -2.043769121170044, -0.3779616057872772, -0.8416277766227722, -0.13917723298072815, -0.8657509684562683, 1.0124825239181519, -0.18772821128368378, -1.3485304117202759, 0.27852219343185425, -0.7146972417831421, 0.1495269536972046, -1.402872920036316, 0.2729056179523468, 0.754913866519928, -0.7505882978439331, 0.10139936208724976, -0.48883700370788574, -1.393741250038147, -0.659003734588623, 0.44911590218544006, 1.6958245038986206, -0.7013188600540161, 1.0011491775512695, 0.991405189037323, -0.5705760717391968, -0.11192061752080917, 0.5079029202461243, -0.38511940836906433, 0.8888553380966187, -1.0078318119049072, -0.34781819581985474, 1.080191969871521, -0.3032941222190857, -0.4890117049217224, 1.2902580499649048, 0.7316467761993408, -0.9398584365844727, -0.28088489174842834, -0.10859625786542892, -0.8433868288993835, 0.04916349798440933, -1.617735505104065, -0.05937136709690094, 0.2870771288871765, -1.4873046875, -0.4976198673248291, -0.06480041146278381, 1.2607054710388184, 0.06992010027170181, 1.2943115234375, -0.21317560970783234, -0.1610497385263443, -0.5361241698265076, -0.5060766339302063, 0.0909973606467247, -0.15384751558303833, -0.6539743542671204, 0.2979034185409546, -0.7091692090034485, 0.18328270316123962, 1.4142369031906128, 0.2618023753166199, 0.11206815391778946, 0.5901713371276855, 1.2499994039535522, 0.31445252895355225, -0.18336860835552216, -0.772445797920227, -1.732638955116272, 1.9482563734054565, -1.5691277980804443, 1.9479024410247803, 0.8673080801963806, 0.0014239614829421043, -1.858672022819519, -1.8373103141784668, 1.558694839477539, 1.0795022249221802, 2.570787191390991, 0.5650807619094849, 0.40766197443008423, -0.7858330607414246, -0.6597399115562439, 0.4502127766609192, -0.715076744556427, -0.9572372436523438, 0.14473195374011993, 2.328169107437134, 1.7350926399230957, -0.3777216076850891, -0.20446887612342834, -1.0133424997329712, 1.3652435541152954, -0.2681247293949127, 0.22504965960979462, 1.830952763557434, -0.36107829213142395, -1.0487788915634155, 1.2755053043365479, -2.3247106075286865, 0.27772098779678345, 1.9427870512008667, 0.2717963457107544, 0.006953036412596703, -1.1116902828216553, -0.783701479434967, -0.1205984577536583, -0.4500259757041931, -1.2554713487625122, 0.32936325669288635, -0.16649824380874634, -0.7625059485435486, -1.4086873531341553, 0.021292319521307945, -1.1961060762405396, -1.682641863822937, 0.29657915234565735, 1.8141071796417236, 2.106194019317627, -0.7784294486045837, 1.3460066318511963, -0.30273857712745667, 0.29950010776519775, 1.1622828245162964, 1.234825849533081, 3.260634422302246, 1.9066451787948608, -1.2543556690216064, 0.720266580581665, -0.13894039392471313, -0.5563351511955261, 1.2417494058609009, -1.013346552848816, 1.2092790603637695, -0.33021795749664307, -1.3268898725509644, -1.2059366703033447, 0.8869647979736328, 0.4865941107273102, -0.014840260148048401, -0.4947716295719147, 1.0511285066604614, 0.19122430682182312, 1.3279528617858887, 0.596170961856842, -0.2892022728919983, 0.5567654967308044, -0.33169522881507874, -0.5662591457366943, 1.5777031183242798, 0.06225132197141647, -1.4739171266555786, -2.290219783782959, -0.12195274978876114, -0.9449542760848999, -0.0027741813100874424, -0.8759316802024841, -1.0455337762832642, 1.5079234838485718, 0.49071672558784485, -0.9442551136016846, -0.037448130548000336, -0.39228981733322144, -0.6468560695648193, 2.632032871246338, -1.3778924942016602, -0.28207921981811523, -0.9191087484359741, -0.630527138710022, 1.5160080194473267, -1.1117615699768066, -0.26403284072875977, -1.0326963663101196, -0.4496256113052368, -1.2791239023208618, -0.4670484960079193, -0.08356039226055145, -0.7715320587158203, 0.7473523020744324, -0.06054338812828064, -1.3258483409881592, -0.24466468393802643, -1.0478432178497314, 0.8693869113922119, -0.28737303614616394, 0.023350069299340248, 1.7498698234558105, 0.3315906524658203, -0.3591654300689697, 0.7607805132865906, 1.2122787237167358, 0.6051623225212097, -0.5535537600517273, 0.31379300355911255, -0.6522537469863892, 0.4306876063346863, -1.2028446197509766, 0.2950459420681, -2.894490957260132, 0.6960712671279907, 0.10950663685798645, -0.055471912026405334, -0.10868041962385178, -1.441673994064331, 0.8843791484832764, 2.5070414543151855, -1.1157417297363281, 0.5619699954986572, 0.3104025423526764, 1.1655995845794678, -1.640162706375122, 0.05423733592033386, -0.6655118465423584, 2.0842580795288086, 0.0443560853600502, 1.0811678171157837, -0.5868567228317261, -2.3253796100616455, 0.5220686197280884, -1.2153003215789795, -1.0221208333969116, 0.8538513779640198, -0.8759205341339111, 0.1374487578868866, -1.1626005172729492, -0.09819314628839493, -0.8839735388755798, -1.151525855064392, 0.5814100503921509, 0.06595674902200699, 0.6793345808982849, -0.6233767867088318, 0.26461127400398254, -2.288417339324951, -1.3869082927703857, -0.24583180248737335, -0.9067347049713135, 0.469872385263443, -0.35908812284469604, 0.7329635620117188, -0.12847764790058136, 0.05793441832065582, 0.2755252718925476, 1.4886471033096313, 3.118514060974121, 0.0346575528383255, 0.34808599948883057, -0.3134879767894745, -1.0424354076385498, 1.5054048299789429, 0.9359871745109558, -0.25801730155944824, -0.6335965394973755, -0.9731473326683044, 1.2532204389572144, 1.9402899742126465, 1.0773742198944092, 0.08509235829114914, -0.966342568397522, -0.8021821975708008, 0.13146962225437164, 0.08279679715633392, 0.3918518126010895, 1.018835186958313, 0.18512028455734253, 0.22095297276973724, 1.4173731803894043, 1.1093249320983887, -0.2757227420806885, 0.5406167507171631, -0.7743393182754517, -0.39383581280708313, 0.5499423146247864, 0.4359515309333801, 0.0000016335397958755493, 0.19322705268859863, -1.0890237092971802, -0.1721791923046112, -0.28192535042762756, -0.9059517979621887, -0.7602343559265137, -0.42876943945884705, -0.3996554911136627, 1.7789133787155151, -0.12382671982049942, -0.5190041065216064, -0.0032545411959290504, -0.7755884528160095, -0.058744803071022034, -0.9346883893013, 0.3721960484981537, -0.18005214631557465, 0.042739540338516235, -0.07194353640079498, 1.604207158088684, -1.0311747789382935, -2.2529799938201904, 0.196816548705101, 0.18411627411842346, -0.3946150243282318, -0.06581635773181915, 1.8396074771881104, 0.6020734310150146, 1.4361562728881836, 1.61467444896698, 1.10371994972229, -0.7296827435493469, -1.3096450567245483, 0.7046563625335693, 0.9100799560546875, -1.3158116340637207, 0.8996793627738953, -0.10813993960618973, -0.6841897964477539, 0.5322864055633545, 1.2753334045410156, 0.44281989336013794, -1.960756778717041, 0.8108444213867188, -1.1045105457305908, 0.8282637000083923, 0.7521418333053589, 0.8258810639381409, 0.07836233079433441, 0.857681155204773, -1.2702178955078125, -1.0060466527938843, -0.6026333570480347, -0.6458929777145386, 1.8460592031478882, -0.25004470348358154, 0.32049983739852905, -0.28204232454299927, -1.342283844947815, 0.1682417243719101, 0.7027988433837891, 0.30904996395111084, -0.3663824200630188, 0.6944335103034973, -0.6981566548347473, -1.1054733991622925, -1.3113315105438232, -0.48689979314804077, -0.9930881857872009, -0.8193573355674744, 0.9313908219337463, 0.7511075139045715, 0.49630966782569885, 1.9397300481796265, 0.6759385466575623, 0.17984400689601898, -2.624729871749878, 0.8234508633613586, 0.34136685729026794, -0.08673397451639175, 0.8527865409851074, 0.3072778880596161, 1.1615084409713745, -0.18895632028579712, 0.6142283082008362, -2.3127217292785645, 2.212042808532715, -0.3042292594909668, 0.736598789691925, 0.02491932176053524, -0.005282753612846136, 1.0011780261993408, 0.48196130990982056, 0.5483041405677795, -1.0755219459533691, 0.8999155759811401, -0.6300313472747803, 1.1636353731155396, 0.8328479528427124, -0.8939896821975708, 0.15255895256996155, 1.186693787574768, 0.3114810585975647, -0.4918684661388397, -1.0417389869689941, -0.8501225709915161, 0.9943477511405945, 1.8018149137496948, -0.00883434433490038, 0.13518007099628448, 0.8681736588478088, 0.7577421069145203, -1.3771682977676392, 0.031921714544296265, -0.6390563249588013, -0.7194453477859497, 1.8209028244018555, 2.045346260070801, -0.01586369425058365, -0.08446905761957169, -0.7342537045478821, -1.412050724029541, 0.8873291611671448, 0.1864491105079651, -0.06600609421730042, 0.7794934511184692, -0.6784667372703552, 1.1871663331985474, 0.8610138297080994, 0.8591586351394653, 0.2473793625831604, 0.04365275800228119, 0.24786821007728577, -0.29156723618507385, -1.2281798124313354, -0.2563679814338684, -0.9303256869316101, -2.502229928970337, 0.4184199273586273, -0.21245887875556946, -1.4847383499145508, 0.17155908048152924, -1.0106775760650635, 0.6978781819343567, -0.5112450122833252, -1.20186185836792, -1.3973090648651123, 0.2414984107017517, -0.1763676106929779, 0.7636175751686096, -1.5676897764205933, -0.12865059077739716, 1.125870943069458, 0.9718422889709473, -0.6717217564582825, 0.870185911655426, 0.27849727869033813, 0.9034169912338257, 1.0995668172836304, -0.41958245635032654, 0.3806340992450714, 0.2668458819389343, -1.3211814165115356, 0.30982741713523865, 1.354398488998413, 0.20955359935760498, 1.3849190473556519, -0.5146029591560364, -0.07527947425842285, 0.40370097756385803, -0.22992603480815887, -0.47976475954055786, -0.8485048413276672, 0.624768078327179, -0.0843496322631836, -0.9338443875312805, -0.04848656803369522, 0.11824756860733032, -0.14401984214782715, 0.35141199827194214, -1.5319617986679077, 0.0019267667084932327, -0.35662126541137695, -0.7027246952056885, -1.2877098321914673, -0.05615779757499695, 1.312835454940796, -0.8541297912597656, -0.1262964904308319, 0.6055002808570862, 0.15783856809139252, 0.557590126991272, 0.6521531343460083, -0.7781538963317871, -0.2665068209171295, -0.08440238237380981, -0.45544013381004333, 0.32839876413345337, 1.2975953817367554, -0.0921090766787529, -0.9772144556045532, 0.5530056953430176, -0.2583930492401123, 0.20737087726593018, 1.958711862564087, 0.0500183179974556, -0.9087716341018677, 0.2788313925266266, -0.7419353127479553, 1.863126516342163, 1.6553999185562134, 1.3270083665847778, -0.08253075927495956, -0.9969663023948669, 0.5982213020324707, -0.3174856901168823, -0.42143964767456055, 0.9208745956420898, 0.4239766001701355, -0.2501840591430664, -1.360418677330017, 0.7494872808456421, 1.26554274559021, -0.792462170124054, -0.7983929514884949, 0.08561665564775467, -0.8287448287010193, 1.2413268089294434, 0.7241576910018921, 0.3007506728172302, 0.26707687973976135, 1.6710528135299683, 0.7367475628852844, -0.5493157505989075, 0.5454475283622742, 0.43073126673698425, -0.1752508282661438, -1.9808584451675415, -1.1080704927444458, 0.30904412269592285, -0.4212270975112915, -1.5248932838439941, 1.3920910358428955, -1.3072500228881836, -0.9957011342048645, 0.5750454664230347, 0.17602603137493134, 1.379516363143921, 0.24138939380645752, 1.7160663604736328, 1.999550461769104, 0.9299308657646179, 0.4542989730834961, 1.1223992109298706, -0.2838484048843384, -0.25701677799224854, 1.631195306777954, -0.5170602202415466, 0.6952012181282043, 1.0477124452590942, -0.37720581889152527, -1.2286851406097412, -0.8288577198982239, -1.2363709211349487, -0.8450298309326172, 1.0429445505142212, 0.15226227045059204, -1.1974190473556519, 0.3648289144039154, 1.6392958164215088, -0.013575771823525429, -0.14695364236831665, 0.7589622735977173, 0.3666572570800781, -0.6666484475135803, -0.07905784994363785, -1.0437040328979492, 0.5599266290664673, -0.3341742753982544, -0.3887561559677124, 0.2080451250076294, 0.6017283201217651, 1.2064934968948364, 0.20471619069576263, 0.04651052504777908, 1.409522294998169, -1.3461003303527832, 1.1902832984924316, -1.0343292951583862, 0.3633604943752289, -2.2895100116729736, 1.5518839359283447, -0.9570980668067932, 1.9153822660446167, -2.699584722518921, 0.5081380605697632, -0.48597779870033264, -0.5765770673751831, 0.18318305909633636, -0.11230562627315521, 0.11323156952857971, -0.048978790640830994, -1.0202202796936035, -0.16897642612457275, -0.8790683150291443, 0.4643232822418213, 1.235912561416626, 1.342649221420288, -0.9669384360313416, -0.24354293942451477, -1.6425423622131348, -0.25706544518470764, -0.43694552779197693, 0.17694993317127228, -1.7467728853225708, -0.1533956378698349, -2.02063250541687, -2.55645489692688, -1.3563764095306396, -0.9903221130371094, 1.294335126876831, 0.11170317977666855, -0.928274393081665, 1.1123363971710205, -0.46942806243896484, -1.7956551313400269, 1.3005471229553223, -2.252528190612793 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
Hello! I have recently been involved with a medical image segmentation project myself and was going through the `The Medical Segmentation Decathlon Dataset` as well. I haven't yet had experience adding datasets to this repository yet but would love to get started. Should I take this issue? If yes, I've got two questions - 1. There are 10 different datasets available, so are all datasets to be added in a single PR, or one at a time? 2. Since it's a competition, masks for the test-set are not available. How is that to be tackled? Sorry if it's a silly question, I have recently started exploring `datasets`.
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
1,002
107
Add The Medical Segmentation Decathlon Dataset ## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hello! I have recently been involved with a medical image segmentation project myself and was going through the `The Medical Segmentation Decathlon Dataset` as well. I haven't yet had experience adding datasets to this repository yet but would love to get started. Should I take this issue? If yes, I've got two questions - 1. There are 10 different datasets available, so are all datasets to be added in a single PR, or one at a time? 2. Since it's a competition, masks for the test-set are not available. How is that to be tackled? Sorry if it's a silly question, I have recently started exploring `datasets`.
[ -1.2108086347579956, -1.0030993223190308, -0.7367874383926392, 1.267835259437561, -0.1963910609483719, -1.228546142578125, 0.08073759824037552, -1.0922257900238037, 1.6977535486221313, -0.6576942801475525, 0.28416433930397034, -1.7289332151412964, -0.02609354257583618, -0.6454722285270691, -0.7691134214401245, -0.8464386463165283, -0.4402604103088379, -0.8562577962875366, 1.0203102827072144, 2.5759754180908203, 1.0648720264434814, -1.464714527130127, 2.7265284061431885, 0.6358060240745544, -0.11951376497745514, -0.9915237426757812, 0.526835560798645, 0.10080762207508087, -1.2976772785186768, -0.4636015295982361, -0.8880330920219421, -0.08339784294366837, -0.49311915040016174, -0.46870100498199463, 0.16477106511592865, 0.3714654743671417, -0.10878189653158188, -0.4114052653312683, -0.5593953728675842, -0.7212067246437073, 0.4750755727291107, -0.4073450565338135, 0.9986687898635864, -0.3689613938331604, 1.8766350746154785, -0.5400637984275818, 0.37625792622566223, 0.6481807231903076, 1.4006743431091309, 0.18442568182945251, 0.042326804250478745, 0.32525867223739624, 0.40438252687454224, 0.04350239783525467, 0.39449310302734375, 1.097495436668396, 0.6246693134307861, 0.5205970406532288, 0.7059659957885742, -2.1656594276428223, 1.3668073415756226, -1.0037490129470825, 0.40866178274154663, 1.5146236419677734, -0.8888046145439148, 0.45575273036956787, -1.8504279851913452, -0.04462238401174545, 0.5346793532371521, -2.2855467796325684, 0.11683076620101929, -1.275611400604248, -0.6235127449035645, 0.9686710834503174, 0.2761131525039673, -1.2497930526733398, 0.32458385825157166, -0.4588949382305145, 1.010801076889038, 0.43603983521461487, 1.1899526119232178, -1.766933798789978, -0.10860724002122879, -0.2621372640132904, 0.06926638633012772, -1.3525912761688232, -1.5082120895385742, 0.6320968866348267, 0.639534056186676, 0.6315267086029053, -0.1452002227306366, 0.8635144829750061, -0.9545650482177734, 0.9210727214813232, -1.0115246772766113, -1.6439802646636963, -1.4122315645217896, -2.2295217514038086, -2.329472541809082, 0.903318464756012, -0.45131486654281616, -0.46127960085868835, 1.9626344442367554, -0.9924817085266113, -1.7436378002166748, 1.1206021308898926, 0.3290724456310272, 0.01585758849978447, 2.397240400314331, 0.17704255878925323, -0.6266573071479797, 0.4003162086009979, -0.8222343325614929, 0.8712345957756042, -0.3782990574836731, 1.4655768871307373, 0.49664583802223206, -0.9972145557403564, 1.5863820314407349, -0.43330252170562744, 0.5104219317436218, -0.6492719054222107, -0.551020622253418, -0.856147289276123, 0.4516928493976593, 1.8829988241195679, -0.25948482751846313, 1.6143805980682373, -0.42018043994903564, -1.6798861026763916, -1.58037269115448, 0.9211300015449524, 0.5455872416496277, -0.9071664214134216, 0.05448739975690842, -0.3407841622829437, 0.12896354496479034, -0.03593180328607559, 1.1023555994033813, 1.1754939556121826, 0.6649795174598694, -0.3698480427265167, -0.9022454619407654, 0.22037065029144287, -0.13841579854488373, -0.7431873679161072, -1.743643879890442, -0.4103354811668396, 0.15063348412513733, 0.6124097108840942, -1.2784210443496704, 1.6218901872634888, 0.9080947637557983, 1.9679648876190186, 0.9780576229095459, -0.4127138555049896, 1.4330285787582397, 0.1429385244846344, 1.8682924509048462, -0.6677064895629883, 0.6596581339836121, -0.3104899525642395, -1.047197937965393, 0.8327937722206116, -0.4063570201396942, -2.0491793155670166, -0.7467822432518005, -0.8987525701522827, -0.26703742146492004, -0.7100305557250977, 0.9475799798965454, -0.26232707500457764, -1.412917137145996, 0.21276596188545227, -0.6571316719055176, 0.15571942925453186, -1.236281156539917, 0.24025650322437286, 0.8267697691917419, -0.6199222207069397, -0.07195384800434113, -0.2632390856742859, -1.3569120168685913, -0.5159201622009277, 0.24091112613677979, 1.913480281829834, -0.7419574856758118, 0.9803923964500427, 0.9217270612716675, -0.7179766297340393, 0.07983998954296112, 0.37432533502578735, -0.314475417137146, 0.8485575318336487, -1.1087936162948608, -0.3316841125488281, 0.993922233581543, -0.1700480431318283, -0.44577786326408386, 1.4928151369094849, 0.7955285906791687, -0.9814391732215881, -0.20745204389095306, -0.24566252529621124, -0.8399443030357361, -0.006456709932535887, -1.6423145532608032, -0.17847998440265656, 0.2187822163105011, -1.4895046949386597, -0.5465301275253296, -0.32079264521598816, 1.164003610610962, -0.1321372240781784, 1.3292124271392822, -0.35254138708114624, -0.33101600408554077, -0.5197506546974182, -0.34990060329437256, 0.2355324625968933, -0.2684312164783478, -0.6343000531196594, 0.28994300961494446, -0.8692445158958435, 0.3401983678340912, 1.436424970626831, 0.46277421712875366, 0.05510719120502472, 0.4959079325199127, 1.0546847581863403, 0.31080204248428345, -0.03467569500207901, -0.8941164612770081, -1.5238699913024902, 2.0500121116638184, -1.5161728858947754, 1.8674900531768799, 0.7508184909820557, -0.0037666847929358482, -1.7020314931869507, -1.8008323907852173, 1.3771840333938599, 1.1940652132034302, 2.3857011795043945, 0.5688270926475525, 0.3805222809314728, -0.7942505478858948, -0.6478014588356018, 0.26239994168281555, -1.0145559310913086, -0.7681324481964111, 0.09528404474258423, 2.3869738578796387, 1.7034271955490112, -0.6490036845207214, -0.24868008494377136, -0.958949625492096, 1.4012205600738525, -0.2013036459684372, 0.18593567609786987, 2.07650089263916, -0.34333425760269165, -1.0938866138458252, 1.2713117599487305, -2.3405561447143555, 0.17085833847522736, 1.9138582944869995, 0.30703040957450867, 0.14079350233078003, -1.4222776889801025, -0.6159626841545105, -0.3515019416809082, -0.42889246344566345, -1.275817632675171, 0.5408812165260315, -0.314259797334671, -0.8819859623908997, -1.592012643814087, 0.11388593912124634, -1.1555639505386353, -1.6098664999008179, 0.38912180066108704, 1.824842095375061, 2.00722074508667, -0.693352222442627, 1.4281562566757202, -0.32077106833457947, 0.1472514569759369, 1.211733341217041, 1.2070153951644897, 3.0628273487091064, 1.8824799060821533, -1.129932165145874, 0.6447625756263733, -0.21384906768798828, -0.47605302929878235, 1.0609595775604248, -1.081474781036377, 1.231648564338684, -0.15467579662799835, -1.1719917058944702, -1.1680456399917603, 1.0104217529296875, 0.5087819695472717, 0.07382268458604813, -0.5282464623451233, 1.2021098136901855, 0.08115030825138092, 1.400785207748413, 0.475233256816864, -0.37699127197265625, 0.5599480867385864, -0.42031240463256836, -0.5739124417304993, 1.5974265336990356, 0.15736885368824005, -1.4635931253433228, -2.392685890197754, -0.27992451190948486, -0.8722227215766907, 0.03483956307172775, -0.6427491903305054, -1.0278129577636719, 1.6287575960159302, 0.4906493127346039, -1.2620772123336792, -0.23261147737503052, -0.3827909827232361, -0.6533953547477722, 2.5784518718719482, -1.40559720993042, -0.17945890128612518, -0.8728949427604675, -0.4781809151172638, 1.644120693206787, -1.1854511499404907, -0.16636087000370026, -1.0449168682098389, -0.6605468392372131, -1.262966275215149, -0.4771661162376404, -0.04899148270487785, -0.9472391605377197, 0.8374156355857849, 0.037620652467012405, -1.0211068391799927, -0.29720911383628845, -0.9266272187232971, 0.7869569063186646, -0.13705256581306458, 0.2807956337928772, 1.8934563398361206, 0.46532076597213745, -0.38780477643013, 0.6858147382736206, 1.172891616821289, 0.6589850187301636, -0.7230672240257263, 0.14371198415756226, -0.677264928817749, 0.2880643308162689, -1.2848862409591675, 0.31833627820014954, -2.8683366775512695, 0.6883758306503296, 0.024086210876703262, -0.0832381397485733, -0.0004232795909047127, -1.2981282472610474, 1.2090517282485962, 2.620756149291992, -1.2381591796875, 0.46177223324775696, 0.3350946605205536, 1.1897541284561157, -1.5866453647613525, 0.4112182855606079, -0.31474027037620544, 2.061250686645508, 0.19424019753932953, 1.1004341840744019, -0.5439751744270325, -2.2313976287841797, 0.5219756960868835, -1.2696926593780518, -1.1156418323516846, 0.6018757820129395, -0.8423202633857727, 0.044866520911455154, -1.5209956169128418, -0.09662584960460663, -0.9183793663978577, -1.2631416320800781, 0.7244113087654114, 0.12380866706371307, 0.40713709592819214, -0.6496130228042603, 0.3911183178424835, -2.2164194583892822, -1.4355459213256836, -0.30958595871925354, -0.8460007905960083, 0.5774670243263245, -0.3231695592403412, 0.7101250290870667, -0.010992517694830894, 0.0857720598578453, 0.3329448401927948, 1.3461203575134277, 3.390874147415161, 0.23361578583717346, 0.34264904260635376, -0.1311778426170349, -0.9639276266098022, 1.4391504526138306, 0.9616440534591675, 0.026696763932704926, -0.5558093190193176, -1.0627497434616089, 1.3689192533493042, 2.0192317962646484, 1.0998612642288208, 0.03677796944975853, -0.7453500032424927, -0.6781750321388245, 0.0803445354104042, 0.2917882204055786, 0.4573959410190582, 0.9612090587615967, 0.08636149764060974, 0.09799444675445557, 1.4334795475006104, 1.2374513149261475, -0.4859974980354309, 0.41455021500587463, -0.8999832272529602, -0.5699355602264404, 0.40950724482536316, 0.29011037945747375, -0.011326941661536694, 0.3781583905220032, -0.9733283519744873, -0.2486432045698166, -0.30279338359832764, -1.052143931388855, -0.6750102639198303, -0.4942444860935211, -0.4497946798801422, 1.6046243906021118, 0.13546544313430786, -0.4705393314361572, -0.02850906178355217, -0.7323623895645142, -0.07530469447374344, -1.1363325119018555, 0.2324295938014984, -0.03709199279546738, -0.08426770567893982, -0.12170802801847458, 1.8403332233428955, -0.8646831512451172, -2.0272226333618164, 0.21852287650108337, 0.31324341893196106, -0.48125022649765015, 0.12115082144737244, 1.6077098846435547, 0.5306714773178101, 1.4474304914474487, 1.288589358329773, 0.9817330241203308, -0.576002836227417, -1.3488026857376099, 0.6224501729011536, 0.9608545899391174, -1.3361533880233765, 0.8029705286026001, -0.014472687616944313, -0.49451735615730286, 0.7211811542510986, 1.2917871475219727, 0.37995514273643494, -1.9810594320297241, 0.8312352299690247, -0.8741961121559143, 0.8774286508560181, 0.6793949604034424, 0.7526934742927551, 0.21402448415756226, 0.863056480884552, -1.3832166194915771, -1.099583625793457, -0.8468125462532043, -0.5242711305618286, 2.0160303115844727, -0.17668893933296204, 0.5338501334190369, -0.25480467081069946, -1.1583348512649536, -0.04762342572212219, 0.707615852355957, 0.46144184470176697, -0.36417654156684875, 0.7853469252586365, -0.6697891354560852, -1.1555285453796387, -1.4048744440078735, -0.39178434014320374, -0.9386667013168335, -0.8579376339912415, 1.0223530530929565, 0.8752478361129761, 0.35795044898986816, 1.8983731269836426, 0.599097490310669, 0.228487029671669, -2.6459879875183105, 0.9025152325630188, 0.3037679195404053, -0.07531938701868057, 0.9196681976318359, 0.27943873405456543, 1.0900975465774536, -0.0034301062114536762, 0.48640069365501404, -2.353529691696167, 2.243178606033325, -0.19415079057216644, 0.786271870136261, 0.02303491160273552, -0.16033487021923065, 1.1951199769973755, 0.5838904976844788, 0.5401356220245361, -1.1669920682907104, 0.6882503628730774, -0.58854740858078, 1.1749194860458374, 0.9229658246040344, -0.7316564321517944, 0.029744811356067657, 1.3287782669067383, 0.5036942958831787, -0.49631214141845703, -0.9720898866653442, -0.8628276586532593, 0.9340505599975586, 1.751063346862793, -0.17314361035823822, -0.049729421734809875, 0.8395575284957886, 0.7640461325645447, -1.2951852083206177, 0.09330964088439941, -0.7341626882553101, -0.7207146286964417, 1.61574387550354, 2.180372714996338, -0.03129157796502113, -0.14673815667629242, -0.657234251499176, -1.212736964225769, 0.7637343406677246, 0.043346259742975235, 0.19732987880706787, 0.69366854429245, -0.6198046207427979, 1.1559199094772339, 0.8949534893035889, 0.945044219493866, 0.06514257937669754, 0.3348444700241089, 0.35758304595947266, -0.29685795307159424, -1.117740273475647, -0.2918730080127716, -1.1475675106048584, -2.4878318309783936, 0.4767826497554779, -0.24253340065479279, -1.4516810178756714, 0.018343504518270493, -1.0413033962249756, 0.9776871800422668, -0.6091275811195374, -1.0877513885498047, -1.5608309507369995, 0.21878190338611603, -0.054971083998680115, 0.9443344473838806, -1.6997162103652954, -0.14274862408638, 1.1727858781814575, 0.7821863889694214, -0.5523521304130554, 0.936767578125, 0.24015547335147858, 0.9264350533485413, 0.851085901260376, -0.38611212372779846, 0.4276955723762512, 0.1205962598323822, -1.4156802892684937, 0.49559250473976135, 1.1443843841552734, 0.23514194786548615, 1.315977931022644, -0.577534556388855, 0.1651729792356491, 0.44252273440361023, -0.4498753845691681, -0.3789249360561371, -0.5107337236404419, 0.6637564897537231, 0.131101593375206, -0.9750685691833496, 0.061514027416706085, -0.0443761982023716, -0.18366150557994843, 0.2343640923500061, -1.4438835382461548, -0.3420271873474121, -0.42298975586891174, -0.48773548007011414, -1.236692190170288, -0.12025038152933121, 1.3652558326721191, -0.77051842212677, -0.1384672224521637, 0.5688384771347046, 0.4676816761493683, 0.6064499020576477, 0.688788115978241, -0.627317488193512, -0.38047975301742554, -0.2793886661529541, -0.3038526773452759, 0.13199447095394135, 1.2665250301361084, -0.2155824899673462, -0.9386398196220398, 0.7121993899345398, -0.38386109471321106, 0.06955546140670776, 1.9460028409957886, 0.033372387290000916, -0.8685787916183472, 0.3289075791835785, -0.7452384829521179, 1.8553345203399658, 1.6914429664611816, 1.3220627307891846, -0.1480296403169632, -0.9629576206207275, 0.5518572330474854, -0.2731618881225586, -0.4500264525413513, 0.9667238593101501, 0.4943072497844696, -0.1296364963054657, -1.3741474151611328, 0.5587539672851562, 1.349395990371704, -0.8986931443214417, -0.8544323444366455, 0.1703004091978073, -0.8117145895957947, 1.0481809377670288, 0.6453543901443481, 0.4198460876941681, 0.22038774192333221, 1.5635080337524414, 0.6677870154380798, -0.48860880732536316, 0.48720237612724304, 0.5184933543205261, -0.15016449987888336, -2.157768964767456, -1.2074781656265259, 0.22195398807525635, -0.4107232987880707, -1.5148435831069946, 1.3343902826309204, -1.1427241563796997, -0.9135433435440063, 0.6033086180686951, 0.08052162081003189, 1.4480003118515015, 0.33905136585235596, 1.6600573062896729, 2.1321067810058594, 0.8861639499664307, 0.346339613199234, 1.3617591857910156, 0.04744216427206993, -0.46150675415992737, 1.839652419090271, -0.3775922954082489, 0.6243878602981567, 1.1484233140945435, -0.34206950664520264, -1.0810205936431885, -0.774041473865509, -1.1371444463729858, -0.6442146301269531, 1.1512783765792847, 0.1224745661020279, -1.2112116813659668, 0.2436458170413971, 1.6378583908081055, 0.09353816509246826, -0.3641015887260437, 0.5372434258460999, 0.512000560760498, -0.7582809329032898, -0.061647966504096985, -1.0752938985824585, 0.43300196528434753, -0.19164104759693146, -0.31619057059288025, 0.27507680654525757, 0.520844042301178, 1.2515087127685547, -0.06868217140436172, 0.12191832065582275, 1.1802747249603271, -1.4257811307907104, 1.4322268962860107, -0.5995258688926697, 0.2639334201812744, -2.4217028617858887, 1.4689244031906128, -0.7059639096260071, 1.9350560903549194, -2.6560800075531006, 0.34131094813346863, -0.6486208438873291, -0.4612114727497101, 0.3227780759334564, -0.3267521560192108, 0.16807566583156586, -0.08890823274850845, -1.1227859258651733, -0.012444310821592808, -0.7664816379547119, 0.566384494304657, 1.1697157621383667, 1.3734130859375, -1.024635910987854, -0.3216148614883423, -1.7515225410461426, -0.184149369597435, -0.6291182041168213, 0.3398263156414032, -2.0189943313598633, -0.0954449251294136, -1.9209864139556885, -2.288912057876587, -1.4390157461166382, -0.9443355202674866, 1.0618481636047363, 0.1467769742012024, -0.8589522242546082, 1.0871294736862183, -0.37542274594306946, -1.8110848665237427, 1.0647622346878052, -2.1816790103912354 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
Hi! Sure, feel free to take this issue. You can self-assign the issue by commenting `#self-assign`. To answer your questions: 1. It makes the most sense to add each one as a separate config, so one dataset script with 10 configs in a single PR. 2. Just set masks in the test set to `None`. Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that).
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
1,002
111
Add The Medical Segmentation Decathlon Dataset ## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi! Sure, feel free to take this issue. You can self-assign the issue by commenting `#self-assign`. To answer your questions: 1. It makes the most sense to add each one as a separate config, so one dataset script with 10 configs in a single PR. 2. Just set masks in the test set to `None`. Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that).
[ -1.2013765573501587, -0.9664275646209717, -0.7799860835075378, 1.3314324617385864, -0.18541499972343445, -1.2805765867233276, 0.12733867764472961, -1.0466992855072021, 1.7179621458053589, -0.6884276866912842, 0.2977902889251709, -1.7284996509552002, 0.02738911658525467, -0.6278929710388184, -0.8195942640304565, -0.8304296135902405, -0.46491119265556335, -0.8384174108505249, 0.9603508114814758, 2.548192024230957, 1.1584086418151855, -1.4183586835861206, 2.7375917434692383, 0.640400767326355, -0.12647441029548645, -1.020513892173767, 0.5157036185264587, 0.09362439066171646, -1.261948585510254, -0.49434784054756165, -0.8788416385650635, -0.09019492566585541, -0.4998385012149811, -0.5262426733970642, 0.1310703456401825, 0.37232404947280884, -0.14835648238658905, -0.42920511960983276, -0.5431532263755798, -0.7728278636932373, 0.4834473133087158, -0.38659030199050903, 0.983558714389801, -0.3730431795120239, 1.86299467086792, -0.5853092074394226, 0.39588314294815063, 0.6933910250663757, 1.4247418642044067, 0.1692826896905899, 0.038073573261499405, 0.3102257251739502, 0.40563735365867615, 0.043213360011577606, 0.39446237683296204, 1.1482380628585815, 0.6682272553443909, 0.5298415422439575, 0.6716737151145935, -2.1884267330169678, 1.3548450469970703, -1.0180602073669434, 0.4039520025253296, 1.4633469581604004, -0.9590417146682739, 0.4307458996772766, -1.8417540788650513, -0.07989933341741562, 0.5457085371017456, -2.3141672611236572, 0.1275930106639862, -1.2842769622802734, -0.6072255969047546, 0.9531108736991882, 0.24408859014511108, -1.281740665435791, 0.27881115674972534, -0.4534059166908264, 1.0764178037643433, 0.42358672618865967, 1.2406507730484009, -1.7051589488983154, -0.076507568359375, -0.2424526959657669, 0.046784739941358566, -1.3082919120788574, -1.5172724723815918, 0.5889599323272705, 0.6230990886688232, 0.6018741726875305, -0.11445914208889008, 0.9211591482162476, -0.9448890686035156, 0.916416585445404, -1.0125497579574585, -1.6891196966171265, -1.3871827125549316, -2.2452871799468994, -2.247680425643921, 0.8876283168792725, -0.4331127405166626, -0.4962545335292816, 2.009737491607666, -0.9986425638198853, -1.7594786882400513, 1.1085937023162842, 0.32651352882385254, -0.004042529035359621, 2.399223804473877, 0.16211268305778503, -0.625907838344574, 0.3554421663284302, -0.7619290947914124, 0.8806921243667603, -0.4227396547794342, 1.4595221281051636, 0.4910227358341217, -0.9841088056564331, 1.5800824165344238, -0.45785579085350037, 0.5153565406799316, -0.7279139161109924, -0.49555617570877075, -0.8526941537857056, 0.45768415927886963, 1.869753360748291, -0.28284895420074463, 1.6079660654067993, -0.37917885184288025, -1.6449944972991943, -1.5628807544708252, 0.9075393676757812, 0.5814037919044495, -0.8502312898635864, 0.01021579559892416, -0.31754258275032043, 0.1404355764389038, -0.028259940445423126, 1.111153244972229, 1.1366217136383057, 0.6773731708526611, -0.4155401885509491, -0.9194587469100952, 0.2019520401954651, -0.1131729781627655, -0.7636549472808838, -1.7834028005599976, -0.3544647991657257, 0.19404132664203644, 0.6030722856521606, -1.2748875617980957, 1.626523733139038, 0.8899945020675659, 1.9831188917160034, 0.9926069974899292, -0.39311107993125916, 1.4787968397140503, 0.10596424341201782, 1.8825932741165161, -0.5801462531089783, 0.6684156656265259, -0.3009253442287445, -1.0826947689056396, 0.8513067960739136, -0.429274320602417, -2.06960391998291, -0.737511396408081, -0.9070206880569458, -0.26278194785118103, -0.7228594422340393, 0.9460600018501282, -0.24737648665905, -1.3889429569244385, 0.20724864304065704, -0.6275144219398499, 0.11842235177755356, -1.2466979026794434, 0.2719648778438568, 0.8215742111206055, -0.629013180732727, -0.05420692265033722, -0.28712332248687744, -1.311880350112915, -0.4961143732070923, 0.24428945779800415, 1.9305737018585205, -0.7381598353385925, 1.0043610334396362, 0.9639820456504822, -0.6868091225624084, 0.024722285568714142, 0.34551697969436646, -0.31033414602279663, 0.8849670886993408, -1.1344847679138184, -0.36982566118240356, 1.0041471719741821, -0.13839343190193176, -0.5235578417778015, 1.4684008359909058, 0.7896762490272522, -0.9906182885169983, -0.21906448900699615, -0.18698544800281525, -0.8417867422103882, 0.04500223323702812, -1.6489291191101074, -0.19391395151615143, 0.2242819368839264, -1.4710724353790283, -0.5494132041931152, -0.3169412314891815, 1.2162315845489502, -0.16281217336654663, 1.3917900323867798, -0.3218061625957489, -0.32868579030036926, -0.5147952437400818, -0.3366130292415619, 0.17353735864162445, -0.22554153203964233, -0.6440401077270508, 0.24193793535232544, -0.799342691898346, 0.3328194320201874, 1.3929156064987183, 0.44901153445243835, 0.05441717058420181, 0.513298749923706, 1.0900830030441284, 0.2946615517139435, -0.019926313310861588, -0.9030418992042542, -1.5763450860977173, 2.042552947998047, -1.4885225296020508, 1.9215844869613647, 0.7894898056983948, 0.04999559745192528, -1.7182742357254028, -1.8239415884017944, 1.3885623216629028, 1.1869230270385742, 2.3885600566864014, 0.5498345494270325, 0.3967040479183197, -0.7774441838264465, -0.6717054843902588, 0.26246368885040283, -1.0467766523361206, -0.766674280166626, 0.1070634052157402, 2.381955862045288, 1.7190062999725342, -0.6072589755058289, -0.21814106404781342, -1.0101888179779053, 1.3579020500183105, -0.15457876026630402, 0.18295735120773315, 2.0759756565093994, -0.30803006887435913, -1.048281192779541, 1.2238956689834595, -2.3300607204437256, 0.13728594779968262, 1.9335086345672607, 0.3128090500831604, 0.09448480606079102, -1.4422920942306519, -0.6061532497406006, -0.3028741478919983, -0.45902684330940247, -1.3146586418151855, 0.5309862494468689, -0.2893271744251251, -0.852532684803009, -1.5545308589935303, 0.09799513965845108, -1.1353085041046143, -1.6183295249938965, 0.3493480682373047, 1.8864716291427612, 1.9553940296173096, -0.7011297941207886, 1.4575811624526978, -0.2986494302749634, 0.11331391334533691, 1.2284612655639648, 1.1788502931594849, 3.1091396808624268, 1.9253987073898315, -1.219849944114685, 0.5946475267410278, -0.17354907095432281, -0.479545533657074, 1.0371124744415283, -1.0728535652160645, 1.230122685432434, -0.19891823828220367, -1.2224631309509277, -1.1866782903671265, 1.0230214595794678, 0.5137166380882263, 0.0865451991558075, -0.5249483585357666, 1.197396993637085, 0.09369799494743347, 1.3903748989105225, 0.5046704411506653, -0.39676904678344727, 0.6086369752883911, -0.39964380860328674, -0.5500656962394714, 1.6141117811203003, 0.13429570198059082, -1.446370005607605, -2.377937078475952, -0.24693098664283752, -0.8925549983978271, 0.034521982073783875, -0.6679823398590088, -1.0039656162261963, 1.6337673664093018, 0.49762991070747375, -1.2818288803100586, -0.2938773036003113, -0.3818579614162445, -0.6762755513191223, 2.563077449798584, -1.3931055068969727, -0.1999083310365677, -0.9262422323226929, -0.5116277933120728, 1.616246223449707, -1.2038949728012085, -0.19410856068134308, -1.0156904458999634, -0.6466448903083801, -1.2568634748458862, -0.4842846095561981, -0.02294989302754402, -0.904753565788269, 0.8396949768066406, 0.04248448461294174, -1.0498284101486206, -0.2618306577205658, -0.8931663632392883, 0.81231689453125, -0.10103637725114822, 0.23347197473049164, 1.933137059211731, 0.47509628534317017, -0.4365327060222626, 0.6876292824745178, 1.1337279081344604, 0.6014682650566101, -0.7212011814117432, 0.18256217241287231, -0.6787790060043335, 0.2818477153778076, -1.287090539932251, 0.32736533880233765, -2.862623929977417, 0.6749393343925476, -0.05135849118232727, -0.07124707102775574, 0.01603250950574875, -1.3017808198928833, 1.144816279411316, 2.6387171745300293, -1.1755938529968262, 0.44279277324676514, 0.327644407749176, 1.2080280780792236, -1.6430025100708008, 0.42005854845046997, -0.36438897252082825, 2.0682759284973145, 0.18548154830932617, 1.1033681631088257, -0.5494411587715149, -2.2262117862701416, 0.543587863445282, -1.2475001811981201, -1.1466376781463623, 0.6697767972946167, -0.7958002686500549, 0.045382555574178696, -1.4461212158203125, -0.14321371912956238, -0.9046108722686768, -1.2734519243240356, 0.6967068314552307, 0.11734963208436966, 0.4181091785430908, -0.6672330498695374, 0.29285669326782227, -2.2169911861419678, -1.3283237218856812, -0.25570517778396606, -0.8772419691085815, 0.48947611451148987, -0.32208502292633057, 0.6773120760917664, -0.03745484724640846, 0.09419544786214828, 0.30340057611465454, 1.3295100927352905, 3.3754007816314697, 0.23899996280670166, 0.3794400691986084, -0.12737077474594116, -0.9436343908309937, 1.446865200996399, 0.903802752494812, -0.005239807069301605, -0.5616812109947205, -1.0437268018722534, 1.312612771987915, 1.9976732730865479, 1.0610932111740112, 0.08164440095424652, -0.7581532001495361, -0.6829559206962585, 0.03350558131933212, 0.2585046887397766, 0.43971213698387146, 0.9525063037872314, 0.04992146044969559, 0.13216817378997803, 1.4257307052612305, 1.272696852684021, -0.4547695815563202, 0.4235161542892456, -0.8709772229194641, -0.5135169625282288, 0.4364379644393921, 0.3301457166671753, -0.04473786801099777, 0.3230436146259308, -0.9884052872657776, -0.2846405506134033, -0.3183927536010742, -1.0313491821289062, -0.6816031336784363, -0.4043236970901489, -0.40026411414146423, 1.6405130624771118, 0.12995944917201996, -0.42449522018432617, -0.01818862557411194, -0.7375996708869934, -0.08554598689079285, -1.1456023454666138, 0.31218162178993225, -0.06985864788293839, -0.1015118733048439, -0.09725556522607803, 1.8417415618896484, -0.8927386403083801, -2.0712876319885254, 0.25680163502693176, 0.25712883472442627, -0.49150899052619934, 0.13753901422023773, 1.6205840110778809, 0.5568031668663025, 1.4481987953186035, 1.336246371269226, 0.9998056888580322, -0.6203307509422302, -1.3544095754623413, 0.6452372074127197, 0.9360208511352539, -1.3690409660339355, 0.7580912113189697, 0.051713790744543076, -0.4771254062652588, 0.7394227981567383, 1.302338719367981, 0.32007527351379395, -2.0419981479644775, 0.8339409232139587, -0.8556063771247864, 0.8170665502548218, 0.660997211933136, 0.7062243819236755, 0.2596301734447479, 0.9007054567337036, -1.3598228693008423, -1.1555962562561035, -0.8228244185447693, -0.5303327441215515, 2.018706798553467, -0.19546917080879211, 0.5743257403373718, -0.2521986663341522, -1.2484185695648193, -0.027206849306821823, 0.7121753692626953, 0.4403405785560608, -0.386165976524353, 0.7946591973304749, -0.6839969158172607, -1.1649948358535767, -1.461414098739624, -0.43907657265663147, -0.9454552531242371, -0.853409469127655, 0.9936965703964233, 0.8888338208198547, 0.34360361099243164, 1.952831506729126, 0.6003101468086243, 0.23455072939395905, -2.6493053436279297, 0.8464509844779968, 0.32128211855888367, -0.07130274921655655, 0.9127283692359924, 0.31560543179512024, 1.0932786464691162, 0.03173212707042694, 0.4504592716693878, -2.3724167346954346, 2.2516286373138428, -0.22689907252788544, 0.803244411945343, 0.053735703229904175, -0.21950402855873108, 1.1840485334396362, 0.5579627752304077, 0.5675310492515564, -1.1425474882125854, 0.6974482536315918, -0.6018523573875427, 1.1905055046081543, 0.915992259979248, -0.7573800683021545, -0.004799837712198496, 1.341512680053711, 0.5509405732154846, -0.49216198921203613, -0.9529687166213989, -0.9186803698539734, 0.8982607126235962, 1.8030859231948853, -0.10843861103057861, 0.016692984849214554, 0.8453994393348694, 0.7196949124336243, -1.2520431280136108, 0.11163023859262466, -0.77385413646698, -0.730352520942688, 1.6368919610977173, 2.1022448539733887, -0.008392914198338985, -0.1848032921552658, -0.6880655288696289, -1.2350870370864868, 0.8217813968658447, 0.03362409025430679, 0.15763038396835327, 0.6779559254646301, -0.6244046688079834, 1.1500661373138428, 0.8889284133911133, 0.9773169755935669, 0.08104830980300903, 0.355358749628067, 0.3825266659259796, -0.3211457431316376, -1.0853792428970337, -0.24243959784507751, -1.16132390499115, -2.465656042098999, 0.48914843797683716, -0.2705131769180298, -1.4429079294204712, 0.0436142235994339, -1.0060667991638184, 0.9590507745742798, -0.616263210773468, -1.075809121131897, -1.554632306098938, 0.25297415256500244, -0.05612596869468689, 0.9451326727867126, -1.6219234466552734, -0.10811250656843185, 1.1878587007522583, 0.7803624272346497, -0.5390620231628418, 0.9223783016204834, 0.20289096236228943, 0.951237678527832, 0.867186963558197, -0.4006099998950958, 0.40057021379470825, 0.1107022687792778, -1.3989529609680176, 0.491603821516037, 1.1295486688613892, 0.20732657611370087, 1.3477383852005005, -0.5557227730751038, 0.15199697017669678, 0.4324827194213867, -0.5163877606391907, -0.4286907911300659, -0.5162376761436462, 0.7101768255233765, 0.07891172170639038, -0.9651266932487488, 0.08455943316221237, -0.06282325088977814, -0.17927516996860504, 0.2306470274925232, -1.4416364431381226, -0.3130079507827759, -0.3901965022087097, -0.48412826657295227, -1.256784439086914, -0.08157170563936234, 1.3137290477752686, -0.7690696120262146, -0.16150806844234467, 0.5689292550086975, 0.4123869836330414, 0.5414758324623108, 0.6372583508491516, -0.6350407600402832, -0.4107203483581543, -0.29500213265419006, -0.2753966748714447, 0.17909419536590576, 1.270153284072876, -0.18988534808158875, -0.9282437562942505, 0.7136161923408508, -0.3952401876449585, 0.0628003254532814, 1.9653255939483643, 0.05942787975072861, -0.8260346055030823, 0.3235644996166229, -0.7155147790908813, 1.8206149339675903, 1.720555305480957, 1.3405545949935913, -0.1251283437013626, -0.9559604525566101, 0.5427935719490051, -0.306132048368454, -0.4021553695201874, 0.9677661657333374, 0.48815056681632996, -0.1208610013127327, -1.3930296897888184, 0.5051140785217285, 1.3507633209228516, -0.8799895644187927, -0.8333863019943237, 0.18924547731876373, -0.821747899055481, 1.0642517805099487, 0.6648831963539124, 0.43368545174598694, 0.1863771677017212, 1.512076497077942, 0.6310912370681763, -0.4747028946876526, 0.48700442910194397, 0.5152564644813538, -0.1327235996723175, -2.185699462890625, -1.1795316934585571, 0.20813286304473877, -0.413328617811203, -1.5200592279434204, 1.3752073049545288, -1.131964087486267, -0.9210850596427917, 0.5032572150230408, 0.0976114347577095, 1.4368261098861694, 0.33023276925086975, 1.6580828428268433, 2.135155439376831, 0.8870574831962585, 0.35003650188446045, 1.3512918949127197, 0.03212188184261322, -0.47478407621383667, 1.8407634496688843, -0.3958788514137268, 0.5394261479377747, 1.0844558477401733, -0.38182079792022705, -1.1382132768630981, -0.7999691963195801, -1.1224117279052734, -0.6465007662773132, 1.1668275594711304, 0.15355399250984192, -1.134313941001892, 0.22268293797969818, 1.6232531070709229, 0.10825575143098831, -0.3579515218734741, 0.5158170461654663, 0.4789671301841736, -0.6765992045402527, -0.04449840262532234, -1.0032893419265747, 0.4582391381263733, -0.16334907710552216, -0.2953602969646454, 0.3136943578720093, 0.536681056022644, 1.2685110569000244, -0.08042945712804794, 0.11998286098241806, 1.189157485961914, -1.4089443683624268, 1.4602396488189697, -0.5760058760643005, 0.24103528261184692, -2.4227850437164307, 1.4657365083694458, -0.702263593673706, 1.861758828163147, -2.6590683460235596, 0.3532843291759491, -0.6373830437660217, -0.4240385890007019, 0.3485064208507538, -0.36885225772857666, 0.12655267119407654, -0.13077479600906372, -1.1323750019073486, -0.015428019687533379, -0.7750372290611267, 0.5604037046432495, 1.207571268081665, 1.3533703088760376, -1.0548421144485474, -0.31854715943336487, -1.7385337352752686, -0.13397860527038574, -0.6207830309867859, 0.3662249445915222, -2.0390501022338867, -0.1044563427567482, -1.897401213645935, -2.2930612564086914, -1.4135037660598755, -0.9395032525062561, 1.0435943603515625, 0.16292375326156616, -0.8422656655311584, 1.0915729999542236, -0.38483911752700806, -1.797344446182251, 1.0703073740005493, -2.157454490661621 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
> Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that). Gotcha, thanks. Will start working on the issue and let you know in case of any doubt.
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
1,002
74
Add The Medical Segmentation Decathlon Dataset ## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). > Note that the images/masks in this dataset are in NIfTI format, which our `Image` feature currently doesn't support, so I think it's best to yield the paths to the images/masks in the script and add a preprocessing section to the card where we explain how to load/process the images/masks with `nibabel` (I can help with that). Gotcha, thanks. Will start working on the issue and let you know in case of any doubt.
[ -1.247269868850708, -0.9643188118934631, -0.7467084527015686, 1.3220938444137573, -0.1871374398469925, -1.2711691856384277, 0.10296615213155746, -1.0469568967819214, 1.6768265962600708, -0.6950262188911438, 0.29445672035217285, -1.7323763370513916, -0.026771537959575653, -0.618083655834198, -0.8085938692092896, -0.8417384624481201, -0.47868025302886963, -0.8384893536567688, 0.9361167550086975, 2.551126480102539, 1.1459375619888306, -1.4453219175338745, 2.7561118602752686, 0.6692063808441162, -0.12923292815685272, -1.0343438386917114, 0.5136004090309143, 0.08304634690284729, -1.2493804693222046, -0.5101508498191833, -0.8995283246040344, -0.0893942192196846, -0.45497313141822815, -0.48582693934440613, 0.1387859731912613, 0.353249728679657, -0.11081970483064651, -0.39030054211616516, -0.5407518148422241, -0.7636856436729431, 0.46287137269973755, -0.37103554606437683, 0.9660181403160095, -0.3982393741607666, 1.852325201034546, -0.5980080366134644, 0.4020601809024811, 0.6577788591384888, 1.420189619064331, 0.18313777446746826, 0.02258705347776413, 0.3064756989479065, 0.40639781951904297, 0.056828729808330536, 0.39346134662628174, 1.154062032699585, 0.6650859713554382, 0.47512131929397583, 0.6571828722953796, -2.166633129119873, 1.3325061798095703, -1.032959222793579, 0.38093802332878113, 1.4926762580871582, -0.9448840618133545, 0.4268295466899872, -1.8345201015472412, -0.07845783233642578, 0.5369924306869507, -2.337876319885254, 0.08278920501470566, -1.2800719738006592, -0.6133168339729309, 0.9180427193641663, 0.23388513922691345, -1.3085986375808716, 0.2805887460708618, -0.46052107214927673, 1.0651328563690186, 0.43309247493743896, 1.208742618560791, -1.6847107410430908, -0.09826913475990295, -0.2181464582681656, 0.03848670795559883, -1.3110800981521606, -1.524109125137329, 0.5969566702842712, 0.5959551334381104, 0.6269268989562988, -0.1042584702372551, 0.8900140523910522, -0.9315672516822815, 0.9403719902038574, -1.0005162954330444, -1.6410549879074097, -1.4227643013000488, -2.2347943782806396, -2.2252252101898193, 0.9213413596153259, -0.4742359519004822, -0.5166009664535522, 1.9710097312927246, -1.0186645984649658, -1.7750853300094604, 1.0952152013778687, 0.3296344578266144, 0.024734433740377426, 2.4320623874664307, 0.15035560727119446, -0.6241153478622437, 0.35326507687568665, -0.7523849010467529, 0.8696338534355164, -0.4283885955810547, 1.464692234992981, 0.47265753149986267, -0.9919100999832153, 1.5909018516540527, -0.46120744943618774, 0.48655444383621216, -0.7083997130393982, -0.5415974259376526, -0.8844826221466064, 0.49881288409233093, 1.8554967641830444, -0.26655250787734985, 1.632569670677185, -0.38474708795547485, -1.6081840991973877, -1.5570526123046875, 0.916671097278595, 0.5922183394432068, -0.8958448171615601, 0.026397302746772766, -0.3634158670902252, 0.109246626496315, -0.05553107708692551, 1.0679070949554443, 1.142076015472412, 0.6604560017585754, -0.4059821367263794, -0.8924309015274048, 0.247463658452034, -0.13860160112380981, -0.7729251980781555, -1.7732508182525635, -0.35515356063842773, 0.1901688128709793, 0.5952895879745483, -1.3117566108703613, 1.6196789741516113, 0.8873988389968872, 2.0073275566101074, 1.0161256790161133, -0.4059354066848755, 1.45695161819458, 0.10874959826469421, 1.9068613052368164, -0.6016587018966675, 0.6656008362770081, -0.2906930446624756, -1.0467805862426758, 0.8568634986877441, -0.46079063415527344, -2.0926501750946045, -0.7404307126998901, -0.9198116064071655, -0.24668657779693604, -0.740583062171936, 0.9868180751800537, -0.26960715651512146, -1.3868423700332642, 0.19970782101154327, -0.6241081357002258, 0.1577034890651703, -1.2749277353286743, 0.2818189561367035, 0.8441000580787659, -0.6064577102661133, -0.09337544441223145, -0.28687283396720886, -1.3052282333374023, -0.5080065727233887, 0.21141165494918823, 1.9414242506027222, -0.7625826597213745, 0.9706361293792725, 0.928093433380127, -0.6818037033081055, 0.05843038111925125, 0.32991883158683777, -0.32833895087242126, 0.8823893070220947, -1.1037698984146118, -0.33636149764060974, 1.0144429206848145, -0.16814391314983368, -0.501142144203186, 1.463460087776184, 0.8100253343582153, -0.9671300649642944, -0.21491017937660217, -0.2218180149793625, -0.8536695241928101, 0.005716686137020588, -1.6327812671661377, -0.19926051795482635, 0.2007291615009308, -1.4940952062606812, -0.5252467393875122, -0.31393471360206604, 1.2381222248077393, -0.1716357171535492, 1.4117804765701294, -0.3645448386669159, -0.3511379063129425, -0.49936768412590027, -0.33727285265922546, 0.19960381090641022, -0.2483554184436798, -0.6512446403503418, 0.2645963430404663, -0.8174060583114624, 0.2987844944000244, 1.4106191396713257, 0.5248581767082214, 0.028178468346595764, 0.5284748673439026, 1.0814385414123535, 0.29199597239494324, -0.05576656386256218, -0.9034300446510315, -1.5857456922531128, 2.073704481124878, -1.4914628267288208, 1.891749620437622, 0.7565736770629883, 0.02049027383327484, -1.6985000371932983, -1.8071858882904053, 1.3518595695495605, 1.2005882263183594, 2.3850936889648438, 0.5644639134407043, 0.4154406189918518, -0.7921368479728699, -0.6496927738189697, 0.24490882456302643, -1.0422364473342896, -0.736475944519043, 0.07496776431798935, 2.3814399242401123, 1.721862554550171, -0.6425873637199402, -0.1957327276468277, -0.9835309982299805, 1.356297492980957, -0.1525661051273346, 0.19250836968421936, 2.052006244659424, -0.32815662026405334, -1.0584250688552856, 1.2335150241851807, -2.331092357635498, 0.14404204487800598, 1.9341565370559692, 0.3091399073600769, 0.06866148859262466, -1.3987561464309692, -0.5885189175605774, -0.33379313349723816, -0.4366850256919861, -1.2981785535812378, 0.5061384439468384, -0.30550438165664673, -0.8768598437309265, -1.5618969202041626, 0.056346431374549866, -1.1379412412643433, -1.6033201217651367, 0.4075010120868683, 1.8659207820892334, 1.9740060567855835, -0.675777792930603, 1.4520319700241089, -0.2985752820968628, 0.11015626043081284, 1.2191697359085083, 1.2029355764389038, 3.1079299449920654, 1.890636682510376, -1.2110586166381836, 0.6111385226249695, -0.19475674629211426, -0.47749701142311096, 1.035882592201233, -1.0663185119628906, 1.2054052352905273, -0.17455843091011047, -1.2423783540725708, -1.1875821352005005, 1.0087213516235352, 0.4924183189868927, 0.10375554114580154, -0.5723642110824585, 1.1925818920135498, 0.09106521308422089, 1.425766944885254, 0.5168084502220154, -0.3850131332874298, 0.5442107915878296, -0.4163384437561035, -0.5923038721084595, 1.6331379413604736, 0.14466142654418945, -1.4882748126983643, -2.408082962036133, -0.24793967604637146, -0.8760233521461487, 0.02472706511616707, -0.6620745062828064, -0.9939820170402527, 1.6706794500350952, 0.4881747364997864, -1.2540535926818848, -0.3360312581062317, -0.3626933991909027, -0.6511846780776978, 2.59188175201416, -1.4057387113571167, -0.19831576943397522, -0.9054087400436401, -0.5088822245597839, 1.642770528793335, -1.2012476921081543, -0.14498111605644226, -1.0167038440704346, -0.6816784143447876, -1.246317744255066, -0.4693089425563812, -0.06736037135124207, -0.9532067179679871, 0.8632628917694092, 0.05204622074961662, -1.021605372428894, -0.262007474899292, -0.9121776223182678, 0.7986299991607666, -0.12973453104496002, 0.2603910565376282, 1.916326880455017, 0.4949192702770233, -0.4231704771518707, 0.7063842415809631, 1.184248447418213, 0.6348588466644287, -0.7084131836891174, 0.09870288521051407, -0.6641050577163696, 0.2942861318588257, -1.3174582719802856, 0.29379433393478394, -2.879514217376709, 0.6927515864372253, -0.06124257668852806, -0.1053386703133583, -0.024573978036642075, -1.3001025915145874, 1.1870495080947876, 2.6336371898651123, -1.2070136070251465, 0.42068010568618774, 0.3798990845680237, 1.2210395336151123, -1.6465706825256348, 0.4259367883205414, -0.393760085105896, 2.0939278602600098, 0.19318939745426178, 1.0811388492584229, -0.566635012626648, -2.184903621673584, 0.5426779985427856, -1.2084466218948364, -1.1231638193130493, 0.632138192653656, -0.8252637982368469, 0.08388042449951172, -1.5247554779052734, -0.09441456198692322, -0.9293966889381409, -1.2426700592041016, 0.6954703330993652, 0.12166834622621536, 0.38492462038993835, -0.6545420289039612, 0.3186977207660675, -2.2064266204833984, -1.379598617553711, -0.27308762073516846, -0.8609498143196106, 0.5070807337760925, -0.3304450511932373, 0.6970774531364441, 0.005632813088595867, 0.07352560758590698, 0.29589635133743286, 1.3569215536117554, 3.3788223266601562, 0.25375741720199585, 0.37997302412986755, -0.11235478520393372, -0.9360592365264893, 1.4737290143966675, 0.8916040062904358, 0.013169453479349613, -0.5459363460540771, -0.9939732551574707, 1.3614041805267334, 1.9828476905822754, 1.0790176391601562, 0.08757299929857254, -0.7448729276657104, -0.6480920314788818, 0.047805849462747574, 0.2876914441585541, 0.45677199959754944, 0.9647147059440613, 0.003399984911084175, 0.15463154017925262, 1.453808069229126, 1.2999049425125122, -0.45975640416145325, 0.4369699954986572, -0.8747729063034058, -0.527023196220398, 0.439782977104187, 0.33846578001976013, -0.04681209847331047, 0.3696139454841614, -0.980046272277832, -0.3040274977684021, -0.27543967962265015, -1.019910216331482, -0.6498144865036011, -0.44481000304222107, -0.4443005919456482, 1.6081973314285278, 0.12958599627017975, -0.41635486483573914, -0.013957642018795013, -0.7359414100646973, -0.11433838307857513, -1.1866430044174194, 0.3116382956504822, -0.04930398613214493, -0.08132237195968628, -0.0919625386595726, 1.8120266199111938, -0.8870660066604614, -2.0915567874908447, 0.25948113203048706, 0.2984926998615265, -0.5241060853004456, 0.1147196888923645, 1.6019489765167236, 0.5499064922332764, 1.4809256792068481, 1.3192294836044312, 0.9865128993988037, -0.5894570350646973, -1.2873523235321045, 0.6531880497932434, 0.9565240144729614, -1.369154453277588, 0.8088184595108032, 0.024438954889774323, -0.48211169242858887, 0.739824652671814, 1.3023715019226074, 0.30593612790107727, -2.0280492305755615, 0.8710546493530273, -0.8122324347496033, 0.8481036424636841, 0.6814137101173401, 0.6955443620681763, 0.27532124519348145, 0.9322289228439331, -1.373296856880188, -1.1648157835006714, -0.8824731111526489, -0.48685720562934875, 2.011768102645874, -0.1748279482126236, 0.548965334892273, -0.2114998996257782, -1.1828869581222534, -0.030399076640605927, 0.7089914679527283, 0.4197399318218231, -0.3251791298389435, 0.8269040584564209, -0.6640243530273438, -1.1723960638046265, -1.4573298692703247, -0.408348947763443, -0.8929452896118164, -0.8760059475898743, 1.024082899093628, 0.9162465333938599, 0.33258894085884094, 1.916622519493103, 0.5979345440864563, 0.21383747458457947, -2.620093822479248, 0.8758787512779236, 0.3165437579154968, -0.09425118565559387, 0.92747563123703, 0.25489383935928345, 1.1314188241958618, 0.06695298105478287, 0.47344309091567993, -2.376927137374878, 2.198532819747925, -0.21329233050346375, 0.8094429969787598, 0.04342001676559448, -0.1800839602947235, 1.1817052364349365, 0.5619736909866333, 0.5491233468055725, -1.1658618450164795, 0.7197989821434021, -0.5775283575057983, 1.1972532272338867, 0.93330317735672, -0.7313951253890991, 0.027625057846307755, 1.348781943321228, 0.5748620629310608, -0.5279816389083862, -0.9471186995506287, -0.8560780882835388, 0.8946443796157837, 1.7595206499099731, -0.09584113955497742, 0.0037988917902112007, 0.8377383947372437, 0.7228098511695862, -1.2696164846420288, 0.12251677364110947, -0.7477012872695923, -0.7028622031211853, 1.6396347284317017, 2.1181814670562744, -0.0008337637409567833, -0.1269652098417282, -0.6819408535957336, -1.241796851158142, 0.7809498310089111, -0.007828045636415482, 0.19013893604278564, 0.7169675230979919, -0.6397947072982788, 1.1289801597595215, 0.8588438034057617, 0.9734501242637634, 0.08160451799631119, 0.3668869733810425, 0.40231993794441223, -0.3110457956790924, -1.0548806190490723, -0.2699761986732483, -1.1974738836288452, -2.464148998260498, 0.49009087681770325, -0.3238624036312103, -1.4065669775009155, 0.05942678451538086, -1.0031578540802002, 0.9586459398269653, -0.6585472226142883, -1.0796054601669312, -1.5463142395019531, 0.23536595702171326, -0.0489899180829525, 0.90260249376297, -1.6384257078170776, -0.12669166922569275, 1.190245270729065, 0.7257670164108276, -0.48011165857315063, 0.925416886806488, 0.24832390248775482, 0.9730916023254395, 0.8610060811042786, -0.4304962754249573, 0.4130883514881134, 0.09169419854879379, -1.4123589992523193, 0.5097529888153076, 1.1469483375549316, 0.22701628506183624, 1.3366727828979492, -0.5442420840263367, 0.14810334146022797, 0.41419240832328796, -0.5307577252388, -0.43880027532577515, -0.5149352550506592, 0.721896231174469, 0.08062440156936646, -0.9978960752487183, 0.0694064050912857, -0.09552465379238129, -0.19168125092983246, 0.19953392446041107, -1.4622735977172852, -0.3067251145839691, -0.39171096682548523, -0.4786064922809601, -1.239830732345581, -0.07453262805938721, 1.3144348859786987, -0.8089733123779297, -0.12357514351606369, 0.5625630617141724, 0.4244128465652466, 0.553828239440918, 0.6809462308883667, -0.6262368559837341, -0.3982571065425873, -0.33045080304145813, -0.2559081017971039, 0.1639035940170288, 1.221461296081543, -0.20359361171722412, -0.8846560120582581, 0.7051553130149841, -0.3711647093296051, 0.01872946321964264, 1.970510482788086, 0.036956142634153366, -0.8015233278274536, 0.33740606904029846, -0.7182958722114563, 1.8218841552734375, 1.6691560745239258, 1.373791217803955, -0.12728627026081085, -0.9401288628578186, 0.5245038270950317, -0.28063705563545227, -0.41499683260917664, 0.9295680522918701, 0.5299326777458191, -0.11632364243268967, -1.417449712753296, 0.5015267729759216, 1.3343067169189453, -0.9087692499160767, -0.7805783152580261, 0.185699000954628, -0.8168003559112549, 1.0616544485092163, 0.6509214043617249, 0.40813586115837097, 0.23402364552021027, 1.547386884689331, 0.6370519995689392, -0.49156510829925537, 0.4313466548919678, 0.5595487952232361, -0.1428399682044983, -2.164064407348633, -1.166903018951416, 0.22106610238552094, -0.37494975328445435, -1.4875308275222778, 1.341288685798645, -1.1439075469970703, -0.9095792174339294, 0.5085859894752502, 0.11832592636346817, 1.4494084119796753, 0.34009644389152527, 1.6856961250305176, 2.137664318084717, 0.8931577205657959, 0.3267444670200348, 1.3856464624404907, 0.05234673246741295, -0.47241073846817017, 1.8245455026626587, -0.35670238733291626, 0.5329338908195496, 1.1015191078186035, -0.4120781719684601, -1.152009129524231, -0.8007498383522034, -1.1297662258148193, -0.5878192782402039, 1.1801562309265137, 0.150443434715271, -1.1441246271133423, 0.20232447981834412, 1.5964365005493164, 0.12750138342380524, -0.4071115255355835, 0.4801505208015442, 0.4929303228855133, -0.6615844368934631, -0.03711637109518051, -1.0292552709579468, 0.4692384898662567, -0.12406386435031891, -0.28730589151382446, 0.2869197428226471, 0.5493612289428711, 1.2659050226211548, -0.10412560403347015, 0.14082367718219757, 1.1847249269485474, -1.4191856384277344, 1.4389197826385498, -0.6286903023719788, 0.24815385043621063, -2.405404567718506, 1.4528409242630005, -0.719763457775116, 1.8806427717208862, -2.6687209606170654, 0.35216224193573, -0.6469476819038391, -0.41657528281211853, 0.36158502101898193, -0.39076006412506104, 0.1034015640616417, -0.11470619589090347, -1.1174275875091553, -0.020580220967531204, -0.7932775020599365, 0.5502918362617493, 1.2046189308166504, 1.3325649499893188, -1.063699722290039, -0.33977335691452026, -1.7452468872070312, -0.16308310627937317, -0.6465886831283569, 0.3519812822341919, -2.0304713249206543, -0.06315664947032928, -1.9328256845474243, -2.2660043239593506, -1.4407808780670166, -0.9266802668571472, 1.026065468788147, 0.14000481367111206, -0.8545121550559998, 1.0894911289215088, -0.3752535581588745, -1.768239974975586, 1.058569312095642, -2.1793954372406006 ]
https://github.com/huggingface/datasets/issues/3583
Add The Medical Segmentation Decathlon Dataset
This is great! There is a first model on the HUb that uses this dataset! https://huggingface.co/MONAI/example_spleen_segmentation
## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
1,002
16
Add The Medical Segmentation Decathlon Dataset ## Adding a Dataset - **Name:** *The Medical Segmentation Decathlon Dataset* - **Description:** The underlying data set was designed to explore the axis of difficulties typically encountered when dealing with medical images, such as small data sets, unbalanced labels, multi-site data, and small objects. - **Paper:** [link to the dataset paper if available](https://arxiv.org/abs/2106.05735) - **Data:** http://medicaldecathlon.com/ - **Motivation:** Hugging Face seeks to democratize ML for society. One of the growing niches within ML is the ML + Medicine community. Key data sets will help increase the supply of HF resources for starting an initial community. (cc @osanseviero @abidlabs ) Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). This is great! There is a first model on the HUb that uses this dataset! https://huggingface.co/MONAI/example_spleen_segmentation
[ -1.2140998840332031, -0.9598885774612427, -0.7291514873504639, 1.3147308826446533, -0.18288251757621765, -1.2970088720321655, 0.0805729553103447, -0.9990120530128479, 1.6192611455917358, -0.6434138417243958, 0.27874988317489624, -1.7599213123321533, -0.05569341033697128, -0.6498030424118042, -0.7864421010017395, -0.8096784949302673, -0.41176438331604004, -0.8027647137641907, 0.937054455280304, 2.562441110610962, 1.1665576696395874, -1.4436489343643188, 2.751706838607788, 0.6698154807090759, -0.16454121470451355, -1.012600064277649, 0.5234501957893372, 0.14188501238822937, -1.2887507677078247, -0.5031825304031372, -0.8731628060340881, -0.10513787716627121, -0.42875605821609497, -0.4583982825279236, 0.1984739452600479, 0.3830055892467499, -0.06537904590368271, -0.36213165521621704, -0.5737024545669556, -0.7465671300888062, 0.5080456137657166, -0.38332051038742065, 0.9505082964897156, -0.4665828347206116, 1.8737866878509521, -0.6514393091201782, 0.3505345582962036, 0.6311770677566528, 1.4281177520751953, 0.13924944400787354, 0.0110018877312541, 0.32171252369880676, 0.37562769651412964, 0.11992428451776505, 0.37077513337135315, 1.0945384502410889, 0.6533483266830444, 0.49934864044189453, 0.6683043837547302, -2.1397223472595215, 1.3672536611557007, -1.0069366693496704, 0.3723961114883423, 1.5586419105529785, -0.9782732725143433, 0.4116620123386383, -1.8378781080245972, -0.09710531681776047, 0.49062663316726685, -2.341787576675415, 0.06153953820466995, -1.294088363647461, -0.6817496418952942, 0.8746073842048645, 0.2631121575832367, -1.308828353881836, 0.28230389952659607, -0.5154543519020081, 1.0566320419311523, 0.46490976214408875, 1.1597309112548828, -1.7447640895843506, -0.15391771495342255, -0.21903108060359955, -0.008629987016320229, -1.3798120021820068, -1.5146626234054565, 0.6535245180130005, 0.6153990030288696, 0.6613779067993164, -0.1213105171918869, 0.8473447561264038, -0.9483695030212402, 0.9935314655303955, -1.0371675491333008, -1.6068124771118164, -1.4502145051956177, -2.2526488304138184, -2.208953857421875, 0.9305474162101746, -0.43879789113998413, -0.4810335338115692, 1.89585542678833, -0.9934030175209045, -1.7469981908798218, 1.070725917816162, 0.3290822505950928, 0.05179845541715622, 2.3993051052093506, 0.18501488864421844, -0.6046332120895386, 0.34793299436569214, -0.7898906469345093, 0.8383126854896545, -0.37306785583496094, 1.4576752185821533, 0.540570080280304, -0.9902690052986145, 1.5939667224884033, -0.4764234721660614, 0.4529641568660736, -0.664764404296875, -0.5673208832740784, -0.8408090472221375, 0.42554035782814026, 1.862625241279602, -0.2700919806957245, 1.6111935377120972, -0.36926475167274475, -1.6439576148986816, -1.5196903944015503, 0.8771946430206299, 0.5724918842315674, -0.9254478216171265, 0.04583239555358887, -0.3643745481967926, 0.12685626745224, -0.07469391077756882, 1.0737988948822021, 1.0883514881134033, 0.6469371914863586, -0.41747742891311646, -0.8654872179031372, 0.22738899290561676, -0.08763667941093445, -0.7873403429985046, -1.767170786857605, -0.3949137330055237, 0.22927649319171906, 0.6161094307899475, -1.2812106609344482, 1.618249535560608, 0.8826612830162048, 1.9925321340560913, 0.954125165939331, -0.3882853388786316, 1.394005298614502, 0.08379828929901123, 1.9184038639068604, -0.7347694039344788, 0.6895730495452881, -0.3045627772808075, -1.0163415670394897, 0.8336822390556335, -0.48823538422584534, -2.098839282989502, -0.726177453994751, -0.9212852120399475, -0.2573758661746979, -0.797917366027832, 1.0441887378692627, -0.28581854701042175, -1.360140323638916, 0.15850773453712463, -0.6824719905853271, 0.17695252597332, -1.24191415309906, 0.19933898746967316, 0.8618977665901184, -0.5785164833068848, -0.1474161595106125, -0.2452482432126999, -1.318554162979126, -0.51899653673172, 0.2331824004650116, 1.9532939195632935, -0.7022928595542908, 1.0503703355789185, 0.8385331630706787, -0.6716029047966003, 0.13263750076293945, 0.31737831234931946, -0.3001457452774048, 0.8838121294975281, -1.0958937406539917, -0.3194543421268463, 1.0073057413101196, -0.1572238802909851, -0.47218766808509827, 1.5291931629180908, 0.8818469047546387, -0.9480072855949402, -0.2420274019241333, -0.2793422043323517, -0.8208199143409729, -0.03532750904560089, -1.6323490142822266, -0.18731729686260223, 0.1870584338903427, -1.413124918937683, -0.5208852291107178, -0.2908797860145569, 1.2221792936325073, -0.16562488675117493, 1.2870922088623047, -0.30721595883369446, -0.42076820135116577, -0.5152075290679932, -0.3217499852180481, 0.21202892065048218, -0.2664111256599426, -0.6455374360084534, 0.29473450779914856, -0.878334641456604, 0.2995288372039795, 1.4271233081817627, 0.5386226177215576, 0.09256203472614288, 0.5437389016151428, 1.071653962135315, 0.22177006304264069, -0.07218697667121887, -0.9210529327392578, -1.5975998640060425, 2.072622299194336, -1.4928386211395264, 1.8552684783935547, 0.7896723747253418, -0.026659421622753143, -1.7129884958267212, -1.809975504875183, 1.3126574754714966, 1.2001934051513672, 2.3989717960357666, 0.5759146213531494, 0.3759773075580597, -0.793009877204895, -0.670540988445282, 0.23819272220134735, -1.0479319095611572, -0.72086101770401, 0.07886869460344315, 2.406176805496216, 1.7456060647964478, -0.6405006051063538, -0.23113954067230225, -0.9798066020011902, 1.3208214044570923, -0.19362765550613403, 0.18815192580223083, 2.082653284072876, -0.3494766056537628, -1.0329159498214722, 1.2554268836975098, -2.3090484142303467, 0.19109028577804565, 1.966600775718689, 0.3373261094093323, 0.12836113572120667, -1.4648958444595337, -0.6374337673187256, -0.3789384365081787, -0.4469362795352936, -1.321250319480896, 0.5095431804656982, -0.3490262031555176, -0.9394015669822693, -1.5426703691482544, 0.029031559824943542, -1.0879327058792114, -1.6523112058639526, 0.4563291668891907, 1.8181463479995728, 1.9983707666397095, -0.6247078776359558, 1.3893446922302246, -0.3206119239330292, 0.09369207173585892, 1.2608203887939453, 1.2436286211013794, 3.069227457046509, 1.8727673292160034, -1.162673830986023, 0.6834123134613037, -0.1933547556400299, -0.4445199966430664, 1.0511363744735718, -1.0762966871261597, 1.1580541133880615, -0.2051917165517807, -1.2216546535491943, -1.1702649593353271, 1.0346828699111938, 0.4568259119987488, 0.0748414620757103, -0.5954262614250183, 1.2073347568511963, 0.09830684214830399, 1.4345378875732422, 0.5747211575508118, -0.3820823132991791, 0.5142532587051392, -0.4163579046726227, -0.5434504747390747, 1.6149296760559082, 0.15818315744400024, -1.487630009651184, -2.446861982345581, -0.2153545469045639, -0.8590995669364929, -0.034169744700193405, -0.6746202707290649, -1.0568126440048218, 1.7026864290237427, 0.49727004766464233, -1.3342474699020386, -0.25275173783302307, -0.3913249671459198, -0.6456422805786133, 2.5749454498291016, -1.4197914600372314, -0.1726319044828415, -0.8951142430305481, -0.44457167387008667, 1.6887620687484741, -1.2330923080444336, -0.12592311203479767, -1.039685606956482, -0.6919641494750977, -1.2700765132904053, -0.4375128448009491, -0.07002982497215271, -0.9408400058746338, 0.8428865671157837, -0.030058901757001877, -0.9644137024879456, -0.2906948924064636, -0.8882037997245789, 0.8111017346382141, -0.14334803819656372, 0.255890816450119, 1.9123083353042603, 0.4724489450454712, -0.3891810178756714, 0.6658102869987488, 1.1758097410202026, 0.6826131939888, -0.7524900436401367, 0.10625796765089035, -0.6050562262535095, 0.2750963866710663, -1.3132330179214478, 0.34715646505355835, -2.859090566635132, 0.6848351359367371, -0.04280819743871689, -0.12512275576591492, -0.005465722177177668, -1.319959282875061, 1.2390645742416382, 2.5802078247070312, -1.2354753017425537, 0.431681364774704, 0.31733807921409607, 1.1749358177185059, -1.6062963008880615, 0.4631354808807373, -0.36818286776542664, 2.063663959503174, 0.2195713222026825, 1.1091094017028809, -0.5565802454948425, -2.0984389781951904, 0.5363669991493225, -1.211302638053894, -1.0929864645004272, 0.5842254161834717, -0.8008730411529541, 0.18969237804412842, -1.5723952054977417, -0.05419597402215004, -0.9875765442848206, -1.2702456712722778, 0.7349706888198853, 0.14353179931640625, 0.3574692904949188, -0.6480861306190491, 0.3161362111568451, -2.2035675048828125, -1.3913154602050781, -0.26364320516586304, -0.8450480699539185, 0.5951853394508362, -0.331303209066391, 0.6716566681861877, 0.060302138328552246, 0.06564672291278839, 0.29861435294151306, 1.3459932804107666, 3.385988712310791, 0.24964027106761932, 0.3173012435436249, -0.07348164170980453, -0.9581329226493835, 1.4719059467315674, 0.9356033802032471, 0.1157149150967598, -0.5577796697616577, -0.9644216895103455, 1.3987680673599243, 2.011348009109497, 1.0698186159133911, 0.08546015620231628, -0.7531672120094299, -0.6842789649963379, 0.11847006529569626, 0.30765005946159363, 0.493785560131073, 0.9539950489997864, 0.0095948101952672, 0.10671959072351456, 1.4609274864196777, 1.275695562362671, -0.4590722918510437, 0.4400816857814789, -0.9441190958023071, -0.5177591443061829, 0.3977060914039612, 0.30575674772262573, -0.03820546343922615, 0.40341681241989136, -1.0162320137023926, -0.30086347460746765, -0.23222926259040833, -1.0367218255996704, -0.6601365208625793, -0.5040663480758667, -0.5288116931915283, 1.5810890197753906, 0.11209717392921448, -0.4299769997596741, -0.017290938645601273, -0.7648031115531921, -0.15049917995929718, -1.1800686120986938, 0.32724127173423767, -0.05605285242199898, -0.024623442441225052, -0.1153203472495079, 1.8008499145507812, -0.8795616626739502, -2.0862953662872314, 0.2431725412607193, 0.32727229595184326, -0.5972762703895569, 0.04855694621801376, 1.6010456085205078, 0.560675323009491, 1.4236000776290894, 1.2909554243087769, 0.9423262476921082, -0.5565171837806702, -1.3251227140426636, 0.6239016652107239, 0.9146103262901306, -1.417226791381836, 0.8662899136543274, -0.08021815121173859, -0.49327996373176575, 0.7749292850494385, 1.3171123266220093, 0.33572933077812195, -1.9663547277450562, 0.8197742700576782, -0.8074397444725037, 0.8639899492263794, 0.7022916078567505, 0.7392449975013733, 0.29159417748451233, 0.9118149280548096, -1.478338360786438, -1.113944172859192, -0.9256480932235718, -0.4672242999076843, 2.0035669803619385, -0.16869741678237915, 0.532903254032135, -0.23981399834156036, -1.0939637422561646, -0.05030529201030731, 0.7294203639030457, 0.44895023107528687, -0.3185214102268219, 0.8650781512260437, -0.6461199522018433, -1.1362537145614624, -1.3701825141906738, -0.4287063777446747, -0.8053837418556213, -0.8559117913246155, 1.0196747779846191, 0.9585132002830505, 0.3982023000717163, 1.9523494243621826, 0.5581735372543335, 0.20866386592388153, -2.622152090072632, 0.8552230596542358, 0.27450257539749146, -0.018337450921535492, 0.9519650936126709, 0.21785344183444977, 1.1551927328109741, 0.0680173933506012, 0.4504990875720978, -2.381852865219116, 2.173257827758789, -0.1822509914636612, 0.7537549138069153, 0.03019438311457634, -0.17814409732818604, 1.199546456336975, 0.5746507048606873, 0.49860823154449463, -1.1625841856002808, 0.7195717692375183, -0.5845779180526733, 1.1613218784332275, 0.9257701635360718, -0.7250606417655945, 0.061034440994262695, 1.3491681814193726, 0.5741478800773621, -0.518964409828186, -0.9703463315963745, -0.7742743492126465, 0.8893184065818787, 1.7176806926727295, -0.09241826832294464, -0.04221350699663162, 0.875643789768219, 0.7406238913536072, -1.2381316423416138, 0.10564741492271423, -0.7045433521270752, -0.6697725057601929, 1.6601085662841797, 2.1629796028137207, 0.004250326193869114, -0.09065893292427063, -0.638861894607544, -1.1776938438415527, 0.7673953771591187, -0.004618055187165737, 0.17690715193748474, 0.7200649976730347, -0.6325161457061768, 1.1362141370773315, 0.8184308409690857, 1.0405303239822388, -0.009948117658495903, 0.4376490116119385, 0.3547278642654419, -0.28573182225227356, -1.1700141429901123, -0.3359052538871765, -1.2538281679153442, -2.4672975540161133, 0.5235888957977295, -0.33274057507514954, -1.4322093725204468, 0.09485172480344772, -1.1047946214675903, 0.9788983464241028, -0.692127525806427, -1.0563730001449585, -1.539834976196289, 0.22768063843250275, -0.04381893202662468, 0.9077072739601135, -1.6982840299606323, -0.1235339343547821, 1.176508903503418, 0.7084687948226929, -0.44239240884780884, 0.8969588875770569, 0.2537403702735901, 0.9906255006790161, 0.8116952776908875, -0.3888600766658783, 0.406001478433609, 0.14632782340049744, -1.4222198724746704, 0.5641281008720398, 1.1775356531143188, 0.2457815557718277, 1.3651940822601318, -0.4835098087787628, 0.23758555948734283, 0.48175477981567383, -0.5545310378074646, -0.4046350419521332, -0.49691176414489746, 0.7165128588676453, 0.18420515954494476, -1.0484915971755981, 0.02619987353682518, -0.0980769693851471, -0.2029440701007843, 0.21277090907096863, -1.3931137323379517, -0.39231616258621216, -0.42549434304237366, -0.4728448688983917, -1.2650011777877808, -0.10564272105693817, 1.279640793800354, -0.7927025556564331, -0.07834581285715103, 0.600487470626831, 0.4170292317867279, 0.6144171953201294, 0.7114519476890564, -0.6590410470962524, -0.3823052942752838, -0.3260917067527771, -0.30917230248451233, 0.15308764576911926, 1.1664553880691528, -0.1862042099237442, -0.9243770241737366, 0.6771814227104187, -0.40623441338539124, 0.08177787065505981, 2.0305323600769043, -0.01571248285472393, -0.8149541020393372, 0.36420565843582153, -0.7216817736625671, 1.8248491287231445, 1.598352074623108, 1.3498954772949219, -0.13405971229076385, -0.906315803527832, 0.4964990019798279, -0.19776658713817596, -0.42561233043670654, 0.9344976544380188, 0.5660558342933655, -0.11146556586027145, -1.3571863174438477, 0.47801098227500916, 1.3703867197036743, -0.9903603196144104, -0.7632821202278137, 0.23810535669326782, -0.8125290274620056, 1.0739985704421997, 0.6196246147155762, 0.3702050745487213, 0.2929941713809967, 1.5294127464294434, 0.5757123827934265, -0.4394528865814209, 0.40118080377578735, 0.5197010040283203, -0.12445192039012909, -2.1673777103424072, -1.1377534866333008, 0.2590855658054352, -0.3718950152397156, -1.4787533283233643, 1.2622259855270386, -1.1551811695098877, -0.8499950170516968, 0.5539047718048096, 0.1761718988418579, 1.4503626823425293, 0.3335607051849365, 1.725269079208374, 2.1041855812072754, 0.9038587808609009, 0.30781254172325134, 1.4262824058532715, 0.12631575763225555, -0.4792848825454712, 1.7825101613998413, -0.3605062663555145, 0.6555070877075195, 1.0922080278396606, -0.3944777846336365, -1.2009949684143066, -0.791916012763977, -1.137251853942871, -0.5813665390014648, 1.2144858837127686, 0.17462696135044098, -1.2059388160705566, 0.16462235152721405, 1.576026201248169, 0.11175476014614105, -0.3418996036052704, 0.427418977022171, 0.47450271248817444, -0.6797006130218506, -0.06193484738469124, -1.070409893989563, 0.45649299025535583, -0.12514857947826385, -0.3000504672527313, 0.21098744869232178, 0.5798234939575195, 1.2175348997116089, -0.1118275448679924, 0.14293980598449707, 1.2191565036773682, -1.4483330249786377, 1.4375685453414917, -0.5888562202453613, 0.21605466306209564, -2.4445385932922363, 1.483750581741333, -0.7260980606079102, 1.8946423530578613, -2.699277877807617, 0.32633495330810547, -0.5935934782028198, -0.4282452166080475, 0.3164946734905243, -0.36896371841430664, 0.14490771293640137, -0.09919106960296631, -1.0707111358642578, 0.06365760415792465, -0.8626227378845215, 0.5435689687728882, 1.2601932287216187, 1.3693031072616577, -1.1009387969970703, -0.2887676954269409, -1.7714866399765015, -0.19957199692726135, -0.7215062379837036, 0.3400926887989044, -2.041093111038208, 0.04242022708058357, -1.9244049787521362, -2.2692372798919678, -1.4570496082305908, -0.9659884572029114, 0.9901072978973389, 0.16070006787776947, -0.8674831986427307, 0.9995403289794922, -0.35413405299186707, -1.6947675943374634, 1.0042659044265747, -2.192122220993042 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
Thanks for reporting ! I pushed a temporary fix on `master` that uses an URL from a previous commit to access the dataset for now, until we have a better solution
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
1,003
31
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: Thanks for reporting ! I pushed a temporary fix on `master` that uses an URL from a previous commit to access the dataset for now, until we have a better solution
[ -1.1686668395996094, -0.8808467388153076, -0.679608166217804, 1.4830045700073242, -0.0591169111430645, -1.27288818359375, 0.1321658194065094, -0.9903767108917236, 1.648022174835205, -0.767906129360199, 0.26352041959762573, -1.715537667274475, -0.022346124053001404, -0.5682376027107239, -0.7243339419364929, -0.7927811741828918, -0.33354294300079346, -0.8473801612854004, 1.0679347515106201, 2.485607147216797, 1.2111992835998535, -1.3332862854003906, 2.8446993827819824, 0.624511182308197, -0.2896413803100586, -1.0097808837890625, 0.5111224055290222, -0.034893639385700226, -1.2252280712127686, -0.4833676815032959, -0.937717616558075, 0.0007731476798653603, -0.5802669525146484, -0.4587193727493286, 0.059532247483730316, 0.44120097160339355, -0.2787652015686035, -0.3433995842933655, -0.5685322880744934, -0.7307277321815491, 0.448242723941803, -0.2722827196121216, 0.9589879512786865, -0.22073709964752197, 1.8408395051956177, -0.6061239242553711, 0.3615238666534424, 0.6668446660041809, 1.3296666145324707, 0.19368018209934235, 0.054183900356292725, 0.3043662905693054, 0.32152485847473145, 0.005583661608397961, 0.5193424820899963, 1.2637776136398315, 0.655110239982605, 0.5019310712814331, 0.702610433101654, -2.1705336570739746, 1.3415006399154663, -0.8968276977539062, 0.33914780616760254, 1.318375587463379, -0.9019668698310852, 0.374802827835083, -1.800136685371399, -0.07629465311765671, 0.5170759558677673, -2.3162825107574463, 0.24545110762119293, -1.3485925197601318, -0.4635273814201355, 0.9206783175468445, 0.2670806050300598, -1.295377254486084, 0.22360047698020935, -0.5355729460716248, 1.0516510009765625, 0.4717239737510681, 1.150144338607788, -1.670084834098816, -0.03342823684215546, -0.19837027788162231, 0.16654826700687408, -1.2423573732376099, -1.6602448225021362, 0.605090856552124, 0.6266081929206848, 0.7166274189949036, -0.1957964301109314, 1.0919326543807983, -1.0341647863388062, 0.7601473927497864, -0.9452834725379944, -1.7236335277557373, -1.4018124341964722, -2.302830219268799, -2.3573074340820312, 0.818815290927887, -0.5014984011650085, -0.4841914772987366, 2.078993558883667, -0.9991484880447388, -1.794388771057129, 1.0536959171295166, 0.3504717946052551, 0.02655792236328125, 2.408986806869507, 0.2412254363298416, -0.7899595499038696, 0.4405527114868164, -0.6604747176170349, 0.8531437516212463, -0.29327166080474854, 1.3362692594528198, 0.562805712223053, -1.0467545986175537, 1.5916748046875, -0.3855072259902954, 0.5777088403701782, -0.6553490161895752, -0.5014776587486267, -0.8099780678749084, 0.24466754496097565, 1.8935753107070923, -0.34775102138519287, 1.6064422130584717, -0.32767289876937866, -1.5879474878311157, -1.5293772220611572, 0.8353898525238037, 0.46750760078430176, -0.8338280320167542, 0.12084735929965973, -0.5156838893890381, 0.0868353545665741, 0.04462331905961037, 1.1986825466156006, 1.2202435731887817, 0.6031043529510498, -0.33016473054885864, -0.8590500354766846, 0.2006077617406845, -0.11892463266849518, -0.6611979007720947, -1.7820885181427002, -0.34378182888031006, 0.27091318368911743, 0.6180015802383423, -1.2157562971115112, 1.7798177003860474, 0.863928496837616, 1.953970193862915, 0.9857414960861206, -0.3650028109550476, 1.4671952724456787, -0.0317942276597023, 1.8325759172439575, -0.4889999032020569, 0.6143103241920471, -0.3161545395851135, -1.1970036029815674, 0.8272538185119629, -0.3828015923500061, -1.9967982769012451, -0.7893316745758057, -0.7706005573272705, -0.15189361572265625, -0.7930447459220886, 0.8366764187812805, -0.2921159267425537, -1.4595438241958618, 0.18674543499946594, -0.6477214694023132, 0.2080317735671997, -1.3139517307281494, 0.2058544009923935, 0.7215930223464966, -0.6962456107139587, -0.04173053056001663, -0.20055066049098969, -1.3431503772735596, -0.48466336727142334, 0.32781869173049927, 1.8360533714294434, -0.5933270454406738, 0.9925143718719482, 1.0314090251922607, -0.7113805413246155, 0.06977688521146774, 0.26911211013793945, -0.3199809193611145, 0.8499702215194702, -1.1249669790267944, -0.3727048635482788, 1.1777541637420654, -0.20563414692878723, -0.580890417098999, 1.3968441486358643, 0.8100336194038391, -1.024389386177063, -0.20565690100193024, -0.1573503315448761, -0.8618794679641724, -0.025410763919353485, -1.551002860069275, -0.2072845846414566, 0.3854941129684448, -1.448075532913208, -0.3891867995262146, -0.2422715276479721, 1.319846749305725, -0.18119847774505615, 1.445334792137146, -0.3115863800048828, -0.20939595997333527, -0.36130720376968384, -0.43937814235687256, 0.10006630420684814, -0.17169319093227386, -0.6479372978210449, 0.20610500872135162, -0.7894628047943115, 0.3573123812675476, 1.496675729751587, 0.3694695830345154, 0.03467633202672005, 0.5498250722885132, 1.1522787809371948, 0.3581118583679199, -0.10517175495624542, -0.8715061545372009, -1.5878210067749023, 1.9647712707519531, -1.4093000888824463, 1.8742218017578125, 0.8278579711914062, -0.05966345593333244, -1.7601507902145386, -1.8214137554168701, 1.382157564163208, 1.1784361600875854, 2.4015870094299316, 0.4620731472969055, 0.41995543241500854, -0.7321569919586182, -0.7209439873695374, 0.2951163053512573, -1.0185281038284302, -0.6574140191078186, 0.15520301461219788, 2.37884259223938, 1.8265928030014038, -0.5342270135879517, -0.30537301301956177, -0.9672849774360657, 1.2673845291137695, -0.2947641611099243, 0.16971749067306519, 2.0195693969726562, -0.28444403409957886, -1.0763370990753174, 1.3480662107467651, -2.3554089069366455, 0.2750856876373291, 2.050682544708252, 0.29390013217926025, 0.08124517649412155, -1.3969500064849854, -0.6254302263259888, -0.2836308479309082, -0.47749006748199463, -1.2791959047317505, 0.5696360468864441, -0.23492752015590668, -0.8311476111412048, -1.4677760601043701, 0.08559492975473404, -1.1893582344055176, -1.7476578950881958, 0.3606001138687134, 1.8885691165924072, 2.0268146991729736, -0.7552947998046875, 1.410568118095398, -0.2897390127182007, 0.17500337958335876, 1.2348467111587524, 1.301345944404602, 3.1585049629211426, 1.8322800397872925, -1.2905292510986328, 0.7213892936706543, -0.21427828073501587, -0.534458339214325, 1.1775116920471191, -1.1331098079681396, 1.166936993598938, -0.22175054252147675, -1.288365364074707, -1.2690266370773315, 0.9983938932418823, 0.4830336570739746, 0.034648410975933075, -0.5490423440933228, 1.2383569478988647, 0.12092061340808868, 1.2776024341583252, 0.6257438659667969, -0.38948220014572144, 0.5633509755134583, -0.36553531885147095, -0.5106291174888611, 1.6286689043045044, 0.12595365941524506, -1.477684497833252, -2.305637836456299, -0.24105621874332428, -0.8543786406517029, 0.001125948503613472, -0.6577287912368774, -1.0190012454986572, 1.5801103115081787, 0.44161456823349, -1.2027699947357178, -0.2589031457901001, -0.31567907333374023, -0.528537392616272, 2.6123619079589844, -1.3087762594223022, -0.1457463651895523, -0.9776480793952942, -0.5841609835624695, 1.6208480596542358, -1.1633797883987427, -0.24145817756652832, -1.0353761911392212, -0.6541838049888611, -1.3320332765579224, -0.5039081573486328, 0.00011990033090114594, -0.8594071269035339, 0.685570478439331, 0.14281383156776428, -1.1197090148925781, -0.2801774740219116, -0.9176741242408752, 1.02479088306427, -0.18680024147033691, 0.12777075171470642, 1.7872177362442017, 0.4115050435066223, -0.4417215585708618, 0.8121088743209839, 1.190627098083496, 0.6037686467170715, -0.6271883249282837, 0.04448043555021286, -0.7179678678512573, 0.3320985436439514, -1.4416497945785522, 0.2713471055030823, -2.9163405895233154, 0.7086812853813171, -0.18517883121967316, -0.08501018583774567, -0.022865459322929382, -1.3612309694290161, 1.0821107625961304, 2.551133871078491, -1.1725369691848755, 0.4478725790977478, 0.39145416021347046, 1.135772705078125, -1.6334502696990967, 0.2053421288728714, -0.4720582365989685, 2.057263135910034, 0.16896969079971313, 1.2722225189208984, -0.4773860573768616, -2.222947835922241, 0.5898786783218384, -1.2268985509872437, -1.063649296760559, 0.8536592721939087, -0.8985134959220886, 0.20116393268108368, -1.3862398862838745, -0.1941157430410385, -0.9230095148086548, -1.249922513961792, 0.7448279857635498, 0.07541656494140625, 0.40094292163848877, -0.5757009983062744, 0.33409368991851807, -2.1475698947906494, -1.3858201503753662, -0.1374627947807312, -1.0544339418411255, 0.5166497230529785, -0.3965418338775635, 0.5676059126853943, -0.10729193687438965, 0.02592439204454422, 0.28341686725616455, 1.5047370195388794, 3.302642583847046, 0.15237776935100555, 0.30965811014175415, -0.11490565538406372, -0.9834308624267578, 1.4214355945587158, 0.9002029299736023, -0.1850469559431076, -0.5726130604743958, -1.0023311376571655, 1.3219377994537354, 1.9780324697494507, 1.0476354360580444, 0.05461275577545166, -0.8540424704551697, -0.7373093962669373, -0.005695823114365339, 0.22273017466068268, 0.52632737159729, 0.9505758285522461, 0.01834746077656746, 0.12329177558422089, 1.3588889837265015, 1.1628385782241821, -0.3947821855545044, 0.4192344546318054, -0.864888072013855, -0.4178959131240845, 0.42191505432128906, 0.20447976887226105, 0.02659754827618599, 0.516160249710083, -1.0766923427581787, -0.28239119052886963, -0.3407738208770752, -0.9010331630706787, -0.8133052587509155, -0.4100257158279419, -0.3628689646720886, 1.634696125984192, 0.030201353132724762, -0.5082300901412964, 0.05213227495551109, -0.7011076211929321, -0.17607539892196655, -1.0176360607147217, 0.21418744325637817, -0.09448745101690292, -0.06074037402868271, -0.10649485886096954, 1.611269235610962, -0.9902541041374207, -2.1038036346435547, 0.19047732651233673, 0.23220151662826538, -0.3356906771659851, 0.1239105761051178, 1.7296534776687622, 0.5148452520370483, 1.4626541137695312, 1.3591762781143188, 1.0131679773330688, -0.6867421269416809, -1.271284818649292, 0.7415398955345154, 0.951589822769165, -1.3137513399124146, 0.906389594078064, -0.15888787806034088, -0.594595193862915, 0.6594962477684021, 1.3339672088623047, 0.4096282124519348, -2.0111734867095947, 0.823247492313385, -0.9379900693893433, 0.7111263871192932, 0.674195408821106, 0.7895815372467041, 0.23077495396137238, 0.8242782354354858, -1.25478196144104, -1.1684777736663818, -0.6605416536331177, -0.5956937670707703, 1.9497965574264526, -0.21732933819293976, 0.5302121043205261, -0.17789888381958008, -1.2402727603912354, -0.0989682525396347, 0.7857322096824646, 0.4095902442932129, -0.4712733030319214, 0.846383273601532, -0.6219007968902588, -1.011974573135376, -1.340983271598816, -0.4444728493690491, -1.0569759607315063, -0.9117531180381775, 0.9776332974433899, 0.7818968296051025, 0.40817469358444214, 1.9142203330993652, 0.6141454577445984, 0.2727009654045105, -2.6310064792633057, 0.860392689704895, 0.2946290373802185, -0.06221051141619682, 0.8991873264312744, 0.30137377977371216, 1.1553038358688354, 0.01280679740011692, 0.6561104655265808, -2.3044135570526123, 2.181018114089966, -0.15346750617027283, 0.6553074717521667, 0.0032596616074442863, -0.27264028787612915, 1.1033737659454346, 0.5536857843399048, 0.5690668821334839, -1.1548010110855103, 0.7287226319313049, -0.5912565588951111, 1.0799063444137573, 0.8754236102104187, -0.9231469631195068, 0.07028963416814804, 1.4206382036209106, 0.49470263719558716, -0.445539653301239, -0.9617887139320374, -0.8775167465209961, 0.9935832023620605, 1.6755597591400146, -0.005756494123488665, 0.007774148136377335, 0.8392243385314941, 0.7151708006858826, -1.3403120040893555, 0.09195765852928162, -0.6219867467880249, -0.6823548078536987, 1.682300090789795, 2.044379472732544, -0.10572593659162521, -0.1983351707458496, -0.7263320684432983, -1.1910728216171265, 0.7675245404243469, 0.014689318835735321, 0.03898265212774277, 0.7344375252723694, -0.7439320087432861, 1.1730289459228516, 0.6963984370231628, 0.9090407490730286, 0.10737001150846481, 0.32126641273498535, 0.36398619413375854, -0.2736140489578247, -1.1998987197875977, -0.3143724203109741, -1.0939064025878906, -2.588582992553711, 0.43399250507354736, -0.303091824054718, -1.4603170156478882, 0.10172170400619507, -1.0450776815414429, 0.8031487464904785, -0.6307685375213623, -1.1356494426727295, -1.5033873319625854, 0.298318088054657, -0.15990206599235535, 0.8972222208976746, -1.6312602758407593, -0.11033255606889725, 1.230252981185913, 0.9268916249275208, -0.5584478974342346, 0.9991576671600342, 0.2788274884223938, 0.9507197737693787, 0.8699358701705933, -0.39103221893310547, 0.5884324312210083, 0.11214406788349152, -1.3709006309509277, 0.4598260521888733, 1.241441011428833, 0.2759644389152527, 1.449067234992981, -0.4980827569961548, 0.08352800458669662, 0.5157851576805115, -0.5712826251983643, -0.49084991216659546, -0.5244841575622559, 0.6852787137031555, 0.08257605135440826, -0.9779956936836243, -0.046648651361465454, -0.18767955899238586, -0.2569150924682617, 0.27806389331817627, -1.5135984420776367, -0.2541583180427551, -0.41037172079086304, -0.5188947319984436, -1.270200252532959, 0.024831868708133698, 1.3796465396881104, -0.8682565689086914, -0.2622067332267761, 0.457231342792511, 0.34138262271881104, 0.5384554862976074, 0.5743781328201294, -0.7598579525947571, -0.2428322583436966, -0.33513176441192627, -0.37896519899368286, 0.2517370581626892, 1.2217334508895874, -0.1141987144947052, -1.0002782344818115, 0.6921665072441101, -0.3877408504486084, 0.1196732372045517, 1.9540255069732666, 0.03443248197436333, -0.8069254159927368, 0.39141547679901123, -0.7181993722915649, 1.826141119003296, 1.6785330772399902, 1.3220466375350952, -0.06197914108633995, -0.8965286612510681, 0.6202967762947083, -0.25159791111946106, -0.30364012718200684, 0.9810960292816162, 0.35792702436447144, -0.18700000643730164, -1.4761275053024292, 0.6214340925216675, 1.3644373416900635, -0.8578883409500122, -0.7387545108795166, 0.027151301503181458, -0.9183796048164368, 1.2027772665023804, 0.5725560784339905, 0.28220295906066895, 0.19703812897205353, 1.5651262998580933, 0.7416849136352539, -0.43306148052215576, 0.527803361415863, 0.48598599433898926, -0.1473475843667984, -2.0891551971435547, -1.0089093446731567, 0.27257561683654785, -0.3974379301071167, -1.5217547416687012, 1.3176524639129639, -1.1307114362716675, -0.9755622744560242, 0.5164904594421387, 0.13431693613529205, 1.348838210105896, 0.3292583227157593, 1.6717383861541748, 2.111274242401123, 0.8790712356567383, 0.30659765005111694, 1.1968731880187988, -0.0945519208908081, -0.38430219888687134, 1.7716636657714844, -0.41701316833496094, 0.5583886504173279, 1.0155587196350098, -0.41906410455703735, -1.1165043115615845, -0.838422954082489, -1.1927847862243652, -0.669414222240448, 1.171189785003662, 0.1057385578751564, -1.1302952766418457, 0.27121543884277344, 1.581717610359192, 0.1459498107433319, -0.21420294046401978, 0.6802933812141418, 0.43935418128967285, -0.6806691884994507, -0.03797077760100365, -0.8826404809951782, 0.47906172275543213, -0.13304796814918518, -0.3566893935203552, 0.2925299406051636, 0.6078246831893921, 1.298126220703125, 0.022971302270889282, 0.09774631261825562, 1.2442632913589478, -1.39897620677948, 1.458695650100708, -0.6261320114135742, 0.30221670866012573, -2.4461424350738525, 1.4162466526031494, -0.835785448551178, 1.9527004957199097, -2.5882790088653564, 0.47159409523010254, -0.5920558571815491, -0.5034836530685425, 0.32210588455200195, -0.32403814792633057, 0.13754147291183472, -0.13402390480041504, -1.0137580633163452, -0.08791182190179825, -0.751281201839447, 0.6190537810325623, 1.1938821077346802, 1.4087759256362915, -1.0734694004058838, -0.29933953285217285, -1.7334556579589844, -0.2012789398431778, -0.6613636016845703, 0.3159003257751465, -1.948358416557312, -0.17092682421207428, -1.9973944425582886, -2.498314619064331, -1.3312515020370483, -0.8273010849952698, 1.0668591260910034, 0.17372743785381317, -0.9564633965492249, 1.2211781740188599, -0.3899431824684143, -1.7424389123916626, 1.111642837524414, -2.1939754486083984 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
I changed the URL again to use another host, the fix is available on `master` and we'll probably do a new release of `datasets` tomorrow. In the meantime, feel free to do `load_dataset(..., revision="master")` to use the fixed script
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
1,003
39
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: I changed the URL again to use another host, the fix is available on `master` and we'll probably do a new release of `datasets` tomorrow. In the meantime, feel free to do `load_dataset(..., revision="master")` to use the fixed script
[ -1.1686668395996094, -0.8808467388153076, -0.679608166217804, 1.4830045700073242, -0.0591169111430645, -1.27288818359375, 0.1321658194065094, -0.9903767108917236, 1.648022174835205, -0.767906129360199, 0.26352041959762573, -1.715537667274475, -0.022346124053001404, -0.5682376027107239, -0.7243339419364929, -0.7927811741828918, -0.33354294300079346, -0.8473801612854004, 1.0679347515106201, 2.485607147216797, 1.2111992835998535, -1.3332862854003906, 2.8446993827819824, 0.624511182308197, -0.2896413803100586, -1.0097808837890625, 0.5111224055290222, -0.034893639385700226, -1.2252280712127686, -0.4833676815032959, -0.937717616558075, 0.0007731476798653603, -0.5802669525146484, -0.4587193727493286, 0.059532247483730316, 0.44120097160339355, -0.2787652015686035, -0.3433995842933655, -0.5685322880744934, -0.7307277321815491, 0.448242723941803, -0.2722827196121216, 0.9589879512786865, -0.22073709964752197, 1.8408395051956177, -0.6061239242553711, 0.3615238666534424, 0.6668446660041809, 1.3296666145324707, 0.19368018209934235, 0.054183900356292725, 0.3043662905693054, 0.32152485847473145, 0.005583661608397961, 0.5193424820899963, 1.2637776136398315, 0.655110239982605, 0.5019310712814331, 0.702610433101654, -2.1705336570739746, 1.3415006399154663, -0.8968276977539062, 0.33914780616760254, 1.318375587463379, -0.9019668698310852, 0.374802827835083, -1.800136685371399, -0.07629465311765671, 0.5170759558677673, -2.3162825107574463, 0.24545110762119293, -1.3485925197601318, -0.4635273814201355, 0.9206783175468445, 0.2670806050300598, -1.295377254486084, 0.22360047698020935, -0.5355729460716248, 1.0516510009765625, 0.4717239737510681, 1.150144338607788, -1.670084834098816, -0.03342823684215546, -0.19837027788162231, 0.16654826700687408, -1.2423573732376099, -1.6602448225021362, 0.605090856552124, 0.6266081929206848, 0.7166274189949036, -0.1957964301109314, 1.0919326543807983, -1.0341647863388062, 0.7601473927497864, -0.9452834725379944, -1.7236335277557373, -1.4018124341964722, -2.302830219268799, -2.3573074340820312, 0.818815290927887, -0.5014984011650085, -0.4841914772987366, 2.078993558883667, -0.9991484880447388, -1.794388771057129, 1.0536959171295166, 0.3504717946052551, 0.02655792236328125, 2.408986806869507, 0.2412254363298416, -0.7899595499038696, 0.4405527114868164, -0.6604747176170349, 0.8531437516212463, -0.29327166080474854, 1.3362692594528198, 0.562805712223053, -1.0467545986175537, 1.5916748046875, -0.3855072259902954, 0.5777088403701782, -0.6553490161895752, -0.5014776587486267, -0.8099780678749084, 0.24466754496097565, 1.8935753107070923, -0.34775102138519287, 1.6064422130584717, -0.32767289876937866, -1.5879474878311157, -1.5293772220611572, 0.8353898525238037, 0.46750760078430176, -0.8338280320167542, 0.12084735929965973, -0.5156838893890381, 0.0868353545665741, 0.04462331905961037, 1.1986825466156006, 1.2202435731887817, 0.6031043529510498, -0.33016473054885864, -0.8590500354766846, 0.2006077617406845, -0.11892463266849518, -0.6611979007720947, -1.7820885181427002, -0.34378182888031006, 0.27091318368911743, 0.6180015802383423, -1.2157562971115112, 1.7798177003860474, 0.863928496837616, 1.953970193862915, 0.9857414960861206, -0.3650028109550476, 1.4671952724456787, -0.0317942276597023, 1.8325759172439575, -0.4889999032020569, 0.6143103241920471, -0.3161545395851135, -1.1970036029815674, 0.8272538185119629, -0.3828015923500061, -1.9967982769012451, -0.7893316745758057, -0.7706005573272705, -0.15189361572265625, -0.7930447459220886, 0.8366764187812805, -0.2921159267425537, -1.4595438241958618, 0.18674543499946594, -0.6477214694023132, 0.2080317735671997, -1.3139517307281494, 0.2058544009923935, 0.7215930223464966, -0.6962456107139587, -0.04173053056001663, -0.20055066049098969, -1.3431503772735596, -0.48466336727142334, 0.32781869173049927, 1.8360533714294434, -0.5933270454406738, 0.9925143718719482, 1.0314090251922607, -0.7113805413246155, 0.06977688521146774, 0.26911211013793945, -0.3199809193611145, 0.8499702215194702, -1.1249669790267944, -0.3727048635482788, 1.1777541637420654, -0.20563414692878723, -0.580890417098999, 1.3968441486358643, 0.8100336194038391, -1.024389386177063, -0.20565690100193024, -0.1573503315448761, -0.8618794679641724, -0.025410763919353485, -1.551002860069275, -0.2072845846414566, 0.3854941129684448, -1.448075532913208, -0.3891867995262146, -0.2422715276479721, 1.319846749305725, -0.18119847774505615, 1.445334792137146, -0.3115863800048828, -0.20939595997333527, -0.36130720376968384, -0.43937814235687256, 0.10006630420684814, -0.17169319093227386, -0.6479372978210449, 0.20610500872135162, -0.7894628047943115, 0.3573123812675476, 1.496675729751587, 0.3694695830345154, 0.03467633202672005, 0.5498250722885132, 1.1522787809371948, 0.3581118583679199, -0.10517175495624542, -0.8715061545372009, -1.5878210067749023, 1.9647712707519531, -1.4093000888824463, 1.8742218017578125, 0.8278579711914062, -0.05966345593333244, -1.7601507902145386, -1.8214137554168701, 1.382157564163208, 1.1784361600875854, 2.4015870094299316, 0.4620731472969055, 0.41995543241500854, -0.7321569919586182, -0.7209439873695374, 0.2951163053512573, -1.0185281038284302, -0.6574140191078186, 0.15520301461219788, 2.37884259223938, 1.8265928030014038, -0.5342270135879517, -0.30537301301956177, -0.9672849774360657, 1.2673845291137695, -0.2947641611099243, 0.16971749067306519, 2.0195693969726562, -0.28444403409957886, -1.0763370990753174, 1.3480662107467651, -2.3554089069366455, 0.2750856876373291, 2.050682544708252, 0.29390013217926025, 0.08124517649412155, -1.3969500064849854, -0.6254302263259888, -0.2836308479309082, -0.47749006748199463, -1.2791959047317505, 0.5696360468864441, -0.23492752015590668, -0.8311476111412048, -1.4677760601043701, 0.08559492975473404, -1.1893582344055176, -1.7476578950881958, 0.3606001138687134, 1.8885691165924072, 2.0268146991729736, -0.7552947998046875, 1.410568118095398, -0.2897390127182007, 0.17500337958335876, 1.2348467111587524, 1.301345944404602, 3.1585049629211426, 1.8322800397872925, -1.2905292510986328, 0.7213892936706543, -0.21427828073501587, -0.534458339214325, 1.1775116920471191, -1.1331098079681396, 1.166936993598938, -0.22175054252147675, -1.288365364074707, -1.2690266370773315, 0.9983938932418823, 0.4830336570739746, 0.034648410975933075, -0.5490423440933228, 1.2383569478988647, 0.12092061340808868, 1.2776024341583252, 0.6257438659667969, -0.38948220014572144, 0.5633509755134583, -0.36553531885147095, -0.5106291174888611, 1.6286689043045044, 0.12595365941524506, -1.477684497833252, -2.305637836456299, -0.24105621874332428, -0.8543786406517029, 0.001125948503613472, -0.6577287912368774, -1.0190012454986572, 1.5801103115081787, 0.44161456823349, -1.2027699947357178, -0.2589031457901001, -0.31567907333374023, -0.528537392616272, 2.6123619079589844, -1.3087762594223022, -0.1457463651895523, -0.9776480793952942, -0.5841609835624695, 1.6208480596542358, -1.1633797883987427, -0.24145817756652832, -1.0353761911392212, -0.6541838049888611, -1.3320332765579224, -0.5039081573486328, 0.00011990033090114594, -0.8594071269035339, 0.685570478439331, 0.14281383156776428, -1.1197090148925781, -0.2801774740219116, -0.9176741242408752, 1.02479088306427, -0.18680024147033691, 0.12777075171470642, 1.7872177362442017, 0.4115050435066223, -0.4417215585708618, 0.8121088743209839, 1.190627098083496, 0.6037686467170715, -0.6271883249282837, 0.04448043555021286, -0.7179678678512573, 0.3320985436439514, -1.4416497945785522, 0.2713471055030823, -2.9163405895233154, 0.7086812853813171, -0.18517883121967316, -0.08501018583774567, -0.022865459322929382, -1.3612309694290161, 1.0821107625961304, 2.551133871078491, -1.1725369691848755, 0.4478725790977478, 0.39145416021347046, 1.135772705078125, -1.6334502696990967, 0.2053421288728714, -0.4720582365989685, 2.057263135910034, 0.16896969079971313, 1.2722225189208984, -0.4773860573768616, -2.222947835922241, 0.5898786783218384, -1.2268985509872437, -1.063649296760559, 0.8536592721939087, -0.8985134959220886, 0.20116393268108368, -1.3862398862838745, -0.1941157430410385, -0.9230095148086548, -1.249922513961792, 0.7448279857635498, 0.07541656494140625, 0.40094292163848877, -0.5757009983062744, 0.33409368991851807, -2.1475698947906494, -1.3858201503753662, -0.1374627947807312, -1.0544339418411255, 0.5166497230529785, -0.3965418338775635, 0.5676059126853943, -0.10729193687438965, 0.02592439204454422, 0.28341686725616455, 1.5047370195388794, 3.302642583847046, 0.15237776935100555, 0.30965811014175415, -0.11490565538406372, -0.9834308624267578, 1.4214355945587158, 0.9002029299736023, -0.1850469559431076, -0.5726130604743958, -1.0023311376571655, 1.3219377994537354, 1.9780324697494507, 1.0476354360580444, 0.05461275577545166, -0.8540424704551697, -0.7373093962669373, -0.005695823114365339, 0.22273017466068268, 0.52632737159729, 0.9505758285522461, 0.01834746077656746, 0.12329177558422089, 1.3588889837265015, 1.1628385782241821, -0.3947821855545044, 0.4192344546318054, -0.864888072013855, -0.4178959131240845, 0.42191505432128906, 0.20447976887226105, 0.02659754827618599, 0.516160249710083, -1.0766923427581787, -0.28239119052886963, -0.3407738208770752, -0.9010331630706787, -0.8133052587509155, -0.4100257158279419, -0.3628689646720886, 1.634696125984192, 0.030201353132724762, -0.5082300901412964, 0.05213227495551109, -0.7011076211929321, -0.17607539892196655, -1.0176360607147217, 0.21418744325637817, -0.09448745101690292, -0.06074037402868271, -0.10649485886096954, 1.611269235610962, -0.9902541041374207, -2.1038036346435547, 0.19047732651233673, 0.23220151662826538, -0.3356906771659851, 0.1239105761051178, 1.7296534776687622, 0.5148452520370483, 1.4626541137695312, 1.3591762781143188, 1.0131679773330688, -0.6867421269416809, -1.271284818649292, 0.7415398955345154, 0.951589822769165, -1.3137513399124146, 0.906389594078064, -0.15888787806034088, -0.594595193862915, 0.6594962477684021, 1.3339672088623047, 0.4096282124519348, -2.0111734867095947, 0.823247492313385, -0.9379900693893433, 0.7111263871192932, 0.674195408821106, 0.7895815372467041, 0.23077495396137238, 0.8242782354354858, -1.25478196144104, -1.1684777736663818, -0.6605416536331177, -0.5956937670707703, 1.9497965574264526, -0.21732933819293976, 0.5302121043205261, -0.17789888381958008, -1.2402727603912354, -0.0989682525396347, 0.7857322096824646, 0.4095902442932129, -0.4712733030319214, 0.846383273601532, -0.6219007968902588, -1.011974573135376, -1.340983271598816, -0.4444728493690491, -1.0569759607315063, -0.9117531180381775, 0.9776332974433899, 0.7818968296051025, 0.40817469358444214, 1.9142203330993652, 0.6141454577445984, 0.2727009654045105, -2.6310064792633057, 0.860392689704895, 0.2946290373802185, -0.06221051141619682, 0.8991873264312744, 0.30137377977371216, 1.1553038358688354, 0.01280679740011692, 0.6561104655265808, -2.3044135570526123, 2.181018114089966, -0.15346750617027283, 0.6553074717521667, 0.0032596616074442863, -0.27264028787612915, 1.1033737659454346, 0.5536857843399048, 0.5690668821334839, -1.1548010110855103, 0.7287226319313049, -0.5912565588951111, 1.0799063444137573, 0.8754236102104187, -0.9231469631195068, 0.07028963416814804, 1.4206382036209106, 0.49470263719558716, -0.445539653301239, -0.9617887139320374, -0.8775167465209961, 0.9935832023620605, 1.6755597591400146, -0.005756494123488665, 0.007774148136377335, 0.8392243385314941, 0.7151708006858826, -1.3403120040893555, 0.09195765852928162, -0.6219867467880249, -0.6823548078536987, 1.682300090789795, 2.044379472732544, -0.10572593659162521, -0.1983351707458496, -0.7263320684432983, -1.1910728216171265, 0.7675245404243469, 0.014689318835735321, 0.03898265212774277, 0.7344375252723694, -0.7439320087432861, 1.1730289459228516, 0.6963984370231628, 0.9090407490730286, 0.10737001150846481, 0.32126641273498535, 0.36398619413375854, -0.2736140489578247, -1.1998987197875977, -0.3143724203109741, -1.0939064025878906, -2.588582992553711, 0.43399250507354736, -0.303091824054718, -1.4603170156478882, 0.10172170400619507, -1.0450776815414429, 0.8031487464904785, -0.6307685375213623, -1.1356494426727295, -1.5033873319625854, 0.298318088054657, -0.15990206599235535, 0.8972222208976746, -1.6312602758407593, -0.11033255606889725, 1.230252981185913, 0.9268916249275208, -0.5584478974342346, 0.9991576671600342, 0.2788274884223938, 0.9507197737693787, 0.8699358701705933, -0.39103221893310547, 0.5884324312210083, 0.11214406788349152, -1.3709006309509277, 0.4598260521888733, 1.241441011428833, 0.2759644389152527, 1.449067234992981, -0.4980827569961548, 0.08352800458669662, 0.5157851576805115, -0.5712826251983643, -0.49084991216659546, -0.5244841575622559, 0.6852787137031555, 0.08257605135440826, -0.9779956936836243, -0.046648651361465454, -0.18767955899238586, -0.2569150924682617, 0.27806389331817627, -1.5135984420776367, -0.2541583180427551, -0.41037172079086304, -0.5188947319984436, -1.270200252532959, 0.024831868708133698, 1.3796465396881104, -0.8682565689086914, -0.2622067332267761, 0.457231342792511, 0.34138262271881104, 0.5384554862976074, 0.5743781328201294, -0.7598579525947571, -0.2428322583436966, -0.33513176441192627, -0.37896519899368286, 0.2517370581626892, 1.2217334508895874, -0.1141987144947052, -1.0002782344818115, 0.6921665072441101, -0.3877408504486084, 0.1196732372045517, 1.9540255069732666, 0.03443248197436333, -0.8069254159927368, 0.39141547679901123, -0.7181993722915649, 1.826141119003296, 1.6785330772399902, 1.3220466375350952, -0.06197914108633995, -0.8965286612510681, 0.6202967762947083, -0.25159791111946106, -0.30364012718200684, 0.9810960292816162, 0.35792702436447144, -0.18700000643730164, -1.4761275053024292, 0.6214340925216675, 1.3644373416900635, -0.8578883409500122, -0.7387545108795166, 0.027151301503181458, -0.9183796048164368, 1.2027772665023804, 0.5725560784339905, 0.28220295906066895, 0.19703812897205353, 1.5651262998580933, 0.7416849136352539, -0.43306148052215576, 0.527803361415863, 0.48598599433898926, -0.1473475843667984, -2.0891551971435547, -1.0089093446731567, 0.27257561683654785, -0.3974379301071167, -1.5217547416687012, 1.3176524639129639, -1.1307114362716675, -0.9755622744560242, 0.5164904594421387, 0.13431693613529205, 1.348838210105896, 0.3292583227157593, 1.6717383861541748, 2.111274242401123, 0.8790712356567383, 0.30659765005111694, 1.1968731880187988, -0.0945519208908081, -0.38430219888687134, 1.7716636657714844, -0.41701316833496094, 0.5583886504173279, 1.0155587196350098, -0.41906410455703735, -1.1165043115615845, -0.838422954082489, -1.1927847862243652, -0.669414222240448, 1.171189785003662, 0.1057385578751564, -1.1302952766418457, 0.27121543884277344, 1.581717610359192, 0.1459498107433319, -0.21420294046401978, 0.6802933812141418, 0.43935418128967285, -0.6806691884994507, -0.03797077760100365, -0.8826404809951782, 0.47906172275543213, -0.13304796814918518, -0.3566893935203552, 0.2925299406051636, 0.6078246831893921, 1.298126220703125, 0.022971302270889282, 0.09774631261825562, 1.2442632913589478, -1.39897620677948, 1.458695650100708, -0.6261320114135742, 0.30221670866012573, -2.4461424350738525, 1.4162466526031494, -0.835785448551178, 1.9527004957199097, -2.5882790088653564, 0.47159409523010254, -0.5920558571815491, -0.5034836530685425, 0.32210588455200195, -0.32403814792633057, 0.13754147291183472, -0.13402390480041504, -1.0137580633163452, -0.08791182190179825, -0.751281201839447, 0.6190537810325623, 1.1938821077346802, 1.4087759256362915, -1.0734694004058838, -0.29933953285217285, -1.7334556579589844, -0.2012789398431778, -0.6613636016845703, 0.3159003257751465, -1.948358416557312, -0.17092682421207428, -1.9973944425582886, -2.498314619064331, -1.3312515020370483, -0.8273010849952698, 1.0668591260910034, 0.17372743785381317, -0.9564633965492249, 1.2211781740188599, -0.3899431824684143, -1.7424389123916626, 1.111642837524414, -2.1939754486083984 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
We just released a new version of `datasets` with a working URL. Feel free to update `datasets` and try again :)
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
1,003
21
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: We just released a new version of `datasets` with a working URL. Feel free to update `datasets` and try again :)
[ -1.1686668395996094, -0.8808467388153076, -0.679608166217804, 1.4830045700073242, -0.0591169111430645, -1.27288818359375, 0.1321658194065094, -0.9903767108917236, 1.648022174835205, -0.767906129360199, 0.26352041959762573, -1.715537667274475, -0.022346124053001404, -0.5682376027107239, -0.7243339419364929, -0.7927811741828918, -0.33354294300079346, -0.8473801612854004, 1.0679347515106201, 2.485607147216797, 1.2111992835998535, -1.3332862854003906, 2.8446993827819824, 0.624511182308197, -0.2896413803100586, -1.0097808837890625, 0.5111224055290222, -0.034893639385700226, -1.2252280712127686, -0.4833676815032959, -0.937717616558075, 0.0007731476798653603, -0.5802669525146484, -0.4587193727493286, 0.059532247483730316, 0.44120097160339355, -0.2787652015686035, -0.3433995842933655, -0.5685322880744934, -0.7307277321815491, 0.448242723941803, -0.2722827196121216, 0.9589879512786865, -0.22073709964752197, 1.8408395051956177, -0.6061239242553711, 0.3615238666534424, 0.6668446660041809, 1.3296666145324707, 0.19368018209934235, 0.054183900356292725, 0.3043662905693054, 0.32152485847473145, 0.005583661608397961, 0.5193424820899963, 1.2637776136398315, 0.655110239982605, 0.5019310712814331, 0.702610433101654, -2.1705336570739746, 1.3415006399154663, -0.8968276977539062, 0.33914780616760254, 1.318375587463379, -0.9019668698310852, 0.374802827835083, -1.800136685371399, -0.07629465311765671, 0.5170759558677673, -2.3162825107574463, 0.24545110762119293, -1.3485925197601318, -0.4635273814201355, 0.9206783175468445, 0.2670806050300598, -1.295377254486084, 0.22360047698020935, -0.5355729460716248, 1.0516510009765625, 0.4717239737510681, 1.150144338607788, -1.670084834098816, -0.03342823684215546, -0.19837027788162231, 0.16654826700687408, -1.2423573732376099, -1.6602448225021362, 0.605090856552124, 0.6266081929206848, 0.7166274189949036, -0.1957964301109314, 1.0919326543807983, -1.0341647863388062, 0.7601473927497864, -0.9452834725379944, -1.7236335277557373, -1.4018124341964722, -2.302830219268799, -2.3573074340820312, 0.818815290927887, -0.5014984011650085, -0.4841914772987366, 2.078993558883667, -0.9991484880447388, -1.794388771057129, 1.0536959171295166, 0.3504717946052551, 0.02655792236328125, 2.408986806869507, 0.2412254363298416, -0.7899595499038696, 0.4405527114868164, -0.6604747176170349, 0.8531437516212463, -0.29327166080474854, 1.3362692594528198, 0.562805712223053, -1.0467545986175537, 1.5916748046875, -0.3855072259902954, 0.5777088403701782, -0.6553490161895752, -0.5014776587486267, -0.8099780678749084, 0.24466754496097565, 1.8935753107070923, -0.34775102138519287, 1.6064422130584717, -0.32767289876937866, -1.5879474878311157, -1.5293772220611572, 0.8353898525238037, 0.46750760078430176, -0.8338280320167542, 0.12084735929965973, -0.5156838893890381, 0.0868353545665741, 0.04462331905961037, 1.1986825466156006, 1.2202435731887817, 0.6031043529510498, -0.33016473054885864, -0.8590500354766846, 0.2006077617406845, -0.11892463266849518, -0.6611979007720947, -1.7820885181427002, -0.34378182888031006, 0.27091318368911743, 0.6180015802383423, -1.2157562971115112, 1.7798177003860474, 0.863928496837616, 1.953970193862915, 0.9857414960861206, -0.3650028109550476, 1.4671952724456787, -0.0317942276597023, 1.8325759172439575, -0.4889999032020569, 0.6143103241920471, -0.3161545395851135, -1.1970036029815674, 0.8272538185119629, -0.3828015923500061, -1.9967982769012451, -0.7893316745758057, -0.7706005573272705, -0.15189361572265625, -0.7930447459220886, 0.8366764187812805, -0.2921159267425537, -1.4595438241958618, 0.18674543499946594, -0.6477214694023132, 0.2080317735671997, -1.3139517307281494, 0.2058544009923935, 0.7215930223464966, -0.6962456107139587, -0.04173053056001663, -0.20055066049098969, -1.3431503772735596, -0.48466336727142334, 0.32781869173049927, 1.8360533714294434, -0.5933270454406738, 0.9925143718719482, 1.0314090251922607, -0.7113805413246155, 0.06977688521146774, 0.26911211013793945, -0.3199809193611145, 0.8499702215194702, -1.1249669790267944, -0.3727048635482788, 1.1777541637420654, -0.20563414692878723, -0.580890417098999, 1.3968441486358643, 0.8100336194038391, -1.024389386177063, -0.20565690100193024, -0.1573503315448761, -0.8618794679641724, -0.025410763919353485, -1.551002860069275, -0.2072845846414566, 0.3854941129684448, -1.448075532913208, -0.3891867995262146, -0.2422715276479721, 1.319846749305725, -0.18119847774505615, 1.445334792137146, -0.3115863800048828, -0.20939595997333527, -0.36130720376968384, -0.43937814235687256, 0.10006630420684814, -0.17169319093227386, -0.6479372978210449, 0.20610500872135162, -0.7894628047943115, 0.3573123812675476, 1.496675729751587, 0.3694695830345154, 0.03467633202672005, 0.5498250722885132, 1.1522787809371948, 0.3581118583679199, -0.10517175495624542, -0.8715061545372009, -1.5878210067749023, 1.9647712707519531, -1.4093000888824463, 1.8742218017578125, 0.8278579711914062, -0.05966345593333244, -1.7601507902145386, -1.8214137554168701, 1.382157564163208, 1.1784361600875854, 2.4015870094299316, 0.4620731472969055, 0.41995543241500854, -0.7321569919586182, -0.7209439873695374, 0.2951163053512573, -1.0185281038284302, -0.6574140191078186, 0.15520301461219788, 2.37884259223938, 1.8265928030014038, -0.5342270135879517, -0.30537301301956177, -0.9672849774360657, 1.2673845291137695, -0.2947641611099243, 0.16971749067306519, 2.0195693969726562, -0.28444403409957886, -1.0763370990753174, 1.3480662107467651, -2.3554089069366455, 0.2750856876373291, 2.050682544708252, 0.29390013217926025, 0.08124517649412155, -1.3969500064849854, -0.6254302263259888, -0.2836308479309082, -0.47749006748199463, -1.2791959047317505, 0.5696360468864441, -0.23492752015590668, -0.8311476111412048, -1.4677760601043701, 0.08559492975473404, -1.1893582344055176, -1.7476578950881958, 0.3606001138687134, 1.8885691165924072, 2.0268146991729736, -0.7552947998046875, 1.410568118095398, -0.2897390127182007, 0.17500337958335876, 1.2348467111587524, 1.301345944404602, 3.1585049629211426, 1.8322800397872925, -1.2905292510986328, 0.7213892936706543, -0.21427828073501587, -0.534458339214325, 1.1775116920471191, -1.1331098079681396, 1.166936993598938, -0.22175054252147675, -1.288365364074707, -1.2690266370773315, 0.9983938932418823, 0.4830336570739746, 0.034648410975933075, -0.5490423440933228, 1.2383569478988647, 0.12092061340808868, 1.2776024341583252, 0.6257438659667969, -0.38948220014572144, 0.5633509755134583, -0.36553531885147095, -0.5106291174888611, 1.6286689043045044, 0.12595365941524506, -1.477684497833252, -2.305637836456299, -0.24105621874332428, -0.8543786406517029, 0.001125948503613472, -0.6577287912368774, -1.0190012454986572, 1.5801103115081787, 0.44161456823349, -1.2027699947357178, -0.2589031457901001, -0.31567907333374023, -0.528537392616272, 2.6123619079589844, -1.3087762594223022, -0.1457463651895523, -0.9776480793952942, -0.5841609835624695, 1.6208480596542358, -1.1633797883987427, -0.24145817756652832, -1.0353761911392212, -0.6541838049888611, -1.3320332765579224, -0.5039081573486328, 0.00011990033090114594, -0.8594071269035339, 0.685570478439331, 0.14281383156776428, -1.1197090148925781, -0.2801774740219116, -0.9176741242408752, 1.02479088306427, -0.18680024147033691, 0.12777075171470642, 1.7872177362442017, 0.4115050435066223, -0.4417215585708618, 0.8121088743209839, 1.190627098083496, 0.6037686467170715, -0.6271883249282837, 0.04448043555021286, -0.7179678678512573, 0.3320985436439514, -1.4416497945785522, 0.2713471055030823, -2.9163405895233154, 0.7086812853813171, -0.18517883121967316, -0.08501018583774567, -0.022865459322929382, -1.3612309694290161, 1.0821107625961304, 2.551133871078491, -1.1725369691848755, 0.4478725790977478, 0.39145416021347046, 1.135772705078125, -1.6334502696990967, 0.2053421288728714, -0.4720582365989685, 2.057263135910034, 0.16896969079971313, 1.2722225189208984, -0.4773860573768616, -2.222947835922241, 0.5898786783218384, -1.2268985509872437, -1.063649296760559, 0.8536592721939087, -0.8985134959220886, 0.20116393268108368, -1.3862398862838745, -0.1941157430410385, -0.9230095148086548, -1.249922513961792, 0.7448279857635498, 0.07541656494140625, 0.40094292163848877, -0.5757009983062744, 0.33409368991851807, -2.1475698947906494, -1.3858201503753662, -0.1374627947807312, -1.0544339418411255, 0.5166497230529785, -0.3965418338775635, 0.5676059126853943, -0.10729193687438965, 0.02592439204454422, 0.28341686725616455, 1.5047370195388794, 3.302642583847046, 0.15237776935100555, 0.30965811014175415, -0.11490565538406372, -0.9834308624267578, 1.4214355945587158, 0.9002029299736023, -0.1850469559431076, -0.5726130604743958, -1.0023311376571655, 1.3219377994537354, 1.9780324697494507, 1.0476354360580444, 0.05461275577545166, -0.8540424704551697, -0.7373093962669373, -0.005695823114365339, 0.22273017466068268, 0.52632737159729, 0.9505758285522461, 0.01834746077656746, 0.12329177558422089, 1.3588889837265015, 1.1628385782241821, -0.3947821855545044, 0.4192344546318054, -0.864888072013855, -0.4178959131240845, 0.42191505432128906, 0.20447976887226105, 0.02659754827618599, 0.516160249710083, -1.0766923427581787, -0.28239119052886963, -0.3407738208770752, -0.9010331630706787, -0.8133052587509155, -0.4100257158279419, -0.3628689646720886, 1.634696125984192, 0.030201353132724762, -0.5082300901412964, 0.05213227495551109, -0.7011076211929321, -0.17607539892196655, -1.0176360607147217, 0.21418744325637817, -0.09448745101690292, -0.06074037402868271, -0.10649485886096954, 1.611269235610962, -0.9902541041374207, -2.1038036346435547, 0.19047732651233673, 0.23220151662826538, -0.3356906771659851, 0.1239105761051178, 1.7296534776687622, 0.5148452520370483, 1.4626541137695312, 1.3591762781143188, 1.0131679773330688, -0.6867421269416809, -1.271284818649292, 0.7415398955345154, 0.951589822769165, -1.3137513399124146, 0.906389594078064, -0.15888787806034088, -0.594595193862915, 0.6594962477684021, 1.3339672088623047, 0.4096282124519348, -2.0111734867095947, 0.823247492313385, -0.9379900693893433, 0.7111263871192932, 0.674195408821106, 0.7895815372467041, 0.23077495396137238, 0.8242782354354858, -1.25478196144104, -1.1684777736663818, -0.6605416536331177, -0.5956937670707703, 1.9497965574264526, -0.21732933819293976, 0.5302121043205261, -0.17789888381958008, -1.2402727603912354, -0.0989682525396347, 0.7857322096824646, 0.4095902442932129, -0.4712733030319214, 0.846383273601532, -0.6219007968902588, -1.011974573135376, -1.340983271598816, -0.4444728493690491, -1.0569759607315063, -0.9117531180381775, 0.9776332974433899, 0.7818968296051025, 0.40817469358444214, 1.9142203330993652, 0.6141454577445984, 0.2727009654045105, -2.6310064792633057, 0.860392689704895, 0.2946290373802185, -0.06221051141619682, 0.8991873264312744, 0.30137377977371216, 1.1553038358688354, 0.01280679740011692, 0.6561104655265808, -2.3044135570526123, 2.181018114089966, -0.15346750617027283, 0.6553074717521667, 0.0032596616074442863, -0.27264028787612915, 1.1033737659454346, 0.5536857843399048, 0.5690668821334839, -1.1548010110855103, 0.7287226319313049, -0.5912565588951111, 1.0799063444137573, 0.8754236102104187, -0.9231469631195068, 0.07028963416814804, 1.4206382036209106, 0.49470263719558716, -0.445539653301239, -0.9617887139320374, -0.8775167465209961, 0.9935832023620605, 1.6755597591400146, -0.005756494123488665, 0.007774148136377335, 0.8392243385314941, 0.7151708006858826, -1.3403120040893555, 0.09195765852928162, -0.6219867467880249, -0.6823548078536987, 1.682300090789795, 2.044379472732544, -0.10572593659162521, -0.1983351707458496, -0.7263320684432983, -1.1910728216171265, 0.7675245404243469, 0.014689318835735321, 0.03898265212774277, 0.7344375252723694, -0.7439320087432861, 1.1730289459228516, 0.6963984370231628, 0.9090407490730286, 0.10737001150846481, 0.32126641273498535, 0.36398619413375854, -0.2736140489578247, -1.1998987197875977, -0.3143724203109741, -1.0939064025878906, -2.588582992553711, 0.43399250507354736, -0.303091824054718, -1.4603170156478882, 0.10172170400619507, -1.0450776815414429, 0.8031487464904785, -0.6307685375213623, -1.1356494426727295, -1.5033873319625854, 0.298318088054657, -0.15990206599235535, 0.8972222208976746, -1.6312602758407593, -0.11033255606889725, 1.230252981185913, 0.9268916249275208, -0.5584478974342346, 0.9991576671600342, 0.2788274884223938, 0.9507197737693787, 0.8699358701705933, -0.39103221893310547, 0.5884324312210083, 0.11214406788349152, -1.3709006309509277, 0.4598260521888733, 1.241441011428833, 0.2759644389152527, 1.449067234992981, -0.4980827569961548, 0.08352800458669662, 0.5157851576805115, -0.5712826251983643, -0.49084991216659546, -0.5244841575622559, 0.6852787137031555, 0.08257605135440826, -0.9779956936836243, -0.046648651361465454, -0.18767955899238586, -0.2569150924682617, 0.27806389331817627, -1.5135984420776367, -0.2541583180427551, -0.41037172079086304, -0.5188947319984436, -1.270200252532959, 0.024831868708133698, 1.3796465396881104, -0.8682565689086914, -0.2622067332267761, 0.457231342792511, 0.34138262271881104, 0.5384554862976074, 0.5743781328201294, -0.7598579525947571, -0.2428322583436966, -0.33513176441192627, -0.37896519899368286, 0.2517370581626892, 1.2217334508895874, -0.1141987144947052, -1.0002782344818115, 0.6921665072441101, -0.3877408504486084, 0.1196732372045517, 1.9540255069732666, 0.03443248197436333, -0.8069254159927368, 0.39141547679901123, -0.7181993722915649, 1.826141119003296, 1.6785330772399902, 1.3220466375350952, -0.06197914108633995, -0.8965286612510681, 0.6202967762947083, -0.25159791111946106, -0.30364012718200684, 0.9810960292816162, 0.35792702436447144, -0.18700000643730164, -1.4761275053024292, 0.6214340925216675, 1.3644373416900635, -0.8578883409500122, -0.7387545108795166, 0.027151301503181458, -0.9183796048164368, 1.2027772665023804, 0.5725560784339905, 0.28220295906066895, 0.19703812897205353, 1.5651262998580933, 0.7416849136352539, -0.43306148052215576, 0.527803361415863, 0.48598599433898926, -0.1473475843667984, -2.0891551971435547, -1.0089093446731567, 0.27257561683654785, -0.3974379301071167, -1.5217547416687012, 1.3176524639129639, -1.1307114362716675, -0.9755622744560242, 0.5164904594421387, 0.13431693613529205, 1.348838210105896, 0.3292583227157593, 1.6717383861541748, 2.111274242401123, 0.8790712356567383, 0.30659765005111694, 1.1968731880187988, -0.0945519208908081, -0.38430219888687134, 1.7716636657714844, -0.41701316833496094, 0.5583886504173279, 1.0155587196350098, -0.41906410455703735, -1.1165043115615845, -0.838422954082489, -1.1927847862243652, -0.669414222240448, 1.171189785003662, 0.1057385578751564, -1.1302952766418457, 0.27121543884277344, 1.581717610359192, 0.1459498107433319, -0.21420294046401978, 0.6802933812141418, 0.43935418128967285, -0.6806691884994507, -0.03797077760100365, -0.8826404809951782, 0.47906172275543213, -0.13304796814918518, -0.3566893935203552, 0.2925299406051636, 0.6078246831893921, 1.298126220703125, 0.022971302270889282, 0.09774631261825562, 1.2442632913589478, -1.39897620677948, 1.458695650100708, -0.6261320114135742, 0.30221670866012573, -2.4461424350738525, 1.4162466526031494, -0.835785448551178, 1.9527004957199097, -2.5882790088653564, 0.47159409523010254, -0.5920558571815491, -0.5034836530685425, 0.32210588455200195, -0.32403814792633057, 0.13754147291183472, -0.13402390480041504, -1.0137580633163452, -0.08791182190179825, -0.751281201839447, 0.6190537810325623, 1.1938821077346802, 1.4087759256362915, -1.0734694004058838, -0.29933953285217285, -1.7334556579589844, -0.2012789398431778, -0.6613636016845703, 0.3159003257751465, -1.948358416557312, -0.17092682421207428, -1.9973944425582886, -2.498314619064331, -1.3312515020370483, -0.8273010849952698, 1.0668591260910034, 0.17372743785381317, -0.9564633965492249, 1.2211781740188599, -0.3899431824684143, -1.7424389123916626, 1.111642837524414, -2.1939754486083984 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
Hello! Unfortunately, this URL does not work for me. Could you please tell me how I can solve the problem? `>>> from datasets import load_dataset >>> dataset = load_dataset("conll2003") Downloading and preparing dataset conll2003/conll2003 (download: 4.63 MiB, generated: 9.78 MiB, post-processed: Unknown size, total: 14.41 MiB) to /home/dafedo/.cache/huggingface/datasets/conll2003/conll2003/1.0.0/40e7cb6bcc374f7c349c83acd1e9352a4f09474eb691f64f364ee62eb65d0ca6... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/load.py", line 745, in load_dataset builder_instance.download_and_prepare( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/builder.py", line 574, in download_and_prepare self._download_and_prepare( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/builder.py", line 630, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/dafedo/.cache/huggingface/modules/datasets_modules/datasets/conll2003/40e7cb6bcc374f7c349c83acd1e9352a4f09474eb691f64f364ee62eb65d0ca6/conll2003.py", line 196, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 287, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 203, in map_nested mapped = [ File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 218, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 281, in cached_path output_path = get_from_cache( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/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://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ` I receive the same error when I run "itrain run_configs/conll2003.json" from https://github.com/adapter-hub/efficient-task-transfer Thank you very much in advance! Regards, Daria
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
1,003
199
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: Hello! Unfortunately, this URL does not work for me. Could you please tell me how I can solve the problem? `>>> from datasets import load_dataset >>> dataset = load_dataset("conll2003") Downloading and preparing dataset conll2003/conll2003 (download: 4.63 MiB, generated: 9.78 MiB, post-processed: Unknown size, total: 14.41 MiB) to /home/dafedo/.cache/huggingface/datasets/conll2003/conll2003/1.0.0/40e7cb6bcc374f7c349c83acd1e9352a4f09474eb691f64f364ee62eb65d0ca6... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/load.py", line 745, in load_dataset builder_instance.download_and_prepare( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/builder.py", line 574, in download_and_prepare self._download_and_prepare( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/builder.py", line 630, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/dafedo/.cache/huggingface/modules/datasets_modules/datasets/conll2003/40e7cb6bcc374f7c349c83acd1e9352a4f09474eb691f64f364ee62eb65d0ca6/conll2003.py", line 196, in _split_generators downloaded_files = dl_manager.download_and_extract(urls_to_download) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 287, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 195, in download downloaded_path_or_paths = map_nested( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 203, in map_nested mapped = [ File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 204, in <listcomp> _single_map_nested((function, obj, types, None, True)) for obj in tqdm(iterable, disable=disable_tqdm) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/py_utils.py", line 142, in _single_map_nested return function(data_struct) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/download_manager.py", line 218, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 281, in cached_path output_path = get_from_cache( File "/home/dafedo/efficient-task-transfer/venv/lib/python3.8/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://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ` I receive the same error when I run "itrain run_configs/conll2003.json" from https://github.com/adapter-hub/efficient-task-transfer Thank you very much in advance! Regards, Daria
[ -1.1686668395996094, -0.8808467388153076, -0.679608166217804, 1.4830045700073242, -0.0591169111430645, -1.27288818359375, 0.1321658194065094, -0.9903767108917236, 1.648022174835205, -0.767906129360199, 0.26352041959762573, -1.715537667274475, -0.022346124053001404, -0.5682376027107239, -0.7243339419364929, -0.7927811741828918, -0.33354294300079346, -0.8473801612854004, 1.0679347515106201, 2.485607147216797, 1.2111992835998535, -1.3332862854003906, 2.8446993827819824, 0.624511182308197, -0.2896413803100586, -1.0097808837890625, 0.5111224055290222, -0.034893639385700226, -1.2252280712127686, -0.4833676815032959, -0.937717616558075, 0.0007731476798653603, -0.5802669525146484, -0.4587193727493286, 0.059532247483730316, 0.44120097160339355, -0.2787652015686035, -0.3433995842933655, -0.5685322880744934, -0.7307277321815491, 0.448242723941803, -0.2722827196121216, 0.9589879512786865, -0.22073709964752197, 1.8408395051956177, -0.6061239242553711, 0.3615238666534424, 0.6668446660041809, 1.3296666145324707, 0.19368018209934235, 0.054183900356292725, 0.3043662905693054, 0.32152485847473145, 0.005583661608397961, 0.5193424820899963, 1.2637776136398315, 0.655110239982605, 0.5019310712814331, 0.702610433101654, -2.1705336570739746, 1.3415006399154663, -0.8968276977539062, 0.33914780616760254, 1.318375587463379, -0.9019668698310852, 0.374802827835083, -1.800136685371399, -0.07629465311765671, 0.5170759558677673, -2.3162825107574463, 0.24545110762119293, -1.3485925197601318, -0.4635273814201355, 0.9206783175468445, 0.2670806050300598, -1.295377254486084, 0.22360047698020935, -0.5355729460716248, 1.0516510009765625, 0.4717239737510681, 1.150144338607788, -1.670084834098816, -0.03342823684215546, -0.19837027788162231, 0.16654826700687408, -1.2423573732376099, -1.6602448225021362, 0.605090856552124, 0.6266081929206848, 0.7166274189949036, -0.1957964301109314, 1.0919326543807983, -1.0341647863388062, 0.7601473927497864, -0.9452834725379944, -1.7236335277557373, -1.4018124341964722, -2.302830219268799, -2.3573074340820312, 0.818815290927887, -0.5014984011650085, -0.4841914772987366, 2.078993558883667, -0.9991484880447388, -1.794388771057129, 1.0536959171295166, 0.3504717946052551, 0.02655792236328125, 2.408986806869507, 0.2412254363298416, -0.7899595499038696, 0.4405527114868164, -0.6604747176170349, 0.8531437516212463, -0.29327166080474854, 1.3362692594528198, 0.562805712223053, -1.0467545986175537, 1.5916748046875, -0.3855072259902954, 0.5777088403701782, -0.6553490161895752, -0.5014776587486267, -0.8099780678749084, 0.24466754496097565, 1.8935753107070923, -0.34775102138519287, 1.6064422130584717, -0.32767289876937866, -1.5879474878311157, -1.5293772220611572, 0.8353898525238037, 0.46750760078430176, -0.8338280320167542, 0.12084735929965973, -0.5156838893890381, 0.0868353545665741, 0.04462331905961037, 1.1986825466156006, 1.2202435731887817, 0.6031043529510498, -0.33016473054885864, -0.8590500354766846, 0.2006077617406845, -0.11892463266849518, -0.6611979007720947, -1.7820885181427002, -0.34378182888031006, 0.27091318368911743, 0.6180015802383423, -1.2157562971115112, 1.7798177003860474, 0.863928496837616, 1.953970193862915, 0.9857414960861206, -0.3650028109550476, 1.4671952724456787, -0.0317942276597023, 1.8325759172439575, -0.4889999032020569, 0.6143103241920471, -0.3161545395851135, -1.1970036029815674, 0.8272538185119629, -0.3828015923500061, -1.9967982769012451, -0.7893316745758057, -0.7706005573272705, -0.15189361572265625, -0.7930447459220886, 0.8366764187812805, -0.2921159267425537, -1.4595438241958618, 0.18674543499946594, -0.6477214694023132, 0.2080317735671997, -1.3139517307281494, 0.2058544009923935, 0.7215930223464966, -0.6962456107139587, -0.04173053056001663, -0.20055066049098969, -1.3431503772735596, -0.48466336727142334, 0.32781869173049927, 1.8360533714294434, -0.5933270454406738, 0.9925143718719482, 1.0314090251922607, -0.7113805413246155, 0.06977688521146774, 0.26911211013793945, -0.3199809193611145, 0.8499702215194702, -1.1249669790267944, -0.3727048635482788, 1.1777541637420654, -0.20563414692878723, -0.580890417098999, 1.3968441486358643, 0.8100336194038391, -1.024389386177063, -0.20565690100193024, -0.1573503315448761, -0.8618794679641724, -0.025410763919353485, -1.551002860069275, -0.2072845846414566, 0.3854941129684448, -1.448075532913208, -0.3891867995262146, -0.2422715276479721, 1.319846749305725, -0.18119847774505615, 1.445334792137146, -0.3115863800048828, -0.20939595997333527, -0.36130720376968384, -0.43937814235687256, 0.10006630420684814, -0.17169319093227386, -0.6479372978210449, 0.20610500872135162, -0.7894628047943115, 0.3573123812675476, 1.496675729751587, 0.3694695830345154, 0.03467633202672005, 0.5498250722885132, 1.1522787809371948, 0.3581118583679199, -0.10517175495624542, -0.8715061545372009, -1.5878210067749023, 1.9647712707519531, -1.4093000888824463, 1.8742218017578125, 0.8278579711914062, -0.05966345593333244, -1.7601507902145386, -1.8214137554168701, 1.382157564163208, 1.1784361600875854, 2.4015870094299316, 0.4620731472969055, 0.41995543241500854, -0.7321569919586182, -0.7209439873695374, 0.2951163053512573, -1.0185281038284302, -0.6574140191078186, 0.15520301461219788, 2.37884259223938, 1.8265928030014038, -0.5342270135879517, -0.30537301301956177, -0.9672849774360657, 1.2673845291137695, -0.2947641611099243, 0.16971749067306519, 2.0195693969726562, -0.28444403409957886, -1.0763370990753174, 1.3480662107467651, -2.3554089069366455, 0.2750856876373291, 2.050682544708252, 0.29390013217926025, 0.08124517649412155, -1.3969500064849854, -0.6254302263259888, -0.2836308479309082, -0.47749006748199463, -1.2791959047317505, 0.5696360468864441, -0.23492752015590668, -0.8311476111412048, -1.4677760601043701, 0.08559492975473404, -1.1893582344055176, -1.7476578950881958, 0.3606001138687134, 1.8885691165924072, 2.0268146991729736, -0.7552947998046875, 1.410568118095398, -0.2897390127182007, 0.17500337958335876, 1.2348467111587524, 1.301345944404602, 3.1585049629211426, 1.8322800397872925, -1.2905292510986328, 0.7213892936706543, -0.21427828073501587, -0.534458339214325, 1.1775116920471191, -1.1331098079681396, 1.166936993598938, -0.22175054252147675, -1.288365364074707, -1.2690266370773315, 0.9983938932418823, 0.4830336570739746, 0.034648410975933075, -0.5490423440933228, 1.2383569478988647, 0.12092061340808868, 1.2776024341583252, 0.6257438659667969, -0.38948220014572144, 0.5633509755134583, -0.36553531885147095, -0.5106291174888611, 1.6286689043045044, 0.12595365941524506, -1.477684497833252, -2.305637836456299, -0.24105621874332428, -0.8543786406517029, 0.001125948503613472, -0.6577287912368774, -1.0190012454986572, 1.5801103115081787, 0.44161456823349, -1.2027699947357178, -0.2589031457901001, -0.31567907333374023, -0.528537392616272, 2.6123619079589844, -1.3087762594223022, -0.1457463651895523, -0.9776480793952942, -0.5841609835624695, 1.6208480596542358, -1.1633797883987427, -0.24145817756652832, -1.0353761911392212, -0.6541838049888611, -1.3320332765579224, -0.5039081573486328, 0.00011990033090114594, -0.8594071269035339, 0.685570478439331, 0.14281383156776428, -1.1197090148925781, -0.2801774740219116, -0.9176741242408752, 1.02479088306427, -0.18680024147033691, 0.12777075171470642, 1.7872177362442017, 0.4115050435066223, -0.4417215585708618, 0.8121088743209839, 1.190627098083496, 0.6037686467170715, -0.6271883249282837, 0.04448043555021286, -0.7179678678512573, 0.3320985436439514, -1.4416497945785522, 0.2713471055030823, -2.9163405895233154, 0.7086812853813171, -0.18517883121967316, -0.08501018583774567, -0.022865459322929382, -1.3612309694290161, 1.0821107625961304, 2.551133871078491, -1.1725369691848755, 0.4478725790977478, 0.39145416021347046, 1.135772705078125, -1.6334502696990967, 0.2053421288728714, -0.4720582365989685, 2.057263135910034, 0.16896969079971313, 1.2722225189208984, -0.4773860573768616, -2.222947835922241, 0.5898786783218384, -1.2268985509872437, -1.063649296760559, 0.8536592721939087, -0.8985134959220886, 0.20116393268108368, -1.3862398862838745, -0.1941157430410385, -0.9230095148086548, -1.249922513961792, 0.7448279857635498, 0.07541656494140625, 0.40094292163848877, -0.5757009983062744, 0.33409368991851807, -2.1475698947906494, -1.3858201503753662, -0.1374627947807312, -1.0544339418411255, 0.5166497230529785, -0.3965418338775635, 0.5676059126853943, -0.10729193687438965, 0.02592439204454422, 0.28341686725616455, 1.5047370195388794, 3.302642583847046, 0.15237776935100555, 0.30965811014175415, -0.11490565538406372, -0.9834308624267578, 1.4214355945587158, 0.9002029299736023, -0.1850469559431076, -0.5726130604743958, -1.0023311376571655, 1.3219377994537354, 1.9780324697494507, 1.0476354360580444, 0.05461275577545166, -0.8540424704551697, -0.7373093962669373, -0.005695823114365339, 0.22273017466068268, 0.52632737159729, 0.9505758285522461, 0.01834746077656746, 0.12329177558422089, 1.3588889837265015, 1.1628385782241821, -0.3947821855545044, 0.4192344546318054, -0.864888072013855, -0.4178959131240845, 0.42191505432128906, 0.20447976887226105, 0.02659754827618599, 0.516160249710083, -1.0766923427581787, -0.28239119052886963, -0.3407738208770752, -0.9010331630706787, -0.8133052587509155, -0.4100257158279419, -0.3628689646720886, 1.634696125984192, 0.030201353132724762, -0.5082300901412964, 0.05213227495551109, -0.7011076211929321, -0.17607539892196655, -1.0176360607147217, 0.21418744325637817, -0.09448745101690292, -0.06074037402868271, -0.10649485886096954, 1.611269235610962, -0.9902541041374207, -2.1038036346435547, 0.19047732651233673, 0.23220151662826538, -0.3356906771659851, 0.1239105761051178, 1.7296534776687622, 0.5148452520370483, 1.4626541137695312, 1.3591762781143188, 1.0131679773330688, -0.6867421269416809, -1.271284818649292, 0.7415398955345154, 0.951589822769165, -1.3137513399124146, 0.906389594078064, -0.15888787806034088, -0.594595193862915, 0.6594962477684021, 1.3339672088623047, 0.4096282124519348, -2.0111734867095947, 0.823247492313385, -0.9379900693893433, 0.7111263871192932, 0.674195408821106, 0.7895815372467041, 0.23077495396137238, 0.8242782354354858, -1.25478196144104, -1.1684777736663818, -0.6605416536331177, -0.5956937670707703, 1.9497965574264526, -0.21732933819293976, 0.5302121043205261, -0.17789888381958008, -1.2402727603912354, -0.0989682525396347, 0.7857322096824646, 0.4095902442932129, -0.4712733030319214, 0.846383273601532, -0.6219007968902588, -1.011974573135376, -1.340983271598816, -0.4444728493690491, -1.0569759607315063, -0.9117531180381775, 0.9776332974433899, 0.7818968296051025, 0.40817469358444214, 1.9142203330993652, 0.6141454577445984, 0.2727009654045105, -2.6310064792633057, 0.860392689704895, 0.2946290373802185, -0.06221051141619682, 0.8991873264312744, 0.30137377977371216, 1.1553038358688354, 0.01280679740011692, 0.6561104655265808, -2.3044135570526123, 2.181018114089966, -0.15346750617027283, 0.6553074717521667, 0.0032596616074442863, -0.27264028787612915, 1.1033737659454346, 0.5536857843399048, 0.5690668821334839, -1.1548010110855103, 0.7287226319313049, -0.5912565588951111, 1.0799063444137573, 0.8754236102104187, -0.9231469631195068, 0.07028963416814804, 1.4206382036209106, 0.49470263719558716, -0.445539653301239, -0.9617887139320374, -0.8775167465209961, 0.9935832023620605, 1.6755597591400146, -0.005756494123488665, 0.007774148136377335, 0.8392243385314941, 0.7151708006858826, -1.3403120040893555, 0.09195765852928162, -0.6219867467880249, -0.6823548078536987, 1.682300090789795, 2.044379472732544, -0.10572593659162521, -0.1983351707458496, -0.7263320684432983, -1.1910728216171265, 0.7675245404243469, 0.014689318835735321, 0.03898265212774277, 0.7344375252723694, -0.7439320087432861, 1.1730289459228516, 0.6963984370231628, 0.9090407490730286, 0.10737001150846481, 0.32126641273498535, 0.36398619413375854, -0.2736140489578247, -1.1998987197875977, -0.3143724203109741, -1.0939064025878906, -2.588582992553711, 0.43399250507354736, -0.303091824054718, -1.4603170156478882, 0.10172170400619507, -1.0450776815414429, 0.8031487464904785, -0.6307685375213623, -1.1356494426727295, -1.5033873319625854, 0.298318088054657, -0.15990206599235535, 0.8972222208976746, -1.6312602758407593, -0.11033255606889725, 1.230252981185913, 0.9268916249275208, -0.5584478974342346, 0.9991576671600342, 0.2788274884223938, 0.9507197737693787, 0.8699358701705933, -0.39103221893310547, 0.5884324312210083, 0.11214406788349152, -1.3709006309509277, 0.4598260521888733, 1.241441011428833, 0.2759644389152527, 1.449067234992981, -0.4980827569961548, 0.08352800458669662, 0.5157851576805115, -0.5712826251983643, -0.49084991216659546, -0.5244841575622559, 0.6852787137031555, 0.08257605135440826, -0.9779956936836243, -0.046648651361465454, -0.18767955899238586, -0.2569150924682617, 0.27806389331817627, -1.5135984420776367, -0.2541583180427551, -0.41037172079086304, -0.5188947319984436, -1.270200252532959, 0.024831868708133698, 1.3796465396881104, -0.8682565689086914, -0.2622067332267761, 0.457231342792511, 0.34138262271881104, 0.5384554862976074, 0.5743781328201294, -0.7598579525947571, -0.2428322583436966, -0.33513176441192627, -0.37896519899368286, 0.2517370581626892, 1.2217334508895874, -0.1141987144947052, -1.0002782344818115, 0.6921665072441101, -0.3877408504486084, 0.1196732372045517, 1.9540255069732666, 0.03443248197436333, -0.8069254159927368, 0.39141547679901123, -0.7181993722915649, 1.826141119003296, 1.6785330772399902, 1.3220466375350952, -0.06197914108633995, -0.8965286612510681, 0.6202967762947083, -0.25159791111946106, -0.30364012718200684, 0.9810960292816162, 0.35792702436447144, -0.18700000643730164, -1.4761275053024292, 0.6214340925216675, 1.3644373416900635, -0.8578883409500122, -0.7387545108795166, 0.027151301503181458, -0.9183796048164368, 1.2027772665023804, 0.5725560784339905, 0.28220295906066895, 0.19703812897205353, 1.5651262998580933, 0.7416849136352539, -0.43306148052215576, 0.527803361415863, 0.48598599433898926, -0.1473475843667984, -2.0891551971435547, -1.0089093446731567, 0.27257561683654785, -0.3974379301071167, -1.5217547416687012, 1.3176524639129639, -1.1307114362716675, -0.9755622744560242, 0.5164904594421387, 0.13431693613529205, 1.348838210105896, 0.3292583227157593, 1.6717383861541748, 2.111274242401123, 0.8790712356567383, 0.30659765005111694, 1.1968731880187988, -0.0945519208908081, -0.38430219888687134, 1.7716636657714844, -0.41701316833496094, 0.5583886504173279, 1.0155587196350098, -0.41906410455703735, -1.1165043115615845, -0.838422954082489, -1.1927847862243652, -0.669414222240448, 1.171189785003662, 0.1057385578751564, -1.1302952766418457, 0.27121543884277344, 1.581717610359192, 0.1459498107433319, -0.21420294046401978, 0.6802933812141418, 0.43935418128967285, -0.6806691884994507, -0.03797077760100365, -0.8826404809951782, 0.47906172275543213, -0.13304796814918518, -0.3566893935203552, 0.2925299406051636, 0.6078246831893921, 1.298126220703125, 0.022971302270889282, 0.09774631261825562, 1.2442632913589478, -1.39897620677948, 1.458695650100708, -0.6261320114135742, 0.30221670866012573, -2.4461424350738525, 1.4162466526031494, -0.835785448551178, 1.9527004957199097, -2.5882790088653564, 0.47159409523010254, -0.5920558571815491, -0.5034836530685425, 0.32210588455200195, -0.32403814792633057, 0.13754147291183472, -0.13402390480041504, -1.0137580633163452, -0.08791182190179825, -0.751281201839447, 0.6190537810325623, 1.1938821077346802, 1.4087759256362915, -1.0734694004058838, -0.29933953285217285, -1.7334556579589844, -0.2012789398431778, -0.6613636016845703, 0.3159003257751465, -1.948358416557312, -0.17092682421207428, -1.9973944425582886, -2.498314619064331, -1.3312515020370483, -0.8273010849952698, 1.0668591260910034, 0.17372743785381317, -0.9564633965492249, 1.2211781740188599, -0.3899431824684143, -1.7424389123916626, 1.111642837524414, -2.1939754486083984 ]
https://github.com/huggingface/datasets/issues/3582
conll 2003 dataset source url is no longer valid
@lhoestq Thank you very much for your answer! It works this way, but for my research I need datasets==1.6.3 or closest to it because otherwise the other package would not work as it is built on this version. Do you have any other suggestion? I would really appreciate it. Maybe which version of the datasets is without hard-coded link but closest to 1.6.3
## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
1,003
63
conll 2003 dataset source url is no longer valid ## Describe the bug Loading `conll2003` dataset fails because it was removed (just yesterday 1/14/2022) from the location it is looking for. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset("conll2003") ``` ## Expected results The dataset should load. ## Actual results It is looking for the dataset at `https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt` but it was removed from there yesterday (see [commit](https://github.com/davidsbatista/NER-datasets/commit/9d8f45cc7331569af8eb3422bbe1c97cbebd5690) that removed the file and related [issue](https://github.com/davidsbatista/NER-datasets/issues/8)). - We should replace this with an alternate valid location. - this is being referenced in the huggingface course chapter 7 [colab notebook](https://colab.research.google.com/github/huggingface/notebooks/blob/master/course/chapter7/section2_pt.ipynb), which is also broken. ```python FileNotFoundError Traceback (most recent call last) <ipython-input-4-27c956bec93c> in <module>() 1 from datasets import load_dataset 2 ----> 3 raw_datasets = load_dataset("conll2003") 11 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, local_files_only, use_etag, max_retries, use_auth_token, ignore_url_params) 610 ) 611 elif response is not None and response.status_code == 404: --> 612 raise FileNotFoundError(f"Couldn't find file at {url}") 613 _raise_if_offline_mode_is_enabled(f"Tried to reach {url}") 614 if head_error is not None: FileNotFoundError: Couldn't find file at https://github.com/davidsbatista/NER-datasets/raw/master/CONLL2003/train.txt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: @lhoestq Thank you very much for your answer! It works this way, but for my research I need datasets==1.6.3 or closest to it because otherwise the other package would not work as it is built on this version. Do you have any other suggestion? I would really appreciate it. Maybe which version of the datasets is without hard-coded link but closest to 1.6.3
[ -1.1686668395996094, -0.8808467388153076, -0.679608166217804, 1.4830045700073242, -0.0591169111430645, -1.27288818359375, 0.1321658194065094, -0.9903767108917236, 1.648022174835205, -0.767906129360199, 0.26352041959762573, -1.715537667274475, -0.022346124053001404, -0.5682376027107239, -0.7243339419364929, -0.7927811741828918, -0.33354294300079346, -0.8473801612854004, 1.0679347515106201, 2.485607147216797, 1.2111992835998535, -1.3332862854003906, 2.8446993827819824, 0.624511182308197, -0.2896413803100586, -1.0097808837890625, 0.5111224055290222, -0.034893639385700226, -1.2252280712127686, -0.4833676815032959, -0.937717616558075, 0.0007731476798653603, -0.5802669525146484, -0.4587193727493286, 0.059532247483730316, 0.44120097160339355, -0.2787652015686035, -0.3433995842933655, -0.5685322880744934, -0.7307277321815491, 0.448242723941803, -0.2722827196121216, 0.9589879512786865, -0.22073709964752197, 1.8408395051956177, -0.6061239242553711, 0.3615238666534424, 0.6668446660041809, 1.3296666145324707, 0.19368018209934235, 0.054183900356292725, 0.3043662905693054, 0.32152485847473145, 0.005583661608397961, 0.5193424820899963, 1.2637776136398315, 0.655110239982605, 0.5019310712814331, 0.702610433101654, -2.1705336570739746, 1.3415006399154663, -0.8968276977539062, 0.33914780616760254, 1.318375587463379, -0.9019668698310852, 0.374802827835083, -1.800136685371399, -0.07629465311765671, 0.5170759558677673, -2.3162825107574463, 0.24545110762119293, -1.3485925197601318, -0.4635273814201355, 0.9206783175468445, 0.2670806050300598, -1.295377254486084, 0.22360047698020935, -0.5355729460716248, 1.0516510009765625, 0.4717239737510681, 1.150144338607788, -1.670084834098816, -0.03342823684215546, -0.19837027788162231, 0.16654826700687408, -1.2423573732376099, -1.6602448225021362, 0.605090856552124, 0.6266081929206848, 0.7166274189949036, -0.1957964301109314, 1.0919326543807983, -1.0341647863388062, 0.7601473927497864, -0.9452834725379944, -1.7236335277557373, -1.4018124341964722, -2.302830219268799, -2.3573074340820312, 0.818815290927887, -0.5014984011650085, -0.4841914772987366, 2.078993558883667, -0.9991484880447388, -1.794388771057129, 1.0536959171295166, 0.3504717946052551, 0.02655792236328125, 2.408986806869507, 0.2412254363298416, -0.7899595499038696, 0.4405527114868164, -0.6604747176170349, 0.8531437516212463, -0.29327166080474854, 1.3362692594528198, 0.562805712223053, -1.0467545986175537, 1.5916748046875, -0.3855072259902954, 0.5777088403701782, -0.6553490161895752, -0.5014776587486267, -0.8099780678749084, 0.24466754496097565, 1.8935753107070923, -0.34775102138519287, 1.6064422130584717, -0.32767289876937866, -1.5879474878311157, -1.5293772220611572, 0.8353898525238037, 0.46750760078430176, -0.8338280320167542, 0.12084735929965973, -0.5156838893890381, 0.0868353545665741, 0.04462331905961037, 1.1986825466156006, 1.2202435731887817, 0.6031043529510498, -0.33016473054885864, -0.8590500354766846, 0.2006077617406845, -0.11892463266849518, -0.6611979007720947, -1.7820885181427002, -0.34378182888031006, 0.27091318368911743, 0.6180015802383423, -1.2157562971115112, 1.7798177003860474, 0.863928496837616, 1.953970193862915, 0.9857414960861206, -0.3650028109550476, 1.4671952724456787, -0.0317942276597023, 1.8325759172439575, -0.4889999032020569, 0.6143103241920471, -0.3161545395851135, -1.1970036029815674, 0.8272538185119629, -0.3828015923500061, -1.9967982769012451, -0.7893316745758057, -0.7706005573272705, -0.15189361572265625, -0.7930447459220886, 0.8366764187812805, -0.2921159267425537, -1.4595438241958618, 0.18674543499946594, -0.6477214694023132, 0.2080317735671997, -1.3139517307281494, 0.2058544009923935, 0.7215930223464966, -0.6962456107139587, -0.04173053056001663, -0.20055066049098969, -1.3431503772735596, -0.48466336727142334, 0.32781869173049927, 1.8360533714294434, -0.5933270454406738, 0.9925143718719482, 1.0314090251922607, -0.7113805413246155, 0.06977688521146774, 0.26911211013793945, -0.3199809193611145, 0.8499702215194702, -1.1249669790267944, -0.3727048635482788, 1.1777541637420654, -0.20563414692878723, -0.580890417098999, 1.3968441486358643, 0.8100336194038391, -1.024389386177063, -0.20565690100193024, -0.1573503315448761, -0.8618794679641724, -0.025410763919353485, -1.551002860069275, -0.2072845846414566, 0.3854941129684448, -1.448075532913208, -0.3891867995262146, -0.2422715276479721, 1.319846749305725, -0.18119847774505615, 1.445334792137146, -0.3115863800048828, -0.20939595997333527, -0.36130720376968384, -0.43937814235687256, 0.10006630420684814, -0.17169319093227386, -0.6479372978210449, 0.20610500872135162, -0.7894628047943115, 0.3573123812675476, 1.496675729751587, 0.3694695830345154, 0.03467633202672005, 0.5498250722885132, 1.1522787809371948, 0.3581118583679199, -0.10517175495624542, -0.8715061545372009, -1.5878210067749023, 1.9647712707519531, -1.4093000888824463, 1.8742218017578125, 0.8278579711914062, -0.05966345593333244, -1.7601507902145386, -1.8214137554168701, 1.382157564163208, 1.1784361600875854, 2.4015870094299316, 0.4620731472969055, 0.41995543241500854, -0.7321569919586182, -0.7209439873695374, 0.2951163053512573, -1.0185281038284302, -0.6574140191078186, 0.15520301461219788, 2.37884259223938, 1.8265928030014038, -0.5342270135879517, -0.30537301301956177, -0.9672849774360657, 1.2673845291137695, -0.2947641611099243, 0.16971749067306519, 2.0195693969726562, -0.28444403409957886, -1.0763370990753174, 1.3480662107467651, -2.3554089069366455, 0.2750856876373291, 2.050682544708252, 0.29390013217926025, 0.08124517649412155, -1.3969500064849854, -0.6254302263259888, -0.2836308479309082, -0.47749006748199463, -1.2791959047317505, 0.5696360468864441, -0.23492752015590668, -0.8311476111412048, -1.4677760601043701, 0.08559492975473404, -1.1893582344055176, -1.7476578950881958, 0.3606001138687134, 1.8885691165924072, 2.0268146991729736, -0.7552947998046875, 1.410568118095398, -0.2897390127182007, 0.17500337958335876, 1.2348467111587524, 1.301345944404602, 3.1585049629211426, 1.8322800397872925, -1.2905292510986328, 0.7213892936706543, -0.21427828073501587, -0.534458339214325, 1.1775116920471191, -1.1331098079681396, 1.166936993598938, -0.22175054252147675, -1.288365364074707, -1.2690266370773315, 0.9983938932418823, 0.4830336570739746, 0.034648410975933075, -0.5490423440933228, 1.2383569478988647, 0.12092061340808868, 1.2776024341583252, 0.6257438659667969, -0.38948220014572144, 0.5633509755134583, -0.36553531885147095, -0.5106291174888611, 1.6286689043045044, 0.12595365941524506, -1.477684497833252, -2.305637836456299, -0.24105621874332428, -0.8543786406517029, 0.001125948503613472, -0.6577287912368774, -1.0190012454986572, 1.5801103115081787, 0.44161456823349, -1.2027699947357178, -0.2589031457901001, -0.31567907333374023, -0.528537392616272, 2.6123619079589844, -1.3087762594223022, -0.1457463651895523, -0.9776480793952942, -0.5841609835624695, 1.6208480596542358, -1.1633797883987427, -0.24145817756652832, -1.0353761911392212, -0.6541838049888611, -1.3320332765579224, -0.5039081573486328, 0.00011990033090114594, -0.8594071269035339, 0.685570478439331, 0.14281383156776428, -1.1197090148925781, -0.2801774740219116, -0.9176741242408752, 1.02479088306427, -0.18680024147033691, 0.12777075171470642, 1.7872177362442017, 0.4115050435066223, -0.4417215585708618, 0.8121088743209839, 1.190627098083496, 0.6037686467170715, -0.6271883249282837, 0.04448043555021286, -0.7179678678512573, 0.3320985436439514, -1.4416497945785522, 0.2713471055030823, -2.9163405895233154, 0.7086812853813171, -0.18517883121967316, -0.08501018583774567, -0.022865459322929382, -1.3612309694290161, 1.0821107625961304, 2.551133871078491, -1.1725369691848755, 0.4478725790977478, 0.39145416021347046, 1.135772705078125, -1.6334502696990967, 0.2053421288728714, -0.4720582365989685, 2.057263135910034, 0.16896969079971313, 1.2722225189208984, -0.4773860573768616, -2.222947835922241, 0.5898786783218384, -1.2268985509872437, -1.063649296760559, 0.8536592721939087, -0.8985134959220886, 0.20116393268108368, -1.3862398862838745, -0.1941157430410385, -0.9230095148086548, -1.249922513961792, 0.7448279857635498, 0.07541656494140625, 0.40094292163848877, -0.5757009983062744, 0.33409368991851807, -2.1475698947906494, -1.3858201503753662, -0.1374627947807312, -1.0544339418411255, 0.5166497230529785, -0.3965418338775635, 0.5676059126853943, -0.10729193687438965, 0.02592439204454422, 0.28341686725616455, 1.5047370195388794, 3.302642583847046, 0.15237776935100555, 0.30965811014175415, -0.11490565538406372, -0.9834308624267578, 1.4214355945587158, 0.9002029299736023, -0.1850469559431076, -0.5726130604743958, -1.0023311376571655, 1.3219377994537354, 1.9780324697494507, 1.0476354360580444, 0.05461275577545166, -0.8540424704551697, -0.7373093962669373, -0.005695823114365339, 0.22273017466068268, 0.52632737159729, 0.9505758285522461, 0.01834746077656746, 0.12329177558422089, 1.3588889837265015, 1.1628385782241821, -0.3947821855545044, 0.4192344546318054, -0.864888072013855, -0.4178959131240845, 0.42191505432128906, 0.20447976887226105, 0.02659754827618599, 0.516160249710083, -1.0766923427581787, -0.28239119052886963, -0.3407738208770752, -0.9010331630706787, -0.8133052587509155, -0.4100257158279419, -0.3628689646720886, 1.634696125984192, 0.030201353132724762, -0.5082300901412964, 0.05213227495551109, -0.7011076211929321, -0.17607539892196655, -1.0176360607147217, 0.21418744325637817, -0.09448745101690292, -0.06074037402868271, -0.10649485886096954, 1.611269235610962, -0.9902541041374207, -2.1038036346435547, 0.19047732651233673, 0.23220151662826538, -0.3356906771659851, 0.1239105761051178, 1.7296534776687622, 0.5148452520370483, 1.4626541137695312, 1.3591762781143188, 1.0131679773330688, -0.6867421269416809, -1.271284818649292, 0.7415398955345154, 0.951589822769165, -1.3137513399124146, 0.906389594078064, -0.15888787806034088, -0.594595193862915, 0.6594962477684021, 1.3339672088623047, 0.4096282124519348, -2.0111734867095947, 0.823247492313385, -0.9379900693893433, 0.7111263871192932, 0.674195408821106, 0.7895815372467041, 0.23077495396137238, 0.8242782354354858, -1.25478196144104, -1.1684777736663818, -0.6605416536331177, -0.5956937670707703, 1.9497965574264526, -0.21732933819293976, 0.5302121043205261, -0.17789888381958008, -1.2402727603912354, -0.0989682525396347, 0.7857322096824646, 0.4095902442932129, -0.4712733030319214, 0.846383273601532, -0.6219007968902588, -1.011974573135376, -1.340983271598816, -0.4444728493690491, -1.0569759607315063, -0.9117531180381775, 0.9776332974433899, 0.7818968296051025, 0.40817469358444214, 1.9142203330993652, 0.6141454577445984, 0.2727009654045105, -2.6310064792633057, 0.860392689704895, 0.2946290373802185, -0.06221051141619682, 0.8991873264312744, 0.30137377977371216, 1.1553038358688354, 0.01280679740011692, 0.6561104655265808, -2.3044135570526123, 2.181018114089966, -0.15346750617027283, 0.6553074717521667, 0.0032596616074442863, -0.27264028787612915, 1.1033737659454346, 0.5536857843399048, 0.5690668821334839, -1.1548010110855103, 0.7287226319313049, -0.5912565588951111, 1.0799063444137573, 0.8754236102104187, -0.9231469631195068, 0.07028963416814804, 1.4206382036209106, 0.49470263719558716, -0.445539653301239, -0.9617887139320374, -0.8775167465209961, 0.9935832023620605, 1.6755597591400146, -0.005756494123488665, 0.007774148136377335, 0.8392243385314941, 0.7151708006858826, -1.3403120040893555, 0.09195765852928162, -0.6219867467880249, -0.6823548078536987, 1.682300090789795, 2.044379472732544, -0.10572593659162521, -0.1983351707458496, -0.7263320684432983, -1.1910728216171265, 0.7675245404243469, 0.014689318835735321, 0.03898265212774277, 0.7344375252723694, -0.7439320087432861, 1.1730289459228516, 0.6963984370231628, 0.9090407490730286, 0.10737001150846481, 0.32126641273498535, 0.36398619413375854, -0.2736140489578247, -1.1998987197875977, -0.3143724203109741, -1.0939064025878906, -2.588582992553711, 0.43399250507354736, -0.303091824054718, -1.4603170156478882, 0.10172170400619507, -1.0450776815414429, 0.8031487464904785, -0.6307685375213623, -1.1356494426727295, -1.5033873319625854, 0.298318088054657, -0.15990206599235535, 0.8972222208976746, -1.6312602758407593, -0.11033255606889725, 1.230252981185913, 0.9268916249275208, -0.5584478974342346, 0.9991576671600342, 0.2788274884223938, 0.9507197737693787, 0.8699358701705933, -0.39103221893310547, 0.5884324312210083, 0.11214406788349152, -1.3709006309509277, 0.4598260521888733, 1.241441011428833, 0.2759644389152527, 1.449067234992981, -0.4980827569961548, 0.08352800458669662, 0.5157851576805115, -0.5712826251983643, -0.49084991216659546, -0.5244841575622559, 0.6852787137031555, 0.08257605135440826, -0.9779956936836243, -0.046648651361465454, -0.18767955899238586, -0.2569150924682617, 0.27806389331817627, -1.5135984420776367, -0.2541583180427551, -0.41037172079086304, -0.5188947319984436, -1.270200252532959, 0.024831868708133698, 1.3796465396881104, -0.8682565689086914, -0.2622067332267761, 0.457231342792511, 0.34138262271881104, 0.5384554862976074, 0.5743781328201294, -0.7598579525947571, -0.2428322583436966, -0.33513176441192627, -0.37896519899368286, 0.2517370581626892, 1.2217334508895874, -0.1141987144947052, -1.0002782344818115, 0.6921665072441101, -0.3877408504486084, 0.1196732372045517, 1.9540255069732666, 0.03443248197436333, -0.8069254159927368, 0.39141547679901123, -0.7181993722915649, 1.826141119003296, 1.6785330772399902, 1.3220466375350952, -0.06197914108633995, -0.8965286612510681, 0.6202967762947083, -0.25159791111946106, -0.30364012718200684, 0.9810960292816162, 0.35792702436447144, -0.18700000643730164, -1.4761275053024292, 0.6214340925216675, 1.3644373416900635, -0.8578883409500122, -0.7387545108795166, 0.027151301503181458, -0.9183796048164368, 1.2027772665023804, 0.5725560784339905, 0.28220295906066895, 0.19703812897205353, 1.5651262998580933, 0.7416849136352539, -0.43306148052215576, 0.527803361415863, 0.48598599433898926, -0.1473475843667984, -2.0891551971435547, -1.0089093446731567, 0.27257561683654785, -0.3974379301071167, -1.5217547416687012, 1.3176524639129639, -1.1307114362716675, -0.9755622744560242, 0.5164904594421387, 0.13431693613529205, 1.348838210105896, 0.3292583227157593, 1.6717383861541748, 2.111274242401123, 0.8790712356567383, 0.30659765005111694, 1.1968731880187988, -0.0945519208908081, -0.38430219888687134, 1.7716636657714844, -0.41701316833496094, 0.5583886504173279, 1.0155587196350098, -0.41906410455703735, -1.1165043115615845, -0.838422954082489, -1.1927847862243652, -0.669414222240448, 1.171189785003662, 0.1057385578751564, -1.1302952766418457, 0.27121543884277344, 1.581717610359192, 0.1459498107433319, -0.21420294046401978, 0.6802933812141418, 0.43935418128967285, -0.6806691884994507, -0.03797077760100365, -0.8826404809951782, 0.47906172275543213, -0.13304796814918518, -0.3566893935203552, 0.2925299406051636, 0.6078246831893921, 1.298126220703125, 0.022971302270889282, 0.09774631261825562, 1.2442632913589478, -1.39897620677948, 1.458695650100708, -0.6261320114135742, 0.30221670866012573, -2.4461424350738525, 1.4162466526031494, -0.835785448551178, 1.9527004957199097, -2.5882790088653564, 0.47159409523010254, -0.5920558571815491, -0.5034836530685425, 0.32210588455200195, -0.32403814792633057, 0.13754147291183472, -0.13402390480041504, -1.0137580633163452, -0.08791182190179825, -0.751281201839447, 0.6190537810325623, 1.1938821077346802, 1.4087759256362915, -1.0734694004058838, -0.29933953285217285, -1.7334556579589844, -0.2012789398431778, -0.6613636016845703, 0.3159003257751465, -1.948358416557312, -0.17092682421207428, -1.9973944425582886, -2.498314619064331, -1.3312515020370483, -0.8273010849952698, 1.0668591260910034, 0.17372743785381317, -0.9564633965492249, 1.2211781740188599, -0.3899431824684143, -1.7424389123916626, 1.111642837524414, -2.1939754486083984 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
+1, here's the error I got: ``` >>> from datasets import load_dataset >>> >>> load_dataset("wiki_bio") Downloading: 7.58kB [00:00, 4.42MB/s] Downloading: 2.71kB [00:00, 1.30MB/s] Using custom data configuration default Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to /home/jxm3/.cache/huggingface/datasets/wiki_bio/default/1.1.0/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/load.py", line 1694, in load_dataset builder_instance.download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 595, in download_and_prepare self._download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 662, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jxm3/.cache/huggingface/modules/datasets_modules/datasets/wiki_bio/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9/wiki_bio.py", line 125, in _split_generators data_dir = dl_manager.download_and_extract(my_urls) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 308, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 196, in download downloaded_path_or_paths = map_nested( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 251, in map_nested return function(data_struct) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://drive.google.com/uc?export=download&id=1L7aoUXzHPzyzQ0ns4ApBbYepsjFOtXil >>> ```
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
1,005
154
Bug in wiki bio load wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a +1, here's the error I got: ``` >>> from datasets import load_dataset >>> >>> load_dataset("wiki_bio") Downloading: 7.58kB [00:00, 4.42MB/s] Downloading: 2.71kB [00:00, 1.30MB/s] Using custom data configuration default Downloading and preparing dataset wiki_bio/default (download: 318.53 MiB, generated: 736.94 MiB, post-processed: Unknown size, total: 1.03 GiB) to /home/jxm3/.cache/huggingface/datasets/wiki_bio/default/1.1.0/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/load.py", line 1694, in load_dataset builder_instance.download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 595, in download_and_prepare self._download_and_prepare( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/builder.py", line 662, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/jxm3/.cache/huggingface/modules/datasets_modules/datasets/wiki_bio/5293ce565954ba965dada626f1e79684e98172d950371d266bf3caaf87e911c9/wiki_bio.py", line 125, in _split_generators data_dir = dl_manager.download_and_extract(my_urls) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 308, in download_and_extract return self.extract(self.download(url_or_urls)) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 196, in download downloaded_path_or_paths = map_nested( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 251, in map_nested return function(data_struct) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/download_manager.py", line 217, in _download return cached_path(url_or_filename, download_config=download_config) File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 298, in cached_path output_path = get_from_cache( File "/home/jxm3/.conda/envs/torch/lib/python3.9/site-packages/datasets/utils/file_utils.py", line 612, in get_from_cache raise FileNotFoundError(f"Couldn't find file at {url}") FileNotFoundError: Couldn't find file at https://drive.google.com/uc?export=download&id=1L7aoUXzHPzyzQ0ns4ApBbYepsjFOtXil >>> ```
[ -1.196311354637146, -0.8226219415664673, -0.7647135257720947, 1.3231241703033447, -0.08894579857587814, -1.2183077335357666, 0.16121383011341095, -1.07560396194458, 1.5782438516616821, -0.6781178712844849, 0.2621592581272125, -1.6644854545593262, -0.05540633574128151, -0.559384822845459, -0.7108911275863647, -0.8605942726135254, -0.37762171030044556, -0.9163491725921631, 1.022318720817566, 2.5957889556884766, 1.2553468942642212, -1.376645565032959, 2.7238457202911377, 0.6426879167556763, -0.3182886838912964, -0.9752600193023682, 0.48428985476493835, 0.023634403944015503, -1.3135112524032593, -0.3465862572193146, -0.9359636306762695, -0.02127508446574211, -0.6110388040542603, -0.5274695158004761, 0.07282158732414246, 0.41584333777427673, -0.2464936524629593, -0.33563679456710815, -0.4759746789932251, -0.6879533529281616, 0.5604602098464966, -0.37705180048942566, 0.9274702072143555, -0.20608197152614594, 1.7068296670913696, -0.5745726823806763, 0.41210314631462097, 0.7048119306564331, 1.2476969957351685, 0.17370431125164032, 0.028361596167087555, 0.33834922313690186, 0.3069920539855957, -0.07098829746246338, 0.3909512758255005, 1.2802014350891113, 0.6187870502471924, 0.47722578048706055, 0.7185465097427368, -2.170944929122925, 1.3371115922927856, -0.8474085330963135, 0.20324097573757172, 1.339883804321289, -0.977428674697876, 0.3986729681491852, -1.8977230787277222, -0.07811190187931061, 0.5264647006988525, -2.328731060028076, 0.2700049579143524, -1.2991620302200317, -0.5736243724822998, 0.9186805486679077, 0.3004295825958252, -1.2677189111709595, 0.17351134121418, -0.5185387134552002, 1.077886700630188, 0.4533376693725586, 1.1822963953018188, -1.784844994544983, -0.03453598916530609, -0.19560152292251587, 0.18930846452713013, -1.2375165224075317, -1.6208337545394897, 0.5918947458267212, 0.60882568359375, 0.6800477504730225, -0.04462558403611183, 0.9378566741943359, -1.0285300016403198, 0.8303253650665283, -0.9856036901473999, -1.6407685279846191, -1.3655881881713867, -2.3147428035736084, -2.271857261657715, 0.7488384246826172, -0.4811598062515259, -0.45490139722824097, 2.0250561237335205, -1.0407615900039673, -1.7589755058288574, 1.0725229978561401, 0.3256573975086212, -0.07841252535581589, 2.402575969696045, 0.2923889756202698, -0.8381446599960327, 0.5679231882095337, -0.727444052696228, 0.8854981660842896, -0.25004321336746216, 1.3298090696334839, 0.5485773086547852, -0.948559045791626, 1.6054953336715698, -0.46068376302719116, 0.5329066514968872, -0.7060705423355103, -0.4965721070766449, -0.7836093902587891, 0.25612369179725647, 1.905701756477356, -0.3194531500339508, 1.5572319030761719, -0.2874307334423065, -1.658616542816162, -1.5144400596618652, 0.8168097734451294, 0.608493447303772, -0.8639315366744995, 0.1755058467388153, -0.4825730621814728, 0.12352168560028076, 0.08823823183774948, 1.0673574209213257, 1.350856900215149, 0.721054196357727, -0.25862234830856323, -0.978704571723938, 0.20213474333286285, -0.1327090859413147, -0.645403265953064, -1.8876183032989502, -0.29180434346199036, 0.1361047625541687, 0.6957359313964844, -1.2751967906951904, 1.7121630907058716, 0.8490729331970215, 2.0106735229492188, 1.017391324043274, -0.42537006735801697, 1.5717360973358154, -0.008977856487035751, 1.858884572982788, -0.4760506749153137, 0.6831810474395752, -0.3500513732433319, -1.1232078075408936, 0.8465316295623779, -0.31919360160827637, -1.9858176708221436, -0.719301700592041, -0.7400166988372803, -0.23062214255332947, -0.8691554069519043, 0.9116356372833252, -0.2549794912338257, -1.4618215560913086, 0.3042324185371399, -0.7069427967071533, 0.14445795118808746, -1.2934752702713013, 0.21717409789562225, 0.6992706060409546, -0.6667588949203491, -0.00036158040165901184, -0.257246732711792, -1.3358325958251953, -0.45339202880859375, 0.24011415243148804, 1.8844494819641113, -0.6450697183609009, 0.9311211109161377, 1.0163499116897583, -0.6158778667449951, 0.07072227448225021, 0.31466206908226013, -0.28448858857154846, 0.854328989982605, -1.1790246963500977, -0.32603511214256287, 1.0762603282928467, -0.14093607664108276, -0.556349515914917, 1.3303635120391846, 0.7832406759262085, -1.0224498510360718, -0.24514541029930115, -0.13528645038604736, -0.7810399532318115, -0.008201709017157555, -1.640966534614563, -0.14492003619670868, 0.38392961025238037, -1.4444483518600464, -0.44097232818603516, -0.23496189713478088, 1.351563572883606, -0.17605286836624146, 1.4572311639785767, -0.28515389561653137, -0.07624510675668716, -0.3971445858478546, -0.42222896218299866, 0.1739729940891266, -0.2033904492855072, -0.5905815362930298, 0.20608651638031006, -0.8522803783416748, 0.22068454325199127, 1.530413269996643, 0.3306148052215576, 0.09509090334177017, 0.432174414396286, 1.1488285064697266, 0.3916008472442627, -0.04076646268367767, -0.7759292125701904, -1.5194964408874512, 2.0801608562469482, -1.5310405492782593, 1.9126591682434082, 0.862014651298523, -0.06446810811758041, -1.795568585395813, -1.8675248622894287, 1.3277512788772583, 1.1597623825073242, 2.4702301025390625, 0.5819911956787109, 0.4573148488998413, -0.699907660484314, -0.7005577087402344, 0.37981680035591125, -0.9910038709640503, -0.7691053152084351, 0.20733733475208282, 2.405853509902954, 1.6737279891967773, -0.5243785381317139, -0.30263763666152954, -0.877373218536377, 1.2902896404266357, -0.1399012953042984, 0.16222457587718964, 2.0438215732574463, -0.27059969305992126, -1.1497324705123901, 1.3919847011566162, -2.294797658920288, 0.20801116526126862, 2.0056848526000977, 0.28596916794776917, 0.058499157428741455, -1.39024019241333, -0.6766420602798462, -0.20723602175712585, -0.46484723687171936, -1.2583011388778687, 0.5915733575820923, -0.3289541006088257, -0.9382748603820801, -1.5285029411315918, 0.07848988473415375, -1.1449620723724365, -1.6989269256591797, 0.32669952511787415, 1.7712786197662354, 2.110008716583252, -0.8461906909942627, 1.418182134628296, -0.31708040833473206, 0.08563739061355591, 1.1325856447219849, 1.2680213451385498, 3.1511480808258057, 1.8181110620498657, -1.223459005355835, 0.6978285312652588, -0.22240763902664185, -0.4752415418624878, 1.067938208580017, -1.1164911985397339, 1.1666995286941528, -0.21223263442516327, -1.2965879440307617, -1.1951329708099365, 0.9855970144271851, 0.4738244414329529, 0.03365282714366913, -0.5429072380065918, 1.2664611339569092, 0.12948688864707947, 1.3224140405654907, 0.58233642578125, -0.25102150440216064, 0.5987001657485962, -0.417023628950119, -0.5849447250366211, 1.6483023166656494, 0.1854020655155182, -1.480344533920288, -2.3947207927703857, -0.24821582436561584, -0.8544023036956787, -0.005379669833928347, -0.6344085931777954, -1.0761241912841797, 1.6509917974472046, 0.43750157952308655, -1.227562665939331, -0.2840614914894104, -0.37944722175598145, -0.5118328332901001, 2.5705392360687256, -1.4186605215072632, -0.1123516634106636, -0.9025980234146118, -0.520398736000061, 1.589152455329895, -1.1505199670791626, -0.21498635411262512, -1.0334969758987427, -0.5566720962524414, -1.300402283668518, -0.5081639289855957, -0.08643531054258347, -0.8775153160095215, 0.6830470561981201, 0.183192178606987, -1.178073763847351, -0.223769411444664, -0.8959051370620728, 0.8822062015533447, -0.13427993655204773, 0.25201427936553955, 1.8075562715530396, 0.3969328701496124, -0.3726920187473297, 0.7270083427429199, 1.1615902185440063, 0.5887517929077148, -0.6735013723373413, 0.04814106225967407, -0.6915935277938843, 0.3103522062301636, -1.3044092655181885, 0.28844404220581055, -2.9080662727355957, 0.7767302989959717, -0.036199986934661865, -0.07209233939647675, -0.016759058460593224, -1.3395429849624634, 1.1989318132400513, 2.643754243850708, -1.1308023929595947, 0.5614957809448242, 0.39553865790367126, 1.1603318452835083, -1.5494437217712402, 0.13609054684638977, -0.4607641100883484, 2.167703628540039, 0.14909206330776215, 1.2793725728988647, -0.5183186531066895, -2.3130414485931396, 0.6088718175888062, -1.2299050092697144, -1.14447021484375, 0.7847379446029663, -0.9101271629333496, 0.10672370344400406, -1.3687059879302979, -0.18558748066425323, -0.955672025680542, -1.217750072479248, 0.7027665376663208, 0.10901453346014023, 0.5259350538253784, -0.5738967657089233, 0.37038302421569824, -2.196194887161255, -1.403725266456604, -0.20073233544826508, -0.9795846939086914, 0.5409047603607178, -0.3212820589542389, 0.6533424854278564, -0.11089878529310226, 0.05565347522497177, 0.3331714868545532, 1.387040138244629, 3.283891201019287, 0.11655086278915405, 0.27687856554985046, -0.14947092533111572, -0.9876363277435303, 1.4599344730377197, 0.9375523328781128, -0.12898209691047668, -0.6986230611801147, -0.9824495315551758, 1.2373642921447754, 2.0288946628570557, 1.0609591007232666, 0.05112298205494881, -0.8845257759094238, -0.7066278457641602, 0.05626697838306427, 0.2164650708436966, 0.515274167060852, 1.0123969316482544, -0.027863292023539543, 0.07535111159086227, 1.4322539567947388, 1.1267584562301636, -0.36478355526924133, 0.50928795337677, -0.9313036203384399, -0.4469603896141052, 0.44855523109436035, 0.23604105412960052, 0.03789015859365463, 0.41883277893066406, -1.0794554948806763, -0.22831684350967407, -0.2456306517124176, -0.9403926134109497, -0.8224737644195557, -0.3524172902107239, -0.3595356047153473, 1.6267690658569336, 0.016449520364403725, -0.376535028219223, 0.04081496223807335, -0.7269635200500488, -0.16347387433052063, -1.062464714050293, 0.2447528839111328, -0.16214077174663544, -0.0507056787610054, -0.08181488513946533, 1.7359498739242554, -0.8751614093780518, -2.1077253818511963, 0.16876475512981415, 0.26169174909591675, -0.45507657527923584, 0.1749209314584732, 1.7292732000350952, 0.6101993322372437, 1.417415738105774, 1.2965706586837769, 1.0259177684783936, -0.6377085447311401, -1.2229185104370117, 0.6734116077423096, 0.8835399150848389, -1.3289458751678467, 0.8945252895355225, -0.1538815200328827, -0.5228426456451416, 0.6374799013137817, 1.323993444442749, 0.43425288796424866, -2.104386806488037, 0.8409395217895508, -0.9012027978897095, 0.7283164262771606, 0.6905354261398315, 0.7911173105239868, 0.18485276401042938, 0.9033358097076416, -1.2758373022079468, -1.0710320472717285, -0.6734614372253418, -0.5868645906448364, 1.8770076036453247, -0.23749569058418274, 0.472263365983963, -0.19769901037216187, -1.2183107137680054, -0.07369580864906311, 0.7292032241821289, 0.3988352119922638, -0.33149054646492004, 0.7953180074691772, -0.6350027322769165, -1.090171217918396, -1.342839002609253, -0.49679461121559143, -0.909737229347229, -0.8806169033050537, 0.9410746097564697, 0.7362567186355591, 0.43410536646842957, 1.9671605825424194, 0.6041266918182373, 0.180131733417511, -2.6744046211242676, 0.8511819839477539, 0.33446916937828064, -0.05186625197529793, 1.0653352737426758, 0.31759414076805115, 1.158876895904541, -0.06067093461751938, 0.5459716320037842, -2.357006311416626, 2.1945114135742188, -0.22904042899608612, 0.73223876953125, -0.028745600953698158, -0.09067287296056747, 0.9828952550888062, 0.5505791902542114, 0.5929555892944336, -1.1543936729431152, 0.7384699583053589, -0.5928477048873901, 1.140395998954773, 0.9178547859191895, -0.8477213382720947, 0.1590229570865631, 1.2590240240097046, 0.38987109065055847, -0.4832179546356201, -0.9134052991867065, -0.8226572275161743, 0.8718974590301514, 1.7991223335266113, -0.15350157022476196, 0.13481459021568298, 0.7865822315216064, 0.6616675853729248, -1.4002034664154053, -0.027011767029762268, -0.6853595972061157, -0.7885856628417969, 1.7524758577346802, 2.055725336074829, -0.1044524759054184, -0.20299163460731506, -0.7307479381561279, -1.3400310277938843, 0.8735679388046265, 0.03106040507555008, 0.16680209338665009, 0.6528244018554688, -0.6903208494186401, 1.1800358295440674, 0.6805727481842041, 0.9648610353469849, 0.08705202490091324, 0.37107419967651367, 0.34441813826560974, -0.285194456577301, -1.1326111555099487, -0.3838782012462616, -1.1252423524856567, -2.557776689529419, 0.4542240500450134, -0.26446741819381714, -1.4910054206848145, 0.062472306191921234, -0.9631987810134888, 0.7872393131256104, -0.6109293699264526, -1.0735596418380737, -1.4451980590820312, 0.3646966218948364, -0.15545935928821564, 0.9377175569534302, -1.6178932189941406, -0.14493821561336517, 1.219619631767273, 1.008370280265808, -0.5596638917922974, 0.9388598203659058, 0.2844884991645813, 0.9341602325439453, 0.8581110239028931, -0.44597306847572327, 0.5361891984939575, 0.18961842358112335, -1.3023627996444702, 0.4303450584411621, 1.3236547708511353, 0.22331055998802185, 1.4503192901611328, -0.4649595618247986, -0.05640367791056633, 0.4055158197879791, -0.4795542359352112, -0.49671486020088196, -0.5470526218414307, 0.7112830877304077, 0.04839079827070236, -1.0478219985961914, -0.057105787098407745, -0.10212817788124084, -0.15657953917980194, 0.3203992247581482, -1.4503859281539917, -0.2501160502433777, -0.4352369010448456, -0.4866899847984314, -1.3404849767684937, -0.06374073028564453, 1.2618578672409058, -0.7902277708053589, -0.1641150414943695, 0.4354605972766876, 0.4225921332836151, 0.5883910655975342, 0.6112176179885864, -0.7252944707870483, -0.4518353044986725, -0.3102073669433594, -0.35318195819854736, 0.28692981600761414, 1.1886674165725708, -0.06617152690887451, -1.0237544775009155, 0.6665635108947754, -0.31739529967308044, 0.1314803808927536, 1.927603006362915, 0.017745409160852432, -0.8066973686218262, 0.27476510405540466, -0.621558666229248, 1.8247604370117188, 1.5935245752334595, 1.3257746696472168, -0.19505077600479126, -0.8647383451461792, 0.6099566221237183, -0.25777024030685425, -0.3388654589653015, 0.8822704553604126, 0.46203890442848206, -0.20061513781547546, -1.4294289350509644, 0.5829832553863525, 1.3185917139053345, -0.8788502216339111, -0.7755247354507446, -0.02674408070743084, -0.8846887350082397, 1.1741403341293335, 0.705736517906189, 0.36579951643943787, 0.20651526749134064, 1.6732393503189087, 0.7032037973403931, -0.5288379192352295, 0.564619779586792, 0.3902207016944885, -0.15206378698349, -2.14965558052063, -1.11063814163208, 0.23702087998390198, -0.3007914125919342, -1.5318584442138672, 1.3351874351501465, -1.1730118989944458, -1.0831218957901, 0.5246856212615967, 0.08709826320409775, 1.3247950077056885, 0.30451950430870056, 1.695153832435608, 2.098829984664917, 0.9462194442749023, 0.3017228841781616, 1.2572509050369263, -0.1394876390695572, -0.42182549834251404, 1.8544070720672607, -0.4285346269607544, 0.6006125211715698, 1.039427638053894, -0.3837723433971405, -1.07487154006958, -0.8457250595092773, -1.2079983949661255, -0.7077227830886841, 1.1211801767349243, 0.12930727005004883, -1.198868751525879, 0.292537122964859, 1.647070050239563, 0.09622599184513092, -0.2764829397201538, 0.6985074281692505, 0.4591900408267975, -0.7171262502670288, -0.08589711785316467, -0.9399020671844482, 0.5069642066955566, -0.19324560463428497, -0.3353535532951355, 0.1523181051015854, 0.603564977645874, 1.2312442064285278, -0.03150001913309097, 0.05635654926300049, 1.2401087284088135, -1.4073792695999146, 1.4393510818481445, -0.6604681015014648, 0.2756330966949463, -2.347709894180298, 1.4028970003128052, -0.7850233316421509, 1.9498913288116455, -2.627495527267456, 0.4291665256023407, -0.47646063566207886, -0.4888174533843994, 0.22203609347343445, -0.3247703015804291, 0.23378801345825195, -0.14379552006721497, -0.9681128263473511, -0.1902344673871994, -0.775346040725708, 0.5499246120452881, 1.1343294382095337, 1.3598413467407227, -1.0196874141693115, -0.17084826529026031, -1.6915295124053955, -0.23065152764320374, -0.7032002210617065, 0.19778972864151, -1.9390283823013306, -0.2228231430053711, -2.0501298904418945, -2.331529378890991, -1.3459508419036865, -0.9447481632232666, 1.1045069694519043, 0.15358386933803558, -0.9474170207977295, 1.0990606546401978, -0.3138434886932373, -1.788840889930725, 1.1984539031982422, -2.112791061401367 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
@alejandrocros and @lhoestq - you added the wiki_bio dataset in #1173. It doesn't work anymore. Can you take a look at this?
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
1,005
22
Bug in wiki bio load wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a @alejandrocros and @lhoestq - you added the wiki_bio dataset in #1173. It doesn't work anymore. Can you take a look at this?
[ -1.2021703720092773, -0.7884570360183716, -0.7622072100639343, 1.3435337543487549, -0.03184019774198532, -1.2675650119781494, 0.1643836349248886, -1.063542127609253, 1.6773734092712402, -0.7487084269523621, 0.32849299907684326, -1.6247657537460327, 0.048381779342889786, -0.6192227602005005, -0.7306550145149231, -0.823530375957489, -0.31172773241996765, -0.8497706055641174, 1.0412309169769287, 2.6698453426361084, 1.1651418209075928, -1.3290518522262573, 2.7557790279388428, 0.6479743123054504, -0.33454394340515137, -0.904152512550354, 0.3960656523704529, 0.04243680089712143, -1.2865498065948486, -0.34611281752586365, -0.9243438243865967, -0.05263976380228996, -0.5439102053642273, -0.5826943516731262, -0.01092173345386982, 0.38675573468208313, -0.2111961394548416, -0.3766755163669586, -0.3278616964817047, -0.7401272654533386, 0.5864734053611755, -0.36857399344444275, 0.9062967300415039, -0.19448994100093842, 1.813063621520996, -0.5415382981300354, 0.4200054705142975, 0.5981829166412354, 1.355773687362671, 0.1185675859451294, -0.10284938663244247, 0.33649954199790955, 0.2504104673862457, -0.10342217981815338, 0.38683515787124634, 1.2454535961151123, 0.649360716342926, 0.5266784429550171, 0.6704359650611877, -2.17026948928833, 1.413774013519287, -0.9167025685310364, 0.1527787297964096, 1.3204834461212158, -1.146998643875122, 0.3985128402709961, -1.8389127254486084, -0.10248500853776932, 0.43927454948425293, -2.3840436935424805, 0.1759108453989029, -1.2838799953460693, -0.5807482004165649, 0.9307646155357361, 0.2379772812128067, -1.3639816045761108, 0.06781665980815887, -0.4306596517562866, 1.1043989658355713, 0.4698258936405182, 1.1531503200531006, -1.821791410446167, -0.05341743677854538, -0.26026976108551025, 0.20808744430541992, -1.336608648300171, -1.547539234161377, 0.5605118274688721, 0.5778211951255798, 0.7016434073448181, 0.060760434716939926, 0.8478797674179077, -1.0139623880386353, 0.8458259701728821, -1.000868558883667, -1.5603911876678467, -1.3229010105133057, -2.381667137145996, -2.303071975708008, 0.7424950003623962, -0.3710879683494568, -0.47056153416633606, 2.0324342250823975, -1.1711704730987549, -1.7518432140350342, 1.0622023344039917, 0.23374858498573303, -0.13268959522247314, 2.425105571746826, 0.31881383061408997, -0.8615379929542542, 0.5916820764541626, -0.748933732509613, 0.8463283777236938, -0.43145519495010376, 1.3897043466567993, 0.5699865221977234, -1.0356889963150024, 1.595367670059204, -0.4586935341358185, 0.517692506313324, -0.7684478759765625, -0.47565051913261414, -0.8037012219429016, 0.338043749332428, 1.91323983669281, -0.2520960867404938, 1.5300835371017456, -0.2766217887401581, -1.5623033046722412, -1.4553343057632446, 0.7441022992134094, 0.6704691052436829, -0.8485607504844666, 0.2502869963645935, -0.40164464712142944, 0.07507367432117462, 0.13334958255290985, 1.031205177307129, 1.277321219444275, 0.6715195775032043, -0.15755636990070343, -1.0254991054534912, 0.25567302107810974, -0.11409850418567657, -0.5713871121406555, -1.892153024673462, -0.32373112440109253, 0.1281299740076065, 0.7430930137634277, -1.3154886960983276, 1.6772435903549194, 0.8519231081008911, 1.9764269590377808, 1.0415011644363403, -0.2795867323875427, 1.5712674856185913, -0.03299745172262192, 1.822643756866455, -0.4086035192012787, 0.7468302845954895, -0.3241267502307892, -1.1131545305252075, 0.7038841843605042, -0.34624654054641724, -1.98988938331604, -0.6608011722564697, -0.7569047212600708, -0.19545160233974457, -0.9469755291938782, 0.9524344801902771, -0.2998095154762268, -1.3989859819412231, 0.4626436233520508, -0.6595766544342041, 0.22569586336612701, -1.337222933769226, 0.3022444546222687, 0.7164264917373657, -0.6122285723686218, 0.009982322342693806, -0.2524454593658447, -1.3567086458206177, -0.4736146926879883, 0.1817811280488968, 1.9047391414642334, -0.7137867212295532, 0.8793997764587402, 1.0146567821502686, -0.502587616443634, -0.022202465683221817, 0.4417245388031006, -0.2885257601737976, 0.8708794713020325, -1.1313143968582153, -0.21331584453582764, 1.078581690788269, -0.22417591512203217, -0.4270165264606476, 1.3518553972244263, 0.8222574591636658, -0.9632889032363892, -0.18597330152988434, -0.1503884643316269, -0.7580390572547913, -0.034571290016174316, -1.6741653680801392, -0.13145767152309418, 0.3218461275100708, -1.3686572313308716, -0.41344329714775085, -0.18890953063964844, 1.3807753324508667, -0.16998347640037537, 1.3962228298187256, -0.2792247235774994, -0.1268702894449234, -0.42953693866729736, -0.4517920911312103, 0.2273436039686203, -0.13203652203083038, -0.6749762296676636, 0.21654656529426575, -0.6928007006645203, 0.2156079262495041, 1.4743502140045166, 0.3609788417816162, 0.16791410744190216, 0.462723970413208, 1.1687545776367188, 0.27691957354545593, -0.10269930213689804, -0.7448951005935669, -1.6178536415100098, 2.07283091545105, -1.577965497970581, 1.968859314918518, 0.9083883762359619, -0.040592994540929794, -1.7512948513031006, -1.800613284111023, 1.3771530389785767, 1.1877830028533936, 2.461068868637085, 0.6217342019081116, 0.47279664874076843, -0.7301774024963379, -0.6023030877113342, 0.3653443455696106, -1.0436524152755737, -0.8603261113166809, 0.12442903220653534, 2.3615007400512695, 1.5968610048294067, -0.4063594341278076, -0.2800774574279785, -0.9550618529319763, 1.2808700799942017, -0.14276869595050812, 0.0789613276720047, 1.9933539628982544, -0.3058147132396698, -1.2590305805206299, 1.3040138483047485, -2.319328784942627, 0.1712149977684021, 1.977648138999939, 0.3252168595790863, -0.02513326331973076, -1.3846166133880615, -0.6984153389930725, -0.2246897965669632, -0.4621448814868927, -1.2918455600738525, 0.48188382387161255, -0.3482416868209839, -0.9748876094818115, -1.5600364208221436, 0.10338110476732254, -1.162152647972107, -1.5881507396697998, 0.3672603964805603, 1.6544208526611328, 2.0904688835144043, -0.7804032564163208, 1.4308264255523682, -0.24993257224559784, 0.27901920676231384, 1.15215265750885, 1.2389886379241943, 3.2517812252044678, 1.782025933265686, -1.2343541383743286, 0.634614884853363, -0.23270079493522644, -0.4720890522003174, 1.0711404085159302, -1.029841661453247, 1.2476487159729004, -0.08950412273406982, -1.326806664466858, -1.2717844247817993, 0.8776701092720032, 0.499462366104126, 0.04222988337278366, -0.49274712800979614, 1.25007963180542, 0.1757071316242218, 1.333036184310913, 0.4995163083076477, -0.136778324842453, 0.5768128037452698, -0.4483538568019867, -0.5634196400642395, 1.6159032583236694, 0.14635923504829407, -1.4833658933639526, -2.445402145385742, -0.1762096881866455, -0.8043802380561829, -0.10590951144695282, -0.6751983761787415, -1.122278094291687, 1.6335307359695435, 0.4860483705997467, -1.141871690750122, -0.23371578752994537, -0.3880193531513214, -0.612333357334137, 2.621776819229126, -1.4843696355819702, -0.2195589393377304, -0.9291763305664062, -0.5149869918823242, 1.5921988487243652, -1.197810411453247, -0.24517251551151276, -0.9407715797424316, -0.5602533221244812, -1.2817047834396362, -0.47380438446998596, -0.21194954216480255, -0.8543883562088013, 0.6363281607627869, 0.20082339644432068, -1.1664214134216309, -0.27894699573516846, -0.9165865182876587, 0.7734817862510681, -0.1390138864517212, 0.23108579218387604, 1.745316982269287, 0.4099857807159424, -0.388144314289093, 0.7273814678192139, 1.2040958404541016, 0.5415289998054504, -0.6517590284347534, 0.08968997746706009, -0.7008900046348572, 0.32358217239379883, -1.1818103790283203, 0.4071454405784607, -2.9125330448150635, 0.6928947567939758, 0.01434349361807108, -0.12559133768081665, -0.03054974600672722, -1.3666437864303589, 1.1986390352249146, 2.6154744625091553, -1.0969079732894897, 0.5860711932182312, 0.2767188847064972, 1.206375241279602, -1.6373976469039917, 0.1189279705286026, -0.4761975407600403, 2.145566701889038, 0.19238635897636414, 1.2800627946853638, -0.5168837308883667, -2.3724262714385986, 0.59264075756073, -1.212557315826416, -1.1692343950271606, 0.7615077495574951, -0.9213398694992065, 0.01499107200652361, -1.2015070915222168, -0.14524026215076447, -0.9745279550552368, -1.2450807094573975, 0.6668517589569092, 0.13883957266807556, 0.6060829162597656, -0.6134876012802124, 0.31796732544898987, -2.162322998046875, -1.3443903923034668, -0.10563019663095474, -0.9572243690490723, 0.5016360878944397, -0.30574142932891846, 0.61347895860672, -0.15432439744472504, 0.09603902697563171, 0.3353216350078583, 1.501802682876587, 3.1750149726867676, 0.16844694316387177, 0.4774048924446106, -0.16934269666671753, -0.9327749609947205, 1.4457789659500122, 0.9531912207603455, -0.1317896991968155, -0.7275751233100891, -0.9194445610046387, 1.272847056388855, 1.9588782787322998, 0.9715381860733032, 0.06499239057302475, -0.8446713089942932, -0.6643028259277344, 0.061037223786115646, 0.2165147215127945, 0.428017258644104, 1.0791728496551514, 0.03183692321181297, 0.051014404743909836, 1.4434059858322144, 1.1668659448623657, -0.5001007318496704, 0.5221860408782959, -0.8826208710670471, -0.3908913731575012, 0.450097918510437, 0.3174099624156952, -0.046641524881124496, 0.3683081269264221, -0.994978666305542, -0.2255793660879135, -0.18962004780769348, -1.024872064590454, -0.8423774242401123, -0.37729308009147644, -0.311317503452301, 1.6999872922897339, 0.0047101182863116264, -0.36577022075653076, 0.02429189532995224, -0.7948960661888123, -0.11205067485570908, -1.002004623413086, 0.263658344745636, -0.14740735292434692, -0.08019959181547165, -0.019995616748929024, 1.7954895496368408, -0.9020659327507019, -2.206754446029663, 0.22888003289699554, 0.19375619292259216, -0.48350265622138977, 0.06569881737232208, 1.6365615129470825, 0.5810089707374573, 1.4340364933013916, 1.3729333877563477, 1.0608556270599365, -0.6700848340988159, -1.3355143070220947, 0.7456212639808655, 0.8487963080406189, -1.358267903327942, 0.8993878364562988, -0.13172848522663116, -0.4581412672996521, 0.6759915947914124, 1.3278623819351196, 0.45164579153060913, -1.9548968076705933, 0.7695649862289429, -0.9468762874603271, 0.7466027140617371, 0.7154229283332825, 0.7509119510650635, 0.26061105728149414, 0.9573643803596497, -1.2736300230026245, -1.0724375247955322, -0.6693028211593628, -0.6225466132164001, 1.8535373210906982, -0.23846425116062164, 0.5054252743721008, -0.16818079352378845, -1.2489973306655884, 0.02170543372631073, 0.6955797076225281, 0.35609379410743713, -0.1838681846857071, 0.7974252104759216, -0.756306529045105, -1.1500524282455444, -1.4628992080688477, -0.519631028175354, -0.8340779542922974, -0.9118314981460571, 0.9147378206253052, 0.7396535873413086, 0.29871803522109985, 2.0345897674560547, 0.637543797492981, 0.14003700017929077, -2.6264235973358154, 0.7662216424942017, 0.38604193925857544, 0.058073755353689194, 1.0788604021072388, 0.2506236732006073, 1.168201208114624, -0.004733706824481487, 0.4371514916419983, -2.350949764251709, 2.2537624835968018, -0.2920161187648773, 0.7653816342353821, -0.05467681959271431, -0.07787112146615982, 0.9268567562103271, 0.496171236038208, 0.6122462749481201, -1.1760071516036987, 0.7974379658699036, -0.6725455522537231, 1.2517619132995605, 0.9175440073013306, -0.8347464203834534, 0.17283864319324493, 1.1393048763275146, 0.3756251633167267, -0.4999869167804718, -0.9023377895355225, -0.9555916786193848, 0.7835866212844849, 1.789237141609192, -0.10847587138414383, 0.15181975066661835, 0.7606310844421387, 0.7049180269241333, -1.3803266286849976, -0.05084438994526863, -0.6998115181922913, -0.8448250889778137, 1.7924768924713135, 2.0960237979888916, -0.03827038034796715, -0.2799500524997711, -0.7260492444038391, -1.312734842300415, 0.8810213208198547, 0.13126125931739807, 0.06935170292854309, 0.6547989249229431, -0.7260680794715881, 1.18148934841156, 0.9036655426025391, 0.8640058040618896, 0.20488272607326508, 0.36007294058799744, 0.2819257080554962, -0.26743781566619873, -1.1107447147369385, -0.34423592686653137, -1.168513536453247, -2.6439695358276367, 0.4439418613910675, -0.2688969373703003, -1.4861681461334229, 0.15336410701274872, -1.0067083835601807, 0.7382316589355469, -0.5646568536758423, -1.0553001165390015, -1.4526855945587158, 0.28691622614860535, -0.1788283735513687, 0.8301457762718201, -1.5858319997787476, -0.13491322100162506, 1.2603706121444702, 1.0917091369628906, -0.5009746551513672, 0.9816781878471375, 0.2618197798728943, 0.9353992342948914, 0.9251197576522827, -0.5495806336402893, 0.5023711323738098, 0.2005339115858078, -1.297951579093933, 0.5000334978103638, 1.4214377403259277, 0.2206120789051056, 1.4987587928771973, -0.46373051404953003, -0.09538368880748749, 0.4051406681537628, -0.42260676622390747, -0.49096962809562683, -0.683423638343811, 0.8086956143379211, 0.1231260895729065, -0.9277461171150208, 0.0855376198887825, -0.16015616059303284, -0.16588236391544342, 0.3427487313747406, -1.4956464767456055, -0.2645474970340729, -0.44582846760749817, -0.6020939946174622, -1.4310201406478882, -0.11335385590791702, 1.2153302431106567, -0.8282386660575867, -0.10148725658655167, 0.47723254561424255, 0.5052669644355774, 0.5971364974975586, 0.6607447266578674, -0.7350900769233704, -0.4653891623020172, -0.2854841351509094, -0.3583764135837555, 0.3372516930103302, 1.1769075393676758, -0.08395161479711533, -0.988365650177002, 0.6049987077713013, -0.23752407729625702, 0.1532222330570221, 1.877244472503662, 0.03942960873246193, -0.8791539669036865, 0.25583556294441223, -0.6592952609062195, 1.9343461990356445, 1.4503428936004639, 1.3353521823883057, -0.15554656088352203, -0.8967241048812866, 0.6560907959938049, -0.20658312737941742, -0.32582157850265503, 0.918907642364502, 0.4622105062007904, -0.20692084729671478, -1.3322809934616089, 0.5847741961479187, 1.2484111785888672, -0.8736051917076111, -0.7387819886207581, -0.09794791042804718, -0.8774607181549072, 1.1571741104125977, 0.6767910718917847, 0.35443148016929626, 0.24064424633979797, 1.778887391090393, 0.6685798764228821, -0.57216477394104, 0.5105851292610168, 0.33427247405052185, -0.14930325746536255, -2.1377992630004883, -1.0424001216888428, 0.2411838173866272, -0.34533631801605225, -1.4725847244262695, 1.3183201551437378, -1.1794840097427368, -1.0025825500488281, 0.5448691844940186, 0.13613224029541016, 1.371940016746521, 0.2787090241909027, 1.6934252977371216, 2.063699722290039, 0.9198663830757141, 0.2791024148464203, 1.2325018644332886, -0.18980978429317474, -0.40505754947662354, 1.7749462127685547, -0.40085384249687195, 0.6556488275527954, 1.032666563987732, -0.4030749499797821, -1.0673649311065674, -0.8422286510467529, -1.118992567062378, -0.7665687799453735, 1.046537160873413, 0.17486019432544708, -1.216861605644226, 0.25238528847694397, 1.632554292678833, 0.053801726549863815, -0.21717171370983124, 0.5529177188873291, 0.4378165602684021, -0.663979709148407, -0.09103680402040482, -1.0169893503189087, 0.517621636390686, -0.2334432601928711, -0.36726418137550354, 0.08988482505083084, 0.6244702935218811, 1.1045315265655518, 0.012534002773463726, 0.09995714575052261, 1.3733702898025513, -1.4312877655029297, 1.2814093828201294, -0.7474278807640076, 0.24315476417541504, -2.307640552520752, 1.4710049629211426, -0.8038282990455627, 1.9797192811965942, -2.716383934020996, 0.43519043922424316, -0.49503597617149353, -0.5130265355110168, 0.2290000468492508, -0.29060789942741394, 0.23746870458126068, -0.13254164159297943, -0.9377995729446411, -0.2494891732931137, -0.878135621547699, 0.4625695049762726, 1.1678098440170288, 1.2346779108047485, -0.900887131690979, -0.12428160756826401, -1.5817242860794067, -0.22927922010421753, -0.6181541085243225, 0.15873339772224426, -1.9612194299697876, -0.24148111045360565, -2.1438848972320557, -2.3043055534362793, -1.3674983978271484, -0.916943371295929, 1.2265985012054443, 0.16997413337230682, -0.9087529182434082, 1.0201810598373413, -0.28589001297950745, -1.7079871892929077, 1.1588702201843262, -2.0839102268218994 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
And if something is wrong with Google Drive, you could try to download (and collate and unzip) from here: https://github.com/DavidGrangier/wikipedia-biography-dataset
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
1,005
20
Bug in wiki bio load wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a And if something is wrong with Google Drive, you could try to download (and collate and unzip) from here: https://github.com/DavidGrangier/wikipedia-biography-dataset
[ -1.2004189491271973, -0.7677514553070068, -0.7723535299301147, 1.3514751195907593, -0.04279261827468872, -1.2760623693466187, 0.12708234786987305, -1.0302952527999878, 1.6292269229888916, -0.7642174959182739, 0.36732521653175354, -1.6303753852844238, 0.04859049245715141, -0.6130008101463318, -0.7382902503013611, -0.8219896554946899, -0.3437509536743164, -0.8453838229179382, 1.0276508331298828, 2.6453607082366943, 1.2296030521392822, -1.3805129528045654, 2.7417080402374268, 0.6606940031051636, -0.34588366746902466, -0.968171238899231, 0.42754894495010376, 0.08080636709928513, -1.2554359436035156, -0.3374395966529846, -0.9510288238525391, -0.07660770416259766, -0.5475849509239197, -0.5701369047164917, 0.008971056900918484, 0.4001792073249817, -0.16476577520370483, -0.34670087695121765, -0.3685533404350281, -0.7546671628952026, 0.6193613409996033, -0.3664168417453766, 0.8839844465255737, -0.2291957437992096, 1.803755760192871, -0.5368507504463196, 0.38616299629211426, 0.5978694558143616, 1.3569812774658203, 0.10239515453577042, -0.10808539390563965, 0.3321433365345001, 0.2493077665567398, -0.05277702212333679, 0.3584235608577728, 1.2650060653686523, 0.663427472114563, 0.5217452645301819, 0.6402847170829773, -2.1549148559570312, 1.3902467489242554, -0.8973957300186157, 0.16803999245166779, 1.352843999862671, -1.1423313617706299, 0.4032275676727295, -1.878766417503357, -0.143767848610878, 0.41507112979888916, -2.4201200008392334, 0.17951646447181702, -1.2513835430145264, -0.5820956826210022, 0.9559465050697327, 0.2408127635717392, -1.3428348302841187, 0.11093929409980774, -0.4706205427646637, 1.0787748098373413, 0.448905348777771, 1.125929594039917, -1.8028594255447388, -0.0684497281908989, -0.2498367577791214, 0.18306618928909302, -1.3288854360580444, -1.5500928163528442, 0.5217784643173218, 0.6184237003326416, 0.6730521321296692, 0.030137479305267334, 0.8856748342514038, -1.015443205833435, 0.8654568791389465, -0.9535892009735107, -1.5527501106262207, -1.325045108795166, -2.3709583282470703, -2.3050458431243896, 0.757105827331543, -0.37236934900283813, -0.49046868085861206, 2.022615671157837, -1.127640962600708, -1.7575373649597168, 1.064741849899292, 0.2548297047615051, -0.1193644106388092, 2.4509456157684326, 0.2748695909976959, -0.861163318157196, 0.5720801949501038, -0.7750488519668579, 0.8845780491828918, -0.4389854669570923, 1.4427893161773682, 0.5990981459617615, -1.0466417074203491, 1.6216694116592407, -0.4373010993003845, 0.5005170702934265, -0.7640847563743591, -0.48651689291000366, -0.7864370942115784, 0.3738284111022949, 1.905302882194519, -0.2655584514141083, 1.5179530382156372, -0.2644678056240082, -1.5464422702789307, -1.4290101528167725, 0.7700812220573425, 0.6521618366241455, -0.8328178524971008, 0.20688322186470032, -0.4081859290599823, 0.09432976692914963, 0.14969760179519653, 1.011854887008667, 1.279437780380249, 0.666232705116272, -0.1828497350215912, -1.0449802875518799, 0.2468046396970749, -0.09625900536775589, -0.5684459209442139, -1.8860549926757812, -0.34465470910072327, 0.15819823741912842, 0.683684229850769, -1.3089362382888794, 1.7097196578979492, 0.85150545835495, 1.9816899299621582, 0.9967234134674072, -0.32332688570022583, 1.5529766082763672, -0.07556332647800446, 1.8506468534469604, -0.42296022176742554, 0.7664937376976013, -0.2719784379005432, -1.1517552137374878, 0.719413161277771, -0.35313478112220764, -1.9996503591537476, -0.6669268012046814, -0.7899519205093384, -0.1884816288948059, -0.9301777482032776, 0.9865180850028992, -0.29294952750205994, -1.4005025625228882, 0.4034672975540161, -0.6149671673774719, 0.21658751368522644, -1.3357912302017212, 0.2791198790073395, 0.7083786725997925, -0.6035613417625427, -0.03451063856482506, -0.24927590787410736, -1.346082329750061, -0.5002970695495605, 0.17970940470695496, 1.8872178792953491, -0.7304074168205261, 0.8970639109611511, 0.9828599691390991, -0.5261263251304626, 0.04336772859096527, 0.45474714040756226, -0.3367812931537628, 0.8885877728462219, -1.1583231687545776, -0.265298068523407, 1.0720593929290771, -0.19790592789649963, -0.4604825973510742, 1.3394938707351685, 0.8360332250595093, -0.9104218482971191, -0.20429416000843048, -0.15084566175937653, -0.747902512550354, -0.024523461237549782, -1.6659436225891113, -0.1326073706150055, 0.3248443305492401, -1.3577512502670288, -0.41222330927848816, -0.18781377375125885, 1.386662483215332, -0.1611902415752411, 1.401687741279602, -0.3035705089569092, -0.15642307698726654, -0.42430517077445984, -0.44434645771980286, 0.21875746548175812, -0.13437116146087646, -0.6576282382011414, 0.21484853327274323, -0.7451029419898987, 0.23092351853847504, 1.4596306085586548, 0.3754545748233795, 0.1396608203649521, 0.44934481382369995, 1.1742184162139893, 0.27041691541671753, -0.11030565947294235, -0.7814242243766785, -1.6416646242141724, 2.0781335830688477, -1.5704638957977295, 1.9499481916427612, 0.938008725643158, 0.016615409404039383, -1.7386903762817383, -1.8068567514419556, 1.359195351600647, 1.1970170736312866, 2.4719648361206055, 0.6444551944732666, 0.4502013027667999, -0.760379433631897, -0.6528257131576538, 0.3753262758255005, -1.0489534139633179, -0.8947400450706482, 0.13408614695072174, 2.359126567840576, 1.641190767288208, -0.4448133111000061, -0.2585187554359436, -0.9783034920692444, 1.2804324626922607, -0.15938504040241241, 0.08116886019706726, 2.001316785812378, -0.31281810998916626, -1.2228140830993652, 1.3059277534484863, -2.349885940551758, 0.19641923904418945, 1.9947059154510498, 0.3871210813522339, -0.016289757564663887, -1.3630845546722412, -0.6787014007568359, -0.2099788337945938, -0.43443921208381653, -1.2996667623519897, 0.4840646982192993, -0.3371140956878662, -1.020641803741455, -1.535107135772705, 0.05687323585152626, -1.1857353448867798, -1.5953556299209595, 0.45966479182243347, 1.6592488288879395, 2.093737840652466, -0.7652599215507507, 1.4396476745605469, -0.238835871219635, 0.2423471063375473, 1.155514121055603, 1.2565951347351074, 3.2401280403137207, 1.7342818975448608, -1.2349250316619873, 0.6375758647918701, -0.2334061861038208, -0.4950123131275177, 1.1194676160812378, -1.038343071937561, 1.2298823595046997, -0.13499049842357635, -1.3238575458526611, -1.2297472953796387, 0.9106296300888062, 0.5057758688926697, 0.07679762691259384, -0.5020153522491455, 1.2281780242919922, 0.19027334451675415, 1.2992759943008423, 0.4958372116088867, -0.15763375163078308, 0.5612706542015076, -0.42585399746894836, -0.5435945987701416, 1.601420521736145, 0.16467036306858063, -1.5004816055297852, -2.4385368824005127, -0.1906941533088684, -0.7981109619140625, -0.06754711270332336, -0.6664336323738098, -1.1355904340744019, 1.630724310874939, 0.4691416025161743, -1.1787517070770264, -0.24753950536251068, -0.38871192932128906, -0.6092377305030823, 2.5791351795196533, -1.4653476476669312, -0.18614961206912994, -0.8949856162071228, -0.5200967192649841, 1.572704792022705, -1.1915322542190552, -0.22623027861118317, -0.9399781227111816, -0.560657799243927, -1.3004502058029175, -0.4621383249759674, -0.16403338313102722, -0.8518907427787781, 0.6004549264907837, 0.17424191534519196, -1.1375625133514404, -0.28425437211990356, -0.9190610647201538, 0.7762823700904846, -0.1646549552679062, 0.22604502737522125, 1.7335638999938965, 0.4277082085609436, -0.36535924673080444, 0.7249001264572144, 1.2127653360366821, 0.5306183099746704, -0.6505154371261597, 0.10475198179483414, -0.689873218536377, 0.2871719300746918, -1.2217367887496948, 0.4050807058811188, -2.912687063217163, 0.7017123103141785, 0.006413877941668034, -0.07837722450494766, -0.023568548262119293, -1.3497215509414673, 1.217139720916748, 2.6360127925872803, -1.1217097043991089, 0.5910433530807495, 0.26545220613479614, 1.1995587348937988, -1.6282930374145508, 0.10082241892814636, -0.48257094621658325, 2.1478567123413086, 0.1623651683330536, 1.2648687362670898, -0.5656937956809998, -2.3245410919189453, 0.5982022881507874, -1.2075517177581787, -1.1154462099075317, 0.7449097037315369, -0.9187904596328735, 0.046564385294914246, -1.2197188138961792, -0.13197042047977448, -1.0056260824203491, -1.2141777276992798, 0.668952226638794, 0.0943877175450325, 0.565923810005188, -0.6078984141349792, 0.3216427266597748, -2.1212387084960938, -1.366112470626831, -0.12005956470966339, -0.9652929902076721, 0.5260475873947144, -0.31132349371910095, 0.6236468553543091, -0.12233635783195496, 0.07487054914236069, 0.3375646471977234, 1.4949932098388672, 3.1849288940429688, 0.1598697304725647, 0.43783214688301086, -0.1240130066871643, -0.9848450422286987, 1.5018336772918701, 0.9183347821235657, -0.059862639755010605, -0.7012546062469482, -0.8880186080932617, 1.2718356847763062, 1.9506661891937256, 0.9895562529563904, 0.048371899873018265, -0.8584558367729187, -0.6677083969116211, 0.05474361404776573, 0.1965389847755432, 0.4792928993701935, 1.0789098739624023, -0.01445678435266018, 0.04240959510207176, 1.4034175872802734, 1.1772469282150269, -0.4717390835285187, 0.5159933567047119, -0.8999793529510498, -0.37537887692451477, 0.4440537989139557, 0.2673857510089874, -0.010888036340475082, 0.39986586570739746, -1.0313934087753296, -0.21978889405727386, -0.2110302895307541, -0.9979995489120483, -0.8275390267372131, -0.42433086037635803, -0.3478490114212036, 1.7065879106521606, 0.018779076635837555, -0.39008286595344543, 0.060155387967824936, -0.8412633538246155, -0.09820495545864105, -1.0091631412506104, 0.26238080859184265, -0.1261831820011139, -0.07775542885065079, -0.06304435431957245, 1.778483510017395, -0.875274658203125, -2.215456962585449, 0.23384810984134674, 0.22213611006736755, -0.5310834646224976, 0.03919198736548424, 1.6825668811798096, 0.5811680555343628, 1.4482214450836182, 1.3525207042694092, 1.0543640851974487, -0.6425419449806213, -1.2935130596160889, 0.7635772228240967, 0.8786709904670715, -1.3806040287017822, 0.905798614025116, -0.09698257595300674, -0.46772003173828125, 0.7097023725509644, 1.3117629289627075, 0.42215225100517273, -1.9504008293151855, 0.784614086151123, -0.9263100028038025, 0.7806696891784668, 0.6886590719223022, 0.7189792990684509, 0.23466099798679352, 0.9596939086914062, -1.2709633111953735, -1.0582777261734009, -0.7182820439338684, -0.5818004608154297, 1.881034255027771, -0.21603848040103912, 0.5174729228019714, -0.18637730181217194, -1.231611728668213, 0.008497497998178005, 0.7010958790779114, 0.3438454866409302, -0.22393278777599335, 0.855840265750885, -0.7431508898735046, -1.1252965927124023, -1.4697740077972412, -0.5231611132621765, -0.8434959650039673, -0.9083603620529175, 0.9266720414161682, 0.7335990071296692, 0.3285602629184723, 2.0351336002349854, 0.6532226800918579, 0.1305021494626999, -2.642183780670166, 0.7760999202728271, 0.38615357875823975, 0.04656946659088135, 1.0785062313079834, 0.21823865175247192, 1.1803619861602783, -0.011611409485340118, 0.465056449174881, -2.3047657012939453, 2.227715015411377, -0.267657071352005, 0.7537888288497925, -0.028875164687633514, -0.09080303460359573, 0.9698725342750549, 0.5359401106834412, 0.6073742508888245, -1.2449817657470703, 0.7833517789840698, -0.6542964577674866, 1.2163844108581543, 0.8861157298088074, -0.8498402237892151, 0.1707126349210739, 1.1843489408493042, 0.38453981280326843, -0.4484388828277588, -0.9029650092124939, -0.8941213488578796, 0.8058934807777405, 1.7570744752883911, -0.08895853161811829, 0.1253492534160614, 0.7599447965621948, 0.6864553093910217, -1.4025717973709106, -0.06025352329015732, -0.6686210632324219, -0.7919684648513794, 1.801595687866211, 2.0841665267944336, -0.025499604642391205, -0.28928735852241516, -0.700864315032959, -1.3048158884048462, 0.8805317282676697, 0.08559048920869827, 0.11679238826036453, 0.6530545949935913, -0.7205838561058044, 1.1998722553253174, 0.8761444687843323, 0.8516961932182312, 0.14959821105003357, 0.33056604862213135, 0.2973673939704895, -0.29797589778900146, -1.099104881286621, -0.34750646352767944, -1.2005373239517212, -2.693878650665283, 0.4708590805530548, -0.28540024161338806, -1.5080959796905518, 0.1479436755180359, -1.0045080184936523, 0.7596235275268555, -0.6222597360610962, -1.026568055152893, -1.4584801197052002, 0.3099824786186218, -0.178554967045784, 0.8458482027053833, -1.5755078792572021, -0.11396422237157822, 1.2721232175827026, 1.0310497283935547, -0.4965343773365021, 0.9633883833885193, 0.2734108567237854, 1.0078002214431763, 0.8843657374382019, -0.5246216058731079, 0.49373048543930054, 0.21882349252700806, -1.3090544939041138, 0.4559871554374695, 1.3920246362686157, 0.2049362063407898, 1.4849257469177246, -0.4035712480545044, -0.05201131850481033, 0.39843815565109253, -0.4651738405227661, -0.5131216049194336, -0.6039150357246399, 0.7785238027572632, 0.09287165105342865, -1.0174713134765625, 0.10202927887439728, -0.13548097014427185, -0.16248954832553864, 0.3859417140483856, -1.4995996952056885, -0.27923884987831116, -0.4628898799419403, -0.5668802261352539, -1.402998685836792, -0.10165128111839294, 1.2373266220092773, -0.8093878626823425, -0.09877071529626846, 0.4964228868484497, 0.4529499113559723, 0.6196022033691406, 0.6770430207252502, -0.7313929796218872, -0.4489073157310486, -0.29925045371055603, -0.4062180519104004, 0.30341196060180664, 1.1374436616897583, -0.1121196374297142, -0.9710403084754944, 0.6265290975570679, -0.23581185936927795, 0.15966272354125977, 1.884568691253662, 0.005473156459629536, -0.8877986073493958, 0.2958153784275055, -0.652288556098938, 1.8799917697906494, 1.4499810934066772, 1.3340080976486206, -0.15636688470840454, -0.8609616160392761, 0.6152670979499817, -0.18860286474227905, -0.272065132856369, 0.8668796420097351, 0.46542981266975403, -0.18057781457901, -1.3603183031082153, 0.554838240146637, 1.283564567565918, -0.8860318064689636, -0.7608883380889893, -0.06534606963396072, -0.903929591178894, 1.1653302907943726, 0.6639180779457092, 0.3733445405960083, 0.2560748755931854, 1.732696533203125, 0.6841484904289246, -0.5532208681106567, 0.5017518401145935, 0.35264965891838074, -0.16419735550880432, -2.1117312908172607, -0.9885730743408203, 0.22071224451065063, -0.364219605922699, -1.4698210954666138, 1.28049635887146, -1.192123293876648, -1.0069937705993652, 0.5382444858551025, 0.1846516877412796, 1.3820549249649048, 0.2874535322189331, 1.7163110971450806, 2.0550549030303955, 0.9011586904525757, 0.26003724336624146, 1.239242672920227, -0.1513446569442749, -0.3977600336074829, 1.790941834449768, -0.42726582288742065, 0.6366732120513916, 1.0322096347808838, -0.363638311624527, -1.0767117738723755, -0.8612992167472839, -1.1387628316879272, -0.7485767602920532, 1.0694233179092407, 0.18772338330745697, -1.2311391830444336, 0.2432595044374466, 1.6651183366775513, 0.04538227617740631, -0.2413032054901123, 0.5515747666358948, 0.47532978653907776, -0.6748055219650269, -0.0621035061776638, -0.9835112690925598, 0.5297027826309204, -0.19717907905578613, -0.3480413258075714, 0.12397461384534836, 0.6107798218727112, 1.098015546798706, 0.008601401932537556, 0.0974031314253807, 1.3102401494979858, -1.421295404434204, 1.306303858757019, -0.7311195135116577, 0.2614500820636749, -2.3240606784820557, 1.4634274244308472, -0.806003987789154, 1.9887069463729858, -2.681537389755249, 0.4429020583629608, -0.5024914145469666, -0.5096628665924072, 0.2246447056531906, -0.3442312180995941, 0.22687090933322906, -0.1249278336763382, -0.922773003578186, -0.23590177297592163, -0.8719571828842163, 0.4857305884361267, 1.2378735542297363, 1.2501132488250732, -0.8971796631813049, -0.1700320988893509, -1.654155969619751, -0.22305530309677124, -0.6301082968711853, 0.1826147735118866, -1.9582358598709106, -0.23592157661914825, -2.1303064823150635, -2.2998404502868652, -1.3861883878707886, -0.9633170366287231, 1.1991627216339111, 0.18777738511562347, -0.917378306388855, 1.0070427656173706, -0.3365938663482666, -1.7151206731796265, 1.159757375717163, -2.1153664588928223 ]
https://github.com/huggingface/datasets/issues/3580
Bug in wiki bio load
Hi ! Thanks for reporting. I've downloaded the data and concatenated them into a zip file available here: https://huggingface.co/datasets/wiki_bio/tree/main/data I guess we can update the dataset script to use this zip file now :)
wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a
1,005
34
Bug in wiki bio load wiki_bio is failing to load because of a failing drive link . Can someone fix this ? ![7E90023B-A3B1-4930-BA25-45CCCB4E1710](https://user-images.githubusercontent.com/3104771/149617870-5a32a2da-2c78-483b-bff6-d7534215a423.png) ![653C1C76-C725-4A04-A0D8-084373BA612F](https://user-images.githubusercontent.com/3104771/149617875-ef0e30b0-b76e-48cf-b3eb-93ba8e6e5465.png) a Hi ! Thanks for reporting. I've downloaded the data and concatenated them into a zip file available here: https://huggingface.co/datasets/wiki_bio/tree/main/data I guess we can update the dataset script to use this zip file now :)
[ -1.2227277755737305, -0.777988851070404, -0.7733101844787598, 1.3009566068649292, -0.02164919674396515, -1.2715444564819336, 0.1182197779417038, -1.0406378507614136, 1.6373374462127686, -0.7399078607559204, 0.3493707478046417, -1.645658016204834, 0.002454814501106739, -0.623988151550293, -0.7492039799690247, -0.8920393586158752, -0.32652193307876587, -0.8089039325714111, 1.022351622581482, 2.6589410305023193, 1.1841540336608887, -1.383633017539978, 2.7423977851867676, 0.6491715908050537, -0.2875712513923645, -1.0015376806259155, 0.44133368134498596, 0.07655181735754013, -1.2703173160552979, -0.3727843165397644, -0.9176785349845886, -0.03803561255335808, -0.565488874912262, -0.5533121824264526, 0.012028154917061329, 0.3729267418384552, -0.1561751812696457, -0.3336608409881592, -0.39849716424942017, -0.7126824259757996, 0.6194995641708374, -0.3849135637283325, 0.9122486710548401, -0.26295214891433716, 1.786181926727295, -0.5772511959075928, 0.39352187514305115, 0.6382009983062744, 1.3362280130386353, 0.14279884099960327, -0.08565699309110641, 0.3585796058177948, 0.29213690757751465, -0.0676201656460762, 0.37465518712997437, 1.2270621061325073, 0.6034517884254456, 0.49867287278175354, 0.6667059659957886, -2.151979684829712, 1.3464692831039429, -0.8855739235877991, 0.16540686786174774, 1.3765511512756348, -1.0845643281936646, 0.45382577180862427, -1.8854907751083374, -0.09156564623117447, 0.47701799869537354, -2.3973050117492676, 0.15345057845115662, -1.2663557529449463, -0.5933486819267273, 0.9241949915885925, 0.24703964591026306, -1.3706879615783691, 0.11395984888076782, -0.473259836435318, 1.075022578239441, 0.47940129041671753, 1.1641508340835571, -1.8088936805725098, -0.05611274018883705, -0.23842404782772064, 0.1661999672651291, -1.3183563947677612, -1.5211431980133057, 0.5165277123451233, 0.5983269214630127, 0.6801905035972595, 0.06691320240497589, 0.857329785823822, -0.9933063983917236, 0.8841525912284851, -0.9850264191627502, -1.5904426574707031, -1.353966474533081, -2.3432071208953857, -2.283651828765869, 0.7719759941101074, -0.3769473433494568, -0.4718717634677887, 1.9792429208755493, -1.1621240377426147, -1.7480109930038452, 1.0723016262054443, 0.2596026360988617, -0.10163723677396774, 2.432082176208496, 0.2770306169986725, -0.8514324426651001, 0.5913991928100586, -0.7237944006919861, 0.8599465489387512, -0.4736247956752777, 1.3931708335876465, 0.5870165228843689, -1.0117579698562622, 1.6311761140823364, -0.4925523102283478, 0.5052462816238403, -0.7721750736236572, -0.4741435945034027, -0.8269310593605042, 0.3773014545440674, 1.8894027471542358, -0.24890059232711792, 1.5460598468780518, -0.2625129520893097, -1.5683119297027588, -1.4418015480041504, 0.7694061398506165, 0.6308603286743164, -0.8800209760665894, 0.20841147005558014, -0.3713861107826233, 0.10705949366092682, 0.08959618210792542, 0.9991278052330017, 1.2167491912841797, 0.6866087913513184, -0.1638271063566208, -1.0115077495574951, 0.24999067187309265, -0.09823805838823318, -0.6196767091751099, -1.8984407186508179, -0.3239155113697052, 0.15404599905014038, 0.6787886619567871, -1.3243902921676636, 1.722321629524231, 0.8259013891220093, 1.986430287361145, 1.0398313999176025, -0.3345179557800293, 1.522776484489441, -0.045139893889427185, 1.8789623975753784, -0.44296008348464966, 0.761170506477356, -0.24508893489837646, -1.1662315130233765, 0.7018198370933533, -0.35662466287612915, -2.0251731872558594, -0.698107123374939, -0.7344440221786499, -0.1574295312166214, -0.896073043346405, 0.9604460597038269, -0.32274436950683594, -1.4139615297317505, 0.37955808639526367, -0.6309530735015869, 0.2481832504272461, -1.3515297174453735, 0.23158332705497742, 0.7166184186935425, -0.609950602054596, 0.0009921537712216377, -0.25263747572898865, -1.3348894119262695, -0.46025052666664124, 0.2107200175523758, 1.8735978603363037, -0.7091323733329773, 0.9153923392295837, 0.9560415148735046, -0.48724907636642456, 0.0006736256182193756, 0.41587719321250916, -0.28246575593948364, 0.8954045176506042, -1.1445249319076538, -0.29188600182533264, 1.1181728839874268, -0.2226775586605072, -0.510465145111084, 1.3905949592590332, 0.8746665716171265, -0.9458308219909668, -0.23857234418392181, -0.20485377311706543, -0.7740662693977356, -0.020846981555223465, -1.6886602640151978, -0.10789874941110611, 0.35015198588371277, -1.38298761844635, -0.3947952091693878, -0.16868574917316437, 1.3550137281417847, -0.16135185956954956, 1.4156242609024048, -0.36522984504699707, -0.16175967454910278, -0.4235537052154541, -0.4878925085067749, 0.23311573266983032, -0.16318057477474213, -0.6840928196907043, 0.20540738105773926, -0.7212454676628113, 0.23383283615112305, 1.4477523565292358, 0.3512900173664093, 0.12917225062847137, 0.45908963680267334, 1.1858102083206177, 0.24509409070014954, -0.0913926512002945, -0.7780135869979858, -1.5845741033554077, 2.1318466663360596, -1.5370445251464844, 1.9548959732055664, 0.9314767122268677, -0.04176115617156029, -1.761020302772522, -1.7382125854492188, 1.3895015716552734, 1.2044703960418701, 2.452019214630127, 0.6025866866111755, 0.4593513011932373, -0.7525599598884583, -0.6728993654251099, 0.3347247242927551, -1.023647427558899, -0.8465502858161926, 0.1286337971687317, 2.3825876712799072, 1.7111724615097046, -0.4573063254356384, -0.2949409782886505, -0.9618406295776367, 1.2828654050827026, -0.18376018106937408, 0.10480163246393204, 2.01017427444458, -0.2968357503414154, -1.2057212591171265, 1.3028889894485474, -2.328425168991089, 0.17153213918209076, 2.0166242122650146, 0.3376878798007965, 0.015936486423015594, -1.4097193479537964, -0.6884937882423401, -0.23985645174980164, -0.4112154543399811, -1.308953046798706, 0.4814533293247223, -0.36399832367897034, -0.9942899346351624, -1.4951391220092773, 0.06635022163391113, -1.1659750938415527, -1.6165027618408203, 0.40228813886642456, 1.6482869386672974, 2.0471410751342773, -0.7937526106834412, 1.4186601638793945, -0.2528727054595947, 0.23253968358039856, 1.2164019346237183, 1.2560044527053833, 3.2521204948425293, 1.7467023134231567, -1.2459187507629395, 0.6253569722175598, -0.2679944932460785, -0.465192973613739, 1.0733697414398193, -1.0314077138900757, 1.2128609418869019, -0.14177590608596802, -1.3351010084152222, -1.218156337738037, 0.9674471616744995, 0.5043021440505981, 0.061699625104665756, -0.5551394820213318, 1.2550532817840576, 0.15702839195728302, 1.3174306154251099, 0.5031455159187317, -0.21013101935386658, 0.5345088243484497, -0.40288224816322327, -0.5450083017349243, 1.6102495193481445, 0.12142989039421082, -1.4903676509857178, -2.427344560623169, -0.1929681897163391, -0.8167267441749573, -0.10231394320726395, -0.6452423930168152, -1.12373948097229, 1.6678730249404907, 0.4831791818141937, -1.2251179218292236, -0.27008265256881714, -0.38414597511291504, -0.5899801254272461, 2.63535475730896, -1.449446439743042, -0.197987899184227, -0.8973850607872009, -0.4724600911140442, 1.6192290782928467, -1.1760306358337402, -0.1983477920293808, -0.9542373418807983, -0.6013707518577576, -1.3421982526779175, -0.4553011655807495, -0.1836806982755661, -0.8740154504776001, 0.6304130554199219, 0.17041029036045074, -1.1457303762435913, -0.26456642150878906, -0.8872331380844116, 0.784782350063324, -0.1305178999900818, 0.2181681990623474, 1.7716577053070068, 0.43136537075042725, -0.3894168436527252, 0.7307069897651672, 1.1883937120437622, 0.5873851180076599, -0.6861367225646973, 0.11120244115591049, -0.662338376045227, 0.2715076506137848, -1.2220884561538696, 0.3469353914260864, -2.9050474166870117, 0.7293013334274292, -0.009869793429970741, -0.09993777424097061, 0.008358004502952099, -1.2825353145599365, 1.183993935585022, 2.614020824432373, -1.0877171754837036, 0.5858452320098877, 0.3291216492652893, 1.1740713119506836, -1.6358803510665894, 0.16563677787780762, -0.4531904458999634, 2.1071479320526123, 0.1650865226984024, 1.2571892738342285, -0.5282933115959167, -2.3226985931396484, 0.5690370798110962, -1.214303731918335, -1.12895667552948, 0.8130946159362793, -0.8749220967292786, 0.07955528795719147, -1.268908143043518, -0.12225337326526642, -1.0355757474899292, -1.2435842752456665, 0.7167388200759888, 0.14306114614009857, 0.5426996946334839, -0.604723334312439, 0.31112992763519287, -2.1405563354492188, -1.3765168190002441, -0.1700829714536667, -0.9543154239654541, 0.5068519115447998, -0.3049728274345398, 0.6398226022720337, -0.10974085330963135, 0.0689256563782692, 0.3161393702030182, 1.4507821798324585, 3.2111124992370605, 0.21210342645645142, 0.42415642738342285, -0.11484955251216888, -0.9657882452011108, 1.4830846786499023, 0.933550238609314, -0.0786159485578537, -0.742009162902832, -0.8948075175285339, 1.2761449813842773, 1.9558837413787842, 1.021815538406372, 0.10402894765138626, -0.8281885385513306, -0.6695970892906189, 0.058003079146146774, 0.19551880657672882, 0.48437824845314026, 1.0344114303588867, -0.06005837395787239, 0.04288226738572121, 1.4268635511398315, 1.1507134437561035, -0.45504313707351685, 0.47847723960876465, -0.8834258317947388, -0.3900630474090576, 0.48564520478248596, 0.29003268480300903, 0.009250662289559841, 0.3915208876132965, -1.0133904218673706, -0.1951683610677719, -0.22691455483436584, -1.0212311744689941, -0.7775259017944336, -0.4204055964946747, -0.36766254901885986, 1.6660867929458618, 0.017045289278030396, -0.3331364691257477, 0.037289638072252274, -0.7854126691818237, -0.1456650048494339, -0.9934423565864563, 0.2657468914985657, -0.1240856871008873, -0.04855814576148987, -0.042668137699365616, 1.7912330627441406, -0.8876420855522156, -2.201390027999878, 0.19851170480251312, 0.2059403955936432, -0.5039172768592834, 0.055859167128801346, 1.6683236360549927, 0.5454955697059631, 1.4087249040603638, 1.3732131719589233, 1.0000858306884766, -0.6561598777770996, -1.2912404537200928, 0.7169948220252991, 0.8847673535346985, -1.3731967210769653, 0.9805645942687988, -0.11678764969110489, -0.49603110551834106, 0.7079955339431763, 1.3420946598052979, 0.38923007249832153, -1.9533255100250244, 0.7662093043327332, -0.9016619324684143, 0.7735264301300049, 0.6972054839134216, 0.7342417240142822, 0.23949238657951355, 0.9655759334564209, -1.2818591594696045, -1.0871391296386719, -0.7422055006027222, -0.5562276244163513, 1.8888747692108154, -0.20772531628608704, 0.5369988083839417, -0.1621297150850296, -1.2143293619155884, 0.010360629297792912, 0.6864105463027954, 0.37722647190093994, -0.1978835016489029, 0.8400539755821228, -0.7162641882896423, -1.131792664527893, -1.4332149028778076, -0.5025126934051514, -0.8112549185752869, -0.8885276317596436, 0.9318114519119263, 0.7629112005233765, 0.3341415226459503, 2.029088258743286, 0.6767482161521912, 0.13516981899738312, -2.659954309463501, 0.7786387205123901, 0.33846279978752136, 0.037693217396736145, 1.0583099126815796, 0.22976675629615784, 1.1970032453536987, 0.020440101623535156, 0.44765931367874146, -2.350247859954834, 2.2293760776519775, -0.28046977519989014, 0.7594943642616272, -0.07298491895198822, -0.10823594033718109, 1.0041780471801758, 0.5209531188011169, 0.6060962080955505, -1.171095371246338, 0.7976343035697937, -0.6414763927459717, 1.2018206119537354, 0.9122769832611084, -0.8257772922515869, 0.20530541241168976, 1.2059656381607056, 0.3861517608165741, -0.4814058542251587, -0.9425123929977417, -0.8507536053657532, 0.8299094438552856, 1.7686450481414795, -0.07026983797550201, 0.08363517373800278, 0.8137600421905518, 0.6759340763092041, -1.3883336782455444, -0.021860338747501373, -0.6848636269569397, -0.7965596318244934, 1.8083420991897583, 2.065903425216675, -0.02738182619214058, -0.25432080030441284, -0.7011738419532776, -1.3052177429199219, 0.8303707242012024, 0.05862894281744957, 0.1266838014125824, 0.6834907531738281, -0.7404804229736328, 1.200815200805664, 0.8310749530792236, 0.8770862817764282, 0.13611683249473572, 0.3394434452056885, 0.27367112040519714, -0.3128371238708496, -1.1553202867507935, -0.34949201345443726, -1.1913275718688965, -2.609224557876587, 0.45425674319267273, -0.2544444501399994, -1.519818902015686, 0.1449592411518097, -1.020326018333435, 0.7604082822799683, -0.6290088295936584, -1.0602385997772217, -1.4453530311584473, 0.3035905361175537, -0.1911933422088623, 0.8083449006080627, -1.590969443321228, -0.13878865540027618, 1.2590243816375732, 1.0163702964782715, -0.4343073070049286, 0.9336621165275574, 0.26902323961257935, 0.9746292233467102, 0.8838263750076294, -0.5054779648780823, 0.4881826937198639, 0.18610239028930664, -1.342836856842041, 0.4635799527168274, 1.3276368379592896, 0.2052464783191681, 1.4781690835952759, -0.416577011346817, -0.06459982693195343, 0.3986356556415558, -0.4290728271007538, -0.4831940531730652, -0.6846979260444641, 0.7879310846328735, 0.09544972330331802, -0.983678936958313, 0.06678477674722672, -0.16968032717704773, -0.19128891825675964, 0.3877142369747162, -1.475516438484192, -0.27553099393844604, -0.4354951083660126, -0.5576527714729309, -1.3826671838760376, -0.0850401297211647, 1.2296098470687866, -0.814821720123291, -0.1102290078997612, 0.5494474768638611, 0.4459573030471802, 0.6329898238182068, 0.6439912915229797, -0.7487757205963135, -0.45753344893455505, -0.3005563020706177, -0.3756358027458191, 0.29840344190597534, 1.1402530670166016, -0.12331392616033554, -0.9982744455337524, 0.6229295134544373, -0.2937227487564087, 0.13570797443389893, 1.9490147829055786, 0.04121064767241478, -0.8380087614059448, 0.339215487241745, -0.6774829626083374, 1.8608523607254028, 1.4747314453125, 1.3404430150985718, -0.16815394163131714, -0.8769612312316895, 0.6012077331542969, -0.1942833811044693, -0.30865341424942017, 0.8764846920967102, 0.4621089994907379, -0.17847295105457306, -1.376979112625122, 0.5722070932388306, 1.2472419738769531, -0.8590480089187622, -0.7488148808479309, -0.042197875678539276, -0.9146298170089722, 1.1483203172683716, 0.699765682220459, 0.3642676770687103, 0.26202964782714844, 1.7379206418991089, 0.6911903023719788, -0.5458595156669617, 0.4914334714412689, 0.3611049950122833, -0.1478254795074463, -2.1226248741149902, -1.0219563245773315, 0.21167834103107452, -0.34965837001800537, -1.4996817111968994, 1.2989501953125, -1.1966040134429932, -1.0048253536224365, 0.5481094121932983, 0.15578103065490723, 1.3586070537567139, 0.292389839887619, 1.7001285552978516, 2.076085090637207, 0.9235712885856628, 0.28221216797828674, 1.236575961112976, -0.11899839341640472, -0.4024277925491333, 1.835603952407837, -0.39154675602912903, 0.6391456127166748, 1.0144962072372437, -0.39804428815841675, -1.1051125526428223, -0.8439821600914001, -1.1079806089401245, -0.7460520267486572, 1.0871607065200806, 0.16961096227169037, -1.2025150060653687, 0.23276712000370026, 1.611703872680664, 0.07749396562576294, -0.238877072930336, 0.5926049947738647, 0.4441874921321869, -0.6761445999145508, -0.0775914192199707, -0.9967026114463806, 0.5169901847839355, -0.14861173927783966, -0.3266366720199585, 0.11611603200435638, 0.6453242301940918, 1.116212248802185, -0.017269916832447052, 0.10171634703874588, 1.356929898262024, -1.408980369567871, 1.3008193969726562, -0.7326781153678894, 0.24519288539886475, -2.340040445327759, 1.4707555770874023, -0.8138733506202698, 1.939728021621704, -2.664717674255371, 0.4227953851222992, -0.5429343581199646, -0.5245301127433777, 0.24967682361602783, -0.3429645001888275, 0.21599426865577698, -0.13594309985637665, -0.9609428644180298, -0.1759849190711975, -0.8777897357940674, 0.5036290287971497, 1.1956604719161987, 1.265947937965393, -0.9802796840667725, -0.14669619500637054, -1.6331034898757935, -0.2337898463010788, -0.6765348315238953, 0.21565799415111542, -1.972969889640808, -0.15127940475940704, -2.1246285438537598, -2.2993574142456055, -1.451502799987793, -0.933180570602417, 1.1669725179672241, 0.208893820643425, -0.9351122975349426, 1.0325303077697754, -0.32211732864379883, -1.703927993774414, 1.1270803213119507, -2.1381328105926514 ]
https://github.com/huggingface/datasets/issues/3578
label information get lost after parquet serialization
Hi ! We did a release of `datasets` today that may fix this issue. Can you try updating `datasets` and trying again ? EDIT: the issue is still there actually I think we can fix that by storing the Features in the parquet schema metadata, and then reload them when loading the parquet file
## Describe the bug In *dataset_info.json* file, information about the label get lost after the dataset serialization. ## Steps to reproduce the bug ```python from datasets import load_dataset # normal save dataset = load_dataset('glue', 'sst2', split='train') dataset.save_to_disk("normal_save") # save after parquet serialization dataset.to_parquet("glue-sst2-train.parquet") dataset = load_dataset("parquet", data_files='glue-sst2-train.parquet') dataset.save_to_disk("save_after_parquet") ``` ## Expected results I expected to keep label information in *dataset_info.json* file even after parquet serialization ## Actual results In the normal serialization i got ```json "label": { "num_classes": 2, "names": [ "negative", "positive" ], "names_file": null, "id": null, "_type": "ClassLabel" }, ``` And after parquet serialization i got ```json "label": { "dtype": "int64", "id": null, "_type": "Value" }, ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: ubuntu 20.04 - Python version: 3.8.10 - PyArrow version: 6.0.1
1,006
54
label information get lost after parquet serialization ## Describe the bug In *dataset_info.json* file, information about the label get lost after the dataset serialization. ## Steps to reproduce the bug ```python from datasets import load_dataset # normal save dataset = load_dataset('glue', 'sst2', split='train') dataset.save_to_disk("normal_save") # save after parquet serialization dataset.to_parquet("glue-sst2-train.parquet") dataset = load_dataset("parquet", data_files='glue-sst2-train.parquet') dataset.save_to_disk("save_after_parquet") ``` ## Expected results I expected to keep label information in *dataset_info.json* file even after parquet serialization ## Actual results In the normal serialization i got ```json "label": { "num_classes": 2, "names": [ "negative", "positive" ], "names_file": null, "id": null, "_type": "ClassLabel" }, ``` And after parquet serialization i got ```json "label": { "dtype": "int64", "id": null, "_type": "Value" }, ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.0 - Platform: ubuntu 20.04 - Python version: 3.8.10 - PyArrow version: 6.0.1 Hi ! We did a release of `datasets` today that may fix this issue. Can you try updating `datasets` and trying again ? EDIT: the issue is still there actually I think we can fix that by storing the Features in the parquet schema metadata, and then reload them when loading the parquet file
[ -1.0838894844055176, -0.8432721495628357, -0.7499307990074158, 1.5380396842956543, -0.23110318183898926, -1.2308356761932373, 0.19037970900535583, -1.1205775737762451, 1.6695581674575806, -0.8128418326377869, 0.376192569732666, -1.6553822755813599, -0.008222290314733982, -0.6558442115783691, -0.6715793013572693, -0.9282334446907043, -0.4247913956642151, -0.7249606847763062, 0.9810738563537598, 2.4264681339263916, 1.1473817825317383, -1.4199368953704834, 2.618299961090088, 0.6064768433570862, -0.1516418159008026, -0.8932021260261536, 0.5433859825134277, 0.0500880628824234, -1.2382023334503174, -0.37118396162986755, -0.9573001861572266, -0.11248514801263809, -0.5477016568183899, -0.5561839938163757, 0.02153308503329754, 0.4657648205757141, -0.3737052381038666, -0.5567710399627686, -0.5864540934562683, -0.8675875067710876, 0.4319431483745575, -0.32047364115715027, 0.9638572931289673, -0.5020990371704102, 1.7610713243484497, -0.6084231734275818, 0.43986591696739197, 0.7032772898674011, 1.2320324182510376, 0.2847520112991333, 0.07665761560201645, 0.2748834192752838, 0.42024627327919006, -0.05409001559019089, 0.5529147386550903, 1.1272794008255005, 0.6101271510124207, 0.5732333660125732, 0.8159860372543335, -2.1937522888183594, 1.2259358167648315, -1.1244877576828003, 0.19341538846492767, 1.3841339349746704, -0.8240482807159424, 0.3814541697502136, -1.7867326736450195, 0.012044956907629967, 0.5721599459648132, -2.219175338745117, 0.3513415455818176, -1.3412132263183594, -0.5398198366165161, 1.0233925580978394, 0.33984559774398804, -1.1242895126342773, 0.08487862348556519, -0.32873857021331787, 0.9419360756874084, 0.35378432273864746, 1.134637475013733, -1.6624501943588257, -0.06528658419847488, -0.3359147310256958, 0.06201259046792984, -1.225882649421692, -1.4802162647247314, 0.5500733852386475, 0.5822433233261108, 0.5423453450202942, -0.1530158519744873, 1.1052566766738892, -1.0723923444747925, 0.7103034853935242, -1.0575169324874878, -1.705548644065857, -1.3583729267120361, -2.197338342666626, -2.3240115642547607, 0.7221997380256653, -0.517278790473938, -0.4447646737098694, 2.077045440673828, -0.9598440527915955, -1.6411654949188232, 1.1556929349899292, 0.30959954857826233, -0.010292604565620422, 2.32685923576355, 0.2598995864391327, -0.7271801233291626, 0.5642685890197754, -0.7139008045196533, 0.6926232576370239, -0.3392283320426941, 1.2865806818008423, 0.378009557723999, -1.0512125492095947, 1.5662827491760254, -0.3914888799190521, 0.6520562767982483, -0.5906266570091248, -0.5051165223121643, -0.7220240831375122, 0.2870516777038574, 1.8678038120269775, -0.26173436641693115, 1.5195376873016357, -0.21903853118419647, -1.5544497966766357, -1.5352363586425781, 0.9334272742271423, 0.459095299243927, -0.751793622970581, 0.08017739653587341, -0.3024939298629761, 0.13015347719192505, -0.19189392030239105, 1.2298386096954346, 1.2680211067199707, 0.8609156012535095, -0.4099973738193512, -0.8418899774551392, 0.1815786063671112, 0.016754701733589172, -0.8051739931106567, -1.7255505323410034, -0.31307369470596313, 0.15853798389434814, 0.5948131680488586, -1.2241417169570923, 1.7246578931808472, 0.907848060131073, 1.8941303491592407, 0.9963352084159851, -0.4207877218723297, 1.4829368591308594, 0.164634108543396, 1.824196219444275, -0.48847243189811707, 0.647616446018219, -0.363794207572937, -1.2279856204986572, 0.8987897038459778, -0.29762303829193115, -2.0100820064544678, -0.8169662356376648, -0.8410974144935608, -0.15683166682720184, -0.6623163819313049, 0.9509132504463196, -0.3272795081138611, -1.473475694656372, 0.21601487696170807, -0.6060718894004822, 0.06269720941781998, -1.2176555395126343, 0.3411601781845093, 0.6456113457679749, -0.6250362396240234, 0.07968852669000626, -0.2473604679107666, -1.2581000328063965, -0.43266284465789795, 0.30400350689888, 1.8386082649230957, -0.8665754199028015, 0.9540463089942932, 1.0881403684616089, -0.7944801449775696, 0.009911667555570602, 0.22174040973186493, -0.3567647933959961, 0.7927613854408264, -1.1229681968688965, -0.5435600876808167, 1.204960823059082, -0.18398788571357727, -0.6036153435707092, 1.4555076360702515, 0.6504416465759277, -0.9972633719444275, -0.15748600661754608, -0.20823867619037628, -0.796593964099884, -0.005050899926573038, -1.5405045747756958, -0.0617990717291832, 0.40760692954063416, -1.491085171699524, -0.4616106450557709, -0.1431565135717392, 1.287052869796753, -0.22197109460830688, 1.3441102504730225, -0.41250619292259216, -0.29153406620025635, -0.4251736104488373, -0.4114951193332672, 0.15732310712337494, -0.21877431869506836, -0.6755498647689819, 0.17849741876125336, -0.8187795281410217, 0.2173907309770584, 1.3877336978912354, 0.2951514422893524, -0.018429366871714592, 0.5807933807373047, 1.113343596458435, 0.4763650894165039, 0.04442199319601059, -0.8966657519340515, -1.3920143842697144, 2.0100059509277344, -1.486627221107483, 1.9756722450256348, 0.6440899968147278, -0.055208295583724976, -1.812812089920044, -1.9453370571136475, 1.3317346572875977, 1.1571892499923706, 2.4104268550872803, 0.45832374691963196, 0.5000494718551636, -0.8403034210205078, -0.6561005115509033, 0.40833190083503723, -0.9810980558395386, -0.6141763925552368, 0.22993412613868713, 2.3456685543060303, 1.7306804656982422, -0.49653711915016174, -0.1815001219511032, -0.9463740587234497, 1.4301623106002808, -0.1912359893321991, 0.26741302013397217, 2.0035319328308105, -0.3470819592475891, -1.0793737173080444, 1.3521121740341187, -2.329883098602295, 0.09496700763702393, 2.06734561920166, 0.2570927143096924, 0.04225020855665207, -1.359654188156128, -0.6874432563781738, -0.2363685518503189, -0.43267449736595154, -1.2173011302947998, 0.5455942153930664, -0.2575891315937042, -0.7485017776489258, -1.4433250427246094, 0.19373883306980133, -1.1625105142593384, -1.7133756875991821, 0.31577613949775696, 1.9279584884643555, 2.0207204818725586, -0.7935904860496521, 1.5665472745895386, -0.3537399470806122, 0.07077614963054657, 1.230696678161621, 1.1903992891311646, 3.1193161010742188, 1.8960696458816528, -1.3282450437545776, 0.6352212429046631, -0.10235307365655899, -0.5007703304290771, 1.136790156364441, -1.2192356586456299, 1.2632135152816772, -0.17011509835720062, -1.055477261543274, -1.1964720487594604, 0.8720349073410034, 0.4112022817134857, 0.1106918603181839, -0.4668131470680237, 1.166150689125061, 0.10800503194332123, 1.3401689529418945, 0.5965786576271057, -0.4324324429035187, 0.6621480584144592, -0.4245736002922058, -0.4481026530265808, 1.5569313764572144, 0.1965598464012146, -1.4047696590423584, -2.2864787578582764, -0.2971701920032501, -0.8743284940719604, 0.07853260636329651, -0.49690428376197815, -0.9468958973884583, 1.7177807092666626, 0.36225736141204834, -1.2774391174316406, -0.32972782850265503, -0.3637728989124298, -0.570003867149353, 2.806638479232788, -1.4304769039154053, -0.19052216410636902, -0.9557749629020691, -0.7124253511428833, 1.7181710004806519, -1.129870891571045, -0.2427598237991333, -1.041316270828247, -0.420028954744339, -1.4148142337799072, -0.5243769288063049, 0.15254464745521545, -1.0139802694320679, 1.0153610706329346, 0.18326111137866974, -1.2180628776550293, -0.3536766469478607, -0.9092720746994019, 0.8900404572486877, -0.2023279070854187, 0.1946348249912262, 1.9678223133087158, 0.43893638253211975, -0.319494366645813, 0.7537497282028198, 1.198629379272461, 0.6562876105308533, -0.6569969058036804, 0.21859562397003174, -0.6555752754211426, 0.2842831611633301, -1.3639419078826904, 0.226564422249794, -2.8280134201049805, 0.5721282958984375, -0.14087939262390137, -0.005093684885650873, -0.021923793479800224, -1.3009121417999268, 1.0216097831726074, 2.5008785724639893, -1.1860297918319702, 0.43238139152526855, 0.3519653081893921, 1.183050513267517, -1.6204525232315063, 0.30991682410240173, -0.4167174696922302, 2.0466387271881104, 0.09969674795866013, 1.1306995153427124, -0.45052868127822876, -2.200248956680298, 0.6374670267105103, -1.294854998588562, -1.2421481609344482, 0.7524648308753967, -0.8834588527679443, 0.19856998324394226, -1.4570778608322144, -0.2865118384361267, -0.8416423201560974, -1.2284600734710693, 0.6135479211807251, 0.10861055552959442, 0.36900168657302856, -0.5684919953346252, 0.4186362028121948, -2.181370735168457, -1.4518306255340576, -0.322623074054718, -0.8726503849029541, 0.4240884780883789, -0.40482649207115173, 0.8312738537788391, -0.26055967807769775, 0.08211097866296768, 0.3638938069343567, 1.4599299430847168, 3.411930799484253, 0.1940159946680069, 0.28488707542419434, -0.22939184308052063, -1.0155969858169556, 1.4985491037368774, 0.9382855296134949, -0.029581192880868912, -0.5309471487998962, -1.1028602123260498, 1.1822569370269775, 2.0167272090911865, 1.0229805707931519, -0.0564269945025444, -0.8467884659767151, -0.7196057438850403, -0.10034050792455673, 0.12987454235553741, 0.5002202987670898, 0.8572529554367065, 0.11854925751686096, 0.09598633646965027, 1.436116337776184, 1.0938037633895874, -0.2297065407037735, 0.20115801692008972, -0.7435217499732971, -0.4666733145713806, 0.6061874032020569, 0.3294602930545807, -0.0030945977196097374, 0.3467155396938324, -1.009649634361267, -0.31463056802749634, -0.45273518562316895, -0.9164444804191589, -0.6416876912117004, -0.5001087188720703, -0.315422922372818, 1.606787919998169, 0.11525885760784149, -0.5837453007698059, -0.07077586650848389, -0.8029491305351257, -0.036427125334739685, -1.1331050395965576, 0.31698906421661377, -0.2036198377609253, -0.15353858470916748, -0.09966650605201721, 1.73647141456604, -0.9219048023223877, -1.987175464630127, 0.15687134861946106, 0.2819948196411133, -0.27012792229652405, 0.17596811056137085, 1.693390130996704, 0.6500007510185242, 1.3682365417480469, 1.2881107330322266, 0.8869052529335022, -0.6521346569061279, -1.3473398685455322, 0.5653883814811707, 1.0807963609695435, -1.4874318838119507, 0.7829112410545349, 0.016505973413586617, -0.5178645849227905, 0.6043781042098999, 1.2476423978805542, 0.5027968883514404, -1.9175158739089966, 0.758544385433197, -0.9098787903785706, 0.7436336278915405, 0.7536954879760742, 0.6760635375976562, 0.13723443448543549, 0.7689767479896545, -1.1669124364852905, -1.0818196535110474, -0.6838192939758301, -0.6995222568511963, 1.9198012351989746, -0.3315528333187103, 0.576020359992981, -0.27922797203063965, -1.216349482536316, -0.024357236921787262, 0.7228297591209412, 0.3818846642971039, -0.4689895212650299, 0.7333364486694336, -0.5894120931625366, -1.0140509605407715, -1.406769037246704, -0.3938601315021515, -1.1559669971466064, -0.973767876625061, 1.0860350131988525, 0.82574862241745, 0.3430069386959076, 1.814505696296692, 0.8556820750236511, 0.25435131788253784, -2.5752034187316895, 0.8976289629936218, 0.32372671365737915, -0.1216244176030159, 0.8599309921264648, 0.36096829175949097, 1.1013131141662598, -0.08689816296100616, 0.56682950258255, -2.4718494415283203, 2.331650972366333, -0.20201615989208221, 0.6612333059310913, 0.03646210581064224, -0.18208153545856476, 1.0923116207122803, 0.5322205424308777, 0.47971969842910767, -1.0683273077011108, 0.649603009223938, -0.5155811905860901, 1.181042194366455, 0.8943642377853394, -0.7592673897743225, -0.0048846034333109856, 1.4249444007873535, 0.5815852880477905, -0.5939314961433411, -0.9702775478363037, -0.9232819080352783, 0.9580734968185425, 1.7938628196716309, -0.10905078798532486, -0.019744321703910828, 0.9532877802848816, 0.5999137163162231, -1.2601187229156494, 0.11181830614805222, -0.7402446269989014, -0.7405856847763062, 1.699771523475647, 2.064063310623169, -0.11818166822195053, -0.18415896594524384, -0.7797045707702637, -1.2467577457427979, 0.8284090161323547, 0.0034243986010551453, 0.12389348447322845, 0.6557169556617737, -0.719635546207428, 1.0586196184158325, 0.859781801700592, 0.887617290019989, 0.20657888054847717, 0.309981107711792, 0.44670215249061584, -0.3489447832107544, -1.1493849754333496, -0.16563548147678375, -1.0000568628311157, -2.5419511795043945, 0.5169406533241272, -0.20470449328422546, -1.3585340976715088, -0.0790150836110115, -1.042014718055725, 0.9915401339530945, -0.5914862155914307, -1.0796922445297241, -1.5332648754119873, 0.1994967758655548, 0.040715985000133514, 0.9858400821685791, -1.5171576738357544, -0.27646708488464355, 1.2657045125961304, 0.9446650147438049, -0.7968578338623047, 0.9258905649185181, 0.12792210280895233, 1.061537504196167, 0.7758106589317322, -0.33782920241355896, 0.5350387096405029, 0.011177541688084602, -1.3440243005752563, 0.4245135188102722, 1.22560715675354, 0.20824994146823883, 1.5232423543930054, -0.5421932935714722, 0.11394510418176651, 0.36282476782798767, -0.46408194303512573, -0.47008734941482544, -0.5622683167457581, 0.6221686601638794, 0.001512443646788597, -0.8832741379737854, 0.03281982243061066, -0.010843600146472454, -0.24114489555358887, 0.1851436197757721, -1.4174662828445435, -0.1615448296070099, -0.3722226917743683, -0.5934872031211853, -1.1428585052490234, -0.08036714792251587, 1.3463079929351807, -0.6922479271888733, -0.17383620142936707, 0.5048825144767761, 0.23468121886253357, 0.49226176738739014, 0.5449530482292175, -0.7612714767456055, -0.3128378391265869, -0.2550714313983917, -0.4108407497406006, 0.3625171482563019, 1.4902855157852173, -0.10562296956777573, -0.9665055274963379, 0.6976295113563538, -0.29827502369880676, 0.0614318922162056, 2.0025360584259033, 0.10988661646842957, -0.7768049240112305, 0.3236619532108307, -0.7499171495437622, 1.8783950805664062, 1.7531347274780273, 1.375746488571167, -0.16263696551322937, -0.8971602320671082, 0.6423772573471069, -0.4780849814414978, -0.43416133522987366, 0.8454834818840027, 0.3188079297542572, -0.16792505979537964, -1.4721364974975586, 0.8280331492424011, 1.2355455160140991, -0.90822833776474, -0.8094510436058044, 0.2034107893705368, -0.7691596746444702, 1.0605299472808838, 0.6009880900382996, 0.4613780379295349, 0.362870991230011, 1.6090253591537476, 0.8358615636825562, -0.4203189015388489, 0.455001562833786, 0.5766436457633972, -0.1273043304681778, -2.0355255603790283, -1.286180019378662, 0.41774195432662964, -0.6838960647583008, -1.6972625255584717, 1.5158441066741943, -1.1451960802078247, -1.0305196046829224, 0.6120768785476685, 0.034736812114715576, 1.4220433235168457, 0.4151979088783264, 1.5919440984725952, 2.059382915496826, 0.9526762962341309, 0.41516974568367004, 1.306885838508606, -0.1698094755411148, -0.4538664221763611, 1.873058795928955, -0.506339430809021, 0.4253382086753845, 1.141830325126648, -0.32781678438186646, -1.0769224166870117, -0.744107723236084, -1.2638458013534546, -0.7110610008239746, 1.1135380268096924, 0.07907368242740631, -1.1446707248687744, 0.2743266522884369, 1.6126995086669922, 0.10633134841918945, -0.4449542164802551, 0.7746215462684631, 0.35152530670166016, -0.8861258029937744, 0.002460729330778122, -0.8582121729850769, 0.5746719241142273, -0.17881301045417786, -0.37441977858543396, 0.3481753170490265, 0.4450821280479431, 1.4609999656677246, -0.05292099714279175, 0.1290159821510315, 1.097686767578125, -1.4698278903961182, 1.5384645462036133, -0.7866032719612122, 0.22983118891716003, -2.3783304691314697, 1.3446269035339355, -0.7788281440734863, 1.971814513206482, -2.589369297027588, 0.46796542406082153, -0.488516628742218, -0.41237935423851013, 0.23876811563968658, -0.40461140871047974, 0.15404440462589264, -0.06420472264289856, -1.2313218116760254, -0.046679019927978516, -0.7087996006011963, 0.6390740871429443, 1.1386120319366455, 1.5276603698730469, -1.171939730644226, -0.40469926595687866, -1.74595308303833, -0.10111530870199203, -0.6269559860229492, 0.22425195574760437, -1.9173662662506104, -0.20535287261009216, -1.8536889553070068, -2.3788418769836426, -1.3541463613510132, -0.8619786500930786, 1.091372013092041, 0.10883992165327072, -0.921457052230835, 1.1637486219406128, -0.39569172263145447, -1.8626021146774292, 1.152850866317749, -2.1779346466064453 ]
https://github.com/huggingface/datasets/issues/3572
ConnectionError in IndicGLUE dataset
@sahoodib, thanks for reporting. Indeed, none of the data links appearing in the IndicGLUE website are working, e.g.: https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/soham-articles.tar.gz ``` <Error> <Code>UserProjectAccountProblem</Code> <Message>User project billing account not in good standing.</Message> <Details> The billing account for the owning project is disabled in state delinquent </Details> </Error> ``` We have contacted the data owners to inform them about their issue and ask them if they plan to fix it.
While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403)
1,007
67
ConnectionError in IndicGLUE dataset While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403) @sahoodib, thanks for reporting. Indeed, none of the data links appearing in the IndicGLUE website are working, e.g.: https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/soham-articles.tar.gz ``` <Error> <Code>UserProjectAccountProblem</Code> <Message>User project billing account not in good standing.</Message> <Details> The billing account for the owning project is disabled in state delinquent </Details> </Error> ``` We have contacted the data owners to inform them about their issue and ask them if they plan to fix it.
[ -1.1895896196365356, -0.8875453472137451, -0.7276692986488342, 1.3748208284378052, -0.06433413177728653, -1.3049675226211548, 0.1783023476600647, -0.9923491477966309, 1.637059211730957, -0.7730406522750854, 0.35627099871635437, -1.684881329536438, -0.0421498641371727, -0.6647260785102844, -0.7328818440437317, -0.9038901925086975, -0.34222471714019775, -0.8068444132804871, 0.9663375616073608, 2.555382251739502, 1.2775980234146118, -1.3340842723846436, 2.757791042327881, 0.6382102370262146, -0.2653835117816925, -1.090947151184082, 0.5867471098899841, -0.05082520842552185, -1.2815018892288208, -0.41415345668792725, -0.9515367150306702, 0.031853459775447845, -0.6569298505783081, -0.5165157318115234, 0.19827421009540558, 0.3009549379348755, -0.2508060932159424, -0.37583285570144653, -0.5073969960212708, -0.8224905133247375, 0.45857781171798706, -0.4345468580722809, 0.9938988089561462, -0.3660060465335846, 1.7594915628433228, -0.5969464182853699, 0.4175255298614502, 0.6489091515541077, 1.321487545967102, 0.17166036367416382, -0.0650709792971611, 0.25683945417404175, 0.38285207748413086, 0.08299539983272552, 0.39981478452682495, 1.0780024528503418, 0.6141878962516785, 0.5245230197906494, 0.6441579461097717, -2.2158288955688477, 1.2857251167297363, -0.8921509981155396, 0.20024415850639343, 1.3753788471221924, -0.9566315412521362, 0.32923567295074463, -1.8845524787902832, -0.16651155054569244, 0.5547213554382324, -2.3536431789398193, 0.17125584185123444, -1.3335403203964233, -0.4881589114665985, 0.9274510741233826, 0.2723134458065033, -1.305747628211975, 0.1803114265203476, -0.40964969992637634, 1.0026841163635254, 0.5211477279663086, 1.216866374015808, -1.7296347618103027, -0.11484511196613312, -0.26428213715553284, 0.19011622667312622, -1.2700446844100952, -1.5196397304534912, 0.6241042017936707, 0.6648397445678711, 0.5899576544761658, -0.12663795053958893, 0.8855704665184021, -0.9359840750694275, 0.8759666681289673, -0.9009803533554077, -1.7504403591156006, -1.4235939979553223, -2.264139413833618, -2.3611061573028564, 0.7479575872421265, -0.39858055114746094, -0.43087172508239746, 1.968289852142334, -0.9755235314369202, -1.8639520406723022, 1.0741939544677734, 0.22873088717460632, -0.015382527373731136, 2.3775737285614014, 0.19842678308486938, -0.8714134693145752, 0.3640074133872986, -0.7555127143859863, 0.7220114469528198, -0.3866058886051178, 1.422325849533081, 0.5092123746871948, -0.9684323668479919, 1.6502337455749512, -0.5528785586357117, 0.44657209515571594, -0.7254002690315247, -0.4917293190956116, -0.7447181344032288, 0.22927357256412506, 1.8974106311798096, -0.3368986248970032, 1.6389758586883545, -0.2747547924518585, -1.549564003944397, -1.511309027671814, 0.7898805141448975, 0.5163456201553345, -0.8711121082305908, 0.14159798622131348, -0.356136679649353, 0.17565135657787323, 0.0420067235827446, 1.0655783414840698, 1.2563163042068481, 0.7543372511863708, -0.3106088638305664, -0.9085407853126526, 0.32087257504463196, -0.0000031106173992156982, -0.6823390126228333, -1.8665335178375244, -0.3724663555622101, 0.21870344877243042, 0.705723762512207, -1.1365282535552979, 1.8104091882705688, 0.8030577301979065, 1.9807960987091064, 0.9557661414146423, -0.3410588204860687, 1.4885340929031372, -0.044405676424503326, 1.9080793857574463, -0.4521138370037079, 0.6275754570960999, -0.4105512499809265, -1.0491082668304443, 0.7616739869117737, -0.33464133739471436, -2.018348217010498, -0.7061240077018738, -0.8766444325447083, -0.13981521129608154, -0.8572033047676086, 1.0050932168960571, -0.146482914686203, -1.2797648906707764, 0.3170498013496399, -0.7323989272117615, 0.11840709298849106, -1.3683855533599854, 0.2327154576778412, 0.7101237773895264, -0.6171697974205017, 0.08838238567113876, -0.30710163712501526, -1.3383314609527588, -0.5647355914115906, 0.25449252128601074, 1.9526350498199463, -0.7232213616371155, 0.8941745162010193, 0.9484439492225647, -0.6597669720649719, 0.03079533949494362, 0.39855971932411194, -0.374571293592453, 0.7827050685882568, -1.0446363687515259, -0.327928751707077, 1.1293606758117676, -0.15646260976791382, -0.5342724323272705, 1.4957590103149414, 0.8549809455871582, -0.991455614566803, -0.21239180862903595, -0.19110871851444244, -0.6980533599853516, -0.0443090945482254, -1.6872388124465942, -0.1794705092906952, 0.25136932730674744, -1.3633687496185303, -0.5252054929733276, -0.20536451041698456, 1.396579384803772, -0.0928131639957428, 1.4767428636550903, -0.343951940536499, -0.1958480328321457, -0.41725146770477295, -0.3832133710384369, 0.14919613301753998, -0.20036040246486664, -0.7217127084732056, 0.3466397821903229, -0.7854548692703247, 0.2679232656955719, 1.4992517232894897, 0.3467777669429779, 0.07203398644924164, 0.47052428126335144, 1.0903998613357544, 0.23561838269233704, -0.037241727113723755, -0.932161808013916, -1.5947775840759277, 2.070719003677368, -1.4674326181411743, 1.9052491188049316, 0.7860319018363953, -0.059220053255558014, -1.7481887340545654, -1.8261715173721313, 1.3233511447906494, 1.0849484205245972, 2.421184778213501, 0.6952610611915588, 0.370673269033432, -0.8037093877792358, -0.6226456165313721, 0.33928215503692627, -1.0137659311294556, -0.8446805477142334, 0.16045303642749786, 2.3412349224090576, 1.6836544275283813, -0.6099733710289001, -0.10930041968822479, -1.01039719581604, 1.183868169784546, -0.14260540902614594, 0.19982299208641052, 1.964001178741455, -0.3012002408504486, -1.1669598817825317, 1.254995346069336, -2.337040901184082, 0.30592596530914307, 2.0835366249084473, 0.23317641019821167, 0.08652528375387192, -1.423071265220642, -0.6291611790657043, -0.2124931812286377, -0.43629419803619385, -1.1794335842132568, 0.5307543277740479, -0.3077888786792755, -0.94178706407547, -1.4768484830856323, 0.09800467640161514, -1.027278184890747, -1.7107799053192139, 0.31279465556144714, 1.727952241897583, 2.046438694000244, -0.7281479835510254, 1.400303840637207, -0.30058205127716064, 0.13513688743114471, 1.3093671798706055, 1.2813000679016113, 3.1779348850250244, 1.9939936399459839, -1.2602721452713013, 0.8653712272644043, -0.18997758626937866, -0.4611924886703491, 1.0983576774597168, -1.0827003717422485, 1.1418070793151855, -0.3142116069793701, -1.2479515075683594, -1.18754243850708, 0.9600516557693481, 0.4116545021533966, -0.021612832322716713, -0.5412958264350891, 1.236310362815857, 0.09931718558073044, 1.3431363105773926, 0.5313599109649658, -0.29768648743629456, 0.5521299839019775, -0.3423992991447449, -0.5286772847175598, 1.648712396621704, 0.1941998451948166, -1.4680441617965698, -2.382713794708252, -0.23660433292388916, -0.8890542387962341, -0.08371327817440033, -0.6787375211715698, -1.028165578842163, 1.6452140808105469, 0.4674183130264282, -1.2351553440093994, -0.3504243791103363, -0.4653944969177246, -0.5916329026222229, 2.6920297145843506, -1.5114805698394775, -0.2546272277832031, -1.0083879232406616, -0.5547900795936584, 1.6154009103775024, -1.2781283855438232, -0.10562985390424728, -1.0082676410675049, -0.6193566918373108, -1.4130141735076904, -0.5200369358062744, -0.12401934713125229, -0.8028746843338013, 0.6915820837020874, 0.1623360514640808, -1.1513118743896484, -0.33856144547462463, -0.8579341173171997, 0.7913126945495605, -0.1458742320537567, 0.32286199927330017, 1.909907579421997, 0.39244890213012695, -0.42093852162361145, 0.5659119486808777, 1.1210020780563354, 0.5686134696006775, -0.631372332572937, 0.2094472497701645, -0.6747866868972778, 0.3033927083015442, -1.3596842288970947, 0.23061925172805786, -2.84602689743042, 0.7427434921264648, -0.08824346214532852, -0.07891467958688736, -0.05601225048303604, -1.3288391828536987, 1.1567628383636475, 2.591951847076416, -1.166027545928955, 0.47019562125205994, 0.2265228033065796, 1.1515721082687378, -1.522126317024231, 0.2008643001317978, -0.38605549931526184, 2.1968319416046143, 0.11545956134796143, 1.1680026054382324, -0.39795809984207153, -2.202766180038452, 0.6804623603820801, -1.1931887865066528, -1.0184149742126465, 0.8165022730827332, -0.8284269571304321, -0.07819265872240067, -1.3466153144836426, -0.0848424956202507, -0.9311737418174744, -1.2242019176483154, 0.8428690433502197, 0.014382108114659786, 0.529474675655365, -0.6775184273719788, 0.3735521733760834, -2.1144535541534424, -1.2880936861038208, -0.20311744511127472, -0.932794988155365, 0.39526447653770447, -0.2805061340332031, 0.6644940376281738, -0.18236549198627472, -0.0011664731428027153, 0.40490400791168213, 1.3741329908370972, 3.3083395957946777, 0.15690678358078003, 0.4182451069355011, -0.18727266788482666, -0.9616621732711792, 1.4617815017700195, 0.9872899055480957, -0.134507417678833, -0.5283602476119995, -0.975393533706665, 1.3561972379684448, 1.9291821718215942, 0.9720366597175598, 0.23574994504451752, -0.8895416259765625, -0.7090985178947449, 0.058749306946992874, 0.126310333609581, 0.49494829773902893, 0.95131516456604, 0.05070854723453522, 0.11884332448244095, 1.4289675951004028, 1.2787445783615112, -0.3787282407283783, 0.5218174457550049, -0.9461967349052429, -0.33950749039649963, 0.5854877829551697, 0.2780902683734894, -0.04623522609472275, 0.41284406185150146, -0.8773458003997803, -0.20325487852096558, -0.2562409043312073, -0.9094583988189697, -0.7540252804756165, -0.5529866814613342, -0.3279809355735779, 1.6571974754333496, 0.04769531264901161, -0.48181259632110596, 0.002270776778459549, -0.7104538083076477, -0.1201687827706337, -1.0775697231292725, 0.14728130400180817, -0.08233053237199783, 0.016964461654424667, -0.042440805584192276, 1.6715459823608398, -0.8357445597648621, -2.104311466217041, 0.2799394726753235, 0.30434903502464294, -0.5554216504096985, 0.15411829948425293, 1.7128431797027588, 0.5047689080238342, 1.4396270513534546, 1.2874548435211182, 1.0483784675598145, -0.6420331597328186, -1.286653995513916, 0.7596805095672607, 0.9110832810401917, -1.554693341255188, 0.9631935954093933, -0.11800990998744965, -0.5212055444717407, 0.6597227454185486, 1.2588008642196655, 0.39523547887802124, -1.9528554677963257, 0.777279257774353, -0.8477826118469238, 0.7938061952590942, 0.6427074670791626, 0.8109011650085449, 0.2743169069290161, 0.8721821308135986, -1.27305006980896, -1.049211859703064, -0.7434819340705872, -0.5816466212272644, 1.8678169250488281, -0.10331258922815323, 0.4358576536178589, -0.18003320693969727, -1.335150957107544, -0.10692940652370453, 0.7058935761451721, 0.3971673250198364, -0.3378746807575226, 0.7555714845657349, -0.6525939106941223, -1.0357977151870728, -1.3220120668411255, -0.5189008712768555, -0.9748079180717468, -0.9453927278518677, 1.108605146408081, 0.8122627139091492, 0.33988842368125916, 1.961520791053772, 0.5336662530899048, 0.16773298382759094, -2.6093196868896484, 0.9124623537063599, 0.3310292661190033, 0.08628019690513611, 1.0350784063339233, 0.34373602271080017, 1.2268465757369995, -0.08349695056676865, 0.5359319448471069, -2.4037153720855713, 2.2529633045196533, -0.2075043022632599, 0.673919677734375, 0.04986709728837013, -0.13441258668899536, 1.0073589086532593, 0.4892462193965912, 0.6073446273803711, -1.19981849193573, 0.7626527547836304, -0.781118631362915, 1.170914649963379, 0.8641678690910339, -0.8504452705383301, 0.08419451117515564, 1.2273615598678589, 0.4278104603290558, -0.4720669984817505, -0.869879961013794, -0.856460690498352, 0.9780166149139404, 1.6730902194976807, -0.02358776517212391, 0.01699426770210266, 0.9242430329322815, 0.7012741565704346, -1.453812599182129, 0.06475798785686493, -0.7437465190887451, -0.7554920315742493, 1.6986260414123535, 2.0240509510040283, -0.013256803154945374, -0.20920366048812866, -0.8412978649139404, -1.3582751750946045, 0.7696179747581482, -0.016674384474754333, 0.0857657641172409, 0.7796195149421692, -0.6666184067726135, 1.185253620147705, 0.7652869820594788, 0.9389086365699768, 0.19717930257320404, 0.36204203963279724, 0.3495667576789856, -0.30739858746528625, -1.130907416343689, -0.23723886907100677, -1.1761682033538818, -2.5355775356292725, 0.6477107405662537, -0.2707556188106537, -1.367617130279541, 0.0807422548532486, -1.0530732870101929, 0.7944273352622986, -0.5763328075408936, -1.1031012535095215, -1.3142218589782715, 0.25452572107315063, -0.1881459355354309, 0.9122855067253113, -1.6032458543777466, -0.038931719958782196, 1.262937307357788, 0.9574465751647949, -0.5839225649833679, 1.0019632577896118, 0.3142804503440857, 1.0387730598449707, 0.8823967576026917, -0.367647647857666, 0.46756458282470703, 0.09793619811534882, -1.3773524761199951, 0.45540130138397217, 1.1763701438903809, 0.3596455156803131, 1.3069535493850708, -0.5205578804016113, 0.10450943559408188, 0.41030630469322205, -0.486316442489624, -0.5170812010765076, -0.7178446054458618, 0.7648115754127502, 0.006314479745924473, -0.9753281474113464, 0.07247432321310043, -0.1657649576663971, -0.1356910765171051, 0.22220757603645325, -1.4527066946029663, -0.17078202962875366, -0.26037079095840454, -0.5272095799446106, -1.3180545568466187, -0.06617926061153412, 1.3271793127059937, -0.7782889604568481, -0.1156100332736969, 0.5487527251243591, 0.36572617292404175, 0.5776562690734863, 0.5106592178344727, -0.6915305852890015, -0.37217339873313904, -0.281755268573761, -0.3903943598270416, 0.2971348762512207, 1.2881180047988892, -0.13245631754398346, -1.1094907522201538, 0.679963231086731, -0.3910790681838989, 0.10688897222280502, 2.044938325881958, 0.039900410920381546, -0.813082754611969, 0.3239096701145172, -0.6079404354095459, 1.893555760383606, 1.7517335414886475, 1.2695149183273315, -0.13801519572734833, -0.9543629884719849, 0.5831833481788635, -0.30717888474464417, -0.2961075007915497, 0.8501220345497131, 0.5273824334144592, -0.1648123413324356, -1.4098191261291504, 0.3863341808319092, 1.2725322246551514, -0.7951246500015259, -0.8316813111305237, 0.03863103687763214, -0.8079529404640198, 1.1174535751342773, 0.7304621934890747, 0.3780525326728821, 0.21972009539604187, 1.6238644123077393, 0.6548649668693542, -0.5286045074462891, 0.4575154185295105, 0.4725103974342346, -0.11484307050704956, -2.074129104614258, -1.0569456815719604, 0.21403373777866364, -0.26972103118896484, -1.546971082687378, 1.3563289642333984, -1.1892510652542114, -0.9184725284576416, 0.5200549960136414, 0.24680876731872559, 1.4627182483673096, 0.3383278548717499, 1.6593971252441406, 1.9891831874847412, 0.9250444769859314, 0.25348344445228577, 1.2692735195159912, -0.11589542776346207, -0.4485410153865814, 1.8420418500900269, -0.4335339665412903, 0.5581678152084351, 1.0304466485977173, -0.4894723892211914, -1.112020492553711, -0.9144850969314575, -1.163872241973877, -0.6774984002113342, 1.2444703578948975, 0.1504472941160202, -1.233710765838623, 0.23404857516288757, 1.6095681190490723, -0.02971356362104416, -0.28629985451698303, 0.5870131254196167, 0.4673456847667694, -0.613043487071991, 0.04548116400837898, -0.9744600057601929, 0.5881694555282593, -0.12729856371879578, -0.38194236159324646, 0.28632527589797974, 0.510328471660614, 1.246821403503418, 0.11803800612688065, 0.1812012791633606, 1.3621846437454224, -1.3215103149414062, 1.4864407777786255, -0.5688137412071228, 0.2453049123287201, -2.338472604751587, 1.4416961669921875, -0.8790588974952698, 1.9124093055725098, -2.615482807159424, 0.33525463938713074, -0.5905448198318481, -0.40774092078208923, 0.29328012466430664, -0.3759400546550751, 0.11159408092498779, -0.21411234140396118, -1.060274362564087, -0.14431694149971008, -0.7740252614021301, 0.5294731855392456, 1.161863923072815, 1.403266191482544, -1.0815757513046265, -0.28953173756599426, -1.824648380279541, -0.18423466384410858, -0.6679601073265076, 0.3313421308994293, -1.9241561889648438, -0.09562825411558151, -2.0197534561157227, -2.32767391204834, -1.535571575164795, -0.844235897064209, 1.0330170392990112, 0.1320330947637558, -0.9265204668045044, 1.0023527145385742, -0.3432794213294983, -1.7255449295043945, 1.0572781562805176, -2.1826791763305664 ]
https://github.com/huggingface/datasets/issues/3572
ConnectionError in IndicGLUE dataset
Yesterday I resent a reminder email with more AI4Bharat-related people in the loop. I also opened an issue in their repos: - https://github.com/AI4Bharat/indicnlp_corpus/issues/14 - https://github.com/AI4Bharat/ai4bharat.org/issues/71
While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403)
1,007
25
ConnectionError in IndicGLUE dataset While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403) Yesterday I resent a reminder email with more AI4Bharat-related people in the loop. I also opened an issue in their repos: - https://github.com/AI4Bharat/indicnlp_corpus/issues/14 - https://github.com/AI4Bharat/ai4bharat.org/issues/71
[ -1.1623797416687012, -0.9810224175453186, -0.8269063830375671, 1.4795454740524292, -0.06668784469366074, -1.2613846063613892, 0.16505014896392822, -0.9364330172538757, 1.4852367639541626, -0.6664734482765198, 0.35955938696861267, -1.7139643430709839, -0.1271687150001526, -0.6801021695137024, -0.7388938069343567, -0.8000555634498596, -0.26786985993385315, -0.8068885207176208, 0.9844439625740051, 2.587656021118164, 1.217820644378662, -1.2920265197753906, 2.8138155937194824, 0.6331039667129517, -0.24603275954723358, -1.089931845664978, 0.5086942911148071, -0.022958049550652504, -1.267835021018982, -0.36940157413482666, -0.9311301708221436, 0.12341173738241196, -0.5185365080833435, -0.42842334508895874, 0.19860884547233582, 0.33507591485977173, -0.21366970241069794, -0.3831755220890045, -0.5915637016296387, -0.7682781219482422, 0.4861258268356323, -0.38848620653152466, 0.9611249566078186, -0.34395721554756165, 1.7539401054382324, -0.623404324054718, 0.32757583260536194, 0.6515825986862183, 1.399398684501648, 0.13603709638118744, 0.03657599538564682, 0.3107573688030243, 0.35175684094429016, 0.11174988001585007, 0.47171705961227417, 1.167297601699829, 0.6292335391044617, 0.4966873824596405, 0.5658142566680908, -2.159658193588257, 1.2442198991775513, -0.8635694980621338, 0.23148345947265625, 1.35834538936615, -1.021855354309082, 0.343697726726532, -1.8870857954025269, -0.22416700422763824, 0.5398019552230835, -2.3914132118225098, 0.23506763577461243, -1.2819087505340576, -0.5143705606460571, 0.9607548117637634, 0.2635030150413513, -1.3195843696594238, 0.14910581707954407, -0.4617151618003845, 1.0189694166183472, 0.4240650534629822, 1.184773325920105, -1.6307287216186523, -0.06068899482488632, -0.17189618945121765, 0.08262994885444641, -1.2500182390213013, -1.4728574752807617, 0.5222817063331604, 0.6113532781600952, 0.7563801407814026, -0.2447080761194229, 0.8962773084640503, -0.9777350425720215, 0.8941777348518372, -0.8261430263519287, -1.5978620052337646, -1.4638420343399048, -2.363736867904663, -2.2897560596466064, 0.900902509689331, -0.31457778811454773, -0.42574116587638855, 1.8879987001419067, -1.0436445474624634, -1.8453360795974731, 1.0390255451202393, 0.26991164684295654, -0.045857228338718414, 2.2798073291778564, 0.2843378186225891, -0.9006357789039612, 0.4123634994029999, -0.824678897857666, 0.765103816986084, -0.36203813552856445, 1.379682183265686, 0.5728846192359924, -0.9960415959358215, 1.5964945554733276, -0.3998411297798157, 0.43507108092308044, -0.6960238814353943, -0.5135211944580078, -0.868914008140564, 0.18915018439292908, 1.9324098825454712, -0.3382244408130646, 1.7037396430969238, -0.26872220635414124, -1.4731775522232056, -1.453661561012268, 0.7416016459465027, 0.5536901950836182, -0.8519106507301331, 0.0825626403093338, -0.4156424403190613, 0.18961921334266663, 0.06278714537620544, 1.0983943939208984, 1.1773293018341064, 0.7060065865516663, -0.27949872612953186, -0.9131621718406677, 0.3976547420024872, 0.07072454690933228, -0.6353839039802551, -1.8571006059646606, -0.3732815682888031, 0.37022385001182556, 0.5643661022186279, -1.2903984785079956, 1.8061456680297852, 0.8054841756820679, 2.073655366897583, 0.9312026500701904, -0.2939735949039459, 1.5328118801116943, -0.10365770012140274, 1.9021830558776855, -0.38872697949409485, 0.6199565529823303, -0.30319178104400635, -1.1038342714309692, 0.6172942519187927, -0.3010261058807373, -2.1098053455352783, -0.7108294367790222, -0.9535970687866211, -0.0878671333193779, -0.8451165556907654, 1.032827377319336, -0.28274235129356384, -1.2706491947174072, 0.2337588667869568, -0.7977427840232849, 0.12515796720981598, -1.340885877609253, 0.06930474936962128, 0.7018875479698181, -0.6751371622085571, -0.010835401713848114, -0.20926085114479065, -1.3378918170928955, -0.4804416298866272, 0.41002872586250305, 1.9847303628921509, -0.6697120070457458, 0.8899399638175964, 0.9335063695907593, -0.6898540258407593, 0.11049286276102066, 0.3545551896095276, -0.5080068111419678, 0.8191361427307129, -0.9754825234413147, -0.36213597655296326, 1.2076990604400635, -0.12571656703948975, -0.6362491250038147, 1.4468263387680054, 0.8965529203414917, -0.9598662257194519, -0.3572767972946167, -0.11235173046588898, -0.6598612666130066, -0.018155857920646667, -1.6402511596679688, -0.17966541647911072, 0.12164133042097092, -1.3292914628982544, -0.505115807056427, -0.23380103707313538, 1.352009654045105, -0.17568735778331757, 1.4191547632217407, -0.19742433726787567, -0.16074107587337494, -0.4131132662296295, -0.5469198226928711, 0.12337445467710495, -0.13214460015296936, -0.6850417852401733, 0.40696918964385986, -0.7861159443855286, 0.27477556467056274, 1.4363770484924316, 0.34902632236480713, 0.033509597182273865, 0.5940032601356506, 1.0319644212722778, 0.33336231112480164, -0.1112973764538765, -0.905413806438446, -1.6901808977127075, 2.0614771842956543, -1.3630619049072266, 1.8598543405532837, 0.8255208134651184, -0.09939312934875488, -1.759564995765686, -1.8188962936401367, 1.2356047630310059, 1.244916319847107, 2.465512990951538, 0.6133890151977539, 0.39520299434661865, -0.7489637732505798, -0.7704110741615295, 0.28657352924346924, -1.0797324180603027, -0.8186727166175842, 0.1781073659658432, 2.442697048187256, 1.804519772529602, -0.5227819085121155, -0.21439871191978455, -1.0671212673187256, 1.0598030090332031, -0.18170587718486786, 0.19332914054393768, 1.959601879119873, -0.28770580887794495, -1.1090552806854248, 1.2280417680740356, -2.375782012939453, 0.40417665243148804, 2.023192882537842, 0.3279910385608673, 0.07435262203216553, -1.506422996520996, -0.5900221467018127, -0.18360500037670135, -0.47355160117149353, -1.1160359382629395, 0.5932970643043518, -0.262580931186676, -1.0868560075759888, -1.4141206741333008, 0.05305812507867813, -0.9872947931289673, -1.7898824214935303, 0.4295025169849396, 1.660789132118225, 2.1004841327667236, -0.8093081116676331, 1.2702707052230835, -0.2546725273132324, 0.15657924115657806, 1.266830563545227, 1.324899435043335, 3.1392829418182373, 1.9322530031204224, -1.2707799673080444, 0.9031209349632263, -0.20246589183807373, -0.4486546218395233, 1.0762006044387817, -1.0822190046310425, 1.1567448377609253, -0.30007973313331604, -1.2574739456176758, -1.1658216714859009, 0.9663768410682678, 0.5409893989562988, -0.0720706433057785, -0.46442246437072754, 1.17169189453125, 0.14732900261878967, 1.3257545232772827, 0.56135094165802, -0.32185375690460205, 0.5538930892944336, -0.25009459257125854, -0.5247882008552551, 1.6188254356384277, 0.11255352944135666, -1.5497355461120605, -2.3884198665618896, -0.23840366303920746, -0.8841996192932129, -0.20802879333496094, -0.671160101890564, -0.9667299389839172, 1.571947455406189, 0.4132697582244873, -1.2850005626678467, -0.3039543032646179, -0.4142317771911621, -0.5038852095603943, 2.683600902557373, -1.4953014850616455, -0.2435511201620102, -1.0004916191101074, -0.4815056025981903, 1.6400222778320312, -1.1489934921264648, -0.1982910931110382, -1.0216903686523438, -0.7439455986022949, -1.3785269260406494, -0.5275324583053589, -0.07575961947441101, -0.7960683107376099, 0.5219732522964478, 0.030428988859057426, -0.9932500720024109, -0.18628697097301483, -0.8613861203193665, 0.8955744504928589, -0.15459048748016357, 0.18608804047107697, 1.8383740186691284, 0.3145560622215271, -0.3298397958278656, 0.5923261642456055, 1.1958420276641846, 0.5889730453491211, -0.6673579216003418, 0.213603213429451, -0.7554041147232056, 0.26585623621940613, -1.410614013671875, 0.20031844079494476, -2.90387225151062, 0.7734565734863281, -0.11028487980365753, -0.10477843135595322, -0.06472890079021454, -1.3372046947479248, 1.2413909435272217, 2.6190848350524902, -1.2431764602661133, 0.49991336464881897, 0.24497607350349426, 0.9880073666572571, -1.5937354564666748, 0.1663152128458023, -0.40176013112068176, 2.1303951740264893, 0.1611342877149582, 1.2221933603286743, -0.42129772901535034, -2.047194719314575, 0.6696585416793823, -1.1836621761322021, -0.9348156452178955, 0.8372328281402588, -0.8997248411178589, 0.09165623784065247, -1.3266701698303223, -0.1318354457616806, -0.8326936364173889, -1.3178975582122803, 0.7549157738685608, 0.03556931018829346, 0.5300755500793457, -0.659304141998291, 0.35401108860969543, -2.1501424312591553, -1.3429646492004395, -0.08732609450817108, -1.0559252500534058, 0.3821181058883667, -0.3132653534412384, 0.5529066920280457, -0.15212947130203247, 0.021427886560559273, 0.37775948643684387, 1.4347352981567383, 3.3409335613250732, 0.11699853092432022, 0.3973172903060913, -0.04663393646478653, -0.9373410940170288, 1.5040843486785889, 1.0670998096466064, -0.044694140553474426, -0.5120068192481995, -0.9212404489517212, 1.3924782276153564, 2.0088019371032715, 1.0718556642532349, 0.3464326858520508, -0.9982238411903381, -0.7752802968025208, 0.03643836826086044, 0.11360954493284225, 0.4884609282016754, 0.9854640364646912, 0.012461086735129356, 0.1385965496301651, 1.387969732284546, 1.2538447380065918, -0.3431089520454407, 0.5564377903938293, -1.0135365724563599, -0.2606114447116852, 0.46354174613952637, 0.24324336647987366, -0.03898533806204796, 0.538608729839325, -1.0064879655838013, -0.21601258218288422, -0.20489107072353363, -0.9176210165023804, -0.8366614580154419, -0.47483038902282715, -0.37907934188842773, 1.6558023691177368, 0.007802411913871765, -0.5064345598220825, 0.017362240701913834, -0.7348724007606506, -0.15245267748832703, -0.9390449523925781, 0.1306270956993103, -0.03140416741371155, 0.06841893494129181, -0.11725486814975739, 1.5974270105361938, -0.8632232546806335, -2.283647298812866, 0.23762023448944092, 0.29551538825035095, -0.5237568616867065, 0.09363975375890732, 1.8063459396362305, 0.4993204176425934, 1.384856104850769, 1.2396059036254883, 1.1589573621749878, -0.5686108469963074, -1.3273875713348389, 0.7825425863265991, 0.9274780750274658, -1.4743722677230835, 0.9065807461738586, -0.2544567286968231, -0.47511810064315796, 0.7157795429229736, 1.2105766534805298, 0.39538297057151794, -1.9564390182495117, 0.8170285224914551, -0.8747326731681824, 0.7981325387954712, 0.6424329876899719, 0.8196016550064087, 0.28348445892333984, 0.8362123370170593, -1.2615365982055664, -0.982175886631012, -0.7698907852172852, -0.5959429144859314, 1.8925354480743408, -0.09546574205160141, 0.4166792333126068, -0.15197670459747314, -1.3812552690505981, -0.03925386071205139, 0.7624446749687195, 0.31759539246559143, -0.3809439241886139, 0.808658242225647, -0.7319167256355286, -0.9982312321662903, -1.3333755731582642, -0.4277064800262451, -0.9634384512901306, -0.9609605073928833, 1.0507487058639526, 0.6453883647918701, 0.41340574622154236, 1.9569321870803833, 0.616258978843689, 0.23389405012130737, -2.6173932552337646, 0.9670024514198303, 0.29264771938323975, 0.13940279185771942, 1.0359889268875122, 0.24665090441703796, 1.2664921283721924, -0.09817925095558167, 0.5773468613624573, -2.2978978157043457, 2.1932406425476074, -0.14456848800182343, 0.6561367511749268, 0.11650257557630539, -0.23430845141410828, 1.066339373588562, 0.4150240123271942, 0.6734710931777954, -1.2771059274673462, 0.8267914652824402, -0.700694739818573, 1.12019944190979, 0.9104816317558289, -0.9484859108924866, 0.07746979594230652, 1.253354787826538, 0.4573234021663666, -0.3927260935306549, -0.8929256200790405, -0.8351916074752808, 1.0300483703613281, 1.6288779973983765, -0.03780435025691986, 0.049398280680179596, 0.9271882772445679, 0.6183857917785645, -1.4202314615249634, -0.05244293808937073, -0.752399206161499, -0.6089003086090088, 1.790505290031433, 2.019855499267578, -0.03022175468504429, -0.3655589520931244, -0.7771833539009094, -1.2264732122421265, 0.6762890815734863, -0.04653460532426834, 0.08467992395162582, 0.8633372783660889, -0.7213394641876221, 1.2399646043777466, 0.6959764957427979, 0.8931095004081726, 0.07272814959287643, 0.26852095127105713, 0.32703348994255066, -0.26686209440231323, -1.2713879346847534, -0.47314441204071045, -1.1380176544189453, -2.5606906414031982, 0.5815352201461792, -0.2644917368888855, -1.3400136232376099, 0.08958686143159866, -1.1542788743972778, 0.7805399298667908, -0.5786478519439697, -0.995624303817749, -1.3630030155181885, 0.3048962354660034, -0.22380800545215607, 0.8046430349349976, -1.6591747999191284, -0.09986290335655212, 1.3402727842330933, 0.9606976509094238, -0.5887346863746643, 0.9637877345085144, 0.20179517567157745, 1.0388978719711304, 0.7511302828788757, -0.38269758224487305, 0.5072678923606873, 0.18444539606571198, -1.4405239820480347, 0.5328899621963501, 1.122388243675232, 0.33963319659233093, 1.3439713716506958, -0.47062355279922485, 0.13663987815380096, 0.5862746238708496, -0.6095898151397705, -0.6450906991958618, -0.6505754590034485, 0.8406454920768738, -0.04344167560338974, -1.0416648387908936, 0.02695985697209835, -0.131687194108963, -0.09594038873910904, 0.1938774585723877, -1.525115728378296, -0.24957141280174255, -0.14213348925113678, -0.54693204164505, -1.3638253211975098, 0.02378903515636921, 1.292515516281128, -0.8522741198539734, -0.147897407412529, 0.5687062740325928, 0.4137822985649109, 0.6644315719604492, 0.6015840768814087, -0.7645075917243958, -0.3224887251853943, -0.27405408024787903, -0.26350507140159607, 0.3500412702560425, 1.319271445274353, -0.10309922695159912, -1.1130560636520386, 0.7212216258049011, -0.4823196828365326, 0.18693648278713226, 2.020484209060669, 0.01092434860765934, -0.8634210824966431, 0.37737077474594116, -0.6005784869194031, 1.836229681968689, 1.5816515684127808, 1.2842531204223633, -0.108412005007267, -0.7873075604438782, 0.5830101370811462, -0.19438853859901428, -0.2735954523086548, 0.8661701679229736, 0.5434715151786804, -0.10149231553077698, -1.4051446914672852, 0.37331312894821167, 1.2913727760314941, -0.868665337562561, -0.9146137237548828, 0.033310890197753906, -0.8990501165390015, 1.1973299980163574, 0.6499621868133545, 0.31628715991973877, 0.22778452932834625, 1.5599724054336548, 0.6153567433357239, -0.5065604448318481, 0.4229848384857178, 0.49181994795799255, -0.18552251160144806, -2.03275990486145, -0.9832106232643127, 0.23788785934448242, -0.19436554610729218, -1.4657611846923828, 1.2887766361236572, -1.1382883787155151, -0.9175252318382263, 0.45289212465286255, 0.30921903252601624, 1.4983129501342773, 0.3214646875858307, 1.6598167419433594, 1.936686635017395, 0.9462904334068298, 0.19843105971813202, 1.2714766263961792, -0.145215705037117, -0.391529381275177, 1.8115907907485962, -0.45589786767959595, 0.6038815379142761, 0.9073038101196289, -0.5174371600151062, -1.1470904350280762, -0.8602975606918335, -1.0682421922683716, -0.6706191301345825, 1.2490874528884888, 0.2441948652267456, -1.2064344882965088, 0.1670333743095398, 1.5961812734603882, 0.15339729189872742, -0.23637132346630096, 0.5955726504325867, 0.42015540599823, -0.5784116983413696, 0.09846090525388718, -0.888425886631012, 0.5517917275428772, -0.06281043589115143, -0.37369629740715027, 0.20676679909229279, 0.49626317620277405, 1.1419607400894165, 0.08028419315814972, 0.12268786877393723, 1.315723180770874, -1.3368604183197021, 1.6378482580184937, -0.5393888354301453, 0.3093966841697693, -2.3400938510894775, 1.4309358596801758, -0.9238374829292297, 1.8517370223999023, -2.623767375946045, 0.3476382791996002, -0.6129838824272156, -0.45270127058029175, 0.27279287576675415, -0.4238365888595581, 0.22297975420951843, -0.24059119820594788, -0.9899517893791199, -0.08747521042823792, -0.8585790395736694, 0.5404167175292969, 1.2331950664520264, 1.3838119506835938, -1.0898234844207764, -0.3183687627315521, -1.8225213289260864, -0.16881389915943146, -0.7562483549118042, 0.29890137910842896, -2.0366358757019043, -0.18309088051319122, -2.016235828399658, -2.2638885974884033, -1.4385595321655273, -0.8363723158836365, 1.0682766437530518, 0.1861044317483902, -0.9907105565071106, 1.0173959732055664, -0.4029977321624756, -1.7404601573944092, 1.0805599689483643, -2.262603998184204 ]
https://github.com/huggingface/datasets/issues/3572
ConnectionError in IndicGLUE dataset
We have received a reply from the authors reporting they have updated the URLs of their data files and opened a PR. See: - #4978
While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403)
1,007
25
ConnectionError in IndicGLUE dataset While I am trying to load IndicGLUE dataset (https://huggingface.co/datasets/indic_glue) it is giving me with the error: ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ai4bharat-public-indic-nlp-corpora/evaluations/wikiann-ner.tar.gz (error 403) We have received a reply from the authors reporting they have updated the URLs of their data files and opened a PR. See: - #4978
[ -1.2024905681610107, -0.8927309513092041, -0.7709605693817139, 1.4431426525115967, -0.17786180973052979, -1.2981789112091064, 0.16345027089118958, -0.8899133801460266, 1.6748361587524414, -0.7586705088615417, 0.28627315163612366, -1.7207854986190796, -0.03485134616494179, -0.6789754629135132, -0.5986664295196533, -0.8420807719230652, -0.37819090485572815, -0.7309095859527588, 1.0086551904678345, 2.5631093978881836, 1.2623106241226196, -1.3038393259048462, 2.8163952827453613, 0.7131838202476501, -0.2705802619457245, -1.0268453359603882, 0.47202709317207336, 0.03347805142402649, -1.3094450235366821, -0.3773348927497864, -1.0083192586898804, 0.07097822427749634, -0.6013031005859375, -0.5137298703193665, 0.14918021857738495, 0.35588470101356506, -0.26104873418807983, -0.46558985114097595, -0.5898332595825195, -0.6921409368515015, 0.4395771324634552, -0.3508248031139374, 0.923652172088623, -0.43722793459892273, 1.8419058322906494, -0.5538426637649536, 0.34608346223831177, 0.657509446144104, 1.4267370700836182, 0.15667127072811127, -0.08833323419094086, 0.3777839243412018, 0.362659752368927, -0.03899476304650307, 0.42189812660217285, 1.1708877086639404, 0.5275476574897766, 0.6134779453277588, 0.6098487377166748, -2.207191228866577, 1.3454289436340332, -0.9888820052146912, 0.2690284848213196, 1.3898375034332275, -1.1856673955917358, 0.31829968094825745, -1.826456069946289, -0.1210123598575592, 0.5521883368492126, -2.332962989807129, 0.21311306953430176, -1.1784329414367676, -0.5421407222747803, 0.9988774657249451, 0.2606329619884491, -1.3109822273254395, 0.14012479782104492, -0.4211232662200928, 1.0499285459518433, 0.42619162797927856, 1.2226271629333496, -1.6535711288452148, 0.06662755459547043, -0.2965331971645355, 0.030258819460868835, -1.3336468935012817, -1.4847007989883423, 0.5938551425933838, 0.6850207448005676, 0.6743618249893188, -0.18281500041484833, 0.8981178998947144, -0.8649250268936157, 0.8559190034866333, -0.8765501379966736, -1.6400344371795654, -1.3546682596206665, -2.370316505432129, -2.3042092323303223, 0.8807765245437622, -0.4187295436859131, -0.48882946372032166, 1.9337443113327026, -1.0289756059646606, -1.8893260955810547, 1.108733892440796, 0.3197619915008545, -0.034423794597387314, 2.328840970993042, 0.27184686064720154, -0.800881028175354, 0.40208473801612854, -0.8143731951713562, 0.8207725882530212, -0.48158347606658936, 1.421263337135315, 0.4802619218826294, -1.0326164960861206, 1.5622457265853882, -0.399477481842041, 0.5660254955291748, -0.7059787511825562, -0.580462634563446, -0.7817004323005676, 0.3140837252140045, 1.9117449522018433, -0.38812455534935, 1.6242066621780396, -0.29360976815223694, -1.5425684452056885, -1.534972071647644, 0.7734778523445129, 0.47391122579574585, -0.7996305823326111, 0.16471268236637115, -0.3849402368068695, 0.08132164925336838, 0.03569498658180237, 1.0514321327209473, 1.2028158903121948, 0.6710363030433655, -0.21621425449848175, -0.9067676067352295, 0.2753915786743164, 0.0552106574177742, -0.6367824673652649, -1.773568868637085, -0.30020275712013245, 0.16711919009685516, 0.6162132024765015, -1.1797304153442383, 1.786906123161316, 0.8259790539741516, 2.089799404144287, 0.9056928157806396, -0.2646712362766266, 1.4979909658432007, -0.046041470021009445, 1.8482232093811035, -0.41997578740119934, 0.6078361868858337, -0.3331837058067322, -1.1849076747894287, 0.6627077460289001, -0.35179072618484497, -2.1028025150299072, -0.7696106433868408, -0.9093239903450012, -0.10134307295084, -0.8231170773506165, 1.0478038787841797, -0.15174686908721924, -1.286149024963379, 0.19905897974967957, -0.6252434849739075, 0.1481720209121704, -1.3397167921066284, 0.15844115614891052, 0.6678836345672607, -0.6564354300498962, 0.08360905200242996, -0.2251618653535843, -1.3540689945220947, -0.5236788988113403, 0.3449142277240753, 1.90561044216156, -0.7082980275154114, 0.8908312320709229, 1.0118223428726196, -0.6950142979621887, 0.12088567018508911, 0.2901041805744171, -0.3633638024330139, 0.8491184711456299, -1.0266908407211304, -0.3814949691295624, 1.2156031131744385, -0.12775719165802002, -0.5361200571060181, 1.4933949708938599, 0.7638896107673645, -1.0086543560028076, -0.24510310590267181, -0.15867027640342712, -0.7201881408691406, -0.06933141499757767, -1.6697685718536377, -0.15292318165302277, 0.1472872495651245, -1.3682341575622559, -0.4947027862071991, -0.23283244669437408, 1.3581011295318604, -0.04224475473165512, 1.423581600189209, -0.2514740824699402, -0.20318950712680817, -0.38420969247817993, -0.39968574047088623, 0.18635816872119904, -0.19077405333518982, -0.6234616637229919, 0.3748110830783844, -0.8367843627929688, 0.27532458305358887, 1.4654831886291504, 0.2852403223514557, 0.16667862236499786, 0.6144153475761414, 1.0610976219177246, 0.24090373516082764, -0.13973920047283173, -0.8419633507728577, -1.6666984558105469, 2.000554323196411, -1.4135009050369263, 1.866932988166809, 0.7145817279815674, -0.03512522950768471, -1.759624719619751, -1.864098072052002, 1.330452561378479, 1.2079724073410034, 2.3553905487060547, 0.6051890254020691, 0.3481636047363281, -0.8423311710357666, -0.6959713697433472, 0.32010379433631897, -1.0059359073638916, -0.7588721513748169, 0.19451545178890228, 2.350776195526123, 1.7369447946548462, -0.5519000291824341, -0.17450301349163055, -1.06814706325531, 1.112308382987976, -0.18232321739196777, 0.1575368493795395, 1.8885767459869385, -0.38733869791030884, -1.1243690252304077, 1.2863761186599731, -2.3735010623931885, 0.2763645350933075, 1.9878857135772705, 0.3080483376979828, 0.10817863047122955, -1.43959379196167, -0.7131620049476624, -0.1079721748828888, -0.48408326506614685, -1.171513557434082, 0.5497679114341736, -0.3406093120574951, -0.9687354564666748, -1.4401737451553345, 0.09734204411506653, -0.9723866581916809, -1.7166787385940552, 0.37157195806503296, 1.7204740047454834, 1.983140468597412, -0.7282171249389648, 1.3589870929718018, -0.23709531128406525, 0.13305164873600006, 1.3148597478866577, 1.2722680568695068, 3.110903024673462, 1.9644639492034912, -1.1916494369506836, 0.8587760329246521, -0.12166935950517654, -0.4316354990005493, 1.080319881439209, -1.1385546922683716, 1.2766400575637817, -0.29445427656173706, -1.2240245342254639, -1.2357122898101807, 0.8897249698638916, 0.4732169508934021, 0.05823235958814621, -0.4583905041217804, 1.1801234483718872, 0.09464006870985031, 1.2513220310211182, 0.5413963198661804, -0.40085285902023315, 0.5493795871734619, -0.3247304856777191, -0.5263798236846924, 1.645162582397461, 0.19946320354938507, -1.4632070064544678, -2.3196587562561035, -0.24533022940158844, -0.8018355965614319, -0.1359456330537796, -0.7960531115531921, -0.9214730262756348, 1.6050058603286743, 0.49646273255348206, -1.2318024635314941, -0.3498539924621582, -0.5015056133270264, -0.5512815117835999, 2.7690913677215576, -1.4918222427368164, -0.24689337611198425, -1.0083156824111938, -0.46650460362434387, 1.6680188179016113, -1.1600240468978882, -0.14755409955978394, -1.0167030096054077, -0.665385365486145, -1.3532662391662598, -0.586721658706665, -0.035293612629175186, -0.8376970291137695, 0.6605252027511597, -0.00130518339574337, -1.0886638164520264, -0.29664352536201477, -0.7936869859695435, 0.9103898406028748, -0.16507817804813385, 0.2060946673154831, 1.9150205850601196, 0.27588194608688354, -0.38956570625305176, 0.65641850233078, 1.1894145011901855, 0.5948935151100159, -0.6247694492340088, 0.2754468023777008, -0.6565158367156982, 0.34971392154693604, -1.3713734149932861, 0.27418723702430725, -2.926069736480713, 0.6612153053283691, -0.08749956637620926, -0.04863414540886879, -0.07750233262777328, -1.4141364097595215, 1.0904536247253418, 2.590419292449951, -1.1687968969345093, 0.5056610703468323, 0.25826090574264526, 1.1196411848068237, -1.5175895690917969, 0.16086766123771667, -0.545199453830719, 2.1519389152526855, 0.03403736650943756, 1.1308165788650513, -0.4860388934612274, -2.0893592834472656, 0.6873807311058044, -1.2368837594985962, -1.0167300701141357, 0.7499462962150574, -0.8969489336013794, 0.029575280845165253, -1.3322889804840088, -0.12639695405960083, -0.8593270182609558, -1.274397611618042, 0.6939042806625366, 0.07326672226190567, 0.47059693932533264, -0.6489041447639465, 0.3686075210571289, -2.162548780441284, -1.3130183219909668, -0.152121439576149, -1.0406218767166138, 0.38270023465156555, -0.33245301246643066, 0.5972366333007812, -0.1337302029132843, 0.08328519761562347, 0.3375730812549591, 1.3354294300079346, 3.2526519298553467, 0.060018785297870636, 0.33053332567214966, -0.06958866864442825, -0.8740243315696716, 1.4838558435440063, 1.0644270181655884, -0.08007965236902237, -0.6643519401550293, -0.9056085348129272, 1.3505815267562866, 1.9892023801803589, 1.014708161354065, 0.24023252725601196, -0.9164537787437439, -0.6610109806060791, -0.012853788211941719, 0.12100197374820709, 0.4688023030757904, 0.9033370614051819, 0.044579535722732544, 0.17650344967842102, 1.3647571802139282, 1.2478779554367065, -0.38043203949928284, 0.4431796073913574, -0.9111530184745789, -0.33791831135749817, 0.5091531276702881, 0.34566429257392883, -0.005483771674335003, 0.4559491276741028, -0.9721091985702515, -0.25937867164611816, -0.18578125536441803, -0.8817671537399292, -0.7536696195602417, -0.4522821009159088, -0.44427308440208435, 1.7486602067947388, 0.034127626568078995, -0.6201910376548767, -0.12978877127170563, -0.7256786227226257, -0.1133333221077919, -0.9809880256652832, 0.25521209836006165, -0.04293331131339073, 0.10488780587911606, -0.17338673770427704, 1.6313438415527344, -0.8996800780296326, -2.309950351715088, 0.20785658061504364, 0.30505651235580444, -0.48036202788352966, 0.05760019272565842, 1.7458422183990479, 0.6053912043571472, 1.500416874885559, 1.308744192123413, 1.0674612522125244, -0.5529729127883911, -1.3660962581634521, 0.7728429436683655, 0.9660689234733582, -1.5341728925704956, 0.8767396807670593, -0.044748254120349884, -0.5217753052711487, 0.6970772743225098, 1.2157227993011475, 0.39942625164985657, -1.964625358581543, 0.8153359889984131, -0.9355207681655884, 0.8387098908424377, 0.6031569242477417, 0.8464486598968506, 0.2442585825920105, 0.9458038210868835, -1.2094205617904663, -1.0964362621307373, -0.731316864490509, -0.6450278162956238, 1.9607046842575073, -0.235219344496727, 0.5370054244995117, -0.24434883892536163, -1.3520846366882324, -0.05183028057217598, 0.715248703956604, 0.29689615964889526, -0.3570713400840759, 0.8755877017974854, -0.6732423901557922, -1.0311250686645508, -1.3563295602798462, -0.5438804030418396, -1.0133291482925415, -0.9044530391693115, 1.1398295164108276, 0.7478707432746887, 0.3551716208457947, 1.9896674156188965, 0.5483399033546448, 0.2537349760532379, -2.6017284393310547, 0.899815022945404, 0.30013471841812134, 0.13224738836288452, 0.9078531265258789, 0.2964218258857727, 1.1315587759017944, -0.09557037055492401, 0.48862898349761963, -2.283768892288208, 2.1993155479431152, -0.1483737975358963, 0.6649184226989746, 0.10624098777770996, -0.09731984883546829, 0.9650684595108032, 0.44878247380256653, 0.6860748529434204, -1.1841237545013428, 0.7362253665924072, -0.6489067673683167, 1.2043806314468384, 0.8196026682853699, -0.8119428157806396, -0.014934320002794266, 1.2730743885040283, 0.5606490969657898, -0.4263535141944885, -0.9014524221420288, -0.8055352568626404, 1.0119096040725708, 1.6432652473449707, -0.033038996160030365, 0.16016501188278198, 0.9050158262252808, 0.629457414150238, -1.4019548892974854, -0.02604607492685318, -0.6912394165992737, -0.6673768758773804, 1.7300738096237183, 2.0166022777557373, -0.026343360543251038, -0.21943849325180054, -0.7728699445724487, -1.3049371242523193, 0.6994729042053223, -0.003291354514658451, 0.1718023270368576, 0.728423535823822, -0.7000965476036072, 1.171596646308899, 0.7064476013183594, 0.8799211978912354, 0.05848774313926697, 0.34927165508270264, 0.403993159532547, -0.2660340964794159, -1.2504299879074097, -0.2992950677871704, -1.055363416671753, -2.4914422035217285, 0.5758571028709412, -0.2067950963973999, -1.4499932527542114, 0.07660600543022156, -1.1355350017547607, 0.815118134021759, -0.5484527945518494, -1.0752620697021484, -1.3862924575805664, 0.29018333554267883, -0.130886971950531, 0.8866931796073914, -1.6671186685562134, -0.08120614290237427, 1.2660236358642578, 0.9474612474441528, -0.7091339230537415, 0.9999496340751648, 0.29199859499931335, 1.0749285221099854, 0.8604386448860168, -0.4225568473339081, 0.5083450078964233, 0.2282097041606903, -1.3774875402450562, 0.6029787659645081, 1.1993547677993774, 0.16783680021762848, 1.3283250331878662, -0.48170363903045654, 0.01775442808866501, 0.5830711722373962, -0.6005488038063049, -0.6186249256134033, -0.6789078712463379, 0.7495543956756592, 0.005434654653072357, -0.96456378698349, 0.014360074885189533, -0.1548434942960739, -0.1676199734210968, 0.2379940003156662, -1.4699102640151978, -0.18277671933174133, -0.2832930088043213, -0.5523938536643982, -1.4106740951538086, -0.07016400992870331, 1.339690923690796, -0.739477813243866, -0.08845128118991852, 0.6179903149604797, 0.4347447454929352, 0.6436261534690857, 0.5842050313949585, -0.6710082292556763, -0.2076207846403122, -0.23036324977874756, -0.35922396183013916, 0.37627220153808594, 1.3331478834152222, -0.1675819754600525, -1.0556108951568604, 0.682295024394989, -0.31820443272590637, 0.1268949657678604, 2.0786550045013428, 0.10990884155035019, -0.8224400877952576, 0.35297027230262756, -0.6729651689529419, 1.890692949295044, 1.6403968334197998, 1.2609847784042358, -0.1316731572151184, -0.895919919013977, 0.5839475393295288, -0.26301488280296326, -0.3324280083179474, 0.8192561268806458, 0.5040076375007629, -0.22395475208759308, -1.4674417972564697, 0.42442160844802856, 1.247110366821289, -0.8723707795143127, -0.8570238351821899, 0.06193769723176956, -0.7789807915687561, 1.1464531421661377, 0.7426305413246155, 0.24492111802101135, 0.2696990370750427, 1.6820449829101562, 0.6554895639419556, -0.45076969265937805, 0.486707478761673, 0.4465012848377228, -0.07475528120994568, -2.03082537651062, -1.002349853515625, 0.3026793897151947, -0.3700871467590332, -1.497032642364502, 1.2364981174468994, -1.1023160219192505, -1.0311042070388794, 0.4479025900363922, 0.2161826193332672, 1.518683671951294, 0.36718499660491943, 1.6581506729125977, 1.9866974353790283, 0.9299453496932983, 0.2547686994075775, 1.3258546590805054, -0.10030891001224518, -0.350931853055954, 1.8752326965332031, -0.5246437191963196, 0.5753364562988281, 1.0240446329116821, -0.4735247790813446, -1.1396420001983643, -0.8215491771697998, -1.208541750907898, -0.6486625075340271, 1.161123275756836, 0.29808321595191956, -1.1424531936645508, 0.2274003028869629, 1.5366778373718262, 0.045090191066265106, -0.22195379436016083, 0.5546152591705322, 0.394456684589386, -0.7082082033157349, 0.019574303179979324, -0.9463793039321899, 0.513271689414978, -0.1256028562784195, -0.4560166895389557, 0.25109076499938965, 0.5975914001464844, 1.1606135368347168, 0.08483778685331345, 0.1421692967414856, 1.253549337387085, -1.4504365921020508, 1.5271471738815308, -0.6491411328315735, 0.2884851396083832, -2.3465023040771484, 1.423103928565979, -0.819161057472229, 1.9065061807632446, -2.768772602081299, 0.4358687698841095, -0.5802950859069824, -0.5134374499320984, 0.3168143928050995, -0.3646767735481262, 0.10342848300933838, -0.16035354137420654, -1.0802934169769287, -0.0025142664089798927, -0.7024023532867432, 0.5448094010353088, 1.1761327981948853, 1.3524975776672363, -1.1053446531295776, -0.3413322865962982, -1.7447335720062256, -0.23572829365730286, -0.7166800498962402, 0.3443951904773712, -2.038780450820923, -0.26630115509033203, -1.9166806936264038, -2.3527944087982178, -1.377002477645874, -0.8858224153518677, 1.1852694749832153, 0.10504413396120071, -1.0426888465881348, 1.058977723121643, -0.39638447761535645, -1.8032852411270142, 1.0948154926300049, -2.2188546657562256 ]
https://github.com/huggingface/datasets/issues/3568
Downloading Hugging Face Medical Dialog Dataset NonMatchingSplitsSizesError
Hi @fabianslife, thanks for reporting. I think you were using an old version of `datasets` because this bug was already fixed in version `1.13.0` (13 Oct 2021): - Fix: 55fd140a63b8f03a0e72985647e498f1fc799d3f - PR: #3046 - Issue: #2969 Please, feel free to update the library: `pip install -U datasets`.
I wanted to download the Nedical Dialog Dataset from huggingface, using this github link: https://github.com/huggingface/datasets/tree/master/datasets/medical_dialog After downloading the raw datasets from google drive, i unpacked everything and put it in the same folder as the medical_dialog.py which is: ``` import copy import os import re import datasets _CITATION = """\ @article{chen2020meddiag, title={MedDialog: a large-scale medical dialogue dataset}, author={Chen, Shu and Ju, Zeqian and Dong, Xiangyu and Fang, Hongchao and Wang, Sicheng and Yang, Yue and Zeng, Jiaqi and Zhang, Ruisi and Zhang, Ruoyu and Zhou, Meng and Zhu, Penghui and Xie, Pengtao}, journal={arXiv preprint arXiv:2004.03329}, year={2020} } """ _DESCRIPTION = """\ The MedDialog dataset (English) contains conversations (in English) between doctors and patients.\ It has 0.26 million dialogues. The data is continuously growing and more dialogues will be added. \ The raw dialogues are from healthcaremagic.com and icliniq.com.\ All copyrights of the data belong to healthcaremagic.com and icliniq.com. """ _HOMEPAGE = "https://github.com/UCSD-AI4H/Medical-Dialogue-System" _LICENSE = "" class MedicalDialog(datasets.GeneratorBasedBuilder): VERSION = datasets.Version("1.0.0") BUILDER_CONFIGS = [ datasets.BuilderConfig(name="en", description="The dataset of medical dialogs in English.", version=VERSION), datasets.BuilderConfig(name="zh", description="The dataset of medical dialogs in Chinese.", version=VERSION), ] @property def manual_download_instructions(self): return """\ \n For English:\nYou need to go to https://drive.google.com/drive/folders/1g29ssimdZ6JzTST6Y8g6h-ogUNReBtJD?usp=sharing,\ and manually download the dataset from Google Drive. Once it is completed, a file named Medical-Dialogue-Dataset-English-<timestamp-info>.zip will appear in your Downloads folder( or whichever folder your browser chooses to save files to). Unzip the folder to obtain a folder named "Medical-Dialogue-Dataset-English" several text files. Now, you can specify the path to this folder for the data_dir argument in the datasets.load_dataset(...) option. The <path/to/folder> can e.g. be "/Downloads/Medical-Dialogue-Dataset-English". The data can then be loaded using the below command:\ datasets.load_dataset("medical_dialog", name="en", data_dir="/Downloads/Medical-Dialogue-Dataset-English")`. \n For Chinese:\nFollow the above process. Change the 'name' to 'zh'.The download link is https://drive.google.com/drive/folders/1r09_i8nJ9c1nliXVGXwSqRYqklcHd9e2 **NOTE** - A caution while downloading from drive. It is better to download single files since creating a zip might not include files <500 MB. This has been observed mutiple times. - After downloading the files and adding them to the appropriate folder, the path of the folder can be given as input tu the data_dir path. """ datasets.load_dataset("medical_dialog", name="en", data_dir="Medical-Dialogue-Dataset-English") def _info(self): if self.config.name == "zh": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["病人", "医生"]), "utterance": datasets.Value("string"), } ), } ) if self.config.name == "en": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["Patient", "Doctor"]), "utterance": datasets.Value("string"), } ), } ) return datasets.DatasetInfo( # This is the description that will appear on the datasets page. description=_DESCRIPTION, features=features, supervised_keys=None, # Homepage of the dataset for documentation homepage=_HOMEPAGE, # License for the dataset if available license=_LICENSE, # Citation for the dataset citation=_CITATION, ) def _split_generators(self, dl_manager): """Returns SplitGenerators.""" path_to_manual_file = os.path.abspath(os.path.expanduser(dl_manager.manual_dir)) if not os.path.exists(path_to_manual_file): raise FileNotFoundError( f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('medical_dialog', data_dir=...)`. Manual download instructions: {self.manual_download_instructions})" ) filepaths = [ os.path.join(path_to_manual_file, txt_file_name) for txt_file_name in sorted(os.listdir(path_to_manual_file)) if txt_file_name.endswith("txt") ] return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": filepaths})] def _generate_examples(self, filepaths): """Yields examples. Iterates over each file and give the creates the corresponding features. NOTE: - The code makes some assumption on the structure of the raw .txt file. - There are some checks to separate different id's. Hopefully, should not cause further issues later when more txt files are added. """ data_lang = self.config.name id_ = -1 for filepath in filepaths: with open(filepath, encoding="utf-8") as f_in: # Parameters to just "sectionize" the raw data last_part = "" last_dialog = {} last_list = [] last_user = "" check_list = [] # These flags are present to have a single function address both chinese and english data # English data is a little hahazard (i.e. the sentences spans multiple different lines), # Chinese is compact with one line for doctor and patient. conv_flag = False des_flag = False while True: line = f_in.readline() if not line: break # Extracting the dialog id if line[:2] == "id": # Hardcode alert! # Handling ID references that may come in the description # These were observed in the Chinese dataset and were not # followed by numbers try: dialogue_id = int(re.findall(r"\d+", line)[0]) except IndexError: continue # Extracting the url if line[:4] == "http": # Hardcode alert! dialogue_url = line.rstrip() # Extracting the patient info from description. if line[:11] == "Description": # Hardcode alert! last_part = "description" last_dialog = {} last_list = [] last_user = "" last_conv = {"speaker": "", "utterance": ""} while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): break else: if data_lang == "zh": # Condition in chinese if line[:5] == "病情描述:": # Hardcode alert! last_user = "病人" sen = f_in.readline().rstrip() des_flag = True if data_lang == "en": last_user = "Patient" sen = line.rstrip() des_flag = True if des_flag: if sen == "": continue if sen in check_list: last_conv["speaker"] = "" last_conv["utterance"] = "" else: last_conv["speaker"] = last_user last_conv["utterance"] = sen check_list.append(sen) des_flag = False break # Extracting the conversation info from dialogue. elif line[:8] == "Dialogue": # Hardcode alert! if last_part == "description" and len(last_conv["utterance"]) > 0: last_part = "dialogue" if data_lang == "zh": last_user = "病人" if data_lang == "en": last_user = "Patient" while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): conv_flag = False last_user = "" last_list.append(copy.deepcopy(last_conv)) # To ensure close of conversation, only even number of sentences # are extracted last_turn = len(last_list) if int(last_turn / 2) > 0: temp = int(last_turn / 2) id_ += 1 last_dialog["file_name"] = filepath last_dialog["dialogue_id"] = dialogue_id last_dialog["dialogue_url"] = dialogue_url last_dialog["dialogue_turns"] = last_list[: temp * 2] yield id_, last_dialog break if data_lang == "zh": if line[:3] == "病人:" or line[:3] == "医生:": # Hardcode alert! user = line[:2] # Hardcode alert! line = f_in.readline() conv_flag = True # The elif block is to ensure that multi-line sentences are captured. # This has been observed only in english. if data_lang == "en": if line.strip() == "Patient:" or line.strip() == "Doctor:": # Hardcode alert! user = line.replace(":", "").rstrip() line = f_in.readline() conv_flag = True elif line[:2] != "id": # Hardcode alert! conv_flag = True # Continues till the next ID is parsed if conv_flag: sen = line.rstrip() if sen == "": continue if user == last_user: last_conv["utterance"] = last_conv["utterance"] + sen else: last_user = user last_list.append(copy.deepcopy(last_conv)) last_conv["utterance"] = sen last_conv["speaker"] = user ``` running this code gives me the error: ``` File "C:\Users\Fabia\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\utils\info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='medical_dialog'), 'recorded': SplitInfo(name='train', num_bytes=292801173, num_examples=229674, dataset_name='medical_dialog')}] ```
1,008
47
Downloading Hugging Face Medical Dialog Dataset NonMatchingSplitsSizesError I wanted to download the Nedical Dialog Dataset from huggingface, using this github link: https://github.com/huggingface/datasets/tree/master/datasets/medical_dialog After downloading the raw datasets from google drive, i unpacked everything and put it in the same folder as the medical_dialog.py which is: ``` import copy import os import re import datasets _CITATION = """\ @article{chen2020meddiag, title={MedDialog: a large-scale medical dialogue dataset}, author={Chen, Shu and Ju, Zeqian and Dong, Xiangyu and Fang, Hongchao and Wang, Sicheng and Yang, Yue and Zeng, Jiaqi and Zhang, Ruisi and Zhang, Ruoyu and Zhou, Meng and Zhu, Penghui and Xie, Pengtao}, journal={arXiv preprint arXiv:2004.03329}, year={2020} } """ _DESCRIPTION = """\ The MedDialog dataset (English) contains conversations (in English) between doctors and patients.\ It has 0.26 million dialogues. The data is continuously growing and more dialogues will be added. \ The raw dialogues are from healthcaremagic.com and icliniq.com.\ All copyrights of the data belong to healthcaremagic.com and icliniq.com. """ _HOMEPAGE = "https://github.com/UCSD-AI4H/Medical-Dialogue-System" _LICENSE = "" class MedicalDialog(datasets.GeneratorBasedBuilder): VERSION = datasets.Version("1.0.0") BUILDER_CONFIGS = [ datasets.BuilderConfig(name="en", description="The dataset of medical dialogs in English.", version=VERSION), datasets.BuilderConfig(name="zh", description="The dataset of medical dialogs in Chinese.", version=VERSION), ] @property def manual_download_instructions(self): return """\ \n For English:\nYou need to go to https://drive.google.com/drive/folders/1g29ssimdZ6JzTST6Y8g6h-ogUNReBtJD?usp=sharing,\ and manually download the dataset from Google Drive. Once it is completed, a file named Medical-Dialogue-Dataset-English-<timestamp-info>.zip will appear in your Downloads folder( or whichever folder your browser chooses to save files to). Unzip the folder to obtain a folder named "Medical-Dialogue-Dataset-English" several text files. Now, you can specify the path to this folder for the data_dir argument in the datasets.load_dataset(...) option. The <path/to/folder> can e.g. be "/Downloads/Medical-Dialogue-Dataset-English". The data can then be loaded using the below command:\ datasets.load_dataset("medical_dialog", name="en", data_dir="/Downloads/Medical-Dialogue-Dataset-English")`. \n For Chinese:\nFollow the above process. Change the 'name' to 'zh'.The download link is https://drive.google.com/drive/folders/1r09_i8nJ9c1nliXVGXwSqRYqklcHd9e2 **NOTE** - A caution while downloading from drive. It is better to download single files since creating a zip might not include files <500 MB. This has been observed mutiple times. - After downloading the files and adding them to the appropriate folder, the path of the folder can be given as input tu the data_dir path. """ datasets.load_dataset("medical_dialog", name="en", data_dir="Medical-Dialogue-Dataset-English") def _info(self): if self.config.name == "zh": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["病人", "医生"]), "utterance": datasets.Value("string"), } ), } ) if self.config.name == "en": features = datasets.Features( { "file_name": datasets.Value("string"), "dialogue_id": datasets.Value("int32"), "dialogue_url": datasets.Value("string"), "dialogue_turns": datasets.Sequence( { "speaker": datasets.ClassLabel(names=["Patient", "Doctor"]), "utterance": datasets.Value("string"), } ), } ) return datasets.DatasetInfo( # This is the description that will appear on the datasets page. description=_DESCRIPTION, features=features, supervised_keys=None, # Homepage of the dataset for documentation homepage=_HOMEPAGE, # License for the dataset if available license=_LICENSE, # Citation for the dataset citation=_CITATION, ) def _split_generators(self, dl_manager): """Returns SplitGenerators.""" path_to_manual_file = os.path.abspath(os.path.expanduser(dl_manager.manual_dir)) if not os.path.exists(path_to_manual_file): raise FileNotFoundError( f"{path_to_manual_file} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('medical_dialog', data_dir=...)`. Manual download instructions: {self.manual_download_instructions})" ) filepaths = [ os.path.join(path_to_manual_file, txt_file_name) for txt_file_name in sorted(os.listdir(path_to_manual_file)) if txt_file_name.endswith("txt") ] return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": filepaths})] def _generate_examples(self, filepaths): """Yields examples. Iterates over each file and give the creates the corresponding features. NOTE: - The code makes some assumption on the structure of the raw .txt file. - There are some checks to separate different id's. Hopefully, should not cause further issues later when more txt files are added. """ data_lang = self.config.name id_ = -1 for filepath in filepaths: with open(filepath, encoding="utf-8") as f_in: # Parameters to just "sectionize" the raw data last_part = "" last_dialog = {} last_list = [] last_user = "" check_list = [] # These flags are present to have a single function address both chinese and english data # English data is a little hahazard (i.e. the sentences spans multiple different lines), # Chinese is compact with one line for doctor and patient. conv_flag = False des_flag = False while True: line = f_in.readline() if not line: break # Extracting the dialog id if line[:2] == "id": # Hardcode alert! # Handling ID references that may come in the description # These were observed in the Chinese dataset and were not # followed by numbers try: dialogue_id = int(re.findall(r"\d+", line)[0]) except IndexError: continue # Extracting the url if line[:4] == "http": # Hardcode alert! dialogue_url = line.rstrip() # Extracting the patient info from description. if line[:11] == "Description": # Hardcode alert! last_part = "description" last_dialog = {} last_list = [] last_user = "" last_conv = {"speaker": "", "utterance": ""} while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): break else: if data_lang == "zh": # Condition in chinese if line[:5] == "病情描述:": # Hardcode alert! last_user = "病人" sen = f_in.readline().rstrip() des_flag = True if data_lang == "en": last_user = "Patient" sen = line.rstrip() des_flag = True if des_flag: if sen == "": continue if sen in check_list: last_conv["speaker"] = "" last_conv["utterance"] = "" else: last_conv["speaker"] = last_user last_conv["utterance"] = sen check_list.append(sen) des_flag = False break # Extracting the conversation info from dialogue. elif line[:8] == "Dialogue": # Hardcode alert! if last_part == "description" and len(last_conv["utterance"]) > 0: last_part = "dialogue" if data_lang == "zh": last_user = "病人" if data_lang == "en": last_user = "Patient" while True: line = f_in.readline() if (not line) or (line in ["\n", "\n\r"]): conv_flag = False last_user = "" last_list.append(copy.deepcopy(last_conv)) # To ensure close of conversation, only even number of sentences # are extracted last_turn = len(last_list) if int(last_turn / 2) > 0: temp = int(last_turn / 2) id_ += 1 last_dialog["file_name"] = filepath last_dialog["dialogue_id"] = dialogue_id last_dialog["dialogue_url"] = dialogue_url last_dialog["dialogue_turns"] = last_list[: temp * 2] yield id_, last_dialog break if data_lang == "zh": if line[:3] == "病人:" or line[:3] == "医生:": # Hardcode alert! user = line[:2] # Hardcode alert! line = f_in.readline() conv_flag = True # The elif block is to ensure that multi-line sentences are captured. # This has been observed only in english. if data_lang == "en": if line.strip() == "Patient:" or line.strip() == "Doctor:": # Hardcode alert! user = line.replace(":", "").rstrip() line = f_in.readline() conv_flag = True elif line[:2] != "id": # Hardcode alert! conv_flag = True # Continues till the next ID is parsed if conv_flag: sen = line.rstrip() if sen == "": continue if user == last_user: last_conv["utterance"] = last_conv["utterance"] + sen else: last_user = user last_list.append(copy.deepcopy(last_conv)) last_conv["utterance"] = sen last_conv["speaker"] = user ``` running this code gives me the error: ``` File "C:\Users\Fabia\AppData\Local\Programs\Python\Python39\lib\site-packages\datasets\utils\info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=0, num_examples=0, dataset_name='medical_dialog'), 'recorded': SplitInfo(name='train', num_bytes=292801173, num_examples=229674, dataset_name='medical_dialog')}] ``` Hi @fabianslife, thanks for reporting. I think you were using an old version of `datasets` because this bug was already fixed in version `1.13.0` (13 Oct 2021): - Fix: 55fd140a63b8f03a0e72985647e498f1fc799d3f - PR: #3046 - Issue: #2969 Please, feel free to update the library: `pip install -U datasets`.
[ -1.314253568649292, -0.9926653504371643, -0.6688533425331116, 1.4185221195220947, -0.28479254245758057, -1.1471917629241943, 0.14348597824573517, -1.1243828535079956, 1.6070406436920166, -0.828477144241333, 0.2852188050746918, -1.6505539417266846, -0.009993704035878181, -0.6099316477775574, -0.739518404006958, -0.903564453125, -0.4564576745033264, -0.7694892287254333, 1.0048692226409912, 2.5358920097351074, 1.271024227142334, -1.3681308031082153, 2.694228410720825, 0.6950424909591675, -0.11046987026929855, -0.9672011137008667, 0.6939894556999207, 0.0343753919005394, -1.2990660667419434, -0.39960986375808716, -1.0157432556152344, 0.004209685139358044, -0.46872252225875854, -0.4650420844554901, -0.08810923993587494, 0.4423217475414276, -0.2934718728065491, -0.4204416573047638, -0.5962356328964233, -0.9019321799278259, 0.44523105025291443, -0.31227338314056396, 0.9872028231620789, -0.43726325035095215, 1.8103947639465332, -0.5649301409721375, 0.36774373054504395, 0.754517674446106, 1.2213590145111084, 0.23672550916671753, 0.11131162941455841, 0.1936291754245758, 0.39429715275764465, -0.035417694598436356, 0.5420809984207153, 1.1765297651290894, 0.6725888848304749, 0.4599734842777252, 0.814084529876709, -2.1425418853759766, 1.3360397815704346, -1.0192235708236694, 0.290842205286026, 1.3639168739318848, -0.863528311252594, 0.3605283498764038, -1.8551759719848633, -0.10880237817764282, 0.5152682662010193, -2.23976731300354, 0.2867642045021057, -1.303622841835022, -0.5680612921714783, 0.9120798110961914, 0.2585577964782715, -1.1056879758834839, 0.25381705164909363, -0.455388605594635, 0.957584023475647, 0.46432623267173767, 1.157617211341858, -1.6922539472579956, -0.05728715658187866, -0.2715819180011749, 0.14828455448150635, -1.3864226341247559, -1.5711253881454468, 0.5290307998657227, 0.5820322036743164, 0.6014828681945801, -0.14386306703090668, 1.1006749868392944, -1.1041759252548218, 0.7709185481071472, -0.9792935252189636, -1.6355665922164917, -1.4178111553192139, -2.309065818786621, -2.2801828384399414, 0.7451258301734924, -0.5232115387916565, -0.5704830884933472, 2.072415590286255, -0.9924188852310181, -1.6551560163497925, 1.0855644941329956, 0.21819761395454407, -0.007050843443721533, 2.4169845581054688, 0.21685601770877838, -0.6978952884674072, 0.5196395516395569, -0.7336072325706482, 0.7509992122650146, -0.22737719118595123, 1.3629074096679688, 0.470864862203598, -0.9736472368240356, 1.5502978563308716, -0.3762146532535553, 0.49603670835494995, -0.5317772030830383, -0.5398555397987366, -0.6922841668128967, 0.26848873496055603, 1.7682687044143677, -0.3503994345664978, 1.5871565341949463, -0.263982892036438, -1.5507489442825317, -1.6442241668701172, 0.9018363356590271, 0.49827897548675537, -0.7028006911277771, -0.0061685461550951, -0.36923524737358093, 0.11378596723079681, -0.07810182124376297, 1.1174297332763672, 1.338629961013794, 0.8164478540420532, -0.29941457509994507, -0.7891592979431152, 0.14970487356185913, -0.15268664062023163, -0.7348167300224304, -1.6815904378890991, -0.3287043273448944, 0.1440127044916153, 0.6187060475349426, -1.250573754310608, 1.7486881017684937, 0.9937121272087097, 1.8475921154022217, 1.0290170907974243, -0.40180912613868713, 1.4608755111694336, 0.12870249152183533, 1.7916507720947266, -0.5689820647239685, 0.6108284592628479, -0.316001296043396, -1.1549527645111084, 0.9193753600120544, -0.36217179894447327, -2.0568885803222656, -0.8064565658569336, -0.7652919888496399, -0.19038932025432587, -0.7884320616722107, 1.0032494068145752, -0.2968166768550873, -1.4528542757034302, 0.2151569277048111, -0.6920973658561707, 0.0514167957007885, -1.1760125160217285, 0.2811097800731659, 0.6494664549827576, -0.6568097472190857, 0.06182479113340378, -0.14736999571323395, -1.232828140258789, -0.4903312027454376, 0.30949103832244873, 1.9366623163223267, -0.7471773624420166, 0.9636232852935791, 1.029484510421753, -0.8276591300964355, 0.06361106783151627, 0.2985066771507263, -0.2717403173446655, 0.8131296038627625, -1.0045255422592163, -0.4980440139770508, 1.1460046768188477, -0.18656964600086212, -0.6031224727630615, 1.50364089012146, 0.7407194375991821, -0.9444693326950073, -0.28010496497154236, -0.08922366052865982, -0.7742478847503662, -0.049746688455343246, -1.4491088390350342, -0.1771979033946991, 0.34315750002861023, -1.4971141815185547, -0.5011944770812988, -0.2435663342475891, 1.3033620119094849, -0.22233743965625763, 1.4412548542022705, -0.3432040810585022, -0.21425141394138336, -0.3624698519706726, -0.42839956283569336, 0.14773595333099365, -0.1750890612602234, -0.5674605965614319, 0.305288165807724, -0.972791314125061, 0.29938361048698425, 1.4398374557495117, 0.4554769694805145, -0.008056611754000187, 0.4670400023460388, 1.0361452102661133, 0.46729809045791626, -0.0792640820145607, -0.9362467527389526, -1.4719773530960083, 2.0156302452087402, -1.5576553344726562, 2.02437424659729, 0.7097902297973633, -0.041352737694978714, -1.7956435680389404, -1.913427472114563, 1.344702959060669, 1.1956779956817627, 2.431640625, 0.5382575988769531, 0.35646384954452515, -0.7963199019432068, -0.6320171356201172, 0.4004981517791748, -1.121373176574707, -0.648526132106781, 0.1862165778875351, 2.340256929397583, 1.7382177114486694, -0.478799045085907, -0.17192085087299347, -0.9774022698402405, 1.3413206338882446, -0.10409960895776749, 0.18752914667129517, 2.0399839878082275, -0.2855241298675537, -1.0915483236312866, 1.3689812421798706, -2.361407518386841, 0.09199219197034836, 1.9706815481185913, 0.3638409376144409, 0.0172567181289196, -1.3462907075881958, -0.63888019323349, -0.39585015177726746, -0.5826740860939026, -1.218630075454712, 0.6226860880851746, -0.24812103807926178, -0.7783875465393066, -1.4599157571792603, 0.08819475769996643, -1.193185567855835, -1.7427245378494263, 0.33094942569732666, 1.860045313835144, 2.148301839828491, -0.8015040755271912, 1.5701528787612915, -0.30832019448280334, 0.06390868127346039, 1.1627732515335083, 1.3007389307022095, 3.134713649749756, 1.846834659576416, -1.2757192850112915, 0.6510178446769714, -0.14746586978435516, -0.43561169505119324, 1.1393383741378784, -1.2420276403427124, 1.30739164352417, -0.1623857468366623, -1.154636263847351, -1.1603448390960693, 0.9624209403991699, 0.3805495798587799, 0.06386168301105499, -0.4853985607624054, 1.1473387479782104, 0.14939546585083008, 1.3916596174240112, 0.5701503157615662, -0.2795521318912506, 0.6318815350532532, -0.45117369294166565, -0.5285953283309937, 1.5976775884628296, 0.11989399045705795, -1.5008963346481323, -2.2958669662475586, -0.2837795317173004, -0.8284731507301331, 0.05827474594116211, -0.5568439364433289, -1.0286139249801636, 1.7861181497573853, 0.3091873824596405, -1.2468819618225098, -0.27678054571151733, -0.3749787509441376, -0.5718538761138916, 2.711106061935425, -1.3910280466079712, -0.10414072871208191, -0.9562928676605225, -0.6667175889015198, 1.5554012060165405, -1.2351880073547363, -0.1585492491722107, -1.0627567768096924, -0.6236022710800171, -1.4054549932479858, -0.5253105163574219, 0.0923847183585167, -0.952378511428833, 0.7759673595428467, 0.22670897841453552, -1.059594988822937, -0.32620057463645935, -0.8561987280845642, 0.9139712452888489, -0.13472358882427216, 0.29320868849754333, 1.9201377630233765, 0.41029593348503113, -0.3188755214214325, 0.7144510746002197, 1.1723664999008179, 0.6562925577163696, -0.6523258090019226, 0.10836277902126312, -0.7947425842285156, 0.34612566232681274, -1.3666887283325195, 0.19221946597099304, -2.818071126937866, 0.6432930827140808, -0.08171016722917557, -0.12278395891189575, -0.022628165781497955, -1.2028132677078247, 1.191232442855835, 2.580796241760254, -1.1751750707626343, 0.4206099808216095, 0.3695440888404846, 1.0997785329818726, -1.5225447416305542, 0.32631996273994446, -0.3831574320793152, 1.9801846742630005, 0.24758312106132507, 1.1311094760894775, -0.5413070917129517, -2.212798833847046, 0.628014862537384, -1.3203004598617554, -1.1223989725112915, 0.7404642701148987, -0.8608746528625488, 0.17886413633823395, -1.4417253732681274, -0.17414738237857819, -0.9547804594039917, -1.1341440677642822, 0.6673680543899536, 0.13075082004070282, 0.39184319972991943, -0.5671865940093994, 0.4342610239982605, -2.159109354019165, -1.309630036354065, -0.301462322473526, -0.933180034160614, 0.5601248145103455, -0.38936111330986023, 0.6890397071838379, -0.21696236729621887, -0.05287526920437813, 0.370389848947525, 1.4018117189407349, 3.4251585006713867, 0.14892296493053436, 0.288089394569397, -0.06962423026561737, -1.0802160501480103, 1.6106822490692139, 0.9571375250816345, -0.03439032658934593, -0.5764069557189941, -1.1249089241027832, 1.1940680742263794, 1.92391037940979, 1.0896316766738892, -0.07137695699930191, -0.8584586977958679, -0.7155578136444092, 0.006974761374294758, 0.17939861118793488, 0.4948883056640625, 0.9875600337982178, -0.016968078911304474, 0.05071411281824112, 1.59898042678833, 1.282952904701233, -0.30764633417129517, 0.2292291224002838, -0.8139949440956116, -0.4401625990867615, 0.5469169616699219, 0.21358580887317657, 0.010902459733188152, 0.5261023044586182, -1.0041894912719727, -0.3245929479598999, -0.3813539743423462, -0.9810450673103333, -0.6120049953460693, -0.4437716603279114, -0.37650182843208313, 1.6302934885025024, 0.12531742453575134, -0.4645078480243683, -0.012110869400203228, -0.8337461948394775, -0.1453086882829666, -1.1457502841949463, 0.3279261589050293, -0.1219162568449974, -0.09315729141235352, -0.22578030824661255, 1.7465823888778687, -0.8309205770492554, -2.049870014190674, 0.20713959634304047, 0.27796611189842224, -0.2653104364871979, 0.23845893144607544, 1.5521767139434814, 0.5408584475517273, 1.350226879119873, 1.2093898057937622, 0.9132413864135742, -0.5620015263557434, -1.284729242324829, 0.6802082657814026, 0.9986276030540466, -1.4114102125167847, 0.9272556304931641, -0.13181085884571075, -0.5658429265022278, 0.6499427556991577, 1.2028117179870605, 0.437106192111969, -1.9419195652008057, 0.7597468495368958, -0.9169352054595947, 0.757217288017273, 0.603912353515625, 0.7075802683830261, 0.09481693804264069, 0.7721607089042664, -1.2852166891098022, -1.0751376152038574, -0.6445289850234985, -0.6395965218544006, 1.9890896081924438, -0.22705955803394318, 0.623856782913208, -0.30292201042175293, -1.1968547105789185, -0.145489901304245, 0.6383604407310486, 0.29770106077194214, -0.48687034845352173, 0.7971667051315308, -0.6500820517539978, -1.0914781093597412, -1.2758328914642334, -0.3606836497783661, -1.0366970300674438, -0.9204813838005066, 1.088126540184021, 0.7379627227783203, 0.3350152373313904, 1.9276418685913086, 0.6518378853797913, 0.317781537771225, -2.532728910446167, 0.8242819309234619, 0.27245795726776123, -0.1132781133055687, 0.9518148303031921, 0.2420821487903595, 1.0009160041809082, -0.015005864202976227, 0.6299665570259094, -2.513824939727783, 2.298550605773926, -0.2089267522096634, 0.7347293496131897, 0.09366277605295181, -0.23546336591243744, 1.1429290771484375, 0.6342059373855591, 0.47780129313468933, -1.0687391757965088, 0.571941077709198, -0.5495147705078125, 1.16820228099823, 0.962908923625946, -0.7755813598632812, 0.00879062619060278, 1.3150267601013184, 0.5140132904052734, -0.4098280072212219, -0.8841874003410339, -0.8771289587020874, 0.9674680829048157, 1.7738149166107178, -0.0786648541688919, 0.05587364733219147, 0.8652089238166809, 0.6333380937576294, -1.335154414176941, 0.02878176048398018, -0.7339653968811035, -0.7061336636543274, 1.6718231439590454, 2.083385944366455, -0.08283215016126633, -0.19043339788913727, -0.6347900032997131, -1.2540675401687622, 0.8295742273330688, 0.011224490590393543, 0.2648559510707855, 0.6884427070617676, -0.6513922214508057, 1.0463284254074097, 0.8451372981071472, 0.9394338726997375, 0.2632581889629364, 0.31480783224105835, 0.46685656905174255, -0.31029489636421204, -1.1517306566238403, -0.20275390148162842, -1.0388489961624146, -2.5425682067871094, 0.4459400773048401, -0.22523066401481628, -1.4267750978469849, -0.09373608976602554, -0.978153645992279, 0.923313558101654, -0.6162757873535156, -1.0839786529541016, -1.5732566118240356, 0.20997323095798492, -0.06177489832043648, 0.988418698310852, -1.6539535522460938, -0.27276739478111267, 1.2684780359268188, 0.8546836376190186, -0.6152254939079285, 0.9841495752334595, 0.1352493166923523, 1.0522621870040894, 0.7652862071990967, -0.3770064413547516, 0.5235597491264343, 0.08550167083740234, -1.390103816986084, 0.3599366843700409, 1.2187221050262451, 0.11089499294757843, 1.4814244508743286, -0.5219155550003052, 0.061636827886104584, 0.3770270347595215, -0.5218852758407593, -0.5040233135223389, -0.4663805663585663, 0.6106811761856079, 0.03331230208277702, -0.9671306014060974, -0.057880718261003494, -0.06910687685012817, -0.23841592669487, 0.19218605756759644, -1.3866180181503296, -0.2030903398990631, -0.5109960436820984, -0.5306673645973206, -1.2684434652328491, -0.010832664556801319, 1.3689194917678833, -0.8509372472763062, -0.1759312003850937, 0.3872016966342926, 0.3053375482559204, 0.5512382984161377, 0.6001837849617004, -0.7228714227676392, -0.38342413306236267, -0.3073664903640747, -0.4067569971084595, 0.3809863030910492, 1.3556139469146729, -0.15028077363967896, -0.9875485301017761, 0.69999760389328, -0.3198765814304352, 0.17207162082195282, 1.967776894569397, 0.0009601721540093422, -0.7221201658248901, 0.34643805027008057, -0.7024984359741211, 1.872511386871338, 1.6653372049331665, 1.3622925281524658, -0.1999262124300003, -0.8154734373092651, 0.5487682819366455, -0.36322474479675293, -0.40099775791168213, 0.8887237310409546, 0.40362003445625305, -0.19142402708530426, -1.543182134628296, 0.6960986256599426, 1.3189138174057007, -0.9674532413482666, -0.7248360514640808, 0.15879113972187042, -0.7874161601066589, 1.0069750547409058, 0.621228814125061, 0.35054874420166016, 0.3627801239490509, 1.6086581945419312, 0.8224645853042603, -0.4184401333332062, 0.48219043016433716, 0.5792188048362732, -0.10994038730859756, -2.1535496711730957, -1.087613821029663, 0.30246374011039734, -0.5511128902435303, -1.4637144804000854, 1.428222417831421, -1.1234121322631836, -1.049113392829895, 0.6129065155982971, 0.002915062941610813, 1.370025634765625, 0.40237244963645935, 1.5578327178955078, 2.1070120334625244, 0.8388286232948303, 0.3577786982059479, 1.263166069984436, -0.13060031831264496, -0.42947709560394287, 1.8363813161849976, -0.46915003657341003, 0.44643932580947876, 1.0392338037490845, -0.28449034690856934, -1.0310178995132446, -0.7829870581626892, -1.3299083709716797, -0.6177624464035034, 1.2549577951431274, 0.06505017727613449, -1.1061618328094482, 0.18573233485221863, 1.6023162603378296, 0.1132151260972023, -0.386807382106781, 0.5910643339157104, 0.4536398649215698, -0.7931787371635437, -0.12547168135643005, -0.906015932559967, 0.4892261326313019, -0.14154517650604248, -0.37104085087776184, 0.26694685220718384, 0.44174203276634216, 1.3993074893951416, -0.1199662983417511, 0.1631251871585846, 1.120307445526123, -1.32418954372406, 1.621147632598877, -0.6619130373001099, 0.1788357049226761, -2.304614782333374, 1.4200924634933472, -0.78608238697052, 1.9874159097671509, -2.6462836265563965, 0.4898186922073364, -0.4626038074493408, -0.47758716344833374, 0.2694806158542633, -0.45735964179039, 0.11493809521198273, -0.1476619690656662, -1.005531668663025, -0.07687599956989288, -0.5632224678993225, 0.6441186666488647, 1.1155446767807007, 1.4214075803756714, -1.157373309135437, -0.3811900019645691, -1.7730062007904053, -0.19658887386322021, -0.8120126724243164, 0.2564410865306854, -1.9721152782440186, -0.19743897020816803, -1.8664790391921997, -2.384816884994507, -1.3205446004867554, -0.8777450323104858, 1.1828317642211914, 0.1251826137304306, -0.9612792134284973, 1.2177436351776123, -0.42610466480255127, -1.828150749206543, 1.2710038423538208, -2.2171502113342285 ]
https://github.com/huggingface/datasets/issues/3563
Dataset.from_pandas preserves useless index
Hi! That makes sense. Sure, feel free to open a PR! Just a small suggestion: let's make `preserve_index` a parameter of `Dataset.from_pandas` (which we then pass to `InMemoryTable.from_pandas`) with `None` as a default value to not have this as a breaking change.
## Describe the bug Let's say that you want to create a Dataset object from pandas dataframe. Most likely you will write something like this: ``` import pandas as pd from datasets import Dataset df = pd.read_csv('some_dataset.csv') # Some DataFrame preprocessing code... dataset = Dataset.from_pandas(df) ``` If your preprocessing code contain indexing operations like this: ``` df = df[df.col1 == some_value] ``` then your df.index can be changed from (default) ```RangeIndex(start=0, stop=16590, step=1)``` to something like this ```Int64Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ... 83979, 83980, 83981, 83982, 83983, 83984, 83985, 83986, 83987, 83988], dtype='int64', length=16590)``` In this case, PyArrow (by default) will preserve this non-standard index. In the result, your dataset object will have the extra field that you likely don't want to have: '__index_level_0__'. You can easily fix this by just adding extra argument ```preserve_index=False``` to call of ```InMemoryTable.from_pandas``` in ```arrow_dataset.py```. If you approve that this isn't desirable behavior, I can make a PR fixing that. ## Environment info - `datasets` version: 1.16.1 - Platform: Linux-5.11.0-44-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1
1,009
42
Dataset.from_pandas preserves useless index ## Describe the bug Let's say that you want to create a Dataset object from pandas dataframe. Most likely you will write something like this: ``` import pandas as pd from datasets import Dataset df = pd.read_csv('some_dataset.csv') # Some DataFrame preprocessing code... dataset = Dataset.from_pandas(df) ``` If your preprocessing code contain indexing operations like this: ``` df = df[df.col1 == some_value] ``` then your df.index can be changed from (default) ```RangeIndex(start=0, stop=16590, step=1)``` to something like this ```Int64Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ... 83979, 83980, 83981, 83982, 83983, 83984, 83985, 83986, 83987, 83988], dtype='int64', length=16590)``` In this case, PyArrow (by default) will preserve this non-standard index. In the result, your dataset object will have the extra field that you likely don't want to have: '__index_level_0__'. You can easily fix this by just adding extra argument ```preserve_index=False``` to call of ```InMemoryTable.from_pandas``` in ```arrow_dataset.py```. If you approve that this isn't desirable behavior, I can make a PR fixing that. ## Environment info - `datasets` version: 1.16.1 - Platform: Linux-5.11.0-44-generic-x86_64-with-glibc2.31 - Python version: 3.9.7 - PyArrow version: 6.0.1 Hi! That makes sense. Sure, feel free to open a PR! Just a small suggestion: let's make `preserve_index` a parameter of `Dataset.from_pandas` (which we then pass to `InMemoryTable.from_pandas`) with `None` as a default value to not have this as a breaking change.
[ -1.1564339399337769, -0.8612207770347595, -0.6418135762214661, 1.5253499746322632, -0.25385934114456177, -1.1826426982879639, 0.26003795862197876, -1.1215293407440186, 1.7894309759140015, -0.7769030332565308, 0.221666619181633, -1.6490888595581055, 0.006257582455873489, -0.6637668609619141, -0.782237708568573, -0.8408766388893127, -0.43767473101615906, -0.8164636492729187, 0.9927070140838623, 2.4271459579467773, 1.1768676042556763, -1.3446749448776245, 2.6393966674804688, 0.7494117021560669, -0.19828465580940247, -0.950076162815094, 0.4494103193283081, -0.017532750964164734, -1.3183952569961548, -0.42785531282424927, -0.9422100782394409, -0.10920384526252747, -0.6702316403388977, -0.6311334371566772, 0.0015079258009791374, 0.4458557963371277, -0.3774775564670563, -0.4272165298461914, -0.40485063195228577, -0.8357622623443604, 0.445278525352478, -0.33856964111328125, 0.9775336980819702, -0.28562721610069275, 1.7911806106567383, -0.6318661570549011, 0.47239720821380615, 0.7673279643058777, 1.2748851776123047, 0.17893488705158234, -0.04883192107081413, 0.32859134674072266, 0.348967045545578, 0.04192836210131645, 0.5352935791015625, 1.1737419366836548, 0.7057392597198486, 0.4721123278141022, 0.7567138671875, -2.269994020462036, 1.2932400703430176, -1.0922333002090454, 0.33780527114868164, 1.3109890222549438, -0.9925099611282349, 0.29320260882377625, -1.8005411624908447, 0.026454899460077286, 0.5258710980415344, -2.204501152038574, 0.43723857402801514, -1.3627758026123047, -0.5098499655723572, 1.0940728187561035, 0.4198046326637268, -1.2498219013214111, 0.14040377736091614, -0.35586702823638916, 1.0189838409423828, 0.4087899327278137, 0.9974911212921143, -1.7783887386322021, 0.043467942625284195, -0.3949598968029022, 0.14127926528453827, -1.2055237293243408, -1.4408103227615356, 0.5573799014091492, 0.7122915983200073, 0.5907273292541504, -0.17219235002994537, 1.100948691368103, -1.003433346748352, 0.6986901760101318, -1.0925695896148682, -1.7349069118499756, -1.4172831773757935, -2.195546865463257, -2.307593822479248, 0.7129262685775757, -0.4882771372795105, -0.5185158252716064, 2.111635446548462, -1.0321651697158813, -1.7406753301620483, 1.1567473411560059, 0.3393181562423706, -0.09858404099941254, 2.3294243812561035, 0.2129051387310028, -0.724187433719635, 0.48016804456710815, -0.785463273525238, 0.7792056798934937, -0.3661281168460846, 1.4019787311553955, 0.42184239625930786, -1.0773907899856567, 1.643206000328064, -0.3652348518371582, 0.5855244398117065, -0.653708279132843, -0.4715186059474945, -0.714702844619751, 0.3319631814956665, 1.880307674407959, -0.27334967255592346, 1.3899130821228027, -0.38482192158699036, -1.5596179962158203, -1.5565967559814453, 0.9482824802398682, 0.45569121837615967, -0.7491021156311035, 0.12811987102031708, -0.4227445125579834, 0.10580664873123169, -0.08201059699058533, 1.1829077005386353, 1.3409663438796997, 0.7814679145812988, -0.3617343604564667, -0.8431745171546936, 0.11162114143371582, -0.09527857601642609, -0.7835084795951843, -1.7634087800979614, -0.3413795530796051, 0.02779417484998703, 0.6213563680648804, -1.1862326860427856, 1.8490800857543945, 0.8308303356170654, 1.901588797569275, 0.9657623767852783, -0.42401397228240967, 1.537638545036316, 0.08915843069553375, 1.9144327640533447, -0.4342826008796692, 0.686858594417572, -0.4356634318828583, -1.1345809698104858, 0.8979672193527222, -0.34462854266166687, -2.093745231628418, -0.6576678156852722, -0.7741895318031311, -0.16741064190864563, -0.8053632378578186, 0.9257379174232483, -0.1957412213087082, -1.4932067394256592, 0.26949170231819153, -0.7189133167266846, 0.13186697661876678, -1.2233672142028809, 0.3072044253349304, 0.734623908996582, -0.644256591796875, 0.1391628086566925, -0.2874264121055603, -1.2740650177001953, -0.4755827486515045, 0.3321593701839447, 1.8066068887710571, -0.7243885397911072, 0.9368752837181091, 1.1023274660110474, -0.6959418654441833, -0.1590466946363449, 0.4096716344356537, -0.2485685795545578, 0.8350499868392944, -1.0505940914154053, -0.4664565920829773, 1.138913869857788, -0.07277274131774902, -0.5530012249946594, 1.4346565008163452, 0.7041205763816833, -0.9753767251968384, -0.13399778306484222, -0.2017124891281128, -0.7500437498092651, 0.08223073184490204, -1.6303776502609253, -0.0000891759991645813, 0.4738749563694, -1.5254919528961182, -0.4611896276473999, -0.1691005975008011, 1.331752061843872, -0.11795254051685333, 1.4092909097671509, -0.2153245210647583, -0.12853273749351501, -0.35761696100234985, -0.3547000586986542, 0.09826155006885529, -0.18687500059604645, -0.6010282039642334, 0.23362410068511963, -0.6737002730369568, 0.41522473096847534, 1.4592782258987427, 0.2373659610748291, 0.00783078558743, 0.4742787480354309, 1.134437084197998, 0.3322986662387848, 0.00222825538367033, -0.8879499435424805, -1.5032976865768433, 1.929315209388733, -1.4692680835723877, 1.9481370449066162, 0.7024933099746704, 0.019010066986083984, -1.7217130661010742, -1.899829387664795, 1.466357946395874, 1.1616134643554688, 2.3213393688201904, 0.6261593699455261, 0.4107153117656708, -0.8794524073600769, -0.599839448928833, 0.37977638840675354, -0.9635117650032043, -0.7262172102928162, 0.1931009292602539, 2.4525766372680664, 1.7130905389785767, -0.424102246761322, -0.2141202986240387, -1.1165642738342285, 1.4466331005096436, -0.2441023737192154, 0.2605781853199005, 1.9973477125167847, -0.26778337359428406, -1.0959258079528809, 1.3111475706100464, -2.3672561645507812, 0.1710694134235382, 1.9355475902557373, 0.23006361722946167, 0.1548968255519867, -1.4416429996490479, -0.6092286109924316, -0.18619465827941895, -0.478222519159317, -1.2388274669647217, 0.5372968316078186, -0.23847490549087524, -0.6961299777030945, -1.4274616241455078, 0.24006927013397217, -1.1169499158859253, -1.6654853820800781, 0.1716601848602295, 1.902056336402893, 2.040748357772827, -0.7759987711906433, 1.5767383575439453, -0.34378349781036377, 0.20019668340682983, 1.2762118577957153, 1.2628949880599976, 3.088876724243164, 1.9199421405792236, -1.2923119068145752, 0.6718843579292297, -0.13623377680778503, -0.47411951422691345, 1.2252849340438843, -1.2058097124099731, 1.27043616771698, -0.1701328307390213, -1.1467175483703613, -1.2336227893829346, 0.8397141695022583, 0.4495185613632202, 0.04860501363873482, -0.4746688902378082, 1.173940658569336, 0.09427115321159363, 1.328802227973938, 0.5838218927383423, -0.3111738860607147, 0.694968044757843, -0.4347934126853943, -0.4844004213809967, 1.5104938745498657, 0.24791520833969116, -1.2387988567352295, -2.24690580368042, -0.19965434074401855, -0.8716099858283997, 0.036802902817726135, -0.595871090888977, -0.945911705493927, 1.6217448711395264, 0.38969898223876953, -1.2054858207702637, -0.18305577337741852, -0.20570510625839233, -0.4801385998725891, 2.637970209121704, -1.3580113649368286, -0.2725001871585846, -1.031692385673523, -0.6352980732917786, 1.6147751808166504, -1.1297577619552612, -0.24478501081466675, -1.0919278860092163, -0.5259447693824768, -1.2864418029785156, -0.5759226679801941, -0.07143605500459671, -0.8844107985496521, 0.9304876327514648, 0.20783358812332153, -1.375122308731079, -0.4205494821071625, -0.8939568996429443, 0.927656888961792, -0.13163764774799347, 0.20313960313796997, 1.7995983362197876, 0.3720713257789612, -0.42963603138923645, 0.7677991986274719, 1.1827136278152466, 0.6223345398902893, -0.5434570908546448, 0.37201812863349915, -0.6866922378540039, 0.34047672152519226, -1.297313928604126, 0.3001440465450287, -2.8512797355651855, 0.5859718322753906, -0.015064576640725136, -0.0408894419670105, -0.06329810619354248, -1.390662670135498, 1.0537283420562744, 2.5526537895202637, -1.1223877668380737, 0.52045738697052, 0.24337565898895264, 1.2044395208358765, -1.532153844833374, 0.23409739136695862, -0.44802525639533997, 2.1949758529663086, 0.1493842750787735, 1.2596490383148193, -0.4199514091014862, -2.4190075397491455, 0.5595753192901611, -1.310757040977478, -1.150750994682312, 0.7886910438537598, -0.8121986389160156, 0.06568412482738495, -1.371626377105713, -0.3260349631309509, -0.8600891828536987, -1.2460960149765015, 0.7889664173126221, 0.20333753526210785, 0.49573764204978943, -0.5700678825378418, 0.4299968183040619, -2.1479830741882324, -1.2911834716796875, -0.26782655715942383, -0.9343134164810181, 0.43852147459983826, -0.2533526122570038, 0.6774701476097107, -0.19852496683597565, -0.06778940558433533, 0.43003949522972107, 1.5029749870300293, 3.3501694202423096, 0.09994019567966461, 0.35189127922058105, -0.1668441742658615, -0.9177181124687195, 1.385318636894226, 0.9495297074317932, -0.12154582142829895, -0.5627634525299072, -1.1072943210601807, 1.2009629011154175, 1.9588685035705566, 0.9597554206848145, -0.02960594929754734, -0.8430824875831604, -0.7936691045761108, -0.017122164368629456, 0.12414021790027618, 0.40116286277770996, 0.8357890248298645, 0.22468575835227966, 0.038320738822221756, 1.3857046365737915, 1.1436288356781006, -0.41587892174720764, 0.4466959834098816, -0.836353063583374, -0.46401476860046387, 0.5325552821159363, 0.30779382586479187, -0.0037066126242280006, 0.2363334596157074, -1.1454700231552124, -0.2379859834909439, -0.3460766077041626, -0.8844543695449829, -0.7786300182342529, -0.42655742168426514, -0.3365866243839264, 1.6498061418533325, 0.03421417623758316, -0.4957195520401001, -0.04907611757516861, -0.7057443857192993, -0.09940989315509796, -0.9982569217681885, 0.2800699770450592, -0.18325766921043396, -0.11632223427295685, -0.19939100742340088, 1.7620925903320312, -0.8579685091972351, -1.9581259489059448, 0.22582554817199707, 0.217696875333786, -0.29068097472190857, 0.29245683550834656, 1.6236053705215454, 0.5586289167404175, 1.5014334917068481, 1.3536702394485474, 1.0974187850952148, -0.647265613079071, -1.3420072793960571, 0.7112603187561035, 0.9668044447898865, -1.3930760622024536, 0.7145564556121826, 0.03782547637820244, -0.46045389771461487, 0.6361392140388489, 1.2765138149261475, 0.47506222128868103, -2.090071678161621, 0.7367036938667297, -0.9451601505279541, 0.7589268684387207, 0.7713557481765747, 0.7878201007843018, 0.25531205534935, 0.8355318307876587, -1.2772424221038818, -1.1477890014648438, -0.6726168990135193, -0.7116713523864746, 1.9821913242340088, -0.33511883020401, 0.5514418482780457, -0.16911691427230835, -1.4783437252044678, -0.14131425321102142, 0.7225697636604309, 0.45019736886024475, -0.6228234767913818, 0.7199816703796387, -0.6277931332588196, -1.063746690750122, -1.316352128982544, -0.5418038964271545, -1.088070034980774, -0.9176121354103088, 0.8930989503860474, 0.8404902219772339, 0.39110153913497925, 1.8234479427337646, 0.6862667798995972, 0.21595144271850586, -2.549194812774658, 0.9053922295570374, 0.30432820320129395, -0.10803072154521942, 0.7708806991577148, 0.4006585478782654, 1.0275882482528687, -0.05872051790356636, 0.6362078785896301, -2.483405828475952, 2.383928060531616, -0.19296015799045563, 0.65291428565979, 0.02780209481716156, -0.20129109919071198, 1.0642887353897095, 0.48738381266593933, 0.46609002351760864, -1.0120607614517212, 0.6159507632255554, -0.6809092164039612, 1.3133200407028198, 0.8117632865905762, -0.8096883893013, -0.07749862968921661, 1.274717092514038, 0.36795103549957275, -0.5336169004440308, -0.8965966105461121, -1.059676170349121, 0.9815778136253357, 1.721669316291809, -0.16210757195949554, -0.016413243487477303, 0.8711728453636169, 0.6947386860847473, -1.2833720445632935, 0.08423274755477905, -0.7435546517372131, -0.8182222247123718, 1.6427252292633057, 2.0693886280059814, -0.3022116720676422, -0.19809278845787048, -0.7788846492767334, -1.180946946144104, 0.8229110836982727, 0.06618350744247437, -0.0013170940801501274, 0.6210059523582458, -0.5290799736976624, 1.0971418619155884, 0.8626086115837097, 0.9461762309074402, 0.3133303225040436, 0.3546178340911865, 0.3482261300086975, -0.422221839427948, -1.1946848630905151, -0.28179091215133667, -1.051237940788269, -2.6739895343780518, 0.5166991353034973, -0.21260932087898254, -1.4000242948532104, 0.01694319397211075, -0.9924973249435425, 0.8533471822738647, -0.5620639324188232, -1.171347737312317, -1.4604694843292236, 0.23284757137298584, -0.05949631333351135, 0.9763215780258179, -1.6326234340667725, 0.025041691958904266, 1.1634702682495117, 0.9337446093559265, -0.7531269192695618, 0.9693610072135925, 0.24609491229057312, 1.0551873445510864, 1.0339720249176025, -0.3240411579608917, 0.5138167142868042, 0.0899481326341629, -1.2929177284240723, 0.42131322622299194, 1.2047991752624512, 0.08655735850334167, 1.5087544918060303, -0.5769076943397522, -0.051062215119600296, 0.4189411401748657, -0.5101705193519592, -0.39923831820487976, -0.6505435705184937, 0.625758945941925, 0.06741347908973694, -0.8998632431030273, 0.024976741522550583, 0.012990174815058708, -0.18208573758602142, 0.16325390338897705, -1.5466207265853882, -0.135822594165802, -0.29542046785354614, -0.569248616695404, -1.233898401260376, -0.10225385427474976, 1.323889970779419, -0.6193116903305054, -0.23297947645187378, 0.5455085039138794, 0.341450035572052, 0.49786344170570374, 0.6398982405662537, -0.6336845755577087, -0.5021263360977173, -0.26643815636634827, -0.3956579566001892, 0.37704330682754517, 1.3565936088562012, -0.03541657328605652, -1.0162369012832642, 0.6771191954612732, -0.40632832050323486, -0.018011223524808884, 1.816393256187439, 0.05869289115071297, -0.8629996180534363, 0.3554501235485077, -0.632768988609314, 1.8948643207550049, 1.7589584589004517, 1.2611236572265625, -0.13650363683700562, -1.0031094551086426, 0.6387000679969788, -0.4589158594608307, -0.3872447907924652, 0.9350607991218567, 0.40786656737327576, -0.22265198826789856, -1.36692476272583, 0.7514650821685791, 1.3486297130584717, -0.8428648114204407, -0.8595535755157471, 0.14864373207092285, -0.6899551749229431, 1.0846670866012573, 0.7334257960319519, 0.38260090351104736, 0.24211248755455017, 1.6033223867416382, 0.7868961691856384, -0.4724901616573334, 0.7191008925437927, 0.4204043447971344, -0.13864247500896454, -2.117406129837036, -1.3223119974136353, 0.2745569348335266, -0.5087915658950806, -1.640606164932251, 1.350968837738037, -1.1381100416183472, -0.9632050395011902, 0.4928945004940033, 0.022772569209337234, 1.3789925575256348, 0.3663393259048462, 1.4753377437591553, 2.074340343475342, 0.8405651450157166, 0.4661852717399597, 1.3000189065933228, -0.24842968583106995, -0.4452613294124603, 1.8142337799072266, -0.564250648021698, 0.5251417756080627, 1.111880898475647, -0.20941954851150513, -1.0902159214019775, -0.8399691581726074, -1.2970250844955444, -0.6977319121360779, 1.1735612154006958, 0.031913284212350845, -1.13289213180542, 0.3314248025417328, 1.5889801979064941, -0.04066796600818634, -0.3159758150577545, 0.6942620873451233, 0.3419668674468994, -0.8766517639160156, -0.08397483825683594, -0.9280946850776672, 0.5459609031677246, -0.24440255761146545, -0.3439722955226898, 0.3797988295555115, 0.5218759179115295, 1.2906458377838135, 0.014186937361955643, 0.06198924407362938, 0.9979991912841797, -1.41550874710083, 1.4940929412841797, -0.7134758830070496, 0.35042300820350647, -2.3078689575195312, 1.3158146142959595, -0.7841131687164307, 1.8715155124664307, -2.696789026260376, 0.42628082633018494, -0.4641861319541931, -0.5245481729507446, 0.3129786550998688, -0.25586819648742676, 0.16870881617069244, -0.22724999487400055, -1.1953349113464355, -0.05533461645245552, -0.7220819592475891, 0.5615397691726685, 1.0088297128677368, 1.437688946723938, -1.2016608715057373, -0.25341367721557617, -1.7260167598724365, -0.1017940491437912, -0.5918624401092529, 0.30367663502693176, -1.9746955633163452, -0.18896129727363586, -1.9460688829421997, -2.361048460006714, -1.2605522871017456, -0.8288504481315613, 1.1924023628234863, 0.023824989795684814, -0.8509930372238159, 1.1922401189804077, -0.3333697021007538, -1.9101001024246216, 1.0625666379928589, -2.120033025741577 ]
https://github.com/huggingface/datasets/issues/3561
Cannot load ‘bookcorpusopen’
The host of this copy of the dataset (https://the-eye.eu) is down and has been down for a good amount of time ([potentially months](https://www.reddit.com/r/Roms/comments/q82s15/theeye_downdied/)) Finding this dataset is a little esoteric, as the original authors took down the official BookCorpus dataset some time ago. There are community-created versions of BookCorpus, such as the files hosted in the link below. https://battle.shawwn.com/sdb/bookcorpus/ And more discussion here: https://github.com/soskek/bookcorpus Do we want to remove this dataset entirely? There's a fair argument for this, given that the official BookCorpus dataset was taken down by the authors. If not, perhaps can open a PR with the link to the community-created tar above and updated dataset description.
## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1
1,010
109
Cannot load ‘bookcorpusopen’ ## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1 The host of this copy of the dataset (https://the-eye.eu) is down and has been down for a good amount of time ([potentially months](https://www.reddit.com/r/Roms/comments/q82s15/theeye_downdied/)) Finding this dataset is a little esoteric, as the original authors took down the official BookCorpus dataset some time ago. There are community-created versions of BookCorpus, such as the files hosted in the link below. https://battle.shawwn.com/sdb/bookcorpus/ And more discussion here: https://github.com/soskek/bookcorpus Do we want to remove this dataset entirely? There's a fair argument for this, given that the official BookCorpus dataset was taken down by the authors. If not, perhaps can open a PR with the link to the community-created tar above and updated dataset description.
[ -1.1777678728103638, -0.8930011987686157, -0.8729084134101868, 1.4771370887756348, -0.1530703455209732, -1.2473615407943726, 0.06174406781792641, -0.9757436513900757, 1.595107913017273, -0.7727780342102051, 0.24985188245773315, -1.6348249912261963, -0.10042409598827362, -0.6780536770820618, -0.6792734265327454, -0.8678925633430481, -0.38856151700019836, -0.8144964575767517, 0.9796463847160339, 2.515413522720337, 1.1866129636764526, -1.4374750852584839, 2.767298936843872, 0.7034215927124023, -0.1383662074804306, -1.0378475189208984, 0.5099853873252869, -0.010075715370476246, -1.2941516637802124, -0.44263431429862976, -0.9026543498039246, -0.032030247151851654, -0.5812340974807739, -0.4856695532798767, 0.051284242421388626, 0.4227009117603302, -0.28355616331100464, -0.40287303924560547, -0.5588302612304688, -0.8117809295654297, 0.48626524209976196, -0.348858118057251, 0.9166799187660217, -0.28221002221107483, 1.7706527709960938, -0.5160766243934631, 0.39298102259635925, 0.7327571511268616, 1.2995874881744385, 0.1644067019224167, 0.032797228544950485, 0.32655850052833557, 0.4239966869354248, -0.0016253823414444923, 0.4661422073841095, 1.1805981397628784, 0.6230963468551636, 0.3988003432750702, 0.6614838242530823, -2.2248857021331787, 1.3617801666259766, -0.9060916900634766, 0.2986195683479309, 1.3375133275985718, -0.9812615513801575, 0.3760319650173187, -1.7809302806854248, -0.010425537824630737, 0.5861091017723083, -2.290724039077759, 0.23445947468280792, -1.2999413013458252, -0.46640291810035706, 0.8868452906608582, 0.3017258644104004, -1.2350908517837524, 0.12718643248081207, -0.43886318802833557, 1.0038515329360962, 0.49525752663612366, 1.170028567314148, -1.742275595664978, -0.10794475674629211, -0.218331977725029, 0.09524940699338913, -1.3174595832824707, -1.492020845413208, 0.4815422296524048, 0.7068291902542114, 0.6432799696922302, -0.12568464875221252, 1.0073941946029663, -0.9189254641532898, 0.800397515296936, -0.9073530435562134, -1.7440953254699707, -1.4295539855957031, -2.365663528442383, -2.322943925857544, 0.7938755750656128, -0.4368509352207184, -0.48174840211868286, 2.0028786659240723, -0.9365782141685486, -1.8688796758651733, 1.0578371286392212, 0.33873316645622253, 0.03212821111083031, 2.3466551303863525, 0.1889122873544693, -0.8263012766838074, 0.4492183029651642, -0.757208526134491, 0.7483647465705872, -0.41081854701042175, 1.3192121982574463, 0.4993707239627838, -0.9899616837501526, 1.5948679447174072, -0.4497760236263275, 0.543515682220459, -0.7386345267295837, -0.4607202410697937, -0.8628368973731995, 0.2895034849643707, 1.8657654523849487, -0.3544791042804718, 1.603607416152954, -0.34366393089294434, -1.5228630304336548, -1.5560110807418823, 0.873187243938446, 0.46048006415367126, -0.8092989921569824, 0.06879580765962601, -0.4317066967487335, 0.16152812540531158, -0.06151310354471207, 1.0487751960754395, 1.239948034286499, 0.6512571573257446, -0.3006509244441986, -0.926548421382904, 0.3024822175502777, -0.14449483156204224, -0.6589317321777344, -1.827928900718689, -0.31859079003334045, 0.20614509284496307, 0.6136791110038757, -1.2771717309951782, 1.7325475215911865, 0.8486025929450989, 1.9488941431045532, 0.9717011451721191, -0.38321906328201294, 1.5010383129119873, 0.06187133118510246, 1.9047913551330566, -0.5203348398208618, 0.6414098143577576, -0.362718403339386, -1.159447193145752, 0.8425519466400146, -0.27169421315193176, -2.0007312297821045, -0.7230219841003418, -0.8868611454963684, -0.1481807678937912, -0.7270262837409973, 0.9251428842544556, -0.2854389250278473, -1.414151668548584, 0.21146821975708008, -0.7285481095314026, 0.17025266587734222, -1.2466477155685425, 0.19137980043888092, 0.8125668168067932, -0.6458309888839722, 0.047022294253110886, -0.2964540719985962, -1.2888469696044922, -0.4300791025161743, 0.40414732694625854, 1.8739914894104004, -0.7246202230453491, 0.9957118034362793, 0.9528645873069763, -0.6750354766845703, 0.08464504033327103, 0.24564328789710999, -0.31041714549064636, 0.9654882550239563, -1.0157338380813599, -0.3993699848651886, 1.165440320968628, -0.20564721524715424, -0.6476378440856934, 1.5327118635177612, 0.7842648029327393, -0.9230284690856934, -0.24014893174171448, -0.16074249148368835, -0.8171867728233337, -0.011379428207874298, -1.6355477571487427, -0.1653684824705124, 0.3420667052268982, -1.5359172821044922, -0.5007999539375305, -0.22254469990730286, 1.3305624723434448, -0.08488890528678894, 1.4611995220184326, -0.3531295955181122, -0.19377566874027252, -0.4299517869949341, -0.354491263628006, 0.11484372615814209, -0.25662359595298767, -0.6042381525039673, 0.24965247511863708, -0.8503687977790833, 0.296567440032959, 1.3844844102859497, 0.33069294691085815, 0.04701528325676918, 0.6102858781814575, 1.1254637241363525, 0.4285784959793091, -0.027877192944288254, -0.8280749917030334, -1.552627682685852, 1.9958168268203735, -1.4305610656738281, 1.917278528213501, 0.7531121373176575, -0.0173755194991827, -1.768744945526123, -1.898979663848877, 1.3859351873397827, 1.08823823928833, 2.403960704803467, 0.6090704798698425, 0.4582790434360504, -0.8173484802246094, -0.7237785458564758, 0.27617669105529785, -0.9928702712059021, -0.7652694582939148, 0.13323703408241272, 2.403951644897461, 1.7784041166305542, -0.4410116374492645, -0.2768949568271637, -1.0458083152770996, 1.4138189554214478, -0.22442181408405304, 0.1915375143289566, 2.013787269592285, -0.2200741469860077, -1.0085710287094116, 1.2293509244918823, -2.379565715789795, 0.16045911610126495, 2.0175435543060303, 0.23813556134700775, 0.06659307330846786, -1.3977032899856567, -0.739405632019043, -0.2145216166973114, -0.46607446670532227, -1.2089595794677734, 0.5878868699073792, -0.33990243077278137, -0.8854556083679199, -1.4751551151275635, 0.12941817939281464, -1.0921911001205444, -1.736220121383667, 0.24642819166183472, 1.832173466682434, 2.008206844329834, -0.706058144569397, 1.4961718320846558, -0.26448941230773926, 0.12309471517801285, 1.281934142112732, 1.208052158355713, 3.2196481227874756, 1.900957465171814, -1.2345799207687378, 0.6948217153549194, -0.05759523808956146, -0.46848058700561523, 1.133971929550171, -1.1918737888336182, 1.1679397821426392, -0.2760777771472931, -1.264046549797058, -1.2681583166122437, 1.0024529695510864, 0.5191001892089844, 0.05133361369371414, -0.5381169319152832, 1.2336769104003906, 0.03846440091729164, 1.285102367401123, 0.585914671421051, -0.33760255575180054, 0.5947591662406921, -0.4646214544773102, -0.5507484078407288, 1.5708857774734497, 0.2130642533302307, -1.3983280658721924, -2.3462071418762207, -0.20306123793125153, -0.8439810872077942, -0.0574478879570961, -0.5990909337997437, -0.9718270301818848, 1.618978500366211, 0.5301439166069031, -1.252124547958374, -0.32776814699172974, -0.381823867559433, -0.6117434501647949, 2.6910789012908936, -1.3962246179580688, -0.22648438811302185, -1.0148468017578125, -0.4896340072154999, 1.650415062904358, -1.1789929866790771, -0.22021006047725677, -1.066595196723938, -0.6562685966491699, -1.312003254890442, -0.576844334602356, -0.1259973794221878, -0.8869950771331787, 0.794646143913269, 0.09520958364009857, -1.1726781129837036, -0.26334986090660095, -0.897294819355011, 0.954464316368103, -0.11246857792139053, 0.23194697499275208, 1.8924823999404907, 0.4500685930252075, -0.42303603887557983, 0.7591400742530823, 1.1196749210357666, 0.6230486631393433, -0.6425139904022217, 0.23047633469104767, -0.619113564491272, 0.299014151096344, -1.3664906024932861, 0.1808227002620697, -2.90661883354187, 0.6398001909255981, 0.024354707449674606, -0.0442928671836853, -0.07963520288467407, -1.2208352088928223, 1.1739643812179565, 2.5578932762145996, -1.2158782482147217, 0.4602450132369995, 0.3878525495529175, 1.1730543375015259, -1.6060043573379517, 0.3129676282405853, -0.4532634913921356, 2.1180665493011475, 0.10072522610425949, 1.2231611013412476, -0.42619502544403076, -2.227332353591919, 0.5655430555343628, -1.2941149473190308, -1.0627070665359497, 0.8161396980285645, -0.7897163033485413, 0.08292718976736069, -1.4298368692398071, -0.18276557326316833, -0.7609213590621948, -1.2613061666488647, 0.7474400401115417, 0.07980658113956451, 0.44441401958465576, -0.5969748497009277, 0.3592168688774109, -2.1672327518463135, -1.3245807886123657, -0.25873276591300964, -0.9841805100440979, 0.4480641484260559, -0.3208833634853363, 0.6934335827827454, -0.13651809096336365, 0.04194926470518112, 0.2689599096775055, 1.3463280200958252, 3.4114482402801514, 0.18251532316207886, 0.31987807154655457, -0.07796201854944229, -0.9760684370994568, 1.4120831489562988, 0.9935582876205444, -0.16329297423362732, -0.5509958863258362, -1.0198314189910889, 1.3489906787872314, 1.9405547380447388, 1.0883474349975586, 0.1143748089671135, -0.7527728080749512, -0.7409060597419739, 0.0020005647093057632, 0.15424712002277374, 0.5153175592422485, 0.9025235772132874, 0.08328445255756378, 0.1292693167924881, 1.424015760421753, 1.2038323879241943, -0.2842507064342499, 0.3843338191509247, -0.908554196357727, -0.3912509083747864, 0.4855142831802368, 0.2577415406703949, -0.059335123747587204, 0.38731321692466736, -1.0861148834228516, -0.23459894955158234, -0.38123011589050293, -0.9388708472251892, -0.659496545791626, -0.47471919655799866, -0.3846190869808197, 1.6443301439285278, 0.13142842054367065, -0.45027920603752136, -0.044604845345020294, -0.8138368725776672, -0.10188525170087814, -1.06293785572052, 0.3574255406856537, -0.16336500644683838, 0.009391414932906628, -0.11963941156864166, 1.7233070135116577, -0.875974714756012, -2.154008150100708, 0.28465214371681213, 0.2563304305076599, -0.38432690501213074, 0.1665760576725006, 1.7235666513442993, 0.5794938802719116, 1.3469361066818237, 1.3190633058547974, 0.9568862318992615, -0.5656564235687256, -1.2538045644760132, 0.661098062992096, 1.0325502157211304, -1.3943384885787964, 0.8664987683296204, -0.0057472288608551025, -0.5023852586746216, 0.67170250415802, 1.245628833770752, 0.40541064739227295, -2.0382752418518066, 0.699431300163269, -0.8131260275840759, 0.8060211539268494, 0.7045489549636841, 0.7013341188430786, 0.17155160009860992, 0.7417745590209961, -1.3316649198532104, -1.1525912284851074, -0.6873807907104492, -0.6510211825370789, 1.9576722383499146, -0.24407559633255005, 0.5612459778785706, -0.16128060221672058, -1.3142273426055908, -0.12317147850990295, 0.7142295241355896, 0.3193162977695465, -0.49414658546447754, 0.8865005373954773, -0.6181742548942566, -1.196330189704895, -1.339062213897705, -0.40037283301353455, -1.0029231309890747, -0.9104510545730591, 1.0019954442977905, 0.8057841658592224, 0.3172287940979004, 1.866434097290039, 0.6381053924560547, 0.14666201174259186, -2.6865906715393066, 0.9270142912864685, 0.38228291273117065, -0.03665114939212799, 0.9232205152511597, 0.2045445591211319, 1.1004191637039185, -0.025149136781692505, 0.6493983864784241, -2.3623690605163574, 2.2381649017333984, -0.16147375106811523, 0.6659948229789734, -0.02896302193403244, -0.13648447394371033, 1.0104414224624634, 0.557624101638794, 0.6618285775184631, -1.1261193752288818, 0.7884906530380249, -0.6093997359275818, 1.1719783544540405, 0.9258549809455872, -0.8522480726242065, -0.019774366170167923, 1.3942466974258423, 0.49565574526786804, -0.49923083186149597, -0.8905732035636902, -0.9678963422775269, 0.981675386428833, 1.763150691986084, 0.012492404319345951, -0.0001358063891530037, 0.9246832132339478, 0.559889554977417, -1.3464421033859253, 0.0951937735080719, -0.7160593867301941, -0.6663282513618469, 1.720320224761963, 2.050128221511841, -0.08734218031167984, -0.1821107566356659, -0.7792105078697205, -1.2561246156692505, 0.7094785571098328, 0.051400456577539444, 0.06311310082674026, 0.7781440019607544, -0.6074920892715454, 1.1480642557144165, 0.7159910798072815, 0.8809022307395935, 0.11257108300924301, 0.2967188358306885, 0.30270272493362427, -0.3324665427207947, -1.2905951738357544, -0.2515200972557068, -1.0458154678344727, -2.4183998107910156, 0.46284109354019165, -0.19578823447227478, -1.3927439451217651, 0.04421352595090866, -1.0937988758087158, 0.9413360953330994, -0.62526935338974, -1.120234727859497, -1.44533371925354, 0.25096261501312256, -0.12580488622188568, 0.8518522381782532, -1.5319693088531494, -0.017625698819756508, 1.314344882965088, 0.8945582509040833, -0.6787226796150208, 1.0132956504821777, 0.26100587844848633, 1.024379849433899, 0.8450308442115784, -0.36103788018226624, 0.5062364935874939, 0.13042043149471283, -1.4018359184265137, 0.4910447895526886, 1.1282936334609985, 0.1878032684326172, 1.4592957496643066, -0.6206788420677185, 0.0172741562128067, 0.43523848056793213, -0.4772060811519623, -0.43693628907203674, -0.6133602261543274, 0.726772129535675, 0.021780069917440414, -0.9444726705551147, 0.09133512526750565, -0.022730443626642227, -0.2538920044898987, 0.18531742691993713, -1.4870092868804932, -0.19018864631652832, -0.2982427477836609, -0.5783478617668152, -1.312750220298767, 0.06938768178224564, 1.3212302923202515, -0.7746732234954834, -0.21827080845832825, 0.5075896382331848, 0.3050658106803894, 0.5692414045333862, 0.6204152703285217, -0.5782317519187927, -0.32224202156066895, -0.23296280205249786, -0.34617510437965393, 0.27484574913978577, 1.2107625007629395, -0.1496318131685257, -0.9701603651046753, 0.8341851234436035, -0.37636035680770874, 0.08787993341684341, 1.9697765111923218, 0.05595264956355095, -0.8356356620788574, 0.3107377886772156, -0.6759445071220398, 1.8933812379837036, 1.669709324836731, 1.2810643911361694, -0.12340670078992844, -0.9134194254875183, 0.5369284152984619, -0.2974407970905304, -0.40115293860435486, 0.8524802327156067, 0.4227117598056793, -0.1867695450782776, -1.3236110210418701, 0.5789501070976257, 1.2567850351333618, -0.8997789621353149, -0.8580507636070251, 0.1296716332435608, -0.8708125948905945, 1.0417935848236084, 0.705196738243103, 0.37083885073661804, 0.21040453016757965, 1.6197772026062012, 0.753732442855835, -0.5100941061973572, 0.5412493944168091, 0.48175692558288574, -0.18975518643856049, -2.1002674102783203, -1.0553481578826904, 0.3300793766975403, -0.4538455307483673, -1.6097248792648315, 1.261081576347351, -1.1832507848739624, -1.0011028051376343, 0.5201937556266785, 0.08439314365386963, 1.4203612804412842, 0.3023320138454437, 1.6116591691970825, 2.1025731563568115, 0.8430953621864319, 0.3239139914512634, 1.2494163513183594, -0.07894042134284973, -0.3964371979236603, 1.87860107421875, -0.4298551678657532, 0.6180180311203003, 1.0413146018981934, -0.3832547664642334, -1.0488667488098145, -0.7069059014320374, -1.2312813997268677, -0.605608344078064, 1.1456583738327026, 0.16031414270401, -1.101784348487854, 0.2926134467124939, 1.5304150581359863, 0.15239457786083221, -0.2709900736808777, 0.699690043926239, 0.40207639336586, -0.7673526406288147, 0.009747722186148167, -0.9352547526359558, 0.5366116762161255, -0.13075783848762512, -0.290535032749176, 0.3209419250488281, 0.429557740688324, 1.2927545309066772, 0.011326626874506474, 0.11631975322961807, 1.2627063989639282, -1.3385745286941528, 1.5915945768356323, -0.6795312762260437, 0.24154862761497498, -2.4249112606048584, 1.4400030374526978, -0.8776666522026062, 1.8955013751983643, -2.6201841831207275, 0.391672283411026, -0.5256391167640686, -0.48516377806663513, 0.324684202671051, -0.35323622822761536, 0.0737324133515358, -0.1847093254327774, -1.1062155961990356, -0.07687932252883911, -0.7579586505889893, 0.46092745661735535, 1.1752188205718994, 1.4029332399368286, -1.1354179382324219, -0.30335748195648193, -1.85592782497406, -0.20204484462738037, -0.7614993453025818, 0.4585472345352173, -1.9384074211120605, -0.09809394925832748, -1.9120336771011353, -2.364070415496826, -1.3213789463043213, -0.8794415593147278, 1.0438623428344727, 0.10449617356061935, -0.8726536631584167, 1.15616774559021, -0.3161556124687195, -1.819780945777893, 1.0903823375701904, -2.14947509765625 ]
https://github.com/huggingface/datasets/issues/3561
Cannot load ‘bookcorpusopen’
Hi! The `bookcorpusopen` dataset is not working for the same reason as explained in this comment: https://github.com/huggingface/datasets/issues/3504#issuecomment-1004564980
## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1
1,010
17
Cannot load ‘bookcorpusopen’ ## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1 Hi! The `bookcorpusopen` dataset is not working for the same reason as explained in this comment: https://github.com/huggingface/datasets/issues/3504#issuecomment-1004564980
[ -1.1439471244812012, -0.9223560094833374, -0.8211318850517273, 1.5479683876037598, -0.10481399297714233, -1.277711272239685, 0.11223986744880676, -0.926163911819458, 1.6891844272613525, -0.8055427670478821, 0.27350524067878723, -1.6805044412612915, -0.08944063633680344, -0.7083972096443176, -0.6598838567733765, -0.8454960584640503, -0.2898541986942291, -0.72712242603302, 1.007503867149353, 2.416437864303589, 1.146136999130249, -1.343219518661499, 2.7472875118255615, 0.7547391653060913, -0.2010628879070282, -1.048805594444275, 0.5037972927093506, -0.04812416806817055, -1.3093398809432983, -0.39088112115859985, -0.9565394520759583, -0.02005399949848652, -0.5827075242996216, -0.5879526734352112, 0.04262559860944748, 0.44413837790489197, -0.34792113304138184, -0.4921041429042816, -0.5031179785728455, -0.8051812052726746, 0.43243664503097534, -0.344234436750412, 0.9090518951416016, -0.384029746055603, 1.7669622898101807, -0.5021921992301941, 0.4259015619754791, 0.7663272619247437, 1.3068509101867676, 0.1160554364323616, 0.032294463366270065, 0.3254251480102539, 0.4428735375404358, 0.07441172748804092, 0.43613970279693604, 1.1165019273757935, 0.5471769571304321, 0.4730364978313446, 0.6797128319740295, -2.260922908782959, 1.3759194612503052, -0.9003140330314636, 0.23068326711654663, 1.290806770324707, -1.0039165019989014, 0.33770275115966797, -1.7362785339355469, 0.03546489030122757, 0.5519331097602844, -2.206681489944458, 0.34467047452926636, -1.3389184474945068, -0.5290226936340332, 0.9298582673072815, 0.4167878329753876, -1.2506468296051025, 0.007047188468277454, -0.36282992362976074, 1.0253021717071533, 0.4990100562572479, 1.110015630722046, -1.747307300567627, -0.051168035715818405, -0.22813647985458374, 0.010170315392315388, -1.3410868644714355, -1.4718074798583984, 0.45822128653526306, 0.7473278641700745, 0.7585080862045288, -0.12427956610918045, 1.0024099349975586, -0.8819079399108887, 0.7590101361274719, -0.9029095768928528, -1.7971869707107544, -1.2892744541168213, -2.359654188156128, -2.300478935241699, 0.7559385299682617, -0.38778311014175415, -0.4682528078556061, 1.9976493120193481, -0.9600538611412048, -1.8881386518478394, 1.105478048324585, 0.28538593649864197, 0.03364941477775574, 2.291508197784424, 0.2266579121351242, -0.7619854211807251, 0.43261605501174927, -0.8215404152870178, 0.7359117865562439, -0.4626903533935547, 1.3312433958053589, 0.5003072023391724, -1.032668948173523, 1.6263070106506348, -0.39668989181518555, 0.6123445630073547, -0.7613239884376526, -0.4548197388648987, -0.8902229070663452, 0.271527498960495, 1.9005910158157349, -0.344647079706192, 1.5361961126327515, -0.3568393588066101, -1.5289359092712402, -1.5510269403457642, 0.8451882004737854, 0.44382455945014954, -0.7672451734542847, 0.13523219525814056, -0.3780711889266968, 0.14299868047237396, -0.10100124031305313, 1.130121111869812, 1.2515995502471924, 0.6418041586875916, -0.32175248861312866, -0.9272156357765198, 0.31424859166145325, -0.05536733195185661, -0.688526451587677, -1.8622076511383057, -0.3316146433353424, 0.19285179674625397, 0.6523606777191162, -1.21894109249115, 1.7128920555114746, 0.8129802346229553, 1.9094523191452026, 0.9795615673065186, -0.28494444489479065, 1.477638602256775, 0.013461013324558735, 1.9293519258499146, -0.479555606842041, 0.6734747290611267, -0.35163336992263794, -1.102612018585205, 0.864033579826355, -0.31846246123313904, -1.9700998067855835, -0.7280740737915039, -0.9652702212333679, -0.14437320828437805, -0.7699289917945862, 0.9556647539138794, -0.40080156922340393, -1.421777367591858, 0.2470075786113739, -0.7696436047554016, 0.20010505616664886, -1.262753963470459, 0.18814720213413239, 0.8143731355667114, -0.6295157670974731, 0.0007238499820232391, -0.3287007212638855, -1.298551082611084, -0.5041234493255615, 0.4567703306674957, 1.8626619577407837, -0.7242522835731506, 1.0436787605285645, 0.9320976138114929, -0.7463780045509338, 0.03881192207336426, 0.2949313521385193, -0.2871362864971161, 0.8785091042518616, -1.06442129611969, -0.3761569559574127, 1.1953010559082031, -0.17915093898773193, -0.7045724987983704, 1.5642282962799072, 0.8535931706428528, -0.9773485660552979, -0.19166387617588043, -0.19455169141292572, -0.7232382297515869, 0.010855150409042835, -1.7332487106323242, -0.14545683562755585, 0.3176458179950714, -1.4830048084259033, -0.4863162636756897, -0.1792037934064865, 1.3537112474441528, -0.09574497491121292, 1.3782892227172852, -0.2588239014148712, -0.2666606903076172, -0.4439329206943512, -0.36575016379356384, 0.07782794535160065, -0.24827516078948975, -0.6538189053535461, 0.2364930659532547, -0.8095741271972656, 0.25944557785987854, 1.4228498935699463, 0.28914666175842285, 0.07056095451116562, 0.6390776038169861, 1.1067360639572144, 0.33880138397216797, 0.022430293262004852, -0.8929036855697632, -1.6092441082000732, 1.887903094291687, -1.408548355102539, 1.9448679685592651, 0.6530214548110962, -0.06939150393009186, -1.8335202932357788, -1.9888476133346558, 1.4157023429870605, 1.0826637744903564, 2.3402488231658936, 0.721924364566803, 0.3689022660255432, -0.8606724143028259, -0.7367969751358032, 0.25841590762138367, -0.9793480038642883, -0.7246951460838318, 0.14788134396076202, 2.420492649078369, 1.7685686349868774, -0.42779186367988586, -0.2283894270658493, -1.0844871997833252, 1.3601346015930176, -0.19347544014453888, 0.25290849804878235, 2.028297185897827, -0.26623043417930603, -1.0161709785461426, 1.1755330562591553, -2.319939374923706, 0.16821879148483276, 1.9882302284240723, 0.17125384509563446, 0.10961281508207321, -1.4252724647521973, -0.8295974135398865, -0.12673573195934296, -0.4889034330844879, -1.2276854515075684, 0.5894927978515625, -0.3212447762489319, -0.823341965675354, -1.445469617843628, 0.1918656975030899, -1.0164536237716675, -1.7514655590057373, 0.24154332280158997, 1.878422498703003, 2.033824920654297, -0.7491775155067444, 1.5980546474456787, -0.22451277077198029, 0.19248607754707336, 1.3609765768051147, 1.1689339876174927, 3.1789908409118652, 1.9016070365905762, -1.2275437116622925, 0.7798883318901062, 0.029700953513383865, -0.5051366686820984, 1.2116295099258423, -1.1984069347381592, 1.1638659238815308, -0.3083799183368683, -1.1607939004898071, -1.2940889596939087, 0.9163331389427185, 0.49125728011131287, -0.012159213423728943, -0.48575130105018616, 1.2586621046066284, -0.05498538911342621, 1.3060033321380615, 0.5987099409103394, -0.3392758369445801, 0.6296175718307495, -0.4694007337093353, -0.54427570104599, 1.5221699476242065, 0.27677956223487854, -1.4134166240692139, -2.3351645469665527, -0.19550618529319763, -0.8297841548919678, -0.07858317345380783, -0.5786381959915161, -0.9849010109901428, 1.6137948036193848, 0.5059009194374084, -1.2195029258728027, -0.2352566421031952, -0.3394729495048523, -0.5678796768188477, 2.73541259765625, -1.373022198677063, -0.2919146418571472, -1.0563544034957886, -0.5118918418884277, 1.728806495666504, -1.167362928390503, -0.23732367157936096, -1.0599329471588135, -0.5948352217674255, -1.356775164604187, -0.4809417426586151, -0.10656449943780899, -0.8776199817657471, 0.8850311636924744, 0.12643079459667206, -1.165218710899353, -0.2577100098133087, -0.9344789385795593, 0.9683291912078857, -0.13473433256149292, 0.3100840747356415, 1.922555923461914, 0.4892323315143585, -0.43169623613357544, 0.6781043410301208, 1.0685129165649414, 0.5844942331314087, -0.6682742238044739, 0.3772449195384979, -0.6090580224990845, 0.24081099033355713, -1.349159598350525, 0.18557000160217285, -2.927764654159546, 0.6504815816879272, -0.014182147569954395, -0.09002766013145447, -0.10268169641494751, -1.3483664989471436, 1.137713074684143, 2.545830726623535, -1.268660545349121, 0.4886384606361389, 0.3376561105251312, 1.2196934223175049, -1.599023461341858, 0.28643831610679626, -0.4511079490184784, 2.125234842300415, 0.0664253979921341, 1.1874117851257324, -0.3825514614582062, -2.2299866676330566, 0.6378201842308044, -1.2713545560836792, -1.0821527242660522, 0.8065416216850281, -0.764244019985199, 0.13062989711761475, -1.3979415893554688, -0.1626771241426468, -0.7600724101066589, -1.305867075920105, 0.8088117241859436, 0.08429843932390213, 0.4437555968761444, -0.5581571459770203, 0.41036105155944824, -2.118608236312866, -1.324141502380371, -0.23010297119617462, -0.9302892088890076, 0.47110456228256226, -0.31021445989608765, 0.7032294273376465, -0.18945088982582092, 0.03636397793889046, 0.31596502661705017, 1.3584412336349487, 3.4252405166625977, 0.14325380325317383, 0.2776210606098175, -0.0925520658493042, -0.9802000522613525, 1.3955800533294678, 1.0151273012161255, -0.07529187947511673, -0.5185442566871643, -1.0450770854949951, 1.3534815311431885, 1.897007942199707, 1.038784146308899, 0.13579963147640228, -0.7307103872299194, -0.7390944361686707, 0.041693758219480515, 0.14434239268302917, 0.496480792760849, 0.7967222929000854, 0.15617875754833221, 0.11495461314916611, 1.3853307962417603, 1.1689980030059814, -0.3209230899810791, 0.4032123386859894, -0.906144917011261, -0.3637537360191345, 0.5167058110237122, 0.278817743062973, -0.04147426784038544, 0.2753567397594452, -1.0573008060455322, -0.23709622025489807, -0.3333412706851959, -0.9265364408493042, -0.7399606108665466, -0.5079372525215149, -0.3618411421775818, 1.602746605873108, 0.0966150164604187, -0.468688040971756, -0.1186932921409607, -0.8032663464546204, -0.035734113305807114, -1.0434948205947876, 0.3414485454559326, -0.255752295255661, -0.0038419142365455627, -0.11118666082620621, 1.7216520309448242, -0.95331871509552, -2.100309133529663, 0.34471192955970764, 0.2722248435020447, -0.38652580976486206, 0.20072394609451294, 1.6918978691101074, 0.6230366826057434, 1.3594753742218018, 1.3531848192214966, 0.981805145740509, -0.5965473651885986, -1.2699352502822876, 0.5744718909263611, 0.9357602596282959, -1.471245288848877, 0.8356981873512268, -0.016606628894805908, -0.47116121649742126, 0.6650057435035706, 1.2781926393508911, 0.40337660908699036, -1.9339704513549805, 0.6172240972518921, -0.8084129691123962, 0.8576334118843079, 0.7572298049926758, 0.7715326547622681, 0.1490153819322586, 0.7751454710960388, -1.322252631187439, -1.101284384727478, -0.7093229293823242, -0.6613900661468506, 1.927024006843567, -0.270683616399765, 0.5485565662384033, -0.16503022611141205, -1.3485569953918457, -0.1358092874288559, 0.6702357530593872, 0.331200510263443, -0.4505528211593628, 0.8294258713722229, -0.6043922305107117, -1.1456719636917114, -1.3358063697814941, -0.45681053400039673, -0.9701286554336548, -0.9506435990333557, 1.0062376260757446, 0.8490908741950989, 0.42506206035614014, 1.8586963415145874, 0.6350343823432922, 0.16267189383506775, -2.6450440883636475, 0.9186349511146545, 0.2883596122264862, 0.027885720133781433, 0.8931435942649841, 0.25229620933532715, 1.1399253606796265, -0.08561838418245316, 0.6220148801803589, -2.2940423488616943, 2.262861490249634, -0.23655587434768677, 0.5624719262123108, -0.07245383411645889, -0.10401137173175812, 1.0293424129486084, 0.48112377524375916, 0.6945157051086426, -1.1182128190994263, 0.8370431661605835, -0.6400045156478882, 1.2373327016830444, 0.9147716760635376, -0.8976315259933472, 0.011974240653216839, 1.3362822532653809, 0.48397934436798096, -0.5048717260360718, -0.8652995824813843, -0.9613054394721985, 0.9676601886749268, 1.692584753036499, 0.01918090507388115, -0.008913300931453705, 0.9287012219429016, 0.4882015585899353, -1.3550348281860352, 0.052088264375925064, -0.7175754904747009, -0.5817757248878479, 1.7217069864273071, 2.003582239151001, -0.12034761160612106, -0.19692683219909668, -0.893179178237915, -1.1413792371749878, 0.7591522932052612, 0.11794870346784592, -0.03155577927827835, 0.8000608682632446, -0.5730567574501038, 1.0918128490447998, 0.7035906314849854, 0.8850442171096802, 0.11504729837179184, 0.37338507175445557, 0.33956754207611084, -0.3089057207107544, -1.3461939096450806, -0.2888827323913574, -1.0558345317840576, -2.4979050159454346, 0.49389180541038513, -0.2270018309354782, -1.3574068546295166, 0.019846923649311066, -1.1477735042572021, 0.935736358165741, -0.5709449648857117, -1.1020499467849731, -1.4585429430007935, 0.20712102949619293, -0.16916246712207794, 0.8627921342849731, -1.479946494102478, 0.04064413160085678, 1.3298405408859253, 0.9702722430229187, -0.7375615239143372, 1.0526384115219116, 0.25878480076789856, 1.0744850635528564, 0.8234832286834717, -0.3663763701915741, 0.49344852566719055, 0.09616747498512268, -1.379078984260559, 0.5458228588104248, 1.1505481004714966, 0.2487514615058899, 1.43206787109375, -0.6247496008872986, -0.00032500457018613815, 0.451922744512558, -0.4787449240684509, -0.4964630901813507, -0.646050214767456, 0.8240647912025452, 0.061961282044649124, -0.9359837174415588, 0.05533572658896446, 0.01729927584528923, -0.17651689052581787, 0.20114350318908691, -1.5728504657745361, -0.18065771460533142, -0.28646063804626465, -0.6398084163665771, -1.3347233533859253, -0.0005316426977515221, 1.2190102338790894, -0.7369177937507629, -0.19249415397644043, 0.48628702759742737, 0.2609459459781647, 0.5280916094779968, 0.6036041378974915, -0.5906720161437988, -0.3728656470775604, -0.28515005111694336, -0.36510902643203735, 0.34758511185646057, 1.2895293235778809, -0.15221107006072998, -0.9853525161743164, 0.8327668905258179, -0.3826587200164795, 0.08630997687578201, 1.9372437000274658, -0.0018843906000256538, -0.8604903817176819, 0.22244876623153687, -0.7116683721542358, 1.9767996072769165, 1.6607081890106201, 1.3187668323516846, -0.12180260568857193, -0.9519423246383667, 0.5595630407333374, -0.23648923635482788, -0.38286659121513367, 0.9307339787483215, 0.44439542293548584, -0.1969827115535736, -1.2414592504501343, 0.6242561936378479, 1.238163709640503, -0.8843643069267273, -0.8879563808441162, 0.163686603307724, -0.8179648518562317, 1.0420506000518799, 0.7012535333633423, 0.4229104220867157, 0.2842358946800232, 1.5847759246826172, 0.6720431447029114, -0.5257700681686401, 0.5128466486930847, 0.41234180331230164, -0.15508586168289185, -2.032149314880371, -1.090345025062561, 0.3870209753513336, -0.4752296209335327, -1.7157829999923706, 1.264718770980835, -1.1821986436843872, -0.923801064491272, 0.5351038575172424, 0.15911686420440674, 1.440622329711914, 0.31814152002334595, 1.5639872550964355, 1.9991451501846313, 0.7970322370529175, 0.30000433325767517, 1.2678905725479126, -0.13360658288002014, -0.42474985122680664, 1.8710302114486694, -0.4510514736175537, 0.6306625604629517, 0.995585024356842, -0.3457332253456116, -1.1429334878921509, -0.7501041293144226, -1.2185646295547485, -0.6212336421012878, 1.2075941562652588, 0.16734953224658966, -1.20414137840271, 0.23091518878936768, 1.5184626579284668, 0.10595794767141342, -0.21617749333381653, 0.730652391910553, 0.30932971835136414, -0.7712340354919434, 0.030220050364732742, -0.9465440511703491, 0.5725213289260864, -0.10754086822271347, -0.2647837698459625, 0.3272773325443268, 0.4453471899032593, 1.3150831460952759, -0.0252850241959095, 0.1234506294131279, 1.3053661584854126, -1.270910620689392, 1.5797711610794067, -0.7066106200218201, 0.23022666573524475, -2.4198856353759766, 1.37478506565094, -0.8488633036613464, 1.8605403900146484, -2.6649768352508545, 0.38900092244148254, -0.47694122791290283, -0.5070582628250122, 0.2726377546787262, -0.31507769227027893, 0.0777391716837883, -0.24833457171916962, -1.1211329698562622, -0.04232027009129524, -0.811606764793396, 0.4910440742969513, 1.1981921195983887, 1.453277587890625, -1.1342991590499878, -0.2677971422672272, -1.8996456861495972, -0.17704081535339355, -0.8057818412780762, 0.5093770027160645, -1.9883397817611694, -0.0925336629152298, -1.863472819328308, -2.430516242980957, -1.3212435245513916, -0.8070995807647705, 1.069625973701477, 0.0820823460817337, -0.9049263000488281, 1.1544173955917358, -0.2815943956375122, -1.775621771812439, 1.0664005279541016, -2.099583148956299 ]
https://github.com/huggingface/datasets/issues/3561
Cannot load ‘bookcorpusopen’
Hi @HUIYINXUE, it should work now that the data owners created a mirror server with all data, and we updated the URL in our library.
## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1
1,010
25
Cannot load ‘bookcorpusopen’ ## Describe the bug Cannot load 'bookcorpusopen' ## Steps to reproduce the bug ```python dataset = load_dataset('bookcorpusopen') ``` or ```python dataset = load_dataset('bookcorpusopen',script_version='master') ``` ## Actual results ConnectionError: Couldn't reach https://the-eye.eu/public/AI/pile_preliminary_components/books1.tar.gz ## Environment info - `datasets` version: 1.9.0 - Platform: Linux version 3.10.0-1160.45.1.el7.x86_64 - Python version: 3.6.13 - PyArrow version: 6.0.1 Hi @HUIYINXUE, it should work now that the data owners created a mirror server with all data, and we updated the URL in our library.
[ -1.1219192743301392, -0.9381964206695557, -0.832718551158905, 1.5533514022827148, -0.17371831834316254, -1.2205595970153809, 0.21905161440372467, -0.9235806465148926, 1.666853904724121, -0.8501430749893188, 0.28669869899749756, -1.6603577136993408, -0.06209762394428253, -0.6856960654258728, -0.6636595129966736, -0.8912174701690674, -0.3081547021865845, -0.6726769804954529, 1.0687668323516846, 2.4003591537475586, 1.0731186866760254, -1.309096097946167, 2.7213244438171387, 0.7600680589675903, -0.1413794606924057, -1.0632588863372803, 0.5239431858062744, -0.07208143174648285, -1.3052719831466675, -0.3680001497268677, -0.9333951473236084, -0.04830999672412872, -0.5827054977416992, -0.5415636301040649, 0.030231637880206108, 0.38500291109085083, -0.3376435339450836, -0.516316294670105, -0.5547501444816589, -0.8017030358314514, 0.41663968563079834, -0.38964664936065674, 0.8460355997085571, -0.3916895091533661, 1.792309284210205, -0.49577751755714417, 0.4590739905834198, 0.7803154587745667, 1.3183395862579346, 0.1387885957956314, 0.04895276576280594, 0.3544313907623291, 0.4549751877784729, 0.0811450183391571, 0.43709269165992737, 1.045281171798706, 0.5011004209518433, 0.4746592044830322, 0.6184526085853577, -2.252553701400757, 1.342951774597168, -0.9458708167076111, 0.2866758704185486, 1.2740192413330078, -0.9736450910568237, 0.3256570100784302, -1.680765151977539, 0.024128669872879982, 0.5764883756637573, -2.24234676361084, 0.34696733951568604, -1.3315845727920532, -0.513016939163208, 0.9120073318481445, 0.4431849718093872, -1.2424092292785645, -0.033204011619091034, -0.34267735481262207, 1.0552312135696411, 0.43112847208976746, 1.057533621788025, -1.764722228050232, -0.06555766612291336, -0.3036991059780121, -0.02899479866027832, -1.3263579607009888, -1.4468392133712769, 0.4746030867099762, 0.7471848726272583, 0.6877719163894653, -0.09985838830471039, 1.0047879219055176, -0.9111461639404297, 0.7982058525085449, -0.9159918427467346, -1.797824740409851, -1.3078685998916626, -2.380437135696411, -2.2452518939971924, 0.7633222341537476, -0.3715324103832245, -0.4616074860095978, 2.0274128913879395, -0.9824862480163574, -1.8872827291488647, 1.159798502922058, 0.2289966493844986, -0.0037061842158436775, 2.306567430496216, 0.22330710291862488, -0.6946741342544556, 0.4287518560886383, -0.8357454538345337, 0.7708675861358643, -0.5098485350608826, 1.377210021018982, 0.4185057580471039, -0.9898924827575684, 1.5942453145980835, -0.3617298901081085, 0.631519615650177, -0.7397305369377136, -0.4408062696456909, -0.9022161960601807, 0.2560807764530182, 1.9103089570999146, -0.30188822746276855, 1.5432435274124146, -0.34006768465042114, -1.5138612985610962, -1.5603055953979492, 0.9035037159919739, 0.4464808702468872, -0.7210875749588013, 0.14005182683467865, -0.3171701431274414, 0.14529083669185638, -0.09742079675197601, 1.2060898542404175, 1.2879201173782349, 0.7011919617652893, -0.32880914211273193, -0.9226753115653992, 0.2989319860935211, -0.08927018940448761, -0.7048211693763733, -1.8658854961395264, -0.33742135763168335, 0.1369316577911377, 0.6438813805580139, -1.1772760152816772, 1.6776210069656372, 0.8609097003936768, 1.9316000938415527, 1.020977258682251, -0.2611265778541565, 1.4758113622665405, 0.04702167958021164, 1.9378366470336914, -0.45780548453330994, 0.7134488821029663, -0.41407161951065063, -1.0999873876571655, 0.8569216132164001, -0.31418150663375854, -1.9849939346313477, -0.7016858458518982, -0.9782729744911194, -0.2104935497045517, -0.7393301129341125, 0.9831764101982117, -0.46494051814079285, -1.4178627729415894, 0.23243054747581482, -0.7829145789146423, 0.20956528186798096, -1.2237498760223389, 0.26490265130996704, 0.8018366694450378, -0.6107391119003296, 0.012101715430617332, -0.3370381295681, -1.2723171710968018, -0.4571639895439148, 0.4555671215057373, 1.8267769813537598, -0.746367335319519, 0.9985416531562805, 0.9583576917648315, -0.777706503868103, -0.03292795643210411, 0.2649676501750946, -0.2640253007411957, 0.8786395192146301, -1.0380916595458984, -0.41053298115730286, 1.2131685018539429, -0.22913941740989685, -0.7189297080039978, 1.5320234298706055, 0.7727581262588501, -0.9648618698120117, -0.181767076253891, -0.1982528269290924, -0.7133278846740723, 0.058471500873565674, -1.7474403381347656, -0.1293962001800537, 0.3744087815284729, -1.5329270362854004, -0.5250958800315857, -0.22426630556583405, 1.3607724905014038, -0.03894171491265297, 1.3750776052474976, -0.2436061054468155, -0.2894894480705261, -0.4222549498081207, -0.38035058975219727, 0.11814820021390915, -0.19771967828273773, -0.630267858505249, 0.25001537799835205, -0.8073509931564331, 0.28486669063568115, 1.4198215007781982, 0.19529545307159424, 0.10243583470582962, 0.6741421818733215, 1.0299006700515747, 0.4116947650909424, 0.034167781472206116, -0.9038498401641846, -1.5926119089126587, 1.9254889488220215, -1.4387098550796509, 1.9684613943099976, 0.6233705282211304, -0.07384911924600601, -1.845367193222046, -1.9994125366210938, 1.4469207525253296, 1.0997357368469238, 2.286824941635132, 0.6906440854072571, 0.40172624588012695, -0.8561367988586426, -0.7403445839881897, 0.24516427516937256, -0.9957266449928284, -0.7479490041732788, 0.11693171411752701, 2.4111721515655518, 1.7188997268676758, -0.41093239188194275, -0.19712510704994202, -1.1075972318649292, 1.3663458824157715, -0.11801736801862717, 0.26402124762535095, 2.0120785236358643, -0.2815411388874054, -1.068105936050415, 1.1675432920455933, -2.317845582962036, 0.14163728058338165, 2.0005459785461426, 0.15262040495872498, 0.11666744202375412, -1.3874914646148682, -0.795264720916748, -0.14559531211853027, -0.4403761625289917, -1.2724823951721191, 0.6147778630256653, -0.2828231453895569, -0.7997983694076538, -1.4095677137374878, 0.2101117968559265, -0.9983541965484619, -1.7405215501785278, 0.2144535779953003, 1.8755648136138916, 2.0292775630950928, -0.7281534671783447, 1.5991677045822144, -0.2617044448852539, 0.2456493079662323, 1.3244956731796265, 1.095628261566162, 3.165031909942627, 1.971030592918396, -1.2367558479309082, 0.7341436147689819, 0.042395077645778656, -0.47221091389656067, 1.191678762435913, -1.1572329998016357, 1.2679941654205322, -0.2902226150035858, -1.1004525423049927, -1.2999383211135864, 0.8851252794265747, 0.48124679923057556, -0.008379769511520863, -0.4653613567352295, 1.289359211921692, -0.02761627733707428, 1.2680089473724365, 0.5800228714942932, -0.2976263463497162, 0.6512837409973145, -0.48349669575691223, -0.5262985825538635, 1.5888751745224, 0.29149335622787476, -1.3826487064361572, -2.3077993392944336, -0.20087076723575592, -0.8265429139137268, -0.049829721450805664, -0.5276848673820496, -0.9826124906539917, 1.5982507467269897, 0.4940170347690582, -1.1464544534683228, -0.2530077397823334, -0.35332509875297546, -0.5808218717575073, 2.790658712387085, -1.3669575452804565, -0.31566932797431946, -1.046032190322876, -0.5153124332427979, 1.7275148630142212, -1.1738226413726807, -0.24750913679599762, -1.074373722076416, -0.5388118028640747, -1.3181744813919067, -0.4448194205760956, -0.09945701062679291, -0.9314132928848267, 0.9028631448745728, 0.1338932067155838, -1.2486412525177002, -0.25708985328674316, -0.942189633846283, 0.919436514377594, -0.06440101563930511, 0.30679774284362793, 1.9102603197097778, 0.41258275508880615, -0.37623217701911926, 0.7323926687240601, 1.0856372117996216, 0.6315432190895081, -0.689105749130249, 0.4262104630470276, -0.6123579144477844, 0.23144233226776123, -1.3139876127243042, 0.21587012708187103, -2.9086668491363525, 0.6418285965919495, -0.02441250905394554, -0.10730955004692078, -0.10929522663354874, -1.3281950950622559, 1.1201318502426147, 2.525773048400879, -1.285509705543518, 0.4988177716732025, 0.33520302176475525, 1.2443734407424927, -1.5409799814224243, 0.2913806736469269, -0.4587748944759369, 2.1686675548553467, 0.1286117434501648, 1.164495587348938, -0.43774494528770447, -2.288745164871216, 0.6668090224266052, -1.2879126071929932, -1.1267426013946533, 0.7770383358001709, -0.7587506175041199, 0.06561627238988876, -1.383858323097229, -0.13759703934192657, -0.7505341172218323, -1.3174657821655273, 0.7328005433082581, 0.10819316655397415, 0.4580624997615814, -0.6077057719230652, 0.36892586946487427, -2.184990406036377, -1.3614180088043213, -0.22772017121315002, -0.9525203108787537, 0.43926334381103516, -0.3621283769607544, 0.7519097924232483, -0.21875117719173431, 0.040244124829769135, 0.35467830300331116, 1.399092197418213, 3.4283623695373535, 0.10335534065961838, 0.29359057545661926, -0.12385229021310806, -0.9552161693572998, 1.4201089143753052, 1.0192768573760986, -0.08625713735818863, -0.4831041693687439, -1.0721430778503418, 1.2787061929702759, 1.92385995388031, 1.0585243701934814, 0.12413275986909866, -0.7124186158180237, -0.6865665912628174, 0.01034054160118103, 0.16096386313438416, 0.48580366373062134, 0.7999961376190186, 0.18367643654346466, 0.12630636990070343, 1.3926277160644531, 1.1223870515823364, -0.34500154852867126, 0.38835713267326355, -0.8980962634086609, -0.38401344418525696, 0.5493150949478149, 0.3207826316356659, -0.07801368087530136, 0.2203419804573059, -1.0137907266616821, -0.30168280005455017, -0.37446513772010803, -0.8929595351219177, -0.7243728041648865, -0.4553326666355133, -0.4238002300262451, 1.595778226852417, 0.12774266302585602, -0.5121719241142273, -0.11898773163557053, -0.760259747505188, -0.004646790213882923, -1.061043620109558, 0.32871752977371216, -0.2227839082479477, -0.05206718295812607, -0.08603036403656006, 1.7327995300292969, -0.9851231575012207, -2.123508930206299, 0.3004388213157654, 0.2664998769760132, -0.34533876180648804, 0.2337188422679901, 1.6428778171539307, 0.6046401858329773, 1.3754945993423462, 1.3735023736953735, 0.9954271912574768, -0.5885378122329712, -1.3152621984481812, 0.6387536525726318, 0.9379284977912903, -1.4956401586532593, 0.7683196663856506, 0.027886243537068367, -0.4825148284435272, 0.6609782576560974, 1.1961561441421509, 0.43679723143577576, -1.9875794649124146, 0.5980710387229919, -0.8767377734184265, 0.8623343706130981, 0.7936738133430481, 0.7554298043251038, 0.15628553926944733, 0.7810665965080261, -1.2483187913894653, -1.0805913209915161, -0.7124503254890442, -0.7193554639816284, 1.9345744848251343, -0.3456577956676483, 0.5621783137321472, -0.13118699193000793, -1.3163573741912842, -0.10974153131246567, 0.679926872253418, 0.3284767270088196, -0.47610005736351013, 0.8011847138404846, -0.6586998701095581, -1.1777467727661133, -1.3563090562820435, -0.4660152196884155, -1.041949987411499, -0.9938069581985474, 1.032496690750122, 0.8383401036262512, 0.43508484959602356, 1.8461716175079346, 0.6567499041557312, 0.18900536000728607, -2.624818801879883, 0.9184727072715759, 0.27334263920783997, 0.02044677734375, 0.828788161277771, 0.2683320939540863, 1.1422784328460693, -0.10174498707056046, 0.6194945573806763, -2.312932252883911, 2.3108065128326416, -0.26291966438293457, 0.5879413485527039, -0.03667096048593521, -0.07067429274320602, 1.0042146444320679, 0.5148161053657532, 0.6778464317321777, -1.0335147380828857, 0.8075774312019348, -0.6306443810462952, 1.3316524028778076, 0.9379037022590637, -0.8653064966201782, -0.02931126579642296, 1.3566991090774536, 0.49392667412757874, -0.5248801708221436, -0.8646222949028015, -1.0300477743148804, 0.9191058278083801, 1.6840740442276, -0.07924056053161621, -0.018322672694921494, 0.8664655685424805, 0.49973639845848083, -1.3693385124206543, 0.057179369032382965, -0.7176843285560608, -0.5999518632888794, 1.6763170957565308, 2.003335952758789, -0.1512375771999359, -0.1563870906829834, -0.8705338835716248, -1.1891582012176514, 0.7632517218589783, 0.07395781576633453, -0.05417594313621521, 0.7742992043495178, -0.49869853258132935, 1.014752984046936, 0.7773794531822205, 0.8575268983840942, 0.1386849582195282, 0.3415800631046295, 0.33073145151138306, -0.32893359661102295, -1.308842420578003, -0.2870762348175049, -1.040371298789978, -2.549433946609497, 0.45246046781539917, -0.2521800398826599, -1.370741605758667, 0.026899797841906548, -1.1332323551177979, 0.9855656623840332, -0.5825388431549072, -1.0354118347167969, -1.4864202737808228, 0.1670149266719818, -0.11962054669857025, 0.907174289226532, -1.5287309885025024, 0.01805644854903221, 1.330209732055664, 0.9616739749908447, -0.7472165822982788, 1.0979492664337158, 0.26315099000930786, 1.0766563415527344, 0.8374019861221313, -0.39714160561561584, 0.5450870990753174, 0.11812812834978104, -1.3795530796051025, 0.5452437400817871, 1.1564017534255981, 0.25403791666030884, 1.4299120903015137, -0.6550158262252808, -0.015590263530611992, 0.4374268054962158, -0.4973432421684265, -0.461564302444458, -0.6815972924232483, 0.7823499441146851, 0.040593959391117096, -0.87752366065979, 0.06343349069356918, -0.014482434839010239, -0.2005814015865326, 0.1458236575126648, -1.5894105434417725, -0.18560640513896942, -0.31187745928764343, -0.6844894289970398, -1.3744837045669556, -0.052433110773563385, 1.2494648694992065, -0.7008731961250305, -0.15842506289482117, 0.46362239122390747, 0.2782994210720062, 0.5301443934440613, 0.6324479579925537, -0.5798289179801941, -0.3651171028614044, -0.24766777455806732, -0.31898069381713867, 0.387124240398407, 1.353071689605713, -0.12925422191619873, -0.974649965763092, 0.802509069442749, -0.2972148060798645, 0.06145307421684265, 1.8874410390853882, 0.01243172213435173, -0.9016270637512207, 0.1726136952638626, -0.6709097027778625, 1.9998377561569214, 1.6310573816299438, 1.2902625799179077, -0.15500034391880035, -0.9166949987411499, 0.5502474904060364, -0.2510243058204651, -0.412712961435318, 0.8850574493408203, 0.45549702644348145, -0.23508262634277344, -1.255900502204895, 0.6684438586235046, 1.260615348815918, -0.859045147895813, -0.9577714204788208, 0.19647817313671112, -0.7945117950439453, 1.0428926944732666, 0.7183546423912048, 0.45064204931259155, 0.2627878189086914, 1.5774785280227661, 0.8083150386810303, -0.5498877167701721, 0.5279159545898438, 0.4340105950832367, -0.10443005710840225, -2.0816071033477783, -1.1198921203613281, 0.39808258414268494, -0.5270346999168396, -1.7291339635849, 1.3073979616165161, -1.2053240537643433, -0.9145762920379639, 0.5739274024963379, 0.16635841131210327, 1.4320281744003296, 0.3527432978153229, 1.5235196352005005, 1.9417774677276611, 0.7754926681518555, 0.3769730031490326, 1.3104078769683838, -0.13760249316692352, -0.4276150166988373, 1.8398572206497192, -0.46182283759117126, 0.6230224370956421, 1.062705159187317, -0.33566534519195557, -1.1003684997558594, -0.7483117580413818, -1.2480591535568237, -0.6044790148735046, 1.1512242555618286, 0.1481325924396515, -1.1986502408981323, 0.24647927284240723, 1.4949464797973633, 0.12873475253582, -0.23497110605239868, 0.7549938559532166, 0.2817116677761078, -0.8087296485900879, 0.018985003232955933, -1.010890245437622, 0.5699633955955505, -0.15622909367084503, -0.256392240524292, 0.35400643944740295, 0.4264151155948639, 1.3219714164733887, -0.07657916843891144, 0.12219343334436417, 1.2542964220046997, -1.310214638710022, 1.5177738666534424, -0.6761088371276855, 0.19983209669589996, -2.3980607986450195, 1.3653149604797363, -0.7851167917251587, 1.8728642463684082, -2.689925193786621, 0.3810669779777527, -0.53605717420578, -0.49010372161865234, 0.2955891191959381, -0.25778764486312866, 0.07430342584848404, -0.23560720682144165, -1.1255970001220703, -0.02667679265141487, -0.8352515697479248, 0.45494794845581055, 1.1908912658691406, 1.3895440101623535, -1.0681058168411255, -0.2626088857650757, -1.8602430820465088, -0.1740512102842331, -0.8070164322853088, 0.5046712160110474, -2.017554759979248, -0.17083033919334412, -1.8426796197891235, -2.388847589492798, -1.2316012382507324, -0.8250067234039307, 1.130374789237976, 0.08232924342155457, -0.8117189407348633, 1.1863532066345215, -0.24111543595790863, -1.8228795528411865, 1.0361199378967285, -2.1005795001983643 ]
https://github.com/huggingface/datasets/issues/3558
Integrate Milvus (pymilvus) library
Hi @mariosasko,Just search randomly and I found this issue~ I'm the tech lead of Milvus and we are looking forward to integrate milvus together with huggingface datasets. Any suggestion on how we could start?
Milvus is a popular open-source vector database. We should add a new vector index to support this project.
1,011
34
Integrate Milvus (pymilvus) library Milvus is a popular open-source vector database. We should add a new vector index to support this project. Hi @mariosasko,Just search randomly and I found this issue~ I'm the tech lead of Milvus and we are looking forward to integrate milvus together with huggingface datasets. Any suggestion on how we could start?
[ -1.3591605424880981, -1.128488302230835, -0.7867745161056519, 1.4714863300323486, -0.3486393690109253, -1.261093258857727, 0.08765870332717896, -1.0707619190216064, 1.6724289655685425, -0.9966561794281006, 0.4101707637310028, -1.72077476978302, -0.03021363727748394, -0.400250107049942, -0.7078045606613159, -0.8542691469192505, -0.46893075108528137, -0.792578399181366, 1.2087715864181519, 2.586700439453125, 1.1373268365859985, -1.2368474006652832, 2.935530185699463, 0.7734646797180176, -0.14620105922222137, -0.9852026700973511, 0.5290751457214355, 0.07448621839284897, -1.3177766799926758, -0.3650241792201996, -1.0309933423995972, -0.0015872390940785408, -0.49414366483688354, -0.5316159129142761, 0.10686111450195312, 0.19034360349178314, -0.08653867244720459, -0.7055680751800537, -0.3565336763858795, -0.6636791825294495, 0.4931930601596832, -0.26171308755874634, 0.9078636169433594, -0.46554070711135864, 1.9087127447128296, -0.6331690549850464, 0.39313724637031555, 0.6845762729644775, 1.369734764099121, 0.3331046402454376, -0.029373696073889732, 0.4210462272167206, 0.5150993466377258, -0.09512657672166824, 0.3339688181877136, 1.1353882551193237, 0.4586161673069, 0.7349532842636108, 0.7353909015655518, -2.0916049480438232, 1.4492428302764893, -1.1214003562927246, 0.3908931016921997, 1.4435900449752808, -1.0530378818511963, 0.37711814045906067, -1.6769144535064697, -0.04163362458348274, 0.5085105895996094, -2.2273755073547363, 0.32313376665115356, -1.2333462238311768, -0.6250073313713074, 0.8781225085258484, 0.37280455231666565, -1.5208690166473389, 0.22679002583026886, -0.4439874291419983, 0.9752851724624634, 0.4831389784812927, 1.2640515565872192, -1.6208910942077637, 0.012398142367601395, -0.40533044934272766, -0.00040103495121002197, -1.4266369342803955, -1.3723589181900024, 0.6110802888870239, 0.6105859279632568, 0.5960069894790649, -0.12119870632886887, 0.8343284130096436, -0.7019310593605042, 0.8696269392967224, -0.8232390284538269, -1.6600244045257568, -1.4083783626556396, -2.2872154712677, -2.240074396133423, 0.8470266461372375, -0.37901461124420166, -0.6192798614501953, 1.8591665029525757, -1.1724026203155518, -1.8332940340042114, 1.3527354001998901, 0.24108895659446716, -0.024246474727988243, 2.479790687561035, 0.2525293827056885, -0.6720715165138245, 0.3421667814254761, -0.8974558115005493, 0.8062720894813538, -0.6104523539543152, 1.4341449737548828, 0.4029467701911926, -0.9681603908538818, 1.6373510360717773, -0.6062911748886108, 0.5871262550354004, -0.6119064688682556, -0.5411547422409058, -0.9601009488105774, 0.3876374661922455, 1.8511141538619995, -0.3162306547164917, 1.5741008520126343, -0.6886856555938721, -1.5275806188583374, -1.8160762786865234, 0.8422644734382629, 0.5110303163528442, -0.6816420555114746, 0.23950369656085968, -0.371284544467926, 0.031052445992827415, 0.18108879029750824, 0.9991481304168701, 1.269547939300537, 0.8734574913978577, -0.1817481815814972, -1.033528208732605, 0.17283561825752258, -0.015010777860879898, -0.7531059384346008, -1.9040879011154175, -0.24654270708560944, -0.04675719141960144, 0.7977302670478821, -1.1690044403076172, 1.6423125267028809, 1.012454867362976, 1.9301973581314087, 1.1452831029891968, -0.2330566942691803, 1.4528956413269043, -0.03331082686781883, 1.715346097946167, -0.4547535479068756, 0.7032891511917114, -0.34748032689094543, -0.9858717918395996, 0.5865241885185242, -0.4008822441101074, -2.059943675994873, -0.7534032464027405, -0.8447599411010742, -0.21432608366012573, -0.8394693732261658, 1.113692283630371, -0.3655537962913513, -1.3834959268569946, 0.2123199850320816, -0.6809481978416443, 0.16593311727046967, -1.3043479919433594, 0.37290719151496887, 0.5310038328170776, -0.48706451058387756, 0.12408734858036041, -0.09199710935354233, -1.3265364170074463, -0.41830506920814514, 0.0984099730849266, 1.8028810024261475, -0.8344798684120178, 0.9145116806030273, 1.0745494365692139, -0.6109969019889832, -0.1656637340784073, 0.44204437732696533, -0.22559219598770142, 0.8560808897018433, -0.8158599734306335, -0.18784992396831512, 1.1550312042236328, -0.10297097265720367, -0.5245584845542908, 1.5905877351760864, 0.8554715514183044, -0.9088108539581299, -0.15809288620948792, -0.0581505186855793, -0.8276737332344055, -0.05707072466611862, -1.6028586626052856, -0.13758325576782227, 0.15151511132717133, -1.4614613056182861, -0.6907597780227661, -0.38051173090934753, 1.4077121019363403, -0.10076352208852768, 1.3590091466903687, -0.41372713446617126, -0.20966438949108124, -0.3834095895290375, -0.27856069803237915, 0.3526366949081421, -0.2176562398672104, -0.5156713128089905, 0.15943455696105957, -0.7483091354370117, 0.24715285003185272, 1.5860346555709839, 0.4940498173236847, 0.10931170731782913, 0.5658642649650574, 1.0052604675292969, 0.3148125410079956, -0.09667418897151947, -0.8686519861221313, -1.6394164562225342, 1.9865667819976807, -1.5087612867355347, 2.0138802528381348, 0.7877882122993469, 0.00019639218226075172, -1.758786678314209, -1.870206356048584, 1.2937018871307373, 1.2863054275512695, 2.229855537414551, 0.48044148087501526, 0.3331220746040344, -0.9132132530212402, -0.5912288427352905, 0.199351504445076, -1.0502172708511353, -0.7306122183799744, 0.10807690024375916, 2.3060264587402344, 1.6143457889556885, -0.621756911277771, -0.043042946606874466, -1.313779592514038, 1.2783970832824707, -0.034475766122341156, 0.2508763074874878, 1.9046037197113037, -0.38948702812194824, -1.1168301105499268, 1.1795403957366943, -2.2038662433624268, 0.025620972737669945, 1.9276225566864014, 0.252632200717926, 0.04450862854719162, -1.4202706813812256, -0.7820447087287903, -0.3364226222038269, -0.4303096830844879, -1.2240387201309204, 0.6143707036972046, -0.33025509119033813, -0.7465266585350037, -1.4795892238616943, -0.005421535577625036, -1.0744881629943848, -1.523335576057434, 0.3999570310115814, 1.869004726409912, 1.9556348323822021, -0.9280784130096436, 1.4149141311645508, -0.2108020782470703, 0.014260176569223404, 1.2789678573608398, 1.0218907594680786, 3.12306809425354, 1.9148887395858765, -1.2238633632659912, 0.7970149517059326, -0.0778975859284401, -0.5074454545974731, 1.0799362659454346, -1.2216768264770508, 1.4483284950256348, -0.21710282564163208, -1.0408746004104614, -1.1213133335113525, 0.8468591570854187, 0.4991050660610199, 0.1661832481622696, -0.3000560998916626, 1.2227381467819214, -0.007940754294395447, 1.2939298152923584, 0.5216134190559387, -0.26591041684150696, 0.6480128169059753, -0.3505955934524536, -0.505761981010437, 1.4856678247451782, 0.28974324464797974, -1.4493403434753418, -2.246027708053589, -0.1350514143705368, -0.7373836636543274, 0.11090251803398132, -0.6120391488075256, -0.9603146314620972, 1.6427305936813354, 0.46811094880104065, -1.1424942016601562, -0.30044984817504883, -0.3246602416038513, -0.6077290773391724, 2.7067158222198486, -1.4434961080551147, -0.3289439082145691, -0.9100838303565979, -0.43641167879104614, 1.6226459741592407, -1.3278720378875732, -0.19793646037578583, -0.9273389577865601, -0.4830516278743744, -1.3882678747177124, -0.42615899443626404, -0.11749407649040222, -0.8990406394004822, 0.5875645279884338, 0.04847754165530205, -1.0112278461456299, -0.39976567029953003, -0.8410670161247253, 0.6429115533828735, 0.11239693313837051, 0.5766568183898926, 1.9116346836090088, 0.41792070865631104, -0.47285324335098267, 0.6756593585014343, 1.2045135498046875, 0.6200384497642517, -0.6638998985290527, 0.1546197086572647, -0.6371554136276245, 0.26503658294677734, -1.2528095245361328, 0.22993092238903046, -2.839923620223999, 0.48594239354133606, -0.1121116504073143, -0.2136511653661728, -0.11975090950727463, -1.4085755348205566, 1.2596020698547363, 2.3492448329925537, -1.1058149337768555, 0.46332401037216187, 0.11446475237607956, 1.3084182739257812, -1.499016523361206, 0.4058736562728882, -0.4028104841709137, 2.132736921310425, 0.2874363958835602, 1.0240485668182373, -0.5292397141456604, -2.124363660812378, 0.6880989670753479, -1.2734217643737793, -1.1340821981430054, 0.8105481863021851, -0.9121379852294922, -0.07529474049806595, -1.3608530759811401, -0.10492579638957977, -0.8818902373313904, -1.1758403778076172, 0.7553101778030396, 0.34434786438941956, 0.5542418956756592, -0.8483052849769592, 0.3662143349647522, -2.38181471824646, -1.340714693069458, -0.2828478515148163, -0.8386471271514893, 0.5459462404251099, -0.3612515926361084, 0.5987878441810608, -0.24540404975414276, 0.03675974905490875, 0.34150439500808716, 1.405468225479126, 3.3300204277038574, 0.22035647928714752, 0.5821543335914612, -0.08210574835538864, -0.8238644599914551, 1.5835682153701782, 0.999464750289917, -0.135125994682312, -0.6562352180480957, -0.9350659847259521, 1.4508030414581299, 1.7430877685546875, 0.8075847625732422, 0.147420734167099, -0.7908538579940796, -0.6385498642921448, -0.057858314365148544, 0.26649945974349976, 0.40330666303634644, 1.0407336950302124, -0.045104414224624634, 0.08323699980974197, 1.5350964069366455, 1.3211512565612793, -0.7044582366943359, 0.44703683257102966, -0.9545952081680298, -0.3743874132633209, 0.6177574992179871, 0.4391816556453705, -0.09664195775985718, 0.3219514787197113, -0.8239878416061401, -0.2332339584827423, -0.16134856641292572, -1.022828221321106, -0.8116872906684875, -0.41473934054374695, -0.44050654768943787, 1.6265414953231812, 0.0734499990940094, -0.48546716570854187, -0.17819744348526, -0.7934336066246033, 0.0086368378251791, -1.0262874364852905, 0.3137974143028259, -0.030327344313263893, -0.07304349541664124, -0.11213485151529312, 1.9207228422164917, -0.9671098589897156, -2.180884838104248, 0.3572576642036438, 0.22176846861839294, -0.45523661375045776, 0.2043326497077942, 1.5628384351730347, 0.30046388506889343, 1.4886871576309204, 1.2241933345794678, 0.8372371792793274, -0.574298620223999, -1.3458243608474731, 0.6919307112693787, 0.7861033082008362, -1.4008948802947998, 0.8639138340950012, 0.10710114985704422, -0.5900423526763916, 0.6433104872703552, 1.116036295890808, 0.387809693813324, -1.9955906867980957, 0.7249929308891296, -0.7832458019256592, 0.8855962753295898, 0.7297788858413696, 0.8767598271369934, 0.2927338480949402, 0.7813116312026978, -1.2732312679290771, -1.3304862976074219, -0.6744940876960754, -0.7924163341522217, 1.942500352859497, -0.10688269138336182, 0.6674845814704895, -0.20286925137043, -1.1065926551818848, -0.2270224541425705, 0.5094838738441467, 0.35960519313812256, -0.3953534960746765, 0.783025324344635, -0.7815491557121277, -1.429406762123108, -1.5273410081863403, -0.49844080209732056, -0.946853518486023, -0.7961915135383606, 1.0404959917068481, 0.7971258163452148, 0.24682654440402985, 2.007275342941284, 0.4570985436439514, 0.29180535674095154, -2.590738534927368, 0.8325114250183105, 0.24506442248821259, 0.015705574303865433, 0.9030678868293762, 0.26998692750930786, 0.8001101613044739, 0.020925886929035187, 0.33510762453079224, -2.4579856395721436, 2.3388290405273438, -0.42479610443115234, 0.7487828135490417, -0.21158939599990845, 0.05183563008904457, 1.2190594673156738, 0.6439172625541687, 0.584831714630127, -1.1011875867843628, 0.5283933877944946, -0.6797075867652893, 1.377426266670227, 0.810319721698761, -0.709419310092926, -0.1312541514635086, 1.1958781480789185, 0.44947686791419983, -0.33932772278785706, -0.7598844766616821, -1.0745024681091309, 0.8055663108825684, 1.605954647064209, -0.01855059154331684, 0.23286904394626617, 0.5487071871757507, 0.604832112789154, -1.4439821243286133, -0.039668016135692596, -0.7168951630592346, -0.7596610188484192, 1.5674607753753662, 2.2030975818634033, -0.11833325773477554, -0.16182942688465118, -0.6068280935287476, -1.2918472290039062, 0.8460758328437805, -0.0665024071931839, 0.273366779088974, 0.584652841091156, -0.49189162254333496, 1.1390544176101685, 0.8186408281326294, 0.8281339406967163, 0.27637532353401184, 0.28770017623901367, 0.304145872592926, -0.12035327404737473, -1.156147837638855, -0.2505040466785431, -1.121205449104309, -2.4626519680023193, 0.3517712652683258, -0.3270111382007599, -1.6363266706466675, 0.14061616361141205, -1.136735200881958, 0.7581177949905396, -0.5031086206436157, -1.0033289194107056, -1.467175006866455, 0.017229635268449783, -0.016969645395874977, 0.8979703187942505, -1.5161360502243042, 0.06966042518615723, 1.1787232160568237, 0.8904542922973633, -0.47232916951179504, 1.094521403312683, 0.3890461027622223, 1.011440634727478, 0.969059407711029, -0.4129076898097992, 0.334854394197464, 0.04163947328925133, -1.4310851097106934, 0.40194976329803467, 1.305190920829773, 0.3126639127731323, 1.4945259094238281, -0.6952513456344604, 0.04234915226697922, 0.503028929233551, -0.5792611837387085, -0.4645978510379791, -0.49172136187553406, 0.7560911178588867, 0.06261804699897766, -0.804817795753479, 0.04241706803441048, -0.20252348482608795, -0.07049179077148438, 0.31156548857688904, -1.3949155807495117, -0.3407471776008606, -0.4583132266998291, -0.6198121309280396, -1.313114047050476, -0.009949397295713425, 1.455084204673767, -0.7011142373085022, -0.12458321452140808, 0.5662028789520264, 0.4253496527671814, 0.5467631220817566, 0.7671802639961243, -0.641888439655304, -0.3545491397380829, -0.13400283455848694, -0.22478072345256805, 0.2853411138057709, 1.3210315704345703, -0.24458499252796173, -0.9415361881256104, 0.6485112309455872, -0.36534881591796875, 0.10691700875759125, 1.9827944040298462, 0.14519153535366058, -0.770390510559082, 0.1893547624349594, -0.799711287021637, 2.0443761348724365, 1.5817248821258545, 1.2698243856430054, 0.005649210419505835, -0.8839353919029236, 0.46762922406196594, -0.0919206514954567, -0.33083122968673706, 0.845653235912323, 0.4648226201534271, -0.39607757329940796, -1.199313998222351, 0.5177140831947327, 1.3149559497833252, -0.9311555624008179, -0.8772580027580261, -0.07071962207555771, -0.7736836671829224, 1.112416386604309, 0.7131279110908508, 0.4376296401023865, 0.41631466150283813, 1.5748202800750732, 0.708051323890686, -0.615628719329834, 0.5011426210403442, 0.38721299171447754, 0.019098728895187378, -2.1483097076416016, -0.9386792778968811, 0.2731850743293762, -0.40386873483657837, -1.5428354740142822, 1.3683615922927856, -1.092551350593567, -1.1316664218902588, 0.5725352764129639, 0.16020499169826508, 1.5135586261749268, 0.3957825303077698, 1.46136474609375, 2.0823779106140137, 1.1194028854370117, 0.3467543423175812, 1.429479956626892, -0.14476586878299713, -0.38347965478897095, 1.8890942335128784, -0.4493895471096039, 0.4318429231643677, 1.1393210887908936, -0.34231099486351013, -1.035227656364441, -0.769812285900116, -1.0515313148498535, -0.8833267688751221, 1.1868481636047363, 0.21817870438098907, -1.202332854270935, 0.2635807693004608, 1.4653018712997437, 0.06504601240158081, -0.29007935523986816, 0.49613669514656067, 0.5270622372627258, -0.6224629282951355, 0.047285884618759155, -1.1306802034378052, 0.5041568279266357, -0.3968803882598877, -0.5812024474143982, 0.3464100658893585, 0.5002920627593994, 1.2383323907852173, -0.007536413613706827, 0.13639216125011444, 1.246788740158081, -1.5643672943115234, 1.3751745223999023, -0.6359314918518066, 0.23466533422470093, -2.425039768218994, 1.6297976970672607, -0.6012325882911682, 1.9067604541778564, -2.7587473392486572, 0.3524877429008484, -0.4980570673942566, -0.692682683467865, 0.3953174650669098, -0.44554123282432556, 0.040346410125494, -0.244103342294693, -1.0895116329193115, 0.015243615955114365, -0.8088476657867432, 0.34796881675720215, 1.0771132707595825, 1.2090559005737305, -1.114547848701477, -0.26067471504211426, -1.5566051006317139, -0.1407472938299179, -0.6317151784896851, 0.32291513681411743, -2.292968273162842, -0.21523535251617432, -1.9686589241027832, -2.164522647857666, -1.1985042095184326, -0.8220258355140686, 1.222797155380249, 0.2478141337633133, -0.8384338021278381, 1.0174018144607544, -0.3884350061416626, -1.808553695678711, 0.9665205478668213, -2.088618040084839 ]
https://github.com/huggingface/datasets/issues/3558
Integrate Milvus (pymilvus) library
Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer.
Milvus is a popular open-source vector database. We should add a new vector index to support this project.
1,011
37
Integrate Milvus (pymilvus) library Milvus is a popular open-source vector database. We should add a new vector index to support this project. Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer.
[ -1.3701255321502686, -0.9647730588912964, -0.7401665449142456, 1.3686764240264893, -0.18708205223083496, -1.310942530632019, 0.0441613607108593, -1.055802583694458, 1.562262773513794, -0.7801345586776733, 0.35431110858917236, -1.587019443511963, -0.10563972592353821, -0.40009310841560364, -0.7648150324821472, -0.9398548603057861, -0.3544866144657135, -0.8174407482147217, 1.0697094202041626, 2.5472350120544434, 1.170207142829895, -1.3261574506759644, 2.866990566253662, 0.7765937447547913, -0.2613818645477295, -1.1229742765426636, 0.6655359268188477, 0.11576611548662186, -1.2633243799209595, -0.42460212111473083, -1.0509498119354248, -0.05473368987441063, -0.5586888790130615, -0.4093300402164459, 0.09175395965576172, 0.35667872428894043, -0.05068795755505562, -0.45535919070243835, -0.5201849937438965, -0.6275940537452698, 0.5309165120124817, -0.35637128353118896, 0.8804643750190735, -0.29849687218666077, 1.7769068479537964, -0.4730502665042877, 0.43949955701828003, 0.5480925440788269, 1.4233742952346802, 0.1159219965338707, 0.005143167916685343, 0.21989217400550842, 0.515247106552124, -0.09321372956037521, 0.33357906341552734, 1.1959553956985474, 0.5669096112251282, 0.6717577576637268, 0.6047847867012024, -2.079968214035034, 1.3973948955535889, -0.9555983543395996, 0.2371860146522522, 1.4268946647644043, -0.9498046040534973, 0.4289373457431793, -1.810952067375183, -0.0860821083188057, 0.43517863750457764, -2.29142689704895, 0.1678774207830429, -1.197978138923645, -0.6260411739349365, 0.9114496111869812, 0.304636687040329, -1.4747865200042725, 0.2231244146823883, -0.5128882527351379, 1.0034239292144775, 0.4233727753162384, 1.2549166679382324, -1.6407175064086914, 0.09982215613126755, -0.33431276679039, -0.015367576852440834, -1.3200162649154663, -1.4495775699615479, 0.6316476464271545, 0.5906394720077515, 0.6930201649665833, -0.055009640753269196, 0.8389323949813843, -0.7943617701530457, 0.9203211665153503, -0.8830152153968811, -1.619346022605896, -1.3982559442520142, -2.398845672607422, -2.3493571281433105, 0.8534880876541138, -0.5303852558135986, -0.4581967294216156, 1.9084978103637695, -1.0405757427215576, -1.7738313674926758, 1.1955633163452148, 0.3058621287345886, 0.17679551243782043, 2.4597668647766113, 0.29976484179496765, -0.6787678003311157, 0.4205555021762848, -0.693909227848053, 0.8237212300300598, -0.516511857509613, 1.5060287714004517, 0.5070143342018127, -0.9260934591293335, 1.6928930282592773, -0.5370652675628662, 0.47864872217178345, -0.689906120300293, -0.48935946822166443, -0.8643776178359985, 0.4175534248352051, 1.8250806331634521, -0.39248281717300415, 1.5953452587127686, -0.5460031628608704, -1.4180521965026855, -1.5605717897415161, 0.732338011264801, 0.5475562214851379, -0.8034691214561462, 0.13562937080860138, -0.41254016757011414, -0.031999632716178894, 0.1313936859369278, 0.9735023379325867, 1.1527167558670044, 0.6804620623588562, -0.3674275279045105, -0.9594134092330933, 0.3143651485443115, -0.01924767903983593, -0.6846234798431396, -1.906746745109558, -0.28772538900375366, 0.07358484715223312, 0.7819188833236694, -1.2465764284133911, 1.7311772108078003, 1.0008686780929565, 2.0716938972473145, 0.9556079506874084, -0.4023917019367218, 1.3922890424728394, -0.15561549365520477, 1.827322244644165, -0.5812174677848816, 0.6619477272033691, -0.27150171995162964, -1.039215326309204, 0.7556620836257935, -0.34436434507369995, -2.0379292964935303, -0.8235443234443665, -0.8773568868637085, -0.2678692638874054, -0.7939501404762268, 1.0997262001037598, -0.31237441301345825, -1.3344179391860962, 0.11144375801086426, -0.7715902328491211, 0.1608320027589798, -1.2706544399261475, 0.17161837220191956, 0.6647211313247681, -0.5123395919799805, -0.034429118037223816, -0.2649734318256378, -1.2749823331832886, -0.5080492496490479, 0.2237226366996765, 1.8080676794052124, -0.6682047843933105, 0.9108988642692566, 0.9691405892372131, -0.6348512768745422, 0.04461601376533508, 0.2858523726463318, -0.20750828087329865, 0.8150635957717896, -1.0155036449432373, -0.36567187309265137, 1.1272493600845337, -0.15367650985717773, -0.6674721240997314, 1.5159223079681396, 0.8510271906852722, -0.9839123487472534, -0.20154789090156555, -0.2065848559141159, -0.7731294631958008, -0.05467282235622406, -1.6129062175750732, -0.11419876664876938, 0.2360592931509018, -1.510489821434021, -0.4466606080532074, -0.24564231932163239, 1.3203297853469849, -0.117482990026474, 1.4738062620162964, -0.18474042415618896, -0.1915035992860794, -0.3770747780799866, -0.3966871201992035, 0.2808421552181244, -0.270099014043808, -0.5318233370780945, 0.17764200270175934, -0.863671600818634, 0.3421372175216675, 1.6486265659332275, 0.46497854590415955, 0.2076340615749359, 0.6017393469810486, 0.9905402064323425, 0.35449621081352234, -0.13011914491653442, -0.8402718305587769, -1.5761417150497437, 2.012361526489258, -1.4943913221359253, 1.932373046875, 0.7982516288757324, -0.10247767716646194, -1.8152416944503784, -1.767350196838379, 1.2445650100708008, 1.1808562278747559, 2.343935966491699, 0.5369436740875244, 0.2542193830013275, -0.7662883996963501, -0.672982394695282, 0.33986425399780273, -1.0231279134750366, -0.7105408906936646, 0.14211425185203552, 2.2587203979492188, 1.7935491800308228, -0.5508592128753662, -0.13660801947116852, -1.1915637254714966, 1.2855653762817383, -0.1315024048089981, 0.2955211102962494, 1.9927127361297607, -0.4225606918334961, -1.068210244178772, 1.2516229152679443, -2.4024527072906494, 0.19523434340953827, 1.9590561389923096, 0.35435646772384644, 0.06023112311959267, -1.5633803606033325, -0.7196621298789978, -0.28603994846343994, -0.48145702481269836, -1.2870985269546509, 0.6053056716918945, -0.2503449320793152, -0.8926316499710083, -1.4776878356933594, 0.014589423313736916, -1.1225929260253906, -1.7944608926773071, 0.45403072237968445, 1.8449647426605225, 1.9971907138824463, -0.8194873929023743, 1.3831589221954346, -0.26329898834228516, -0.02977113053202629, 1.2840855121612549, 1.192684531211853, 3.043544054031372, 1.8028514385223389, -1.1317082643508911, 0.8301073908805847, -0.22078882157802582, -0.5269337892532349, 1.133062720298767, -1.0684733390808105, 1.2449703216552734, -0.2535400092601776, -1.1218682527542114, -1.086503505706787, 0.9824159741401672, 0.44467779994010925, 0.0735732689499855, -0.5907210111618042, 1.3137893676757812, 0.19582881033420563, 1.303895115852356, 0.483584463596344, -0.40259069204330444, 0.6252139210700989, -0.23895572125911713, -0.4990183413028717, 1.4947997331619263, 0.2305498868227005, -1.425380825996399, -2.329916477203369, -0.1367397904396057, -0.9027006030082703, -0.17345412075519562, -0.6692830324172974, -1.0638413429260254, 1.6827638149261475, 0.5501964688301086, -1.2140843868255615, -0.20145143568515778, -0.41945114731788635, -0.6153997778892517, 2.73949933052063, -1.4093575477600098, -0.1342853158712387, -1.0093114376068115, -0.29438894987106323, 1.7131041288375854, -1.1595052480697632, -0.1531069278717041, -0.9853143095970154, -0.6079188585281372, -1.4766666889190674, -0.4380321800708771, -0.03609447553753853, -0.9324566125869751, 0.5684351921081543, 0.1039917916059494, -0.9877112507820129, -0.38725167512893677, -0.6804063320159912, 0.9025011658668518, 0.048858512192964554, 0.39312979578971863, 2.0115835666656494, 0.33297285437583923, -0.43087998032569885, 0.719911515712738, 1.2364431619644165, 0.5530056357383728, -0.7203541398048401, 0.12308482080698013, -0.7589559555053711, 0.4447665512561798, -1.2463535070419312, 0.20859618484973907, -2.959500789642334, 0.6550346612930298, -0.15346141159534454, -0.20964449644088745, -0.10555212944746017, -1.4044694900512695, 1.1964257955551147, 2.6454787254333496, -1.1886264085769653, 0.4881652891635895, 0.27139443159103394, 1.1246943473815918, -1.4568337202072144, 0.3519720435142517, -0.49048352241516113, 1.9532924890518188, 0.18182361125946045, 1.138525128364563, -0.7331450581550598, -2.108787775039673, 0.618741512298584, -1.2444515228271484, -1.083834171295166, 0.75203937292099, -0.896726131439209, 0.1331377774477005, -1.4211944341659546, -0.012600582093000412, -1.0363781452178955, -1.3122819662094116, 0.7009352445602417, 0.2116725891828537, 0.45437419414520264, -0.6883021593093872, 0.40641236305236816, -2.2142441272735596, -1.3329687118530273, -0.23709304630756378, -0.9022977948188782, 0.5497857332229614, -0.3918413519859314, 0.5737797617912292, -0.02810739167034626, 0.07576709240674973, 0.3606082797050476, 1.315575361251831, 3.322012186050415, 0.16563844680786133, 0.39114007353782654, -0.0963527113199234, -0.9788154363632202, 1.5527968406677246, 1.0438443422317505, -0.05749928206205368, -0.6745425462722778, -0.8558073043823242, 1.4421961307525635, 1.9163373708724976, 1.0223795175552368, 0.14159764349460602, -0.8934981822967529, -0.6832677721977234, 0.17280416190624237, 0.25167015194892883, 0.3527374863624573, 1.058985948562622, -0.03226032108068466, 0.12804681062698364, 1.4450230598449707, 1.296369194984436, -0.5436365008354187, 0.4831300377845764, -0.957965612411499, -0.3282904624938965, 0.4811972975730896, 0.29096728563308716, 0.004418371710926294, 0.47979170083999634, -0.9186935424804688, -0.29622501134872437, -0.18306076526641846, -1.0417742729187012, -0.7551628351211548, -0.3559955358505249, -0.4902857542037964, 1.62886381149292, 0.025417380034923553, -0.39678680896759033, 0.049678217619657516, -0.7372435331344604, -0.020280808210372925, -1.023401141166687, 0.24214956164360046, -0.06795497238636017, 0.04219910502433777, -0.051249485462903976, 1.8547340631484985, -0.9785051941871643, -2.2088937759399414, 0.3345966339111328, 0.35294434428215027, -0.49429813027381897, 0.25879666209220886, 1.577976942062378, 0.46665215492248535, 1.4552496671676636, 1.318296194076538, 0.8775889277458191, -0.5869112610816956, -1.3585575819015503, 0.6977239847183228, 0.8960623741149902, -1.401697039604187, 1.0187262296676636, -0.09236414730548859, -0.45009085536003113, 0.6866006851196289, 1.3181246519088745, 0.25111672282218933, -2.0839173793792725, 0.7748714685440063, -0.8302385210990906, 0.95163893699646, 0.6492435932159424, 0.866213321685791, 0.26538243889808655, 0.8300558924674988, -1.3217586278915405, -1.2071887254714966, -0.7594578266143799, -0.6928740739822388, 1.9495327472686768, -0.12442300468683243, 0.7232055068016052, -0.19100479781627655, -1.0929844379425049, -0.1264360249042511, 0.6297385692596436, 0.31720706820487976, -0.41989609599113464, 0.8890346884727478, -0.709967851638794, -1.2654531002044678, -1.4316171407699585, -0.5875506401062012, -0.8879238963127136, -0.8631815910339355, 1.0135012865066528, 0.8179436326026917, 0.31969279050827026, 1.9845008850097656, 0.40947985649108887, 0.2633538246154785, -2.750077724456787, 0.9647615551948547, 0.2560172975063324, 0.1369636356830597, 0.8673608899116516, 0.23131026327610016, 0.9626269340515137, -0.006955486256629229, 0.4555395543575287, -2.304929494857788, 2.3171684741973877, -0.30767330527305603, 0.7202759981155396, -0.011396083980798721, 0.006190091837197542, 1.1628702878952026, 0.567760169506073, 0.6612309217453003, -1.2122248411178589, 0.7118072509765625, -0.6001898050308228, 1.2694398164749146, 0.9034239649772644, -0.8344573378562927, 0.04251064360141754, 1.282984972000122, 0.5149306058883667, -0.35009410977363586, -0.9916291236877441, -0.8089707493782043, 0.9892974495887756, 1.6375153064727783, 0.012850074097514153, 0.10101751238107681, 0.7374275922775269, 0.540621280670166, -1.3335719108581543, -0.0078034852631390095, -0.7696290612220764, -0.5932123064994812, 1.660190224647522, 2.0579869747161865, -0.07456227391958237, -0.09457533806562424, -0.6459653377532959, -1.2407944202423096, 0.7478523254394531, -0.09028074890375137, 0.2036692053079605, 0.6137762665748596, -0.6574910879135132, 1.1924970149993896, 0.6272634863853455, 0.862643301486969, 0.007288025226444006, 0.385267436504364, 0.3031081557273865, -0.23512844741344452, -1.189833402633667, -0.26520243287086487, -1.17280912399292, -2.601442575454712, 0.313873827457428, -0.24775752425193787, -1.5109378099441528, 0.10355621576309204, -1.0924290418624878, 0.8058934211730957, -0.5679688453674316, -0.9960649609565735, -1.3511364459991455, 0.2402932494878769, -0.18058283627033234, 0.8863651752471924, -1.6981087923049927, 0.029281526803970337, 1.2400723695755005, 0.9017835855484009, -0.6168628334999084, 1.0479384660720825, 0.2907315492630005, 0.9795039892196655, 0.7974380850791931, -0.3723023235797882, 0.392496794462204, -0.002209847792983055, -1.2868969440460205, 0.5173143148422241, 1.2554476261138916, 0.19205978512763977, 1.2923202514648438, -0.5554575324058533, 0.17973174154758453, 0.508058488368988, -0.6079504489898682, -0.4910423755645752, -0.49624982476234436, 0.7233191728591919, 0.10517901927232742, -0.9996983408927917, -0.07146315276622772, -0.193125382065773, -0.11948258429765701, 0.2869112491607666, -1.3709772825241089, -0.41888943314552307, -0.408526748418808, -0.3955637812614441, -1.3448830842971802, 0.05264650285243988, 1.3108075857162476, -0.7952526211738586, -0.1577754020690918, 0.48942816257476807, 0.32400867342948914, 0.5705203413963318, 0.6648411154747009, -0.8059583306312561, -0.38260412216186523, -0.1425710916519165, -0.22642824053764343, 0.2778189480304718, 1.0795210599899292, -0.22659441828727722, -0.8898748159408569, 0.6906129121780396, -0.38114771246910095, 0.13491924107074738, 2.010667562484741, -0.018291832879185677, -0.7192238569259644, 0.2390650063753128, -0.6788946986198425, 1.7931406497955322, 1.5394216775894165, 1.23338782787323, -0.12214046716690063, -0.7807669639587402, 0.5447989702224731, -0.17043974995613098, -0.2735404968261719, 0.8166524171829224, 0.4661814570426941, -0.28420785069465637, -1.3152633905410767, 0.39772024750709534, 1.2337571382522583, -0.8849421739578247, -0.7894986867904663, -0.10280818492174149, -0.7239249348640442, 1.2073402404785156, 0.68653804063797, 0.28744417428970337, 0.29967671632766724, 1.647401213645935, 0.5834901332855225, -0.46351030468940735, 0.5094078779220581, 0.39478474855422974, -0.20059902966022491, -2.1134207248687744, -0.9382351040840149, 0.17672598361968994, -0.44148045778274536, -1.5059674978256226, 1.2640219926834106, -1.1168636083602905, -0.9423384070396423, 0.4620116055011749, 0.2496040016412735, 1.547034502029419, 0.3669314980506897, 1.5915606021881104, 2.082831621170044, 0.9787962436676025, 0.24678193032741547, 1.346287727355957, 0.021648474037647247, -0.3631937503814697, 1.911481499671936, -0.39940881729125977, 0.5924783945083618, 0.9299470782279968, -0.4892435371875763, -1.010823130607605, -0.7619935274124146, -1.1903666257858276, -0.7095310091972351, 1.1738719940185547, 0.23833851516246796, -1.0860947370529175, 0.2857626974582672, 1.518822193145752, 0.07937734574079514, -0.1968601793050766, 0.5645160675048828, 0.48444485664367676, -0.6094698905944824, -0.055309634655714035, -1.0378938913345337, 0.45230838656425476, -0.17997443675994873, -0.46291252970695496, 0.19078731536865234, 0.566804051399231, 1.2026362419128418, -0.016206366941332817, 0.1225997731089592, 1.1337666511535645, -1.4202553033828735, 1.5401546955108643, -0.6440092921257019, 0.25734058022499084, -2.4955010414123535, 1.511431336402893, -0.643059492111206, 1.9272516965866089, -2.780186653137207, 0.38098523020744324, -0.5735148191452026, -0.5886720418930054, 0.3616654872894287, -0.4885033071041107, 0.126656174659729, -0.2566252648830414, -0.924072265625, 0.02264750935137272, -0.8019364476203918, 0.42498329281806946, 1.038516640663147, 1.3019144535064697, -1.1342185735702515, -0.21645037829875946, -1.8188230991363525, -0.15734970569610596, -0.7021970152854919, 0.49362972378730774, -2.1712446212768555, -0.10527786612510681, -2.0432519912719727, -2.222994804382324, -1.3537238836288452, -0.8051431775093079, 1.141539216041565, 0.19308310747146606, -0.8718353509902954, 0.9884297847747803, -0.36623263359069824, -1.8539013862609863, 1.0003876686096191, -2.2092130184173584 ]
https://github.com/huggingface/datasets/issues/3558
Integrate Milvus (pymilvus) library
> Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer. Sure, we take a look and do some research
Milvus is a popular open-source vector database. We should add a new vector index to support this project.
1,011
47
Integrate Milvus (pymilvus) library Milvus is a popular open-source vector database. We should add a new vector index to support this project. > Hi! For starters, I suggest you take a look at this file: https://github.com/huggingface/datasets/blob/master/src/datasets/search.py, which contains all the code for Faiss/ElasticSearch support. We could set up a Slack channel for additional guidance. Let me know what you prefer. Sure, we take a look and do some research
[ -1.3805041313171387, -0.9932970404624939, -0.7434062361717224, 1.3606621026992798, -0.1509893238544464, -1.3533058166503906, 0.03336377441883087, -1.0658795833587646, 1.5485097169876099, -0.7636963725090027, 0.2928992211818695, -1.6711022853851318, -0.04200166463851929, -0.4457540512084961, -0.74832683801651, -0.9075896739959717, -0.3910816013813019, -0.8016141653060913, 1.059091567993164, 2.5298759937286377, 1.234613060951233, -1.2966548204421997, 2.8604838848114014, 0.7811270952224731, -0.28885728120803833, -1.0845489501953125, 0.6307192444801331, 0.07066727429628372, -1.2391552925109863, -0.4260609745979309, -1.0149108171463013, -0.06449910253286362, -0.5890735387802124, -0.40124544501304626, 0.006442589219659567, 0.35109421610832214, -0.11178644746541977, -0.39649367332458496, -0.4896494448184967, -0.679414689540863, 0.5007851123809814, -0.30565986037254333, 0.887637197971344, -0.32799410820007324, 1.7530112266540527, -0.48734408617019653, 0.4716290235519409, 0.5432518720626831, 1.4629921913146973, 0.1349378526210785, -0.026993075385689735, 0.24591735005378723, 0.45947787165641785, -0.07380878180265427, 0.37105101346969604, 1.1918646097183228, 0.5703532695770264, 0.7016915082931519, 0.6359981298446655, -2.0901715755462646, 1.3731611967086792, -0.9385328888893127, 0.29031312465667725, 1.3974195718765259, -0.9210602641105652, 0.38125574588775635, -1.7660307884216309, -0.05380511283874512, 0.41873690485954285, -2.278655767440796, 0.18642835319042206, -1.2391269207000732, -0.6255688667297363, 0.9291293621063232, 0.3356162905693054, -1.3510961532592773, 0.1927568018436432, -0.49289336800575256, 1.0818425416946411, 0.5064928531646729, 1.2251389026641846, -1.618213176727295, 0.035334229469299316, -0.35546839237213135, -0.03918123617768288, -1.2908947467803955, -1.4630141258239746, 0.620512068271637, 0.6217255592346191, 0.6535933017730713, -0.028011959046125412, 0.9052048921585083, -0.8179544806480408, 0.91344153881073, -0.936231791973114, -1.5888773202896118, -1.3749494552612305, -2.4154961109161377, -2.306419849395752, 0.8371407389640808, -0.5319281220436096, -0.4569866955280304, 1.9235700368881226, -1.0401654243469238, -1.837390422821045, 1.233296513557434, 0.3371536433696747, 0.1371597945690155, 2.452120780944824, 0.2708306908607483, -0.6951161623001099, 0.4847494065761566, -0.7292789220809937, 0.8158769607543945, -0.5526279211044312, 1.5181126594543457, 0.523867666721344, -0.9203269481658936, 1.7045269012451172, -0.5915386080741882, 0.5287352204322815, -0.6418833136558533, -0.48151683807373047, -0.864106297492981, 0.47245046496391296, 1.8057794570922852, -0.31539222598075867, 1.5931752920150757, -0.514565110206604, -1.3771791458129883, -1.5566205978393555, 0.7635101079940796, 0.4887058734893799, -0.8501520156860352, 0.12436021864414215, -0.35700809955596924, -0.04645627364516258, 0.1335902363061905, 0.9570671319961548, 1.2214186191558838, 0.6907243132591248, -0.41608473658561707, -0.9933713674545288, 0.2624718248844147, -0.05695212632417679, -0.7308835387229919, -1.8418759107589722, -0.3004205822944641, 0.07322704792022705, 0.7594127058982849, -1.212979793548584, 1.7090519666671753, 1.007718801498413, 2.08996319770813, 0.9324336051940918, -0.3690582811832428, 1.40593683719635, -0.1519293189048767, 1.8689053058624268, -0.6033408045768738, 0.7030209302902222, -0.2485770732164383, -1.0193679332733154, 0.7596331834793091, -0.4039217233657837, -2.0729715824127197, -0.8095952272415161, -0.8949887752532959, -0.25725483894348145, -0.8266727328300476, 1.0788732767105103, -0.2706792950630188, -1.3179339170455933, 0.18590620160102844, -0.7676051259040833, 0.16685613989830017, -1.2835474014282227, 0.18589012324810028, 0.6914325952529907, -0.47882041335105896, -0.0730290487408638, -0.29578715562820435, -1.2805086374282837, -0.47222796082496643, 0.23584908246994019, 1.7765109539031982, -0.621849000453949, 0.93479323387146, 1.0100414752960205, -0.6523427367210388, -0.008113723248243332, 0.3193570673465729, -0.1689443290233612, 0.846443772315979, -0.9771924018859863, -0.3201792240142822, 1.1547874212265015, -0.1603100746870041, -0.6633490324020386, 1.5209226608276367, 0.9153194427490234, -0.9863810539245605, -0.14531055092811584, -0.19412478804588318, -0.7614808678627014, -0.028222668915987015, -1.6113176345825195, -0.06576243788003922, 0.2426312267780304, -1.5174660682678223, -0.427729994058609, -0.23689411580562592, 1.3716105222702026, -0.061213113367557526, 1.4552923440933228, -0.2177804410457611, -0.18299812078475952, -0.4054396450519562, -0.37448251247406006, 0.20097823441028595, -0.28695186972618103, -0.493539959192276, 0.1847681999206543, -0.857398271560669, 0.32210785150527954, 1.6526572704315186, 0.4308127760887146, 0.2507704794406891, 0.5487344861030579, 0.9967312812805176, 0.33915409445762634, -0.14792872965335846, -0.8254590630531311, -1.5775681734085083, 1.9624500274658203, -1.4854731559753418, 1.9485008716583252, 0.7975792288780212, -0.07162492722272873, -1.8173916339874268, -1.8440943956375122, 1.2696211338043213, 1.2063666582107544, 2.2852883338928223, 0.5164306163787842, 0.2730354070663452, -0.7959856986999512, -0.6790174245834351, 0.3029573857784271, -1.0449422597885132, -0.7244800925254822, 0.08676016330718994, 2.259212017059326, 1.828782320022583, -0.5150269269943237, -0.16027206182479858, -1.1894508600234985, 1.270389437675476, -0.14690516889095306, 0.25106683373451233, 1.9105254411697388, -0.4383005201816559, -1.0444669723510742, 1.2853775024414062, -2.366051197052002, 0.15580159425735474, 2.0032894611358643, 0.3583020269870758, 0.10195884853601456, -1.5356335639953613, -0.7193533778190613, -0.2589733600616455, -0.43619218468666077, -1.2640314102172852, 0.5997282266616821, -0.29328250885009766, -0.8475276827812195, -1.472062349319458, 0.01974378526210785, -1.1044704914093018, -1.7965998649597168, 0.39865410327911377, 1.827980399131775, 1.9981811046600342, -0.805612325668335, 1.4188936948776245, -0.2879813015460968, 0.04205368831753731, 1.2921642065048218, 1.18538498878479, 3.037792205810547, 1.8547552824020386, -1.1714311838150024, 0.8162022829055786, -0.21386954188346863, -0.5244447588920593, 1.1307224035263062, -1.1523455381393433, 1.2583485841751099, -0.23185640573501587, -1.1122997999191284, -1.065312147140503, 0.9843206405639648, 0.4252062439918518, 0.07437476515769958, -0.6005347967147827, 1.2517976760864258, 0.17676813900470734, 1.2783316373825073, 0.48736560344696045, -0.4254792034626007, 0.6438090205192566, -0.2720513343811035, -0.5234724879264832, 1.5431262254714966, 0.2649646997451782, -1.439690351486206, -2.3853092193603516, -0.17249368131160736, -0.9055988788604736, -0.16338381171226501, -0.6423164010047913, -1.0612270832061768, 1.6471688747406006, 0.5489948391914368, -1.1694777011871338, -0.21968306601047516, -0.39442718029022217, -0.5571337342262268, 2.7237346172332764, -1.3934978246688843, -0.20702144503593445, -0.9730929732322693, -0.323073148727417, 1.6463704109191895, -1.2024201154708862, -0.12411751598119736, -1.0016891956329346, -0.6532594561576843, -1.4413012266159058, -0.39545300602912903, -0.060675010085105896, -0.9092257618904114, 0.5686986446380615, 0.10630030930042267, -1.0496548414230347, -0.3817206919193268, -0.7599565982818604, 0.8855518102645874, 0.026863783597946167, 0.3979767858982086, 1.9512048959732056, 0.3382943272590637, -0.4340569078922272, 0.719118058681488, 1.257507562637329, 0.548350989818573, -0.7399206757545471, 0.11004187166690826, -0.7502498030662537, 0.4977709650993347, -1.2796937227249146, 0.23710395395755768, -2.9070229530334473, 0.6345939636230469, -0.19569899141788483, -0.2003142535686493, -0.10873410850763321, -1.4460582733154297, 1.2486612796783447, 2.587200880050659, -1.1591404676437378, 0.5289813280105591, 0.27051863074302673, 1.1033413410186768, -1.4201704263687134, 0.36934998631477356, -0.5204567909240723, 2.036914825439453, 0.14244015514850616, 1.1077359914779663, -0.690275251865387, -2.1547231674194336, 0.6193167567253113, -1.2006845474243164, -1.1033642292022705, 0.7788459062576294, -0.8924033641815186, 0.07500208169221878, -1.361024260520935, 0.02103465422987938, -0.9893329739570618, -1.2715827226638794, 0.6780299544334412, 0.18537406623363495, 0.5036373138427734, -0.7449008822441101, 0.4026070237159729, -2.186960220336914, -1.368213176727295, -0.20704783499240875, -0.8950098156929016, 0.5165287256240845, -0.3858547508716583, 0.5648122429847717, -0.07198501378297806, 0.010325312614440918, 0.349338561296463, 1.3758902549743652, 3.360030174255371, 0.1926131546497345, 0.34989112615585327, -0.05021311342716217, -0.9589418768882751, 1.4884896278381348, 1.0203825235366821, -0.03663444519042969, -0.6513020992279053, -0.8681375980377197, 1.4094188213348389, 1.898899793624878, 0.959866464138031, 0.13026462495326996, -0.8955204486846924, -0.6748698949813843, 0.13802120089530945, 0.20009425282478333, 0.35120514035224915, 1.06294584274292, -0.010037055239081383, 0.10497500747442245, 1.4429891109466553, 1.3206048011779785, -0.5438725352287292, 0.5303536057472229, -0.9690830111503601, -0.36839672923088074, 0.46852701902389526, 0.30951106548309326, -0.0008757458999752998, 0.45881617069244385, -0.9466270804405212, -0.25628405809402466, -0.19361338019371033, -0.9854119420051575, -0.8175066113471985, -0.3755851686000824, -0.4778689742088318, 1.6130890846252441, 0.002418795134872198, -0.4095650613307953, 0.04776199162006378, -0.7022844552993774, -0.01212187111377716, -1.019175410270691, 0.2141864150762558, -0.11370684951543808, 0.012293601408600807, -0.07520435005426407, 1.8357616662979126, -0.9797335863113403, -2.158656597137451, 0.34942400455474854, 0.40402814745903015, -0.4831181466579437, 0.22665715217590332, 1.5455948114395142, 0.46209341287612915, 1.5149832963943481, 1.2939430475234985, 0.9155911207199097, -0.6179736852645874, -1.357852578163147, 0.7671038508415222, 0.915776789188385, -1.3716518878936768, 1.0236196517944336, -0.05517299100756645, -0.5184891223907471, 0.672756016254425, 1.2556300163269043, 0.30229291319847107, -2.075324296951294, 0.7843067049980164, -0.8174935579299927, 0.9585976600646973, 0.6330908536911011, 0.8590851426124573, 0.2870681583881378, 0.7732921838760376, -1.3021163940429688, -1.2663040161132812, -0.7992439866065979, -0.7086736559867859, 1.9436917304992676, -0.12631374597549438, 0.7300516963005066, -0.19245833158493042, -1.1636277437210083, -0.15759412944316864, 0.6644392609596252, 0.3227578103542328, -0.4661215543746948, 0.8901585340499878, -0.6883485913276672, -1.199488639831543, -1.4432199001312256, -0.5851436257362366, -0.8813645839691162, -0.878385066986084, 1.015417456626892, 0.7937227487564087, 0.3671053647994995, 2.013667583465576, 0.42119693756103516, 0.2636355459690094, -2.7130579948425293, 0.9285573363304138, 0.25532498955726624, 0.11970287561416626, 0.8235924243927002, 0.2524101138114929, 0.9345115423202515, 0.010121701285243034, 0.45253098011016846, -2.253934383392334, 2.295475959777832, -0.2994419038295746, 0.6900975704193115, -0.024373143911361694, -0.015075968578457832, 1.1220276355743408, 0.5672447681427002, 0.6275280714035034, -1.1547304391860962, 0.7112753391265869, -0.6122665405273438, 1.227282166481018, 0.8753991723060608, -0.7972227931022644, 0.007823418825864792, 1.2756742238998413, 0.524930477142334, -0.3532862961292267, -1.0215703248977661, -0.8274864554405212, 1.0787851810455322, 1.6277954578399658, 0.03612698242068291, 0.1457117646932602, 0.7223257422447205, 0.5852115750312805, -1.3064653873443604, -0.010188231244683266, -0.7165598273277283, -0.5871177315711975, 1.7292680740356445, 2.033407688140869, -0.08838502317667007, -0.15022556483745575, -0.6617794632911682, -1.2478793859481812, 0.7761099934577942, -0.09926047921180725, 0.24002784490585327, 0.6101330518722534, -0.592146098613739, 1.1740514039993286, 0.6312984228134155, 0.8559413552284241, 0.05078248307108879, 0.35866937041282654, 0.31140896677970886, -0.23868215084075928, -1.2282954454421997, -0.2543773651123047, -1.2225582599639893, -2.6278862953186035, 0.3958539664745331, -0.2824949324131012, -1.547909140586853, 0.09672535955905914, -1.0573941469192505, 0.9000311493873596, -0.5345556139945984, -0.9404467940330505, -1.4164971113204956, 0.28584691882133484, -0.12752848863601685, 0.9365218281745911, -1.660745620727539, 0.02575085684657097, 1.2219871282577515, 0.9123733043670654, -0.618043065071106, 1.0768545866012573, 0.2940298616886139, 0.9907280802726746, 0.8055167198181152, -0.4141983687877655, 0.3627517819404602, 0.04167213663458824, -1.3065614700317383, 0.5192587971687317, 1.2505443096160889, 0.23944006860256195, 1.3312041759490967, -0.5543808341026306, 0.16899904608726501, 0.475254088640213, -0.5662782788276672, -0.4711728096008301, -0.5403211116790771, 0.7242537140846252, 0.161935493350029, -1.0324492454528809, -0.08956276625394821, -0.19374801218509674, -0.1420031636953354, 0.24007511138916016, -1.4217232465744019, -0.37972185015678406, -0.4925875663757324, -0.47099798917770386, -1.3605186939239502, 0.027479831129312515, 1.3094866275787354, -0.7805736064910889, -0.11534180492162704, 0.49645698070526123, 0.31963247060775757, 0.5593827366828918, 0.6979988813400269, -0.7664070725440979, -0.3611500859260559, -0.19450360536575317, -0.2547759711742401, 0.3128367066383362, 1.0613586902618408, -0.21243977546691895, -0.9018703699111938, 0.6929473280906677, -0.41591814160346985, 0.07924890518188477, 1.9364231824874878, 0.042479224503040314, -0.762252688407898, 0.23057150840759277, -0.6827887296676636, 1.8173762559890747, 1.5833826065063477, 1.2489103078842163, -0.09236329793930054, -0.7781738042831421, 0.5468134880065918, -0.16914261877536774, -0.2657868564128876, 0.8359056115150452, 0.4957926273345947, -0.22329391539096832, -1.3226878643035889, 0.41681617498397827, 1.238190770149231, -0.9085427522659302, -0.8058248162269592, -0.08491909503936768, -0.7430514693260193, 1.2084962129592896, 0.6992549896240234, 0.3216347098350525, 0.35039955377578735, 1.6342018842697144, 0.6019871234893799, -0.5101684331893921, 0.5397113561630249, 0.41119593381881714, -0.1552993506193161, -2.119753360748291, -0.985175609588623, 0.16087593138217926, -0.46395039558410645, -1.491878628730774, 1.283986210823059, -1.1342204809188843, -0.9312760829925537, 0.46741530299186707, 0.194266676902771, 1.531116247177124, 0.3324407935142517, 1.5977072715759277, 2.0854897499084473, 1.0116297006607056, 0.2742946445941925, 1.4129852056503296, -0.022495247423648834, -0.32808494567871094, 1.9168641567230225, -0.37912681698799133, 0.5588875412940979, 0.943132758140564, -0.5185394287109375, -0.9957376718521118, -0.8046154379844666, -1.1710313558578491, -0.7463079690933228, 1.1848310232162476, 0.2038246989250183, -1.1015408039093018, 0.3067394495010376, 1.5604209899902344, 0.039876047521829605, -0.1937253624200821, 0.5230241417884827, 0.47370192408561707, -0.6560280919075012, -0.03999444842338562, -1.0341249704360962, 0.44306686520576477, -0.20596547424793243, -0.4752385914325714, 0.21784037351608276, 0.5718585848808289, 1.186926245689392, -0.01744711399078369, 0.11623226851224899, 1.0727317333221436, -1.4722965955734253, 1.5254980325698853, -0.6028468012809753, 0.30484411120414734, -2.4341471195220947, 1.4951119422912598, -0.6985722184181213, 1.9050458669662476, -2.7878522872924805, 0.3313309848308563, -0.5933303236961365, -0.6196666359901428, 0.39052432775497437, -0.5426065921783447, 0.11236739158630371, -0.1869821399450302, -0.9239438772201538, 0.023065932095050812, -0.7763683795928955, 0.41759857535362244, 1.087866187095642, 1.3301681280136108, -1.1005171537399292, -0.22572389245033264, -1.7866020202636719, -0.18678730726242065, -0.6625168919563293, 0.4606875479221344, -2.2255992889404297, -0.1612318456172943, -2.0519821643829346, -2.220656156539917, -1.3371069431304932, -0.8626123666763306, 1.154842495918274, 0.2028835415840149, -0.9262340664863586, 0.9175915718078613, -0.39427080750465393, -1.8187282085418701, 1.0150316953659058, -2.2481346130371094 ]
https://github.com/huggingface/datasets/issues/3555
DuplicatedKeysError when loading tweet_qa dataset
Hi, we've just merged the PR with the fix. The fixed version of the dataset can be downloaded as follows: ```python import datasets dset = datasets.load_dataset("tweet_qa", revision="master") ```
When loading the tweet_qa dataset with `load_dataset('tweet_qa')`, the following error occurs: `DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 2a167f9e016ba338e1813fed275a6a1e Keys should be unique and deterministic in nature ` Might be related to issues #2433 and #2333 - `datasets` version: 1.17.0 - Python version: 3.8.5
1,012
28
DuplicatedKeysError when loading tweet_qa dataset When loading the tweet_qa dataset with `load_dataset('tweet_qa')`, the following error occurs: `DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 2a167f9e016ba338e1813fed275a6a1e Keys should be unique and deterministic in nature ` Might be related to issues #2433 and #2333 - `datasets` version: 1.17.0 - Python version: 3.8.5 Hi, we've just merged the PR with the fix. The fixed version of the dataset can be downloaded as follows: ```python import datasets dset = datasets.load_dataset("tweet_qa", revision="master") ```
[ -1.1021358966827393, -0.8407562971115112, -0.8863089084625244, 1.4329984188079834, -0.20670661330223083, -1.2879443168640137, 0.0943400114774704, -1.1496469974517822, 1.7003521919250488, -0.9019245505332947, 0.25040924549102783, -1.6698464155197144, -0.03613903746008873, -0.6022487282752991, -0.7372392416000366, -0.9394746422767639, -0.37411898374557495, -0.6967693567276001, 1.0021312236785889, 2.452882766723633, 1.1282801628112793, -1.273685336112976, 2.7305026054382324, 0.6601495742797852, -0.1386411041021347, -0.9934276938438416, 0.6060292720794678, 0.022807393223047256, -1.245509147644043, -0.45289304852485657, -0.8470068573951721, -0.07102732360363007, -0.4716474711894989, -0.5783523917198181, -0.04833865910768509, 0.41114723682403564, -0.4370332658290863, -0.45520520210266113, -0.4833880364894867, -0.8466680645942688, 0.49664071202278137, -0.31066182255744934, 0.9400529265403748, -0.4375843107700348, 1.8134499788284302, -0.4814222455024719, 0.39119601249694824, 0.7093724608421326, 1.422926425933838, 0.18376027047634125, -0.11636649817228317, 0.34566062688827515, 0.3046497702598572, 0.09355168044567108, 0.47574225068092346, 1.0928840637207031, 0.5569990873336792, 0.5699130296707153, 0.6724548935890198, -2.2327017784118652, 1.2622785568237305, -1.0937855243682861, 0.2206973284482956, 1.316870093345642, -0.9278799891471863, 0.3259383738040924, -1.7942503690719604, -0.04176906868815422, 0.44167593121528625, -2.276639699935913, 0.34671953320503235, -1.3356447219848633, -0.5093048214912415, 1.0020509958267212, 0.3450099229812622, -1.2220449447631836, 0.21832233667373657, -0.30664342641830444, 1.0571229457855225, 0.5913355946540833, 1.1083109378814697, -1.7083302736282349, 0.08344969898462296, -0.26858749985694885, -0.005749726202338934, -1.3909931182861328, -1.391725778579712, 0.47016891837120056, 0.6753486394882202, 0.6129958033561707, -0.009683913551270962, 0.9881069660186768, -0.922095775604248, 0.7473354935646057, -0.9643732309341431, -1.648563027381897, -1.2835031747817993, -2.1057040691375732, -2.2155582904815674, 0.7727270126342773, -0.5358101725578308, -0.5299338698387146, 2.063960313796997, -1.0484964847564697, -1.803733229637146, 1.2520594596862793, 0.2988821864128113, 0.005731229670345783, 2.3692755699157715, 0.27600985765457153, -0.6118637323379517, 0.4330640435218811, -0.7268369197845459, 0.7891233563423157, -0.4189765155315399, 1.3779531717300415, 0.49256429076194763, -1.0874747037887573, 1.682149887084961, -0.4608110189437866, 0.6915900707244873, -0.5773940682411194, -0.6451059579849243, -0.8789268136024475, 0.39746400713920593, 1.9709010124206543, -0.2760322391986847, 1.6024303436279297, -0.35716766119003296, -1.577225685119629, -1.5510694980621338, 1.0075119733810425, 0.5066354870796204, -0.7678209543228149, 0.12103407829999924, -0.2896295487880707, 0.05296254903078079, -0.07466179877519608, 1.181384563446045, 1.2328377962112427, 0.7343953251838684, -0.29586178064346313, -0.8780863285064697, 0.25607141852378845, -0.006263671442866325, -0.6886330842971802, -1.7858492136001587, -0.26171693205833435, 0.10791363567113876, 0.5741630792617798, -1.1994717121124268, 1.620601773262024, 0.8687325119972229, 1.9206299781799316, 1.0407028198242188, -0.3229103088378906, 1.4900940656661987, 0.0483776293694973, 1.88776433467865, -0.532799243927002, 0.6582091450691223, -0.2519982159137726, -1.080515742301941, 0.9226486682891846, -0.27346354722976685, -2.051358461380005, -0.8442472815513611, -0.897184431552887, -0.17459774017333984, -0.7431654930114746, 1.0250544548034668, -0.4146822988986969, -1.439329743385315, 0.20041126012802124, -0.7122093439102173, 0.0745714008808136, -1.3385800123214722, 0.303973525762558, 0.8452639579772949, -0.6055353879928589, -0.03363397344946861, -0.22018775343894958, -1.3084710836410522, -0.30296021699905396, 0.4016296863555908, 1.8747403621673584, -0.7961570024490356, 0.8354666829109192, 1.015705943107605, -0.8237254023551941, -0.09610207378864288, 0.2579863369464874, -0.325012743473053, 0.7985208630561829, -0.9485734701156616, -0.4497371315956116, 1.2710490226745605, -0.14249561727046967, -0.6261934638023376, 1.4723916053771973, 0.6709342002868652, -1.0083730220794678, -0.15021027624607086, -0.21401481330394745, -0.868708610534668, -0.03557558357715607, -1.6886565685272217, -0.0700676217675209, 0.3771149218082428, -1.5371288061141968, -0.5011410117149353, -0.15739941596984863, 1.3190335035324097, -0.24715343117713928, 1.3684167861938477, -0.36697259545326233, -0.2402254194021225, -0.3708602488040924, -0.46659234166145325, 0.1960146427154541, -0.21637199819087982, -0.5733901858329773, 0.19463112950325012, -0.7765100002288818, 0.2820919156074524, 1.3691956996917725, 0.2996350824832916, 0.009616599418222904, 0.5478529334068298, 1.0960242748260498, 0.44637754559516907, -0.09569303691387177, -0.8287464380264282, -1.555297613143921, 1.9190313816070557, -1.4854209423065186, 1.9005718231201172, 0.5371427536010742, -0.05048190802335739, -1.8253892660140991, -1.969154953956604, 1.3286545276641846, 1.1888437271118164, 2.1828010082244873, 0.6022082567214966, 0.38314110040664673, -0.8295782208442688, -0.7475688457489014, 0.4403446912765503, -1.096165418624878, -0.6187693476676941, 0.08466903120279312, 2.3291101455688477, 1.7321659326553345, -0.5557907223701477, -0.2676636278629303, -0.9977135062217712, 1.3366140127182007, -0.12173457443714142, 0.23321129381656647, 2.003106117248535, -0.3173171877861023, -1.0671719312667847, 1.2966694831848145, -2.343453884124756, 0.15195181965827942, 1.9728786945343018, 0.3613813519477844, 0.03971617668867111, -1.4923954010009766, -0.6879486441612244, -0.15394125878810883, -0.38613566756248474, -1.2659779787063599, 0.6568226218223572, -0.2694571614265442, -0.7861596345901489, -1.4133321046829224, 0.2582484483718872, -1.0242441892623901, -1.701766014099121, 0.29701635241508484, 1.8721524477005005, 1.934087872505188, -0.7571741938591003, 1.5889264345169067, -0.2912690043449402, 0.3223496079444885, 1.2901859283447266, 1.1609050035476685, 3.0481345653533936, 1.8401265144348145, -1.2372550964355469, 0.7119868397712708, 0.050190240144729614, -0.5643433928489685, 1.3085384368896484, -1.160029649734497, 1.321265697479248, -0.20150035619735718, -1.1375638246536255, -1.2740225791931152, 0.8281848430633545, 0.48311492800712585, 0.1379542201757431, -0.4182329475879669, 1.2688286304473877, 0.05476319044828415, 1.2887556552886963, 0.6435750722885132, -0.4339298605918884, 0.6788277626037598, -0.4909256398677826, -0.5473330616950989, 1.515389084815979, 0.21946050226688385, -1.3354727029800415, -2.3035550117492676, -0.26788437366485596, -0.6763398051261902, 0.043888792395591736, -0.5064619183540344, -0.9568101763725281, 1.6721347570419312, 0.4115515649318695, -1.3262993097305298, -0.2986796498298645, -0.34739935398101807, -0.5385268330574036, 2.672832727432251, -1.463768482208252, -0.14434102177619934, -0.9703674912452698, -0.6701350808143616, 1.6985890865325928, -1.2086973190307617, -0.20612308382987976, -0.9906010031700134, -0.5385249853134155, -1.3961385488510132, -0.5330684781074524, -0.03955540806055069, -0.9279341697692871, 0.8427530527114868, 0.16939035058021545, -1.167042851448059, -0.3768293559551239, -0.8774687647819519, 0.8882824778556824, -0.17822065949440002, 0.3429185748100281, 1.9052042961120605, 0.4909903109073639, -0.30805209279060364, 0.7595663070678711, 1.1120774745941162, 0.6220183372497559, -0.6693755984306335, 0.29957839846611023, -0.716389536857605, 0.2102629542350769, -1.4087026119232178, 0.2424304038286209, -2.9449453353881836, 0.5765658020973206, -0.0017483909614384174, -0.04594918712973595, -0.08799749612808228, -1.4078643321990967, 1.0916016101837158, 2.597968578338623, -1.2354577779769897, 0.47961029410362244, 0.3042888939380646, 1.205075740814209, -1.5784770250320435, 0.37821123003959656, -0.42647507786750793, 2.160442590713501, 0.15719802677631378, 1.2479310035705566, -0.3976116478443146, -2.196350336074829, 0.687464714050293, -1.315306305885315, -1.3162425756454468, 0.8297794461250305, -0.8537929654121399, 0.14710325002670288, -1.4912573099136353, -0.23274783790111542, -0.871245265007019, -1.2939913272857666, 0.7927747964859009, 0.22633780539035797, 0.3896060883998871, -0.4089375138282776, 0.40176665782928467, -2.0771148204803467, -1.3176183700561523, -0.1572803109884262, -0.8956093788146973, 0.4556877613067627, -0.2873135209083557, 0.6067169904708862, -0.16372190415859222, 0.04749060422182083, 0.381310373544693, 1.3788820505142212, 3.467802047729492, 0.19279025495052338, 0.30986061692237854, -0.20956315100193024, -0.9909690618515015, 1.461794137954712, 0.9811449646949768, -0.027470506727695465, -0.5466933250427246, -0.9802111983299255, 1.1537106037139893, 1.9053599834442139, 1.033503770828247, -0.03549516201019287, -0.7647210359573364, -0.6872069835662842, -0.006872730329632759, 0.10386788100004196, 0.47305965423583984, 0.8985666036605835, 0.13687989115715027, 0.061879634857177734, 1.3264604806900024, 1.1292049884796143, -0.35353147983551025, 0.34598663449287415, -0.871261477470398, -0.46017301082611084, 0.5558395385742188, 0.28013765811920166, -0.0752013549208641, 0.3298570513725281, -0.9516014456748962, -0.20407818257808685, -0.348732054233551, -0.875015139579773, -0.6270310878753662, -0.45814797282218933, -0.4580150842666626, 1.5534417629241943, 0.022841177880764008, -0.5856490135192871, -0.1656324714422226, -0.7679953575134277, -0.11629738658666611, -0.9819024801254272, 0.21564321219921112, -0.14215770363807678, -0.2435208410024643, -0.15616795420646667, 1.705269455909729, -1.030045747756958, -2.031144618988037, 0.24427668750286102, 0.2723958194255829, -0.2812192142009735, 0.22552034258842468, 1.5795899629592896, 0.4741422235965729, 1.401017189025879, 1.2834216356277466, 0.9781989455223083, -0.6845053434371948, -1.3453584909439087, 0.6517723202705383, 0.9920971989631653, -1.3956786394119263, 0.737077534198761, 0.15667712688446045, -0.4809933304786682, 0.6443379521369934, 1.2350025177001953, 0.5627759099006653, -1.896174669265747, 0.7093633413314819, -0.8588370680809021, 0.7206869721412659, 0.7597668170928955, 0.7139748334884644, 0.24965034425258636, 0.8626739382743835, -1.154921531677246, -1.1855835914611816, -0.7973206043243408, -0.6384149789810181, 1.868078589439392, -0.32316911220550537, 0.6324113011360168, -0.10520636290311813, -1.3592109680175781, -0.11115313321352005, 0.7729130983352661, 0.33517956733703613, -0.4885978400707245, 0.8084274530410767, -0.6204818487167358, -1.1155164241790771, -1.4130569696426392, -0.3768249452114105, -1.0532852411270142, -1.0290629863739014, 0.991108238697052, 0.8128846883773804, 0.23211811482906342, 1.8334561586380005, 0.6331875920295715, 0.24418233335018158, -2.639871835708618, 0.8598030209541321, 0.3809587359428406, 0.014160131104290485, 0.8397715091705322, 0.38566628098487854, 1.0615288019180298, -0.10364791750907898, 0.5083656907081604, -2.3117730617523193, 2.33676815032959, -0.32772547006607056, 0.6668755412101746, -0.04127360135316849, -0.23248140513896942, 1.0371606349945068, 0.49331948161125183, 0.5796792507171631, -1.123497724533081, 0.7587611675262451, -0.5899645686149597, 1.2403212785720825, 1.0623648166656494, -0.8615374565124512, -0.015023041516542435, 1.4492793083190918, 0.5577595233917236, -0.4933413565158844, -0.8202468156814575, -0.9458745718002319, 0.9335366487503052, 1.6889489889144897, -0.11008653789758682, -0.05188431218266487, 0.8071917295455933, 0.6353604793548584, -1.3364875316619873, 0.03794340789318085, -0.7779412865638733, -0.7041863799095154, 1.7304561138153076, 2.0282328128814697, -0.1421329379081726, -0.19179360568523407, -0.802873969078064, -1.156875729560852, 0.8281073570251465, 0.0133249806240201, 0.13215123116970062, 0.6095256209373474, -0.6293084621429443, 1.178063154220581, 0.8666176199913025, 0.8552700877189636, 0.17181247472763062, 0.3263247013092041, 0.42150118947029114, -0.22644288837909698, -1.1528643369674683, -0.2923433780670166, -1.0778638124465942, -2.598540782928467, 0.49748584628105164, -0.3427668511867523, -1.3170857429504395, -0.05440149083733559, -1.1216776371002197, 0.9937037825584412, -0.5938305854797363, -1.006814956665039, -1.5658702850341797, 0.25229936838150024, -0.06610532104969025, 0.8493075370788574, -1.6024830341339111, -0.16810522973537445, 1.275702714920044, 0.9623593688011169, -0.7772184014320374, 1.0390098094940186, 0.23506318032741547, 1.1768256425857544, 0.7671687602996826, -0.4499979615211487, 0.5091089010238647, 0.10275590419769287, -1.4119815826416016, 0.5167321562767029, 1.209433674812317, 0.17006519436836243, 1.5568188428878784, -0.5383577346801758, -0.03240691497921944, 0.39294254779815674, -0.5143606662750244, -0.4281032383441925, -0.7260814309120178, 0.7471580505371094, 0.060598865151405334, -0.8248563408851624, 0.0017427122220396996, -0.11174461245536804, -0.24820613861083984, 0.2166907787322998, -1.6027727127075195, -0.23328113555908203, -0.33683058619499207, -0.7071794271469116, -1.2425658702850342, -0.12911459803581238, 1.4094743728637695, -0.6946902871131897, -0.14433135092258453, 0.5115762948989868, 0.3418695628643036, 0.48944100737571716, 0.5888632535934448, -0.7091696262359619, -0.197845458984375, -0.38245272636413574, -0.36323004961013794, 0.31280264258384705, 1.4346668720245361, -0.16635645925998688, -0.992924153804779, 0.763770341873169, -0.3484964072704315, -0.05882875248789787, 1.9439114332199097, 0.037943918257951736, -0.8714718818664551, 0.37810084223747253, -0.6667317152023315, 1.9718384742736816, 1.6564252376556396, 1.343566656112671, -0.02906862273812294, -0.8257107138633728, 0.60689777135849, -0.23546907305717468, -0.30630162358283997, 0.9551917314529419, 0.48831021785736084, -0.182830810546875, -1.394653558731079, 0.734183132648468, 1.2368783950805664, -0.9055463075637817, -0.7839595079421997, -0.004496671725064516, -0.7871260046958923, 1.0185401439666748, 0.6575254201889038, 0.4789799451828003, 0.35958579182624817, 1.5504803657531738, 0.7477441430091858, -0.4349651634693146, 0.5422846078872681, 0.5671458840370178, -0.14726880192756653, -2.0974299907684326, -1.1661051511764526, 0.4642772972583771, -0.449968159198761, -1.674983024597168, 1.4825092554092407, -1.194649338722229, -0.9868408441543579, 0.520785927772522, 0.15874822437763214, 1.443405032157898, 0.3163798451423645, 1.5259764194488525, 2.0027241706848145, 0.8608670830726624, 0.33945754170417786, 1.3556431531906128, -0.18987518548965454, -0.35866206884384155, 1.843477725982666, -0.5320770740509033, 0.5148842334747314, 1.0917242765426636, -0.34229111671447754, -0.9825071096420288, -0.7853218913078308, -1.2513132095336914, -0.7134528756141663, 1.2402899265289307, 0.06340578943490982, -1.2172671556472778, 0.2517729103565216, 1.5851001739501953, 0.15285998582839966, -0.3032114505767822, 0.681581974029541, 0.4547509253025055, -0.8138269782066345, -0.10316594690084457, -0.9496628046035767, 0.43560072779655457, -0.2729654014110565, -0.20771850645542145, 0.29350659251213074, 0.4659108817577362, 1.2721011638641357, -0.1095896065235138, 0.19243620336055756, 1.0587847232818604, -1.3278295993804932, 1.456603765487671, -0.7070814967155457, 0.22066451609134674, -2.372389316558838, 1.3824620246887207, -0.7342444062232971, 1.9343560934066772, -2.672744035720825, 0.3906712234020233, -0.5241919159889221, -0.3497975170612335, 0.31298577785491943, -0.4188648760318756, 0.12088193744421005, -0.2050342708826065, -1.0863447189331055, -0.10258311033248901, -0.7708383798599243, 0.6498095393180847, 1.1628998517990112, 1.3432962894439697, -1.1273438930511475, -0.32043159008026123, -1.8047914505004883, -0.23519137501716614, -0.6490718126296997, 0.2472703605890274, -2.031264543533325, -0.27656418085098267, -1.974666953086853, -2.425694704055786, -1.1921566724777222, -0.7466223835945129, 1.142024040222168, 0.11764226108789444, -0.920480489730835, 1.1747385263442993, -0.35594743490219116, -1.908743143081665, 1.1098237037658691, -2.0913686752319336 ]
https://github.com/huggingface/datasets/issues/3554
ImportError: cannot import name 'is_valid_waiter_error'
Hi! I can't reproduce this error in Colab, but I'm assuming you are using Amazon SageMaker Studio Notebooks (you mention the `conda_pytorch_p36` kernel), so maybe @philschmid knows more about what might be causing this issue?
Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb
1,013
35
ImportError: cannot import name 'is_valid_waiter_error' Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb Hi! I can't reproduce this error in Colab, but I'm assuming you are using Amazon SageMaker Studio Notebooks (you mention the `conda_pytorch_p36` kernel), so maybe @philschmid knows more about what might be causing this issue?
[ -1.2784470319747925, -0.9149156212806702, -0.662919819355011, 1.430086374282837, -0.10949552059173584, -1.279339075088501, 0.0705757886171341, -0.994429349899292, 1.5918809175491333, -0.657037079334259, 0.22759510576725006, -1.652822494506836, -0.0914037898182869, -0.4629500210285187, -0.7218464016914368, -0.8535924553871155, -0.38742196559906006, -0.8732163310050964, 1.0612434148788452, 2.5757269859313965, 1.3380500078201294, -1.3287373781204224, 2.881598711013794, 0.720548689365387, -0.2538521885871887, -1.0095010995864868, 0.5086699724197388, -0.029416074976325035, -1.3360395431518555, -0.4588642716407776, -0.9495481252670288, -0.00532221794128418, -0.5444895029067993, -0.5349047780036926, 0.11136754602193832, 0.4178946614265442, -0.22427859902381897, -0.35463947057724, -0.4833427369594574, -0.7205155491828918, 0.4598030745983124, -0.23507636785507202, 0.9270864129066467, -0.30178990960121155, 1.6190776824951172, -0.632814884185791, 0.43835172057151794, 0.6687203645706177, 1.3717342615127563, 0.13787952065467834, -0.0879419818520546, 0.3322756886482239, 0.3929208517074585, -0.0333760529756546, 0.6549541354179382, 1.3180572986602783, 0.7170965671539307, 0.4391278922557831, 0.6759157776832581, -2.2278149127960205, 1.2227832078933716, -0.852867066860199, 0.27170422673225403, 1.261488914489746, -0.910584032535553, 0.33499646186828613, -1.7574738264083862, -0.09495598077774048, 0.6012119650840759, -2.322770118713379, 0.13952937722206116, -1.3100775480270386, -0.5535138845443726, 0.9586540460586548, 0.3547835350036621, -1.3251830339431763, 0.13469865918159485, -0.5475102663040161, 1.1253831386566162, 0.5103307366371155, 1.2184412479400635, -1.6109682321548462, -0.038069598376750946, -0.16483907401561737, 0.14671935141086578, -1.2001678943634033, -1.6239262819290161, 0.5323086380958557, 0.5712607502937317, 0.7269514799118042, -0.052821144461631775, 0.9449020624160767, -1.0517175197601318, 0.8786294460296631, -0.9920843243598938, -1.6408425569534302, -1.4648526906967163, -2.367767333984375, -2.265212059020996, 0.7762886881828308, -0.5317758917808533, -0.5302232503890991, 1.9676462411880493, -1.0515003204345703, -1.8966389894485474, 1.0152634382247925, 0.2902142405509949, 0.09827088564634323, 2.3675684928894043, 0.22795990109443665, -0.8275877833366394, 0.5443430542945862, -0.7043401002883911, 0.815903902053833, -0.26808443665504456, 1.3227766752243042, 0.4900869131088257, -0.8601274490356445, 1.6094597578048706, -0.5080194473266602, 0.6659331321716309, -0.7304469347000122, -0.42586666345596313, -0.7524420022964478, 0.27346575260162354, 1.9685355424880981, -0.41598424315452576, 1.5802899599075317, -0.32952606678009033, -1.5531322956085205, -1.4645178318023682, 0.7024269104003906, 0.6370218992233276, -0.9071871638298035, 0.08767274767160416, -0.520321249961853, 0.0626005306839943, 0.10276076197624207, 1.084405779838562, 1.2840665578842163, 0.7407389283180237, -0.30218055844306946, -0.9577093720436096, 0.2321190983057022, -0.08522025495767593, -0.6716063618659973, -1.7738869190216064, -0.3003668189048767, 0.19755737483501434, 0.6674630641937256, -1.3336296081542969, 1.7501535415649414, 0.826653003692627, 2.110039710998535, 0.9603455066680908, -0.42315927147865295, 1.4923738241195679, 0.08627012372016907, 1.9190489053726196, -0.4863610863685608, 0.6346583366394043, -0.34699884057044983, -1.121555209159851, 0.8231520056724548, -0.44714394211769104, -2.1038687229156494, -0.6961439847946167, -0.7329131364822388, -0.14102648198604584, -0.8101201057434082, 0.927404522895813, -0.2698591649532318, -1.4658496379852295, 0.09202058613300323, -0.8696139454841614, 0.15285995602607727, -1.3140429258346558, 0.20486587285995483, 0.8020880222320557, -0.683231770992279, 0.03269125521183014, -0.36319535970687866, -1.312418818473816, -0.45438307523727417, 0.3352779746055603, 1.9090609550476074, -0.6384478211402893, 0.9859573245048523, 0.9583503603935242, -0.6578356027603149, 0.1135312169790268, 0.3392651379108429, -0.3364546000957489, 0.9155771136283875, -1.1673110723495483, -0.3193102777004242, 1.1449239253997803, -0.1835537850856781, -0.7058315873146057, 1.4626410007476807, 0.8554863333702087, -1.0646394491195679, -0.3255225419998169, -0.13804911077022552, -0.8766356706619263, -0.009424470365047455, -1.609643816947937, -0.20334099233150482, 0.25792548060417175, -1.4838675260543823, -0.4239487648010254, -0.19614064693450928, 1.3120784759521484, -0.1976877897977829, 1.5108691453933716, -0.3563741147518158, -0.06615645438432693, -0.34446874260902405, -0.46630269289016724, 0.1847703754901886, -0.23531390726566315, -0.591797411441803, 0.2723234295845032, -0.7679523229598999, 0.28065016865730286, 1.5717506408691406, 0.3868487477302551, 0.070660799741745, 0.4387683868408203, 1.1376886367797852, 0.42270269989967346, -0.07364615052938461, -0.868740439414978, -1.6316845417022705, 2.0864768028259277, -1.4553542137145996, 1.8986035585403442, 0.7842892408370972, -0.09834626317024231, -1.6986135244369507, -1.8955843448638916, 1.2443509101867676, 1.1357158422470093, 2.3505356311798096, 0.5036104917526245, 0.4501626193523407, -0.7040122151374817, -0.8033960461616516, 0.28987085819244385, -0.933702290058136, -0.763288140296936, 0.07801603525876999, 2.4261860847473145, 1.7809789180755615, -0.4850916564464569, -0.2845875918865204, -0.8985950350761414, 1.3211212158203125, -0.20008082687854767, 0.2756514847278595, 1.930402159690857, -0.19373831152915955, -0.9823393821716309, 1.3292700052261353, -2.318901300430298, 0.3470550775527954, 2.0711898803710938, 0.2584683895111084, 0.22488029301166534, -1.4907751083374023, -0.6118596792221069, -0.2575613856315613, -0.4780120849609375, -1.2474520206451416, 0.564977765083313, -0.3186374306678772, -0.955355703830719, -1.4418907165527344, -0.004222352989017963, -1.1178447008132935, -1.7687366008758545, 0.2678850591182709, 1.8829141855239868, 2.089994430541992, -0.8046439290046692, 1.388534426689148, -0.2507362961769104, 0.021684817969799042, 1.251706600189209, 1.2865091562271118, 3.099822998046875, 1.986798644065857, -1.2999159097671509, 0.7828344106674194, -0.26378896832466125, -0.4833943545818329, 1.2055203914642334, -1.1250423192977905, 1.0744322538375854, -0.21043309569358826, -1.3030619621276855, -1.156486988067627, 1.0341401100158691, 0.4585926830768585, -0.05317073315382004, -0.49446845054626465, 1.2014456987380981, 0.12486707419157028, 1.2816500663757324, 0.5844078660011292, -0.31866878271102905, 0.6548569202423096, -0.33986610174179077, -0.47032299637794495, 1.5884720087051392, 0.13300767540931702, -1.4980494976043701, -2.3130898475646973, -0.15397745370864868, -0.9460536241531372, -0.03869705647230148, -0.6998071670532227, -1.048575758934021, 1.614495873451233, 0.5428545475006104, -1.18792724609375, -0.31610989570617676, -0.2440754473209381, -0.4035194516181946, 2.620657205581665, -1.3237823247909546, -0.22103548049926758, -1.024714469909668, -0.42162901163101196, 1.6025410890579224, -1.2173813581466675, -0.22343464195728302, -0.9378023743629456, -0.6846061944961548, -1.2239125967025757, -0.5169075131416321, -0.12221027165651321, -0.864230751991272, 0.7176412343978882, 0.17171433568000793, -1.1266224384307861, -0.27002447843551636, -0.9253735542297363, 1.0184584856033325, -0.05477838218212128, 0.2100997269153595, 1.9422051906585693, 0.23967918753623962, -0.5140307545661926, 0.7335925102233887, 1.2345502376556396, 0.6123276948928833, -0.6419475674629211, 0.07002730667591095, -0.7047259211540222, 0.45728471875190735, -1.371354341506958, 0.11747833341360092, -2.9463531970977783, 0.7319318652153015, -0.11212432384490967, -0.18235231935977936, -0.1637941598892212, -1.2864606380462646, 1.1652129888534546, 2.5965735912323, -1.1171109676361084, 0.5176673531532288, 0.3958528935909271, 1.1722323894500732, -1.595411777496338, 0.22329331934452057, -0.5305913686752319, 2.181969404220581, 0.2679927349090576, 1.2576197385787964, -0.46535199880599976, -2.2395243644714355, 0.7021114230155945, -1.1496442556381226, -0.9467982053756714, 0.6809961199760437, -0.8177698254585266, 0.21733637154102325, -1.4143179655075073, -0.1271485686302185, -0.9480872750282288, -1.193131923675537, 0.6733817458152771, 0.12159781903028488, 0.3783884346485138, -0.6571991443634033, 0.3166242241859436, -2.1543829441070557, -1.3746439218521118, -0.17807641625404358, -0.999701201915741, 0.5409969091415405, -0.4038294553756714, 0.5465402007102966, -0.014388378709554672, 0.03308345377445221, 0.2255929708480835, 1.371692180633545, 3.3391501903533936, 0.1839001476764679, 0.20447756350040436, -0.13401047885417938, -1.0240780115127563, 1.3390616178512573, 0.9504416584968567, -0.18488618731498718, -0.6399926543235779, -0.9305621981620789, 1.405402421951294, 1.9372905492782593, 1.1188976764678955, 0.1855969876050949, -0.9115052223205566, -0.8802022933959961, -0.025165565311908722, 0.1581878811120987, 0.4840559959411621, 1.0742624998092651, 0.024333378300070763, 0.1409037858247757, 1.4614230394363403, 1.1475023031234741, -0.32223987579345703, 0.4681234657764435, -1.0096153020858765, -0.3536694049835205, 0.40853142738342285, 0.3035595118999481, 0.07290161401033401, 0.4041406512260437, -1.1210310459136963, -0.22465847432613373, -0.25403377413749695, -0.8202491998672485, -0.7841167449951172, -0.2609238028526306, -0.3392341434955597, 1.686964511871338, 0.03210210055112839, -0.5321123003959656, -0.009587864391505718, -0.7298848628997803, -0.04168735444545746, -1.0554231405258179, 0.27268916368484497, -0.16790038347244263, -0.04947791248559952, -0.15068012475967407, 1.6036431789398193, -0.8625379800796509, -2.101651430130005, 0.21897479891777039, 0.313228577375412, -0.4664832055568695, 0.1919822096824646, 1.685274362564087, 0.6418256759643555, 1.2955471277236938, 1.384594440460205, 1.009556770324707, -0.5261477828025818, -1.2270114421844482, 0.6757392883300781, 0.8520626425743103, -1.377907395362854, 0.8687183260917664, -0.15546557307243347, -0.5559461712837219, 0.6636728048324585, 1.3811120986938477, 0.45618703961372375, -2.0959534645080566, 0.9331527948379517, -0.7792382836341858, 0.778302013874054, 0.7271106839179993, 0.7925999760627747, 0.22930902242660522, 0.8740727305412292, -1.286400318145752, -1.172315239906311, -0.6917327046394348, -0.643556535243988, 1.816760778427124, -0.28787848353385925, 0.5717087388038635, -0.20797675848007202, -1.215306043624878, -0.12497146427631378, 0.74617600440979, 0.2710462510585785, -0.429958701133728, 0.9582239389419556, -0.5716253519058228, -1.0752649307250977, -1.1853865385055542, -0.47109389305114746, -0.8983084559440613, -0.8567565679550171, 0.9516702890396118, 0.7214021682739258, 0.5890111327171326, 1.9813193082809448, 0.5461400747299194, 0.29961180686950684, -2.6238884925842285, 0.839137613773346, 0.27231791615486145, -0.010703329928219318, 0.884760320186615, 0.19446618854999542, 1.0990499258041382, -0.049834243953228, 0.6536445021629333, -2.2692418098449707, 2.2185256481170654, -0.15312309563159943, 0.6649599671363831, 0.07038267701864243, -0.10778909921646118, 1.1015981435775757, 0.6246587038040161, 0.6161831021308899, -1.1924333572387695, 0.8061680793762207, -0.6375589966773987, 1.220662236213684, 0.8233627676963806, -0.9387139081954956, 0.09062281996011734, 1.300971508026123, 0.3821474313735962, -0.452136367559433, -0.996090829372406, -0.9444010853767395, 1.007208228111267, 1.724441409111023, 0.0557062029838562, 0.08196098357439041, 0.9004532098770142, 0.7070081830024719, -1.2260658740997314, -0.04311393201351166, -0.6892392635345459, -0.6037054061889648, 1.7122524976730347, 2.043165922164917, -0.12790566682815552, -0.2224721759557724, -0.5985357761383057, -1.3598976135253906, 0.7459750175476074, -0.045153312385082245, 0.06793094426393509, 0.7308784127235413, -0.6533025503158569, 1.168529748916626, 0.6747134327888489, 0.9986312985420227, 0.009121693670749664, 0.29913130402565, 0.20369233191013336, -0.34925103187561035, -1.1915099620819092, -0.3065914511680603, -1.0143791437149048, -2.5116496086120605, 0.2618197202682495, -0.2026596963405609, -1.5066837072372437, 0.10791999101638794, -1.0271459817886353, 0.7639592289924622, -0.5485464334487915, -1.1890368461608887, -1.3731811046600342, 0.34083282947540283, -0.17058593034744263, 0.8796648383140564, -1.6279298067092896, -0.11088918149471283, 1.2191885709762573, 0.9145634770393372, -0.4596821665763855, 0.9879693388938904, 0.3446803689002991, 0.9232085347175598, 0.8579986691474915, -0.35034632682800293, 0.45556026697158813, 0.08418713510036469, -1.2773219347000122, 0.4050208628177643, 1.299336314201355, 0.18573293089866638, 1.3407822847366333, -0.5377385020256042, 0.0744423121213913, 0.4583424925804138, -0.6139270663261414, -0.5493282675743103, -0.4935862123966217, 0.8238449096679688, 0.00609218142926693, -0.9977308511734009, -0.1710404008626938, -0.14248026907444, -0.24174842238426208, 0.1800209879875183, -1.473692536354065, -0.2265811711549759, -0.40041041374206543, -0.5251151323318481, -1.3384547233581543, 0.06274014711380005, 1.235472559928894, -0.96624356508255, -0.21140353381633759, 0.38114017248153687, 0.3209740221500397, 0.5997903943061829, 0.571418821811676, -0.6923792958259583, -0.373466432094574, -0.25941726565361023, -0.2122136801481247, 0.24797308444976807, 1.0863895416259766, 0.005287399515509605, -0.9902023077011108, 0.6192486882209778, -0.4085712432861328, 0.0813022181391716, 1.952023983001709, -0.036790795624256134, -0.6782705187797546, 0.4013986885547638, -0.6820791363716125, 1.7757424116134644, 1.6681175231933594, 1.3691132068634033, -0.10557396709918976, -0.8532000780105591, 0.4769928753376007, -0.2654230296611786, -0.3946887254714966, 0.82439124584198, 0.36316242814064026, -0.2536648213863373, -1.3839471340179443, 0.5249863266944885, 1.228608250617981, -0.8265365362167358, -0.7243031859397888, 0.12066052109003067, -0.8884996175765991, 1.2519805431365967, 0.5787176489830017, 0.24319717288017273, 0.214546337723732, 1.5913450717926025, 0.7252805829048157, -0.5151358246803284, 0.46722760796546936, 0.5326083898544312, -0.17981809377670288, -2.1489288806915283, -0.978133499622345, 0.24216946959495544, -0.3160263001918793, -1.5591120719909668, 1.2672533988952637, -1.2833276987075806, -0.94868004322052, 0.48519811034202576, 0.17555542290210724, 1.2698638439178467, 0.2638115882873535, 1.7265273332595825, 2.15079665184021, 0.9485580921173096, 0.38332030177116394, 1.195673942565918, -0.09102193266153336, -0.36937230825424194, 1.8291995525360107, -0.4248717129230499, 0.6233178377151489, 0.927991509437561, -0.46878528594970703, -1.2248960733413696, -0.8165409564971924, -1.1670554876327515, -0.6723934412002563, 1.1567506790161133, 0.10588229447603226, -1.1104665994644165, 0.19244393706321716, 1.5323327779769897, 0.11587434262037277, -0.197573721408844, 0.5640118718147278, 0.4170914888381958, -0.6404924392700195, -0.0719161331653595, -0.9567411541938782, 0.4690987467765808, -0.11231301724910736, -0.3389770984649658, 0.20220397412776947, 0.5523975491523743, 1.2206660509109497, 0.016415415331721306, 0.04668288677930832, 1.2242505550384521, -1.4746875762939453, 1.5977250337600708, -0.6932249069213867, 0.3527246117591858, -2.429929733276367, 1.4578028917312622, -0.8648494482040405, 1.8909733295440674, -2.598944902420044, 0.4126950204372406, -0.49198615550994873, -0.5581339001655579, 0.25956466794013977, -0.3777577877044678, 0.05921195447444916, -0.14427034556865692, -0.9914488196372986, 0.004914944060146809, -0.8225314617156982, 0.5575978755950928, 1.12692391872406, 1.3883253335952759, -1.191650629043579, -0.24598608911037445, -1.7519279718399048, -0.07548651844263077, -0.8118829131126404, 0.39840617775917053, -1.9656769037246704, -0.1568273901939392, -2.0252227783203125, -2.3093149662017822, -1.3469456434249878, -0.8330036401748657, 1.0307577848434448, 0.16402430832386017, -0.8748146891593933, 1.1306135654449463, -0.39847898483276367, -1.7171739339828491, 1.1098036766052246, -2.191148042678833 ]
https://github.com/huggingface/datasets/issues/3554
ImportError: cannot import name 'is_valid_waiter_error'
Hey @mariosasko. Yes, I am using **Amazon SageMaker Studio Jupyter Labs**. However, I no longer need this notebook; but it would be nice to have this problem solved for others. So don't stress too much if you two can't reproduce error.
Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb
1,013
41
ImportError: cannot import name 'is_valid_waiter_error' Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb Hey @mariosasko. Yes, I am using **Amazon SageMaker Studio Jupyter Labs**. However, I no longer need this notebook; but it would be nice to have this problem solved for others. So don't stress too much if you two can't reproduce error.
[ -1.2784470319747925, -0.9149156212806702, -0.662919819355011, 1.430086374282837, -0.10949552059173584, -1.279339075088501, 0.0705757886171341, -0.994429349899292, 1.5918809175491333, -0.657037079334259, 0.22759510576725006, -1.652822494506836, -0.0914037898182869, -0.4629500210285187, -0.7218464016914368, -0.8535924553871155, -0.38742196559906006, -0.8732163310050964, 1.0612434148788452, 2.5757269859313965, 1.3380500078201294, -1.3287373781204224, 2.881598711013794, 0.720548689365387, -0.2538521885871887, -1.0095010995864868, 0.5086699724197388, -0.029416074976325035, -1.3360395431518555, -0.4588642716407776, -0.9495481252670288, -0.00532221794128418, -0.5444895029067993, -0.5349047780036926, 0.11136754602193832, 0.4178946614265442, -0.22427859902381897, -0.35463947057724, -0.4833427369594574, -0.7205155491828918, 0.4598030745983124, -0.23507636785507202, 0.9270864129066467, -0.30178990960121155, 1.6190776824951172, -0.632814884185791, 0.43835172057151794, 0.6687203645706177, 1.3717342615127563, 0.13787952065467834, -0.0879419818520546, 0.3322756886482239, 0.3929208517074585, -0.0333760529756546, 0.6549541354179382, 1.3180572986602783, 0.7170965671539307, 0.4391278922557831, 0.6759157776832581, -2.2278149127960205, 1.2227832078933716, -0.852867066860199, 0.27170422673225403, 1.261488914489746, -0.910584032535553, 0.33499646186828613, -1.7574738264083862, -0.09495598077774048, 0.6012119650840759, -2.322770118713379, 0.13952937722206116, -1.3100775480270386, -0.5535138845443726, 0.9586540460586548, 0.3547835350036621, -1.3251830339431763, 0.13469865918159485, -0.5475102663040161, 1.1253831386566162, 0.5103307366371155, 1.2184412479400635, -1.6109682321548462, -0.038069598376750946, -0.16483907401561737, 0.14671935141086578, -1.2001678943634033, -1.6239262819290161, 0.5323086380958557, 0.5712607502937317, 0.7269514799118042, -0.052821144461631775, 0.9449020624160767, -1.0517175197601318, 0.8786294460296631, -0.9920843243598938, -1.6408425569534302, -1.4648526906967163, -2.367767333984375, -2.265212059020996, 0.7762886881828308, -0.5317758917808533, -0.5302232503890991, 1.9676462411880493, -1.0515003204345703, -1.8966389894485474, 1.0152634382247925, 0.2902142405509949, 0.09827088564634323, 2.3675684928894043, 0.22795990109443665, -0.8275877833366394, 0.5443430542945862, -0.7043401002883911, 0.815903902053833, -0.26808443665504456, 1.3227766752243042, 0.4900869131088257, -0.8601274490356445, 1.6094597578048706, -0.5080194473266602, 0.6659331321716309, -0.7304469347000122, -0.42586666345596313, -0.7524420022964478, 0.27346575260162354, 1.9685355424880981, -0.41598424315452576, 1.5802899599075317, -0.32952606678009033, -1.5531322956085205, -1.4645178318023682, 0.7024269104003906, 0.6370218992233276, -0.9071871638298035, 0.08767274767160416, -0.520321249961853, 0.0626005306839943, 0.10276076197624207, 1.084405779838562, 1.2840665578842163, 0.7407389283180237, -0.30218055844306946, -0.9577093720436096, 0.2321190983057022, -0.08522025495767593, -0.6716063618659973, -1.7738869190216064, -0.3003668189048767, 0.19755737483501434, 0.6674630641937256, -1.3336296081542969, 1.7501535415649414, 0.826653003692627, 2.110039710998535, 0.9603455066680908, -0.42315927147865295, 1.4923738241195679, 0.08627012372016907, 1.9190489053726196, -0.4863610863685608, 0.6346583366394043, -0.34699884057044983, -1.121555209159851, 0.8231520056724548, -0.44714394211769104, -2.1038687229156494, -0.6961439847946167, -0.7329131364822388, -0.14102648198604584, -0.8101201057434082, 0.927404522895813, -0.2698591649532318, -1.4658496379852295, 0.09202058613300323, -0.8696139454841614, 0.15285995602607727, -1.3140429258346558, 0.20486587285995483, 0.8020880222320557, -0.683231770992279, 0.03269125521183014, -0.36319535970687866, -1.312418818473816, -0.45438307523727417, 0.3352779746055603, 1.9090609550476074, -0.6384478211402893, 0.9859573245048523, 0.9583503603935242, -0.6578356027603149, 0.1135312169790268, 0.3392651379108429, -0.3364546000957489, 0.9155771136283875, -1.1673110723495483, -0.3193102777004242, 1.1449239253997803, -0.1835537850856781, -0.7058315873146057, 1.4626410007476807, 0.8554863333702087, -1.0646394491195679, -0.3255225419998169, -0.13804911077022552, -0.8766356706619263, -0.009424470365047455, -1.609643816947937, -0.20334099233150482, 0.25792548060417175, -1.4838675260543823, -0.4239487648010254, -0.19614064693450928, 1.3120784759521484, -0.1976877897977829, 1.5108691453933716, -0.3563741147518158, -0.06615645438432693, -0.34446874260902405, -0.46630269289016724, 0.1847703754901886, -0.23531390726566315, -0.591797411441803, 0.2723234295845032, -0.7679523229598999, 0.28065016865730286, 1.5717506408691406, 0.3868487477302551, 0.070660799741745, 0.4387683868408203, 1.1376886367797852, 0.42270269989967346, -0.07364615052938461, -0.868740439414978, -1.6316845417022705, 2.0864768028259277, -1.4553542137145996, 1.8986035585403442, 0.7842892408370972, -0.09834626317024231, -1.6986135244369507, -1.8955843448638916, 1.2443509101867676, 1.1357158422470093, 2.3505356311798096, 0.5036104917526245, 0.4501626193523407, -0.7040122151374817, -0.8033960461616516, 0.28987085819244385, -0.933702290058136, -0.763288140296936, 0.07801603525876999, 2.4261860847473145, 1.7809789180755615, -0.4850916564464569, -0.2845875918865204, -0.8985950350761414, 1.3211212158203125, -0.20008082687854767, 0.2756514847278595, 1.930402159690857, -0.19373831152915955, -0.9823393821716309, 1.3292700052261353, -2.318901300430298, 0.3470550775527954, 2.0711898803710938, 0.2584683895111084, 0.22488029301166534, -1.4907751083374023, -0.6118596792221069, -0.2575613856315613, -0.4780120849609375, -1.2474520206451416, 0.564977765083313, -0.3186374306678772, -0.955355703830719, -1.4418907165527344, -0.004222352989017963, -1.1178447008132935, -1.7687366008758545, 0.2678850591182709, 1.8829141855239868, 2.089994430541992, -0.8046439290046692, 1.388534426689148, -0.2507362961769104, 0.021684817969799042, 1.251706600189209, 1.2865091562271118, 3.099822998046875, 1.986798644065857, -1.2999159097671509, 0.7828344106674194, -0.26378896832466125, -0.4833943545818329, 1.2055203914642334, -1.1250423192977905, 1.0744322538375854, -0.21043309569358826, -1.3030619621276855, -1.156486988067627, 1.0341401100158691, 0.4585926830768585, -0.05317073315382004, -0.49446845054626465, 1.2014456987380981, 0.12486707419157028, 1.2816500663757324, 0.5844078660011292, -0.31866878271102905, 0.6548569202423096, -0.33986610174179077, -0.47032299637794495, 1.5884720087051392, 0.13300767540931702, -1.4980494976043701, -2.3130898475646973, -0.15397745370864868, -0.9460536241531372, -0.03869705647230148, -0.6998071670532227, -1.048575758934021, 1.614495873451233, 0.5428545475006104, -1.18792724609375, -0.31610989570617676, -0.2440754473209381, -0.4035194516181946, 2.620657205581665, -1.3237823247909546, -0.22103548049926758, -1.024714469909668, -0.42162901163101196, 1.6025410890579224, -1.2173813581466675, -0.22343464195728302, -0.9378023743629456, -0.6846061944961548, -1.2239125967025757, -0.5169075131416321, -0.12221027165651321, -0.864230751991272, 0.7176412343978882, 0.17171433568000793, -1.1266224384307861, -0.27002447843551636, -0.9253735542297363, 1.0184584856033325, -0.05477838218212128, 0.2100997269153595, 1.9422051906585693, 0.23967918753623962, -0.5140307545661926, 0.7335925102233887, 1.2345502376556396, 0.6123276948928833, -0.6419475674629211, 0.07002730667591095, -0.7047259211540222, 0.45728471875190735, -1.371354341506958, 0.11747833341360092, -2.9463531970977783, 0.7319318652153015, -0.11212432384490967, -0.18235231935977936, -0.1637941598892212, -1.2864606380462646, 1.1652129888534546, 2.5965735912323, -1.1171109676361084, 0.5176673531532288, 0.3958528935909271, 1.1722323894500732, -1.595411777496338, 0.22329331934452057, -0.5305913686752319, 2.181969404220581, 0.2679927349090576, 1.2576197385787964, -0.46535199880599976, -2.2395243644714355, 0.7021114230155945, -1.1496442556381226, -0.9467982053756714, 0.6809961199760437, -0.8177698254585266, 0.21733637154102325, -1.4143179655075073, -0.1271485686302185, -0.9480872750282288, -1.193131923675537, 0.6733817458152771, 0.12159781903028488, 0.3783884346485138, -0.6571991443634033, 0.3166242241859436, -2.1543829441070557, -1.3746439218521118, -0.17807641625404358, -0.999701201915741, 0.5409969091415405, -0.4038294553756714, 0.5465402007102966, -0.014388378709554672, 0.03308345377445221, 0.2255929708480835, 1.371692180633545, 3.3391501903533936, 0.1839001476764679, 0.20447756350040436, -0.13401047885417938, -1.0240780115127563, 1.3390616178512573, 0.9504416584968567, -0.18488618731498718, -0.6399926543235779, -0.9305621981620789, 1.405402421951294, 1.9372905492782593, 1.1188976764678955, 0.1855969876050949, -0.9115052223205566, -0.8802022933959961, -0.025165565311908722, 0.1581878811120987, 0.4840559959411621, 1.0742624998092651, 0.024333378300070763, 0.1409037858247757, 1.4614230394363403, 1.1475023031234741, -0.32223987579345703, 0.4681234657764435, -1.0096153020858765, -0.3536694049835205, 0.40853142738342285, 0.3035595118999481, 0.07290161401033401, 0.4041406512260437, -1.1210310459136963, -0.22465847432613373, -0.25403377413749695, -0.8202491998672485, -0.7841167449951172, -0.2609238028526306, -0.3392341434955597, 1.686964511871338, 0.03210210055112839, -0.5321123003959656, -0.009587864391505718, -0.7298848628997803, -0.04168735444545746, -1.0554231405258179, 0.27268916368484497, -0.16790038347244263, -0.04947791248559952, -0.15068012475967407, 1.6036431789398193, -0.8625379800796509, -2.101651430130005, 0.21897479891777039, 0.313228577375412, -0.4664832055568695, 0.1919822096824646, 1.685274362564087, 0.6418256759643555, 1.2955471277236938, 1.384594440460205, 1.009556770324707, -0.5261477828025818, -1.2270114421844482, 0.6757392883300781, 0.8520626425743103, -1.377907395362854, 0.8687183260917664, -0.15546557307243347, -0.5559461712837219, 0.6636728048324585, 1.3811120986938477, 0.45618703961372375, -2.0959534645080566, 0.9331527948379517, -0.7792382836341858, 0.778302013874054, 0.7271106839179993, 0.7925999760627747, 0.22930902242660522, 0.8740727305412292, -1.286400318145752, -1.172315239906311, -0.6917327046394348, -0.643556535243988, 1.816760778427124, -0.28787848353385925, 0.5717087388038635, -0.20797675848007202, -1.215306043624878, -0.12497146427631378, 0.74617600440979, 0.2710462510585785, -0.429958701133728, 0.9582239389419556, -0.5716253519058228, -1.0752649307250977, -1.1853865385055542, -0.47109389305114746, -0.8983084559440613, -0.8567565679550171, 0.9516702890396118, 0.7214021682739258, 0.5890111327171326, 1.9813193082809448, 0.5461400747299194, 0.29961180686950684, -2.6238884925842285, 0.839137613773346, 0.27231791615486145, -0.010703329928219318, 0.884760320186615, 0.19446618854999542, 1.0990499258041382, -0.049834243953228, 0.6536445021629333, -2.2692418098449707, 2.2185256481170654, -0.15312309563159943, 0.6649599671363831, 0.07038267701864243, -0.10778909921646118, 1.1015981435775757, 0.6246587038040161, 0.6161831021308899, -1.1924333572387695, 0.8061680793762207, -0.6375589966773987, 1.220662236213684, 0.8233627676963806, -0.9387139081954956, 0.09062281996011734, 1.300971508026123, 0.3821474313735962, -0.452136367559433, -0.996090829372406, -0.9444010853767395, 1.007208228111267, 1.724441409111023, 0.0557062029838562, 0.08196098357439041, 0.9004532098770142, 0.7070081830024719, -1.2260658740997314, -0.04311393201351166, -0.6892392635345459, -0.6037054061889648, 1.7122524976730347, 2.043165922164917, -0.12790566682815552, -0.2224721759557724, -0.5985357761383057, -1.3598976135253906, 0.7459750175476074, -0.045153312385082245, 0.06793094426393509, 0.7308784127235413, -0.6533025503158569, 1.168529748916626, 0.6747134327888489, 0.9986312985420227, 0.009121693670749664, 0.29913130402565, 0.20369233191013336, -0.34925103187561035, -1.1915099620819092, -0.3065914511680603, -1.0143791437149048, -2.5116496086120605, 0.2618197202682495, -0.2026596963405609, -1.5066837072372437, 0.10791999101638794, -1.0271459817886353, 0.7639592289924622, -0.5485464334487915, -1.1890368461608887, -1.3731811046600342, 0.34083282947540283, -0.17058593034744263, 0.8796648383140564, -1.6279298067092896, -0.11088918149471283, 1.2191885709762573, 0.9145634770393372, -0.4596821665763855, 0.9879693388938904, 0.3446803689002991, 0.9232085347175598, 0.8579986691474915, -0.35034632682800293, 0.45556026697158813, 0.08418713510036469, -1.2773219347000122, 0.4050208628177643, 1.299336314201355, 0.18573293089866638, 1.3407822847366333, -0.5377385020256042, 0.0744423121213913, 0.4583424925804138, -0.6139270663261414, -0.5493282675743103, -0.4935862123966217, 0.8238449096679688, 0.00609218142926693, -0.9977308511734009, -0.1710404008626938, -0.14248026907444, -0.24174842238426208, 0.1800209879875183, -1.473692536354065, -0.2265811711549759, -0.40041041374206543, -0.5251151323318481, -1.3384547233581543, 0.06274014711380005, 1.235472559928894, -0.96624356508255, -0.21140353381633759, 0.38114017248153687, 0.3209740221500397, 0.5997903943061829, 0.571418821811676, -0.6923792958259583, -0.373466432094574, -0.25941726565361023, -0.2122136801481247, 0.24797308444976807, 1.0863895416259766, 0.005287399515509605, -0.9902023077011108, 0.6192486882209778, -0.4085712432861328, 0.0813022181391716, 1.952023983001709, -0.036790795624256134, -0.6782705187797546, 0.4013986885547638, -0.6820791363716125, 1.7757424116134644, 1.6681175231933594, 1.3691132068634033, -0.10557396709918976, -0.8532000780105591, 0.4769928753376007, -0.2654230296611786, -0.3946887254714966, 0.82439124584198, 0.36316242814064026, -0.2536648213863373, -1.3839471340179443, 0.5249863266944885, 1.228608250617981, -0.8265365362167358, -0.7243031859397888, 0.12066052109003067, -0.8884996175765991, 1.2519805431365967, 0.5787176489830017, 0.24319717288017273, 0.214546337723732, 1.5913450717926025, 0.7252805829048157, -0.5151358246803284, 0.46722760796546936, 0.5326083898544312, -0.17981809377670288, -2.1489288806915283, -0.978133499622345, 0.24216946959495544, -0.3160263001918793, -1.5591120719909668, 1.2672533988952637, -1.2833276987075806, -0.94868004322052, 0.48519811034202576, 0.17555542290210724, 1.2698638439178467, 0.2638115882873535, 1.7265273332595825, 2.15079665184021, 0.9485580921173096, 0.38332030177116394, 1.195673942565918, -0.09102193266153336, -0.36937230825424194, 1.8291995525360107, -0.4248717129230499, 0.6233178377151489, 0.927991509437561, -0.46878528594970703, -1.2248960733413696, -0.8165409564971924, -1.1670554876327515, -0.6723934412002563, 1.1567506790161133, 0.10588229447603226, -1.1104665994644165, 0.19244393706321716, 1.5323327779769897, 0.11587434262037277, -0.197573721408844, 0.5640118718147278, 0.4170914888381958, -0.6404924392700195, -0.0719161331653595, -0.9567411541938782, 0.4690987467765808, -0.11231301724910736, -0.3389770984649658, 0.20220397412776947, 0.5523975491523743, 1.2206660509109497, 0.016415415331721306, 0.04668288677930832, 1.2242505550384521, -1.4746875762939453, 1.5977250337600708, -0.6932249069213867, 0.3527246117591858, -2.429929733276367, 1.4578028917312622, -0.8648494482040405, 1.8909733295440674, -2.598944902420044, 0.4126950204372406, -0.49198615550994873, -0.5581339001655579, 0.25956466794013977, -0.3777577877044678, 0.05921195447444916, -0.14427034556865692, -0.9914488196372986, 0.004914944060146809, -0.8225314617156982, 0.5575978755950928, 1.12692391872406, 1.3883253335952759, -1.191650629043579, -0.24598608911037445, -1.7519279718399048, -0.07548651844263077, -0.8118829131126404, 0.39840617775917053, -1.9656769037246704, -0.1568273901939392, -2.0252227783203125, -2.3093149662017822, -1.3469456434249878, -0.8330036401748657, 1.0307577848434448, 0.16402430832386017, -0.8748146891593933, 1.1306135654449463, -0.39847898483276367, -1.7171739339828491, 1.1098036766052246, -2.191148042678833 ]
https://github.com/huggingface/datasets/issues/3554
ImportError: cannot import name 'is_valid_waiter_error'
Hey @danielbellhv, This issue might be related to Studio probably not having an up to date `botocore` and `boto3` version. I ran into this as well a while back. My workaround was ```python # using older dataset due to incompatibility of sagemaker notebook & aws-cli with > s3fs and fsspec to >= 2021.10 !pip install "datasets==1.13" --upgrade ``` In `datasets` we use the latest `s3fs` and `fsspec` but aws-cli and notebook is not supporting this. You could also update the `aws-cli` and associated packages to get the latest `datasets` version
Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb
1,013
90
ImportError: cannot import name 'is_valid_waiter_error' Based on [SO post](https://stackoverflow.com/q/70606147/17840900). I'm following along to this [Notebook][1], cell "**Loading the dataset**". Kernel: `conda_pytorch_p36`. I run: ``` ! pip install datasets transformers optimum[intel] ``` Output: ``` Requirement already satisfied: datasets in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (1.17.0) Requirement already satisfied: transformers in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (4.15.0) Requirement already satisfied: optimum[intel] in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (0.1.3) Requirement already satisfied: numpy>=1.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.19.5) Requirement already satisfied: dill in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.3.4) Requirement already satisfied: tqdm>=4.62.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.62.3) Requirement already satisfied: huggingface-hub<1.0.0,>=0.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.2.1) Requirement already satisfied: packaging in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (21.3) Requirement already satisfied: pyarrow!=4.0.0,>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (6.0.1) Requirement already satisfied: pandas in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (1.1.5) Requirement already satisfied: xxhash in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.0.2) Requirement already satisfied: aiohttp in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (3.8.1) Requirement already satisfied: fsspec[http]>=2021.05.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2021.11.1) Requirement already satisfied: dataclasses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.8) Requirement already satisfied: multiprocess in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: importlib-metadata in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (4.5.0) Requirement already satisfied: requests>=2.19.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from datasets) (2.25.1) Requirement already satisfied: pyyaml>=5.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (5.4.1) Requirement already satisfied: regex!=2019.12.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (2021.4.4) Requirement already satisfied: tokenizers<0.11,>=0.10.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.10.3) Requirement already satisfied: filelock in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (3.0.12) Requirement already satisfied: sacremoses in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from transformers) (0.0.46) Requirement already satisfied: torch>=1.9 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.10.1) Requirement already satisfied: sympy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.8) Requirement already satisfied: coloredlogs in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (15.0.1) Requirement already satisfied: pycocotools in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (2.0.3) Requirement already satisfied: neural-compressor>=1.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from optimum[intel]) (1.9) Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from huggingface-hub<1.0.0,>=0.1.0->datasets) (3.10.0.0) Requirement already satisfied: sigopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.2.0) Requirement already satisfied: opencv-python in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (4.5.1.48) Requirement already satisfied: cryptography in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.4.7) Requirement already satisfied: py-cpuinfo in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.0.0) Requirement already satisfied: gevent in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (21.1.2) Requirement already satisfied: schema in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: psutil in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.8.0) Requirement already satisfied: gevent-websocket in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.10.1) Requirement already satisfied: hyperopt in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.2.7) Requirement already satisfied: Flask in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: prettytable in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (2.5.0) Requirement already satisfied: Flask-SocketIO in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (5.1.1) Requirement already satisfied: scikit-learn in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (0.24.2) Requirement already satisfied: Pillow in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (8.4.0) Requirement already satisfied: Flask-Cors in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from neural-compressor>=1.7->optimum[intel]) (3.0.10) Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: chardet<5,>=3.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: yarl<2.0,>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.6.3) Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (2.0.9) Requirement already satisfied: attrs>=17.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (21.2.0) Requirement already satisfied: asynctest==0.13.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (0.13.0) Requirement already satisfied: idna-ssl>=1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.1.0) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (4.0.1) Requirement already satisfied: aiosignal>=1.1.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: frozenlist>=1.1.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (1.2.0) Requirement already satisfied: multidict<7.0,>=4.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from aiohttp->datasets) (5.1.0) Requirement already satisfied: humanfriendly>=9.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from coloredlogs->optimum[intel]) (10.0) Requirement already satisfied: zipp>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: python-dateutil>=2.7.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: matplotlib>=2.1.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (3.3.4) Requirement already satisfied: cython>=0.27.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (0.29.23) Requirement already satisfied: setuptools>=18.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pycocotools->optimum[intel]) (52.0.0.post20210125) Requirement already satisfied: joblib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.0.1) Requirement already satisfied: click in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (8.0.1) Requirement already satisfied: six in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sacremoses->transformers) (1.16.0) Requirement already satisfied: mpmath>=0.19 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sympy->optimum[intel]) (1.2.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (1.3.1) Requirement already satisfied: cycler>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/cycler-0.10.0-py3.6.egg (from matplotlib>=2.1.0->pycocotools->optimum[intel]) (0.10.0) Requirement already satisfied: cffi>=1.12 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cryptography->neural-compressor>=1.7->optimum[intel]) (1.14.5) Requirement already satisfied: Werkzeug>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.2) Requirement already satisfied: Jinja2>=3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (3.0.1) Requirement already satisfied: itsdangerous>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: python-socketio>=5.0.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (5.5.0) Requirement already satisfied: zope.event in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (4.5.0) Requirement already satisfied: greenlet<2.0,>=0.4.17 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (1.1.0) Requirement already satisfied: zope.interface in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gevent->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: future in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.18.2) Requirement already satisfied: cloudpickle in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.6.0) Requirement already satisfied: networkx>=2.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (2.5) Requirement already satisfied: scipy in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (1.5.3) Requirement already satisfied: py4j in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from hyperopt->neural-compressor>=1.7->optimum[intel]) (0.10.7) Requirement already satisfied: wcwidth in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from prettytable->neural-compressor>=1.7->optimum[intel]) (0.2.5) Requirement already satisfied: contextlib2>=0.5.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from schema->neural-compressor>=1.7->optimum[intel]) (0.6.0.post1) Requirement already satisfied: threadpoolctl>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from scikit-learn->neural-compressor>=1.7->optimum[intel]) (2.1.0) Requirement already satisfied: pyOpenSSL>=20.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (20.0.1) Requirement already satisfied: pypng>=0.0.20 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.0.21) Requirement already satisfied: kubernetes<13.0.0,>=12.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (12.0.1) Requirement already satisfied: rsa<5.0.0,>=4.7 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.7.2) Requirement already satisfied: boto3<2.0.0,==1.16.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.16.34) Requirement already satisfied: Pint<0.17.0,>=0.16.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (0.16.1) Requirement already satisfied: GitPython>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.18) Requirement already satisfied: backoff<2.0.0,>=1.10.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (1.11.1) Requirement already satisfied: ipython>=5.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (7.16.1) Requirement already satisfied: docker<5.0.0,>=4.4.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from sigopt->neural-compressor>=1.7->optimum[intel]) (4.4.4) Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.10.0) Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (0.3.7) Requirement already satisfied: botocore<1.20.0,>=1.19.34 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from boto3<2.0.0,==1.16.34->sigopt->neural-compressor>=1.7->optimum[intel]) (1.19.63) Requirement already satisfied: pycparser in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from cffi>=1.12->cryptography->neural-compressor>=1.7->optimum[intel]) (2.20) Requirement already satisfied: websocket-client>=0.32.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from docker<5.0.0,>=4.4.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.58.0) Requirement already satisfied: gitdb<5,>=4.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.0.9) Requirement already satisfied: traitlets>=4.2 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.3.3) Requirement already satisfied: jedi>=0.10 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.17.2) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (3.0.19) Requirement already satisfied: backcall in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: pygments in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (2.9.0) Requirement already satisfied: pexpect in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (4.8.0) Requirement already satisfied: decorator in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.9) Requirement already satisfied: pickleshare in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.5) Requirement already satisfied: MarkupSafe>=2.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Jinja2>=3.0->Flask->neural-compressor>=1.7->optimum[intel]) (2.0.1) Requirement already satisfied: google-auth>=1.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.30.2) Requirement already satisfied: requests-oauthlib in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (1.3.0) Requirement already satisfied: importlib-resources in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from Pint<0.17.0,>=0.16.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.4.0) Requirement already satisfied: python-engineio>=4.3.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (4.3.0) Requirement already satisfied: bidict>=0.21.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from python-socketio>=5.0.2->Flask-SocketIO->neural-compressor>=1.7->optimum[intel]) (0.21.4) Requirement already satisfied: pyasn1>=0.1.3 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from rsa<5.0.0,>=4.7->sigopt->neural-compressor>=1.7->optimum[intel]) (0.4.8) Requirement already satisfied: smmap<6,>=3.0.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->GitPython>=2.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (5.0.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.8) Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from google-auth>=1.0.1->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (4.2.2) Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from jedi>=0.10->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.1) Requirement already satisfied: ipython-genutils in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from traitlets>=4.2->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.2.0) Requirement already satisfied: ptyprocess>=0.5 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from pexpect->ipython>=5.0.0->sigopt->neural-compressor>=1.7->optimum[intel]) (0.7.0) Requirement already satisfied: oauthlib>=3.0.0 in /home/ec2-user/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages (from requests-oauthlib->kubernetes<13.0.0,>=12.0.1->sigopt->neural-compressor>=1.7->optimum[intel]) (3.1.1) ``` --- **Cell:** ```python from datasets import load_dataset, load_metric ``` OR ```python import datasets ``` **Traceback:** ``` --------------------------------------------------------------------------- ImportError Traceback (most recent call last) <ipython-input-7-34fb7ba3338d> in <module> ----> 1 from datasets import load_dataset, load_metric ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/__init__.py in <module> 32 ) 33 ---> 34 from .arrow_dataset import Dataset, concatenate_datasets 35 from .arrow_reader import ArrowReader, ReadInstruction 36 from .arrow_writer import ArrowWriter ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_dataset.py in <module> 59 from . import config, utils 60 from .arrow_reader import ArrowReader ---> 61 from .arrow_writer import ArrowWriter, OptimizedTypedSequence 62 from .features import ClassLabel, Features, FeatureType, Sequence, Value, _ArrayXD, pandas_types_mapper 63 from .filesystems import extract_path_from_uri, is_remote_filesystem ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/arrow_writer.py in <module> 26 27 from . import config, utils ---> 28 from .features import ( 29 Features, 30 ImageExtensionType, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/__init__.py in <module> 1 # flake8: noqa ----> 2 from .audio import Audio 3 from .features import * 4 from .features import ( 5 _ArrayXD, ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/features/audio.py in <module> 5 import pyarrow as pa 6 ----> 7 from ..utils.streaming_download_manager import xopen 8 9 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/utils/streaming_download_manager.py in <module> 16 17 from .. import config ---> 18 from ..filesystems import COMPRESSION_FILESYSTEMS 19 from .download_manager import DownloadConfig, map_nested 20 from .file_utils import ( ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/__init__.py in <module> 11 12 if _has_s3fs: ---> 13 from .s3filesystem import S3FileSystem # noqa: F401 14 15 COMPRESSION_FILESYSTEMS: List[compression.BaseCompressedFileFileSystem] = [ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/datasets/filesystems/s3filesystem.py in <module> ----> 1 import s3fs 2 3 4 class S3FileSystem(s3fs.S3FileSystem): 5 """ ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/__init__.py in <module> ----> 1 from .core import S3FileSystem, S3File 2 from .mapping import S3Map 3 4 from ._version import get_versions 5 ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/s3fs/core.py in <module> 12 from fsspec.asyn import AsyncFileSystem, sync, sync_wrapper 13 ---> 14 import aiobotocore 15 import botocore 16 import aiobotocore.session ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/__init__.py in <module> ----> 1 from .session import get_session, AioSession 2 3 __all__ = ['get_session', 'AioSession'] 4 __version__ = '1.3.0' ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/session.py in <module> 4 from botocore import retryhandler, translate 5 from botocore.exceptions import PartialCredentialsError ----> 6 from .client import AioClientCreator, AioBaseClient 7 from .hooks import AioHierarchicalEmitter 8 from .parsers import AioResponseParserFactory ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/client.py in <module> 11 from .args import AioClientArgsCreator 12 from .utils import AioS3RegionRedirector ---> 13 from . import waiter 14 15 history_recorder = get_global_history_recorder() ~/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/aiobotocore/waiter.py in <module> 4 from botocore.exceptions import ClientError 5 from botocore.waiter import WaiterModel # noqa: F401, lgtm[py/unused-import] ----> 6 from botocore.waiter import Waiter, xform_name, logger, WaiterError, \ 7 NormalizedOperationMethod as _NormalizedOperationMethod, is_valid_waiter_error 8 from botocore.docs.docstring import WaiterDocstring ImportError: cannot import name 'is_valid_waiter_error' ``` Please let me know if there's anything else I can add to post. [1]: https://github.com/huggingface/notebooks/blob/master/examples/text_classification_quantization_inc.ipynb Hey @danielbellhv, This issue might be related to Studio probably not having an up to date `botocore` and `boto3` version. I ran into this as well a while back. My workaround was ```python # using older dataset due to incompatibility of sagemaker notebook & aws-cli with > s3fs and fsspec to >= 2021.10 !pip install "datasets==1.13" --upgrade ``` In `datasets` we use the latest `s3fs` and `fsspec` but aws-cli and notebook is not supporting this. You could also update the `aws-cli` and associated packages to get the latest `datasets` version
[ -1.2784470319747925, -0.9149156212806702, -0.662919819355011, 1.430086374282837, -0.10949552059173584, -1.279339075088501, 0.0705757886171341, -0.994429349899292, 1.5918809175491333, -0.657037079334259, 0.22759510576725006, -1.652822494506836, -0.0914037898182869, -0.4629500210285187, -0.7218464016914368, -0.8535924553871155, -0.38742196559906006, -0.8732163310050964, 1.0612434148788452, 2.5757269859313965, 1.3380500078201294, -1.3287373781204224, 2.881598711013794, 0.720548689365387, -0.2538521885871887, -1.0095010995864868, 0.5086699724197388, -0.029416074976325035, -1.3360395431518555, -0.4588642716407776, -0.9495481252670288, -0.00532221794128418, -0.5444895029067993, -0.5349047780036926, 0.11136754602193832, 0.4178946614265442, -0.22427859902381897, -0.35463947057724, -0.4833427369594574, -0.7205155491828918, 0.4598030745983124, -0.23507636785507202, 0.9270864129066467, -0.30178990960121155, 1.6190776824951172, -0.632814884185791, 0.43835172057151794, 0.6687203645706177, 1.3717342615127563, 0.13787952065467834, -0.0879419818520546, 0.3322756886482239, 0.3929208517074585, -0.0333760529756546, 0.6549541354179382, 1.3180572986602783, 0.7170965671539307, 0.4391278922557831, 0.6759157776832581, -2.2278149127960205, 1.2227832078933716, -0.852867066860199, 0.27170422673225403, 1.261488914489746, -0.910584032535553, 0.33499646186828613, -1.7574738264083862, -0.09495598077774048, 0.6012119650840759, -2.322770118713379, 0.13952937722206116, -1.3100775480270386, -0.5535138845443726, 0.9586540460586548, 0.3547835350036621, -1.3251830339431763, 0.13469865918159485, -0.5475102663040161, 1.1253831386566162, 0.5103307366371155, 1.2184412479400635, -1.6109682321548462, -0.038069598376750946, -0.16483907401561737, 0.14671935141086578, -1.2001678943634033, -1.6239262819290161, 0.5323086380958557, 0.5712607502937317, 0.7269514799118042, -0.052821144461631775, 0.9449020624160767, -1.0517175197601318, 0.8786294460296631, -0.9920843243598938, -1.6408425569534302, -1.4648526906967163, -2.367767333984375, -2.265212059020996, 0.7762886881828308, -0.5317758917808533, -0.5302232503890991, 1.9676462411880493, -1.0515003204345703, -1.8966389894485474, 1.0152634382247925, 0.2902142405509949, 0.09827088564634323, 2.3675684928894043, 0.22795990109443665, -0.8275877833366394, 0.5443430542945862, -0.7043401002883911, 0.815903902053833, -0.26808443665504456, 1.3227766752243042, 0.4900869131088257, -0.8601274490356445, 1.6094597578048706, -0.5080194473266602, 0.6659331321716309, -0.7304469347000122, -0.42586666345596313, -0.7524420022964478, 0.27346575260162354, 1.9685355424880981, -0.41598424315452576, 1.5802899599075317, -0.32952606678009033, -1.5531322956085205, -1.4645178318023682, 0.7024269104003906, 0.6370218992233276, -0.9071871638298035, 0.08767274767160416, -0.520321249961853, 0.0626005306839943, 0.10276076197624207, 1.084405779838562, 1.2840665578842163, 0.7407389283180237, -0.30218055844306946, -0.9577093720436096, 0.2321190983057022, -0.08522025495767593, -0.6716063618659973, -1.7738869190216064, -0.3003668189048767, 0.19755737483501434, 0.6674630641937256, -1.3336296081542969, 1.7501535415649414, 0.826653003692627, 2.110039710998535, 0.9603455066680908, -0.42315927147865295, 1.4923738241195679, 0.08627012372016907, 1.9190489053726196, -0.4863610863685608, 0.6346583366394043, -0.34699884057044983, -1.121555209159851, 0.8231520056724548, -0.44714394211769104, -2.1038687229156494, -0.6961439847946167, -0.7329131364822388, -0.14102648198604584, -0.8101201057434082, 0.927404522895813, -0.2698591649532318, -1.4658496379852295, 0.09202058613300323, -0.8696139454841614, 0.15285995602607727, -1.3140429258346558, 0.20486587285995483, 0.8020880222320557, -0.683231770992279, 0.03269125521183014, -0.36319535970687866, -1.312418818473816, -0.45438307523727417, 0.3352779746055603, 1.9090609550476074, -0.6384478211402893, 0.9859573245048523, 0.9583503603935242, -0.6578356027603149, 0.1135312169790268, 0.3392651379108429, -0.3364546000957489, 0.9155771136283875, -1.1673110723495483, -0.3193102777004242, 1.1449239253997803, -0.1835537850856781, -0.7058315873146057, 1.4626410007476807, 0.8554863333702087, -1.0646394491195679, -0.3255225419998169, -0.13804911077022552, -0.8766356706619263, -0.009424470365047455, -1.609643816947937, -0.20334099233150482, 0.25792548060417175, -1.4838675260543823, -0.4239487648010254, -0.19614064693450928, 1.3120784759521484, -0.1976877897977829, 1.5108691453933716, -0.3563741147518158, -0.06615645438432693, -0.34446874260902405, -0.46630269289016724, 0.1847703754901886, -0.23531390726566315, -0.591797411441803, 0.2723234295845032, -0.7679523229598999, 0.28065016865730286, 1.5717506408691406, 0.3868487477302551, 0.070660799741745, 0.4387683868408203, 1.1376886367797852, 0.42270269989967346, -0.07364615052938461, -0.868740439414978, -1.6316845417022705, 2.0864768028259277, -1.4553542137145996, 1.8986035585403442, 0.7842892408370972, -0.09834626317024231, -1.6986135244369507, -1.8955843448638916, 1.2443509101867676, 1.1357158422470093, 2.3505356311798096, 0.5036104917526245, 0.4501626193523407, -0.7040122151374817, -0.8033960461616516, 0.28987085819244385, -0.933702290058136, -0.763288140296936, 0.07801603525876999, 2.4261860847473145, 1.7809789180755615, -0.4850916564464569, -0.2845875918865204, -0.8985950350761414, 1.3211212158203125, -0.20008082687854767, 0.2756514847278595, 1.930402159690857, -0.19373831152915955, -0.9823393821716309, 1.3292700052261353, -2.318901300430298, 0.3470550775527954, 2.0711898803710938, 0.2584683895111084, 0.22488029301166534, -1.4907751083374023, -0.6118596792221069, -0.2575613856315613, -0.4780120849609375, -1.2474520206451416, 0.564977765083313, -0.3186374306678772, -0.955355703830719, -1.4418907165527344, -0.004222352989017963, -1.1178447008132935, -1.7687366008758545, 0.2678850591182709, 1.8829141855239868, 2.089994430541992, -0.8046439290046692, 1.388534426689148, -0.2507362961769104, 0.021684817969799042, 1.251706600189209, 1.2865091562271118, 3.099822998046875, 1.986798644065857, -1.2999159097671509, 0.7828344106674194, -0.26378896832466125, -0.4833943545818329, 1.2055203914642334, -1.1250423192977905, 1.0744322538375854, -0.21043309569358826, -1.3030619621276855, -1.156486988067627, 1.0341401100158691, 0.4585926830768585, -0.05317073315382004, -0.49446845054626465, 1.2014456987380981, 0.12486707419157028, 1.2816500663757324, 0.5844078660011292, -0.31866878271102905, 0.6548569202423096, -0.33986610174179077, -0.47032299637794495, 1.5884720087051392, 0.13300767540931702, -1.4980494976043701, -2.3130898475646973, -0.15397745370864868, -0.9460536241531372, -0.03869705647230148, -0.6998071670532227, -1.048575758934021, 1.614495873451233, 0.5428545475006104, -1.18792724609375, -0.31610989570617676, -0.2440754473209381, -0.4035194516181946, 2.620657205581665, -1.3237823247909546, -0.22103548049926758, -1.024714469909668, -0.42162901163101196, 1.6025410890579224, -1.2173813581466675, -0.22343464195728302, -0.9378023743629456, -0.6846061944961548, -1.2239125967025757, -0.5169075131416321, -0.12221027165651321, -0.864230751991272, 0.7176412343978882, 0.17171433568000793, -1.1266224384307861, -0.27002447843551636, -0.9253735542297363, 1.0184584856033325, -0.05477838218212128, 0.2100997269153595, 1.9422051906585693, 0.23967918753623962, -0.5140307545661926, 0.7335925102233887, 1.2345502376556396, 0.6123276948928833, -0.6419475674629211, 0.07002730667591095, -0.7047259211540222, 0.45728471875190735, -1.371354341506958, 0.11747833341360092, -2.9463531970977783, 0.7319318652153015, -0.11212432384490967, -0.18235231935977936, -0.1637941598892212, -1.2864606380462646, 1.1652129888534546, 2.5965735912323, -1.1171109676361084, 0.5176673531532288, 0.3958528935909271, 1.1722323894500732, -1.595411777496338, 0.22329331934452057, -0.5305913686752319, 2.181969404220581, 0.2679927349090576, 1.2576197385787964, -0.46535199880599976, -2.2395243644714355, 0.7021114230155945, -1.1496442556381226, -0.9467982053756714, 0.6809961199760437, -0.8177698254585266, 0.21733637154102325, -1.4143179655075073, -0.1271485686302185, -0.9480872750282288, -1.193131923675537, 0.6733817458152771, 0.12159781903028488, 0.3783884346485138, -0.6571991443634033, 0.3166242241859436, -2.1543829441070557, -1.3746439218521118, -0.17807641625404358, -0.999701201915741, 0.5409969091415405, -0.4038294553756714, 0.5465402007102966, -0.014388378709554672, 0.03308345377445221, 0.2255929708480835, 1.371692180633545, 3.3391501903533936, 0.1839001476764679, 0.20447756350040436, -0.13401047885417938, -1.0240780115127563, 1.3390616178512573, 0.9504416584968567, -0.18488618731498718, -0.6399926543235779, -0.9305621981620789, 1.405402421951294, 1.9372905492782593, 1.1188976764678955, 0.1855969876050949, -0.9115052223205566, -0.8802022933959961, -0.025165565311908722, 0.1581878811120987, 0.4840559959411621, 1.0742624998092651, 0.024333378300070763, 0.1409037858247757, 1.4614230394363403, 1.1475023031234741, -0.32223987579345703, 0.4681234657764435, -1.0096153020858765, -0.3536694049835205, 0.40853142738342285, 0.3035595118999481, 0.07290161401033401, 0.4041406512260437, -1.1210310459136963, -0.22465847432613373, -0.25403377413749695, -0.8202491998672485, -0.7841167449951172, -0.2609238028526306, -0.3392341434955597, 1.686964511871338, 0.03210210055112839, -0.5321123003959656, -0.009587864391505718, -0.7298848628997803, -0.04168735444545746, -1.0554231405258179, 0.27268916368484497, -0.16790038347244263, -0.04947791248559952, -0.15068012475967407, 1.6036431789398193, -0.8625379800796509, -2.101651430130005, 0.21897479891777039, 0.313228577375412, -0.4664832055568695, 0.1919822096824646, 1.685274362564087, 0.6418256759643555, 1.2955471277236938, 1.384594440460205, 1.009556770324707, -0.5261477828025818, -1.2270114421844482, 0.6757392883300781, 0.8520626425743103, -1.377907395362854, 0.8687183260917664, -0.15546557307243347, -0.5559461712837219, 0.6636728048324585, 1.3811120986938477, 0.45618703961372375, -2.0959534645080566, 0.9331527948379517, -0.7792382836341858, 0.778302013874054, 0.7271106839179993, 0.7925999760627747, 0.22930902242660522, 0.8740727305412292, -1.286400318145752, -1.172315239906311, -0.6917327046394348, -0.643556535243988, 1.816760778427124, -0.28787848353385925, 0.5717087388038635, -0.20797675848007202, -1.215306043624878, -0.12497146427631378, 0.74617600440979, 0.2710462510585785, -0.429958701133728, 0.9582239389419556, -0.5716253519058228, -1.0752649307250977, -1.1853865385055542, -0.47109389305114746, -0.8983084559440613, -0.8567565679550171, 0.9516702890396118, 0.7214021682739258, 0.5890111327171326, 1.9813193082809448, 0.5461400747299194, 0.29961180686950684, -2.6238884925842285, 0.839137613773346, 0.27231791615486145, -0.010703329928219318, 0.884760320186615, 0.19446618854999542, 1.0990499258041382, -0.049834243953228, 0.6536445021629333, -2.2692418098449707, 2.2185256481170654, -0.15312309563159943, 0.6649599671363831, 0.07038267701864243, -0.10778909921646118, 1.1015981435775757, 0.6246587038040161, 0.6161831021308899, -1.1924333572387695, 0.8061680793762207, -0.6375589966773987, 1.220662236213684, 0.8233627676963806, -0.9387139081954956, 0.09062281996011734, 1.300971508026123, 0.3821474313735962, -0.452136367559433, -0.996090829372406, -0.9444010853767395, 1.007208228111267, 1.724441409111023, 0.0557062029838562, 0.08196098357439041, 0.9004532098770142, 0.7070081830024719, -1.2260658740997314, -0.04311393201351166, -0.6892392635345459, -0.6037054061889648, 1.7122524976730347, 2.043165922164917, -0.12790566682815552, -0.2224721759557724, -0.5985357761383057, -1.3598976135253906, 0.7459750175476074, -0.045153312385082245, 0.06793094426393509, 0.7308784127235413, -0.6533025503158569, 1.168529748916626, 0.6747134327888489, 0.9986312985420227, 0.009121693670749664, 0.29913130402565, 0.20369233191013336, -0.34925103187561035, -1.1915099620819092, -0.3065914511680603, -1.0143791437149048, -2.5116496086120605, 0.2618197202682495, -0.2026596963405609, -1.5066837072372437, 0.10791999101638794, -1.0271459817886353, 0.7639592289924622, -0.5485464334487915, -1.1890368461608887, -1.3731811046600342, 0.34083282947540283, -0.17058593034744263, 0.8796648383140564, -1.6279298067092896, -0.11088918149471283, 1.2191885709762573, 0.9145634770393372, -0.4596821665763855, 0.9879693388938904, 0.3446803689002991, 0.9232085347175598, 0.8579986691474915, -0.35034632682800293, 0.45556026697158813, 0.08418713510036469, -1.2773219347000122, 0.4050208628177643, 1.299336314201355, 0.18573293089866638, 1.3407822847366333, -0.5377385020256042, 0.0744423121213913, 0.4583424925804138, -0.6139270663261414, -0.5493282675743103, -0.4935862123966217, 0.8238449096679688, 0.00609218142926693, -0.9977308511734009, -0.1710404008626938, -0.14248026907444, -0.24174842238426208, 0.1800209879875183, -1.473692536354065, -0.2265811711549759, -0.40041041374206543, -0.5251151323318481, -1.3384547233581543, 0.06274014711380005, 1.235472559928894, -0.96624356508255, -0.21140353381633759, 0.38114017248153687, 0.3209740221500397, 0.5997903943061829, 0.571418821811676, -0.6923792958259583, -0.373466432094574, -0.25941726565361023, -0.2122136801481247, 0.24797308444976807, 1.0863895416259766, 0.005287399515509605, -0.9902023077011108, 0.6192486882209778, -0.4085712432861328, 0.0813022181391716, 1.952023983001709, -0.036790795624256134, -0.6782705187797546, 0.4013986885547638, -0.6820791363716125, 1.7757424116134644, 1.6681175231933594, 1.3691132068634033, -0.10557396709918976, -0.8532000780105591, 0.4769928753376007, -0.2654230296611786, -0.3946887254714966, 0.82439124584198, 0.36316242814064026, -0.2536648213863373, -1.3839471340179443, 0.5249863266944885, 1.228608250617981, -0.8265365362167358, -0.7243031859397888, 0.12066052109003067, -0.8884996175765991, 1.2519805431365967, 0.5787176489830017, 0.24319717288017273, 0.214546337723732, 1.5913450717926025, 0.7252805829048157, -0.5151358246803284, 0.46722760796546936, 0.5326083898544312, -0.17981809377670288, -2.1489288806915283, -0.978133499622345, 0.24216946959495544, -0.3160263001918793, -1.5591120719909668, 1.2672533988952637, -1.2833276987075806, -0.94868004322052, 0.48519811034202576, 0.17555542290210724, 1.2698638439178467, 0.2638115882873535, 1.7265273332595825, 2.15079665184021, 0.9485580921173096, 0.38332030177116394, 1.195673942565918, -0.09102193266153336, -0.36937230825424194, 1.8291995525360107, -0.4248717129230499, 0.6233178377151489, 0.927991509437561, -0.46878528594970703, -1.2248960733413696, -0.8165409564971924, -1.1670554876327515, -0.6723934412002563, 1.1567506790161133, 0.10588229447603226, -1.1104665994644165, 0.19244393706321716, 1.5323327779769897, 0.11587434262037277, -0.197573721408844, 0.5640118718147278, 0.4170914888381958, -0.6404924392700195, -0.0719161331653595, -0.9567411541938782, 0.4690987467765808, -0.11231301724910736, -0.3389770984649658, 0.20220397412776947, 0.5523975491523743, 1.2206660509109497, 0.016415415331721306, 0.04668288677930832, 1.2242505550384521, -1.4746875762939453, 1.5977250337600708, -0.6932249069213867, 0.3527246117591858, -2.429929733276367, 1.4578028917312622, -0.8648494482040405, 1.8909733295440674, -2.598944902420044, 0.4126950204372406, -0.49198615550994873, -0.5581339001655579, 0.25956466794013977, -0.3777577877044678, 0.05921195447444916, -0.14427034556865692, -0.9914488196372986, 0.004914944060146809, -0.8225314617156982, 0.5575978755950928, 1.12692391872406, 1.3883253335952759, -1.191650629043579, -0.24598608911037445, -1.7519279718399048, -0.07548651844263077, -0.8118829131126404, 0.39840617775917053, -1.9656769037246704, -0.1568273901939392, -2.0252227783203125, -2.3093149662017822, -1.3469456434249878, -0.8330036401748657, 1.0307577848434448, 0.16402430832386017, -0.8748146891593933, 1.1306135654449463, -0.39847898483276367, -1.7171739339828491, 1.1098036766052246, -2.191148042678833 ]
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
This error also propagates to jax and is even trickier to fix, since `.with_format(type='jax')` will use numpy conversion internally (and fail). For a three line failure: ```python dataset = datasets.load_dataset("mnist") dataset.set_format("jax") X_train = dataset["train"]["image"] ```
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested.
1,014
35
set_format("np") no longer works for Image data ## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested. This error also propagates to jax and is even trickier to fix, since `.with_format(type='jax')` will use numpy conversion internally (and fail). For a three line failure: ```python dataset = datasets.load_dataset("mnist") dataset.set_format("jax") X_train = dataset["train"]["image"] ```
[ -1.2621971368789673, -0.866980791091919, -0.7058539986610413, 1.5122065544128418, -0.21118883788585663, -1.2930527925491333, 0.20766907930374146, -1.0781883001327515, 1.782598853111267, -0.9513002634048462, 0.35509341955184937, -1.6916084289550781, 0.11835196614265442, -0.5502735376358032, -0.7127248644828796, -0.934766948223114, -0.37435808777809143, -0.5907546281814575, 1.054216742515564, 2.3870232105255127, 1.21390962600708, -1.3336100578308105, 2.74904465675354, 0.6677477359771729, -0.0940995141863823, -0.9659198522567749, 0.5299829840660095, 0.08262033015489578, -1.160792589187622, -0.3693612515926361, -0.9224741458892822, -0.2099839299917221, -0.4962158799171448, -0.604049026966095, -0.18116678297519684, 0.40138521790504456, -0.4924921691417694, -0.44150272011756897, -0.5809392929077148, -0.887249231338501, 0.4339301288127899, -0.41142910718917847, 0.9170990586280823, -0.4577888548374176, 1.9649780988693237, -0.6366488933563232, 0.442976176738739, 0.6398188471794128, 1.2231087684631348, 0.24033388495445251, -0.0047358800657093525, 0.34482869505882263, 0.40648818016052246, 0.0211094468832016, 0.5111424326896667, 1.2082622051239014, 0.6384488344192505, 0.5577452182769775, 0.824300229549408, -2.1911842823028564, 1.2382200956344604, -1.156386137008667, 0.2542709708213806, 1.3118908405303955, -0.9327715635299683, 0.34520384669303894, -1.616822361946106, -0.1256050020456314, 0.574396550655365, -2.164043664932251, 0.2983171045780182, -1.4988230466842651, -0.5569493770599365, 0.9895052909851074, 0.4186452329158783, -1.1616575717926025, 0.051777664572000504, -0.3906719982624054, 0.9696670770645142, 0.42989975214004517, 1.0706983804702759, -1.6467828750610352, -0.011509314179420471, -0.39527425169944763, 0.10395253449678421, -1.2767667770385742, -1.5210040807724, 0.6206375956535339, 0.6238490343093872, 0.6589016914367676, -0.09686256945133209, 1.11941397190094, -1.0395992994308472, 0.7038951516151428, -1.1501880884170532, -1.590437650680542, -1.4228858947753906, -2.2213621139526367, -2.2923734188079834, 0.7361634969711304, -0.4850524365901947, -0.562141478061676, 2.0359768867492676, -1.046958088874817, -1.824974775314331, 1.2390999794006348, 0.2530795931816101, -0.07378789037466049, 2.3780925273895264, 0.11766092479228973, -0.65024334192276, 0.447045236825943, -0.7744652628898621, 0.7169360518455505, -0.24108478426933289, 1.342655897140503, 0.4617382287979126, -1.1284152269363403, 1.5892759561538696, -0.378918319940567, 0.6647348403930664, -0.6250448822975159, -0.5460355877876282, -0.7541517019271851, 0.4183875024318695, 1.8844777345657349, -0.30202120542526245, 1.5872739553451538, -0.25640568137168884, -1.5151492357254028, -1.7004200220108032, 0.9536924958229065, 0.3833940625190735, -0.67255038022995, 0.07685377448797226, -0.24143020808696747, 0.10861644148826599, -0.03707980737090111, 1.252426266670227, 1.1987078189849854, 0.8249499797821045, -0.2959575057029724, -0.8053895235061646, 0.0651480033993721, 0.006967789493501186, -0.8176056742668152, -1.7060306072235107, -0.4606904089450836, 0.11585113406181335, 0.5494669675827026, -1.1742756366729736, 1.69145667552948, 0.8530771732330322, 1.7776180505752563, 1.070749044418335, -0.14493060111999512, 1.491986632347107, 0.02486053854227066, 1.860723853111267, -0.4960300326347351, 0.6777419447898865, -0.29107075929641724, -1.1547691822052002, 0.8263639211654663, -0.3076257109642029, -2.050102949142456, -0.9493680596351624, -0.867083728313446, -0.13584555685520172, -0.8665128350257874, 0.9324019551277161, -0.3460444211959839, -1.4389762878417969, 0.2895093560218811, -0.6184800267219543, 0.059700094163417816, -1.137774109840393, 0.3327026963233948, 0.6568309664726257, -0.7241183519363403, 0.06677520275115967, -0.09512839466333389, -1.2757787704467773, -0.3971083164215088, 0.10921920090913773, 2.0480916500091553, -0.8360133767127991, 0.8341324329376221, 1.141874074935913, -0.8121894598007202, -0.030898135155439377, 0.22544685006141663, -0.2590271532535553, 0.7832098603248596, -1.053655982017517, -0.48646849393844604, 1.2428065538406372, -0.10318929702043533, -0.6375989317893982, 1.53358793258667, 0.6656230092048645, -0.950013279914856, -0.08514832705259323, -0.15620389580726624, -0.7126330137252808, -0.02546340599656105, -1.4863805770874023, -0.09910454601049423, 0.39479345083236694, -1.434056282043457, -0.521187424659729, -0.18129044771194458, 1.254333734512329, -0.21843121945858002, 1.3230209350585938, -0.48290297389030457, -0.3656095564365387, -0.3164423704147339, -0.29659250378608704, 0.09913105517625809, -0.09547177702188492, -0.6831561326980591, -0.009456315077841282, -0.8103889226913452, 0.29169362783432007, 1.3908973932266235, 0.40339234471321106, 0.06491542607545853, 0.5060376524925232, 1.1969221830368042, 0.36208516359329224, -0.017573589459061623, -0.9245160818099976, -1.522408127784729, 1.858938217163086, -1.3972712755203247, 2.0557587146759033, 0.6330978870391846, -0.06285932660102844, -1.7583565711975098, -1.8700100183486938, 1.2890263795852661, 1.2084839344024658, 2.3388710021972656, 0.5585834383964539, 0.33793139457702637, -0.8995538949966431, -0.653099536895752, 0.37429025769233704, -1.1334935426712036, -0.5697109699249268, 0.23701255023479462, 2.296926498413086, 1.7751883268356323, -0.508382260799408, -0.12001074850559235, -1.0507694482803345, 1.3185757398605347, -0.229398712515831, 0.20759715139865875, 1.94245183467865, -0.392200231552124, -1.1029449701309204, 1.3070893287658691, -2.2216949462890625, 0.01983104646205902, 2.0409762859344482, 0.2974057197570801, -0.03729107230901718, -1.2952109575271606, -0.670696496963501, -0.3230251371860504, -0.4792934060096741, -1.3738576173782349, 0.43418076634407043, -0.2416589856147766, -0.7423137426376343, -1.3382582664489746, 0.17312951385974884, -1.0676398277282715, -1.5584601163864136, 0.21023429930210114, 1.8442124128341675, 1.9583505392074585, -0.7841962575912476, 1.603390097618103, -0.3136930763721466, 0.293366402387619, 1.3039029836654663, 1.2780382633209229, 3.102515935897827, 1.8534719944000244, -1.2495324611663818, 0.6833846569061279, -0.16364188492298126, -0.43803003430366516, 1.2470024824142456, -1.2807133197784424, 1.382867693901062, -0.16977541148662567, -1.2140827178955078, -1.2820574045181274, 0.9337297081947327, 0.3777535855770111, 0.09051651507616043, -0.48728418350219727, 1.2186158895492554, 0.012811685912311077, 1.316436767578125, 0.6113020777702332, -0.3688139021396637, 0.735835075378418, -0.42905953526496887, -0.39812320470809937, 1.5175694227218628, 0.2809787094593048, -1.4290623664855957, -2.235426187515259, -0.13590338826179504, -0.8947161436080933, -0.038165293633937836, -0.5058871507644653, -1.060918927192688, 1.8400568962097168, 0.3537806272506714, -1.301084041595459, -0.22209244966506958, -0.3556777536869049, -0.6642552614212036, 2.914745807647705, -1.3087037801742554, -0.25441059470176697, -1.013877034187317, -0.7769297957420349, 1.7428021430969238, -1.1366150379180908, -0.09571108967065811, -0.9883175492286682, -0.5107710957527161, -1.420534610748291, -0.5148021578788757, 0.028659794479608536, -1.039077877998352, 0.93891841173172, 0.15826138854026794, -1.1933937072753906, -0.4245985150337219, -0.8541480302810669, 0.8575819730758667, -0.16931617259979248, 0.22358979284763336, 2.008800983428955, 0.3885481357574463, -0.3903941214084625, 0.7568002939224243, 1.158515453338623, 0.6485624313354492, -0.667687714099884, 0.35289719700813293, -0.7262195944786072, 0.268753319978714, -1.2774746417999268, 0.2690606117248535, -2.85317063331604, 0.5986818671226501, -0.10538951307535172, -0.09220365434885025, 0.06268927454948425, -1.2629454135894775, 1.035286545753479, 2.676638603210449, -1.1935737133026123, 0.3523198366165161, 0.21418023109436035, 1.235706090927124, -1.5700712203979492, 0.26852065324783325, -0.480678915977478, 2.0434839725494385, 0.1990550011396408, 1.1790547370910645, -0.45787203311920166, -2.2651472091674805, 0.7817069292068481, -1.3051003217697144, -1.3268711566925049, 0.8412408232688904, -0.9584888219833374, 0.1261017620563507, -1.3866171836853027, -0.2717802822589874, -0.8446961641311646, -1.1172298192977905, 0.7530008554458618, 0.11222638189792633, 0.3633863627910614, -0.4962652325630188, 0.31442636251449585, -2.24853515625, -1.4277610778808594, -0.18216194212436676, -0.9328928589820862, 0.4946443736553192, -0.3442884385585785, 0.7021645903587341, -0.29886478185653687, 0.035452503710985184, 0.3956056535243988, 1.5103667974472046, 3.3336172103881836, 0.2851136028766632, 0.36344751715660095, -0.14802323281764984, -0.9840867519378662, 1.4609293937683105, 0.8721966743469238, -0.11438628286123276, -0.4017591178417206, -1.0483548641204834, 1.1850712299346924, 1.8160796165466309, 0.9418022632598877, -0.04395659267902374, -0.8002934455871582, -0.6317105889320374, -0.06843775510787964, 0.14291773736476898, 0.3988017439842224, 0.8902492523193359, 0.15217794477939606, 0.12640754878520966, 1.4277822971343994, 1.1801807880401611, -0.5182712078094482, 0.24147501587867737, -0.7752553224563599, -0.492214173078537, 0.6833460330963135, 0.24551260471343994, 0.06635802239179611, 0.3906298577785492, -1.029988169670105, -0.4068070352077484, -0.43550461530685425, -0.872496485710144, -0.6623455882072449, -0.4823842942714691, -0.40804317593574524, 1.5712159872055054, 0.059499017894268036, -0.5720519423484802, -0.07152265310287476, -0.8992599844932556, -0.13353115320205688, -1.082371473312378, 0.2446286380290985, -0.10465144366025925, -0.21130387485027313, -0.14117147028446198, 1.6928309202194214, -1.0290281772613525, -1.9612585306167603, 0.2787981331348419, 0.28711822628974915, -0.2160462737083435, 0.22412247955799103, 1.538981318473816, 0.6763842701911926, 1.553436279296875, 1.2833400964736938, 0.9487093687057495, -0.5354525446891785, -1.3441084623336792, 0.6714987754821777, 0.9334880709648132, -1.3325026035308838, 0.8013332486152649, 0.03774517774581909, -0.5456496477127075, 0.5931293368339539, 1.1882303953170776, 0.5233504176139832, -1.86640465259552, 0.6626731753349304, -0.924662709236145, 0.7297888994216919, 0.7414219975471497, 0.7323245406150818, 0.20419128239154816, 0.849991500377655, -1.1704249382019043, -1.213655948638916, -0.7453072667121887, -0.7012578845024109, 1.8829091787338257, -0.22028067708015442, 0.6910951137542725, -0.32300567626953125, -1.3000290393829346, 0.05939380079507828, 0.62175452709198, 0.38083136081695557, -0.5058382749557495, 0.8146708607673645, -0.6381246447563171, -0.9661306142807007, -1.446619987487793, -0.3800426721572876, -1.09791100025177, -0.9979904294013977, 1.1021825075149536, 0.7876140475273132, 0.20188987255096436, 1.8250806331634521, 0.7240736484527588, 0.27720460295677185, -2.6074507236480713, 0.9190492630004883, 0.12301142513751984, -0.019594639539718628, 0.7162444591522217, 0.331781268119812, 0.8934859037399292, -0.0826798602938652, 0.45785248279571533, -2.3622701168060303, 2.3054535388946533, -0.27316033840179443, 0.5805358290672302, -0.08532039076089859, -0.146323099732399, 1.0862003564834595, 0.541252613067627, 0.5180238485336304, -1.0503020286560059, 0.5390350222587585, -0.48770374059677124, 1.3051162958145142, 0.9194231033325195, -0.796985387802124, -0.06426136940717697, 1.449755311012268, 0.6014696359634399, -0.48902735114097595, -0.8905626535415649, -1.0016945600509644, 0.9941170811653137, 1.6142133474349976, -0.007440479937940836, -0.08952158689498901, 0.874401867389679, 0.5805982947349548, -1.3093194961547852, -0.02302512899041176, -0.6548246145248413, -0.6247661709785461, 1.7319364547729492, 2.070815324783325, -0.16090458631515503, -0.2710130214691162, -0.6633100509643555, -1.1577214002609253, 0.8598505258560181, 0.061063334345817566, 0.10449159890413284, 0.7056928873062134, -0.6642378568649292, 1.0195915699005127, 0.9837949275970459, 0.8989866375923157, 0.27608388662338257, 0.4560435712337494, 0.44306468963623047, -0.3487522304058075, -1.2687177658081055, -0.12175730615854263, -1.0534077882766724, -2.556642532348633, 0.4301220774650574, -0.2824680805206299, -1.329679012298584, 0.006588012911379337, -1.1109143495559692, 0.9882147312164307, -0.5428562760353088, -1.0377562046051025, -1.5229476690292358, 0.15727628767490387, 0.12482982873916626, 1.0076755285263062, -1.5418505668640137, -0.043207358568906784, 1.211491346359253, 0.9607201814651489, -0.7408266663551331, 0.9624181985855103, 0.2627480626106262, 1.1245135068893433, 0.8888536691665649, -0.5425194501876831, 0.5658836364746094, -0.15334436297416687, -1.412441372871399, 0.44065243005752563, 1.1473418474197388, 0.20933479070663452, 1.571962594985962, -0.4819925129413605, 0.03829082474112511, 0.4085403084754944, -0.6624510288238525, -0.4709652364253998, -0.6320334672927856, 0.6435755491256714, 0.06027019023895264, -0.8280728459358215, -0.03881173953413963, 0.03794557601213455, -0.33495596051216125, 0.21854865550994873, -1.405476689338684, -0.0002378113567829132, -0.3926210105419159, -0.7327811121940613, -1.1825664043426514, -0.05737365409731865, 1.3666043281555176, -0.837750256061554, -0.0417487733066082, 0.4589110314846039, 0.18460123240947723, 0.5051772594451904, 0.5832399129867554, -0.6646803021430969, -0.2829432785511017, -0.31196990609169006, -0.34100526571273804, 0.3290368616580963, 1.396464228630066, -0.22712929546833038, -1.0103603601455688, 0.844415009021759, -0.2122449278831482, 0.03249861299991608, 1.8646845817565918, 0.11321226507425308, -0.6965519785881042, 0.254646360874176, -0.7832819223403931, 1.9172366857528687, 1.7508007287979126, 1.3034474849700928, -0.04464971646666527, -0.8605297803878784, 0.512507975101471, -0.36053961515426636, -0.44326066970825195, 0.7738862037658691, 0.3947124481201172, -0.20949821174144745, -1.3882243633270264, 0.8757727742195129, 1.2696614265441895, -0.8896417617797852, -0.7161647081375122, 0.13999684154987335, -0.803219735622406, 1.0532355308532715, 0.6024032235145569, 0.41766154766082764, 0.37709152698516846, 1.6295729875564575, 0.7888979911804199, -0.4026941955089569, 0.4185236394405365, 0.6537744402885437, 0.022424209862947464, -2.1386611461639404, -1.2186815738677979, 0.3870403468608856, -0.6657257080078125, -1.6434154510498047, 1.3858522176742554, -1.1526235342025757, -1.023205280303955, 0.6375443935394287, 0.16574108600616455, 1.4671865701675415, 0.3568466305732727, 1.5130641460418701, 2.0893447399139404, 0.7994829416275024, 0.3770703077316284, 1.281718134880066, -0.12281554937362671, -0.3963344395160675, 1.8016167879104614, -0.43939208984375, 0.4152927100658417, 0.9669767618179321, -0.2088271528482437, -1.0962204933166504, -0.8231175541877747, -1.4072004556655884, -0.7307182550430298, 1.0624202489852905, 0.16375619173049927, -1.1494659185409546, 0.17090657353401184, 1.5574594736099243, 0.009102127514779568, -0.36370816826820374, 0.6746591329574585, 0.40704694390296936, -0.7879204750061035, -0.04476923495531082, -0.9219443798065186, 0.6410041451454163, -0.14045187830924988, -0.25351059436798096, 0.2877473831176758, 0.4992193281650543, 1.4303903579711914, -0.05349017679691315, 0.22374175488948822, 1.1940370798110962, -1.3936786651611328, 1.51028573513031, -0.6263137459754944, 0.2249789983034134, -2.3947958946228027, 1.3952211141586304, -0.8420349359512329, 1.8819714784622192, -2.6884090900421143, 0.5519919395446777, -0.5569448471069336, -0.3966025114059448, 0.30390653014183044, -0.49318668246269226, 0.07564495503902435, -0.03621060401201248, -1.0862762928009033, 0.09995092451572418, -0.5837796330451965, 0.5861637592315674, 1.1239418983459473, 1.3697338104248047, -1.2413876056671143, -0.37421610951423645, -1.792362928390503, -0.02092820778489113, -0.7014376521110535, 0.39029455184936523, -2.047210931777954, -0.24737265706062317, -1.8100218772888184, -2.4224534034729004, -1.2591443061828613, -0.7685083150863647, 1.0863840579986572, 0.08891678601503372, -0.9049298167228699, 1.2307714223861694, -0.36646682024002075, -1.8884910345077515, 1.1657243967056274, -2.1037368774414062 ]
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
Hi! We've recently introduced a new Image feature that yields PIL Images (and caches transforms on them) instead of arrays. However, this feature requires a custom transform to yield np arrays directly: ```python ddict = datasets.load_dataset("mnist") def pil_image_to_array(batch): return {"image": [np.array(img) for img in batch["image"]]} # or jnp.array(img) for Jax ddict.set_transform(pil_image_to_array, columns="image", output_all_columns=True) ``` [Docs](https://huggingface.co/docs/datasets/master/process.html#format-transform) on `set_transform`. Also, the approach proposed by @cgarciae is not the best because it loads the entire column in memory. @albertvillanova @lhoestq WDYT? The Audio and the Image feature currently don't support the TF/Jax/PT Formatters, but for the Numpy Formatter maybe it makes more sense to return np arrays (and not a dict in the case of the Audio feature or a PIL Image object in the case of the Image feature).
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested.
1,014
127
set_format("np") no longer works for Image data ## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested. Hi! We've recently introduced a new Image feature that yields PIL Images (and caches transforms on them) instead of arrays. However, this feature requires a custom transform to yield np arrays directly: ```python ddict = datasets.load_dataset("mnist") def pil_image_to_array(batch): return {"image": [np.array(img) for img in batch["image"]]} # or jnp.array(img) for Jax ddict.set_transform(pil_image_to_array, columns="image", output_all_columns=True) ``` [Docs](https://huggingface.co/docs/datasets/master/process.html#format-transform) on `set_transform`. Also, the approach proposed by @cgarciae is not the best because it loads the entire column in memory. @albertvillanova @lhoestq WDYT? The Audio and the Image feature currently don't support the TF/Jax/PT Formatters, but for the Numpy Formatter maybe it makes more sense to return np arrays (and not a dict in the case of the Audio feature or a PIL Image object in the case of the Image feature).
[ -1.2623177766799927, -0.9068583250045776, -0.7803390622138977, 1.4795423746109009, -0.11258262395858765, -1.3199563026428223, 0.16714473068714142, -1.0773396492004395, 1.7790836095809937, -0.8874269723892212, 0.3446097671985626, -1.7133660316467285, 0.07957915961742401, -0.5637134909629822, -0.7820485830307007, -0.8676395416259766, -0.4156743586063385, -0.7193006873130798, 1.0637561082839966, 2.368338108062744, 1.244304895401001, -1.3213648796081543, 2.7309138774871826, 0.7108075022697449, -0.16995805501937866, -0.9456276297569275, 0.4586368501186371, 0.017353840172290802, -1.2415530681610107, -0.461487740278244, -0.8597493171691895, -0.07978952676057816, -0.5407286286354065, -0.5657286643981934, -0.12901219725608826, 0.38725563883781433, -0.39942196011543274, -0.468688428401947, -0.6212723255157471, -0.7805015444755554, 0.3943038880825043, -0.3618123233318329, 0.9101442694664001, -0.3452470600605011, 1.8744378089904785, -0.6214179992675781, 0.42968064546585083, 0.678297758102417, 1.299970269203186, 0.24980677664279938, -0.012366029433906078, 0.33492255210876465, 0.3677511513233185, -0.07836120575666428, 0.5400901436805725, 1.2492846250534058, 0.6972360014915466, 0.5275382399559021, 0.7766393423080444, -2.191814422607422, 1.2976449728012085, -1.124643087387085, 0.2865300178527832, 1.4008835554122925, -0.9258409738540649, 0.37969642877578735, -1.7128715515136719, -0.04316375404596329, 0.5594061613082886, -2.293813467025757, 0.25063490867614746, -1.3879421949386597, -0.48765507340431213, 1.0393198728561401, 0.3501719534397125, -1.1557964086532593, 0.15057887136936188, -0.389743834733963, 1.0027332305908203, 0.43405306339263916, 1.1237729787826538, -1.658104419708252, -0.0551728680729866, -0.30512937903404236, 0.09492141753435135, -1.2283154726028442, -1.568898320198059, 0.5186993479728699, 0.6116621494293213, 0.5991368889808655, -0.07838942110538483, 1.0990649461746216, -1.0089104175567627, 0.7517942786216736, -1.030324101448059, -1.6020088195800781, -1.4413033723831177, -2.2153844833374023, -2.2325735092163086, 0.7735298275947571, -0.5109319090843201, -0.5379803776741028, 2.0846452713012695, -0.9970247149467468, -1.7923663854599, 1.16276216506958, 0.26919910311698914, 0.029446206986904144, 2.3866851329803467, 0.16523651778697968, -0.6986986994743347, 0.4600772559642792, -0.7493203282356262, 0.799592912197113, -0.3377833664417267, 1.331230878829956, 0.40409696102142334, -1.0995632410049438, 1.5488442182540894, -0.44637951254844666, 0.6105028390884399, -0.6197140216827393, -0.5411203503608704, -0.7755535840988159, 0.44656479358673096, 1.8633917570114136, -0.28389906883239746, 1.6063913106918335, -0.30194032192230225, -1.5473177433013916, -1.7109642028808594, 0.8781610727310181, 0.4483124315738678, -0.7654704451560974, 0.09817475825548172, -0.3029479682445526, 0.11277955025434494, -0.045918986201286316, 1.2229629755020142, 1.2692828178405762, 0.7702946662902832, -0.3592742681503296, -0.8030126690864563, 0.11461678892374039, -0.06401125341653824, -0.769734263420105, -1.6940157413482666, -0.3980737030506134, 0.1970137059688568, 0.5114794373512268, -1.2239741086959839, 1.7265816926956177, 0.8582510948181152, 1.8339869976043701, 1.060411810874939, -0.30708223581314087, 1.4773004055023193, 0.0987011194229126, 1.8541643619537354, -0.5064902305603027, 0.6896456480026245, -0.3244408965110779, -1.1573430299758911, 0.8413736820220947, -0.31729528307914734, -2.0664498805999756, -0.8611553907394409, -0.7577665448188782, -0.14975836873054504, -0.7803544402122498, 0.8858793377876282, -0.3274310827255249, -1.3831119537353516, 0.24579809606075287, -0.6398028135299683, 0.11717028170824051, -1.1984641551971436, 0.27202457189559937, 0.7212453484535217, -0.7209221124649048, 0.09539090842008591, -0.10815025866031647, -1.2864753007888794, -0.36630740761756897, 0.23327770829200745, 2.001102924346924, -0.7304180860519409, 0.8825750946998596, 1.156851053237915, -0.7403085231781006, 0.029549051076173782, 0.2392999827861786, -0.27118512988090515, 0.877174437046051, -1.0237853527069092, -0.4714035987854004, 1.184347152709961, -0.18355168402194977, -0.614719033241272, 1.4773083925247192, 0.6794168949127197, -1.023441195487976, -0.16764391958713531, -0.0832490548491478, -0.8083977699279785, -0.021034419536590576, -1.521040678024292, -0.10049199312925339, 0.4359823167324066, -1.525465488433838, -0.48711568117141724, -0.22027581930160522, 1.3025799989700317, -0.2729228436946869, 1.4452284574508667, -0.44226354360580444, -0.16614732146263123, -0.4001256823539734, -0.3348265290260315, 0.11149929463863373, -0.1505444049835205, -0.6474934816360474, 0.0986294150352478, -0.7777060866355896, 0.290588915348053, 1.3971441984176636, 0.3641396760940552, 0.06990121304988861, 0.4594869911670685, 1.166016936302185, 0.38591569662094116, -0.06789702922105789, -0.8938032388687134, -1.4947696924209595, 1.9762877225875854, -1.3739651441574097, 2.0301566123962402, 0.7837204337120056, -0.04422541335225105, -1.7740678787231445, -1.8831342458724976, 1.3226256370544434, 1.1740878820419312, 2.3585429191589355, 0.5788072943687439, 0.4371316134929657, -0.8642369508743286, -0.6364390254020691, 0.4131269156932831, -1.0520908832550049, -0.6694223284721375, 0.14751428365707397, 2.2691476345062256, 1.7781485319137573, -0.45974552631378174, -0.1723787784576416, -0.9905535578727722, 1.352022647857666, -0.20976996421813965, 0.2080470472574234, 1.9400020837783813, -0.29799261689186096, -1.0528169870376587, 1.3064481019973755, -2.3030247688293457, 0.07913611829280853, 1.9707465171813965, 0.32330602407455444, -0.0006329910829663277, -1.3806391954421997, -0.6194436550140381, -0.3494800925254822, -0.4335903227329254, -1.254752278327942, 0.47448253631591797, -0.21260672807693481, -0.7677289247512817, -1.4221135377883911, 0.14277531206607819, -1.0807386636734009, -1.653260588645935, 0.23186038434505463, 1.8972597122192383, 1.9568995237350464, -0.800377607345581, 1.56992506980896, -0.30775728821754456, 0.17550776898860931, 1.2575386762619019, 1.2807036638259888, 3.1449084281921387, 1.8365224599838257, -1.3222277164459229, 0.6123334169387817, -0.23148509860038757, -0.45110440254211426, 1.156712532043457, -1.2454328536987305, 1.3701456785202026, -0.07828868925571442, -1.2551343441009521, -1.2709050178527832, 0.9720279574394226, 0.44898825883865356, 0.07165016978979111, -0.5104684829711914, 1.2175456285476685, 0.05166724696755409, 1.3204600811004639, 0.5785102248191833, -0.3887869119644165, 0.6383737325668335, -0.4182187020778656, -0.5161365270614624, 1.5642565488815308, 0.17204225063323975, -1.4583853483200073, -2.2556610107421875, -0.18674993515014648, -0.8879623413085938, 0.027025137096643448, -0.5417211651802063, -1.0482805967330933, 1.7705450057983398, 0.34377235174179077, -1.269911766052246, -0.3227398991584778, -0.43904146552085876, -0.6446244716644287, 2.808903217315674, -1.3533575534820557, -0.18775442242622375, -0.9950609803199768, -0.681077241897583, 1.6562241315841675, -1.201805591583252, -0.1563912332057953, -0.9878484606742859, -0.5990685820579529, -1.3114044666290283, -0.5275030732154846, -0.006759362760931253, -0.9446386694908142, 0.8228817582130432, 0.22182300686836243, -1.1384164094924927, -0.39941808581352234, -0.8645351529121399, 0.8798431754112244, -0.17024488747119904, 0.17181380093097687, 1.9249037504196167, 0.38577359914779663, -0.37615445256233215, 0.8028029203414917, 1.1700468063354492, 0.6190425157546997, -0.6035280227661133, 0.22242416441440582, -0.6836749315261841, 0.29588407278060913, -1.3144195079803467, 0.24131019413471222, -2.8633506298065186, 0.6041398644447327, -0.10333144664764404, -0.0841430202126503, 0.03942473232746124, -1.2465896606445312, 1.0819655656814575, 2.6433634757995605, -1.1650454998016357, 0.406227707862854, 0.3251391649246216, 1.1923707723617554, -1.6018236875534058, 0.32077574729919434, -0.4802887737751007, 2.077591896057129, 0.2130860537290573, 1.1937733888626099, -0.46921828389167786, -2.2728445529937744, 0.666605532169342, -1.2583954334259033, -1.2034074068069458, 0.8710320591926575, -0.9083601832389832, 0.14694738388061523, -1.4298959970474243, -0.32335200905799866, -0.8106505870819092, -1.1667639017105103, 0.742333173751831, 0.08470914512872696, 0.36822509765625, -0.5601251125335693, 0.31416159868240356, -2.2633471488952637, -1.3766919374465942, -0.18664535880088806, -0.9870670437812805, 0.44323599338531494, -0.38787683844566345, 0.6984645128250122, -0.17870567739009857, 0.052412983030080795, 0.39023372530937195, 1.4798481464385986, 3.4026286602020264, 0.26387840509414673, 0.39563533663749695, -0.23006056249141693, -0.9492864608764648, 1.4180271625518799, 0.9269534349441528, -0.16727370023727417, -0.48262372612953186, -1.0553243160247803, 1.2371852397918701, 1.8711965084075928, 0.9590083360671997, -0.01989317126572132, -0.8299092054367065, -0.7920581102371216, -0.034611672163009644, 0.15196208655834198, 0.40441691875457764, 0.8860047459602356, 0.11400416493415833, 0.10819350928068161, 1.4580557346343994, 1.184032917022705, -0.4824585020542145, 0.3303441107273102, -0.8066190481185913, -0.5005430579185486, 0.4702128469944, 0.3317783772945404, 0.03895959258079529, 0.41132891178131104, -0.9995904564857483, -0.3220478594303131, -0.40793997049331665, -0.8243880867958069, -0.6787962317466736, -0.3808860778808594, -0.3447558879852295, 1.6414246559143066, 0.09452692419290543, -0.5194931626319885, -0.032928500324487686, -0.8386045694351196, -0.15489992499351501, -1.0775787830352783, 0.2788265347480774, -0.0642804279923439, -0.16916829347610474, -0.13792388141155243, 1.711815357208252, -0.9444695115089417, -2.029237747192383, 0.2054295688867569, 0.22174105048179626, -0.2743072807788849, 0.22401347756385803, 1.6571407318115234, 0.5924769043922424, 1.4821014404296875, 1.3204408884048462, 0.9333721399307251, -0.6163263320922852, -1.2956706285476685, 0.7024153470993042, 0.9121469855308533, -1.3562170267105103, 0.7948713302612305, -0.0705832839012146, -0.5214542746543884, 0.6243347525596619, 1.2322568893432617, 0.4676871597766876, -1.9467216730117798, 0.7835610508918762, -0.9612787961959839, 0.7744147777557373, 0.6962296366691589, 0.6812706589698792, 0.20966847240924835, 0.7715200781822205, -1.218774437904358, -1.2280492782592773, -0.7098516225814819, -0.6986851692199707, 1.9008463621139526, -0.27976325154304504, 0.6268070936203003, -0.26679638028144836, -1.3255696296691895, -0.05435588210821152, 0.6585705876350403, 0.4060527980327606, -0.45891663432121277, 0.8424112796783447, -0.6290110349655151, -1.010258436203003, -1.4292795658111572, -0.40526238083839417, -1.0525211095809937, -0.9298778176307678, 1.0386680364608765, 0.8403846621513367, 0.20349478721618652, 1.828302264213562, 0.6982859969139099, 0.31701356172561646, -2.605525016784668, 0.9527000784873962, 0.2061775028705597, -0.08848048746585846, 0.8504458069801331, 0.35785913467407227, 0.9276865124702454, -0.01203231792896986, 0.46466192603111267, -2.4119608402252197, 2.308168649673462, -0.252241849899292, 0.6703706383705139, -0.06761211156845093, -0.19238126277923584, 1.1374866962432861, 0.5589744448661804, 0.5231514573097229, -1.0717166662216187, 0.6282310485839844, -0.5316026210784912, 1.2498003244400024, 0.9183812141418457, -0.7853378057479858, -0.06024020537734032, 1.4477077722549438, 0.5153022408485413, -0.53922438621521, -0.9293861389160156, -1.0688363313674927, 0.9684237241744995, 1.7018847465515137, -0.00537090003490448, 0.011246361769735813, 0.8126541376113892, 0.6258001327514648, -1.263798713684082, 0.11313251405954361, -0.7270954847335815, -0.694007933139801, 1.6626819372177124, 2.011969566345215, -0.17657461762428284, -0.24293945729732513, -0.6435829997062683, -1.298958420753479, 0.778741717338562, -0.030342020094394684, 0.16010639071464539, 0.6576160788536072, -0.736473798751831, 1.0659444332122803, 1.0036449432373047, 0.9260667562484741, 0.16462281346321106, 0.3491867482662201, 0.41814562678337097, -0.36510634422302246, -1.2337108850479126, -0.17682716250419617, -1.1198064088821411, -2.4735119342803955, 0.38460907340049744, -0.17373943328857422, -1.408165454864502, 0.02694026753306389, -1.0477066040039062, 0.9606009721755981, -0.4934687316417694, -1.0915958881378174, -1.5660617351531982, 0.18735547363758087, 0.05342767760157585, 0.9988630414009094, -1.5075669288635254, -0.1571677178144455, 1.2138625383377075, 0.9391161799430847, -0.7290515899658203, 0.9787359237670898, 0.2008448988199234, 1.026843547821045, 0.8564068675041199, -0.4784397780895233, 0.4951001703739166, -0.021613571792840958, -1.3951267004013062, 0.4186707139015198, 1.0979653596878052, 0.21639618277549744, 1.5522664785385132, -0.5254486799240112, 0.05765976011753082, 0.3977762460708618, -0.5623467564582825, -0.488437682390213, -0.5958492159843445, 0.6332905292510986, 0.01369910966604948, -0.8337976336479187, 0.0018126610666513443, -0.008459231816232204, -0.31406551599502563, 0.16816313564777374, -1.437224268913269, -0.07615230977535248, -0.39214056730270386, -0.6583011150360107, -1.1699811220169067, -0.011978676542639732, 1.374393343925476, -0.8027786612510681, -0.12559734284877777, 0.5292903184890747, 0.31140249967575073, 0.48668983578681946, 0.5951597094535828, -0.6501919031143188, -0.27799707651138306, -0.2752988934516907, -0.31957805156707764, 0.3838905692100525, 1.3511755466461182, -0.1737019419670105, -0.9372413158416748, 0.7416572570800781, -0.31183117628097534, 0.01684604585170746, 1.8903826475143433, 0.05494622886180878, -0.7394552230834961, 0.3432418704032898, -0.7228068113327026, 1.8911399841308594, 1.7824549674987793, 1.2931733131408691, -0.0604068785905838, -0.9425585865974426, 0.5756308436393738, -0.32388558983802795, -0.3886931240558624, 0.8973678350448608, 0.3947528302669525, -0.2299383580684662, -1.5250214338302612, 0.7114657759666443, 1.2186002731323242, -0.9175304174423218, -0.7133874893188477, 0.13973942399024963, -0.8169159293174744, 1.0936330556869507, 0.6476954221725464, 0.3959464132785797, 0.2891021966934204, 1.6530804634094238, 0.8304608464241028, -0.4163930416107178, 0.4804482161998749, 0.6122919917106628, -0.12868933379650116, -2.1573946475982666, -1.1949149370193481, 0.32432618737220764, -0.5696118474006653, -1.5772899389266968, 1.4013831615447998, -1.1519540548324585, -1.001920223236084, 0.5833927392959595, 0.07382601499557495, 1.4141666889190674, 0.2994645833969116, 1.571686863899231, 2.1208417415618896, 0.8749879598617554, 0.3143227994441986, 1.2223902940750122, -0.14243009686470032, -0.4041176438331604, 1.8039921522140503, -0.42303666472435, 0.41225701570510864, 1.0214568376541138, -0.34516429901123047, -1.0756183862686157, -0.7946322560310364, -1.3484361171722412, -0.777147114276886, 1.0927674770355225, 0.1515858769416809, -1.0192067623138428, 0.24429531395435333, 1.4974696636199951, 0.12058272212743759, -0.3254338204860687, 0.6908083558082581, 0.48315414786338806, -0.783136785030365, -0.11305835843086243, -0.8631043434143066, 0.6211131811141968, -0.1540057510137558, -0.34531885385513306, 0.2925768792629242, 0.44237807393074036, 1.3854115009307861, -0.04438576102256775, 0.20706798136234283, 1.1627461910247803, -1.4228633642196655, 1.5139532089233398, -0.6354327201843262, 0.26606956124305725, -2.372373580932617, 1.4061294794082642, -0.7853189706802368, 1.9366159439086914, -2.678107976913452, 0.5488268733024597, -0.6132420897483826, -0.4485004246234894, 0.38317885994911194, -0.43780872225761414, 0.13296477496623993, -0.12312175333499908, -1.1495989561080933, -0.03517189249396324, -0.6084837913513184, 0.5917378664016724, 1.119539499282837, 1.4062526226043701, -1.1531693935394287, -0.33642348647117615, -1.6749244928359985, -0.03874935954809189, -0.6905255913734436, 0.34704864025115967, -2.0007164478302, -0.2031981199979782, -1.8819491863250732, -2.4068384170532227, -1.3285588026046753, -0.7704046964645386, 1.0959140062332153, 0.1511964052915573, -0.8492211699485779, 1.2751367092132568, -0.41962912678718567, -1.863491415977478, 1.089796781539917, -2.130833864212036 ]
https://github.com/huggingface/datasets/issues/3553
set_format("np") no longer works for Image data
Yes I agree it should return arrays and not a PIL image (and possible an array instead of a dict for audio data). I'm currently finishing some code refactoring of the image and audio and opening a PR today. Maybe we can look into that after the refactoring
## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested.
1,014
48
set_format("np") no longer works for Image data ## Describe the bug `dataset.set_format("np")` no longer works for image data, previously you could load the MNIST like this: ```python dataset = load_dataset("mnist") dataset.set_format("np") X_train = dataset["train"]["image"][..., None] # <== No longer a numpy array ``` but now it doesn't work, `set_format("np")` seems to have no effect and the dataset just returns a list/array of PIL images instead of numpy arrays as requested. Yes I agree it should return arrays and not a PIL image (and possible an array instead of a dict for audio data). I'm currently finishing some code refactoring of the image and audio and opening a PR today. Maybe we can look into that after the refactoring
[ -1.3164483308792114, -0.9335954785346985, -0.7882120013237, 1.4931374788284302, -0.18884465098381042, -1.329429030418396, 0.1605464071035385, -1.1033275127410889, 1.732370138168335, -1.0291200876235962, 0.4050042927265167, -1.713147759437561, 0.1494773030281067, -0.496489554643631, -0.7171531319618225, -0.9873706698417664, -0.39474111795425415, -0.6673729419708252, 1.0960767269134521, 2.3619189262390137, 1.182801365852356, -1.3181647062301636, 2.6994969844818115, 0.7567030191421509, -0.1334947645664215, -1.0445127487182617, 0.5275184512138367, 0.09441635012626648, -1.172631859779358, -0.3923179805278778, -0.9061046838760376, -0.12331885099411011, -0.450285404920578, -0.5548708438873291, -0.22189977765083313, 0.3509701192378998, -0.4091495871543884, -0.4559541642665863, -0.5448130965232849, -0.8457456231117249, 0.3993014693260193, -0.42449837923049927, 0.8584311604499817, -0.4259547293186188, 1.9251675605773926, -0.6019929051399231, 0.43720853328704834, 0.6324440836906433, 1.2580090761184692, 0.23885373771190643, 0.06197908893227577, 0.23308388888835907, 0.4552825391292572, -0.05622854456305504, 0.418250173330307, 1.170842170715332, 0.5991331338882446, 0.6089237928390503, 0.8270284533500671, -2.1406731605529785, 1.2676374912261963, -1.0924534797668457, 0.2920149266719818, 1.3533028364181519, -0.9328874349594116, 0.377755731344223, -1.6298984289169312, -0.11431651562452316, 0.5352745056152344, -2.246020793914795, 0.2406288981437683, -1.4091802835464478, -0.5072124600410461, 0.9297927021980286, 0.37080100178718567, -1.1523874998092651, 0.07044707238674164, -0.4398180842399597, 0.9714098572731018, 0.4622716009616852, 1.093182921409607, -1.5945117473602295, -0.05449565872550011, -0.4152849614620209, 0.004923585802316666, -1.3116414546966553, -1.4778246879577637, 0.5543431043624878, 0.6424151062965393, 0.6290009617805481, -0.08465787023305893, 1.0759503841400146, -0.984688937664032, 0.7390285134315491, -1.058821678161621, -1.5429507493972778, -1.3871829509735107, -2.2661051750183105, -2.245612382888794, 0.8115057349205017, -0.4818844497203827, -0.5898751616477966, 2.058335542678833, -1.0763448476791382, -1.8245317935943604, 1.2297688722610474, 0.2100195735692978, 0.0010979659855365753, 2.396186113357544, 0.1619807928800583, -0.6538488268852234, 0.4719838798046112, -0.7716241478919983, 0.7847139835357666, -0.37090998888015747, 1.367834448814392, 0.4726269245147705, -1.0679168701171875, 1.595350742340088, -0.42209380865097046, 0.6099827885627747, -0.6536754965782166, -0.5630826950073242, -0.8416756987571716, 0.4549197256565094, 1.852047324180603, -0.25652000308036804, 1.6544945240020752, -0.2931353747844696, -1.5558953285217285, -1.764350175857544, 0.8627949953079224, 0.41969040036201477, -0.6953632831573486, 0.1176818385720253, -0.220199316740036, 0.07130048424005508, 0.001141122542321682, 1.2088526487350464, 1.2052772045135498, 0.850243091583252, -0.30092504620552063, -0.8177523612976074, 0.13864852488040924, -0.022598033770918846, -0.8190664052963257, -1.6820738315582275, -0.4796360731124878, 0.075677290558815, 0.566307783126831, -1.146874189376831, 1.7306350469589233, 0.9211735129356384, 1.8191217184066772, 1.093297004699707, -0.18348272144794464, 1.4874136447906494, 0.050825975835323334, 1.863864779472351, -0.4887921214103699, 0.7555903196334839, -0.23881851136684418, -1.1380808353424072, 0.7778230905532837, -0.3631434142589569, -2.0096287727355957, -0.9256534576416016, -0.8912045359611511, -0.13486997783184052, -0.8201245665550232, 0.9413617253303528, -0.4484955072402954, -1.3657207489013672, 0.2826571464538574, -0.6308801770210266, 0.05460082367062569, -1.1873472929000854, 0.28143808245658875, 0.7128390073776245, -0.7096758484840393, 0.054600153118371964, -0.06496987491846085, -1.2642163038253784, -0.3968609869480133, 0.08747904002666473, 2.0751419067382812, -0.8143401741981506, 0.8537201285362244, 1.0719698667526245, -0.7529202103614807, 0.01755582168698311, 0.25760993361473083, -0.16748856008052826, 0.8139091730117798, -1.0153833627700806, -0.4749075174331665, 1.2158747911453247, -0.17410637438297272, -0.5944415330886841, 1.539168357849121, 0.6770305037498474, -0.9170441627502441, -0.08016204088926315, -0.11037084460258484, -0.7635709047317505, -0.06081564724445343, -1.5274373292922974, -0.11735319346189499, 0.3394336402416229, -1.417719841003418, -0.5253364443778992, -0.2082495242357254, 1.2739834785461426, -0.20286710560321808, 1.3334944248199463, -0.48818209767341614, -0.32430410385131836, -0.3998511731624603, -0.3592667877674103, 0.18010438978672028, -0.15260550379753113, -0.6467898488044739, 0.07771819829940796, -0.7848109602928162, 0.26004284620285034, 1.4119669198989868, 0.4068513810634613, 0.12960174679756165, 0.5311399698257446, 1.1703824996948242, 0.3572964370250702, -0.036740850657224655, -0.886824369430542, -1.4651209115982056, 1.9261244535446167, -1.4186300039291382, 2.0403482913970947, 0.6908565759658813, -0.11183036118745804, -1.7404993772506714, -1.839453935623169, 1.2839562892913818, 1.2815910577774048, 2.3264167308807373, 0.6055983304977417, 0.353683739900589, -0.9293420314788818, -0.670293390750885, 0.3710850477218628, -1.1694360971450806, -0.632839560508728, 0.12043743580579758, 2.249390125274658, 1.7488797903060913, -0.5051002502441406, -0.1251360923051834, -1.0481104850769043, 1.3099384307861328, -0.12213269621133804, 0.19787243008613586, 1.9436390399932861, -0.3792148530483246, -1.12404465675354, 1.2767935991287231, -2.210002899169922, 0.01388977188616991, 1.9851274490356445, 0.39434874057769775, -0.04723965376615524, -1.3615039587020874, -0.6940208077430725, -0.29446759819984436, -0.4898765981197357, -1.3465228080749512, 0.48511865735054016, -0.3276042640209198, -0.7461138367652893, -1.4184964895248413, 0.17873066663742065, -1.0276902914047241, -1.6133384704589844, 0.2752991020679474, 1.8146570920944214, 1.9420346021652222, -0.7639031410217285, 1.5958583354949951, -0.2274680733680725, 0.2343488335609436, 1.3127557039260864, 1.2268675565719604, 3.0798985958099365, 1.8953394889831543, -1.2000126838684082, 0.6031187176704407, -0.19428236782550812, -0.42733511328697205, 1.172629714012146, -1.2447813749313354, 1.4156419038772583, -0.10255289822816849, -1.218174934387207, -1.3106410503387451, 0.9187629222869873, 0.36234429478645325, 0.08574885874986649, -0.5154550075531006, 1.3198928833007812, -0.008168984204530716, 1.2914626598358154, 0.5816100239753723, -0.316701203584671, 0.6786854267120361, -0.4176488518714905, -0.4772898256778717, 1.584439754486084, 0.24184401333332062, -1.4973881244659424, -2.2614965438842773, -0.18803876638412476, -0.83476322889328, -0.03527877852320671, -0.5763092637062073, -1.106520652770996, 1.84679114818573, 0.39088693261146545, -1.2868434190750122, -0.26845383644104004, -0.4171452820301056, -0.7674217820167542, 2.8918726444244385, -1.3629968166351318, -0.24948781728744507, -1.0160070657730103, -0.6208335161209106, 1.6797939538955688, -1.2226500511169434, -0.07321371138095856, -0.9747357964515686, -0.518298864364624, -1.3903640508651733, -0.4472392797470093, -0.03850983455777168, -0.9920594692230225, 0.8791403770446777, 0.23174865543842316, -1.0697057247161865, -0.3572741448879242, -0.8449679613113403, 0.807630181312561, -0.08334314823150635, 0.3041830360889435, 1.9811533689498901, 0.4171494245529175, -0.33305925130844116, 0.7415297627449036, 1.1962792873382568, 0.7002160549163818, -0.6751481890678406, 0.2891969382762909, -0.7045711278915405, 0.23546476662158966, -1.2952944040298462, 0.3127726912498474, -2.893808364868164, 0.6197921633720398, -0.08501581102609634, -0.14759889245033264, 0.06792972981929779, -1.2700471878051758, 1.0745904445648193, 2.6242082118988037, -1.1547648906707764, 0.3752714693546295, 0.17288896441459656, 1.2512110471725464, -1.5555063486099243, 0.33634838461875916, -0.4576152265071869, 2.076234817504883, 0.23750290274620056, 1.179534912109375, -0.47665244340896606, -2.2873761653900146, 0.7725092768669128, -1.2667899131774902, -1.2886714935302734, 0.7966634035110474, -0.8958819508552551, 0.06772683560848236, -1.407547950744629, -0.26320603489875793, -0.8485585451126099, -1.105515480041504, 0.8205162286758423, 0.20269881188869476, 0.3893156051635742, -0.525871753692627, 0.25085702538490295, -2.3017807006835938, -1.4489096403121948, -0.24405094981193542, -0.9577576518058777, 0.4270581901073456, -0.3962901532649994, 0.6597908735275269, -0.2504102885723114, 0.05727359279990196, 0.4093655049800873, 1.534645915031433, 3.366386651992798, 0.2859484851360321, 0.515602171421051, -0.18317972123622894, -0.9826462864875793, 1.504407525062561, 0.8614454865455627, -0.09832785278558731, -0.4780859649181366, -1.0666965246200562, 1.1819580793380737, 1.8239595890045166, 0.9903340339660645, -0.05117407068610191, -0.7525797486305237, -0.6371327042579651, -0.1110345795750618, 0.19612227380275726, 0.4511682391166687, 0.9083237648010254, 0.11406945437192917, 0.10582739859819412, 1.518287181854248, 1.1970176696777344, -0.5621360540390015, 0.2585323452949524, -0.8222591280937195, -0.5114558339118958, 0.6108907461166382, 0.3223603367805481, 0.049433059990406036, 0.3730769455432892, -1.0180034637451172, -0.3623636066913605, -0.38750261068344116, -0.883610725402832, -0.6664284467697144, -0.4590145945549011, -0.40366315841674805, 1.6001501083374023, 0.0564289428293705, -0.600794792175293, -0.10458904504776001, -0.8853111863136292, -0.19234968721866608, -1.0813264846801758, 0.2296183854341507, -0.07816178351640701, -0.21371886134147644, -0.07406708598136902, 1.753212809562683, -1.0366535186767578, -2.0560367107391357, 0.2879336476325989, 0.24788857996463776, -0.26738858222961426, 0.222419872879982, 1.5594065189361572, 0.5898651480674744, 1.4700334072113037, 1.3239541053771973, 0.9868974685668945, -0.5777676701545715, -1.3493238687515259, 0.6787438988685608, 0.8279051184654236, -1.3379616737365723, 0.8136959671974182, -0.023282330483198166, -0.5595547556877136, 0.6385101675987244, 1.198634386062622, 0.523060142993927, -1.884107232093811, 0.7098353505134583, -0.895825207233429, 0.7832447290420532, 0.7520405650138855, 0.7347050309181213, 0.2086009532213211, 0.8160631656646729, -1.2146306037902832, -1.2188136577606201, -0.7266342639923096, -0.682950496673584, 1.8464536666870117, -0.2218862920999527, 0.6802152991294861, -0.3041827976703644, -1.212604284286499, 0.02510310336947441, 0.6119301319122314, 0.3634311556816101, -0.42441684007644653, 0.7695541977882385, -0.6689027547836304, -1.009502649307251, -1.4721119403839111, -0.36678868532180786, -1.0351998805999756, -1.0131465196609497, 1.1275769472122192, 0.7881656885147095, 0.12257150560617447, 1.8496543169021606, 0.7027525901794434, 0.31572362780570984, -2.6433982849121094, 0.8761339783668518, 0.08211463689804077, 0.02500266581773758, 0.7408822774887085, 0.2857142388820648, 0.9082075357437134, -0.05792668089270592, 0.3964027464389801, -2.370295763015747, 2.355405330657959, -0.35395151376724243, 0.6213675737380981, -0.10766296088695526, -0.09963958710432053, 1.1613397598266602, 0.5800800323486328, 0.5452733635902405, -1.0663396120071411, 0.5829561948776245, -0.48473072052001953, 1.2977102994918823, 0.9876404404640198, -0.7712105512619019, -0.02090325951576233, 1.4435678720474243, 0.6601915955543518, -0.5223807096481323, -0.8924944996833801, -1.073070764541626, 0.8626248836517334, 1.7119624614715576, -0.001433804165571928, -0.09308779239654541, 0.8258981704711914, 0.5443762540817261, -1.2688106298446655, 0.08473443984985352, -0.6698756217956543, -0.6629120707511902, 1.7265710830688477, 1.994686484336853, -0.15159425139427185, -0.25709986686706543, -0.5777304768562317, -1.208344578742981, 0.7827920913696289, 0.05775381252169609, 0.13114015758037567, 0.6680926084518433, -0.7143033742904663, 1.0156095027923584, 1.0461076498031616, 0.8542224168777466, 0.29008185863494873, 0.409689337015152, 0.4758199453353882, -0.3217141032218933, -1.2666614055633545, -0.14680925011634827, -1.1088076829910278, -2.5659914016723633, 0.3523625135421753, -0.264102965593338, -1.3777142763137817, -0.02828425168991089, -1.079364538192749, 0.9604639410972595, -0.5243269801139832, -1.0011597871780396, -1.5282318592071533, 0.09319080412387848, 0.10834964364767075, 0.9333834052085876, -1.4933003187179565, -0.02535577490925789, 1.2712026834487915, 0.9567418098449707, -0.6978026628494263, 0.9919140934944153, 0.24224655330181122, 1.1339330673217773, 0.8708716034889221, -0.5855569243431091, 0.4684498906135559, -0.07098868489265442, -1.4246890544891357, 0.42278239130973816, 1.0967333316802979, 0.16110269725322723, 1.630587100982666, -0.5660949349403381, 0.04471850022673607, 0.36629369854927063, -0.556080162525177, -0.4740840494632721, -0.6643644571304321, 0.6185365915298462, 0.09052697569131851, -0.8064572811126709, 0.020798128098249435, -0.005622227676212788, -0.285026878118515, 0.2682957053184509, -1.4456703662872314, -0.035050150007009506, -0.46263378858566284, -0.6631060838699341, -1.18729829788208, 0.040045998990535736, 1.3887214660644531, -0.8108583092689514, -0.02578819915652275, 0.43170106410980225, 0.24562300741672516, 0.5158675312995911, 0.5553165078163147, -0.6537302136421204, -0.30248650908470154, -0.27961915731430054, -0.3076927661895752, 0.3469100296497345, 1.3046907186508179, -0.2719762921333313, -0.9777630567550659, 0.8145062327384949, -0.22412656247615814, 0.034676749259233475, 1.9078196287155151, 0.09903555363416672, -0.7285584807395935, 0.2328038513660431, -0.7752900719642639, 1.9195499420166016, 1.6764823198318481, 1.312530755996704, -0.02714531123638153, -0.8195488452911377, 0.5465686321258545, -0.2881842851638794, -0.3982059359550476, 0.8077235817909241, 0.5083038806915283, -0.24541883170604706, -1.432004690170288, 0.7745411992073059, 1.2369252443313599, -0.92960524559021, -0.6864586472511292, 0.033208396285772324, -0.7478088736534119, 1.0326608419418335, 0.6331460475921631, 0.4724739193916321, 0.3807849586009979, 1.7152897119522095, 0.7795082330703735, -0.38381969928741455, 0.44372621178627014, 0.5729843378067017, 0.012533669359982014, -2.1490883827209473, -1.1688190698623657, 0.34779390692710876, -0.6112468242645264, -1.6073161363601685, 1.4202067852020264, -1.1992436647415161, -0.9773406386375427, 0.6692892909049988, 0.14801517128944397, 1.5034210681915283, 0.3642926812171936, 1.5257436037063599, 2.075216770172119, 0.7897577881813049, 0.3317694365978241, 1.287840485572815, -0.13567841053009033, -0.39611050486564636, 1.817124366760254, -0.40647146105766296, 0.3666055202484131, 1.0049136877059937, -0.21452844142913818, -1.0733566284179688, -0.7898759841918945, -1.3521380424499512, -0.6824953556060791, 1.0393890142440796, 0.19272029399871826, -1.1500988006591797, 0.18430300056934357, 1.4890249967575073, 0.021180246025323868, -0.3296760320663452, 0.6070097088813782, 0.45918118953704834, -0.785759449005127, -0.036423422396183014, -0.9559754133224487, 0.5753642320632935, -0.14517781138420105, -0.31801772117614746, 0.26972299814224243, 0.43642929196357727, 1.434996485710144, -0.032376568764448166, 0.2451706975698471, 1.2836824655532837, -1.423997402191162, 1.4634294509887695, -0.5992215871810913, 0.21562491357326508, -2.366809844970703, 1.4289301633834839, -0.801983118057251, 1.904688835144043, -2.6949880123138428, 0.5327479839324951, -0.6048988699913025, -0.42280852794647217, 0.4090009331703186, -0.5215999484062195, 0.08817534148693085, -0.11472421884536743, -1.0757465362548828, 0.07594204694032669, -0.644512414932251, 0.5223931074142456, 1.1560909748077393, 1.3364555835723877, -1.1377495527267456, -0.36653199791908264, -1.707638144493103, -0.0545504055917263, -0.7185218334197998, 0.3948545455932617, -2.0959160327911377, -0.2734887897968292, -1.8609684705734253, -2.3675789833068848, -1.2470591068267822, -0.8268067240715027, 1.0881366729736328, 0.12074825912714005, -0.869231104850769, 1.2082146406173706, -0.4022831320762634, -1.859680414199829, 1.0926223993301392, -2.0757126808166504 ]
https://github.com/huggingface/datasets/issues/3548
Specify the feature types of a dataset on the Hub without needing a dataset script
After looking into this, discovered that this is already supported if the `dataset_infos.json` file is configured correctly! Here is a working example: https://huggingface.co/datasets/abidlabs/test-audio-13 This should be probably be documented, though.
**Is your feature request related to a problem? Please describe.** Currently if I upload a CSV with paths to audio files, the column type is string instead of Audio. **Describe the solution you'd like** I'd like to be able to specify the types of the column, so that when loading the dataset I directly get the features types I want. The feature types could read from the `dataset_infos.json` for example. **Describe alternatives you've considered** Create a dataset script to specify the features, but that seems complicated for a simple thing. cc @abidlabs
1,016
30
Specify the feature types of a dataset on the Hub without needing a dataset script **Is your feature request related to a problem? Please describe.** Currently if I upload a CSV with paths to audio files, the column type is string instead of Audio. **Describe the solution you'd like** I'd like to be able to specify the types of the column, so that when loading the dataset I directly get the features types I want. The feature types could read from the `dataset_infos.json` for example. **Describe alternatives you've considered** Create a dataset script to specify the features, but that seems complicated for a simple thing. cc @abidlabs After looking into this, discovered that this is already supported if the `dataset_infos.json` file is configured correctly! Here is a working example: https://huggingface.co/datasets/abidlabs/test-audio-13 This should be probably be documented, though.
[ -1.2192193269729614, -1.008039951324463, -0.8104749917984009, 1.3848310708999634, -0.26196908950805664, -1.3903549909591675, 0.006084255874156952, -1.0912916660308838, 1.7823983430862427, -0.790729284286499, 0.326710045337677, -1.779862642288208, 0.04536788910627365, -0.6263985633850098, -0.8590851426124573, -0.7914117574691772, -0.4637129604816437, -0.8521295189857483, 0.8332788348197937, 2.433126449584961, 1.0908482074737549, -1.421836018562317, 2.6740105152130127, 0.6191492080688477, -0.13847960531711578, -1.0540978908538818, 0.5402112007141113, 0.01895419880747795, -1.234205961227417, -0.5192582011222839, -0.9413429498672485, -0.04805812984704971, -0.54290771484375, -0.5170271396636963, 0.06293420493602753, 0.3590461313724518, -0.13731813430786133, -0.36121854186058044, -0.5861937999725342, -0.691250205039978, 0.4321064352989197, -0.39182549715042114, 0.9904861450195312, -0.5216906666755676, 1.9188481569290161, -0.5531124472618103, 0.2695721685886383, 0.7484233379364014, 1.4476393461227417, 0.18708521127700806, 0.025063131004571915, 0.21082539856433868, 0.44879594445228577, -0.0025453646667301655, 0.4403088092803955, 1.0285159349441528, 0.5937695503234863, 0.5614774823188782, 0.7019678950309753, -2.165311574935913, 1.4172083139419556, -0.9850815534591675, 0.37083345651626587, 1.487992525100708, -0.8737935423851013, 0.36785802245140076, -1.7909214496612549, 0.030852172523736954, 0.5589274168014526, -2.3246822357177734, 0.17086972296237946, -1.2315696477890015, -0.595890998840332, 0.9634811282157898, 0.2986898422241211, -1.3504911661148071, 0.17516429722309113, -0.42533978819847107, 0.9643732905387878, 0.4637588858604431, 1.1497265100479126, -1.701310396194458, 0.009863643907010555, -0.3317887783050537, -0.03398433327674866, -1.3271448612213135, -1.514648675918579, 0.6683619618415833, 0.5923092365264893, 0.6077566146850586, -0.04338964447379112, 0.868385374546051, -0.988174319267273, 0.969025194644928, -0.9135169982910156, -1.6544058322906494, -1.4731626510620117, -2.2574477195739746, -2.246147871017456, 0.8484647870063782, -0.47181087732315063, -0.4810386598110199, 2.0211548805236816, -1.0799016952514648, -1.747096061706543, 1.2125341892242432, 0.2576808035373688, 0.06918419897556305, 2.3658337593078613, 0.18206290900707245, -0.6013742089271545, 0.31913480162620544, -0.6598161458969116, 0.9725189805030823, -0.449172705411911, 1.3736451864242554, 0.4979313015937805, -0.9826750755310059, 1.6741609573364258, -0.4547242224216461, 0.49489927291870117, -0.5866228342056274, -0.5803548693656921, -0.9111336469650269, 0.3825119137763977, 1.863023281097412, -0.2687954902648926, 1.58339524269104, -0.4156707525253296, -1.6053597927093506, -1.6319187879562378, 0.9070715308189392, 0.5230357050895691, -0.980760931968689, 0.03447513282299042, -0.367599219083786, 0.10180395096540451, -0.04266982898116112, 1.1251492500305176, 1.1490768194198608, 0.7798636555671692, -0.3471527695655823, -0.7909120917320251, 0.16876275837421417, -0.04961644858121872, -0.764589250087738, -1.8305258750915527, -0.3420114517211914, 0.10457347333431244, 0.6979829668998718, -1.150427222251892, 1.6554104089736938, 0.995342493057251, 1.8806120157241821, 1.0335990190505981, -0.3252456486225128, 1.430671215057373, -0.03351287171244621, 1.8390750885009766, -0.6868987679481506, 0.6885154247283936, -0.3005519509315491, -1.0669046640396118, 0.8503620624542236, -0.3618011474609375, -2.098536968231201, -0.7597654461860657, -0.8826687335968018, -0.24391953647136688, -0.6656667590141296, 0.9947937726974487, -0.3535780608654022, -1.2580487728118896, 0.18631461262702942, -0.616330623626709, 0.10281281173229218, -1.2121765613555908, 0.35943812131881714, 0.7953399419784546, -0.6630687117576599, -0.07789546251296997, -0.25834134221076965, -1.2612859010696411, -0.5199645757675171, 0.22028031945228577, 1.9719948768615723, -0.8171584010124207, 0.964764416217804, 0.844407320022583, -0.7406387329101562, -0.0656985267996788, 0.43189626932144165, -0.20596124231815338, 0.8642006516456604, -1.0035667419433594, -0.4260518252849579, 0.9859820008277893, -0.2331838309764862, -0.5473790764808655, 1.5309385061264038, 0.7866424918174744, -0.9855327606201172, -0.0664077028632164, -0.3620185852050781, -0.8631685972213745, -0.0046073030680418015, -1.558775544166565, -0.1750968098640442, 0.23794452846050262, -1.5314502716064453, -0.5257383584976196, -0.18342195451259613, 1.2037173509597778, -0.04719749838113785, 1.2623546123504639, -0.3602025806903839, -0.40875470638275146, -0.3806386888027191, -0.3271934390068054, 0.2673753798007965, -0.20328891277313232, -0.618995726108551, 0.2787805497646332, -0.8318461179733276, 0.3657117784023285, 1.4326200485229492, 0.4329022765159607, 0.08448269218206406, 0.5717980861663818, 0.9844269156455994, 0.2758735716342926, 0.0348300002515316, -0.9081405401229858, -1.5040972232818604, 2.0351617336273193, -1.5925170183181763, 1.8897910118103027, 0.6645980477333069, -0.0014313887804746628, -1.7603824138641357, -1.8764210939407349, 1.4191925525665283, 1.2626214027404785, 2.2061383724212646, 0.5517624020576477, 0.24349476397037506, -0.8383251428604126, -0.6496152877807617, 0.32531052827835083, -1.0571898221969604, -0.7279965281486511, -0.07309792935848236, 2.2622337341308594, 1.778630256652832, -0.6620417237281799, -0.1725287288427353, -1.0511047840118408, 1.3454480171203613, -0.08258948475122452, 0.1643204241991043, 2.098029136657715, -0.41063016653060913, -1.1107463836669922, 1.3047032356262207, -2.36022686958313, 0.18402503430843353, 1.9160479307174683, 0.2973059117794037, 0.07723325490951538, -1.4272487163543701, -0.5894526243209839, -0.2272331267595291, -0.3628651797771454, -1.321231722831726, 0.5297812819480896, -0.3895909786224365, -0.7274349331855774, -1.5365138053894043, 0.12663279473781586, -1.118401050567627, -1.6247228384017944, 0.41627126932144165, 1.9167261123657227, 2.030595541000366, -0.6003542542457581, 1.4830552339553833, -0.28859612345695496, 0.1728803515434265, 1.308883786201477, 1.2182908058166504, 3.10836124420166, 1.9199376106262207, -1.1935902833938599, 0.6222745180130005, -0.15187235176563263, -0.4469023048877716, 1.136232614517212, -0.9674585461616516, 1.2317510843276978, -0.18872040510177612, -1.1353790760040283, -1.2140837907791138, 0.9993388652801514, 0.5225213766098022, 0.024116799235343933, -0.523874044418335, 1.224471926689148, -0.024988554418087006, 1.3218332529067993, 0.5306377410888672, -0.44546395540237427, 0.5459216237068176, -0.4362637996673584, -0.5084161162376404, 1.5813010931015015, 0.2227007895708084, -1.4694358110427856, -2.3948450088500977, -0.1973176747560501, -0.7531677484512329, 0.10490025579929352, -0.5158769488334656, -0.9971191883087158, 1.7285083532333374, 0.5205643177032471, -1.3060343265533447, -0.27201783657073975, -0.38482487201690674, -0.6537411212921143, 2.600560188293457, -1.4093552827835083, -0.2830381989479065, -0.9566490650177002, -0.4643382430076599, 1.6393260955810547, -1.293941617012024, -0.19639554619789124, -1.030250906944275, -0.6117826104164124, -1.3528778553009033, -0.47842755913734436, -0.050895802676677704, -0.9473840594291687, 0.9128699898719788, 0.05420365184545517, -1.089032769203186, -0.3158073425292969, -0.8671188354492188, 0.7684033513069153, -0.09161665290594101, 0.3927685022354126, 1.9400705099105835, 0.42764726281166077, -0.3585420846939087, 0.6899343132972717, 1.1956050395965576, 0.6827868819236755, -0.6282617449760437, 0.22502529621124268, -0.5796349048614502, 0.3437221348285675, -1.2547065019607544, 0.3289403021335602, -2.934551239013672, 0.6498706340789795, -0.040606725960969925, -0.07207486778497696, 0.03260785713791847, -1.2840689420700073, 1.110045075416565, 2.5046985149383545, -1.1789064407348633, 0.44376108050346375, 0.2055591493844986, 1.249664306640625, -1.5731717348098755, 0.42319613695144653, -0.4345102310180664, 2.120610475540161, 0.1840127408504486, 1.085902214050293, -0.54459547996521, -2.1680941581726074, 0.6034204363822937, -1.2063713073730469, -1.1218657493591309, 0.6333736777305603, -0.7083925008773804, 0.07292894273996353, -1.590908408164978, -0.13801077008247375, -0.9463860392570496, -1.2732813358306885, 0.8743631839752197, 0.219443216919899, 0.3837190866470337, -0.6657302379608154, 0.3040127158164978, -2.19313645362854, -1.3989379405975342, -0.21273016929626465, -0.8606184124946594, 0.6097632050514221, -0.3251570761203766, 0.6808082461357117, -0.06105068325996399, 0.18263456225395203, 0.3194701671600342, 1.4693266153335571, 3.481017827987671, 0.15744958817958832, 0.4951052665710449, -0.20042797923088074, -0.8900851011276245, 1.4669519662857056, 0.9749183058738708, 0.08202768862247467, -0.6178712844848633, -1.1357864141464233, 1.3145363330841064, 1.9479358196258545, 0.9912115335464478, 0.15261410176753998, -0.760651707649231, -0.609984278678894, 0.014766925014555454, 0.34023940563201904, 0.5529947876930237, 0.9851831793785095, -0.004970437381416559, 0.10213988274335861, 1.4419982433319092, 1.2567715644836426, -0.44354820251464844, 0.45186424255371094, -0.8110270500183105, -0.5337540507316589, 0.4428122043609619, 0.4054441452026367, -0.01451462134718895, 0.3669900894165039, -1.0342375040054321, -0.23496079444885254, -0.3197958469390869, -0.9856581091880798, -0.6366133689880371, -0.46816784143447876, -0.4928716719150543, 1.5761774778366089, 0.08331701904535294, -0.5515483021736145, -0.10883305966854095, -0.7960634231567383, -0.05038917437195778, -1.0195138454437256, 0.25209158658981323, -0.060929346829652786, -0.19256842136383057, -0.1518096774816513, 1.8632906675338745, -0.9571384787559509, -2.062222957611084, 0.3711257874965668, 0.32000210881233215, -0.37756481766700745, 0.1411605328321457, 1.446996808052063, 0.5004163384437561, 1.425713300704956, 1.4702372550964355, 0.9708095192909241, -0.6471470594406128, -1.3881585597991943, 0.5737733244895935, 0.8965368866920471, -1.4601553678512573, 0.8467830419540405, 0.006026696413755417, -0.5571727752685547, 0.8078190684318542, 1.413155436515808, 0.3410995304584503, -2.001620054244995, 0.8351703882217407, -0.892571210861206, 0.8940834999084473, 0.7101746201515198, 0.8004290461540222, 0.3396972417831421, 0.8758278489112854, -1.2998689413070679, -1.1790636777877808, -0.934984564781189, -0.7123875617980957, 1.9504724740982056, -0.14022737741470337, 0.5652313828468323, -0.11400827765464783, -1.2143778800964355, -0.2237986922264099, 0.6091570258140564, 0.36397889256477356, -0.24705135822296143, 0.7520903944969177, -0.6757529973983765, -1.1598364114761353, -1.4646235704421997, -0.43720579147338867, -0.9418838024139404, -0.8653964996337891, 1.0264217853546143, 0.95025634765625, 0.3011648654937744, 1.8904874324798584, 0.49783098697662354, 0.1790185421705246, -2.6366653442382812, 0.8353739976882935, 0.31498220562934875, 0.017307709902524948, 0.9082365036010742, 0.31856876611709595, 1.0702927112579346, 0.0858575850725174, 0.48566633462905884, -2.33882474899292, 2.321443557739258, -0.3219289183616638, 0.79912930727005, -0.07196493446826935, -0.1355435699224472, 1.1988730430603027, 0.5846483707427979, 0.52603679895401, -1.0272648334503174, 0.6845853924751282, -0.5545833706855774, 1.2152704000473022, 1.0222173929214478, -0.6861217617988586, -0.05570414289832115, 1.289056420326233, 0.5536418557167053, -0.4899238646030426, -0.9416000247001648, -0.8725548386573792, 0.8083000779151917, 1.884077548980713, -0.10452086478471756, -0.050564173609018326, 0.6843445301055908, 0.707918107509613, -1.1405996084213257, 0.15006649494171143, -0.8009262084960938, -0.803839385509491, 1.59575617313385, 2.0970566272735596, -0.058297544717788696, -0.08595811575651169, -0.6947405338287354, -1.1811426877975464, 0.6904551982879639, 0.05384012311697006, 0.06401174515485764, 0.7328698635101318, -0.6950719356536865, 1.0892428159713745, 0.8580787181854248, 1.0064011812210083, -0.04718482866883278, 0.4481697380542755, 0.39222943782806396, -0.21727560460567474, -1.131780743598938, -0.2759927809238434, -1.1932646036148071, -2.6022799015045166, 0.4218464195728302, -0.4240787625312805, -1.4584338665008545, -0.02076314389705658, -1.063895344734192, 0.9002336263656616, -0.5296516418457031, -1.1114534139633179, -1.5558910369873047, 0.1633354276418686, 0.03530078008770943, 0.8408583402633667, -1.6267460584640503, -0.050829317420721054, 1.3102000951766968, 0.7951797246932983, -0.6422938108444214, 1.006750464439392, 0.326334148645401, 1.0345853567123413, 0.796298623085022, -0.43209928274154663, 0.339976966381073, 0.012474938295781612, -1.38326895236969, 0.4462733566761017, 1.0755314826965332, 0.14016619324684143, 1.3834083080291748, -0.5543786287307739, 0.1953451782464981, 0.48618432879447937, -0.5431870222091675, -0.30456721782684326, -0.5034582018852234, 0.7033655643463135, 0.06699948757886887, -0.9199590086936951, 0.1543956696987152, -0.14006070792675018, -0.2724970579147339, 0.21341942250728607, -1.4409478902816772, -0.41470006108283997, -0.532077968120575, -0.44316792488098145, -1.2254822254180908, -0.13145455718040466, 1.4176908731460571, -0.654806911945343, -0.2044552117586136, 0.6513192057609558, 0.4845424294471741, 0.5961546301841736, 0.6438629031181335, -0.6253630518913269, -0.4138607680797577, -0.26768550276756287, -0.2728238105773926, 0.19849897921085358, 1.1607686281204224, -0.2580534815788269, -0.9011857509613037, 0.7037173509597778, -0.3331732749938965, -0.0021248161792755127, 1.902405023574829, -0.019909897819161415, -0.8056739568710327, 0.3753080368041992, -0.6981039643287659, 1.833904504776001, 1.6269932985305786, 1.213900089263916, -0.08916076272726059, -0.9437658190727234, 0.576729416847229, -0.1541442722082138, -0.35394540429115295, 0.9075156450271606, 0.5694287419319153, -0.14292050898075104, -1.3905222415924072, 0.6641635894775391, 1.2381378412246704, -0.927419126033783, -0.8517580628395081, 0.06473416835069656, -0.7693558931350708, 0.9884307384490967, 0.6202707290649414, 0.5214030742645264, 0.24285830557346344, 1.6396455764770508, 0.6374546885490417, -0.47932571172714233, 0.4593265652656555, 0.42707887291908264, -0.20500482618808746, -2.093082904815674, -1.0838755369186401, 0.2812884449958801, -0.4826381802558899, -1.6058409214019775, 1.2986501455307007, -1.1248117685317993, -0.8264930844306946, 0.5492518544197083, 0.16011355817317963, 1.4766156673431396, 0.36713290214538574, 1.6491384506225586, 2.0172033309936523, 0.9322813749313354, 0.3573140501976013, 1.4530653953552246, -0.002169047947973013, -0.4313146770000458, 1.8550596237182617, -0.3475862145423889, 0.47160977125167847, 1.1217906475067139, -0.35279709100723267, -1.0431959629058838, -0.6956912279129028, -1.0864981412887573, -0.6081134676933289, 1.0597312450408936, 0.11176958680152893, -1.1901601552963257, 0.18363311886787415, 1.4063442945480347, 0.17667347192764282, -0.27156075835227966, 0.46537089347839355, 0.42219263315200806, -0.7227121591567993, -0.1808558851480484, -1.0139257907867432, 0.44044381380081177, -0.29456132650375366, -0.38461777567863464, 0.34190890192985535, 0.48837587237358093, 1.272107481956482, -0.047555942088365555, 0.15926961600780487, 1.2423160076141357, -1.5173522233963013, 1.3777164220809937, -0.5347272753715515, 0.21382395923137665, -2.448672294616699, 1.5602327585220337, -0.7120863199234009, 2.03092885017395, -2.6502535343170166, 0.31310662627220154, -0.6476654410362244, -0.3708958327770233, 0.3599795699119568, -0.2263079285621643, 0.18784953653812408, -0.2021603286266327, -1.1018414497375488, 0.07671882212162018, -0.7546969652175903, 0.46279236674308777, 1.135796070098877, 1.3923285007476807, -1.076217532157898, -0.2676450312137604, -1.7426694631576538, -0.20131221413612366, -0.7087175846099854, 0.3237822949886322, -2.098721981048584, -0.09168190509080887, -1.9125587940216064, -2.3063905239105225, -1.4401040077209473, -0.9013341665267944, 1.1404470205307007, 0.15058256685733795, -0.8020813465118408, 1.0987098217010498, -0.28538385033607483, -1.7560555934906006, 0.9841420650482178, -2.153463363647461 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Thanks for reporting. I think this can be fixed by improving the `CachedDatasetModuleFactory` and making it look into the `parquet` cache directory (datasets from push_to_hub are loaded with the parquet dataset builder). I'll look into it
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
1,017
36
Datasets created with `push_to_hub` can't be accessed in offline mode ## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0 Thanks for reporting. I think this can be fixed by improving the `CachedDatasetModuleFactory` and making it look into the `parquet` cache directory (datasets from push_to_hub are loaded with the parquet dataset builder). I'll look into it
[ -1.1769256591796875, -0.8934170603752136, -0.713747501373291, 1.4355961084365845, -0.19194546341896057, -1.2969838380813599, 0.20624397695064545, -1.0964701175689697, 1.7198058366775513, -0.8040711283683777, 0.3233431875705719, -1.6844319105148315, -0.0014678919687867165, -0.617186427116394, -0.7273399829864502, -0.8657217621803284, -0.3885764479637146, -0.702178955078125, 1.0062837600708008, 2.4571235179901123, 1.1430336236953735, -1.262664556503296, 2.6247897148132324, 0.6621738076210022, -0.16586485505104065, -0.9867575764656067, 0.4709251821041107, 0.020395714789628983, -1.329965591430664, -0.3655323386192322, -0.8742868900299072, -0.10642841458320618, -0.5816705822944641, -0.647547721862793, -0.005772672593593597, 0.4431709051132202, -0.3731888234615326, -0.48297154903411865, -0.46108970046043396, -0.7998687624931335, 0.44468581676483154, -0.3630252778530121, 0.9782917499542236, -0.43576371669769287, 1.8025388717651367, -0.5797715783119202, 0.5485560297966003, 0.7882837057113647, 1.2803609371185303, 0.18775217235088348, -0.03305881842970848, 0.3362813889980316, 0.31906962394714355, 0.03203269839286804, 0.553309977054596, 1.0807560682296753, 0.6169366836547852, 0.5162903666496277, 0.6453871130943298, -2.2821693420410156, 1.3058022260665894, -0.9502105712890625, 0.3066805601119995, 1.3778645992279053, -0.9005706906318665, 0.24703778326511383, -1.688777208328247, 0.007060445845127106, 0.6232873201370239, -2.108341693878174, 0.322748064994812, -1.3921149969100952, -0.475680410861969, 1.09959876537323, 0.43026500940322876, -1.1848756074905396, 0.037874042987823486, -0.3042684495449066, 1.0483934879302979, 0.48030829429626465, 1.0971076488494873, -1.660231590270996, -0.007597862742841244, -0.29718485474586487, 0.07590094953775406, -1.293028712272644, -1.5146968364715576, 0.46926409006118774, 0.7064036130905151, 0.609110414981842, -0.09944037348031998, 1.0110316276550293, -0.9706274271011353, 0.6969491839408875, -1.0296992063522339, -1.7512989044189453, -1.3946377038955688, -2.3064074516296387, -2.318941354751587, 0.6747735142707825, -0.41826292872428894, -0.5010952949523926, 2.062711715698242, -1.028610110282898, -1.8271719217300415, 1.130756139755249, 0.29197371006011963, 0.05427033454179764, 2.262632131576538, 0.2668215036392212, -0.7287636399269104, 0.4692842662334442, -0.7599660754203796, 0.665057361125946, -0.36533597111701965, 1.2645512819290161, 0.3899999260902405, -1.1317524909973145, 1.5474344491958618, -0.45798465609550476, 0.6381279826164246, -0.6707350015640259, -0.42041024565696716, -0.8407838344573975, 0.26731908321380615, 1.8279285430908203, -0.23034390807151794, 1.54585599899292, -0.3457532525062561, -1.5854237079620361, -1.527785062789917, 0.8459079265594482, 0.4699728190898895, -0.6963239312171936, 0.06370405107736588, -0.3125816285610199, 0.057515740394592285, -0.10013429820537567, 1.1700105667114258, 1.2419618368148804, 0.7620401382446289, -0.3836214542388916, -0.8445799946784973, 0.22269874811172485, -0.018680419772863388, -0.7565635442733765, -1.7595114707946777, -0.24769404530525208, 0.1416197419166565, 0.5906911492347717, -1.1655980348587036, 1.7581706047058105, 0.8641539812088013, 1.9314353466033936, 0.9724680781364441, -0.2817072570323944, 1.427021861076355, 0.1386699080467224, 1.965260624885559, -0.3782714903354645, 0.716878354549408, -0.330960750579834, -1.161322832107544, 0.8717410564422607, -0.35784831643104553, -2.1009747982025146, -0.7943991422653198, -0.846822202205658, -0.1743851900100708, -0.7687941789627075, 0.9340732097625732, -0.22524553537368774, -1.4265375137329102, 0.23948197066783905, -0.7488574981689453, 0.222172349691391, -1.2144113779067993, 0.3297540843486786, 0.7839677929878235, -0.6321896314620972, 0.04230393469333649, -0.2761025130748749, -1.2748726606369019, -0.40944889187812805, 0.3860033452510834, 1.8092678785324097, -0.7732166647911072, 0.9929670691490173, 1.0736640691757202, -0.7143680453300476, -0.02464897371828556, 0.2627261281013489, -0.30229872465133667, 0.8623736500740051, -1.0888457298278809, -0.35584065318107605, 1.2384616136550903, -0.21292360126972198, -0.6885366439819336, 1.5310286283493042, 0.7011364102363586, -0.9753299951553345, -0.11437875032424927, -0.19406570494174957, -0.7673441171646118, 0.03984259068965912, -1.640383005142212, -0.02084033377468586, 0.38145917654037476, -1.5050582885742188, -0.48164084553718567, -0.14024056494235992, 1.365058422088623, -0.14462979137897491, 1.435508370399475, -0.33941444754600525, -0.22562633454799652, -0.441382497549057, -0.3642983138561249, 0.12455696612596512, -0.2010808140039444, -0.630865216255188, 0.18682973086833954, -0.6907728910446167, 0.29410189390182495, 1.3421416282653809, 0.2569136917591095, 0.008258119225502014, 0.5436638593673706, 1.096388339996338, 0.2943306863307953, -0.030869491398334503, -0.8610295057296753, -1.6112273931503296, 1.9710662364959717, -1.4274557828903198, 1.9677565097808838, 0.6923468112945557, 0.0032139085233211517, -1.7952661514282227, -1.9374639987945557, 1.4206324815750122, 1.0665152072906494, 2.361328363418579, 0.46599531173706055, 0.46573206782341003, -0.8765064477920532, -0.7045457363128662, 0.3319515585899353, -0.9557719826698303, -0.7079381942749023, 0.15622267127037048, 2.398664951324463, 1.7187345027923584, -0.3843613862991333, -0.17535211145877838, -1.0144529342651367, 1.4192559719085693, -0.1985568404197693, 0.256023645401001, 2.0750155448913574, -0.23850539326667786, -1.0802284479141235, 1.3305449485778809, -2.377657890319824, 0.2054591327905655, 2.0216610431671143, 0.19103261828422546, 0.15937505662441254, -1.345925211906433, -0.6571416258811951, -0.2453385591506958, -0.41202834248542786, -1.182865858078003, 0.5639812350273132, -0.21312956511974335, -0.7233610153198242, -1.3924793004989624, 0.21681757271289825, -1.0442076921463013, -1.6819006204605103, 0.18885336816310883, 1.83367121219635, 1.9453803300857544, -0.7398887872695923, 1.6415371894836426, -0.3011621832847595, 0.2293672412633896, 1.2828500270843506, 1.2491543292999268, 3.1574485301971436, 1.994596004486084, -1.3610386848449707, 0.7431630492210388, -0.03804898262023926, -0.46680912375450134, 1.2283447980880737, -1.191250205039978, 1.275399923324585, -0.18136931955814362, -1.239027976989746, -1.2753711938858032, 0.9499866962432861, 0.4675527513027191, 0.07693486660718918, -0.5041722655296326, 1.1870132684707642, 0.07557902485132217, 1.4023298025131226, 0.5324307084083557, -0.39863860607147217, 0.6500489711761475, -0.48633718490600586, -0.49198320508003235, 1.4999074935913086, 0.216713085770607, -1.3097479343414307, -2.330253839492798, -0.2699699103832245, -0.86045241355896, -0.08711201697587967, -0.6586809158325195, -0.9758625626564026, 1.6129863262176514, 0.4745500385761261, -1.2362884283065796, -0.2868357300758362, -0.2743600010871887, -0.5701191425323486, 2.715148687362671, -1.3948426246643066, -0.20055928826332092, -1.0120320320129395, -0.7173925638198853, 1.677186369895935, -1.2365795373916626, -0.27950721979141235, -1.0293349027633667, -0.6069042086601257, -1.2852368354797363, -0.5900184512138367, 0.0056469980627298355, -0.9568339586257935, 0.9047932028770447, 0.16623009741306305, -1.2871588468551636, -0.3345510959625244, -0.9433724880218506, 0.9296888709068298, -0.08950379490852356, 0.22504112124443054, 1.7741539478302002, 0.36833739280700684, -0.33836427330970764, 0.6972349882125854, 1.1099411249160767, 0.6565142273902893, -0.6896752119064331, 0.3299349844455719, -0.689859926700592, 0.3278166353702545, -1.3253514766693115, 0.24753059446811676, -2.9246883392333984, 0.5891660451889038, -0.04570816457271576, -0.018594052642583847, -0.0692700743675232, -1.3680881261825562, 1.090541958808899, 2.5161027908325195, -1.2582024335861206, 0.49861377477645874, 0.33580535650253296, 1.1712636947631836, -1.630897045135498, 0.3061322271823883, -0.48261839151382446, 2.0829036235809326, 0.12773752212524414, 1.2215412855148315, -0.3289662301540375, -2.259178876876831, 0.6086264252662659, -1.3254165649414062, -1.1901044845581055, 0.9309162497520447, -0.8832948207855225, 0.11293262988328934, -1.354779601097107, -0.23258186876773834, -0.8327504396438599, -1.2532272338867188, 0.7273225784301758, 0.10107752680778503, 0.4585087299346924, -0.6431126594543457, 0.3829428553581238, -2.240154266357422, -1.3061400651931763, -0.24681994318962097, -0.9640836119651794, 0.39095208048820496, -0.2658274173736572, 0.6749290823936462, -0.15260812640190125, 0.09666029363870621, 0.4070381224155426, 1.4668715000152588, 3.3793106079101562, 0.17486868798732758, 0.29552510380744934, -0.12639598548412323, -0.9477252960205078, 1.3649860620498657, 0.9862188100814819, -0.17136214673519135, -0.5570582747459412, -1.0440443754196167, 1.1695224046707153, 1.9543664455413818, 1.0087283849716187, 0.022289512678980827, -0.8628981113433838, -0.7635279297828674, 0.0012627365067601204, 0.04587162286043167, 0.5049684643745422, 0.8654347062110901, 0.14742009341716766, 0.15962177515029907, 1.4245473146438599, 1.1215029954910278, -0.3061935305595398, 0.3549748659133911, -0.8477269411087036, -0.5160287022590637, 0.5116081833839417, 0.35789555311203003, 0.043336622416973114, 0.2891177237033844, -1.0281003713607788, -0.17261195182800293, -0.41580480337142944, -0.9142216444015503, -0.7320454716682434, -0.5147326588630676, -0.38543227314949036, 1.5747685432434082, 0.039477333426475525, -0.5359503626823425, -0.06133762747049332, -0.7124618887901306, -0.006097935140132904, -1.0501154661178589, 0.3218125104904175, -0.15524902939796448, -0.10787994414567947, -0.1093062087893486, 1.6708203554153442, -1.025427222251892, -1.9774112701416016, 0.21596913039684296, 0.22800830006599426, -0.33393949270248413, 0.13429753482341766, 1.6656428575515747, 0.5979993939399719, 1.4832184314727783, 1.4298467636108398, 1.033748745918274, -0.7223841547966003, -1.3843324184417725, 0.6393311023712158, 0.9727340936660767, -1.4069228172302246, 0.729166567325592, 0.08405554294586182, -0.5618290305137634, 0.6174157857894897, 1.2986345291137695, 0.4664638638496399, -1.978873610496521, 0.7067391276359558, -1.013081669807434, 0.7808513641357422, 0.7155099511146545, 0.7629521489143372, 0.15627294778823853, 0.8097167611122131, -1.168007731437683, -1.1045818328857422, -0.6596800684928894, -0.6891301274299622, 1.8954674005508423, -0.40719419717788696, 0.5887044072151184, -0.17691919207572937, -1.397143006324768, -0.07406111061573029, 0.7629846930503845, 0.3563254177570343, -0.5263105034828186, 0.7793635129928589, -0.621699333190918, -1.0834105014801025, -1.333606243133545, -0.45131105184555054, -1.0880857706069946, -0.9062067270278931, 0.9796063303947449, 0.8151755332946777, 0.3436735272407532, 1.7951217889785767, 0.6802310943603516, 0.2867506146430969, -2.642106771469116, 0.8875770568847656, 0.25152093172073364, -0.05575092136859894, 0.809518039226532, 0.35606297850608826, 1.0173841714859009, -0.07987080514431, 0.5888563990592957, -2.4427990913391113, 2.3166699409484863, -0.25075140595436096, 0.5924739837646484, -0.01209781039506197, -0.18462753295898438, 1.0964114665985107, 0.5403894782066345, 0.5384984016418457, -1.10626220703125, 0.7639490962028503, -0.5894962549209595, 1.2518572807312012, 0.8620772957801819, -0.8475241661071777, -0.10002187639474869, 1.3843423128128052, 0.4117897152900696, -0.5679731965065002, -0.9149817824363708, -1.0723698139190674, 0.9389292597770691, 1.6454662084579468, -0.06628211587667465, -0.017423275858163834, 0.8941165208816528, 0.7084735035896301, -1.2651937007904053, 0.11173100024461746, -0.8015223145484924, -0.6723451614379883, 1.7120107412338257, 2.0590198040008545, -0.09968332946300507, -0.2267410159111023, -0.85392165184021, -1.1514071226119995, 0.7700865864753723, -0.0012516099959611893, -0.03441109135746956, 0.6463074684143066, -0.6045694947242737, 1.0778876543045044, 0.8868224024772644, 0.9078261256217957, 0.18165886402130127, 0.27035045623779297, 0.3096092939376831, -0.33753105998039246, -1.1915334463119507, -0.20787258446216583, -0.9721096754074097, -2.5378808975219727, 0.4974362254142761, -0.22724418342113495, -1.4604359865188599, 0.03339885175228119, -1.0634291172027588, 0.9503662586212158, -0.5824265480041504, -1.129567265510559, -1.4822094440460205, 0.17708081007003784, 0.007527882233262062, 0.8822734951972961, -1.548473834991455, -0.08827943354845047, 1.2850269079208374, 0.889624297618866, -0.7188626527786255, 1.07868492603302, 0.21887047588825226, 0.988304615020752, 0.8674310445785522, -0.4509889483451843, 0.5481306314468384, 0.06676468998193741, -1.321005940437317, 0.49930423498153687, 1.1691356897354126, 0.17216408252716064, 1.5508804321289062, -0.5765336751937866, 0.059256233274936676, 0.36104604601860046, -0.529268205165863, -0.4298405945301056, -0.6792761087417603, 0.71238774061203, 0.07903993874788284, -0.8393158316612244, 0.04637434333562851, -0.0500154122710228, -0.21895575523376465, 0.17356716096401215, -1.5261731147766113, -0.1497865468263626, -0.26553773880004883, -0.6759523153305054, -1.1773217916488647, -0.041982099413871765, 1.394276738166809, -0.7879146337509155, -0.136416956782341, 0.5126992464065552, 0.2734192907810211, 0.6055628061294556, 0.6155897378921509, -0.6699032783508301, -0.28209641575813293, -0.363449364900589, -0.2848030626773834, 0.32026588916778564, 1.372892141342163, -0.07526392489671707, -0.9950651526451111, 0.7289214134216309, -0.35939595103263855, 0.060214266180992126, 1.954962968826294, 0.09335573017597198, -0.8578060865402222, 0.4073162078857422, -0.7367308139801025, 1.9648370742797852, 1.7465778589248657, 1.335852026939392, -0.11160908639431, -1.0785331726074219, 0.6121974587440491, -0.3470073938369751, -0.39230430126190186, 0.9955711960792542, 0.44649195671081543, -0.1728096604347229, -1.2156791687011719, 0.7758291363716125, 1.2393194437026978, -0.8286898136138916, -0.8391696810722351, 0.21831810474395752, -0.8147376775741577, 1.0678287744522095, 0.6662344932556152, 0.3690147399902344, 0.3012832701206207, 1.508398175239563, 0.7470525503158569, -0.47769442200660706, 0.6001579761505127, 0.4615772068500519, -0.16019247472286224, -1.968549370765686, -1.1215981245040894, 0.4822338819503784, -0.601909339427948, -1.6813145875930786, 1.3940701484680176, -1.1795639991760254, -0.9781686067581177, 0.5795308947563171, 0.08124467730522156, 1.3988986015319824, 0.39835992455482483, 1.5908551216125488, 2.045271158218384, 0.9458082914352417, 0.41185274720191956, 1.3173600435256958, -0.14071275293827057, -0.4950989782810211, 1.7802658081054688, -0.5240445137023926, 0.49941515922546387, 1.149256944656372, -0.3398556411266327, -1.0710492134094238, -0.8527156710624695, -1.2160884141921997, -0.70844966173172, 1.1550331115722656, 0.193036288022995, -1.141692876815796, 0.29011455178260803, 1.517038345336914, 0.10904063284397125, -0.322125643491745, 0.7461086511611938, 0.34389400482177734, -0.8304261565208435, -0.050685815513134, -0.9279756546020508, 0.4943094849586487, -0.27298828959465027, -0.25771021842956543, 0.3293024003505707, 0.4710281193256378, 1.3574700355529785, -0.03525637462735176, 0.10582474619150162, 1.2152745723724365, -1.3817625045776367, 1.454784631729126, -0.6884910464286804, 0.3012221157550812, -2.37559175491333, 1.3339571952819824, -0.7674670815467834, 1.8426494598388672, -2.671715497970581, 0.383929580450058, -0.5755969882011414, -0.46801093220710754, 0.302788645029068, -0.3289865255355835, 0.12151982635259628, -0.11910545080900192, -1.2642430067062378, -0.1400618851184845, -0.7596496343612671, 0.6424647569656372, 1.0758715867996216, 1.3337986469268799, -1.1972620487213135, -0.32284224033355713, -1.6861026287078857, -0.20362287759780884, -0.7093903422355652, 0.4199276566505432, -1.9038480520248413, -0.13669425249099731, -1.919797658920288, -2.4495351314544678, -1.2683626413345337, -0.8023732304573059, 1.1272854804992676, 0.1235991045832634, -0.9015035033226013, 1.1612577438354492, -0.3292793035507202, -1.8543065786361694, 1.1244615316390991, -2.1927053928375244 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
We haven't had a chance to fix this yet. If someone would like to give it a try I'd be happy to give some guidance
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
1,017
25
Datasets created with `push_to_hub` can't be accessed in offline mode ## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0 We haven't had a chance to fix this yet. If someone would like to give it a try I'd be happy to give some guidance
[ -1.1464022397994995, -0.9015851020812988, -0.7203272581100464, 1.4394617080688477, -0.17167207598686218, -1.2779173851013184, 0.1807641237974167, -1.0837856531143188, 1.729190468788147, -0.8212189674377441, 0.34634602069854736, -1.6606553792953491, 0.0020181480795145035, -0.6425021290779114, -0.7144003510475159, -0.8593907952308655, -0.37260350584983826, -0.690443754196167, 0.9956440329551697, 2.4630537033081055, 1.1040111780166626, -1.2828478813171387, 2.6419410705566406, 0.6751814484596252, -0.12420643866062164, -1.0060633420944214, 0.4470089077949524, 0.0014719180762767792, -1.3114362955093384, -0.37614381313323975, -0.8764699101448059, -0.10179244726896286, -0.6017976403236389, -0.6680952310562134, -0.013166472315788269, 0.423086017370224, -0.38578999042510986, -0.4775506556034088, -0.46738874912261963, -0.8225804567337036, 0.4404183328151703, -0.3983536660671234, 0.9609635472297668, -0.4386245012283325, 1.7909536361694336, -0.5606419444084167, 0.5286374688148499, 0.7897470593452454, 1.266503930091858, 0.19206909835338593, -0.03698921948671341, 0.31985628604888916, 0.3119121193885803, 0.03354132920503616, 0.575627326965332, 1.0704445838928223, 0.6219584345817566, 0.507131814956665, 0.6314908266067505, -2.285005569458008, 1.2861697673797607, -0.9209049940109253, 0.2931132912635803, 1.3713382482528687, -0.9208529591560364, 0.25093233585357666, -1.6557077169418335, 0.012399019673466682, 0.6467110514640808, -2.130716323852539, 0.3385423719882965, -1.347454309463501, -0.4768666625022888, 1.1248859167099, 0.446963906288147, -1.1752734184265137, 0.03133915364742279, -0.30438125133514404, 1.0352733135223389, 0.4648441672325134, 1.0831975936889648, -1.6658861637115479, -0.009628276340663433, -0.2894607484340668, 0.09774438291788101, -1.2995200157165527, -1.4715088605880737, 0.48718416690826416, 0.7085033655166626, 0.5965144038200378, -0.07550862431526184, 0.9607776999473572, -0.9733129739761353, 0.6973201036453247, -1.0410096645355225, -1.7700644731521606, -1.3738349676132202, -2.30808162689209, -2.327601671218872, 0.6707277894020081, -0.3595096170902252, -0.49870213866233826, 2.0603530406951904, -1.0457065105438232, -1.820826768875122, 1.1778895854949951, 0.291032999753952, 0.030582787469029427, 2.2909739017486572, 0.25391554832458496, -0.749971866607666, 0.4943712651729584, -0.7909497618675232, 0.6826176643371582, -0.37716713547706604, 1.247368335723877, 0.37610384821891785, -1.1217563152313232, 1.567526936531067, -0.4655908942222595, 0.6200426816940308, -0.6775991916656494, -0.4104767143726349, -0.8372563719749451, 0.26124632358551025, 1.8590999841690063, -0.22814777493476868, 1.534051775932312, -0.3436206579208374, -1.546525478363037, -1.5402241945266724, 0.8428739905357361, 0.4638082981109619, -0.6950196623802185, 0.0813411995768547, -0.31483834981918335, 0.11237034946680069, -0.10835838317871094, 1.1625573635101318, 1.2513777017593384, 0.7486816644668579, -0.36829110980033875, -0.8614082336425781, 0.21075740456581116, -0.03880756348371506, -0.7422164678573608, -1.7722535133361816, -0.2597254514694214, 0.14766757190227509, 0.5814397931098938, -1.1728230714797974, 1.754948616027832, 0.8712854981422424, 1.9293805360794067, 0.9896281361579895, -0.26381638646125793, 1.4613428115844727, 0.11004851013422012, 1.996074914932251, -0.3613920211791992, 0.723857581615448, -0.3145337998867035, -1.1735187768936157, 0.8302174210548401, -0.37117576599121094, -2.103172779083252, -0.7838704586029053, -0.8361058235168457, -0.16839763522148132, -0.7626427412033081, 0.9542962312698364, -0.2128879725933075, -1.4254820346832275, 0.2587659955024719, -0.7918509244918823, 0.2299744337797165, -1.2142574787139893, 0.33269280195236206, 0.7639082670211792, -0.6516973376274109, 0.023392701521515846, -0.259158730506897, -1.2702038288116455, -0.40598857402801514, 0.3983272314071655, 1.8131170272827148, -0.8129897713661194, 0.9635457992553711, 1.0535985231399536, -0.7063186168670654, -0.010566109791398048, 0.30523669719696045, -0.3134984076023102, 0.8723915815353394, -1.1008145809173584, -0.3859722316265106, 1.2552415132522583, -0.2319071739912033, -0.6941933631896973, 1.5203099250793457, 0.6991309523582458, -0.9786579608917236, -0.1366160660982132, -0.19969254732131958, -0.7437069416046143, 0.07160332798957825, -1.6231287717819214, -0.008671174757182598, 0.3980807960033417, -1.4919193983078003, -0.4410068690776825, -0.141536146402359, 1.3630523681640625, -0.14171496033668518, 1.4392951726913452, -0.3457549214363098, -0.21269425749778748, -0.43095365166664124, -0.3895353376865387, 0.11530130356550217, -0.21101459860801697, -0.636243462562561, 0.1785285323858261, -0.6763608455657959, 0.30811765789985657, 1.3416997194290161, 0.2608766257762909, 0.03366246819496155, 0.5331721901893616, 1.0972485542297363, 0.29377859830856323, -0.038005098700523376, -0.8446561098098755, -1.6294256448745728, 1.9681439399719238, -1.4121267795562744, 2.0210111141204834, 0.7023798823356628, 0.018938446417450905, -1.7886793613433838, -1.9365425109863281, 1.4154444932937622, 1.0683579444885254, 2.3767623901367188, 0.4595549404621124, 0.45646288990974426, -0.9064404964447021, -0.7178616523742676, 0.3027721643447876, -0.9752742052078247, -0.7317273616790771, 0.14636638760566711, 2.4336280822753906, 1.7085506916046143, -0.37183284759521484, -0.14192591607570648, -1.061413049697876, 1.4363784790039062, -0.2111341953277588, 0.2733737528324127, 2.0618486404418945, -0.247736394405365, -1.0912158489227295, 1.3087490797042847, -2.3656039237976074, 0.20751728117465973, 2.0052125453948975, 0.14747101068496704, 0.1364525407552719, -1.3527936935424805, -0.6620790958404541, -0.23751364648342133, -0.377178430557251, -1.2001038789749146, 0.5542008280754089, -0.20633529126644135, -0.7374005317687988, -1.3838567733764648, 0.21720732748508453, -1.0508618354797363, -1.6752451658248901, 0.17268435657024384, 1.8175396919250488, 1.9730103015899658, -0.7748937606811523, 1.6258925199508667, -0.26997023820877075, 0.23270653188228607, 1.2907036542892456, 1.2545639276504517, 3.169801712036133, 1.9805877208709717, -1.363914966583252, 0.7242864370346069, -0.04681947082281113, -0.4457639455795288, 1.245538592338562, -1.2050753831863403, 1.2905725240707397, -0.1907840073108673, -1.240440845489502, -1.295049786567688, 0.9339724183082581, 0.49676117300987244, 0.08141738176345825, -0.4819638133049011, 1.220150113105774, 0.05753472447395325, 1.4048888683319092, 0.5153372287750244, -0.36752936244010925, 0.6489729285240173, -0.47510576248168945, -0.4806962311267853, 1.4837913513183594, 0.20255450904369354, -1.3206849098205566, -2.313594341278076, -0.24674730002880096, -0.8793101906776428, -0.11964678019285202, -0.6657642126083374, -0.9649603962898254, 1.616790771484375, 0.4425255358219147, -1.23525869846344, -0.2720312774181366, -0.2806602716445923, -0.5797427296638489, 2.7302918434143066, -1.4036715030670166, -0.23679284751415253, -1.0352250337600708, -0.6915598511695862, 1.657674789428711, -1.2230055332183838, -0.303083211183548, -1.004342794418335, -0.6125258803367615, -1.293526530265808, -0.5716228485107422, -0.014787285588681698, -0.9404976963996887, 0.900855541229248, 0.17515616118907928, -1.282314419746399, -0.35191527009010315, -0.949798583984375, 0.9226827025413513, -0.10748481750488281, 0.23336181044578552, 1.755253553390503, 0.3482363820075989, -0.34987834095954895, 0.6875101923942566, 1.108415126800537, 0.6420088410377502, -0.6691044569015503, 0.3535120189189911, -0.6806615591049194, 0.3333115875720978, -1.3304600715637207, 0.26178038120269775, -2.9354870319366455, 0.5947065949440002, -0.03914602845907211, -0.0428306981921196, -0.07984953373670578, -1.343585729598999, 1.1168948411941528, 2.529759168624878, -1.2455377578735352, 0.4975169599056244, 0.31734421849250793, 1.177492618560791, -1.6470543146133423, 0.31296324729919434, -0.4811563491821289, 2.0824661254882812, 0.1373179852962494, 1.1933646202087402, -0.33533087372779846, -2.285301446914673, 0.605628252029419, -1.3312439918518066, -1.1518003940582275, 0.9459306597709656, -0.8780821561813354, 0.08618535101413727, -1.3383383750915527, -0.2391904592514038, -0.8193557858467102, -1.2853652238845825, 0.6797916293144226, 0.08817795664072037, 0.47329339385032654, -0.6310938000679016, 0.38338303565979004, -2.2609171867370605, -1.3323891162872314, -0.25601789355278015, -0.9563783407211304, 0.41494908928871155, -0.27325162291526794, 0.6846169233322144, -0.18451903760433197, 0.06684916466474533, 0.3932974934577942, 1.471084713935852, 3.365326404571533, 0.20413298904895782, 0.3114602565765381, -0.14096800982952118, -0.9220382571220398, 1.3728758096694946, 0.9827091097831726, -0.1850966364145279, -0.5399559736251831, -1.0116236209869385, 1.2090716361999512, 1.9610414505004883, 0.9860089421272278, 0.028368951752781868, -0.8660033941268921, -0.7489942908287048, 0.004298943094909191, 0.046270497143268585, 0.48350149393081665, 0.8683582544326782, 0.13023477792739868, 0.1384464055299759, 1.4410059452056885, 1.1591589450836182, -0.30908530950546265, 0.3639863133430481, -0.846346378326416, -0.4928205609321594, 0.5321808457374573, 0.3343929350376129, 0.04438316076993942, 0.28737011551856995, -1.0463154315948486, -0.1615913361310959, -0.38028427958488464, -0.9167640805244446, -0.7627046704292297, -0.5351547002792358, -0.3936864733695984, 1.5769391059875488, 0.04364349693059921, -0.5098801851272583, -0.061020657420158386, -0.7111203670501709, -0.0020256834104657173, -1.0397111177444458, 0.3138900101184845, -0.15452751517295837, -0.13449051976203918, -0.14962293207645416, 1.7032504081726074, -1.036473035812378, -1.9816722869873047, 0.19232134521007538, 0.20616912841796875, -0.3275596499443054, 0.1427011638879776, 1.6986619234085083, 0.5944815874099731, 1.5100032091140747, 1.4172441959381104, 1.023488998413086, -0.7086300849914551, -1.3733506202697754, 0.6610008478164673, 0.9675289392471313, -1.415725827217102, 0.7255719304084778, 0.0833679810166359, -0.5757125020027161, 0.622999370098114, 1.2993865013122559, 0.49246087670326233, -1.9696682691574097, 0.6739628911018372, -1.0472007989883423, 0.7863795161247253, 0.7403931021690369, 0.7523341178894043, 0.1488170325756073, 0.8018367886543274, -1.196894884109497, -1.1057430505752563, -0.6580843329429626, -0.6851488947868347, 1.8953138589859009, -0.40951183438301086, 0.573833167552948, -0.13662441074848175, -1.4149993658065796, -0.0847010388970375, 0.7523835301399231, 0.38688191771507263, -0.5025493502616882, 0.7746199369430542, -0.6344670057296753, -1.0728410482406616, -1.3386602401733398, -0.44003546237945557, -1.0907738208770752, -0.902821958065033, 0.984819233417511, 0.795661449432373, 0.3179759085178375, 1.805288314819336, 0.7126261591911316, 0.2953723073005676, -2.635146379470825, 0.8953583240509033, 0.24224072694778442, -0.0769190639257431, 0.7946152091026306, 0.356224000453949, 1.01822030544281, -0.07585137337446213, 0.573895275592804, -2.4584569931030273, 2.3092076778411865, -0.2339392602443695, 0.5842899680137634, -0.0474335253238678, -0.1559346318244934, 1.0785560607910156, 0.5166832208633423, 0.5317162275314331, -1.1020311117172241, 0.7402212023735046, -0.5803670883178711, 1.2549729347229004, 0.8397440910339355, -0.8673577904701233, -0.10186440497636795, 1.3395823240280151, 0.39293771982192993, -0.5528560876846313, -0.9113982319831848, -1.0589051246643066, 0.9269148111343384, 1.6787192821502686, -0.08096679300069809, -0.0062160068191587925, 0.905767023563385, 0.696723222732544, -1.2836260795593262, 0.07874245941638947, -0.7667387127876282, -0.6877536177635193, 1.719863772392273, 2.055576801300049, -0.08354061096906662, -0.22629831731319427, -0.8314011693000793, -1.1565157175064087, 0.7899070978164673, 0.021755585446953773, -0.04712969809770584, 0.6570777893066406, -0.5858063697814941, 1.0429617166519165, 0.9141108393669128, 0.941863477230072, 0.15485401451587677, 0.24460795521736145, 0.3238542973995209, -0.36433145403862, -1.2154189348220825, -0.22504673898220062, -0.9796011447906494, -2.5566365718841553, 0.4990682303905487, -0.23601825535297394, -1.457439661026001, 0.034104123711586, -1.051396369934082, 0.9370924234390259, -0.5651516914367676, -1.15249764919281, -1.461972951889038, 0.1958543211221695, -0.0063360100612044334, 0.8895772695541382, -1.500458002090454, -0.06681627035140991, 1.2854094505310059, 0.9203334450721741, -0.727380633354187, 1.052675724029541, 0.23920708894729614, 1.0106608867645264, 0.8471739888191223, -0.4192526340484619, 0.5768246054649353, 0.061111897230148315, -1.3149062395095825, 0.4868760406970978, 1.1507264375686646, 0.17475983500480652, 1.521031379699707, -0.6035020351409912, 0.051629871129989624, 0.3733711540699005, -0.5218449831008911, -0.41914141178131104, -0.6694695353507996, 0.7355868816375732, 0.07323809713125229, -0.8200320601463318, 0.06777019053697586, -0.02463909238576889, -0.21233676373958588, 0.1718156337738037, -1.5151628255844116, -0.14799445867538452, -0.26164382696151733, -0.6857001185417175, -1.174211859703064, -0.061745814979076385, 1.3721745014190674, -0.7873354554176331, -0.14052905142307281, 0.5245869159698486, 0.2893144488334656, 0.6224082112312317, 0.6193478107452393, -0.6532208323478699, -0.32383447885513306, -0.3332298696041107, -0.262466698884964, 0.3310370445251465, 1.3822370767593384, -0.050630562007427216, -1.0365357398986816, 0.7506264448165894, -0.38680604100227356, 0.10386600345373154, 1.944244384765625, 0.08556441217660904, -0.883475661277771, 0.3975103795528412, -0.7472009658813477, 1.9717116355895996, 1.7536507844924927, 1.3204725980758667, -0.09492997080087662, -1.0583405494689941, 0.6505672931671143, -0.35312971472740173, -0.3930922746658325, 0.9830448627471924, 0.47802385687828064, -0.18603558838367462, -1.2119170427322388, 0.7563905715942383, 1.21072256565094, -0.8345831632614136, -0.843588650226593, 0.23639412224292755, -0.8232487440109253, 1.101822018623352, 0.6921574473381042, 0.37509575486183167, 0.2815038561820984, 1.5117623805999756, 0.7419202327728271, -0.5030010342597961, 0.5704934597015381, 0.46541687846183777, -0.19627223908901215, -1.9804006814956665, -1.1205146312713623, 0.4547383189201355, -0.5911062359809875, -1.6522414684295654, 1.3630900382995605, -1.1705833673477173, -0.9503377079963684, 0.5727704167366028, 0.07225329428911209, 1.368015170097351, 0.40106797218322754, 1.5552526712417603, 2.0475010871887207, 0.9510346055030823, 0.38129308819770813, 1.3046010732650757, -0.19475704431533813, -0.4883400797843933, 1.8019901514053345, -0.5153850317001343, 0.5037066340446472, 1.1465651988983154, -0.32645052671432495, -1.0896611213684082, -0.8610151410102844, -1.2022488117218018, -0.6928703784942627, 1.1538431644439697, 0.2126433104276657, -1.1484508514404297, 0.271768718957901, 1.5188417434692383, 0.0939827710390091, -0.318270206451416, 0.7147164344787598, 0.3122561275959015, -0.8157060146331787, -0.039993830025196075, -0.903705894947052, 0.4933694303035736, -0.2876032590866089, -0.24484919011592865, 0.32786139845848083, 0.4581104815006256, 1.3216475248336792, 0.010898549109697342, 0.069184310734272, 1.233065128326416, -1.3742984533309937, 1.4641753435134888, -0.69697505235672, 0.3323647975921631, -2.360895872116089, 1.3020479679107666, -0.7450337409973145, 1.8379789590835571, -2.6581337451934814, 0.40144917368888855, -0.5644590258598328, -0.4745476543903351, 0.2949911952018738, -0.32319480180740356, 0.1457640379667282, -0.13752707839012146, -1.2735471725463867, -0.11038906872272491, -0.7559764385223389, 0.6310884952545166, 1.0819591283798218, 1.3186655044555664, -1.181870460510254, -0.29949745535850525, -1.7009276151657104, -0.19782371819019318, -0.7440961599349976, 0.40356728434562683, -1.907346248626709, -0.14466990530490875, -1.9008008241653442, -2.4240756034851074, -1.274284839630127, -0.7964533567428589, 1.1404789686203003, 0.13029146194458008, -0.8914302587509155, 1.1764575242996216, -0.2976170778274536, -1.8531440496444702, 1.1799368858337402, -2.1829309463500977 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
@lhoestq Do you have an idea of what changes need to be made to `CachedDatasetModuleFactory`? I would be willing to take a crack at it. Currently unable to train with datasets I have `push_to_hub` on a cluster whose compute nodes are not connected to the internet. It looks like it might be this line: https://github.com/huggingface/datasets/blob/0c1d099f87a883e52c42d3fd1f1052ad3967e647/src/datasets/load.py#L994 Which wouldn't pick up the stuff saved under `"datasets/allenai___parquet/*"`. Additionally, the datasets saved under `"datasets/allenai___parquet/*"` appear to have hashes in their name, e.g. `"datasets/allenai___parquet/my_dataset-def9ee5552a1043e"`. This would not be detected by `CachedDatasetModuleFactory`, which currently looks for subdirectories https://github.com/huggingface/datasets/blob/0c1d099f87a883e52c42d3fd1f1052ad3967e647/src/datasets/load.py#L995-L999
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
1,017
92
Datasets created with `push_to_hub` can't be accessed in offline mode ## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0 @lhoestq Do you have an idea of what changes need to be made to `CachedDatasetModuleFactory`? I would be willing to take a crack at it. Currently unable to train with datasets I have `push_to_hub` on a cluster whose compute nodes are not connected to the internet. It looks like it might be this line: https://github.com/huggingface/datasets/blob/0c1d099f87a883e52c42d3fd1f1052ad3967e647/src/datasets/load.py#L994 Which wouldn't pick up the stuff saved under `"datasets/allenai___parquet/*"`. Additionally, the datasets saved under `"datasets/allenai___parquet/*"` appear to have hashes in their name, e.g. `"datasets/allenai___parquet/my_dataset-def9ee5552a1043e"`. This would not be detected by `CachedDatasetModuleFactory`, which currently looks for subdirectories https://github.com/huggingface/datasets/blob/0c1d099f87a883e52c42d3fd1f1052ad3967e647/src/datasets/load.py#L995-L999
[ -1.1313767433166504, -0.9100294709205627, -0.7222400307655334, 1.4066684246063232, -0.16323520243167877, -1.2774302959442139, 0.18601667881011963, -1.117477536201477, 1.7364670038223267, -0.7501505613327026, 0.2884290814399719, -1.656957983970642, -0.04025283455848694, -0.5982440710067749, -0.7289632558822632, -0.827772855758667, -0.35095837712287903, -0.7856258749961853, 0.9667627811431885, 2.5063939094543457, 1.182246446609497, -1.2680845260620117, 2.676417827606201, 0.6723797917366028, -0.2042732685804367, -0.938123881816864, 0.4364624321460724, 0.003647466190159321, -1.2908122539520264, -0.4045411944389343, -0.8842113018035889, -0.07037124782800674, -0.5656079053878784, -0.5990378856658936, 0.011956160888075829, 0.48936161398887634, -0.3765701353549957, -0.4145463705062866, -0.5609837770462036, -0.7663553357124329, 0.4725557267665863, -0.3805573880672455, 1.005890965461731, -0.39940014481544495, 1.7953884601593018, -0.5605536103248596, 0.4999759793281555, 0.756219208240509, 1.2969022989273071, 0.17791934311389923, 0.011672740802168846, 0.29665032029151917, 0.322158545255661, -0.005839324090629816, 0.5520715713500977, 1.1551810503005981, 0.651497483253479, 0.5401558876037598, 0.6981253027915955, -2.2535269260406494, 1.3022007942199707, -0.915888786315918, 0.2756122946739197, 1.3602268695831299, -0.8685005307197571, 0.2525266706943512, -1.7392550706863403, 0.015763211995363235, 0.613044798374176, -2.169874906539917, 0.33957356214523315, -1.3738244771957397, -0.5303037166595459, 1.0655735731124878, 0.3509092628955841, -1.176519751548767, 0.1407017707824707, -0.40292173624038696, 1.0876376628875732, 0.49590885639190674, 1.1331757307052612, -1.6950002908706665, -0.04946862906217575, -0.24682870507240295, 0.10035420209169388, -1.2778891324996948, -1.5556591749191284, 0.5310781002044678, 0.6656292080879211, 0.6393882036209106, -0.10719014704227448, 1.006951928138733, -0.9883235096931458, 0.6942735314369202, -1.0294139385223389, -1.7321507930755615, -1.3624141216278076, -2.259972333908081, -2.293161153793335, 0.7010204792022705, -0.4032318592071533, -0.4740379750728607, 2.050967216491699, -1.0300226211547852, -1.7918305397033691, 1.0984092950820923, 0.3541686534881592, 0.04609638452529907, 2.292937994003296, 0.294968843460083, -0.7233006358146667, 0.48104438185691833, -0.7145881056785583, 0.7135578393936157, -0.32484322786331177, 1.2869384288787842, 0.40112361311912537, -1.0738608837127686, 1.572580099105835, -0.4452342092990875, 0.6867641806602478, -0.6940246224403381, -0.4654211401939392, -0.81736159324646, 0.2787413001060486, 1.8810491561889648, -0.3051515519618988, 1.5370228290557861, -0.3647959232330322, -1.5933021306991577, -1.5497900247573853, 0.8883631825447083, 0.4905267357826233, -0.7092266082763672, 0.02966986782848835, -0.42958909273147583, 0.06759008020162582, -0.11939674615859985, 1.1415427923202515, 1.2195875644683838, 0.7548573017120361, -0.36925646662712097, -0.8560037016868591, 0.185537189245224, -0.02793925069272518, -0.7256510257720947, -1.7963687181472778, -0.2532398998737335, 0.20154663920402527, 0.5971946716308594, -1.1871287822723389, 1.736957311630249, 0.8552498817443848, 1.958645224571228, 0.9680636525154114, -0.3089045584201813, 1.4439646005630493, 0.10892326384782791, 1.92133629322052, -0.42684292793273926, 0.6631274223327637, -0.3218189775943756, -1.1583309173583984, 0.8342683911323547, -0.37804973125457764, -2.0810909271240234, -0.7705844640731812, -0.7944161891937256, -0.19276662170886993, -0.7731671929359436, 0.8720530867576599, -0.2432834804058075, -1.41464102268219, 0.20114821195602417, -0.721142590045929, 0.15861642360687256, -1.1962580680847168, 0.29991742968559265, 0.7803483009338379, -0.6640189290046692, 0.019186070188879967, -0.23424598574638367, -1.2930437326431274, -0.45075851678848267, 0.3777804970741272, 1.857396125793457, -0.709003210067749, 0.9466778635978699, 1.0873478651046753, -0.7367500066757202, 0.05041985958814621, 0.28480324149131775, -0.32309621572494507, 0.8145540952682495, -1.1096309423446655, -0.3504087030887604, 1.2027002573013306, -0.19177381694316864, -0.6816525459289551, 1.4940516948699951, 0.6943745613098145, -1.0433892011642456, -0.14579477906227112, -0.17539869248867035, -0.7506556510925293, 0.027883658185601234, -1.5884865522384644, -0.07939445972442627, 0.3771361708641052, -1.47002375125885, -0.48782843351364136, -0.20022279024124146, 1.349092960357666, -0.16962288320064545, 1.4051448106765747, -0.28973570466041565, -0.20459617674350739, -0.390719473361969, -0.3977006673812866, 0.0751434937119484, -0.1960214078426361, -0.6627634167671204, 0.16961784660816193, -0.7387669086456299, 0.3234487473964691, 1.4207968711853027, 0.2976508140563965, -0.003669139463454485, 0.5065739154815674, 1.1051781177520752, 0.34164902567863464, -0.027209972962737083, -0.8418660163879395, -1.6162103414535522, 1.9214394092559814, -1.418938159942627, 1.9564423561096191, 0.7696772217750549, -0.0006826911121606827, -1.7794060707092285, -1.9481712579727173, 1.3898005485534668, 1.0735530853271484, 2.389212131500244, 0.4862896800041199, 0.40203621983528137, -0.8147038817405701, -0.7160734534263611, 0.3814510107040405, -0.963543176651001, -0.6732286214828491, 0.16838808357715607, 2.4210824966430664, 1.7419511079788208, -0.44224074482917786, -0.22280935943126678, -0.9956184029579163, 1.3594375848770142, -0.19768686592578888, 0.2660697400569916, 2.0688300132751465, -0.28163403272628784, -1.0395886898040771, 1.335566520690918, -2.326296329498291, 0.22543247044086456, 2.024674654006958, 0.17449811100959778, 0.14201569557189941, -1.383583664894104, -0.649444580078125, -0.27173441648483276, -0.4020361602306366, -1.2041947841644287, 0.5489218235015869, -0.24438366293907166, -0.802629292011261, -1.4407259225845337, 0.1870642602443695, -1.1198139190673828, -1.6563524007797241, 0.2542822062969208, 1.9165377616882324, 1.9743539094924927, -0.7669944167137146, 1.5943572521209717, -0.3117024302482605, 0.14262644946575165, 1.2747604846954346, 1.3002532720565796, 3.163921356201172, 1.9095500707626343, -1.3357586860656738, 0.7438682317733765, -0.1008109375834465, -0.45338767766952515, 1.1972447633743286, -1.156136155128479, 1.2547940015792847, -0.22348593175411224, -1.2015634775161743, -1.2795732021331787, 0.9793162941932678, 0.517030656337738, 0.06941550225019455, -0.4859614968299866, 1.165550708770752, 0.07223048061132431, 1.3904725313186646, 0.5607309937477112, -0.4286569356918335, 0.6744529604911804, -0.425456702709198, -0.5024605393409729, 1.5080373287200928, 0.19776923954486847, -1.3468936681747437, -2.318958282470703, -0.2725374698638916, -0.8453575968742371, -0.04387519508600235, -0.6502156257629395, -1.005455493927002, 1.621407151222229, 0.43553027510643005, -1.2596752643585205, -0.26429998874664307, -0.28074386715888977, -0.5251290202140808, 2.6769068241119385, -1.3730841875076294, -0.18138259649276733, -0.995993435382843, -0.6194981336593628, 1.6632754802703857, -1.1745567321777344, -0.3030613660812378, -1.0004547834396362, -0.5977619290351868, -1.3000774383544922, -0.5702150464057922, 0.05359937995672226, -0.9095473289489746, 0.888886570930481, 0.13767880201339722, -1.2443757057189941, -0.3072541654109955, -0.9400193691253662, 0.9966140985488892, -0.11458319425582886, 0.18517589569091797, 1.8199182748794556, 0.384729266166687, -0.39994490146636963, 0.6691992282867432, 1.1433511972427368, 0.6025506258010864, -0.7081499695777893, 0.2659928500652313, -0.7228167057037354, 0.3029346168041229, -1.3838889598846436, 0.24862201511859894, -2.9201509952545166, 0.6318100094795227, -0.07552562654018402, -0.06093175709247589, -0.028972851112484932, -1.36200749874115, 1.0711779594421387, 2.5659141540527344, -1.2203649282455444, 0.4747927784919739, 0.36154547333717346, 1.1718171834945679, -1.587996244430542, 0.2636245787143707, -0.47396278381347656, 2.0191197395324707, 0.11767511069774628, 1.2519278526306152, -0.4234069287776947, -2.2169229984283447, 0.575508177280426, -1.2853777408599854, -1.1800388097763062, 0.9070384502410889, -0.9041312336921692, 0.13379213213920593, -1.3864758014678955, -0.22224144637584686, -0.8819466233253479, -1.2711719274520874, 0.7247424721717834, 0.1022421345114708, 0.4396745562553406, -0.6497836709022522, 0.39932361245155334, -2.1763522624969482, -1.319036841392517, -0.25650933384895325, -0.9495515823364258, 0.47040921449661255, -0.288742333650589, 0.6486735343933105, -0.15666761994361877, 0.0608254075050354, 0.3887566328048706, 1.4345496892929077, 3.370303153991699, 0.17431649565696716, 0.2253188043832779, -0.17693984508514404, -0.9526597261428833, 1.3793421983718872, 1.0098663568496704, -0.1244778260588646, -0.5497167706489563, -1.0356837511062622, 1.1746017932891846, 2.0146193504333496, 1.0741876363754272, 0.03659273684024811, -0.8989676833152771, -0.7640253305435181, -0.004931966308504343, 0.08171738684177399, 0.44573283195495605, 0.889272928237915, 0.12305833399295807, 0.12244626879692078, 1.3948354721069336, 1.1498690843582153, -0.3464289605617523, 0.39401859045028687, -0.8504452109336853, -0.4891839921474457, 0.4512209892272949, 0.3245665729045868, 0.04909785836935043, 0.32816821336746216, -1.0614454746246338, -0.2046087235212326, -0.44420740008354187, -0.919585645198822, -0.7512917518615723, -0.5019345879554749, -0.35865187644958496, 1.561272382736206, 0.06554953753948212, -0.5085070133209229, -0.045018307864665985, -0.747835099697113, -0.04659601300954819, -1.0557143688201904, 0.32097160816192627, -0.18843895196914673, -0.133345365524292, -0.14168645441532135, 1.640852689743042, -1.0354585647583008, -1.9810583591461182, 0.20791582763195038, 0.20061595737934113, -0.36539962887763977, 0.1806052327156067, 1.6961888074874878, 0.6019920706748962, 1.4643369913101196, 1.3743895292282104, 1.0241583585739136, -0.7004449367523193, -1.3347017765045166, 0.6584124565124512, 0.9398815631866455, -1.4131338596343994, 0.7632776498794556, 0.03378716856241226, -0.5737037658691406, 0.6772212982177734, 1.341570258140564, 0.449110209941864, -1.9899015426635742, 0.726913571357727, -0.9898517727851868, 0.752073347568512, 0.7213863134384155, 0.7677234411239624, 0.20650260150432587, 0.8292663097381592, -1.1707870960235596, -1.1376972198486328, -0.6662055253982544, -0.6724177598953247, 1.9287865161895752, -0.35484689474105835, 0.5882073044776917, -0.17867743968963623, -1.3410282135009766, -0.10437770187854767, 0.7750933170318604, 0.43132391571998596, -0.5378232598304749, 0.7764083743095398, -0.6062763333320618, -1.0194101333618164, -1.279971957206726, -0.45557570457458496, -1.077162504196167, -0.908722460269928, 0.9545785188674927, 0.8181937336921692, 0.39814335107803345, 1.8550900220870972, 0.6751672029495239, 0.33092159032821655, -2.6253151893615723, 0.8899633884429932, 0.3259564936161041, -0.06938141584396362, 0.8416361808776855, 0.35107505321502686, 1.0339837074279785, -0.03391318768262863, 0.5869500637054443, -2.402383327484131, 2.2858736515045166, -0.20256704092025757, 0.5956153869628906, -0.02297787368297577, -0.21319347620010376, 1.1241551637649536, 0.49816447496414185, 0.506249725818634, -1.134767770767212, 0.7302213907241821, -0.5659948587417603, 1.1888118982315063, 0.8677347898483276, -0.8700786232948303, -0.032010674476623535, 1.392747402191162, 0.4397975206375122, -0.5262126922607422, -0.9329848885536194, -1.0017857551574707, 0.9552902579307556, 1.674227237701416, -0.08652617782354355, 0.01995757780969143, 0.9144063591957092, 0.7041587829589844, -1.2985305786132812, 0.09252848476171494, -0.7601845264434814, -0.7156091332435608, 1.7091469764709473, 2.0469658374786377, -0.09059912711381912, -0.206292524933815, -0.8210203647613525, -1.1609728336334229, 0.7878910899162292, -0.0037831743247807026, -0.004300999455153942, 0.6310849189758301, -0.6243347525596619, 1.1040294170379639, 0.8047502636909485, 0.9385714530944824, 0.06600486487150192, 0.3223843276500702, 0.37974101305007935, -0.3905620574951172, -1.1770893335342407, -0.2885514795780182, -0.9948133826255798, -2.5153746604919434, 0.5191006660461426, -0.21049216389656067, -1.4563660621643066, 0.01715635322034359, -1.0644540786743164, 0.9399145841598511, -0.5710676312446594, -1.1279670000076294, -1.4945875406265259, 0.23648227751255035, -0.030434904620051384, 0.9352043867111206, -1.570605993270874, -0.12021679431200027, 1.2267980575561523, 0.9101564288139343, -0.7087273001670837, 1.0093709230422974, 0.20409561693668365, 0.961313784122467, 0.8521832227706909, -0.39794495701789856, 0.5158518552780151, 0.05293744057416916, -1.297956943511963, 0.4382784366607666, 1.215416431427002, 0.19611933827400208, 1.5046623945236206, -0.5574429035186768, 0.09082355350255966, 0.39622819423675537, -0.5564679503440857, -0.4337007701396942, -0.6047959923744202, 0.7126814723014832, 0.08056973665952682, -0.8493571877479553, 0.012740639969706535, -0.06231912970542908, -0.22645829617977142, 0.14467519521713257, -1.499518632888794, -0.19374114274978638, -0.2944548428058624, -0.640408992767334, -1.2032792568206787, -0.011650758795440197, 1.3702094554901123, -0.7813167572021484, -0.20507311820983887, 0.5401354432106018, 0.33828431367874146, 0.5838893055915833, 0.582464873790741, -0.7198008298873901, -0.3065130114555359, -0.3449093699455261, -0.3309389650821686, 0.30230608582496643, 1.3664785623550415, -0.019436627626419067, -1.010483741760254, 0.7187195420265198, -0.4223331809043884, 0.07264137268066406, 1.991876244544983, 0.0631386786699295, -0.8110055327415466, 0.3462608754634857, -0.7405995726585388, 1.9193195104599, 1.7684099674224854, 1.3345763683319092, -0.12919621169567108, -0.9919416308403015, 0.6457669138908386, -0.33729782700538635, -0.40173327922821045, 1.0433436632156372, 0.3870481550693512, -0.19854488968849182, -1.3010528087615967, 0.6923074722290039, 1.2828359603881836, -0.869326114654541, -0.8019393682479858, 0.16662168502807617, -0.8341792225837708, 1.1195460557937622, 0.655265212059021, 0.3353012502193451, 0.27755317091941833, 1.5257154703140259, 0.7114846110343933, -0.471344530582428, 0.5809146761894226, 0.4752631187438965, -0.183333158493042, -2.0613441467285156, -1.1155469417572021, 0.44713976979255676, -0.5183888077735901, -1.6590566635131836, 1.3663411140441895, -1.1519790887832642, -0.9887741208076477, 0.5479741096496582, 0.0759313777089119, 1.3737317323684692, 0.37798935174942017, 1.5974410772323608, 2.117023229598999, 0.9093047976493835, 0.39202916622161865, 1.3071815967559814, -0.1280548870563507, -0.49873173236846924, 1.8080567121505737, -0.5239906907081604, 0.5285723805427551, 1.1077827215194702, -0.3360590636730194, -1.1110652685165405, -0.860040009021759, -1.224597454071045, -0.6958204507827759, 1.1855716705322266, 0.14741666615009308, -1.1537158489227295, 0.27921757102012634, 1.5710235834121704, 0.12328481674194336, -0.3126981854438782, 0.773722231388092, 0.3607650101184845, -0.8159412145614624, -0.05356024205684662, -0.8874354362487793, 0.5276389122009277, -0.2363801896572113, -0.2851392328739166, 0.3069119453430176, 0.5092182159423828, 1.3390194177627563, -0.05009191483259201, 0.06028585880994797, 1.2003235816955566, -1.3703092336654663, 1.4891730546951294, -0.6668927669525146, 0.3246906101703644, -2.4663732051849365, 1.3663463592529297, -0.7341196537017822, 1.8758926391601562, -2.621438980102539, 0.39183029532432556, -0.5687711238861084, -0.47697532176971436, 0.26667794585227966, -0.3047395944595337, 0.16073498129844666, -0.11007189005613327, -1.1824568510055542, -0.1117936447262764, -0.7466239929199219, 0.6959452629089355, 1.128366470336914, 1.3555727005004883, -1.1848071813583374, -0.2749123275279999, -1.7203948497772217, -0.22638334333896637, -0.7286019921302795, 0.36166608333587646, -1.9322311878204346, -0.1776827871799469, -1.936537504196167, -2.43094801902771, -1.3217188119888306, -0.8064730763435364, 1.079596996307373, 0.14854495227336884, -0.9458994269371033, 1.1783562898635864, -0.3549152612686157, -1.8866490125656128, 1.1215094327926636, -2.197700262069702 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
`importable_directory_path` is used to find a **dataset script** that was previously downloaded and cached from the Hub However in your case there's no dataset script on the Hub, only parquet files. So the logic must be extended for this case. In particular I think you can add a new logic in the case where `hashes is None` (i.e. if there's no dataset script associated to the dataset in the cache). In this case you can check directly in the in the datasets cache for a directory named `<namespace>__parquet` and a subdirectory named `<config_id>`. The config_id must match `{self.name.replace("/", "--")}-*`. In your case those two directories correspond to `allenai___parquet` and then `allenai--my_dataset-def9ee5552a1043e` Then you can find the most recent version of the dataset in subdirectories (e.g. sorting using the last modified time of the `dataset_info.json` file). Finally, we will need return the module that is used to load the dataset from the cache. It is the same module than the one that would have been normally used if you had an internet connection. At that point you can ping me, because we will need to pass all this: - `module_path = _PACKAGED_DATASETS_MODULES["parquet"][0]` - `hash` it corresponds the name of the directory that contains the .arrow file, inside `<namespace>__parquet/<config_id>` - ` builder_kwargs = {"hash": hash, "repo_id": self.name, "config_id": config_id}` and currently `config_id` is not a valid argument for a `DatasetBuilder` I think in the future we want to change this caching logic completely, since I don't find it super easy to play with.
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
1,017
251
Datasets created with `push_to_hub` can't be accessed in offline mode ## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0 `importable_directory_path` is used to find a **dataset script** that was previously downloaded and cached from the Hub However in your case there's no dataset script on the Hub, only parquet files. So the logic must be extended for this case. In particular I think you can add a new logic in the case where `hashes is None` (i.e. if there's no dataset script associated to the dataset in the cache). In this case you can check directly in the in the datasets cache for a directory named `<namespace>__parquet` and a subdirectory named `<config_id>`. The config_id must match `{self.name.replace("/", "--")}-*`. In your case those two directories correspond to `allenai___parquet` and then `allenai--my_dataset-def9ee5552a1043e` Then you can find the most recent version of the dataset in subdirectories (e.g. sorting using the last modified time of the `dataset_info.json` file). Finally, we will need return the module that is used to load the dataset from the cache. It is the same module than the one that would have been normally used if you had an internet connection. At that point you can ping me, because we will need to pass all this: - `module_path = _PACKAGED_DATASETS_MODULES["parquet"][0]` - `hash` it corresponds the name of the directory that contains the .arrow file, inside `<namespace>__parquet/<config_id>` - ` builder_kwargs = {"hash": hash, "repo_id": self.name, "config_id": config_id}` and currently `config_id` is not a valid argument for a `DatasetBuilder` I think in the future we want to change this caching logic completely, since I don't find it super easy to play with.
[ -1.1659067869186401, -0.9244529604911804, -0.6885679960250854, 1.4075288772583008, -0.16589288413524628, -1.3377078771591187, 0.23645678162574768, -1.1224313974380493, 1.7499668598175049, -0.825412392616272, 0.31886327266693115, -1.6703568696975708, 0.026664262637495995, -0.6244338750839233, -0.7713375687599182, -0.8185070753097534, -0.3960762917995453, -0.7607011198997498, 0.9837538003921509, 2.4078776836395264, 1.195263385772705, -1.2899142503738403, 2.6494948863983154, 0.6829863786697388, -0.15536777675151825, -0.9627434015274048, 0.45762330293655396, -0.00714206974953413, -1.3348597288131714, -0.38759100437164307, -0.9288849234580994, -0.07755813747644424, -0.5897374153137207, -0.6242483258247375, -0.0012869089841842651, 0.46277058124542236, -0.3156357407569885, -0.5004174113273621, -0.4955591857433319, -0.795756459236145, 0.42325758934020996, -0.3814028799533844, 0.9910581707954407, -0.4099709391593933, 1.7591519355773926, -0.5936428904533386, 0.5063616037368774, 0.7766040563583374, 1.2639105319976807, 0.17357929050922394, -0.03627516329288483, 0.28367650508880615, 0.3592725992202759, 0.002308606170117855, 0.5384353995323181, 1.1408321857452393, 0.6534383893013, 0.5147528648376465, 0.7100432515144348, -2.2867016792297363, 1.2737526893615723, -0.919013500213623, 0.32048270106315613, 1.3298330307006836, -0.9558640718460083, 0.2830219268798828, -1.7224452495574951, 0.02818763069808483, 0.6131876707077026, -2.1803529262542725, 0.309405654668808, -1.3638710975646973, -0.4919520318508148, 1.044782042503357, 0.38307592272758484, -1.1635501384735107, 0.07858014851808548, -0.32784566283226013, 1.0311279296875, 0.4700874984264374, 1.121950387954712, -1.6527907848358154, -0.04252056032419205, -0.30319109559059143, 0.11898916214704514, -1.222775936126709, -1.557545781135559, 0.5142238736152649, 0.6862678527832031, 0.548428475856781, -0.1741812378168106, 1.0413614511489868, -1.0037798881530762, 0.7142804861068726, -1.0186597108840942, -1.791239857673645, -1.3912070989608765, -2.253133773803711, -2.281639337539673, 0.6639276146888733, -0.4084913730621338, -0.49202078580856323, 2.090143918991089, -1.0326014757156372, -1.8049625158309937, 1.1328299045562744, 0.27855604887008667, 0.06992493569850922, 2.240391731262207, 0.2277265042066574, -0.7499687075614929, 0.46954545378685, -0.7294062376022339, 0.6584741473197937, -0.39885464310646057, 1.2581950426101685, 0.36437731981277466, -1.054631233215332, 1.5377179384231567, -0.4440852105617523, 0.6445418000221252, -0.6880783438682556, -0.43023908138275146, -0.7808213829994202, 0.2873955965042114, 1.8790534734725952, -0.2599806785583496, 1.5220768451690674, -0.34392449259757996, -1.6196595430374146, -1.5479727983474731, 0.8199275135993958, 0.5050652027130127, -0.7095142006874084, 0.04187843203544617, -0.3634323179721832, 0.11424168199300766, -0.156963512301445, 1.1843364238739014, 1.2650903463363647, 0.8036894202232361, -0.4127601087093353, -0.8447394967079163, 0.1624564230442047, -0.029307173565030098, -0.7614197134971619, -1.7847005128860474, -0.21372820436954498, 0.19067421555519104, 0.5945059657096863, -1.1313145160675049, 1.7480690479278564, 0.8872724175453186, 1.9490396976470947, 0.981602132320404, -0.27689436078071594, 1.463794469833374, 0.13906872272491455, 1.9394489526748657, -0.3931144177913666, 0.6767171621322632, -0.31696492433547974, -1.144540786743164, 0.8618890643119812, -0.34374094009399414, -2.054595947265625, -0.7065610289573669, -0.8306289315223694, -0.18001219630241394, -0.7468838691711426, 0.9247022867202759, -0.24170690774917603, -1.4218063354492188, 0.214003324508667, -0.7034636735916138, 0.18779923021793365, -1.175837755203247, 0.30631548166275024, 0.7406375408172607, -0.6485125422477722, 0.034372180700302124, -0.29503560066223145, -1.305140495300293, -0.42828184366226196, 0.3848736584186554, 1.788354516029358, -0.7961588501930237, 0.9787470102310181, 1.0972110033035278, -0.6978892683982849, 0.006421560421586037, 0.28425347805023193, -0.29137009382247925, 0.8627334237098694, -1.1088192462921143, -0.3489924967288971, 1.2189767360687256, -0.2070324420928955, -0.6414409875869751, 1.4785182476043701, 0.660154402256012, -1.0050020217895508, -0.14360499382019043, -0.15048876404762268, -0.7959517240524292, 0.032405540347099304, -1.6161731481552124, -0.06002511829137802, 0.39287686347961426, -1.5124330520629883, -0.5020819306373596, -0.1764727383852005, 1.34196937084198, -0.12161681801080704, 1.4157251119613647, -0.28502097725868225, -0.18782514333724976, -0.42851218581199646, -0.3482222557067871, 0.10680535435676575, -0.20631855726242065, -0.6229982376098633, 0.1807132214307785, -0.7275593876838684, 0.28536584973335266, 1.380011796951294, 0.22919313609600067, -0.008801240473985672, 0.5564371347427368, 1.1022847890853882, 0.30210062861442566, -0.04499606043100357, -0.8324028253555298, -1.6058862209320068, 1.9594619274139404, -1.4775199890136719, 1.9443832635879517, 0.7096883058547974, 0.02300654910504818, -1.8145438432693481, -1.9676865339279175, 1.3914601802825928, 1.046073317527771, 2.404433012008667, 0.4507726728916168, 0.4209623634815216, -0.8179237246513367, -0.6658044457435608, 0.3761800527572632, -0.9792883992195129, -0.699100136756897, 0.12041874974966049, 2.3768649101257324, 1.7266041040420532, -0.41228216886520386, -0.2097545713186264, -0.9948601126670837, 1.417541742324829, -0.15995196998119354, 0.2806017994880676, 2.0394365787506104, -0.2651691436767578, -1.0542633533477783, 1.3072510957717896, -2.3415608406066895, 0.17228056490421295, 2.030689239501953, 0.15061937272548676, 0.1341092437505722, -1.3568358421325684, -0.6255854964256287, -0.23891180753707886, -0.44304531812667847, -1.2592377662658691, 0.5264520049095154, -0.2165481150150299, -0.7210723757743835, -1.4391480684280396, 0.22850967943668365, -1.049049973487854, -1.6742602586746216, 0.1952648162841797, 1.9242018461227417, 1.9453998804092407, -0.7452487945556641, 1.596140742301941, -0.34748557209968567, 0.17986975610256195, 1.2513134479522705, 1.226287841796875, 3.201418399810791, 2.0014376640319824, -1.3649935722351074, 0.7440561652183533, -0.09307190775871277, -0.4204339385032654, 1.1964735984802246, -1.1705952882766724, 1.2640864849090576, -0.17850594222545624, -1.2139184474945068, -1.2287884950637817, 0.9436681866645813, 0.48954683542251587, 0.07301747053861618, -0.48287418484687805, 1.1663243770599365, 0.08447666466236115, 1.3759573698043823, 0.5434583425521851, -0.40467560291290283, 0.719333827495575, -0.4471651017665863, -0.5040789246559143, 1.4918007850646973, 0.2211272120475769, -1.2899545431137085, -2.2750725746154785, -0.23170903325080872, -0.9162159562110901, -0.02009844407439232, -0.6600901484489441, -0.9443345069885254, 1.6527661085128784, 0.4372679889202118, -1.2511423826217651, -0.2484535425901413, -0.2926415801048279, -0.5632314085960388, 2.665167808532715, -1.3676122426986694, -0.22154675424098969, -1.0171881914138794, -0.6795333027839661, 1.663070559501648, -1.2447431087493896, -0.323089063167572, -1.0404020547866821, -0.5516445636749268, -1.2611554861068726, -0.578990638256073, 0.02567889355123043, -0.8846235275268555, 0.923786997795105, 0.17547020316123962, -1.2940833568572998, -0.3549330532550812, -0.9245519638061523, 0.9474403262138367, -0.08278137445449829, 0.15051713585853577, 1.8666741847991943, 0.3454257845878601, -0.38208264112472534, 0.6830324530601501, 1.0678454637527466, 0.6032009720802307, -0.6557170152664185, 0.29061663150787354, -0.6898115873336792, 0.33416852355003357, -1.3638440370559692, 0.25413069128990173, -2.9149069786071777, 0.6103719472885132, -0.0656106024980545, -0.03749518096446991, -0.05249728262424469, -1.4329581260681152, 1.045259714126587, 2.5502052307128906, -1.1964932680130005, 0.47225379943847656, 0.33097317814826965, 1.1707921028137207, -1.6003015041351318, 0.3182472884654999, -0.49515071511268616, 2.079742431640625, 0.1301303505897522, 1.1912628412246704, -0.35135143995285034, -2.285554885864258, 0.6075152158737183, -1.2700629234313965, -1.1775763034820557, 0.8910494446754456, -0.8609769344329834, 0.09359437972307205, -1.3698369264602661, -0.25927138328552246, -0.828554630279541, -1.2382981777191162, 0.7169601321220398, 0.10164929181337357, 0.45985156297683716, -0.7199837565422058, 0.3279816508293152, -2.2222156524658203, -1.2580375671386719, -0.27468565106391907, -0.9340670704841614, 0.4068720042705536, -0.30085206031799316, 0.640573263168335, -0.14132975041866302, 0.06818225234746933, 0.3754971921443939, 1.4441908597946167, 3.3981828689575195, 0.1622086614370346, 0.2726244330406189, -0.17532134056091309, -0.9477841854095459, 1.3755898475646973, 0.9379642605781555, -0.14095082879066467, -0.5866473913192749, -1.0513049364089966, 1.1824045181274414, 1.9828524589538574, 0.9472622275352478, 0.021588807925581932, -0.8447926044464111, -0.7638009786605835, 0.0022685201838612556, 0.07086516171693802, 0.5156217813491821, 0.8996904492378235, 0.13350605964660645, 0.1315934807062149, 1.4540857076644897, 1.088648796081543, -0.2774792015552521, 0.3656800091266632, -0.8740244507789612, -0.5183154344558716, 0.48391273617744446, 0.39388710260391235, 0.02858089469373226, 0.2465318739414215, -1.0121641159057617, -0.1879129409790039, -0.40200501680374146, -0.9142704606056213, -0.7096401453018188, -0.46661147475242615, -0.3272987902164459, 1.6049916744232178, 0.06407180428504944, -0.5180304646492004, -0.04606838524341583, -0.684262752532959, 0.0002084784209728241, -1.0513697862625122, 0.3392986059188843, -0.1366969645023346, -0.11122328788042068, -0.0839744433760643, 1.6510605812072754, -0.9823861122131348, -1.9690537452697754, 0.2477293610572815, 0.16356508433818817, -0.37762996554374695, 0.16602960228919983, 1.717474102973938, 0.6228491067886353, 1.4645389318466187, 1.4453338384628296, 1.0369515419006348, -0.6721380352973938, -1.3676434755325317, 0.6424458026885986, 0.9017379283905029, -1.3966424465179443, 0.7679309248924255, 0.06927228718996048, -0.5687434673309326, 0.651262640953064, 1.2932331562042236, 0.49102646112442017, -2.0529887676239014, 0.7559082508087158, -1.0078595876693726, 0.7543190121650696, 0.7567472457885742, 0.7904926538467407, 0.14583571255207062, 0.8322539329528809, -1.1498459577560425, -1.1263666152954102, -0.652164101600647, -0.7296672463417053, 1.9370447397232056, -0.4081757068634033, 0.5747687220573425, -0.20504575967788696, -1.4103754758834839, -0.10759606957435608, 0.7685639262199402, 0.385613352060318, -0.5212517976760864, 0.7278100252151489, -0.6535228490829468, -1.045196294784546, -1.3344645500183105, -0.4651479721069336, -1.0813193321228027, -0.8943334817886353, 0.9736319780349731, 0.8487628698348999, 0.3913646638393402, 1.873397707939148, 0.7236173748970032, 0.29003822803497314, -2.625128746032715, 0.8533799052238464, 0.32429495453834534, -0.06753149628639221, 0.8233493566513062, 0.3438631594181061, 1.0414823293685913, -0.052770406007766724, 0.6016556620597839, -2.4633164405822754, 2.259758472442627, -0.24941225349903107, 0.659332275390625, -0.01960449479520321, -0.22281672060489655, 1.089264154434204, 0.5307680368423462, 0.5606054067611694, -1.078871726989746, 0.7592844367027283, -0.5971666574478149, 1.2097251415252686, 0.8411353230476379, -0.8108990788459778, -0.08837240189313889, 1.3611931800842285, 0.43248510360717773, -0.5750401616096497, -0.9241044521331787, -1.1064163446426392, 0.9276324510574341, 1.7039778232574463, -0.03671576827764511, 0.03339251130819321, 0.8924745917320251, 0.7273204326629639, -1.2587558031082153, 0.11053905636072159, -0.8334105014801025, -0.7132116556167603, 1.6824997663497925, 2.001441717147827, -0.10488256812095642, -0.18328267335891724, -0.8226784467697144, -1.2015740871429443, 0.795106053352356, 0.007132126018404961, -0.08372947573661804, 0.6311432719230652, -0.6198969483375549, 1.0775437355041504, 0.8933119773864746, 0.9611870646476746, 0.16563673317432404, 0.30690640211105347, 0.3839990198612213, -0.35599371790885925, -1.1670973300933838, -0.21481934189796448, -0.9836463332176208, -2.520317316055298, 0.5070872902870178, -0.17779964208602905, -1.4673177003860474, 0.022571275010704994, -1.0420739650726318, 0.9187902212142944, -0.5853585600852966, -1.1850215196609497, -1.4813719987869263, 0.19030873477458954, -0.0021700793877243996, 0.8926724791526794, -1.5101702213287354, -0.09767866134643555, 1.2508128881454468, 0.913084864616394, -0.7073359489440918, 1.0070405006408691, 0.2017054408788681, 1.0113314390182495, 0.8663029074668884, -0.413900762796402, 0.46954798698425293, 0.04389994591474533, -1.2876112461090088, 0.47651171684265137, 1.1720846891403198, 0.17650878429412842, 1.478837251663208, -0.5837278962135315, 0.01797592081129551, 0.4071827232837677, -0.5337842702865601, -0.4261783957481384, -0.6219528913497925, 0.7004172205924988, 0.02774028293788433, -0.8194709420204163, 0.05020243674516678, -0.022685721516609192, -0.23668122291564941, 0.18173296749591827, -1.4576106071472168, -0.14493830502033234, -0.27505171298980713, -0.641768753528595, -1.2225062847137451, -0.05902302265167236, 1.383928656578064, -0.750110924243927, -0.20457303524017334, 0.5324036478996277, 0.3029972314834595, 0.5684004426002502, 0.5984780192375183, -0.6822974681854248, -0.2572854161262512, -0.3342874050140381, -0.35202088952064514, 0.3256438076496124, 1.4085866212844849, -0.05739010125398636, -0.98757004737854, 0.6988216638565063, -0.381430983543396, 0.04389850050210953, 1.948196530342102, 0.07236602902412415, -0.8092463612556458, 0.36984941363334656, -0.7227090001106262, 1.9205363988876343, 1.8098657131195068, 1.3479399681091309, -0.05383092164993286, -1.0676281452178955, 0.6211546063423157, -0.369853138923645, -0.452670693397522, 1.0144603252410889, 0.46250686049461365, -0.18361978232860565, -1.271376132965088, 0.751402735710144, 1.2523876428604126, -0.8515490889549255, -0.8122178316116333, 0.18270793557167053, -0.7736521363258362, 1.1184474229812622, 0.7093085050582886, 0.41780275106430054, 0.29633358120918274, 1.5689501762390137, 0.7475036382675171, -0.4498831033706665, 0.5739961266517639, 0.494765043258667, -0.14749807119369507, -2.0453526973724365, -1.140710711479187, 0.42093703150749207, -0.543669581413269, -1.6715044975280762, 1.4319261312484741, -1.1760798692703247, -0.9956080317497253, 0.4755738377571106, 0.06738061457872391, 1.3998591899871826, 0.4284316599369049, 1.5871608257293701, 2.106912612915039, 0.973675012588501, 0.4332540035247803, 1.2954137325286865, -0.14901573956012726, -0.4813465476036072, 1.7950578927993774, -0.5165400505065918, 0.48625674843788147, 1.1167354583740234, -0.35588276386260986, -1.1004389524459839, -0.8410767316818237, -1.1945366859436035, -0.7097333073616028, 1.1560395956039429, 0.11829253286123276, -1.1259384155273438, 0.3326607644557953, 1.5455503463745117, 0.14317455887794495, -0.302911639213562, 0.7434422373771667, 0.3290146589279175, -0.8386889696121216, -0.086015984416008, -0.9123454689979553, 0.5218860507011414, -0.2687157392501831, -0.29336220026016235, 0.3581230044364929, 0.4701850712299347, 1.3773012161254883, 0.0005825525149703026, 0.09222757816314697, 1.1971319913864136, -1.4518922567367554, 1.4568899869918823, -0.7257232069969177, 0.3083062767982483, -2.4432475566864014, 1.3660664558410645, -0.7902002930641174, 1.8949114084243774, -2.6859352588653564, 0.41701075434684753, -0.5259732604026794, -0.45463332533836365, 0.3153620958328247, -0.3079354465007782, 0.110698401927948, -0.12476044148206711, -1.292639136314392, -0.05010398477315903, -0.7537596225738525, 0.6510177850723267, 1.0916944742202759, 1.324540376663208, -1.1900571584701538, -0.28179386258125305, -1.7081531286239624, -0.17177477478981018, -0.7388221025466919, 0.3643667697906494, -1.9103997945785522, -0.0876971185207367, -1.8983851671218872, -2.438960075378418, -1.2633506059646606, -0.8450186848640442, 1.0759605169296265, 0.1684158444404602, -0.8970251679420471, 1.1434876918792725, -0.32523226737976074, -1.8729033470153809, 1.1605007648468018, -2.1826794147491455 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Hi! Is there a workaround for the time being? Like passing `data_dir` or something like that? I would like to use [this diffuser example](https://github.com/huggingface/diffusers/tree/main/examples/unconditional_image_generation) on my cluster whose nodes are not connected to the internet. I have downloaded the dataset online form the login node.
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
1,017
45
Datasets created with `push_to_hub` can't be accessed in offline mode ## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0 Hi! Is there a workaround for the time being? Like passing `data_dir` or something like that? I would like to use [this diffuser example](https://github.com/huggingface/diffusers/tree/main/examples/unconditional_image_generation) on my cluster whose nodes are not connected to the internet. I have downloaded the dataset online form the login node.
[ -1.1256582736968994, -0.9222212433815002, -0.7462291717529297, 1.4728606939315796, -0.12724439799785614, -1.2958778142929077, 0.19058667123317719, -1.0683164596557617, 1.7041759490966797, -0.7575885057449341, 0.33057382702827454, -1.6863993406295776, -0.010434865951538086, -0.6245445013046265, -0.7337673902511597, -0.8696520328521729, -0.3818155527114868, -0.7148082256317139, 1.03173828125, 2.4555675983428955, 1.1730341911315918, -1.290205478668213, 2.6496009826660156, 0.6369926333427429, -0.15956979990005493, -0.9887357354164124, 0.45245611667633057, 0.0066108861938118935, -1.2906835079193115, -0.39453044533729553, -0.8410726189613342, -0.08330988883972168, -0.5892106294631958, -0.6190808415412903, 0.012121067382395267, 0.4665089249610901, -0.3620625436306, -0.4653223752975464, -0.5260366201400757, -0.7935952544212341, 0.4524296522140503, -0.3708184063434601, 0.9601076245307922, -0.3874911963939667, 1.8070521354675293, -0.5548375248908997, 0.5245407819747925, 0.7979665398597717, 1.2884809970855713, 0.16984260082244873, -0.005001955199986696, 0.3216068148612976, 0.3438287079334259, 0.01047083642333746, 0.5215679407119751, 1.1091386079788208, 0.6188823580741882, 0.5214247703552246, 0.6661098599433899, -2.2653727531433105, 1.3230804204940796, -0.9163743853569031, 0.3086358606815338, 1.3845938444137573, -0.9353177547454834, 0.2505347728729248, -1.7128815650939941, 0.022324219346046448, 0.6070624589920044, -2.1255555152893066, 0.318926602602005, -1.3358701467514038, -0.49081307649612427, 1.0755083560943604, 0.40549564361572266, -1.1914113759994507, 0.08622943609952927, -0.33151933550834656, 1.0646703243255615, 0.48959606885910034, 1.1166538000106812, -1.694425344467163, -0.04469196870923042, -0.25068357586860657, 0.07329963892698288, -1.3064615726470947, -1.5158426761627197, 0.4934801459312439, 0.7038981914520264, 0.6119844913482666, -0.11278844624757767, 0.9693781137466431, -0.956209123134613, 0.7149905562400818, -0.996279776096344, -1.7705516815185547, -1.3885022401809692, -2.3255562782287598, -2.318661689758301, 0.7110348343849182, -0.4039596617221832, -0.5149959325790405, 2.0417604446411133, -1.0237802267074585, -1.8522571325302124, 1.1331321001052856, 0.32105299830436707, 0.06165238469839096, 2.2883505821228027, 0.2636948823928833, -0.7492931485176086, 0.4565432071685791, -0.7566232085227966, 0.7009803652763367, -0.3507222533226013, 1.252832055091858, 0.4099479019641876, -1.140848994255066, 1.5552806854248047, -0.41722410917282104, 0.611190676689148, -0.7061777114868164, -0.3995581865310669, -0.7921474575996399, 0.25839176774024963, 1.8378928899765015, -0.266896516084671, 1.5422738790512085, -0.34775272011756897, -1.5769126415252686, -1.5549533367156982, 0.842873215675354, 0.4872775971889496, -0.7200350165367126, 0.09431737661361694, -0.3435154855251312, 0.09461314231157303, -0.0936950221657753, 1.1660113334655762, 1.2515084743499756, 0.7434028387069702, -0.39289146661758423, -0.8482881188392639, 0.22169218957424164, -0.04411708563566208, -0.7120276689529419, -1.76298987865448, -0.2592483460903168, 0.19183456897735596, 0.5657711625099182, -1.186740517616272, 1.736985445022583, 0.8563330769538879, 1.9379141330718994, 0.9940412044525146, -0.29214581847190857, 1.4302401542663574, 0.08901539444923401, 1.957755208015442, -0.41765180230140686, 0.6847144961357117, -0.29590749740600586, -1.171953797340393, 0.8388969898223877, -0.33987244963645935, -2.0689337253570557, -0.7989542484283447, -0.8440635800361633, -0.14393864572048187, -0.7926038503646851, 0.9306311011314392, -0.22837454080581665, -1.4061661958694458, 0.22357285022735596, -0.7532500624656677, 0.18405687808990479, -1.2383325099945068, 0.27774280309677124, 0.7674533724784851, -0.662067711353302, 0.031540289521217346, -0.2386748194694519, -1.2777507305145264, -0.46673816442489624, 0.3837330937385559, 1.7969964742660522, -0.7438617944717407, 1.0066922903060913, 1.0589771270751953, -0.7369460463523865, 0.03598069027066231, 0.30026113986968994, -0.32569822669029236, 0.9069051146507263, -1.0721861124038696, -0.40314459800720215, 1.2070578336715698, -0.2146703153848648, -0.6908131241798401, 1.5239652395248413, 0.708648681640625, -0.9963261485099792, -0.1747409850358963, -0.17827793955802917, -0.7851142287254333, 0.04685290902853012, -1.6074451208114624, -0.043156713247299194, 0.38202735781669617, -1.4837754964828491, -0.45723268389701843, -0.17970435321331024, 1.3880740404129028, -0.17364740371704102, 1.441808819770813, -0.30766260623931885, -0.20971275866031647, -0.4353596568107605, -0.39599505066871643, 0.09503015875816345, -0.205966979265213, -0.6367461681365967, 0.1997319608926773, -0.7042315602302551, 0.3347095549106598, 1.3486841917037964, 0.2851232886314392, 0.03717932850122452, 0.513359010219574, 1.1191312074661255, 0.3198722004890442, -0.048462625592947006, -0.8537789583206177, -1.598552942276001, 1.9289389848709106, -1.4035890102386475, 1.9826265573501587, 0.7287747859954834, 0.0005647316575050354, -1.7704163789749146, -1.9501301050186157, 1.429351806640625, 1.086592674255371, 2.3949015140533447, 0.4768577516078949, 0.44913384318351746, -0.8431892395019531, -0.7328271269798279, 0.3199557065963745, -0.9772887825965881, -0.7197378277778625, 0.164420947432518, 2.4134457111358643, 1.7250916957855225, -0.38259607553482056, -0.2275436967611313, -1.0575413703918457, 1.4095295667648315, -0.19886603951454163, 0.21859867870807648, 2.055386543273926, -0.2357085943222046, -1.0941168069839478, 1.2932112216949463, -2.3371546268463135, 0.20391331613063812, 2.034607410430908, 0.15618586540222168, 0.12440594285726547, -1.3666274547576904, -0.6607939600944519, -0.24408626556396484, -0.43614503741264343, -1.1977097988128662, 0.5501381754875183, -0.21927835047245026, -0.7727752923965454, -1.4020460844039917, 0.19132310152053833, -1.0520151853561401, -1.686928153038025, 0.21362318098545074, 1.8583533763885498, 1.9595452547073364, -0.7813233137130737, 1.6059972047805786, -0.300508052110672, 0.2111300528049469, 1.2738206386566162, 1.285178542137146, 3.177446126937866, 1.9549247026443481, -1.3827157020568848, 0.7482718825340271, -0.07349392771720886, -0.45673543214797974, 1.224095344543457, -1.1777708530426025, 1.2480345964431763, -0.21301957964897156, -1.240551471710205, -1.3161132335662842, 0.9663377404212952, 0.5201826691627502, 0.050561532378196716, -0.5126182436943054, 1.187735676765442, 0.07142931967973709, 1.3732109069824219, 0.537368655204773, -0.3609220087528229, 0.6693198680877686, -0.4701032340526581, -0.5047844052314758, 1.5040572881698608, 0.20830272138118744, -1.3273651599884033, -2.331834077835083, -0.27144935727119446, -0.8541898131370544, -0.06678894907236099, -0.6588320732116699, -0.9743298888206482, 1.6088299751281738, 0.4547414481639862, -1.2656065225601196, -0.2705649137496948, -0.327741801738739, -0.5900735259056091, 2.68888783454895, -1.364754319190979, -0.17649558186531067, -1.023051142692566, -0.6431431174278259, 1.6696521043777466, -1.1967703104019165, -0.29152441024780273, -1.0253092050552368, -0.6270163655281067, -1.3021125793457031, -0.5849215984344482, 0.0245293490588665, -0.912153959274292, 0.8436212539672852, 0.11731470376253128, -1.2090815305709839, -0.3050329387187958, -0.9093375205993652, 0.9506585001945496, -0.14871731400489807, 0.20913498103618622, 1.803347110748291, 0.40051358938217163, -0.36046671867370605, 0.6789892911911011, 1.0764167308807373, 0.6285483241081238, -0.6661804914474487, 0.300584077835083, -0.6750006675720215, 0.2951422929763794, -1.3163026571273804, 0.2561197280883789, -2.907588481903076, 0.6108230352401733, -0.06417584419250488, -0.048031795769929886, -0.07838107645511627, -1.3344975709915161, 1.0981987714767456, 2.554126739501953, -1.2486504316329956, 0.47595468163490295, 0.33360937237739563, 1.1534138917922974, -1.6415823698043823, 0.29554077982902527, -0.4782867133617401, 2.087698221206665, 0.11010477691888809, 1.221623182296753, -0.3664649426937103, -2.2205657958984375, 0.5699999332427979, -1.2921745777130127, -1.1487632989883423, 0.9339278340339661, -0.8454076051712036, 0.11672783643007278, -1.3337184190750122, -0.223160058259964, -0.8244413733482361, -1.2761293649673462, 0.7379255890846252, 0.06418796628713608, 0.4846738278865814, -0.6389259099960327, 0.38978227972984314, -2.219334602355957, -1.326799750328064, -0.25996193289756775, -0.9983803629875183, 0.4381217658519745, -0.28548917174339294, 0.6722132563591003, -0.1558704972267151, 0.0944991186261177, 0.34582677483558655, 1.4507707357406616, 3.395833969116211, 0.19906561076641083, 0.2423219084739685, -0.1147753894329071, -0.9522333741188049, 1.4204782247543335, 0.976047933101654, -0.17849987745285034, -0.5464003682136536, -1.0431115627288818, 1.2064635753631592, 1.9840558767318726, 1.0433508157730103, 0.06119467318058014, -0.8869749903678894, -0.7681241631507874, 0.022091683000326157, 0.09121242165565491, 0.49982863664627075, 0.8732348084449768, 0.15305891633033752, 0.12278150767087936, 1.4276130199432373, 1.146907925605774, -0.3046118915081024, 0.40846171975135803, -0.8749735355377197, -0.5144510269165039, 0.46135249733924866, 0.3144620358943939, 0.04948890954256058, 0.29133301973342896, -1.0656791925430298, -0.20455439388751984, -0.40602925419807434, -0.921990156173706, -0.7527000904083252, -0.505959153175354, -0.4125112295150757, 1.6070637702941895, 0.049009598791599274, -0.5107161402702332, -0.040961168706417084, -0.6972792148590088, -0.00904935970902443, -1.069701910018921, 0.293830543756485, -0.178238183259964, -0.07785454392433167, -0.14915432035923004, 1.673122525215149, -1.0076467990875244, -2.0339956283569336, 0.22895550727844238, 0.23806136846542358, -0.3754592537879944, 0.15586711466312408, 1.6973004341125488, 0.5879309773445129, 1.4611116647720337, 1.3888870477676392, 1.0223915576934814, -0.7046903967857361, -1.357735276222229, 0.6597341895103455, 0.9634309411048889, -1.3951510190963745, 0.7499812841415405, 0.05142367258667946, -0.5565760135650635, 0.6308476328849792, 1.3136545419692993, 0.4484775960445404, -2.003882646560669, 0.7095919251441956, -0.9990706443786621, 0.7850510478019714, 0.6882280111312866, 0.7576158046722412, 0.1285036951303482, 0.7984136343002319, -1.2097573280334473, -1.0899155139923096, -0.6506161093711853, -0.6762983798980713, 1.8989441394805908, -0.37704336643218994, 0.573222815990448, -0.19586224853992462, -1.3683642148971558, -0.09713400155305862, 0.7701498866081238, 0.39483216404914856, -0.5069565773010254, 0.7944813370704651, -0.6057917475700378, -1.0427627563476562, -1.3348747491836548, -0.40240949392318726, -1.0793930292129517, -0.8958263397216797, 0.9566628932952881, 0.7897016406059265, 0.375770628452301, 1.807776927947998, 0.6661883592605591, 0.28638243675231934, -2.6505773067474365, 0.8960428237915039, 0.29916688799858093, -0.07188455015420914, 0.827043890953064, 0.3569377064704895, 1.0701478719711304, -0.06690168380737305, 0.569459855556488, -2.4240498542785645, 2.2789759635925293, -0.1876194179058075, 0.5683369636535645, -0.024990210309624672, -0.20728525519371033, 1.1092005968093872, 0.5377278923988342, 0.5656662583351135, -1.1172218322753906, 0.7424403429031372, -0.5825302600860596, 1.219626545906067, 0.8305158615112305, -0.8472762107849121, -0.10413776338100433, 1.3939234018325806, 0.43576228618621826, -0.5177802443504333, -0.8841810822486877, -1.0411921739578247, 0.9233414530754089, 1.6624279022216797, -0.06927555054426193, 0.004636606201529503, 0.9012652635574341, 0.6929428577423096, -1.294968843460083, 0.10711989551782608, -0.7863117456436157, -0.672367513179779, 1.7189204692840576, 2.0595619678497314, -0.09046042710542679, -0.2566535770893097, -0.8457856178283691, -1.1730537414550781, 0.7974310517311096, -0.0030631432309746742, -0.021891973912715912, 0.663519024848938, -0.6115596890449524, 1.090922236442566, 0.842461884021759, 0.93962562084198, 0.13588687777519226, 0.2463603913784027, 0.3218402862548828, -0.3419480323791504, -1.2337735891342163, -0.23114672303199768, -0.9905129671096802, -2.5009567737579346, 0.5002614259719849, -0.21452654898166656, -1.4369100332260132, -0.0018649064004421234, -1.0426422357559204, 0.9103570580482483, -0.5795672535896301, -1.1661709547042847, -1.4758286476135254, 0.2076158970594406, -0.04005993902683258, 0.8934022188186646, -1.54315984249115, -0.10384289175271988, 1.2743955850601196, 0.8947591185569763, -0.7187373042106628, 1.0202118158340454, 0.22084511816501617, 0.9540857076644897, 0.8632137775421143, -0.42171114683151245, 0.5465863347053528, 0.0734255313873291, -1.3439222574234009, 0.46955370903015137, 1.1414328813552856, 0.20191362500190735, 1.5406944751739502, -0.5760927796363831, 0.05738121271133423, 0.37654173374176025, -0.5110645294189453, -0.437711238861084, -0.6303987503051758, 0.705219566822052, 0.058485060930252075, -0.8703435659408569, 0.09791116416454315, -0.0203414186835289, -0.20303316414356232, 0.20992298424243927, -1.4920024871826172, -0.16243617236614227, -0.2679457664489746, -0.6652416586875916, -1.215386986732483, -0.03698821738362312, 1.3593920469284058, -0.8003057241439819, -0.16592727601528168, 0.5321447849273682, 0.2858935296535492, 0.6143285036087036, 0.5889585018157959, -0.6585640907287598, -0.28800347447395325, -0.3516714572906494, -0.30487534403800964, 0.3140503168106079, 1.3426347970962524, -0.054915204644203186, -0.9880039095878601, 0.7466460466384888, -0.39877790212631226, 0.10108257085084915, 1.9683101177215576, 0.08188595622777939, -0.866953432559967, 0.36156219244003296, -0.7322970032691956, 1.9482673406600952, 1.7627997398376465, 1.3387417793273926, -0.11202000081539154, -1.059253454208374, 0.6171482801437378, -0.3148796856403351, -0.40487781167030334, 1.0326907634735107, 0.43067845702171326, -0.19591151177883148, -1.2674424648284912, 0.717504620552063, 1.2698458433151245, -0.8744339346885681, -0.8585771322250366, 0.2282724827528, -0.8499097228050232, 1.1206483840942383, 0.6738773584365845, 0.37185990810394287, 0.2736850380897522, 1.5061795711517334, 0.7313228845596313, -0.44766291975975037, 0.5645999908447266, 0.4890657067298889, -0.2018601894378662, -1.981408953666687, -1.1286916732788086, 0.41112905740737915, -0.5511642694473267, -1.6444101333618164, 1.3590162992477417, -1.155036449432373, -1.0196399688720703, 0.5877992510795593, 0.03875449299812317, 1.4087779521942139, 0.3575989603996277, 1.6229979991912842, 2.0663015842437744, 0.9243192076683044, 0.40150585770606995, 1.312997817993164, -0.14402230083942413, -0.4857124984264374, 1.7954684495925903, -0.5238072276115417, 0.5216690301895142, 1.1406444311141968, -0.3281886875629425, -1.1304166316986084, -0.8531826734542847, -1.1868232488632202, -0.7192500829696655, 1.1798776388168335, 0.18620945513248444, -1.1244516372680664, 0.30481651425361633, 1.5232678651809692, 0.14494840800762177, -0.3100259602069855, 0.7288414835929871, 0.3650188446044922, -0.8142057657241821, -0.017657458782196045, -0.892627477645874, 0.49857139587402344, -0.2187681496143341, -0.2822185754776001, 0.3423360586166382, 0.45928868651390076, 1.3077324628829956, -0.02468334697186947, 0.09104897826910019, 1.2037501335144043, -1.363029956817627, 1.4934784173965454, -0.6518437266349792, 0.316564679145813, -2.4076011180877686, 1.3585013151168823, -0.7718928456306458, 1.8531838655471802, -2.651339292526245, 0.40513819456100464, -0.5566873550415039, -0.49828746914863586, 0.28162911534309387, -0.31846293807029724, 0.1283329278230667, -0.14393861591815948, -1.2083680629730225, -0.12988562881946564, -0.7683404088020325, 0.6321966648101807, 1.128027319908142, 1.3330470323562622, -1.176547884941101, -0.2959698438644409, -1.7121487855911255, -0.20808975398540497, -0.7160550355911255, 0.4208545684814453, -1.9071491956710815, -0.1539844572544098, -1.9079033136367798, -2.447010040283203, -1.2804772853851318, -0.8148119449615479, 1.107202172279358, 0.14977291226387024, -0.9052155613899231, 1.166069507598877, -0.3322293162345886, -1.8766967058181763, 1.1528897285461426, -2.1802854537963867 ]
https://github.com/huggingface/datasets/issues/3547
Datasets created with `push_to_hub` can't be accessed in offline mode
Hi ! Yes you can save your dataset locally with `my_dataset.save_to_disk("path/to/local")` and reload it later with `load_from_disk("path/to/local")` (removing myself from assignees since I'm currently not working on this right now)
## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0
1,017
30
Datasets created with `push_to_hub` can't be accessed in offline mode ## Describe the bug In offline mode, one can still access previously-cached datasets. This fails with datasets created with `push_to_hub`. ## Steps to reproduce the bug in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` in bash: ``` export HF_DATASETS_OFFLINE=1 ``` in Python: ``` import datasets mpwiki = datasets.load_dataset("teven/matched_passages_wikidata") ``` ## Expected results `datasets` should find the previously-cached dataset. ## Actual results ConnectionError: Couln't reach the Hugging Face Hub for dataset 'teven/matched_passages_wikidata': Offline mode is enabled ## Environment info - `datasets` version: 1.16.2.dev0 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 3.0.0 Hi ! Yes you can save your dataset locally with `my_dataset.save_to_disk("path/to/local")` and reload it later with `load_from_disk("path/to/local")` (removing myself from assignees since I'm currently not working on this right now)
[ -1.1275153160095215, -0.9055541753768921, -0.7017276287078857, 1.4706192016601562, -0.1631007194519043, -1.253989338874817, 0.21418753266334534, -1.0737859010696411, 1.7062454223632812, -0.800374448299408, 0.3492777347564697, -1.6808685064315796, -0.017548901960253716, -0.6329333782196045, -0.733366847038269, -0.8792051672935486, -0.4020516276359558, -0.682744026184082, 1.0025728940963745, 2.460991621017456, 1.183782696723938, -1.2599623203277588, 2.6510796546936035, 0.6582421064376831, -0.1649320274591446, -0.9926711916923523, 0.4331987500190735, 0.01848454400897026, -1.2893388271331787, -0.3800668716430664, -0.8725335597991943, -0.11783856153488159, -0.575158953666687, -0.6374158263206482, -0.0011729877442121506, 0.45838144421577454, -0.3754097819328308, -0.462291419506073, -0.5003405213356018, -0.8408647775650024, 0.4480537474155426, -0.3972562551498413, 0.9534732699394226, -0.4240207374095917, 1.7794493436813354, -0.5949554443359375, 0.5325063467025757, 0.7896358370780945, 1.266778826713562, 0.17865578830242157, 0.007873068563640118, 0.3300834000110626, 0.3445785939693451, 0.03090118244290352, 0.5692628622055054, 1.1041744947433472, 0.6333466172218323, 0.5289272665977478, 0.6392845511436462, -2.296745538711548, 1.2870360612869263, -0.9368014931678772, 0.27474746108055115, 1.3738659620285034, -0.9194900989532471, 0.24907740950584412, -1.691941738128662, -0.02184828743338585, 0.6307666897773743, -2.1168415546417236, 0.3275260329246521, -1.3399759531021118, -0.47958680987358093, 1.0973387956619263, 0.4300837814807892, -1.1680757999420166, 0.051194678992033005, -0.30676695704460144, 1.0384846925735474, 0.4591998755931854, 1.0817742347717285, -1.6841528415679932, -0.01677817292511463, -0.2768459916114807, 0.06986818462610245, -1.2903027534484863, -1.515977382659912, 0.4839569926261902, 0.6564664840698242, 0.6106293797492981, -0.11245989799499512, 1.0137003660202026, -0.9989891052246094, 0.6970852017402649, -1.0327212810516357, -1.7514967918395996, -1.405160903930664, -2.3643651008605957, -2.3146984577178955, 0.6773436665534973, -0.392532616853714, -0.5270010232925415, 2.0524706840515137, -1.03605055809021, -1.8159428834915161, 1.1427143812179565, 0.3135601580142975, 0.03153252601623535, 2.3042962551116943, 0.26519641280174255, -0.7456052303314209, 0.4775233268737793, -0.7649104595184326, 0.669079601764679, -0.38289162516593933, 1.2802492380142212, 0.3877709209918976, -1.1419832706451416, 1.5665950775146484, -0.4239274561405182, 0.6575721502304077, -0.7136208415031433, -0.41301336884498596, -0.8290601968765259, 0.2705565392971039, 1.8327091932296753, -0.25449874997138977, 1.5217622518539429, -0.32982420921325684, -1.5357162952423096, -1.5390915870666504, 0.8572765588760376, 0.45516112446784973, -0.6584061980247498, 0.07454702258110046, -0.35237279534339905, 0.09932582080364227, -0.09121355414390564, 1.1830415725708008, 1.241244912147522, 0.7123462557792664, -0.3954043984413147, -0.8464528918266296, 0.22010765969753265, -0.017369236797094345, -0.729526937007904, -1.7494683265686035, -0.2662542760372162, 0.17153294384479523, 0.5626221299171448, -1.1589560508728027, 1.7396904230117798, 0.8537625670433044, 1.9212065935134888, 1.0173273086547852, -0.2655428349971771, 1.436293125152588, 0.12058284878730774, 1.9781919717788696, -0.4062814712524414, 0.6736328601837158, -0.31983569264411926, -1.2009403705596924, 0.8354966044425964, -0.37107276916503906, -2.087458372116089, -0.7987932562828064, -0.8132244944572449, -0.15386047959327698, -0.7958090901374817, 0.9335939288139343, -0.2169327288866043, -1.4513922929763794, 0.21115529537200928, -0.7590252757072449, 0.22870023548603058, -1.2040234804153442, 0.34425273537635803, 0.7487221956253052, -0.6744760870933533, 0.023951556533575058, -0.24813704192638397, -1.2852455377578735, -0.4507260024547577, 0.4206065237522125, 1.8272321224212646, -0.7631593346595764, 0.9797176718711853, 1.0594427585601807, -0.6965115070343018, 0.006977547891438007, 0.25735440850257874, -0.33840999007225037, 0.8739095330238342, -1.0806643962860107, -0.4298260807991028, 1.2554105520248413, -0.2275891900062561, -0.7178892493247986, 1.5036112070083618, 0.7053894996643066, -0.9973227977752686, -0.16982509195804596, -0.18114791810512543, -0.7422901391983032, 0.025439634919166565, -1.6218513250350952, -0.03015442192554474, 0.4177049398422241, -1.483293890953064, -0.4547252655029297, -0.14962409436702728, 1.3706881999969482, -0.1637561321258545, 1.4383676052093506, -0.31541013717651367, -0.19187892973423004, -0.4110594391822815, -0.3795849084854126, 0.09989063441753387, -0.17926117777824402, -0.6360241770744324, 0.18351858854293823, -0.6753480434417725, 0.34028276801109314, 1.3530333042144775, 0.2513814866542816, 0.02276821807026863, 0.5394201874732971, 1.112591028213501, 0.2793842554092407, -0.05297620967030525, -0.8315770626068115, -1.6459496021270752, 1.9354150295257568, -1.3829805850982666, 2.010491132736206, 0.6933131814002991, -0.014642935246229172, -1.7572126388549805, -1.9340534210205078, 1.4166111946105957, 1.0842102766036987, 2.372485399246216, 0.4441400170326233, 0.4549541473388672, -0.853952944278717, -0.7481304407119751, 0.3081490397453308, -0.9890058040618896, -0.694694995880127, 0.16327780485153198, 2.4047892093658447, 1.7296183109283447, -0.366655170917511, -0.16882742941379547, -1.0538482666015625, 1.4052202701568604, -0.2511131167411804, 0.2565152943134308, 2.078009843826294, -0.23824948072433472, -1.0857467651367188, 1.3292752504348755, -2.3560917377471924, 0.21680739521980286, 2.0427238941192627, 0.1970156580209732, 0.14286504685878754, -1.3182710409164429, -0.6700423955917358, -0.27867382764816284, -0.39398035407066345, -1.2116451263427734, 0.5403522849082947, -0.20969830453395844, -0.7476276755332947, -1.3606475591659546, 0.200006365776062, -1.0347764492034912, -1.656830072402954, 0.18372520804405212, 1.831257700920105, 1.9544239044189453, -0.7804892659187317, 1.6033912897109985, -0.2721712589263916, 0.2008245438337326, 1.280964732170105, 1.2914464473724365, 3.1678032875061035, 1.9866334199905396, -1.362384557723999, 0.7376607656478882, -0.07236220687627792, -0.4608992040157318, 1.2699979543685913, -1.1944169998168945, 1.2635842561721802, -0.20156536996364594, -1.2378860712051392, -1.3145707845687866, 0.9501679539680481, 0.4895710349082947, 0.06614658236503601, -0.519728422164917, 1.1680463552474976, 0.07353662699460983, 1.3729387521743774, 0.5417671799659729, -0.36908385157585144, 0.6610864996910095, -0.48245272040367126, -0.4677000939846039, 1.5244076251983643, 0.2175571471452713, -1.3578912019729614, -2.316612958908081, -0.24071016907691956, -0.8647996783256531, -0.08305205404758453, -0.6602172255516052, -0.9700708985328674, 1.6362788677215576, 0.43162187933921814, -1.2448920011520386, -0.2787240147590637, -0.2870241701602936, -0.5640836954116821, 2.7474374771118164, -1.3432775735855103, -0.1868125945329666, -1.017046570777893, -0.7122816443443298, 1.6767903566360474, -1.208924412727356, -0.28004738688468933, -1.0037055015563965, -0.5951644778251648, -1.2640838623046875, -0.5823246836662292, 0.033854890614748, -0.9688577055931091, 0.8857331871986389, 0.1759347766637802, -1.288803219795227, -0.34048372507095337, -0.9322831630706787, 0.9398318529129028, -0.12708500027656555, 0.19724294543266296, 1.7791012525558472, 0.3791928291320801, -0.34682685136795044, 0.6884036064147949, 1.0902818441390991, 0.6329662799835205, -0.6752943992614746, 0.3345879316329956, -0.7076191902160645, 0.3378118574619293, -1.3451088666915894, 0.26107773184776306, -2.9100358486175537, 0.5901702642440796, -0.04617411270737648, -0.043995678424835205, -0.07676563411951065, -1.3489201068878174, 1.0790055990219116, 2.52691912651062, -1.2655385732650757, 0.5076099634170532, 0.33654049038887024, 1.15188467502594, -1.6408617496490479, 0.27794361114501953, -0.5042637586593628, 2.069640874862671, 0.11726941168308258, 1.2071807384490967, -0.3542502820491791, -2.236764907836914, 0.6038337349891663, -1.3137507438659668, -1.1676321029663086, 0.8914099931716919, -0.884907066822052, 0.12891481816768646, -1.321629524230957, -0.24236242473125458, -0.8413100838661194, -1.2651798725128174, 0.6910870671272278, 0.07057373970746994, 0.46545594930648804, -0.6071987152099609, 0.37235814332962036, -2.2469918727874756, -1.2975977659225464, -0.262382835149765, -0.9891152381896973, 0.4292396605014801, -0.29133787751197815, 0.6650899648666382, -0.180237278342247, 0.04707873985171318, 0.36955469846725464, 1.499848484992981, 3.377481460571289, 0.19124926626682281, 0.25790831446647644, -0.1172444224357605, -0.9332177639007568, 1.3956222534179688, 0.9666353464126587, -0.15335221588611603, -0.5434802174568176, -1.0436320304870605, 1.211592435836792, 1.963815450668335, 1.0043931007385254, 0.05133058503270149, -0.8914162516593933, -0.7846014499664307, -0.012493185698986053, 0.06374727189540863, 0.49035513401031494, 0.8687136173248291, 0.10885875672101974, 0.13099616765975952, 1.4174461364746094, 1.145522952079773, -0.2966279089450836, 0.3412426710128784, -0.8529531955718994, -0.4757656157016754, 0.5135568380355835, 0.3129139244556427, 0.055560387670993805, 0.295900821685791, -1.0164263248443604, -0.18908783793449402, -0.39522722363471985, -0.8931173086166382, -0.7749733924865723, -0.4953925311565399, -0.3953770697116852, 1.5903671979904175, 0.05642683058977127, -0.5365357398986816, -0.06871723383665085, -0.7101175785064697, 0.002224177122116089, -1.040467381477356, 0.2941114902496338, -0.1494929939508438, -0.11469794809818268, -0.15149681270122528, 1.6563520431518555, -1.0263786315917969, -2.0030009746551514, 0.19369082152843475, 0.21952974796295166, -0.3478986918926239, 0.14604304730892181, 1.693117380142212, 0.6168690919876099, 1.4757627248764038, 1.394007921218872, 1.0181070566177368, -0.7071169018745422, -1.3488200902938843, 0.6772065758705139, 0.9932484030723572, -1.4184889793395996, 0.7740117907524109, 0.07502031326293945, -0.5704545974731445, 0.6185939908027649, 1.2901158332824707, 0.4879847466945648, -1.959206223487854, 0.6797890067100525, -1.0482101440429688, 0.7889288067817688, 0.7069193124771118, 0.7660129070281982, 0.15590916574001312, 0.8158787488937378, -1.1766400337219238, -1.0919393301010132, -0.6446006298065186, -0.6784918308258057, 1.9053798913955688, -0.4120497703552246, 0.5871136784553528, -0.1947726160287857, -1.4132815599441528, -0.0747971311211586, 0.7741938233375549, 0.38576561212539673, -0.5129616856575012, 0.7932348251342773, -0.616590678691864, -1.0494462251663208, -1.3207979202270508, -0.43357354402542114, -1.09792160987854, -0.9035011529922485, 0.9852734208106995, 0.7852272391319275, 0.3471532166004181, 1.811424732208252, 0.7170889973640442, 0.3297845721244812, -2.642117977142334, 0.8704650402069092, 0.26025840640068054, -0.06834756582975388, 0.7947037816047668, 0.3638696074485779, 1.0367493629455566, -0.0917603150010109, 0.6061205267906189, -2.4660847187042236, 2.310045003890991, -0.20354051887989044, 0.5962017774581909, 0.00432728324085474, -0.1661754697561264, 1.0904864072799683, 0.5422825217247009, 0.5337678790092468, -1.1028807163238525, 0.7418598532676697, -0.5709336400032043, 1.2334922552108765, 0.8322628140449524, -0.8621504902839661, -0.10241153836250305, 1.4192993640899658, 0.41142377257347107, -0.5219749212265015, -0.9066290259361267, -1.0278255939483643, 0.9258328080177307, 1.64080011844635, -0.04402666166424751, -0.00985078327357769, 0.9239808917045593, 0.710887610912323, -1.253854513168335, 0.09536604583263397, -0.7581703662872314, -0.6673710942268372, 1.7295862436294556, 2.0741870403289795, -0.11215677857398987, -0.25572165846824646, -0.8244197964668274, -1.1458340883255005, 0.7974637746810913, -0.02115633338689804, -0.04244145750999451, 0.6401047110557556, -0.5828568935394287, 1.0692951679229736, 0.8737738728523254, 0.9347160458564758, 0.15635830163955688, 0.2563462257385254, 0.3470456302165985, -0.39191296696662903, -1.2086819410324097, -0.22183819115161896, -0.9999122023582458, -2.5677528381347656, 0.4667733311653137, -0.23099760711193085, -1.4696617126464844, 0.03330708667635918, -1.0627912282943726, 0.9362350702285767, -0.5798555016517639, -1.1742299795150757, -1.4876633882522583, 0.17675115168094635, -0.02588668465614319, 0.9044675230979919, -1.5558898448944092, -0.10367336869239807, 1.2698299884796143, 0.8869194388389587, -0.6908912062644958, 1.0053521394729614, 0.19874240458011627, 1.013065218925476, 0.855461835861206, -0.4156959354877472, 0.5660668611526489, 0.032266441732645035, -1.3120112419128418, 0.5009182691574097, 1.1825697422027588, 0.17468903958797455, 1.5387382507324219, -0.5559141039848328, 0.05301199108362198, 0.354308158159256, -0.5545952320098877, -0.4337543249130249, -0.5976067781448364, 0.7196387052536011, 0.06336677074432373, -0.8588052988052368, 0.047559961676597595, -0.022415507584810257, -0.21095223724842072, 0.16969698667526245, -1.511313557624817, -0.1421174556016922, -0.2744404375553131, -0.6771557331085205, -1.179526686668396, -0.06167469173669815, 1.3537179231643677, -0.7715874910354614, -0.1360834240913391, 0.5092163681983948, 0.2576943039894104, 0.6149046421051025, 0.56907057762146, -0.6750585436820984, -0.2868165671825409, -0.3518868088722229, -0.309386283159256, 0.3089846670627594, 1.3776530027389526, -0.033510006964206696, -0.9776589274406433, 0.7351201176643372, -0.39585065841674805, 0.10187339782714844, 1.948887586593628, 0.06979653984308243, -0.858727753162384, 0.38725578784942627, -0.7273023724555969, 1.9592868089675903, 1.765167236328125, 1.3442293405532837, -0.08814111351966858, -1.055238127708435, 0.6027950644493103, -0.3462490439414978, -0.4131186604499817, 0.9606521725654602, 0.4194052815437317, -0.185932919383049, -1.230168342590332, 0.7712265253067017, 1.2506828308105469, -0.7978115081787109, -0.8565526604652405, 0.2519359290599823, -0.8459528088569641, 1.0933338403701782, 0.6490211486816406, 0.3352791965007782, 0.30984124541282654, 1.5223801136016846, 0.7570783495903015, -0.47981488704681396, 0.5948516130447388, 0.5027559399604797, -0.19009236991405487, -1.9793394804000854, -1.1383638381958008, 0.45898035168647766, -0.601722776889801, -1.6287195682525635, 1.3694058656692505, -1.1574877500534058, -0.9784201383590698, 0.5916402339935303, 0.10127804428339005, 1.4052568674087524, 0.39277002215385437, 1.5676826238632202, 2.0652239322662354, 0.9174774885177612, 0.43321433663368225, 1.3060741424560547, -0.14597968757152557, -0.48040056228637695, 1.8017477989196777, -0.5079365968704224, 0.5045061707496643, 1.1389695405960083, -0.3321194648742676, -1.1233351230621338, -0.8732903599739075, -1.2085373401641846, -0.7041828036308289, 1.145027756690979, 0.17854627966880798, -1.1183186769485474, 0.2674258053302765, 1.5374921560287476, 0.13283656537532806, -0.3151279091835022, 0.7527328729629517, 0.3269151449203491, -0.8168432116508484, -0.03198189288377762, -0.9024338722229004, 0.525952160358429, -0.24469047784805298, -0.23976042866706848, 0.31641343235969543, 0.49550116062164307, 1.3203229904174805, -0.017654938623309135, 0.07822305709123611, 1.1881121397018433, -1.3884581327438354, 1.4766160249710083, -0.6911506652832031, 0.3253631889820099, -2.383342742919922, 1.3318136930465698, -0.7513538002967834, 1.8451924324035645, -2.651876211166382, 0.4034624695777893, -0.5740612149238586, -0.47691208124160767, 0.2594013512134552, -0.32988664507865906, 0.12941044569015503, -0.13233830034732819, -1.2570829391479492, -0.08524290472269058, -0.7441067695617676, 0.6502375602722168, 1.1159545183181763, 1.324546456336975, -1.1801483631134033, -0.3136477470397949, -1.6841479539871216, -0.1688227653503418, -0.74884033203125, 0.4053470194339752, -1.886579155921936, -0.15535607933998108, -1.903467059135437, -2.445211410522461, -1.2708840370178223, -0.7925488948822021, 1.120079755783081, 0.11611871421337128, -0.9274033904075623, 1.2042399644851685, -0.33786740899086, -1.869476079940796, 1.1683646440505981, -2.2140023708343506 ]
https://github.com/huggingface/datasets/issues/3543
Allow loading community metrics from the hub, just like datasets
Hi ! Thanks for your message :) This is a great idea indeed. We haven't started working on this yet though. For now I guess you can host your metric on the Hub (either with your model or your dataset) and use `hf_hub_download` to download it (docs [here](https://github.com/huggingface/huggingface_hub/blob/main/docs/hub/how-to-downstream.md#cached_download))
**Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub.
1,018
48
Allow loading community metrics from the hub, just like datasets **Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub. Hi ! Thanks for your message :) This is a great idea indeed. We haven't started working on this yet though. For now I guess you can host your metric on the Hub (either with your model or your dataset) and use `hf_hub_download` to download it (docs [here](https://github.com/huggingface/huggingface_hub/blob/main/docs/hub/how-to-downstream.md#cached_download))
[ -1.2186542749404907, -0.9853859543800354, -0.8422972559928894, 1.3905301094055176, -0.1726125031709671, -1.333403468132019, 0.044294264167547226, -1.0696967840194702, 1.754048228263855, -0.7968598008155823, 0.35343173146247864, -1.669481873512268, 0.07464651763439178, -0.5871743559837341, -0.8903048634529114, -0.8602020144462585, -0.37878215312957764, -0.8516452312469482, 0.9069105386734009, 2.525139808654785, 1.1922231912612915, -1.3514068126678467, 2.7239162921905518, 0.6416399478912354, -0.10107775777578354, -1.0664838552474976, 0.4688466191291809, 0.10807513445615768, -1.1807328462600708, -0.4899695813655853, -0.9387836456298828, -0.11941035836935043, -0.6060115098953247, -0.5175578594207764, 0.1736917942762375, 0.3711288273334503, -0.1899750679731369, -0.2953185737133026, -0.5448793768882751, -0.7100719809532166, 0.5308672189712524, -0.4171063005924225, 1.111687421798706, -0.4558250308036804, 1.8570353984832764, -0.5530251860618591, 0.38406649231910706, 0.7572917342185974, 1.4543601274490356, 0.18598319590091705, -0.023649953305721283, 0.28020066022872925, 0.39103761315345764, -0.007474889978766441, 0.4293270409107208, 1.0789076089859009, 0.5803215503692627, 0.5892661213874817, 0.616033673286438, -2.1645877361297607, 1.4245738983154297, -1.0614081621170044, 0.28551769256591797, 1.4650886058807373, -0.959937572479248, 0.3037509620189667, -1.8002042770385742, -0.10253256559371948, 0.5844649076461792, -2.3509464263916016, 0.19086022675037384, -1.2206010818481445, -0.5355712175369263, 0.9648138880729675, 0.21575503051280975, -1.4008660316467285, 0.17757487297058105, -0.46692585945129395, 0.9881007075309753, 0.5858879089355469, 1.095258116722107, -1.7576777935028076, 0.03692171350121498, -0.22181308269500732, 0.07993470132350922, -1.3688486814498901, -1.505745768547058, 0.589580774307251, 0.5292724370956421, 0.5697526931762695, 0.013978480361402035, 0.9179719686508179, -1.0705868005752563, 0.9843451976776123, -0.8574105501174927, -1.5794861316680908, -1.4443440437316895, -2.2937862873077393, -2.2860779762268066, 0.8237699866294861, -0.5092514753341675, -0.5000200271606445, 2.015580415725708, -1.0531089305877686, -1.7188218832015991, 1.2194528579711914, 0.2500189244747162, 0.10049176961183548, 2.402155876159668, 0.10781726241111755, -0.6564189791679382, 0.330831915140152, -0.674679160118103, 0.9373366832733154, -0.4748668670654297, 1.3741517066955566, 0.47955673933029175, -1.0288593769073486, 1.6714833974838257, -0.5514935255050659, 0.5393176674842834, -0.6583622694015503, -0.558062732219696, -0.9246024489402771, 0.41637611389160156, 1.911035180091858, -0.29564937949180603, 1.649571180343628, -0.43700963258743286, -1.6281286478042603, -1.6180318593978882, 0.9001572728157043, 0.563119113445282, -0.9029140472412109, 0.07738649100065231, -0.3544703423976898, 0.043839745223522186, -0.06662660092115402, 1.0727990865707397, 1.219295859336853, 0.7116982936859131, -0.2794469892978668, -0.8913312554359436, 0.1605391800403595, -0.13337083160877228, -0.7059085965156555, -1.8597183227539062, -0.37429359555244446, 0.17104123532772064, 0.6825568079948425, -1.1870020627975464, 1.797621488571167, 0.9362673759460449, 1.8873249292373657, 0.8823960423469543, -0.2516379952430725, 1.4562501907348633, 0.04343939200043678, 1.8269282579421997, -0.518153965473175, 0.742327868938446, -0.3932619094848633, -1.1060154438018799, 0.82901930809021, -0.417842835187912, -1.973713755607605, -0.777618408203125, -0.8987526297569275, -0.21216613054275513, -0.7973313927650452, 0.9715436100959778, -0.24139097332954407, -1.3187485933303833, 0.3080439269542694, -0.6037798523902893, 0.16351661086082458, -1.1597652435302734, 0.34772589802742004, 0.7776671648025513, -0.6698052883148193, -0.04707616567611694, -0.14476478099822998, -1.3168412446975708, -0.46577420830726624, 0.2688862085342407, 1.9388418197631836, -0.7723334431648254, 0.941192626953125, 0.873005211353302, -0.6697419881820679, -0.04996149614453316, 0.3603244423866272, -0.34408098459243774, 0.8244755268096924, -1.0444793701171875, -0.33745840191841125, 1.1312941312789917, -0.2520518898963928, -0.5302283763885498, 1.5198386907577515, 0.7408235669136047, -1.0148439407348633, -0.16491125524044037, -0.271421879529953, -0.7931227684020996, -0.02241479605436325, -1.552458643913269, -0.1496196687221527, 0.24031370878219604, -1.386260986328125, -0.5159698128700256, -0.20033232867717743, 1.2001781463623047, -0.19309347867965698, 1.44558846950531, -0.39374521374702454, -0.33056575059890747, -0.4184475243091583, -0.4778185486793518, 0.21054063737392426, -0.26650217175483704, -0.6775943040847778, 0.20968273282051086, -0.6971468925476074, 0.3932846784591675, 1.3426920175552368, 0.35595446825027466, 0.025179550051689148, 0.5033619403839111, 1.100929617881775, 0.2036154419183731, -0.032326165586709976, -0.9221429228782654, -1.5715786218643188, 1.9792910814285278, -1.5015367269515991, 1.9808834791183472, 0.8247084021568298, -0.02552242949604988, -1.7686976194381714, -1.7301580905914307, 1.3599179983139038, 1.2684953212738037, 2.262352466583252, 0.553472638130188, 0.2569962739944458, -0.8405291438102722, -0.7003402709960938, 0.30936920642852783, -1.0920764207839966, -0.7379721999168396, 0.003906075842678547, 2.3143420219421387, 1.774091362953186, -0.5605286955833435, -0.19909967482089996, -1.0003856420516968, 1.3886770009994507, -0.2309587150812149, 0.2202584594488144, 2.0399787425994873, -0.3205951452255249, -1.112601637840271, 1.2819068431854248, -2.3502578735351562, 0.20122656226158142, 2.0081369876861572, 0.32693904638290405, 0.10496914386749268, -1.437986135482788, -0.6095707416534424, -0.2784405052661896, -0.399471253156662, -1.2967238426208496, 0.5202711224555969, -0.3087688088417053, -0.8182547688484192, -1.454992413520813, 0.142971932888031, -1.1494884490966797, -1.6257270574569702, 0.3742244243621826, 1.8921393156051636, 2.098888635635376, -0.6888826489448547, 1.4626063108444214, -0.16947880387306213, 0.1393139511346817, 1.2857356071472168, 1.2293484210968018, 3.190284013748169, 1.9272540807724, -1.2215723991394043, 0.5853754281997681, -0.1692190319299698, -0.48019734025001526, 1.2415722608566284, -0.9738653302192688, 1.2471257448196411, -0.11026949435472488, -1.1811531782150269, -1.250720500946045, 1.0089393854141235, 0.4827088713645935, 0.010423914529383183, -0.48849251866340637, 1.1871840953826904, 0.05260241776704788, 1.3563733100891113, 0.5615406632423401, -0.4043107330799103, 0.6010962128639221, -0.42260581254959106, -0.5458221435546875, 1.5873489379882812, 0.19134315848350525, -1.4508953094482422, -2.4019775390625, -0.21890586614608765, -0.8343125581741333, 0.06196330115199089, -0.5810211300849915, -1.0210210084915161, 1.6496444940567017, 0.48294422030448914, -1.3024998903274536, -0.33135858178138733, -0.399100124835968, -0.6934853792190552, 2.549163341522217, -1.4519425630569458, -0.2621837258338928, -0.9730381965637207, -0.5728490352630615, 1.661949634552002, -1.2593070268630981, -0.24917888641357422, -1.0067991018295288, -0.6130537390708923, -1.3428009748458862, -0.6072713136672974, -0.10032175481319427, -0.8776769638061523, 0.7719300389289856, 0.14982686936855316, -1.08591890335083, -0.29260095953941345, -0.8358381390571594, 0.8047237396240234, -0.04556421935558319, 0.2868138253688812, 1.8721044063568115, 0.36098042130470276, -0.42352187633514404, 0.720170259475708, 1.1827670335769653, 0.6105498671531677, -0.6457927227020264, 0.13057267665863037, -0.6105899810791016, 0.35171350836753845, -1.3095074892044067, 0.319275826215744, -2.9326844215393066, 0.68028724193573, -0.06009569391608238, -0.22075136005878448, -0.007212240714579821, -1.3021836280822754, 1.145047903060913, 2.566075086593628, -1.1816929578781128, 0.4912995398044586, 0.23858219385147095, 1.2052297592163086, -1.6600114107131958, 0.2834073007106781, -0.37610748410224915, 2.0787606239318848, 0.2242209017276764, 1.2015013694763184, -0.5371701121330261, -2.1873319149017334, 0.6262619495391846, -1.2896829843521118, -1.1608928442001343, 0.7416437864303589, -0.7572351694107056, 0.08365638554096222, -1.4126542806625366, -0.17256362736225128, -0.9006522297859192, -1.2785567045211792, 0.7899563312530518, 0.07194357365369797, 0.4270455837249756, -0.619819164276123, 0.29041358828544617, -2.162579298019409, -1.2666295766830444, -0.20447403192520142, -0.9574590921401978, 0.544697105884552, -0.31421875953674316, 0.6285578012466431, -0.04678273946046829, 0.10468682646751404, 0.36474189162254333, 1.422512173652649, 3.456406593322754, 0.18501316010951996, 0.4411596655845642, -0.14267855882644653, -0.8724923133850098, 1.4323461055755615, 1.0102598667144775, -0.061708614230155945, -0.6295576095581055, -0.972711443901062, 1.268120527267456, 1.8888312578201294, 0.987069308757782, 0.21495909988880157, -0.8220556974411011, -0.6196191906929016, -0.07740041613578796, 0.1272309422492981, 0.4507770836353302, 0.9733744263648987, 0.011898293159902096, 0.1539279669523239, 1.4430294036865234, 1.3044984340667725, -0.39249441027641296, 0.3543737232685089, -0.8013381361961365, -0.44204866886138916, 0.47632527351379395, 0.3151564300060272, -0.07130516320466995, 0.4093247354030609, -0.907515823841095, -0.27247631549835205, -0.35373130440711975, -0.9630534052848816, -0.6773787140846252, -0.5027056932449341, -0.33068352937698364, 1.679680347442627, 0.04532512649893761, -0.43858474493026733, 0.02781640738248825, -0.8195403814315796, -0.12922045588493347, -1.115073561668396, 0.2547219395637512, -0.062090445309877396, -0.14897066354751587, -0.102735236287117, 1.8009424209594727, -0.9521865248680115, -2.0399882793426514, 0.226678729057312, 0.22044387459754944, -0.3950137794017792, 0.14943759143352509, 1.534613847732544, 0.45047396421432495, 1.4431426525115967, 1.4144823551177979, 0.9181721806526184, -0.6718502640724182, -1.3435503244400024, 0.6620317697525024, 0.8736029267311096, -1.5278135538101196, 0.8278461694717407, -0.03690924867987633, -0.5383359789848328, 0.7721506953239441, 1.2900445461273193, 0.4023507833480835, -1.9350031614303589, 0.7946526408195496, -0.8843042850494385, 0.8404454588890076, 0.6820303201675415, 0.7203622460365295, 0.3082517087459564, 0.8476403951644897, -1.213686227798462, -1.1658250093460083, -0.9094000458717346, -0.6323416829109192, 2.015831232070923, -0.2883087694644928, 0.574887216091156, -0.14022205770015717, -1.289175033569336, -0.16575153172016144, 0.6664570569992065, 0.48052093386650085, -0.23628303408622742, 0.8006305694580078, -0.6927773952484131, -1.138215184211731, -1.4385247230529785, -0.4065972566604614, -0.9753758907318115, -0.8815762996673584, 1.0860049724578857, 0.872876763343811, 0.27895018458366394, 1.9794143438339233, 0.5885971188545227, 0.23412221670150757, -2.6043248176574707, 0.8790503144264221, 0.25582656264305115, -0.03813461586833, 1.0514315366744995, 0.22267687320709229, 1.1169583797454834, 0.018426332622766495, 0.5177202820777893, -2.4022328853607178, 2.2276220321655273, -0.2566829323768616, 0.7455782890319824, -0.007022189442068338, -0.2639569044113159, 1.1754947900772095, 0.6029418110847473, 0.5028786063194275, -1.1583670377731323, 0.7049286365509033, -0.525570809841156, 1.2128432989120483, 0.8921999335289001, -0.7912911176681519, -0.009115167893469334, 1.3474725484848022, 0.4405006468296051, -0.4512788653373718, -0.9938941597938538, -0.8666232824325562, 0.9124139547348022, 1.7718091011047363, 0.0013403268530964851, 0.02259957790374756, 0.7493054866790771, 0.6217727661132812, -1.2337695360183716, 0.1683594137430191, -0.7582593560218811, -0.7777139544487, 1.615492582321167, 2.0429160594940186, 0.02253519371151924, -0.16886061429977417, -0.7848066091537476, -1.240079402923584, 0.6909487247467041, 0.1013200655579567, 0.12890499830245972, 0.576805830001831, -0.6939516663551331, 1.1277291774749756, 0.9087952971458435, 0.8666796684265137, 0.01938600465655327, 0.3890645503997803, 0.4212051033973694, -0.3011154234409332, -1.112536907196045, -0.32813334465026855, -1.2015615701675415, -2.5833399295806885, 0.5046710968017578, -0.3682803213596344, -1.4590939283370972, -0.002016826067119837, -1.0292690992355347, 0.9053340554237366, -0.6234431862831116, -1.1581618785858154, -1.6013166904449463, 0.24379511177539825, -0.1320859044790268, 0.8811407685279846, -1.5766762495040894, -0.09091054648160934, 1.2498674392700195, 0.8633282780647278, -0.5372423529624939, 1.0531975030899048, 0.2162635624408722, 1.0037308931350708, 0.8006340265274048, -0.5052269697189331, 0.42618414759635925, 0.14140774309635162, -1.3853614330291748, 0.5148526430130005, 1.121838927268982, 0.188478022813797, 1.394612431526184, -0.5170449614524841, 0.13859784603118896, 0.42979761958122253, -0.5571255087852478, -0.47176146507263184, -0.40938952565193176, 0.7826125025749207, 0.10618699342012405, -0.8163202404975891, 0.06459098309278488, -0.19447700679302216, -0.3686234951019287, 0.18975818157196045, -1.4645414352416992, -0.3215447962284088, -0.4250016212463379, -0.5341019034385681, -1.275665044784546, -0.025606658309698105, 1.3056268692016602, -0.784870982170105, -0.16176582872867584, 0.4780483543872833, 0.5598762631416321, 0.5441174507141113, 0.6339704394340515, -0.6507887244224548, -0.39524275064468384, -0.3248337209224701, -0.31353747844696045, 0.2361907809972763, 1.1359919309616089, -0.17881566286087036, -0.9460954666137695, 0.6195987462997437, -0.3969705402851105, 0.07525534182786942, 1.9364862442016602, 0.027364112436771393, -0.7909122109413147, 0.40219244360923767, -0.6741977334022522, 1.9857465028762817, 1.6505564451217651, 1.2122719287872314, -0.0782397985458374, -0.9034748077392578, 0.6259409785270691, -0.1985539197921753, -0.26003092527389526, 0.9635340571403503, 0.4861571192741394, -0.13286441564559937, -1.3799163103103638, 0.6411372423171997, 1.2872298955917358, -0.8732408881187439, -0.7704469561576843, 0.10525654256343842, -0.7926604151725769, 1.0233403444290161, 0.7027298212051392, 0.41997039318084717, 0.29587262868881226, 1.7016199827194214, 0.661167562007904, -0.5923774242401123, 0.5635619759559631, 0.42832812666893005, -0.2237590253353119, -2.1174376010894775, -1.012841820716858, 0.3534267246723175, -0.49911221861839294, -1.4742141962051392, 1.288048505783081, -1.0495284795761108, -0.88136225938797, 0.5285910964012146, 0.11317647248506546, 1.438665747642517, 0.3226727247238159, 1.6353342533111572, 2.031724691390991, 0.8221468329429626, 0.2932714819908142, 1.288420557975769, 0.05407079681754112, -0.4914240539073944, 1.9210855960845947, -0.39025723934173584, 0.5356586575508118, 1.1314821243286133, -0.42777037620544434, -1.0954915285110474, -0.7674087285995483, -1.0551306009292603, -0.6480468511581421, 1.1333132982254028, 0.21426980197429657, -1.0790022611618042, 0.15041008591651917, 1.5860819816589355, 0.1411488950252533, -0.32851287722587585, 0.49511995911598206, 0.4953702390193939, -0.7027018666267395, -0.04323751851916313, -0.8953359723091125, 0.461399644613266, -0.22380948066711426, -0.32974502444267273, 0.37452924251556396, 0.49933287501335144, 1.2682762145996094, -0.0005315793678164482, 0.06755529344081879, 1.226038932800293, -1.435091495513916, 1.4505635499954224, -0.5701366662979126, 0.18200066685676575, -2.4364941120147705, 1.5044770240783691, -0.7665839791297913, 1.9940515756607056, -2.6001789569854736, 0.28067538142204285, -0.6979118585586548, -0.4381573796272278, 0.3246556222438812, -0.2436460703611374, 0.1822034865617752, -0.1419353038072586, -1.113226294517517, -0.015235276892781258, -0.7785717248916626, 0.5574120283126831, 1.1307467222213745, 1.2405349016189575, -1.228242039680481, -0.2884182333946228, -1.6927199363708496, -0.11733922362327576, -0.7420074343681335, 0.3147934377193451, -2.053131580352783, -0.083469919860363, -1.9074712991714478, -2.2047860622406006, -1.4656566381454468, -0.8337470293045044, 1.1258127689361572, 0.1693001687526703, -0.8619087934494019, 1.170364260673523, -0.30164608359336853, -1.6449333429336548, 0.9316626191139221, -2.1460769176483154 ]
https://github.com/huggingface/datasets/issues/3543
Allow loading community metrics from the hub, just like datasets
Here's the code I used, in case it can be of help to someone else: ```python import os, shutil from huggingface_hub import hf_hub_download def download_metric(repo_id, file_path): # repo_id: for models "username/model_name", for datasets "datasets/username/model_name" local_metric_path = hf_hub_download(repo_id=repo_id, filename=file_path) updated_local_metric_path = (os.path.dirname(local_metric_path) + os.path.basename(local_metric_path).replace(".", "_") + ".py") shutil.copy(local_metric_path, updated_local_metric_path) return updated_local_metric_path metric = load_metric(download_metric(REPO_ID, FILE_PATH)) ```
**Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub.
1,018
55
Allow loading community metrics from the hub, just like datasets **Is your feature request related to a problem? Please describe.** Currently, I can load a metric implemented by me by providing the local path to the file in `load_metric`. However, there is no option to do it with the metric uploaded to the hub. This means that if I want to allow other users to use it, they must download it first which makes the usage less smooth. **Describe the solution you'd like** Load metrics from the hub just like datasets are loaded. In order to not break stuff, the convention can be to put the metric file in a "metrics" folder in the hub. Here's the code I used, in case it can be of help to someone else: ```python import os, shutil from huggingface_hub import hf_hub_download def download_metric(repo_id, file_path): # repo_id: for models "username/model_name", for datasets "datasets/username/model_name" local_metric_path = hf_hub_download(repo_id=repo_id, filename=file_path) updated_local_metric_path = (os.path.dirname(local_metric_path) + os.path.basename(local_metric_path).replace(".", "_") + ".py") shutil.copy(local_metric_path, updated_local_metric_path) return updated_local_metric_path metric = load_metric(download_metric(REPO_ID, FILE_PATH)) ```
[ -1.2609885931015015, -0.9623758792877197, -0.7531343698501587, 1.5061581134796143, -0.20185765624046326, -1.274332046508789, 0.15093958377838135, -1.0672940015792847, 1.6597797870635986, -0.869367778301239, 0.33075037598609924, -1.5934256315231323, 0.05327850952744484, -0.6561592221260071, -0.755196213722229, -0.9190544486045837, -0.42368635535240173, -0.7556681632995605, 1.0610380172729492, 2.497452735900879, 1.2976216077804565, -1.3378491401672363, 2.6410722732543945, 0.6795720458030701, -0.16724666953086853, -0.9666835069656372, 0.4031796157360077, 0.05596936494112015, -1.1939475536346436, -0.5446747541427612, -0.8273860216140747, -0.117286317050457, -0.6668558716773987, -0.351484477519989, 0.07803163677453995, 0.4621000587940216, -0.33758220076560974, -0.29213279485702515, -0.7022733092308044, -0.783856213092804, 0.5098149180412292, -0.39071395993232727, 1.0671122074127197, -0.4080699682235718, 1.8404197692871094, -0.6204007267951965, 0.4638370871543884, 0.818310558795929, 1.4246410131454468, 0.1889483630657196, -0.060501642525196075, 0.30542275309562683, 0.29245516657829285, 0.05782666057348251, 0.5242876410484314, 1.0404479503631592, 0.6276348233222961, 0.48180627822875977, 0.5208657383918762, -2.2435851097106934, 1.4108973741531372, -1.1715095043182373, 0.2972911596298218, 1.4662761688232422, -0.9038693904876709, 0.290095716714859, -1.8132892847061157, -0.12189552932977676, 0.6557568311691284, -2.268862009048462, 0.30156901478767395, -1.30109441280365, -0.46535876393318176, 1.0630724430084229, 0.3926992416381836, -1.3570915460586548, 0.08226373046636581, -0.49423137307167053, 1.0231168270111084, 0.46378621459007263, 0.9675367474555969, -1.8276540040969849, -0.04293756186962128, -0.2305029332637787, 0.1423441469669342, -1.2885912656784058, -1.5005548000335693, 0.6106650233268738, 0.4552844166755676, 0.6156729459762573, -0.06335589289665222, 1.0468673706054688, -1.1874972581863403, 0.9284173846244812, -1.003166913986206, -1.4749624729156494, -1.5425126552581787, -2.3784234523773193, -2.2764275074005127, 0.7704386711120605, -0.5137624144554138, -0.5607417225837708, 2.0428457260131836, -1.022587776184082, -1.590775728225708, 1.186760425567627, 0.156534343957901, 0.16073429584503174, 2.3772053718566895, 0.06908351182937622, -0.6516523361206055, 0.39178311824798584, -0.7178301215171814, 0.8705899715423584, -0.39436814188957214, 1.330941081047058, 0.5315946936607361, -1.155266523361206, 1.5599546432495117, -0.39442870020866394, 0.6227254271507263, -0.5725990533828735, -0.5444679260253906, -0.8946399688720703, 0.3677983582019806, 1.8199039697647095, -0.21442875266075134, 1.6114894151687622, -0.29654261469841003, -1.5405722856521606, -1.6300479173660278, 1.0208241939544678, 0.5045775175094604, -0.8467556834220886, 0.12711504101753235, -0.4484509229660034, 0.18343305587768555, -0.11306088417768478, 1.1463351249694824, 1.2540696859359741, 0.7031338214874268, -0.42373764514923096, -0.802780270576477, 0.15348652005195618, -0.1471831202507019, -0.7325518727302551, -1.7811524868011475, -0.3389835059642792, 0.07014325261116028, 0.6607811450958252, -1.0977094173431396, 1.7753750085830688, 1.0010199546813965, 1.8085811138153076, 0.9425409436225891, -0.32377704977989197, 1.4476600885391235, 0.056520409882068634, 1.7764577865600586, -0.5489461421966553, 0.6630616784095764, -0.3727765381336212, -1.1553423404693604, 0.9308579564094543, -0.32185500860214233, -2.0518603324890137, -0.9071506857872009, -0.6296780109405518, -0.2445104420185089, -0.8459812998771667, 0.8609328866004944, -0.23190724849700928, -1.4558629989624023, 0.2947695553302765, -0.6528268456459045, 0.24879863858222961, -1.1232802867889404, 0.4017617404460907, 0.6506891250610352, -0.6535419225692749, -0.009677723050117493, -0.12119213491678238, -1.2214229106903076, -0.4341316521167755, 0.30228108167648315, 1.936440110206604, -0.7207524180412292, 0.9198125600814819, 1.0049549341201782, -0.6658865213394165, 0.021817898377776146, 0.22963392734527588, -0.2871650755405426, 0.7977383136749268, -1.0375761985778809, -0.4592726230621338, 1.285749912261963, -0.40543317794799805, -0.5350146293640137, 1.4980406761169434, 0.6777270436286926, -1.0372790098190308, -0.22988221049308777, -0.2957974970340729, -0.8713309168815613, 0.0734458863735199, -1.5269609689712524, -0.12351160496473312, 0.5088524222373962, -1.4553165435791016, -0.388031929731369, -0.09010004997253418, 1.316116452217102, -0.23320454359054565, 1.5027306079864502, -0.39132657647132874, -0.20039960741996765, -0.26315391063690186, -0.394822359085083, 0.21991607546806335, -0.10408595204353333, -0.5846847891807556, 0.12631958723068237, -0.6709558963775635, 0.40721017122268677, 1.3929803371429443, 0.3484121859073639, -0.007218904793262482, 0.32511213421821594, 1.1329779624938965, 0.2579972743988037, -0.04972926154732704, -0.8729318380355835, -1.4730539321899414, 2.020697593688965, -1.4497179985046387, 2.029128313064575, 0.7213143110275269, -0.04365790635347366, -1.7421424388885498, -1.7173973321914673, 1.1786950826644897, 1.182491660118103, 2.178410530090332, 0.42233893275260925, 0.30142736434936523, -0.8900237679481506, -0.7785447835922241, 0.37129583954811096, -1.051320195198059, -0.6261984705924988, 0.1007389947772026, 2.3709826469421387, 1.7816836833953857, -0.4182929992675781, -0.22285524010658264, -0.9982699751853943, 1.4252023696899414, -0.280263751745224, 0.24186527729034424, 2.079033374786377, -0.2577418088912964, -1.0974587202072144, 1.3539083003997803, -2.404682159423828, 0.2521284818649292, 2.0653250217437744, 0.3975541591644287, 0.1073843464255333, -1.414452075958252, -0.570795476436615, -0.385493665933609, -0.3318987488746643, -1.3767422437667847, 0.5219171643257141, -0.34775424003601074, -0.7358952760696411, -1.3234235048294067, 0.20759674906730652, -1.1004608869552612, -1.5908509492874146, 0.24660757184028625, 1.9365909099578857, 2.10988187789917, -0.6136730909347534, 1.4237278699874878, -0.23968923091888428, 0.043405018746852875, 1.2169002294540405, 1.3250329494476318, 3.113943338394165, 1.8921712636947632, -1.3104296922683716, 0.5179545879364014, -0.2256292700767517, -0.4367189407348633, 1.180100679397583, -1.175511360168457, 1.2797976732254028, -0.10941644757986069, -1.1718710660934448, -1.2596843242645264, 1.0733366012573242, 0.5017046332359314, 0.02585790678858757, -0.5015227794647217, 1.1198420524597168, -0.005495625082403421, 1.3635255098342896, 0.6041660308837891, -0.48394668102264404, 0.5315209627151489, -0.4902020990848541, -0.5702959299087524, 1.561930537223816, 0.18651267886161804, -1.4761600494384766, -2.354372024536133, -0.2318081557750702, -0.9556365609169006, 0.09110374748706818, -0.5675660967826843, -1.0278728008270264, 1.6899008750915527, 0.3860941529273987, -1.3279775381088257, -0.29009386897087097, -0.33194154500961304, -0.5507231950759888, 2.7139954566955566, -1.2880715131759644, -0.14797624945640564, -0.953021228313446, -0.733587920665741, 1.7024348974227905, -1.2276711463928223, -0.3000117540359497, -1.0410875082015991, -0.6102085113525391, -1.248277187347412, -0.5979560017585754, -0.05028565973043442, -0.9907893538475037, 0.8439922332763672, 0.21179157495498657, -1.1985019445419312, -0.4459417462348938, -0.7366505861282349, 0.9072964191436768, -0.04756063595414162, 0.1962510049343109, 1.7880480289459229, 0.2750084698200226, -0.3184719383716583, 0.9302312135696411, 1.2558354139328003, 0.6922979354858398, -0.6420170068740845, 0.03398821875452995, -0.6077840328216553, 0.4130358397960663, -1.206307291984558, 0.32390639185905457, -2.9027316570281982, 0.6207805871963501, -0.11254027485847473, -0.18354126811027527, -0.0814162865281105, -1.3782938718795776, 1.0601557493209839, 2.622896194458008, -1.2283421754837036, 0.48925235867500305, 0.27633070945739746, 1.0657038688659668, -1.695391058921814, 0.2018490433692932, -0.44112351536750793, 2.1415083408355713, 0.3469960391521454, 1.2784695625305176, -0.44945716857910156, -2.2852907180786133, 0.5922526121139526, -1.2851884365081787, -1.1960023641586304, 0.7266893982887268, -0.8309535980224609, 0.20072251558303833, -1.4369455575942993, -0.3042422831058502, -0.8517844676971436, -1.2947919368743896, 0.7016537189483643, 0.12092486768960953, 0.4582866132259369, -0.5228347778320312, 0.2602238357067108, -2.237790584564209, -1.1745295524597168, -0.19973623752593994, -1.053031086921692, 0.5959959626197815, -0.4518720507621765, 0.5895663499832153, -0.03617437183856964, 0.030526496469974518, 0.4499034583568573, 1.5529613494873047, 3.5124781131744385, 0.16773322224617004, 0.2919805943965912, -0.17419886589050293, -0.878256618976593, 1.3934142589569092, 0.8877712488174438, 0.0198310948908329, -0.6307319402694702, -1.0639082193374634, 1.2493029832839966, 1.9058481454849243, 0.9507725834846497, 0.14330118894577026, -0.8036893606185913, -0.5594836473464966, -0.21817266941070557, 0.14660319685935974, 0.4797919988632202, 0.9401175379753113, -0.006637072190642357, 0.008624069392681122, 1.4741661548614502, 1.2466450929641724, -0.3266841471195221, 0.23088374733924866, -0.8113422393798828, -0.3890448212623596, 0.5184545516967773, 0.2015630006790161, -0.1561686396598816, 0.48344478011131287, -0.9136853814125061, -0.21969342231750488, -0.4771246016025543, -0.8864333033561707, -0.7126803994178772, -0.45222872495651245, -0.4369097054004669, 1.6890963315963745, 0.16157656908035278, -0.5043759942054749, 0.011220939457416534, -0.7568962574005127, -0.25528475642204285, -1.1646966934204102, 0.24035120010375977, -0.06990006566047668, -0.1972619593143463, -0.23631006479263306, 1.7599663734436035, -0.9110587239265442, -1.9924488067626953, 0.14525502920150757, 0.19777369499206543, -0.1751338541507721, 0.2151075303554535, 1.5762698650360107, 0.45860520005226135, 1.4149508476257324, 1.2578378915786743, 0.8836769461631775, -0.6829593181610107, -1.2738094329833984, 0.7086363434791565, 0.9209668040275574, -1.499988079071045, 0.9197356104850769, -0.18862423300743103, -0.476728230714798, 0.6936267614364624, 1.3095194101333618, 0.5584081411361694, -1.9752764701843262, 0.877763569355011, -1.1067161560058594, 0.7993453741073608, 0.6633327603340149, 0.6052047610282898, 0.3198205530643463, 0.8547358512878418, -1.1623954772949219, -1.1022861003875732, -0.7086794376373291, -0.7343456149101257, 1.9933371543884277, -0.437746524810791, 0.7190719246864319, -0.14255574345588684, -1.3046060800552368, -0.1322682797908783, 0.7640267610549927, 0.456046998500824, -0.31220024824142456, 0.8453887701034546, -0.7233031392097473, -1.0732070207595825, -1.313004970550537, -0.373363196849823, -1.1491451263427734, -0.8939509391784668, 1.0961668491363525, 0.8065683841705322, 0.2907903790473938, 1.8633123636245728, 0.6687340140342712, 0.3649657368659973, -2.552227020263672, 0.8650897145271301, 0.2576395869255066, -0.03422267735004425, 1.0028173923492432, 0.2908746600151062, 1.125048041343689, 0.07006406784057617, 0.5480424761772156, -2.4722702503204346, 2.294583797454834, -0.23678645491600037, 0.790730357170105, 0.034192126244306564, -0.2876458466053009, 1.1171423196792603, 0.5754959583282471, 0.4603683054447174, -1.085745096206665, 0.7199512124061584, -0.4954834282398224, 1.2280526161193848, 0.8713825941085815, -0.767017662525177, -0.03846754878759384, 1.443794846534729, 0.39221546053886414, -0.5039872527122498, -1.0284708738327026, -0.8535851836204529, 0.923681914806366, 1.6931504011154175, -0.012489824555814266, -0.07905180007219315, 0.7077656388282776, 0.6712925434112549, -1.1479510068893433, 0.17664939165115356, -0.6757659912109375, -0.7422611117362976, 1.5695987939834595, 2.031609535217285, -0.08176521211862564, -0.20239198207855225, -0.728762149810791, -1.2952046394348145, 0.678835928440094, -0.027382811531424522, 0.030946042388677597, 0.4394650161266327, -0.6165996789932251, 0.9773085117340088, 0.8818174600601196, 0.9617317914962769, 0.04355752095580101, 0.3349038064479828, 0.4958888590335846, -0.3707579970359802, -1.0956412553787231, -0.33833539485931396, -1.200530767440796, -2.6954660415649414, 0.43904584646224976, -0.3996400237083435, -1.4903357028961182, 0.007437940686941147, -1.0120600461959839, 0.9733741283416748, -0.6677739024162292, -1.2317742109298706, -1.5807875394821167, 0.22611752152442932, -0.04872073233127594, 0.9013077020645142, -1.638339877128601, -0.21487581729888916, 1.2022688388824463, 0.7809321880340576, -0.5710556507110596, 0.980339765548706, 0.11092966794967651, 0.9918490648269653, 0.7412407398223877, -0.5054516196250916, 0.5423850417137146, 0.06382206827402115, -1.4061200618743896, 0.6104497313499451, 1.171720266342163, 0.22143736481666565, 1.4420517683029175, -0.3761059045791626, 0.08049439638853073, 0.371549516916275, -0.7533364295959473, -0.44976893067359924, -0.2966672480106354, 0.7789723873138428, -0.0318571999669075, -0.8406186699867249, -0.018580462783575058, -0.15101078152656555, -0.45884189009666443, 0.10055750608444214, -1.3701847791671753, -0.25072816014289856, -0.3671860694885254, -0.4868057668209076, -1.285981297492981, -0.15515217185020447, 1.3133628368377686, -0.7341286540031433, -0.2464008331298828, 0.45369696617126465, 0.5039017200469971, 0.612320601940155, 0.6778984069824219, -0.6340664625167847, -0.3143318295478821, -0.3102760314941406, -0.2821735739707947, 0.3434390425682068, 1.2091025114059448, -0.09244464337825775, -0.8828636407852173, 0.7075464725494385, -0.3621499836444855, 0.11440301686525345, 1.936828851699829, 0.10903659462928772, -0.7248418927192688, 0.4347555935382843, -0.7140389680862427, 1.9188768863677979, 1.672812581062317, 1.1882493495941162, -0.16258826851844788, -1.0058939456939697, 0.7010811567306519, -0.40020859241485596, -0.29574477672576904, 0.7861756086349487, 0.3926287591457367, -0.18993738293647766, -1.4121818542480469, 0.8406569361686707, 1.2340333461761475, -0.7090927958488464, -0.8086833357810974, 0.23056432604789734, -0.7866218090057373, 1.0371648073196411, 0.495195597410202, 0.33885931968688965, 0.3019696772098541, 1.7288695573806763, 0.7659742832183838, -0.4888860881328583, 0.5709887146949768, 0.5542513728141785, -0.3282664716243744, -2.1554372310638428, -1.1252543926239014, 0.3505290746688843, -0.6096117496490479, -1.5084407329559326, 1.2966535091400146, -1.0479644536972046, -1.0181868076324463, 0.5914120674133301, 0.10046222060918808, 1.3833094835281372, 0.3354783058166504, 1.607200264930725, 2.063657283782959, 0.8366608619689941, 0.5384688973426819, 1.1980103254318237, -0.02220737561583519, -0.5439677834510803, 1.8730896711349487, -0.36530452966690063, 0.5160602927207947, 1.2183265686035156, -0.4003935158252716, -1.1673282384872437, -0.7310320734977722, -1.027240514755249, -0.7274379730224609, 1.1448569297790527, 0.12616312503814697, -0.9281063675880432, 0.16370496153831482, 1.6041146516799927, 0.16557472944259644, -0.2811613976955414, 0.5181567668914795, 0.39950987696647644, -0.7143343687057495, -0.07753020524978638, -0.984865128993988, 0.48205190896987915, -0.2718588709831238, -0.27646970748901367, 0.36114048957824707, 0.48759207129478455, 1.3376286029815674, -0.09387694299221039, 0.09018648415803909, 0.9422995448112488, -1.5073533058166504, 1.4703972339630127, -0.5945169925689697, 0.24920257925987244, -2.3581273555755615, 1.371599555015564, -0.7093619108200073, 2.0432558059692383, -2.5660829544067383, 0.3268737196922302, -0.6375871896743774, -0.41538453102111816, 0.32104000449180603, -0.3034150004386902, 0.1307372748851776, -0.12677687406539917, -1.0727243423461914, 0.0770629271864891, -0.6963730454444885, 0.6185968518257141, 1.1476967334747314, 1.2584952116012573, -1.2389631271362305, -0.31264692544937134, -1.5549559593200684, -0.1018446534872055, -0.860390305519104, 0.2606365978717804, -1.9265021085739136, 0.036858439445495605, -1.9197205305099487, -2.2970376014709473, -1.286553978919983, -0.711540162563324, 1.0870037078857422, 0.20400726795196533, -0.8049413561820984, 1.3836873769760132, -0.21883761882781982, -1.767552137374878, 0.9972200393676758, -2.1537299156188965 ]
https://github.com/huggingface/datasets/issues/3533
Task search function on hub not working correctly
Because it has dots in some YAML keys, it can't be parsed and indexed by the back-end
When I want to look at all datasets of the category: `speech-processing` *i.e.* https://huggingface.co/datasets?task_categories=task_categories:speech-processing&sort=downloads , then the following dataset doesn't show up for some reason: - https://huggingface.co/datasets/speech_commands even thought it's task tags seem correct: https://raw.githubusercontent.com/huggingface/datasets/master/datasets/speech_commands/README.md
1,020
17
Task search function on hub not working correctly When I want to look at all datasets of the category: `speech-processing` *i.e.* https://huggingface.co/datasets?task_categories=task_categories:speech-processing&sort=downloads , then the following dataset doesn't show up for some reason: - https://huggingface.co/datasets/speech_commands even thought it's task tags seem correct: https://raw.githubusercontent.com/huggingface/datasets/master/datasets/speech_commands/README.md Because it has dots in some YAML keys, it can't be parsed and indexed by the back-end
[ -1.1756720542907715, -0.920975923538208, -0.9049205780029297, 1.4530879259109497, -0.11639010906219482, -1.4066704511642456, 0.039236880838871, -0.9960918426513672, 1.642385721206665, -0.6949422359466553, 0.24740618467330933, -1.713486671447754, -0.14527186751365662, -0.4801430404186249, -0.7518787980079651, -0.8774055242538452, -0.410625159740448, -0.8274443745613098, 1.0047824382781982, 2.451275587081909, 1.2470327615737915, -1.3294600248336792, 2.7282896041870117, 0.6162909269332886, -0.27740636467933655, -1.1376230716705322, 0.6012350916862488, 0.11515852808952332, -1.238209843635559, -0.5277940034866333, -0.9013359546661377, 0.018424535170197487, -0.4624598026275635, -0.43671488761901855, 0.045026637613773346, 0.4800504744052887, -0.15289150178432465, -0.3588899075984955, -0.5696364641189575, -0.7106755375862122, 0.4464193880558014, -0.32147908210754395, 0.9037336707115173, -0.4674932062625885, 1.7287611961364746, -0.534605085849762, 0.2354128211736679, 0.690100371837616, 1.4247757196426392, 0.07198044657707214, 0.0177274402230978, 0.15681365132331848, 0.41941726207733154, -0.011105851270258427, 0.471739798784256, 1.0995832681655884, 0.46383318305015564, 0.5335833430290222, 0.6292707920074463, -2.2962307929992676, 1.235268473625183, -0.9178647994995117, 0.2588551342487335, 1.4695332050323486, -0.9609240293502808, 0.25583788752555847, -1.8044246435165405, 0.024345941841602325, 0.4909227788448334, -2.381852388381958, 0.2282797247171402, -1.1199254989624023, -0.5038395524024963, 0.9302670955657959, 0.2612675130367279, -1.228204607963562, 0.19783179461956024, -0.42641833424568176, 0.9825390577316284, 0.5294463634490967, 1.0903728008270264, -1.6597368717193604, 0.07021817564964294, -0.24824437499046326, -0.023357929661870003, -1.3600995540618896, -1.486049771308899, 0.4507921040058136, 0.5737997889518738, 0.7491286396980286, -0.03412458300590515, 0.9286354184150696, -0.9072989821434021, 0.8264704942703247, -0.9241569638252258, -1.5731052160263062, -1.4898897409439087, -2.3986852169036865, -2.3469502925872803, 0.8079400062561035, -0.5133085250854492, -0.42278337478637695, 1.88710618019104, -0.9882709383964539, -1.8026273250579834, 1.0257419347763062, 0.2971689701080322, 0.11241947114467621, 2.3126797676086426, 0.23077504336833954, -0.7491059303283691, 0.5192992091178894, -0.7437430024147034, 0.8131507635116577, -0.4343482553958893, 1.458739161491394, 0.5842339992523193, -0.9875668883323669, 1.7097336053848267, -0.4548504054546356, 0.5443072319030762, -0.6951916217803955, -0.5982006788253784, -0.9863741397857666, 0.29012706875801086, 1.8616788387298584, -0.2673092782497406, 1.5930676460266113, -0.36109548807144165, -1.5585596561431885, -1.452622890472412, 0.8400990962982178, 0.5103966593742371, -0.9135287404060364, 0.08393886685371399, -0.4223427176475525, -0.005838141776621342, -0.088487908244133, 1.0347663164138794, 1.0740007162094116, 0.620704174041748, -0.3353169858455658, -0.932751476764679, 0.28054729104042053, 0.05511115863919258, -0.6102861166000366, -1.867686152458191, -0.2989591360092163, 0.25844088196754456, 0.5533658862113953, -1.271378517150879, 1.7108161449432373, 0.921520471572876, 2.1442012786865234, 0.8439780473709106, -0.367610901594162, 1.4544264078140259, -0.008800162002444267, 1.9158402681350708, -0.48719918727874756, 0.6414452791213989, -0.2155611366033554, -1.1921122074127197, 0.8286862373352051, -0.449266254901886, -1.9795056581497192, -0.8917653560638428, -0.8981479406356812, -0.14496001601219177, -0.755533754825592, 1.0624147653579712, -0.3711923658847809, -1.3208768367767334, 0.0825926810503006, -0.580242931842804, 0.22503718733787537, -1.277262568473816, 0.15064752101898193, 0.8251556754112244, -0.6236594915390015, -0.06736500561237335, -0.19792097806930542, -1.3301622867584229, -0.5281117558479309, 0.4059355556964874, 1.9150512218475342, -0.625432550907135, 0.9660193920135498, 0.976901113986969, -0.7288200855255127, 0.09187322854995728, 0.24598819017410278, -0.2499745935201645, 0.858768105506897, -0.9837218523025513, -0.45812320709228516, 1.1526228189468384, -0.20276276767253876, -0.6997753977775574, 1.5272655487060547, 0.8390581607818604, -0.9950242638587952, -0.2208036184310913, -0.20597364008426666, -0.7641204595565796, -0.010498583316802979, -1.5579720735549927, -0.05754110962152481, 0.2328144758939743, -1.5050123929977417, -0.5001806020736694, -0.14812049269676208, 1.3686124086380005, -0.20613810420036316, 1.3625913858413696, -0.2403331995010376, -0.18773430585861206, -0.4279091954231262, -0.5356768369674683, 0.2901769280433655, -0.215995192527771, -0.7028188109397888, 0.34797632694244385, -0.8510341048240662, 0.3461182117462158, 1.4314156770706177, 0.37531933188438416, 0.06277748942375183, 0.5357574820518494, 1.0896716117858887, 0.3663277328014374, 0.027856338769197464, -0.9103705286979675, -1.658849835395813, 2.00039005279541, -1.5029854774475098, 1.9219979047775269, 0.705269992351532, -0.1788921356201172, -1.731985330581665, -1.8092412948608398, 1.3156603574752808, 1.2045503854751587, 2.3125720024108887, 0.6793941855430603, 0.34829771518707275, -0.8197422623634338, -0.7095722556114197, 0.24858975410461426, -1.040032982826233, -0.6787599325180054, 0.1523880660533905, 2.2311277389526367, 1.8355592489242554, -0.5531629323959351, -0.2271873503923416, -0.9080967307090759, 1.237102746963501, -0.17948076128959656, 0.306904137134552, 2.039180278778076, -0.3351588249206543, -1.0339535474777222, 1.2079532146453857, -2.4102702140808105, 0.4049583375453949, 2.099177122116089, 0.48818084597587585, 0.18843214213848114, -1.5254673957824707, -0.7103793025016785, -0.2408062368631363, -0.48713624477386475, -1.2763935327529907, 0.6662182807922363, -0.31620630621910095, -0.9833128452301025, -1.358199954032898, 0.13521762192249298, -1.0372021198272705, -1.7629318237304688, 0.5973341464996338, 1.8787899017333984, 2.07357120513916, -0.792415201663971, 1.3621622323989868, -0.22813722491264343, 0.15694062411785126, 1.2859894037246704, 1.2657667398452759, 3.057638645172119, 1.9220386743545532, -1.1281622648239136, 0.7756823301315308, -0.1809273362159729, -0.45674529671669006, 1.257581114768982, -1.038781762123108, 1.2115639448165894, -0.26539671421051025, -1.2507092952728271, -1.3442209959030151, 0.9603114128112793, 0.4995761811733246, -0.002612206619232893, -0.6275961399078369, 1.192023515701294, 0.0893363505601883, 1.2942849397659302, 0.5587502121925354, -0.5057687759399414, 0.469632625579834, -0.2958577871322632, -0.5664065480232239, 1.59646475315094, 0.1345425695180893, -1.5351167917251587, -2.341416120529175, -0.2965821921825409, -0.7939327955245972, -0.13877566158771515, -0.5410335659980774, -1.0894039869308472, 1.6209591627120972, 0.49476316571235657, -1.2062162160873413, -0.29821309447288513, -0.3042823076248169, -0.5002873539924622, 2.692108392715454, -1.2987022399902344, -0.2074974775314331, -0.956581175327301, -0.4386959373950958, 1.7821239233016968, -1.1929349899291992, -0.25671425461769104, -1.0738050937652588, -0.6699225306510925, -1.3921148777008057, -0.5015149116516113, 0.025052141398191452, -0.8518988490104675, 0.7516469359397888, 0.10796214640140533, -1.0791016817092896, -0.28764817118644714, -0.8648577928543091, 1.0049898624420166, -0.10281367599964142, 0.24653226137161255, 1.9816235303878784, 0.372699111700058, -0.40947118401527405, 0.7395432591438293, 1.1828449964523315, 0.6556515097618103, -0.6744557023048401, 0.16434575617313385, -0.6410698890686035, 0.27846240997314453, -1.409415602684021, 0.1806618571281433, -2.9769341945648193, 0.6768853068351746, 0.030052684247493744, -0.018523000180721283, -0.08439511060714722, -1.291088581085205, 1.230733871459961, 2.3820900917053223, -1.2679327726364136, 0.5284999012947083, 0.42338454723358154, 1.0933388471603394, -1.5393532514572144, 0.24324563145637512, -0.41571640968322754, 2.08620285987854, 0.15134407579898834, 1.2490694522857666, -0.47671306133270264, -2.126818895339966, 0.6418368816375732, -1.3043149709701538, -1.049108862876892, 0.7077656388282776, -0.9556022882461548, 0.16476361453533173, -1.5456280708312988, -0.16234955191612244, -1.0140485763549805, -1.3604698181152344, 0.8347475528717041, 0.1790022999048233, 0.40592238306999207, -0.6450832486152649, 0.4687362015247345, -2.1372759342193604, -1.4014065265655518, -0.2793404757976532, -1.0358690023422241, 0.4776376187801361, -0.30040907859802246, 0.5339925289154053, -0.026174312457442284, 0.14633804559707642, 0.26709869503974915, 1.4373713731765747, 3.3912415504455566, 0.13794134557247162, 0.2851336896419525, -0.030806800350546837, -0.9800346493721008, 1.5454527139663696, 1.1113983392715454, -0.027385959401726723, -0.5267206430435181, -0.8187373280525208, 1.3710070848464966, 1.9889912605285645, 1.105420470237732, 0.03442903980612755, -0.9535045027732849, -0.7773011922836304, -0.0317268967628479, 0.19485491514205933, 0.6341586112976074, 0.9244989156723022, -0.040159549564123154, 0.08317095041275024, 1.4002245664596558, 1.1384190320968628, -0.2952477037906647, 0.46988335251808167, -1.0213335752487183, -0.33492910861968994, 0.3923114240169525, 0.33843138813972473, 0.022754594683647156, 0.6166241765022278, -1.0772671699523926, -0.2289177030324936, -0.21382708847522736, -0.9483685493469238, -0.7028606534004211, -0.4866222143173218, -0.45002347230911255, 1.5854504108428955, 0.07576632499694824, -0.5402495265007019, -0.02200736477971077, -0.72322016954422, -0.17783774435520172, -1.130235195159912, 0.2933540344238281, -0.15940053761005402, -0.012339032255113125, -0.17526154220104218, 1.7428748607635498, -0.9684172868728638, -2.1581361293792725, 0.20555856823921204, 0.4698948562145233, -0.42313534021377563, 0.1441711187362671, 1.6109671592712402, 0.40125158429145813, 1.2792741060256958, 1.4242639541625977, 1.0621678829193115, -0.6262919902801514, -1.3371546268463135, 0.6921250224113464, 0.9796881675720215, -1.4153594970703125, 0.9148893356323242, -0.08386857807636261, -0.4799821972846985, 0.7729728817939758, 1.3259752988815308, 0.3954857289791107, -1.9630569219589233, 0.8612777590751648, -0.8484803438186646, 0.9491774439811707, 0.6421954035758972, 0.9428602457046509, 0.32285693287849426, 0.8488894104957581, -1.2645254135131836, -1.094839096069336, -0.8377469778060913, -0.6508079767227173, 1.825875163078308, -0.1934133917093277, 0.5145684480667114, -0.14268475770950317, -1.1477198600769043, -0.1660725474357605, 0.6578517556190491, 0.3297615349292755, -0.24978601932525635, 0.8932473063468933, -0.6696578860282898, -1.1452178955078125, -1.3048175573349, -0.3991956412792206, -0.9144774079322815, -0.9932329654693604, 1.0019371509552002, 0.770634651184082, 0.46360957622528076, 1.8994063138961792, 0.6296375393867493, 0.24940109252929688, -2.6643545627593994, 0.9207479953765869, 0.2620088756084442, 0.1246679276227951, 0.8309001326560974, 0.26536819338798523, 1.1703323125839233, -0.0401366651058197, 0.531165361404419, -2.2712392807006836, 2.16910457611084, -0.19907227158546448, 0.6605569124221802, 0.05475350096821785, -0.1201992779970169, 1.148565649986267, 0.5786005854606628, 0.5860835909843445, -1.2386798858642578, 0.8477256298065186, -0.6167033910751343, 1.1359126567840576, 0.8800963163375854, -0.8716477155685425, 0.017045600339770317, 1.3580855131149292, 0.5829594731330872, -0.35159987211227417, -0.973055362701416, -0.7939667701721191, 0.9388687610626221, 1.6484906673431396, 0.07588741183280945, -0.03934864327311516, 0.9391087293624878, 0.5624047517776489, -1.199932336807251, 0.005356547422707081, -0.7046837210655212, -0.5627993941307068, 1.7736177444458008, 2.0125386714935303, -0.11185699701309204, -0.21699418127536774, -0.7055947184562683, -1.1270760297775269, 0.6681474447250366, -0.10978047549724579, 0.02527492493391037, 0.7035300135612488, -0.7094876170158386, 1.1229349374771118, 0.6069537997245789, 0.8795982599258423, -0.12261916697025299, 0.3533535301685333, 0.31356626749038696, -0.24717023968696594, -1.2246166467666626, -0.3972214162349701, -1.1415129899978638, -2.5862088203430176, 0.35323724150657654, -0.3605465590953827, -1.3458824157714844, 0.08259281516075134, -1.1415188312530518, 0.8849875330924988, -0.6681450605392456, -1.089284896850586, -1.3995941877365112, 0.14726245403289795, -0.24120891094207764, 0.731224536895752, -1.5767302513122559, -0.12212935090065002, 1.404183030128479, 0.8316110372543335, -0.669376015663147, 1.090147852897644, 0.2406078279018402, 0.9940268397331238, 0.6810503005981445, -0.4131510555744171, 0.52187180519104, 0.21988074481487274, -1.4216707944869995, 0.5944148898124695, 1.1743963956832886, 0.17553719878196716, 1.3928210735321045, -0.5705037713050842, 0.11396266520023346, 0.4651782214641571, -0.6062501072883606, -0.5683194994926453, -0.5323657393455505, 0.8455860614776611, 0.09027460217475891, -1.044779896736145, 0.06874634325504303, -0.19206292927265167, -0.19295650720596313, 0.2534438371658325, -1.5141773223876953, -0.4240695536136627, -0.3468768000602722, -0.48965975642204285, -1.40098237991333, 0.11729103326797485, 1.3128368854522705, -0.7955211997032166, -0.18142811954021454, 0.5960907340049744, 0.37939324975013733, 0.558804452419281, 0.5996818542480469, -0.7063210010528564, -0.213374525308609, -0.3335441052913666, -0.3037053048610687, 0.31124889850616455, 1.1874303817749023, -0.19032712280750275, -1.0079787969589233, 0.6386406421661377, -0.3400866687297821, 0.001702246256172657, 2.062368869781494, -0.02628072164952755, -0.8012667894363403, 0.34769773483276367, -0.7096205949783325, 1.9395829439163208, 1.4443295001983643, 1.3728474378585815, -0.185329407453537, -0.7352566719055176, 0.5628756284713745, -0.16960206627845764, -0.3308490216732025, 0.7686873078346252, 0.5470342636108398, -0.16471779346466064, -1.4525364637374878, 0.5776010155677795, 1.290366768836975, -0.9137824177742004, -0.7762213349342346, 0.15697084367275238, -0.8217253684997559, 1.1178197860717773, 0.6697702407836914, 0.46037590503692627, 0.37445947527885437, 1.5069012641906738, 0.6801812052726746, -0.4470585286617279, 0.3312205672264099, 0.4798141419887543, -0.1964368373155594, -1.9747010469436646, -1.011731505393982, 0.3918616771697998, -0.45816653966903687, -1.527011513710022, 1.3235869407653809, -1.179263710975647, -0.9016964435577393, 0.5341134667396545, 0.17402420938014984, 1.3680245876312256, 0.34884414076805115, 1.7413333654403687, 2.0220437049865723, 0.9242962598800659, 0.26350530982017517, 1.3338990211486816, -0.06856022775173187, -0.468718945980072, 1.8794739246368408, -0.38533154129981995, 0.617042064666748, 1.0220513343811035, -0.43367433547973633, -1.0848827362060547, -0.78846675157547, -1.283699870109558, -0.5186317563056946, 1.1661016941070557, 0.2624323070049286, -1.1818491220474243, 0.17107316851615906, 1.4780129194259644, 0.2256741225719452, -0.16651028394699097, 0.7060872912406921, 0.3933551013469696, -0.7635977864265442, -0.027175862342119217, -0.9753521680831909, 0.46341484785079956, -0.19657079875469208, -0.32582393288612366, 0.20248101651668549, 0.5160847306251526, 1.229313850402832, -0.03776244819164276, 0.14981979131698608, 1.1512432098388672, -1.3511526584625244, 1.4663143157958984, -0.6742895841598511, 0.23929642140865326, -2.455941677093506, 1.4369670152664185, -0.8600339889526367, 1.9373372793197632, -2.6317567825317383, 0.4202163815498352, -0.6145017147064209, -0.4616428315639496, 0.3459497094154358, -0.42949339747428894, 0.03090524673461914, -0.12548832595348358, -1.017664909362793, 0.09840057790279388, -0.8050518035888672, 0.5751860737800598, 1.2468016147613525, 1.2992966175079346, -1.0682752132415771, -0.33890900015830994, -1.7735308408737183, -0.2641226649284363, -0.7149744033813477, 0.4441899061203003, -2.016958236694336, -0.1447790116071701, -1.9399791955947876, -2.2531936168670654, -1.3521486520767212, -0.8419099450111389, 1.0632259845733643, 0.24525362253189087, -0.8675514459609985, 1.106107473373413, -0.30439531803131104, -1.6679248809814453, 0.8953507542610168, -2.2090797424316406 ]
https://github.com/huggingface/datasets/issues/3518
Add PubMed Central Open Access dataset
In the framework of BigScience: - bigscience-workshop/data_tooling#121 I have created this dataset as a community dataset: https://huggingface.co/datasets/albertvillanova/pmc_open_access However, I was wondering that it may be more appropriate to move it under an org namespace: `pubmed_central` or `pmc` This way, we could add other datasets I'm also working on: Author Manuscript Dataset, Historical OCR Dataset, LitArch Open Access Subset. What do you think? @lhoestq @mariosasko
## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
1,022
64
Add PubMed Central Open Access dataset ## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). In the framework of BigScience: - bigscience-workshop/data_tooling#121 I have created this dataset as a community dataset: https://huggingface.co/datasets/albertvillanova/pmc_open_access However, I was wondering that it may be more appropriate to move it under an org namespace: `pubmed_central` or `pmc` This way, we could add other datasets I'm also working on: Author Manuscript Dataset, Historical OCR Dataset, LitArch Open Access Subset. What do you think? @lhoestq @mariosasko
[ -1.2337461709976196, -0.958017110824585, -0.7028802633285522, 1.3204185962677002, -0.2519270181655884, -1.2423053979873657, 0.11113020032644272, -0.9931319355964661, 1.6379245519638062, -0.6474552154541016, 0.25249770283699036, -1.7137643098831177, -0.060122616589069366, -0.5359019637107849, -0.7200232148170471, -0.7799860835075378, -0.49996593594551086, -0.8333809971809387, 0.9829282760620117, 2.4978041648864746, 1.1042121648788452, -1.467734456062317, 2.705416440963745, 0.6668404340744019, -0.14554435014724731, -1.0531419515609741, 0.46669894456863403, 0.16715116798877716, -1.195933222770691, -0.46887657046318054, -0.8143889307975769, -0.09409631788730621, -0.48901310563087463, -0.42047208547592163, 0.130824476480484, 0.31388187408447266, -0.08913849294185638, -0.3519531488418579, -0.578669011592865, -0.6664375066757202, 0.5012651681900024, -0.34629687666893005, 0.9023900032043457, -0.4387756586074829, 1.7528564929962158, -0.6107571125030518, 0.43790486454963684, 0.661489725112915, 1.2896409034729004, 0.18824905157089233, -0.022036131471395493, 0.2661886215209961, 0.4571315050125122, 0.08134813606739044, 0.44030436873435974, 1.1818664073944092, 0.6146042346954346, 0.4555819630622864, 0.6133401989936829, -2.2574408054351807, 1.2605050802230835, -0.9454814791679382, 0.4246556758880615, 1.469071388244629, -0.9471644163131714, 0.31740736961364746, -1.8245733976364136, -0.045455195009708405, 0.526533842086792, -2.277310609817505, 0.12458456307649612, -1.2319562435150146, -0.669659435749054, 0.921147882938385, 0.2422066032886505, -1.2430955171585083, 0.24128764867782593, -0.497751921415329, 1.0307952165603638, 0.4715957045555115, 1.2160300016403198, -1.7041348218917847, -0.17514953017234802, -0.18936753273010254, 0.025411106646060944, -1.2772400379180908, -1.5275830030441284, 0.6185722947120667, 0.5148557424545288, 0.6401544809341431, -0.08158041536808014, 0.8673751354217529, -1.022457480430603, 0.9252166748046875, -1.08883798122406, -1.5443623065948486, -1.444193959236145, -2.2966105937957764, -2.33479905128479, 0.886871874332428, -0.43594110012054443, -0.42887288331985474, 1.8782975673675537, -0.9669952988624573, -1.7360981702804565, 1.1798653602600098, 0.34152114391326904, 0.12181024998426437, 2.328566789627075, 0.2201717644929886, -0.716012179851532, 0.35934409499168396, -0.7774822115898132, 0.8080976009368896, -0.4172956049442291, 1.4799377918243408, 0.5792211294174194, -0.889776349067688, 1.5759295225143433, -0.46574151515960693, 0.536957323551178, -0.5946410894393921, -0.5637267827987671, -0.8045660257339478, 0.3827785849571228, 1.9113688468933105, -0.3196767270565033, 1.58547043800354, -0.3131934702396393, -1.6269304752349854, -1.4384223222732544, 0.8830862641334534, 0.6549217104911804, -0.8486480116844177, 0.019338764250278473, -0.4013090431690216, 0.13310524821281433, -0.1954503059387207, 1.0121805667877197, 1.0535659790039062, 0.7050589323043823, -0.41783031821250916, -0.8503143787384033, 0.29079604148864746, -0.1360846310853958, -0.7613884806632996, -1.8582206964492798, -0.3244350552558899, 0.1967984437942505, 0.6019960045814514, -1.2845983505249023, 1.6692436933517456, 0.9089963436126709, 2.018399953842163, 0.9391250610351562, -0.38620656728744507, 1.4196629524230957, 0.05906302109360695, 1.880181074142456, -0.5628689527511597, 0.7371443510055542, -0.2961321473121643, -1.048947811126709, 0.8715722560882568, -0.42739322781562805, -2.1456921100616455, -0.7580212950706482, -0.9638978242874146, -0.26104500889778137, -0.8048812747001648, 0.9230924844741821, -0.18341632187366486, -1.4266841411590576, 0.08937708288431168, -0.6530490517616272, 0.2677796185016632, -1.2782864570617676, 0.2550322413444519, 0.8356798887252808, -0.5881573557853699, -0.14285318553447723, -0.23057344555854797, -1.3224643468856812, -0.5246999263763428, 0.22989340126514435, 1.8676013946533203, -0.6631265878677368, 0.982311487197876, 0.866270899772644, -0.6896033883094788, 0.17695872485637665, 0.2258431762456894, -0.25187769532203674, 0.8819625973701477, -1.1147717237472534, -0.3344438672065735, 1.097695231437683, -0.20266321301460266, -0.5247186422348022, 1.5869531631469727, 0.8717234134674072, -0.8912528157234192, -0.23438537120819092, -0.2614362835884094, -0.8263208270072937, -0.014105914160609245, -1.5609183311462402, -0.18753598630428314, 0.1978796422481537, -1.459731101989746, -0.5435007810592651, -0.22878499329090118, 1.323223352432251, -0.2334575206041336, 1.3494094610214233, -0.3601354658603668, -0.3407607078552246, -0.49235478043556213, -0.41614121198654175, 0.20285652577877045, -0.2580893933773041, -0.6507192850112915, 0.270826518535614, -0.8637723326683044, 0.26724037528038025, 1.4213074445724487, 0.5034440755844116, 0.02896229922771454, 0.5741825103759766, 1.0414451360702515, 0.28497183322906494, -0.06657148152589798, -0.8620524406433105, -1.50501549243927, 2.0520803928375244, -1.542009949684143, 1.9339677095413208, 0.7508257031440735, -0.017934825271368027, -1.7050533294677734, -1.8544610738754272, 1.3167887926101685, 1.1968733072280884, 2.3961644172668457, 0.5394976139068604, 0.44805198907852173, -0.8271190524101257, -0.7050890326499939, 0.2838480770587921, -0.968789279460907, -0.7578744292259216, 0.11186209321022034, 2.3459126949310303, 1.8551299571990967, -0.6919781565666199, -0.14312617480754852, -0.9727361798286438, 1.384813666343689, -0.15067410469055176, 0.3360767066478729, 2.0740294456481934, -0.31874290108680725, -1.032877802848816, 1.2799603939056396, -2.3694639205932617, 0.21095028519630432, 2.0467333793640137, 0.4324406683444977, 0.1624658852815628, -1.4353257417678833, -0.6063661575317383, -0.2831599712371826, -0.4045991003513336, -1.2750049829483032, 0.5290250182151794, -0.30787602066993713, -0.8612198233604431, -1.463008165359497, 0.10770460218191147, -1.1300119161605835, -1.7154858112335205, 0.42563167214393616, 1.874352216720581, 1.9669597148895264, -0.6995317339897156, 1.2915680408477783, -0.28521212935447693, 0.09138165414333344, 1.2890629768371582, 1.2273170948028564, 3.0407328605651855, 1.9870083332061768, -1.254857063293457, 0.7112850546836853, -0.2350401133298874, -0.5243439674377441, 1.0838316679000854, -1.0122507810592651, 1.1348977088928223, -0.2386600524187088, -1.171879768371582, -1.1468054056167603, 1.0812602043151855, 0.5613989233970642, 0.10800591111183167, -0.6133182048797607, 1.1888294219970703, -0.008309407159686089, 1.3161647319793701, 0.5703293085098267, -0.3986106514930725, 0.5440877676010132, -0.46597379446029663, -0.4930247962474823, 1.6346404552459717, 0.18273991346359253, -1.5594401359558105, -2.4575002193450928, -0.2741098999977112, -0.9602655172348022, -0.08630342781543732, -0.5900397896766663, -1.0061672925949097, 1.6659694910049438, 0.5049152970314026, -1.3381338119506836, -0.245761439204216, -0.3061610460281372, -0.6632059216499329, 2.6241660118103027, -1.4241656064987183, -0.1825980544090271, -0.942127525806427, -0.4707019627094269, 1.688339114189148, -1.2014085054397583, -0.09967658668756485, -1.0609841346740723, -0.6635039448738098, -1.26850426197052, -0.4762168228626251, 0.017355840653181076, -0.9571911096572876, 0.9323338270187378, -0.05253715068101883, -1.0701483488082886, -0.31574955582618713, -0.8683233261108398, 0.847393274307251, -0.07623917609453201, 0.1890936642885208, 1.8967366218566895, 0.41574448347091675, -0.39298978447914124, 0.6160130500793457, 1.2609728574752808, 0.7462748289108276, -0.7872970700263977, 0.13353651762008667, -0.647519052028656, 0.30853956937789917, -1.4143495559692383, 0.2702398896217346, -2.8965682983398438, 0.7648541927337646, -0.047756511718034744, -0.1128169372677803, -0.0542854443192482, -1.332951545715332, 1.1568883657455444, 2.5655453205108643, -1.2865253686904907, 0.40929335355758667, 0.3883664011955261, 1.1711777448654175, -1.5518566370010376, 0.35688871145248413, -0.4216969609260559, 2.097792387008667, 0.17267028987407684, 1.152074933052063, -0.603287935256958, -2.2064483165740967, 0.5835403800010681, -1.0993958711624146, -1.109289288520813, 0.6078007221221924, -0.8394986391067505, 0.24913257360458374, -1.579829216003418, -0.1281224638223648, -0.9306834936141968, -1.2475990056991577, 0.684044361114502, 0.11288768798112869, 0.38684824109077454, -0.6836920380592346, 0.39179760217666626, -2.2115752696990967, -1.4083385467529297, -0.2742803394794464, -0.8943747878074646, 0.6050814390182495, -0.3485683798789978, 0.6833290457725525, 0.01162551436573267, 0.08398822695016861, 0.33366256952285767, 1.4170589447021484, 3.4382357597351074, 0.16945090889930725, 0.39122846722602844, -0.0706964060664177, -0.927473247051239, 1.4742612838745117, 1.0524109601974487, 0.11035265028476715, -0.5500200986862183, -0.9446904063224792, 1.281835675239563, 2.0142252445220947, 1.0924586057662964, 0.06903833150863647, -0.757931113243103, -0.6792003512382507, 0.054308269172906876, 0.24222320318222046, 0.49120157957077026, 0.9316118359565735, 0.0038306834176182747, 0.17545519769191742, 1.3425666093826294, 1.23795747756958, -0.3887683153152466, 0.4431699514389038, -0.8514552116394043, -0.42330119013786316, 0.43536123633384705, 0.3724164664745331, 0.05503233149647713, 0.49846500158309937, -1.095933198928833, -0.31171122193336487, -0.22135134041309357, -1.0359890460968018, -0.6903786063194275, -0.528564989566803, -0.539508581161499, 1.6252775192260742, 0.04836387187242508, -0.4901916980743408, -0.0016475897282361984, -0.7419930696487427, -0.08020748198032379, -1.1259735822677612, 0.3351411819458008, -0.09136223793029785, -0.02037702687084675, -0.1839572936296463, 1.8225373029708862, -0.8942588567733765, -2.124439001083374, 0.24693763256072998, 0.36463460326194763, -0.5390511155128479, 0.07501581311225891, 1.573947548866272, 0.5331981778144836, 1.3798331022262573, 1.2793201208114624, 1.010890007019043, -0.5437720417976379, -1.3000301122665405, 0.6809993982315063, 0.9361013174057007, -1.317367672920227, 0.7684884071350098, 0.01879466325044632, -0.4893016815185547, 0.7733981609344482, 1.4444018602371216, 0.3607482612133026, -1.9238735437393188, 0.8287636041641235, -0.8318196535110474, 0.8064922094345093, 0.7286261916160583, 0.6939398050308228, 0.2881578505039215, 0.8975136280059814, -1.3999260663986206, -1.0583304166793823, -0.8697583675384521, -0.560292661190033, 1.9945650100708008, -0.2060721516609192, 0.5102881193161011, -0.22008053958415985, -1.1451932191848755, -0.023051541298627853, 0.7786400318145752, 0.396465003490448, -0.3291952610015869, 0.8250278234481812, -0.5185866951942444, -1.0692270994186401, -1.3266783952713013, -0.4089394211769104, -0.9030961990356445, -0.9034134149551392, 1.0098936557769775, 0.937138557434082, 0.4135712683200836, 1.8634198904037476, 0.6475040912628174, 0.21516206860542297, -2.673190116882324, 0.8779762983322144, 0.2963443994522095, 0.0322573147714138, 0.872039794921875, 0.1857050061225891, 1.1447244882583618, 0.03285493701696396, 0.5930086374282837, -2.374650478363037, 2.2127792835235596, -0.24067962169647217, 0.7044976949691772, 0.024893667548894882, -0.09579873085021973, 1.1722970008850098, 0.5724236369132996, 0.46454668045043945, -1.1844555139541626, 0.6958747506141663, -0.6161572337150574, 1.1320302486419678, 0.8764691948890686, -0.7132261991500854, 0.026268750429153442, 1.3094894886016846, 0.5719634294509888, -0.45950421690940857, -1.016379475593567, -0.8101606965065002, 0.9763911962509155, 1.750464677810669, -0.11687542498111725, -0.0698002278804779, 0.8980923891067505, 0.7388997077941895, -1.2773823738098145, 0.06724732369184494, -0.7229414582252502, -0.6549835801124573, 1.650202751159668, 2.071554183959961, 0.021184265613555908, -0.056486405432224274, -0.6249980926513672, -1.2858949899673462, 0.6572480797767639, 0.008725681342184544, 0.12643428146839142, 0.7435219287872314, -0.6709787249565125, 1.136383295059204, 0.7283506989479065, 0.9207010269165039, -0.039733149111270905, 0.2973754107952118, 0.31277185678482056, -0.3367716073989868, -1.1733591556549072, -0.4185941517353058, -1.2269644737243652, -2.5377707481384277, 0.476188987493515, -0.26371142268180847, -1.4108307361602783, 0.022002819925546646, -1.1005909442901611, 0.892765462398529, -0.6772719621658325, -1.0982924699783325, -1.6089951992034912, 0.24666407704353333, -0.04392542317509651, 0.92225182056427, -1.6618598699569702, -0.16555066406726837, 1.175243616104126, 0.7424691915512085, -0.5131449103355408, 0.9875624179840088, 0.24982327222824097, 0.9978387951850891, 0.758794903755188, -0.3899560272693634, 0.5012454986572266, 0.11325082182884216, -1.3998088836669922, 0.61956787109375, 1.1394745111465454, 0.21923016011714935, 1.3763222694396973, -0.5182780623435974, 0.2219737321138382, 0.48325788974761963, -0.5450270771980286, -0.4787163734436035, -0.5676138997077942, 0.7224060297012329, 0.16713158786296844, -1.088426947593689, -0.003276870585978031, -0.14061850309371948, -0.18644320964813232, 0.2160508930683136, -1.3927013874053955, -0.25483009219169617, -0.4126304090023041, -0.48582422733306885, -1.218284249305725, -0.07308561354875565, 1.3747674226760864, -0.8376802206039429, -0.20114856958389282, 0.6372969746589661, 0.4088127911090851, 0.6190705895423889, 0.6875201463699341, -0.6862738728523254, -0.3507591187953949, -0.27865827083587646, -0.2392640858888626, 0.19951878488063812, 1.2563509941101074, -0.1522500365972519, -1.0420442819595337, 0.7324868440628052, -0.379169225692749, 0.08593173325061798, 2.0410375595092773, 0.03705792501568794, -0.8019744753837585, 0.40948256850242615, -0.7427877187728882, 1.7862963676452637, 1.6576862335205078, 1.2906514406204224, -0.09564052522182465, -0.9005831480026245, 0.4337753355503082, -0.25637882947921753, -0.3913571238517761, 0.7994188666343689, 0.48798075318336487, -0.18709154427051544, -1.417885184288025, 0.5142175555229187, 1.3589825630187988, -0.9440940618515015, -0.7912412881851196, 0.16151636838912964, -0.8315452933311462, 1.1616525650024414, 0.49104899168014526, 0.41993167996406555, 0.24514827132225037, 1.5859838724136353, 0.6113251447677612, -0.4394608438014984, 0.36361756920814514, 0.5842340588569641, -0.153211310505867, -2.1449012756347656, -1.1592230796813965, 0.3101491928100586, -0.47506991028785706, -1.5500088930130005, 1.3348612785339355, -1.161207675933838, -0.8431442379951477, 0.5469735860824585, 0.18723486363887787, 1.4700093269348145, 0.39758527278900146, 1.774347186088562, 2.0676651000976562, 0.9149299263954163, 0.3298010528087616, 1.3963754177093506, 0.06714653223752975, -0.46730315685272217, 1.8428672552108765, -0.38720402121543884, 0.49596601724624634, 1.0447674989700317, -0.4488399624824524, -1.1881539821624756, -0.7514485716819763, -1.155808448791504, -0.5699140429496765, 1.1434283256530762, 0.12856517732143402, -1.1471847295761108, 0.10904587060213089, 1.5690323114395142, 0.08235247433185577, -0.26130130887031555, 0.5242493748664856, 0.28747615218162537, -0.7574236392974854, -0.044466763734817505, -1.0318971872329712, 0.4515090584754944, -0.18173542618751526, -0.26797211170196533, 0.17693503201007843, 0.6477327942848206, 1.189705729484558, -0.039484523236751556, 0.07615042477846146, 1.219444751739502, -1.3792929649353027, 1.422794222831726, -0.6418132185935974, 0.27469906210899353, -2.435077667236328, 1.412500262260437, -0.7150424718856812, 1.847771167755127, -2.679421901702881, 0.2913850247859955, -0.577659010887146, -0.4342471957206726, 0.33237725496292114, -0.3794344663619995, 0.17500151693820953, -0.07851899415254593, -1.1119248867034912, 0.023442279547452927, -0.8610686659812927, 0.5177011489868164, 1.2529735565185547, 1.423896074295044, -1.166674256324768, -0.32160642743110657, -1.7181142568588257, -0.15777160227298737, -0.7409077882766724, 0.42107200622558594, -2.0045127868652344, 0.03073122724890709, -1.8878151178359985, -2.2569963932037354, -1.4523800611495972, -0.9508967995643616, 0.9664216041564941, 0.10831621289253235, -0.8731736540794373, 1.0020380020141602, -0.3686831593513489, -1.6962190866470337, 1.0263397693634033, -2.223557233810425 ]
https://github.com/huggingface/datasets/issues/3518
Add PubMed Central Open Access dataset
Why not ! Having them under such namespaces would also help people searching for this kind of datasets. We can also invite people from pubmed at one point
## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
1,022
28
Add PubMed Central Open Access dataset ## Adding a Dataset - **Name:** PubMed Central Open Access - **Description:** The PMC Open Access Subset includes more than 3.4 million journal articles and preprints that are made available under license terms that allow reuse. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/ - **Motivation:** *what are some good reasons to have this dataset* Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Why not ! Having them under such namespaces would also help people searching for this kind of datasets. We can also invite people from pubmed at one point
[ -1.3050142526626587, -1.028125524520874, -0.6688700318336487, 1.306201696395874, -0.2668135464191437, -1.3185343742370605, 0.10140573978424072, -1.0236414670944214, 1.6963400840759277, -0.6188897490501404, 0.2524762451648712, -1.7074843645095825, -0.05579867959022522, -0.5577617883682251, -0.7094507813453674, -0.7573590874671936, -0.4375413656234741, -0.8041819930076599, 0.9532482624053955, 2.457611560821533, 1.0788588523864746, -1.4056369066238403, 2.7082183361053467, 0.6643074154853821, -0.2115400731563568, -1.0236921310424805, 0.4605274200439453, 0.2563260793685913, -1.2286330461502075, -0.48294392228126526, -0.811321496963501, -0.06487463414669037, -0.3955157995223999, -0.42479777336120605, 0.17726050317287445, 0.26084914803504944, -0.045960891991853714, -0.32406383752822876, -0.6344276070594788, -0.595061182975769, 0.44256991147994995, -0.2985221743583679, 0.9102206230163574, -0.5017210245132446, 1.7593352794647217, -0.6453955173492432, 0.37624964118003845, 0.5948612689971924, 1.356147289276123, 0.15621766448020935, -0.057463888078927994, 0.2717309296131134, 0.5031141638755798, 0.07167411595582962, 0.33958539366722107, 1.175809621810913, 0.5758767127990723, 0.49875813722610474, 0.6161925196647644, -2.1853110790252686, 1.3458259105682373, -0.9119811058044434, 0.4089396595954895, 1.489924430847168, -1.0404067039489746, 0.3870552182197571, -1.7619060277938843, -0.037438422441482544, 0.5148706436157227, -2.3517391681671143, 0.10780996829271317, -1.1479943990707397, -0.7931281328201294, 0.8524245023727417, 0.24725455045700073, -1.2202625274658203, 0.2368234097957611, -0.5786256194114685, 1.00681471824646, 0.3889687955379486, 1.22092866897583, -1.6899328231811523, -0.21614018082618713, -0.15487460792064667, -0.10372773557901382, -1.2992568016052246, -1.5489979982376099, 0.7403080463409424, 0.5412925481796265, 0.6829497218132019, -0.10558213293552399, 0.8487691283226013, -0.9725857973098755, 1.0472910404205322, -1.0523850917816162, -1.5402756929397583, -1.398654818534851, -2.3586723804473877, -2.2282395362854004, 0.9484657049179077, -0.365192711353302, -0.5168744325637817, 1.871907353401184, -0.9499782919883728, -1.7380297183990479, 1.154884696006775, 0.25107458233833313, 0.1318284124135971, 2.3481717109680176, 0.2111366242170334, -0.5871202349662781, 0.2591119110584259, -0.7627299427986145, 0.8930324912071228, -0.49440380930900574, 1.4836597442626953, 0.5080531239509583, -0.9049302935600281, 1.5496089458465576, -0.4534354507923126, 0.5435510277748108, -0.5219841599464417, -0.5747674107551575, -0.8439229726791382, 0.4584925174713135, 1.950785756111145, -0.30370062589645386, 1.579326868057251, -0.39195531606674194, -1.646916151046753, -1.4183722734451294, 0.8111013174057007, 0.683022141456604, -0.8234919905662537, 0.015455317683517933, -0.4156312644481659, 0.07138438522815704, -0.11610376834869385, 1.0902278423309326, 1.0990252494812012, 0.6456413865089417, -0.43854519724845886, -0.8143113851547241, 0.3080158531665802, -0.12842270731925964, -0.7574230432510376, -1.899391531944275, -0.34458911418914795, 0.19108901917934418, 0.6521927118301392, -1.2607851028442383, 1.5757547616958618, 0.926775336265564, 2.0570802688598633, 0.9284294843673706, -0.36328625679016113, 1.3207989931106567, 0.046272456645965576, 1.8373525142669678, -0.6738772988319397, 0.7999362349510193, -0.23135071992874146, -0.9678248167037964, 0.8516247272491455, -0.5009925365447998, -2.1330015659332275, -0.7581915259361267, -1.0260064601898193, -0.24062545597553253, -0.7424001693725586, 0.9540905356407166, -0.28099116683006287, -1.3712494373321533, 0.08623683452606201, -0.6844134330749512, 0.2841978073120117, -1.2747747898101807, 0.2332489788532257, 0.9275067448616028, -0.5979191660881042, -0.22225166857242584, -0.28156688809394836, -1.3193992376327515, -0.6158668994903564, 0.24555930495262146, 1.8865410089492798, -0.6647762656211853, 1.0505002737045288, 0.8184822797775269, -0.6983599662780762, 0.22778643667697906, 0.2853545844554901, -0.22936223447322845, 0.8869675397872925, -1.157608151435852, -0.3361375331878662, 1.0046073198318481, -0.1769913136959076, -0.41786882281303406, 1.6036006212234497, 0.8692587018013, -0.8781253695487976, -0.19549942016601562, -0.3092147707939148, -0.8473291993141174, -0.029549796134233475, -1.5611644983291626, -0.22125893831253052, 0.12244516611099243, -1.4205690622329712, -0.5858434438705444, -0.3040182590484619, 1.3688404560089111, -0.15584704279899597, 1.2362644672393799, -0.2814601957798004, -0.46453237533569336, -0.4975096881389618, -0.37347787618637085, 0.22118495404720306, -0.2978685200214386, -0.6534756422042847, 0.290562242269516, -0.8416130542755127, 0.24714690446853638, 1.4585659503936768, 0.4947766661643982, 0.049729663878679276, 0.6703094244003296, 0.9938732385635376, 0.24065600335597992, -0.15575376152992249, -0.8663476705551147, -1.531565546989441, 1.9914491176605225, -1.5545777082443237, 1.8922457695007324, 0.7795839309692383, -0.03335254266858101, -1.691641926765442, -1.8754820823669434, 1.3212776184082031, 1.2550221681594849, 2.3708014488220215, 0.5701544284820557, 0.3712262511253357, -0.7994579076766968, -0.7016687989234924, 0.22842635214328766, -1.0338081121444702, -0.7153227925300598, 0.035647522658109665, 2.268955945968628, 1.914942741394043, -0.7750203013420105, -0.16646909713745117, -1.0474218130111694, 1.3503378629684448, -0.11108588427305222, 0.2721751630306244, 2.0853946208953857, -0.36572369933128357, -1.0428440570831299, 1.3027387857437134, -2.275747060775757, 0.18913574516773224, 1.9974429607391357, 0.43770769238471985, 0.09917701035737991, -1.4736430644989014, -0.5968871712684631, -0.3110964298248291, -0.3278849422931671, -1.2862058877944946, 0.5231765508651733, -0.33410221338272095, -0.8854641318321228, -1.5580165386199951, 0.08218900859355927, -1.1699907779693604, -1.72731614112854, 0.5607101917266846, 1.8288525342941284, 1.9425058364868164, -0.6058835387229919, 1.3069381713867188, -0.2811385989189148, 0.01344828587025404, 1.2861175537109375, 1.2356812953948975, 3.060260772705078, 1.9911808967590332, -1.1910676956176758, 0.6770684123039246, -0.20950451493263245, -0.483081191778183, 1.036715030670166, -0.9967113733291626, 1.2056232690811157, -0.2118457853794098, -1.1195104122161865, -1.2051401138305664, 1.1043169498443604, 0.596061646938324, 0.07101735472679138, -0.5738698244094849, 1.2138957977294922, -0.027356453239917755, 1.3432540893554688, 0.5401650667190552, -0.4444754421710968, 0.5509771704673767, -0.4644932150840759, -0.4341178834438324, 1.6651840209960938, 0.20910672843456268, -1.5829839706420898, -2.4372870922088623, -0.26482632756233215, -0.932806134223938, -0.07234904915094376, -0.6247555613517761, -1.012528896331787, 1.6819111108779907, 0.5474914908409119, -1.3168796300888062, -0.2615337371826172, -0.35147377848625183, -0.73322594165802, 2.5525758266448975, -1.4582626819610596, -0.18733327090740204, -0.9249565005302429, -0.3925936818122864, 1.664626121520996, -1.1819193363189697, -0.1447945237159729, -1.0690600872039795, -0.6918483376502991, -1.214211344718933, -0.4438619315624237, 0.0055158743634819984, -0.9860889911651611, 0.9484354257583618, -0.15042424201965332, -0.9966100454330444, -0.3358302116394043, -0.8333737254142761, 0.8466820120811462, -0.07455158978700638, 0.19957078993320465, 1.9283961057662964, 0.43506529927253723, -0.41369447112083435, 0.6316578984260559, 1.310931921005249, 0.7404598593711853, -0.8769084215164185, 0.15014851093292236, -0.6092504858970642, 0.29950520396232605, -1.3636583089828491, 0.3721160888671875, -2.9688656330108643, 0.7474983930587769, -0.06586138904094696, -0.10829448699951172, -0.02843403071165085, -1.3475711345672607, 1.2000417709350586, 2.5870091915130615, -1.2805408239364624, 0.4027518332004547, 0.312962144613266, 1.1221301555633545, -1.5812242031097412, 0.40138480067253113, -0.371995210647583, 2.0417978763580322, 0.1591903269290924, 1.12922203540802, -0.7180038690567017, -2.106440782546997, 0.6656510829925537, -1.04246985912323, -1.0727009773254395, 0.503166139125824, -0.7888869047164917, 0.2610308527946472, -1.610755205154419, -0.06352253258228302, -0.910296618938446, -1.2913085222244263, 0.5990161299705505, 0.13611845672130585, 0.311802476644516, -0.6450201272964478, 0.3861079514026642, -2.1647584438323975, -1.4234625101089478, -0.2466813027858734, -0.8788918256759644, 0.6419649720191956, -0.40196046233177185, 0.6210692524909973, 0.02581046149134636, 0.14613206684589386, 0.2880578339099884, 1.417635440826416, 3.3610620498657227, 0.0906781256198883, 0.41687455773353577, -0.029042687267065048, -0.9529654383659363, 1.425034523010254, 1.0782592296600342, 0.21588008105754852, -0.5597832202911377, -0.966532289981842, 1.3424577713012695, 2.0129432678222656, 1.1083896160125732, 0.12000688910484314, -0.7538205981254578, -0.6340482234954834, 0.07590774446725845, 0.3304462432861328, 0.4847821891307831, 1.0044450759887695, 0.049149543046951294, 0.17076727747917175, 1.34747314453125, 1.3181229829788208, -0.46716058254241943, 0.4360654950141907, -0.854770839214325, -0.47078225016593933, 0.41808557510375977, 0.4291466772556305, -0.013972848653793335, 0.40233317017555237, -1.0929608345031738, -0.33338817954063416, -0.15414638817310333, -1.028793454170227, -0.6617167592048645, -0.45559918880462646, -0.5881121158599854, 1.5871551036834717, 0.05381591618061066, -0.46087202429771423, -0.1352655589580536, -0.748511791229248, -0.036364953964948654, -1.1456762552261353, 0.377139151096344, -0.065495066344738, -0.007537084631621838, -0.20536048710346222, 1.8449057340621948, -0.8874915242195129, -2.163541793823242, 0.2781897187232971, 0.31195759773254395, -0.6342965960502625, 0.03845609724521637, 1.5211621522903442, 0.6181479692459106, 1.4301263093948364, 1.2684317827224731, 1.0288753509521484, -0.5355287194252014, -1.367725133895874, 0.6174553036689758, 0.8518857359886169, -1.3645678758621216, 0.7532840371131897, 0.013326042331755161, -0.471251904964447, 0.832817018032074, 1.5177412033081055, 0.3618209660053253, -1.8937861919403076, 0.8423152565956116, -0.8136895298957825, 0.8597028851509094, 0.8195583820343018, 0.7186176180839539, 0.2948857843875885, 0.9129016399383545, -1.4410712718963623, -1.0557494163513184, -0.9742492437362671, -0.5146092772483826, 2.0305240154266357, -0.2085232138633728, 0.4585965573787689, -0.2938804626464844, -1.0909019708633423, -0.03669675067067146, 0.7330516576766968, 0.45277658104896545, -0.22898821532726288, 0.8355447053909302, -0.5635154843330383, -1.0873844623565674, -1.346274495124817, -0.38602215051651, -0.8077354431152344, -0.8829758763313293, 0.9825785756111145, 0.9893962144851685, 0.48757031559944153, 1.9333696365356445, 0.5613908171653748, 0.20826587080955505, -2.646470546722412, 0.8381599187850952, 0.28783413767814636, 0.10430927574634552, 0.8857927322387695, 0.1885708123445511, 1.2272536754608154, 0.07324747741222382, 0.5165221095085144, -2.3048338890075684, 2.18709135055542, -0.23047731816768646, 0.7379885911941528, 0.03097223863005638, -0.05059683695435524, 1.2459533214569092, 0.5587654709815979, 0.49813348054885864, -1.1382607221603394, 0.7210027575492859, -0.5758314728736877, 1.217533826828003, 0.8400635123252869, -0.6278707385063171, 0.03898083418607712, 1.3001784086227417, 0.642363429069519, -0.4480823278427124, -0.9804626107215881, -0.8416335582733154, 0.9143484234809875, 1.7734253406524658, -0.09419969469308853, -0.020595094189047813, 0.830784261226654, 0.7679157257080078, -1.2684825658798218, 0.053205203264951706, -0.7561668753623962, -0.5766183733940125, 1.616860032081604, 2.049624443054199, 0.08334030956029892, -0.10591329634189606, -0.6532697677612305, -1.2416892051696777, 0.6444167494773865, 0.017608273774385452, 0.1583937257528305, 0.7848485708236694, -0.6454412341117859, 1.1808664798736572, 0.774131715297699, 0.918150007724762, -0.06385542452335358, 0.41341233253479004, 0.33757373690605164, -0.2920655608177185, -1.172252893447876, -0.43646058440208435, -1.231053113937378, -2.5366017818450928, 0.483667254447937, -0.3665147125720978, -1.4357765913009644, -0.00571760768070817, -1.1510753631591797, 0.9165911078453064, -0.6895397305488586, -1.0734093189239502, -1.6795563697814941, 0.19907806813716888, -0.046432748436927795, 0.9586499929428101, -1.5915601253509521, -0.195119246840477, 1.1926507949829102, 0.6863402128219604, -0.46295976638793945, 0.9928146600723267, 0.1572173684835434, 1.001476526260376, 0.7494380474090576, -0.39103806018829346, 0.3881339132785797, 0.1249227225780487, -1.387864351272583, 0.5621185898780823, 1.1107617616653442, 0.28250670433044434, 1.29963219165802, -0.5070385336875916, 0.23224149644374847, 0.5476475358009338, -0.4972468316555023, -0.45795974135398865, -0.5278737545013428, 0.7227441072463989, 0.08786863088607788, -1.045756220817566, 0.011571130715310574, -0.2261742353439331, -0.24581272900104523, 0.24561524391174316, -1.3984148502349854, -0.34373486042022705, -0.4897990822792053, -0.4731777608394623, -1.2061721086502075, -0.04325386881828308, 1.3582122325897217, -0.8207119107246399, -0.21681979298591614, 0.5824891924858093, 0.46868225932121277, 0.6525072455406189, 0.7593258619308472, -0.7187893986701965, -0.3310853838920593, -0.29122716188430786, -0.2568262219429016, 0.19611795246601105, 1.2444487810134888, -0.20475521683692932, -1.0310407876968384, 0.6534898281097412, -0.37442171573638916, 0.06351838260889053, 2.109293222427368, -0.031046602874994278, -0.8388795256614685, 0.39762595295906067, -0.7772667407989502, 1.813652753829956, 1.5634400844573975, 1.292184591293335, -0.09254242479801178, -0.8898882269859314, 0.3869425058364868, -0.13779212534427643, -0.34291109442710876, 0.7514560222625732, 0.5513144731521606, -0.17095710337162018, -1.3747453689575195, 0.4426391124725342, 1.3850078582763672, -0.9940600395202637, -0.7871328592300415, 0.17544803023338318, -0.830856442451477, 1.1237537860870361, 0.48689910769462585, 0.5093203186988831, 0.26149797439575195, 1.6207481622695923, 0.55305415391922, -0.4265490174293518, 0.3008086681365967, 0.55228590965271, -0.1714296042919159, -2.1205272674560547, -1.1352380514144897, 0.24833670258522034, -0.5146772861480713, -1.540650725364685, 1.2870680093765259, -1.177594542503357, -0.7709302306175232, 0.5295194983482361, 0.2650681138038635, 1.4704807996749878, 0.3717710077762604, 1.7918951511383057, 1.9944257736206055, 0.8965814113616943, 0.29296231269836426, 1.4660133123397827, 0.12667256593704224, -0.49419718980789185, 1.86424720287323, -0.3609764575958252, 0.5828245878219604, 1.0942357778549194, -0.462151437997818, -1.2493934631347656, -0.7089839577674866, -1.0945429801940918, -0.6063953042030334, 1.12655508518219, 0.17370297014713287, -1.2105828523635864, 0.07347791641950607, 1.4787442684173584, 0.15234743058681488, -0.22568529844284058, 0.3908576965332031, 0.3052480220794678, -0.7407770156860352, -0.08955971896648407, -1.0861183404922485, 0.4010472595691681, -0.2211255133152008, -0.3244149386882782, 0.15612928569316864, 0.6836662888526917, 1.1467126607894897, -0.09541064500808716, 0.12178638577461243, 1.221062183380127, -1.4087356328964233, 1.4164276123046875, -0.5943847894668579, 0.2567635178565979, -2.4957642555236816, 1.5079832077026367, -0.6697781682014465, 1.9062831401824951, -2.755707263946533, 0.26532599329948425, -0.6287838220596313, -0.39143773913383484, 0.3395904004573822, -0.35859090089797974, 0.20478424429893494, -0.1308942288160324, -1.107832908630371, 0.0763673260807991, -0.8990440964698792, 0.47242796421051025, 1.3473867177963257, 1.4422190189361572, -1.126064658164978, -0.294584721326828, -1.7249832153320312, -0.22180427610874176, -0.797280490398407, 0.4271613359451294, -2.0154073238372803, 0.06888993829488754, -1.7961286306381226, -2.2517712116241455, -1.433515191078186, -0.935238242149353, 0.9534434080123901, 0.11527109891176224, -0.8504692912101746, 0.9745426774024963, -0.3568429946899414, -1.6354519128799438, 1.0526760816574097, -2.2192254066467285 ]
https://github.com/huggingface/datasets/issues/3510
`wiki_dpr` details for Open Domain Question Answering tasks
Hi ! According to the DPR paper, the wikipedia dump is the one from Dec. 20, 2018. Each instance contains a paragraph of at most 100 word, as well as the title of the wikipedia page it comes from and the DPR embedding (a 768-d vector).
Hey guys! Thanks for creating the `wiki_dpr` dataset! I am currently trying to use the dataset for context retrieval using DPR on NQ questions and need details about what each of the files and data instances mean, which version of the Wikipedia dump it uses, etc. Please respond at your earliest convenience regarding the same! Thanks a ton! P.S.: (If one of @thomwolf @lewtun @lhoestq could respond, that would be even better since they have the first-hand details of the dataset. If anyone else has those, please reach out! Thanks!)
1,026
46
`wiki_dpr` details for Open Domain Question Answering tasks Hey guys! Thanks for creating the `wiki_dpr` dataset! I am currently trying to use the dataset for context retrieval using DPR on NQ questions and need details about what each of the files and data instances mean, which version of the Wikipedia dump it uses, etc. Please respond at your earliest convenience regarding the same! Thanks a ton! P.S.: (If one of @thomwolf @lewtun @lhoestq could respond, that would be even better since they have the first-hand details of the dataset. If anyone else has those, please reach out! Thanks!) Hi ! According to the DPR paper, the wikipedia dump is the one from Dec. 20, 2018. Each instance contains a paragraph of at most 100 word, as well as the title of the wikipedia page it comes from and the DPR embedding (a 768-d vector).
[ -1.2746294736862183, -0.885672926902771, -0.8123432993888855, 1.493040680885315, -0.20504185557365417, -1.2776291370391846, 0.11475565284490585, -1.0389236211776733, 1.737722396850586, -0.9661440253257751, 0.3241523504257202, -1.7054738998413086, 0.12897413969039917, -0.5423511266708374, -0.7722683548927307, -1.008070468902588, -0.5063827037811279, -0.7540358304977417, 1.0367430448532104, 2.537336826324463, 1.1773759126663208, -1.3827733993530273, 2.63492488861084, 0.6514236330986023, -0.1821805089712143, -1.0604708194732666, 0.5780307650566101, 0.14444060623645782, -1.239181399345398, -0.48323968052864075, -1.0118540525436401, -0.021152149885892868, -0.63982754945755, -0.5617165565490723, 0.03909812867641449, 0.34610071778297424, -0.19769343733787537, -0.4263702929019928, -0.37840747833251953, -0.814028799533844, 0.5038936138153076, -0.30709752440452576, 0.959570586681366, -0.35130012035369873, 1.9023516178131104, -0.5016428828239441, 0.30408555269241333, 0.7786879539489746, 1.4646040201187134, 0.12677280604839325, -0.22243714332580566, 0.20549094676971436, 0.4457944929599762, -0.07112688571214676, 0.31445029377937317, 1.0328243970870972, 0.6009706258773804, 0.6392932534217834, 0.6828076839447021, -2.1888554096221924, 1.485190987586975, -1.1938296556472778, 0.4388020634651184, 1.4477174282073975, -1.1005672216415405, 0.35763829946517944, -1.7697699069976807, -0.08708005398511887, 0.33401185274124146, -2.2746148109436035, 0.1843796670436859, -1.175226092338562, -0.5161868929862976, 0.9768992066383362, 0.3695739805698395, -1.3143891096115112, 0.1138993427157402, -0.39463791251182556, 1.1003713607788086, 0.5679072141647339, 1.0662983655929565, -1.8166395425796509, 0.054801832884550095, -0.37012046575546265, 0.0729142427444458, -1.3811172246932983, -1.514844298362732, 0.613775908946991, 0.5843979716300964, 0.44644835591316223, 0.033105816692113876, 0.9148531556129456, -0.8782126903533936, 0.9028489589691162, -0.9686437845230103, -1.5078802108764648, -1.4648617506027222, -2.223062753677368, -2.3051340579986572, 0.7248398065567017, -0.47395190596580505, -0.5829388499259949, 2.08156681060791, -1.0525634288787842, -1.748492956161499, 1.244552731513977, 0.23028124868869781, -0.09057744592428207, 2.4571101665496826, 0.15345706045627594, -0.6300089359283447, 0.3456239700317383, -0.7099212408065796, 0.9590567946434021, -0.5043197274208069, 1.4116781949996948, 0.44801172614097595, -1.1625540256500244, 1.5885077714920044, -0.3475348949432373, 0.47563841938972473, -0.6418907046318054, -0.5690217018127441, -0.7621254324913025, 0.42866411805152893, 1.847711443901062, -0.30613842606544495, 1.4608204364776611, -0.4589328169822693, -1.48910391330719, -1.6229344606399536, 0.9413748979568481, 0.5460548996925354, -0.8163152933120728, 0.16414597630500793, -0.3142061233520508, 0.08676958084106445, 0.023826751857995987, 1.1705305576324463, 1.246270775794983, 0.6823081374168396, -0.33336278796195984, -0.891548216342926, 0.16710788011550903, -0.13881394267082214, -0.5999054908752441, -1.8333516120910645, -0.4116269052028656, -0.054947394877672195, 0.7637799382209778, -1.0742323398590088, 1.746309757232666, 0.916345477104187, 1.8597090244293213, 0.9823195338249207, -0.2678910493850708, 1.489338994026184, 0.0466032400727272, 1.841130256652832, -0.5027573108673096, 0.6769214272499084, -0.3897456228733063, -1.169871211051941, 0.8537394404411316, -0.29864466190338135, -2.0058014392852783, -0.8744636178016663, -0.9606926441192627, -0.20026281476020813, -0.8425962924957275, 1.1095855236053467, -0.326833039522171, -1.3247687816619873, 0.35416534543037415, -0.5301427245140076, 0.1446724385023117, -1.246816635131836, 0.5124145746231079, 0.8082934617996216, -0.5847998857498169, 0.1304560899734497, -0.21113339066505432, -1.3218638896942139, -0.6109393239021301, 0.2687350809574127, 1.8003960847854614, -0.7345994710922241, 1.021371603012085, 0.8949469923973083, -0.7368935942649841, -0.13376536965370178, 0.3847808837890625, -0.2508532702922821, 0.9121957421302795, -1.0035630464553833, -0.3668792247772217, 1.168785810470581, -0.41320791840553284, -0.5068962574005127, 1.4554215669631958, 0.6795421838760376, -0.8741167783737183, -0.12650029361248016, -0.31056296825408936, -0.7504790425300598, -0.0953105092048645, -1.542830228805542, -0.0013996744528412819, 0.2709199786186218, -1.4546971321105957, -0.4617486000061035, -0.170776829123497, 1.3215508460998535, -0.1592283546924591, 1.4056450128555298, -0.3201703131198883, -0.23277656733989716, -0.46710097789764404, -0.2421191930770874, 0.22931967675685883, -0.18042081594467163, -0.5558846592903137, 0.29435235261917114, -0.7879389524459839, 0.3395808935165405, 1.59342622756958, 0.5541049838066101, 0.07664106041193008, 0.49373599886894226, 1.0806019306182861, 0.2235599011182785, 0.027191951870918274, -0.9459311962127686, -1.4654273986816406, 2.046738386154175, -1.509750247001648, 1.9684699773788452, 0.6972538232803345, -0.028048932552337646, -1.7674720287322998, -1.7577834129333496, 1.4604246616363525, 1.2272045612335205, 2.188162088394165, 0.6086797714233398, 0.3512752056121826, -0.7805739045143127, -0.5602009296417236, 0.3673507571220398, -1.1761083602905273, -0.8146013617515564, 0.15607967972755432, 2.2878541946411133, 1.6872533559799194, -0.48294565081596375, -0.08162916451692581, -1.0762436389923096, 1.3541431427001953, -0.16401448845863342, 0.1431838423013687, 1.8799749612808228, -0.37417811155319214, -1.1262606382369995, 1.2174941301345825, -2.295870304107666, 0.11298070847988129, 2.04705548286438, 0.32590609788894653, 0.002788921818137169, -1.5249162912368774, -0.5597203373908997, -0.11623124778270721, -0.4798213243484497, -1.3160611391067505, 0.600554883480072, -0.33686745166778564, -0.6732744574546814, -1.5517909526824951, 0.22951409220695496, -1.0313206911087036, -1.5638234615325928, 0.34191352128982544, 1.8276333808898926, 2.0328705310821533, -0.5911169052124023, 1.5114071369171143, -0.23531150817871094, 0.30214008688926697, 1.296391487121582, 1.21982741355896, 3.174851894378662, 1.9340280294418335, -1.1641860008239746, 0.5831913948059082, -0.1248944029211998, -0.5996086001396179, 1.1234445571899414, -1.0712844133377075, 1.3815809488296509, -0.067520372569561, -1.1636232137680054, -1.323648452758789, 0.9099706411361694, 0.3475843667984009, 0.1092517077922821, -0.5028084516525269, 1.1816388368606567, 0.09959077835083008, 1.2869011163711548, 0.5310080647468567, -0.30965328216552734, 0.6104463338851929, -0.5780654549598694, -0.5776662230491638, 1.5586384534835815, 0.1845778226852417, -1.5354180335998535, -2.252225160598755, -0.30716270208358765, -0.7175118327140808, -0.00361578818410635, -0.5267931818962097, -0.9469591379165649, 1.6585007905960083, 0.4534386098384857, -1.270673394203186, -0.26471567153930664, -0.4689623713493347, -0.6906630992889404, 2.6558244228363037, -1.4816334247589111, -0.17459926009178162, -0.8081340193748474, -0.6930920481681824, 1.5652319192886353, -1.288504958152771, -0.16962961852550507, -0.9360685348510742, -0.6138542890548706, -1.312999963760376, -0.5402475595474243, -0.04890264570713043, -1.1133275032043457, 0.7339259386062622, 0.23978401720523834, -1.1242084503173828, -0.4191495180130005, -0.7177413105964661, 0.6716893315315247, -0.03996376320719719, 0.37530046701431274, 1.9020437002182007, 0.41062086820602417, -0.4182296097278595, 0.7440944910049438, 1.174355149269104, 0.6261261105537415, -0.5292054414749146, 0.20179153978824615, -0.5888257026672363, 0.26487016677856445, -1.1174225807189941, 0.384397029876709, -2.8803844451904297, 0.6184234023094177, -0.11711926013231277, -0.2779563069343567, -0.04824461787939072, -1.3431174755096436, 1.1041488647460938, 2.5877833366394043, -1.0737860202789307, 0.5397820472717285, 0.1592182219028473, 1.2415847778320312, -1.464782953262329, 0.3083227276802063, -0.46257340908050537, 2.2323927879333496, 0.18735045194625854, 1.1695194244384766, -0.6102921962738037, -2.369915246963501, 0.5974226593971252, -1.2251113653182983, -1.185227870941162, 0.7578808665275574, -0.7157275080680847, -0.040883276611566544, -1.3609589338302612, -0.2258249670267105, -0.91319340467453, -1.228589653968811, 0.8608561754226685, 0.09062584489583969, 0.5510530471801758, -0.614255428314209, 0.3302958905696869, -2.0954461097717285, -1.3728495836257935, -0.294023722410202, -0.8462465405464172, 0.4208216667175293, -0.32459312677383423, 0.7181075811386108, -0.2623920142650604, 0.05711524561047554, 0.3024207651615143, 1.4978567361831665, 3.342595338821411, 0.2667872905731201, 0.5479447245597839, -0.1354902684688568, -0.8543969392776489, 1.5190107822418213, 1.0898287296295166, -0.024632658809423447, -0.6123453378677368, -1.0064295530319214, 1.2132296562194824, 1.882978916168213, 0.8034244179725647, 0.08763711899518967, -0.6870445609092712, -0.5596074461936951, -0.1219884380698204, 0.17443206906318665, 0.5150230526924133, 0.7978914380073547, 0.04931671544909477, 0.1989533007144928, 1.4324463605880737, 1.2665337324142456, -0.551291286945343, 0.46052122116088867, -0.8123790621757507, -0.5259648561477661, 0.48074182868003845, 0.4028146266937256, -0.15065637230873108, 0.2998948395252228, -0.8826788663864136, -0.3254855275154114, -0.31836748123168945, -1.0864640474319458, -0.6074497103691101, -0.40509113669395447, -0.40785717964172363, 1.6774200201034546, 0.09932570904493332, -0.5159748196601868, -0.08495397865772247, -0.8186414837837219, -0.14521470665931702, -1.1182074546813965, 0.29125264286994934, -0.14560697972774506, -0.11081353574991226, -0.1014970988035202, 1.9610334634780884, -0.8651999831199646, -2.105498790740967, 0.2941904366016388, 0.21837708353996277, -0.4125846028327942, 0.1776096522808075, 1.56044340133667, 0.39466649293899536, 1.5108962059020996, 1.3369464874267578, 0.9121649265289307, -0.544428825378418, -1.3687992095947266, 0.7459831237792969, 0.8372535109519958, -1.5185177326202393, 0.7746081948280334, 0.05509789660573006, -0.4619353115558624, 0.8264449834823608, 1.0975000858306885, 0.4787195920944214, -2.0448896884918213, 0.7847002744674683, -0.9209918975830078, 0.8201544284820557, 0.7571079134941101, 0.6919856071472168, 0.2539618909358978, 0.9621481895446777, -1.272291898727417, -1.2116575241088867, -0.7508191466331482, -0.5703372955322266, 1.9310327768325806, -0.31598156690597534, 0.7007541060447693, -0.16910482943058014, -1.3427484035491943, -0.21925027668476105, 0.6042796969413757, 0.2665032148361206, -0.24967268109321594, 0.7770489454269409, -0.76590496301651, -1.1271724700927734, -1.497636318206787, -0.49626725912094116, -1.007120966911316, -0.9323161244392395, 1.0760942697525024, 0.7587045431137085, 0.13536851108074188, 1.8527469635009766, 0.41673946380615234, 0.21216954290866852, -2.6522533893585205, 0.8668054342269897, 0.36159658432006836, 0.018727395683526993, 0.8633688688278198, 0.3610958456993103, 0.9926924705505371, 0.05851507559418678, 0.4088396430015564, -2.424530506134033, 2.3810691833496094, -0.30599477887153625, 0.8219746947288513, 0.03342360630631447, -0.1857294738292694, 1.1338772773742676, 0.5803329944610596, 0.5462941527366638, -1.1336110830307007, 0.7421889305114746, -0.7122906446456909, 1.3839868307113647, 0.8296653032302856, -0.7142966389656067, -0.07531210780143738, 1.3557015657424927, 0.5331261157989502, -0.40761879086494446, -0.8821960687637329, -1.0440300703048706, 1.0194783210754395, 1.7671478986740112, -0.09572339057922363, 0.01483659166842699, 0.7085165977478027, 0.6894912719726562, -1.2630552053451538, 0.21978510916233063, -0.7901266813278198, -0.888654351234436, 1.4783939123153687, 2.0106749534606934, -0.15310093760490417, -0.0644037202000618, -0.6800121068954468, -1.1956262588500977, 0.6942625641822815, 0.04796527326107025, 0.10468673706054688, 0.484935998916626, -0.7410572171211243, 1.0518099069595337, 1.0065101385116577, 0.90705406665802, 0.2417788803577423, 0.387562096118927, 0.2827059328556061, -0.23591265082359314, -1.1780019998550415, -0.12885668873786926, -1.160116195678711, -2.599275588989258, 0.4112490117549896, -0.39569440484046936, -1.3910342454910278, 0.058052483946084976, -1.0486798286437988, 0.8028616309165955, -0.5326876640319824, -1.1954385042190552, -1.5254099369049072, 0.11908918619155884, 0.04511098936200142, 0.9004203677177429, -1.5877045392990112, -0.009608931839466095, 1.1859248876571655, 0.8936237096786499, -0.6588694453239441, 1.0958760976791382, 0.20297521352767944, 1.0366398096084595, 0.8987098336219788, -0.5430729389190674, 0.466788113117218, 0.17339690029621124, -1.4200050830841064, 0.4986765682697296, 1.0318151712417603, 0.27648240327835083, 1.43159019947052, -0.560490608215332, 0.004764566197991371, 0.531841516494751, -0.5332946181297302, -0.540899932384491, -0.6214637756347656, 0.7182781100273132, 0.027348022907972336, -0.8199874758720398, 0.15900225937366486, -0.10081508755683899, -0.28298506140708923, 0.3370230793952942, -1.5216420888900757, -0.318203330039978, -0.4728161096572876, -0.5717273354530334, -1.4224646091461182, -0.03309256583452225, 1.3959827423095703, -0.6952491402626038, -0.19117042422294617, 0.5268506407737732, 0.4609295725822449, 0.44754552841186523, 0.7245885729789734, -0.6907162666320801, -0.4904712438583374, -0.26951926946640015, -0.34284457564353943, 0.3352676331996918, 1.2221252918243408, -0.31884175539016724, -0.8364907503128052, 0.6999416947364807, -0.20583617687225342, -0.024244114756584167, 1.8806147575378418, 0.12499141693115234, -0.8340337872505188, 0.31400150060653687, -0.6423014402389526, 2.0256118774414062, 1.6007676124572754, 1.3727529048919678, -0.21938763558864594, -0.9365001916885376, 0.7554725408554077, -0.20984093844890594, -0.36452406644821167, 0.8548948764801025, 0.4921710193157196, -0.1832885891199112, -1.4577683210372925, 0.7166935205459595, 1.2184802293777466, -0.8460587859153748, -0.8517462611198425, 0.10551589727401733, -0.7958180904388428, 0.937968373298645, 0.7342143058776855, 0.48360538482666016, 0.17860808968544006, 1.7002156972885132, 0.7391429543495178, -0.43849408626556396, 0.6047349572181702, 0.46519896388053894, -0.06514479219913483, -2.1558773517608643, -1.1523935794830322, 0.1691286414861679, -0.47440654039382935, -1.4521623849868774, 1.395552396774292, -0.989022433757782, -0.9615596532821655, 0.5838235020637512, 0.04888637363910675, 1.571702241897583, 0.26709526777267456, 1.504229187965393, 1.9965871572494507, 0.8670565485954285, 0.3253338038921356, 1.4265236854553223, -0.07210052758455276, -0.4435965418815613, 1.9681925773620605, -0.5443430542945862, 0.4522553086280823, 1.299163579940796, -0.4349840581417084, -1.0335513353347778, -0.7703521251678467, -1.0946260690689087, -0.7254146933555603, 1.0672913789749146, 0.10387221723794937, -1.114636778831482, 0.12669460475444794, 1.448631763458252, 0.09026089310646057, -0.2546577453613281, 0.411702424287796, 0.5317544341087341, -0.6419488191604614, -0.11789821088314056, -0.9824731349945068, 0.6743378043174744, -0.3097764253616333, -0.4041305482387543, 0.40906134247779846, 0.3695873022079468, 1.1995042562484741, -0.09181318432092667, 0.1283334344625473, 1.0436495542526245, -1.508604645729065, 1.3430711030960083, -0.6470152735710144, 0.21752524375915527, -2.353644609451294, 1.459352970123291, -0.7993454933166504, 2.0347509384155273, -2.682990312576294, 0.29847484827041626, -0.7046824097633362, -0.47704052925109863, 0.39691460132598877, -0.36879485845565796, 0.1368943750858307, -0.29723384976387024, -0.9523710012435913, -0.06379134207963943, -0.6692076325416565, 0.46712741255760193, 1.050450325012207, 1.335772156715393, -1.0567747354507446, -0.3424317240715027, -1.6178158521652222, -0.1287207007408142, -0.5167210698127747, 0.40825504064559937, -2.057300329208374, -0.12134523689746857, -1.9597572088241577, -2.3037290573120117, -1.358585000038147, -0.7576858997344971, 1.0474863052368164, 0.16235871613025665, -0.8192155361175537, 1.2280161380767822, -0.2127821445465088, -1.7236297130584717, 0.953906774520874, -2.1114277839660645 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work), so that for datasets that have a working dataset preview, we can remove the dummy data IMO. On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. I don't really have an opinion regarding the JSON metadata as I don't know enough about it.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
105
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work), so that for datasets that have a working dataset preview, we can remove the dummy data IMO. On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. I don't really have an opinion regarding the JSON metadata as I don't know enough about it.
[ -1.2830235958099365, -1.0211706161499023, -0.7712366580963135, 1.4195841550827026, -0.15034161508083344, -1.220200538635254, 0.034718580543994904, -1.1275163888931274, 1.727886438369751, -0.8414739370346069, 0.22369658946990967, -1.726373314857483, 0.037373755127191544, -0.6029088497161865, -0.7478607296943665, -0.9556317329406738, -0.4883066713809967, -0.8975503444671631, 1.090351939201355, 2.4994845390319824, 1.1320425271987915, -1.387230634689331, 2.7439723014831543, 0.637900710105896, -0.19939632713794708, -1.0425187349319458, 0.540003776550293, -0.06835883855819702, -1.2746095657348633, -0.43077123165130615, -0.9671135544776917, -0.060416121035814285, -0.6327886581420898, -0.4679531157016754, 0.05164400488138199, 0.29651737213134766, -0.2886474132537842, -0.32659924030303955, -0.5503914952278137, -0.7051420211791992, 0.49118420481681824, -0.24105066061019897, 0.9728637337684631, -0.31483614444732666, 1.9353559017181396, -0.51539546251297, 0.3301502764225006, 0.6864763498306274, 1.3591891527175903, 0.2576223313808441, 0.0027411188930273056, 0.24228395521640778, 0.3597564995288849, -0.021892502903938293, 0.44620752334594727, 1.102637529373169, 0.6486058235168457, 0.5722638964653015, 0.6899552941322327, -2.2125654220581055, 1.367369294166565, -1.0952321290969849, 0.34263649582862854, 1.4735974073410034, -0.9974809288978577, 0.4242822229862213, -1.7572389841079712, -0.05042363330721855, 0.545383632183075, -2.274407148361206, 0.06657780706882477, -1.1900094747543335, -0.46133407950401306, 1.0225820541381836, 0.3113718628883362, -1.1541818380355835, 0.30953288078308105, -0.4018882215023041, 1.1305662393569946, 0.5309825539588928, 1.2401139736175537, -1.7284643650054932, 0.0528615303337574, -0.3029312193393707, 0.18516753613948822, -1.4041119813919067, -1.597002387046814, 0.5570758581161499, 0.6416565179824829, 0.5387904047966003, -0.05287353694438934, 0.9908372759819031, -1.0083459615707397, 0.7623002529144287, -0.8776595592498779, -1.559127688407898, -1.4041379690170288, -2.281172037124634, -2.436901569366455, 0.822242259979248, -0.5062081813812256, -0.5536967515945435, 2.0808773040771484, -1.100139856338501, -1.7620232105255127, 1.1698609590530396, 0.2834632992744446, -0.029780451208353043, 2.4763848781585693, 0.19545015692710876, -0.6345505118370056, 0.4754449725151062, -0.6645135879516602, 0.8409138917922974, -0.2747378647327423, 1.3764710426330566, 0.5323318243026733, -1.0654555559158325, 1.5299887657165527, -0.40255075693130493, 0.5343632698059082, -0.5173338651657104, -0.5456549525260925, -0.8776033520698547, 0.31019994616508484, 1.795426607131958, -0.2613145112991333, 1.6020050048828125, -0.4200005531311035, -1.613193392753601, -1.650937795639038, 0.8937146663665771, 0.5064520239830017, -0.8452396392822266, 0.1159515306353569, -0.3943779170513153, 0.10136917233467102, 0.07014968991279602, 1.1458616256713867, 1.2019232511520386, 0.6847774386405945, -0.31040146946907043, -0.8898211717605591, 0.16938889026641846, -0.0704919695854187, -0.6860268115997314, -1.7733440399169922, -0.3552965223789215, 0.09545400738716125, 0.650688111782074, -1.1160352230072021, 1.6116620302200317, 0.9364033341407776, 1.8057342767715454, 1.0618839263916016, -0.35580626130104065, 1.461995244026184, 0.039319757372140884, 1.764355182647705, -0.5377703905105591, 0.7050123810768127, -0.41660383343696594, -1.2274508476257324, 0.8219119310379028, -0.34771406650543213, -2.0483577251434326, -0.8177381157875061, -0.8374589085578918, -0.20864233374595642, -0.7182842493057251, 0.9253782629966736, -0.2423105537891388, -1.4122005701065063, 0.29457876086235046, -0.5508092641830444, 0.20087096095085144, -1.2384310960769653, 0.4084208905696869, 0.7201744318008423, -0.7346386909484863, -0.021665304899215698, -0.20722000300884247, -1.2833842039108276, -0.414899617433548, 0.19088321924209595, 1.8615057468414307, -0.842589259147644, 0.8992698788642883, 1.0250117778778076, -0.7850225567817688, 0.013012575916945934, 0.31390202045440674, -0.2563130259513855, 0.9333299398422241, -0.9682931303977966, -0.42234551906585693, 1.11008620262146, -0.21556508541107178, -0.6043800711631775, 1.3972315788269043, 0.6428621411323547, -0.9765946865081787, -0.16642364859580994, -0.19133037328720093, -0.9289318323135376, -0.06312685459852219, -1.568039059638977, -0.22428622841835022, 0.3619078993797302, -1.5073283910751343, -0.48341771960258484, -0.21975845098495483, 1.3187381029129028, -0.18373264372348785, 1.3901029825210571, -0.4832497239112854, -0.1682073026895523, -0.4418419301509857, -0.42933526635169983, 0.25958049297332764, -0.11168643832206726, -0.5010866522789001, 0.23185697197914124, -0.8244019150733948, 0.34223586320877075, 1.3415110111236572, 0.46515029668807983, 0.09163007140159607, 0.4313755929470062, 1.0710242986679077, 0.37209534645080566, -0.06563212722539902, -0.8248697519302368, -1.5104340314865112, 2.148487091064453, -1.4649077653884888, 1.9140273332595825, 0.7344158887863159, -0.08665817975997925, -1.7458672523498535, -1.8180798292160034, 1.3430205583572388, 1.1806728839874268, 2.3205549716949463, 0.44222599267959595, 0.3676210045814514, -0.8063517212867737, -0.6335575580596924, 0.455923467874527, -0.9802677035331726, -0.7742217779159546, 0.11861225962638855, 2.310767889022827, 1.697287678718567, -0.5441779494285583, -0.18721772730350494, -0.9577784538269043, 1.2628631591796875, -0.16923192143440247, 0.1617123931646347, 1.9804701805114746, -0.3705258071422577, -1.1533775329589844, 1.3546284437179565, -2.3739430904388428, 0.053468868136405945, 1.9673285484313965, 0.3454045057296753, 0.04827958717942238, -1.39274263381958, -0.6416791081428528, -0.22404855489730835, -0.41301122307777405, -1.3233492374420166, 0.570427417755127, -0.3073780834674835, -0.7622753381729126, -1.5711513757705688, 0.09570499509572983, -1.1777431964874268, -1.6515623331069946, 0.2505667507648468, 1.8386940956115723, 2.150827646255493, -0.765199601650238, 1.4431296586990356, -0.26424041390419006, 0.18112966418266296, 1.2238305807113647, 1.1591919660568237, 3.1765778064727783, 1.8752095699310303, -1.3605881929397583, 0.5708718299865723, -0.11797205358743668, -0.5418944358825684, 1.151336908340454, -1.1305700540542603, 1.295538067817688, -0.1397276073694229, -1.291983962059021, -1.3073666095733643, 1.0354667901992798, 0.44398030638694763, 0.11204413324594498, -0.45885559916496277, 1.191092610359192, -0.005476630292832851, 1.3379433155059814, 0.5045334696769714, -0.34177374839782715, 0.5202853083610535, -0.4825004041194916, -0.6212131381034851, 1.5758507251739502, 0.1851779818534851, -1.4579188823699951, -2.2130959033966064, -0.31654828786849976, -0.7050285339355469, 0.04767782986164093, -0.5521685481071472, -0.873175859451294, 1.5425909757614136, 0.4032311737537384, -1.350500226020813, -0.31209567189216614, -0.4064828157424927, -0.6354478001594543, 2.6195101737976074, -1.4088680744171143, -0.23209752142429352, -0.9028300642967224, -0.6345743536949158, 1.5481500625610352, -1.1693428754806519, -0.18939834833145142, -0.9959797263145447, -0.6640623807907104, -1.3867263793945312, -0.5833008885383606, -0.0017564743757247925, -1.0260220766067505, 0.7543861269950867, 0.14706285297870636, -1.0816808938980103, -0.2623913884162903, -0.8287916779518127, 0.8799889087677002, -0.15199828147888184, 0.3635466396808624, 1.9068183898925781, 0.4203389883041382, -0.47170838713645935, 0.6620643734931946, 1.1503074169158936, 0.7170351147651672, -0.6311652064323425, 0.15370656549930573, -0.701847493648529, 0.3227704167366028, -1.2305463552474976, 0.3552559018135071, -2.9090986251831055, 0.6884343028068542, -0.04433770477771759, -0.1087583601474762, -0.0008488954044878483, -1.2762391567230225, 0.9966094493865967, 2.566793203353882, -1.1722073554992676, 0.45261189341545105, 0.3425954580307007, 1.2400933504104614, -1.59457266330719, 0.3324313163757324, -0.43644896149635315, 2.175936460494995, 0.2333594113588333, 1.2021046876907349, -0.45000627636909485, -2.260653495788574, 0.5589176416397095, -1.326076626777649, -1.1843634843826294, 0.8443363308906555, -0.892798125743866, 0.059058379381895065, -1.415639877319336, -0.1883084774017334, -0.8292693495750427, -1.2341002225875854, 0.7583193778991699, 0.10034354776144028, 0.475826233625412, -0.6269901394844055, 0.3816165626049042, -2.182954788208008, -1.2800503969192505, -0.18535888195037842, -0.9601855874061584, 0.43859049677848816, -0.3577750027179718, 0.7066174745559692, -0.188597172498703, 0.04551849141716957, 0.43813756108283997, 1.3679829835891724, 3.3350603580474854, 0.2236727774143219, 0.4028242528438568, -0.12377692013978958, -0.9649159908294678, 1.4846491813659668, 0.9276660680770874, -0.1786901205778122, -0.5127533674240112, -1.0423678159713745, 1.2927302122116089, 1.8984954357147217, 1.0134199857711792, 0.018857639282941818, -0.7213464975357056, -0.6766224503517151, 0.06119391694664955, 0.23680810630321503, 0.4671168029308319, 0.8275057077407837, -0.034789249300956726, 0.21843695640563965, 1.4480011463165283, 1.242296576499939, -0.45559361577033997, 0.37255752086639404, -0.7507827877998352, -0.6038380265235901, 0.489861398935318, 0.3082967698574066, -0.010931488126516342, 0.3921091556549072, -0.957041323184967, -0.2943056523799896, -0.3752416968345642, -0.9717925786972046, -0.6816573739051819, -0.38736405968666077, -0.41505149006843567, 1.5639768838882446, 0.11702309548854828, -0.5054166913032532, -0.04703354835510254, -0.8214917182922363, -0.19425511360168457, -1.1288117170333862, 0.298305481672287, -0.08820119500160217, -0.18406251072883606, -0.11885838210582733, 1.746315598487854, -0.943422794342041, -2.0733680725097656, 0.28386828303337097, 0.2696433365345001, -0.3158276379108429, 0.15614981949329376, 1.6230268478393555, 0.4503464102745056, 1.498577356338501, 1.31720769405365, 0.932966947555542, -0.6048747897148132, -1.3572893142700195, 0.8099963665008545, 0.8417574763298035, -1.4443860054016113, 0.8440355658531189, -0.07232396304607391, -0.5722644329071045, 0.6774600148200989, 1.259269118309021, 0.38278746604919434, -1.9652009010314941, 0.8928689956665039, -0.9600550532341003, 0.6778693199157715, 0.6253530979156494, 0.7693262696266174, 0.15808485448360443, 0.8303965330123901, -1.271176815032959, -1.1887924671173096, -0.7394225597381592, -0.6171844601631165, 1.9581438302993774, -0.1991855502128601, 0.6185278296470642, -0.17685392498970032, -1.289742112159729, -0.09520210325717926, 0.6659363508224487, 0.2168659120798111, -0.3756285011768341, 0.87774258852005, -0.7442437410354614, -1.1926789283752441, -1.436497688293457, -0.29061710834503174, -1.0882717370986938, -0.8414267897605896, 1.0787094831466675, 0.8616907596588135, 0.17955952882766724, 1.8453677892684937, 0.4948306977748871, 0.3283206820487976, -2.6329290866851807, 0.9147624373435974, 0.24261020123958588, -0.1489325761795044, 0.8645232319831848, 0.2631230652332306, 0.9904103875160217, 0.05231809243559837, 0.4756793975830078, -2.3480257987976074, 2.314242124557495, -0.25239744782447815, 0.7488013505935669, 0.009673516266047955, -0.1863805204629898, 1.1476516723632812, 0.642805814743042, 0.6197525858879089, -1.113241195678711, 0.7128241658210754, -0.5333802700042725, 1.1160846948623657, 1.0136357545852661, -0.7843554615974426, -0.060231275856494904, 1.3516924381256104, 0.5232058167457581, -0.48302727937698364, -0.9025577902793884, -0.9169864654541016, 0.8923028111457825, 1.7974289655685425, -0.0515652596950531, -0.027557626366615295, 0.8637799024581909, 0.7468311190605164, -1.2517350912094116, 0.15602095425128937, -0.7289222478866577, -0.8336647748947144, 1.6101723909378052, 2.046267032623291, -0.09468231350183487, -0.09747396409511566, -0.6475166082382202, -1.255062222480774, 0.8253543376922607, 0.024903390556573868, 0.2706086337566376, 0.6324722766876221, -0.6938336491584778, 1.1211315393447876, 1.0071736574172974, 0.848936140537262, 0.2100282460451126, 0.2232063263654709, 0.33975648880004883, -0.16423870623111725, -1.081804871559143, -0.16947810351848602, -1.0111467838287354, -2.4310386180877686, 0.504572868347168, -0.29317259788513184, -1.4279980659484863, 0.07959119230508804, -0.9762687683105469, 0.8931229710578918, -0.5396900773048401, -1.0606192350387573, -1.6321401596069336, 0.28171274065971375, -0.04957292228937149, 0.965193510055542, -1.6651859283447266, -0.017007924616336823, 1.2254031896591187, 0.8851826190948486, -0.5766899585723877, 0.9954795837402344, 0.26610180735588074, 0.9270796179771423, 0.8897110819816589, -0.47158023715019226, 0.5292007327079773, 0.20039275288581848, -1.3874183893203735, 0.3530838191509247, 1.083484411239624, 0.1859530210494995, 1.4573854207992554, -0.4845637083053589, 0.03382182493805885, 0.45746564865112305, -0.5747977495193481, -0.38780131936073303, -0.4817349314689636, 0.687908947467804, 0.05504966899752617, -0.7820515632629395, 0.06184693053364754, -0.08399830758571625, -0.3197006583213806, 0.2098219096660614, -1.4667751789093018, -0.22089725732803345, -0.504952073097229, -0.5957497358322144, -1.2558751106262207, -0.0925038754940033, 1.5543180704116821, -0.8353334069252014, -0.20009006559848785, 0.52398282289505, 0.4470052123069763, 0.4472372531890869, 0.7273990511894226, -0.6293760538101196, -0.2832408547401428, -0.29900819063186646, -0.3230608105659485, 0.22152894735336304, 1.3195133209228516, -0.20632469654083252, -0.9329168200492859, 0.7378639578819275, -0.2611907720565796, 0.010342086665332317, 1.897203803062439, 0.10451764613389969, -0.8167101144790649, 0.29706594347953796, -0.6804959177970886, 1.8985583782196045, 1.8168630599975586, 1.3937894105911255, -0.14938117563724518, -1.0195976495742798, 0.6270259618759155, -0.3258247673511505, -0.27097728848457336, 1.0036654472351074, 0.4642392098903656, -0.1514323502779007, -1.4637539386749268, 0.6830809116363525, 1.2186044454574585, -0.8272916674613953, -0.7048417329788208, 0.040328528732061386, -0.835583508014679, 1.0729690790176392, 0.7033124566078186, 0.4020957946777344, 0.18165920674800873, 1.5706042051315308, 0.7433386445045471, -0.4670298099517822, 0.46711796522140503, 0.5635249018669128, -0.17272944748401642, -2.1583168506622314, -1.1331450939178467, 0.29708021879196167, -0.4704850912094116, -1.528056263923645, 1.3743896484375, -1.0943925380706787, -0.9239992499351501, 0.5349911451339722, -0.11391856521368027, 1.4321250915527344, 0.29749244451522827, 1.6699118614196777, 2.1665658950805664, 0.953480064868927, 0.3280491828918457, 1.4686185121536255, -0.10734224319458008, -0.32556089758872986, 1.7362931966781616, -0.42616763710975647, 0.3984023630619049, 1.1720207929611206, -0.4165445566177368, -0.9536272883415222, -0.780674397945404, -1.1037375926971436, -0.6909838318824768, 1.0798566341400146, 0.11462544649839401, -1.0456593036651611, 0.2697581946849823, 1.5558403730392456, 0.052587512880563736, -0.2604859173297882, 0.6036184430122375, 0.5394181609153748, -0.7048616409301758, -0.07676135003566742, -0.9442800879478455, 0.5341816544532776, -0.35970500111579895, -0.3952959477901459, 0.3496350347995758, 0.289318710565567, 1.2683426141738892, 0.04893235117197037, 0.10960274934768677, 1.2433198690414429, -1.4051381349563599, 1.4110469818115234, -0.5943530797958374, 0.24151162803173065, -2.398838520050049, 1.4596179723739624, -0.6866418719291687, 2.0448527336120605, -2.650614023208618, 0.48637858033180237, -0.620099663734436, -0.5261186361312866, 0.40583521127700806, -0.40820610523223877, 0.1328141689300537, -0.16246142983436584, -1.0614715814590454, -0.1467660516500473, -0.6981483697891235, 0.6207467317581177, 1.0937834978103638, 1.310239553451538, -1.070265531539917, -0.3810322880744934, -1.6559900045394897, -0.24426577985286713, -0.5343614816665649, 0.2810782492160797, -1.983041524887085, -0.23027272522449493, -1.9921036958694458, -2.470560312271118, -1.2747905254364014, -0.7847941517829895, 1.187646746635437, 0.15681351721286774, -0.8715195655822754, 1.156686782836914, -0.4128982424736023, -1.8967835903167725, 1.127597689628601, -2.0978665351867676 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
I don't know all the details, but generally I'd be in favor of unifying the metadata formats into YAML inside .md (and so deprecating the dataset_infos.json) (Ultimately the CI can run on "HuggingFace Actions" instead of on GitHub)
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
38
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw I don't know all the details, but generally I'd be in favor of unifying the metadata formats into YAML inside .md (and so deprecating the dataset_infos.json) (Ultimately the CI can run on "HuggingFace Actions" instead of on GitHub)
[ -1.2781999111175537, -0.9763925671577454, -0.778746485710144, 1.4709585905075073, -0.1746172457933426, -1.1972224712371826, 0.08088921010494232, -1.1052055358886719, 1.7087538242340088, -0.8721699714660645, 0.24050650000572205, -1.7305991649627686, 0.028295446187257767, -0.5960445404052734, -0.7575978636741638, -0.9559383988380432, -0.5046812295913696, -0.83762127161026, 1.0536253452301025, 2.4854233264923096, 1.174115538597107, -1.354185700416565, 2.7430508136749268, 0.6216951012611389, -0.20422089099884033, -1.0340811014175415, 0.5515493154525757, -0.05344376713037491, -1.2264761924743652, -0.4340474307537079, -0.9563305974006653, -0.08124177157878876, -0.573921263217926, -0.486152321100235, 0.05347035080194473, 0.29018065333366394, -0.2833738327026367, -0.3278328776359558, -0.5680199265480042, -0.7378270626068115, 0.5308584570884705, -0.26365047693252563, 0.945689857006073, -0.3433751165866852, 1.9454288482666016, -0.5308979153633118, 0.3449568450450897, 0.6975510120391846, 1.3535254001617432, 0.26093995571136475, 0.0072771599516272545, 0.26375699043273926, 0.3573620915412903, 0.0024275844916701317, 0.4750770032405853, 1.1330453157424927, 0.6426690816879272, 0.5199872255325317, 0.7101330757141113, -2.196364402770996, 1.3285354375839233, -1.0977578163146973, 0.33720487356185913, 1.4324744939804077, -1.0141419172286987, 0.4200415313243866, -1.7215741872787476, -0.06445685029029846, 0.5758751630783081, -2.2906267642974854, 0.08182904869318008, -1.1911042928695679, -0.4406631886959076, 1.0161851644515991, 0.2921888530254364, -1.2022327184677124, 0.24952854216098785, -0.4194656312465668, 1.1129047870635986, 0.5411916971206665, 1.2099952697753906, -1.7061011791229248, 0.0434182733297348, -0.3006975054740906, 0.15321558713912964, -1.409802794456482, -1.5740447044372559, 0.5029062628746033, 0.6547032594680786, 0.5531826019287109, -0.043572746217250824, 0.9638032913208008, -1.0052051544189453, 0.8199217319488525, -0.8889623284339905, -1.563014030456543, -1.4357281923294067, -2.3039309978485107, -2.401005506515503, 0.7987061738967896, -0.5054409503936768, -0.5800575017929077, 2.068814277648926, -1.0802967548370361, -1.7802484035491943, 1.186578631401062, 0.29293617606163025, -0.0030024112202227116, 2.4669671058654785, 0.14594678580760956, -0.6480438709259033, 0.48518863320350647, -0.6651766300201416, 0.825072705745697, -0.32321158051490784, 1.323444128036499, 0.5391964316368103, -1.0897212028503418, 1.5472800731658936, -0.41108912229537964, 0.5563807487487793, -0.509764552116394, -0.5642969012260437, -0.9048548340797424, 0.28802064061164856, 1.7812318801879883, -0.2655790448188782, 1.5875164270401, -0.3896139860153198, -1.5871493816375732, -1.6919373273849487, 0.8784403204917908, 0.49113884568214417, -0.8130263090133667, 0.11288002878427505, -0.3925817608833313, 0.09735017269849777, 0.06698832660913467, 1.115360140800476, 1.2044241428375244, 0.6856666803359985, -0.2571260631084442, -0.8443889617919922, 0.17966516315937042, -0.047824203968048096, -0.6910969614982605, -1.7771923542022705, -0.3418939411640167, 0.11803339421749115, 0.659963846206665, -1.1108416318893433, 1.5797744989395142, 0.9149384498596191, 1.7889776229858398, 1.0802417993545532, -0.32059207558631897, 1.5209033489227295, -0.01764141395688057, 1.772019624710083, -0.526993989944458, 0.694855809211731, -0.3854616582393646, -1.2126425504684448, 0.7797867655754089, -0.3526427149772644, -2.0752294063568115, -0.8319863677024841, -0.804213285446167, -0.18492981791496277, -0.7471439242362976, 0.9713048934936523, -0.28680673241615295, -1.3827897310256958, 0.28364497423171997, -0.580802321434021, 0.19235749542713165, -1.2186118364334106, 0.4252372086048126, 0.7399839162826538, -0.7045249938964844, -0.0559825524687767, -0.201027974486351, -1.2563707828521729, -0.3947230279445648, 0.18301990628242493, 1.8969378471374512, -0.881262481212616, 0.8946720957756042, 0.9959839582443237, -0.7880325317382812, 0.03547807037830353, 0.27534714341163635, -0.27505239844322205, 0.9325802326202393, -0.9608496427536011, -0.4314720332622528, 1.1809850931167603, -0.22082528471946716, -0.6074141263961792, 1.4213132858276367, 0.6894547343254089, -0.9999601244926453, -0.17517657577991486, -0.17352522909641266, -0.9327995181083679, -0.08733763545751572, -1.5533826351165771, -0.20480775833129883, 0.3303830027580261, -1.4972695112228394, -0.4639016389846802, -0.23277336359024048, 1.3301604986190796, -0.19047915935516357, 1.4451323747634888, -0.48152369260787964, -0.17520663142204285, -0.4088122248649597, -0.4107264280319214, 0.2635266184806824, -0.1492525339126587, -0.5606719255447388, 0.21374768018722534, -0.7837618589401245, 0.34662601351737976, 1.3558779954910278, 0.512164831161499, 0.08769425749778748, 0.4896490275859833, 1.097055435180664, 0.38081926107406616, -0.058359645307064056, -0.8266255259513855, -1.5398197174072266, 2.1405160427093506, -1.432615041732788, 1.942362904548645, 0.7002698183059692, -0.1315251886844635, -1.727577567100525, -1.8662759065628052, 1.317542552947998, 1.17268967628479, 2.2954471111297607, 0.4347812533378601, 0.3815430700778961, -0.8285759687423706, -0.6318849921226501, 0.36914390325546265, -1.0134904384613037, -0.7577193379402161, 0.09567932784557343, 2.325843334197998, 1.6983011960983276, -0.5718156695365906, -0.15771499276161194, -1.0163155794143677, 1.3007169961929321, -0.1261579692363739, 0.17344601452350616, 1.9783324003219604, -0.3399529755115509, -1.1695111989974976, 1.3111200332641602, -2.3605358600616455, 0.03100760653614998, 1.9655786752700806, 0.3356204926967621, 0.0022698743268847466, -1.4010506868362427, -0.6113399267196655, -0.24047762155532837, -0.43190285563468933, -1.3351402282714844, 0.5829378366470337, -0.2633848190307617, -0.7636156678199768, -1.5063036680221558, 0.046212486922740936, -1.1653087139129639, -1.6515032052993774, 0.2910734713077545, 1.8437544107437134, 2.116391658782959, -0.7511181831359863, 1.4925832748413086, -0.22308024764060974, 0.20507842302322388, 1.2523235082626343, 1.2410409450531006, 3.1456820964813232, 1.8635151386260986, -1.3598434925079346, 0.577662467956543, -0.13032527267932892, -0.5075040459632874, 1.1427805423736572, -1.1520471572875977, 1.3118246793746948, -0.09188121557235718, -1.2548266649246216, -1.2963556051254272, 1.0222814083099365, 0.4501386284828186, 0.11472032219171524, -0.4416060745716095, 1.2146165370941162, 0.0008486965671181679, 1.3536802530288696, 0.5356420874595642, -0.3415909707546234, 0.5065755248069763, -0.47542914748191833, -0.6309086084365845, 1.5982893705368042, 0.17089496552944183, -1.4814536571502686, -2.25319242477417, -0.2820092737674713, -0.7031296491622925, 0.0037031611427664757, -0.4990920424461365, -0.8941090703010559, 1.613024115562439, 0.3972473740577698, -1.3406333923339844, -0.34655505418777466, -0.37584614753723145, -0.6266402006149292, 2.680968999862671, -1.4663091897964478, -0.21430636942386627, -0.8996258974075317, -0.6269871592521667, 1.564038872718811, -1.1787728071212769, -0.20067110657691956, -0.9901571273803711, -0.6850571036338806, -1.4021207094192505, -0.6192302107810974, -0.02961444854736328, -1.0804994106292725, 0.7469890713691711, 0.15633605420589447, -1.075280785560608, -0.29462379217147827, -0.822414755821228, 0.8958052396774292, -0.14334608614444733, 0.37696194648742676, 1.9234447479248047, 0.41159069538116455, -0.4465053379535675, 0.6920462846755981, 1.1636806726455688, 0.743608832359314, -0.613243043422699, 0.11985571682453156, -0.7004770636558533, 0.3269812762737274, -1.2430658340454102, 0.3225950598716736, -2.921729564666748, 0.6890695691108704, -0.09447624534368515, -0.11104246228933334, -0.0634080320596695, -1.2526267766952515, 1.037681221961975, 2.562087297439575, -1.1660526990890503, 0.40344545245170593, 0.3328247368335724, 1.2439006567001343, -1.6163779497146606, 0.32768896222114563, -0.443621963262558, 2.1974198818206787, 0.22072553634643555, 1.1907484531402588, -0.4478647708892822, -2.2181549072265625, 0.6063602566719055, -1.2963536977767944, -1.200075387954712, 0.8599565625190735, -0.9009983539581299, 0.047076549381017685, -1.4105056524276733, -0.18612390756607056, -0.8396620750427246, -1.227645993232727, 0.7577425241470337, 0.11212711781263351, 0.45746636390686035, -0.5822911858558655, 0.3713148534297943, -2.2206509113311768, -1.3068190813064575, -0.2454344630241394, -0.9694456458091736, 0.4416959583759308, -0.3809676468372345, 0.7164735794067383, -0.20260007679462433, 0.053938619792461395, 0.41363218426704407, 1.397271752357483, 3.300459861755371, 0.24473391473293304, 0.4122770428657532, -0.13203366100788116, -0.9731152057647705, 1.4961711168289185, 0.9115726351737976, -0.19076696038246155, -0.5255467891693115, -0.988670289516449, 1.314181923866272, 1.8853540420532227, 0.9775301218032837, 0.06397359073162079, -0.7210912704467773, -0.6428998708724976, 0.031891148537397385, 0.24931670725345612, 0.5038101077079773, 0.8525111675262451, -0.10458932816982269, 0.1875540316104889, 1.4500792026519775, 1.3019728660583496, -0.4216821491718292, 0.3994556963443756, -0.7427825331687927, -0.5772842764854431, 0.5101286768913269, 0.26156604290008545, -0.059669021517038345, 0.39695897698402405, -0.9597581624984741, -0.313417911529541, -0.32628333568573, -0.9523912668228149, -0.7120938301086426, -0.38462528586387634, -0.4157221019268036, 1.5627083778381348, 0.13501635193824768, -0.5039512515068054, -0.023979388177394867, -0.8338761925697327, -0.19443237781524658, -1.133739709854126, 0.3082509934902191, -0.10996393859386444, -0.16520991921424866, -0.16776305437088013, 1.7442834377288818, -0.9807344079017639, -2.095489025115967, 0.28899580240249634, 0.28485730290412903, -0.30249714851379395, 0.1596301794052124, 1.6125167608261108, 0.478660523891449, 1.5401928424835205, 1.3089278936386108, 0.9312053322792053, -0.6283445358276367, -1.3364112377166748, 0.7765225768089294, 0.8626257181167603, -1.4667608737945557, 0.8425525426864624, -0.1153457909822464, -0.5795193910598755, 0.6639958024024963, 1.2523791790008545, 0.34702590107917786, -1.960912823677063, 0.9204279184341431, -0.9613121151924133, 0.6730052828788757, 0.6199782490730286, 0.7535060048103333, 0.18068110942840576, 0.8531228303909302, -1.2490503787994385, -1.206518530845642, -0.7594432830810547, -0.616291344165802, 1.9291636943817139, -0.1776825487613678, 0.625056266784668, -0.10007427632808685, -1.2837296724319458, -0.09646659344434738, 0.6541980504989624, 0.2148163616657257, -0.3314504325389862, 0.9221463203430176, -0.7270142436027527, -1.156400442123413, -1.4194579124450684, -0.31251752376556396, -1.10090970993042, -0.8926883935928345, 1.0767607688903809, 0.904098391532898, 0.15734341740608215, 1.8481366634368896, 0.48018160462379456, 0.3275037109851837, -2.6304211616516113, 0.925927460193634, 0.24681992828845978, -0.16205769777297974, 0.865455687046051, 0.23905132710933685, 1.0220823287963867, 0.058681588619947433, 0.4763074517250061, -2.3706657886505127, 2.2838692665100098, -0.23406249284744263, 0.7472490668296814, -0.011964245699346066, -0.17093904316425323, 1.1276718378067017, 0.6039690971374512, 0.6109796762466431, -1.115083932876587, 0.7122739553451538, -0.5606431365013123, 1.1549463272094727, 1.0237728357315063, -0.7744182348251343, -0.08288859575986862, 1.3527779579162598, 0.5247357487678528, -0.4491221010684967, -0.9096111059188843, -0.8776693344116211, 0.9045543670654297, 1.791993260383606, -0.021485641598701477, 0.012831621803343296, 0.8453683257102966, 0.7369071841239929, -1.292378544807434, 0.15761014819145203, -0.7446290850639343, -0.7972567081451416, 1.6005915403366089, 2.04337739944458, -0.10529858618974686, -0.12051206827163696, -0.7154724597930908, -1.2387399673461914, 0.8162940740585327, 0.016660071909427643, 0.28250226378440857, 0.6351079940795898, -0.7294381260871887, 1.0772908926010132, 1.0412169694900513, 0.8851685523986816, 0.20106397569179535, 0.2849825620651245, 0.33952584862709045, -0.11737716197967529, -1.087145447731018, -0.13898049294948578, -1.0377833843231201, -2.4427664279937744, 0.4707808196544647, -0.34194082021713257, -1.3928470611572266, 0.09115923196077347, -0.9814021587371826, 0.8687605261802673, -0.5289955735206604, -1.088307499885559, -1.6211466789245605, 0.2492840737104416, -0.019530313089489937, 0.928352952003479, -1.5877277851104736, 0.008959800936281681, 1.2669227123260498, 0.8732973337173462, -0.5651040077209473, 1.0151262283325195, 0.30762141942977905, 0.972912609577179, 0.858035147190094, -0.45639705657958984, 0.5360526442527771, 0.13173650205135345, -1.3601491451263428, 0.3932577967643738, 1.0918502807617188, 0.18997418880462646, 1.5027015209197998, -0.5154175162315369, -0.017532944679260254, 0.4626902639865875, -0.6133273243904114, -0.42059972882270813, -0.49064892530441284, 0.6721866726875305, 0.04697621986269951, -0.7927788496017456, 0.05371657758951187, -0.1340138018131256, -0.3499932885169983, 0.19598767161369324, -1.4693986177444458, -0.1956349015235901, -0.5161824822425842, -0.5972890853881836, -1.3020329475402832, -0.0413946807384491, 1.4720346927642822, -0.840058445930481, -0.17164990305900574, 0.4917644262313843, 0.443108469247818, 0.4924659729003906, 0.7453805208206177, -0.645401120185852, -0.3269304037094116, -0.3298057019710541, -0.259615957736969, 0.24471797049045563, 1.2888431549072266, -0.2249899059534073, -0.9547937512397766, 0.744221568107605, -0.2648094594478607, -0.021418549120426178, 1.9106473922729492, 0.12607960402965546, -0.7869325876235962, 0.3123774826526642, -0.6921016573905945, 1.9194616079330444, 1.7810121774673462, 1.4133405685424805, -0.15518870949745178, -1.0437943935394287, 0.604051947593689, -0.32438066601753235, -0.2841356694698334, 0.9468548893928528, 0.5059924721717834, -0.14410531520843506, -1.4904494285583496, 0.6960013508796692, 1.2137856483459473, -0.8500562310218811, -0.654378354549408, 0.05861205235123634, -0.8315062522888184, 1.069788932800293, 0.7151409983634949, 0.3702572286128998, 0.18054096400737762, 1.5749142169952393, 0.7535557746887207, -0.48190468549728394, 0.4085872769355774, 0.6222863793373108, -0.1712910532951355, -2.0921716690063477, -1.0971097946166992, 0.3409743905067444, -0.44844508171081543, -1.5364563465118408, 1.3590288162231445, -1.0894473791122437, -0.9069179892539978, 0.5204271078109741, -0.05695072561502457, 1.4456968307495117, 0.32297927141189575, 1.6355563402175903, 2.116786241531372, 0.947857141494751, 0.32195550203323364, 1.454459547996521, -0.09724090993404388, -0.34469443559646606, 1.7338991165161133, -0.4311029314994812, 0.4073123633861542, 1.1448326110839844, -0.4286307394504547, -0.9462576508522034, -0.7963026762008667, -1.1464296579360962, -0.6502889394760132, 1.0988333225250244, 0.12762974202632904, -1.0416682958602905, 0.21181190013885498, 1.5326484441757202, 0.07389259338378906, -0.29969343543052673, 0.6129046678543091, 0.5163201689720154, -0.6810603141784668, -0.08548163622617722, -0.927427351474762, 0.5526043176651001, -0.3338072896003723, -0.42625027894973755, 0.3159462809562683, 0.2903859615325928, 1.2759313583374023, 0.0200628824532032, 0.13263840973377228, 1.2416818141937256, -1.417545199394226, 1.398551106452942, -0.6478148102760315, 0.23248741030693054, -2.380061626434326, 1.4467788934707642, -0.72651207447052, 2.0385828018188477, -2.625086784362793, 0.47169962525367737, -0.5986137986183167, -0.48100683093070984, 0.3789782226085663, -0.4160619378089905, 0.1260635256767273, -0.1429539918899536, -1.049885869026184, -0.15530851483345032, -0.6842394471168518, 0.6000300049781799, 1.0800034999847412, 1.283591628074646, -1.0748155117034912, -0.3844749629497528, -1.6397311687469482, -0.23497214913368225, -0.556769847869873, 0.27972134947776794, -1.98700749874115, -0.22760945558547974, -2.005908966064453, -2.4416825771331787, -1.3144872188568115, -0.7451735734939575, 1.1704237461090088, 0.15414386987686157, -0.8717721700668335, 1.180861473083496, -0.3939337134361267, -1.8768633604049683, 1.1128907203674316, -2.1189117431640625 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
The dataset_infos.json file currently has these useful infos for each dataset configuration, that I think can be moved to the dataset tags: - Size of the dataset in MB: download size, arrow file size, and total size (sum of download + arrow) - Size of each split in MB and number of examples. Again this can be moved to the dataset tags - Feature type of each column - supported task templates (it defines what columns correspond to the features and labels for example) But it also has this, which I'm not sure if it should be in the tags or not: - Checksums of the downloaded files for integrity verifications So ultimately this file could probably be deprecated in favor of having the infos in the tags. > Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). To get the exact number of examples and size in MB of the dataset, one needs to download and generate it completely. IMO these infos are very important when someone considers using a dataset. Though using streaming we could do some extrapolation to have approximate values instead. For the integrity verifications we also need the number of examples and the checksums of the downloaded files, so it requires the dataset to be fully downloaded once. This can be optional though. > IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work) I agree with this. Usually if a dataset works in streaming mode, then it works in non-streaming mode (the other way around is not true though). > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. Yes indeed, or at least make sure that it was tested on the true data.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
355
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw The dataset_infos.json file currently has these useful infos for each dataset configuration, that I think can be moved to the dataset tags: - Size of the dataset in MB: download size, arrow file size, and total size (sum of download + arrow) - Size of each split in MB and number of examples. Again this can be moved to the dataset tags - Feature type of each column - supported task templates (it defines what columns correspond to the features and labels for example) But it also has this, which I'm not sure if it should be in the tags or not: - Checksums of the downloaded files for integrity verifications So ultimately this file could probably be deprecated in favor of having the infos in the tags. > Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). To get the exact number of examples and size in MB of the dataset, one needs to download and generate it completely. IMO these infos are very important when someone considers using a dataset. Though using streaming we could do some extrapolation to have approximate values instead. For the integrity verifications we also need the number of examples and the checksums of the downloaded files, so it requires the dataset to be fully downloaded once. This can be optional though. > IMO, the data streaming test is good enough of a test that the dataset works correctly (assuming that we can more or less ensure that if streaming works then the non-streaming case will also work) I agree with this. Usually if a dataset works in streaming mode, then it works in non-streaming mode (the other way around is not true though). > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. Yes indeed, or at least make sure that it was tested on the true data.
[ -1.3097004890441895, -0.9892491102218628, -0.7338967323303223, 1.4519188404083252, -0.1934651881456375, -1.2380692958831787, 0.0602150484919548, -1.137770175933838, 1.745235800743103, -0.870313286781311, 0.19923712313175201, -1.7514677047729492, 0.07610135525465012, -0.58882737159729, -0.7801754474639893, -0.9301126599311829, -0.5044031739234924, -0.8956306576728821, 1.0253199338912964, 2.4729461669921875, 1.206952691078186, -1.4178546667099, 2.7282886505126953, 0.634736955165863, -0.21021685004234314, -0.9843900799751282, 0.5217314958572388, -0.04358672723174095, -1.306204915046692, -0.40800169110298157, -0.9506050944328308, -0.04842029884457588, -0.5544229745864868, -0.476725310087204, 0.0468609444797039, 0.37512481212615967, -0.2444126158952713, -0.35943588614463806, -0.5289614796638489, -0.7226687669754028, 0.5131666660308838, -0.2366226613521576, 0.9623098969459534, -0.34109798073768616, 1.9078350067138672, -0.5097848176956177, 0.3082296550273895, 0.7265766859054565, 1.3509601354599, 0.24849775433540344, -0.005584667436778545, 0.23035882413387299, 0.3194252550601959, -0.01590132713317871, 0.45483776926994324, 1.1497324705123901, 0.7007689476013184, 0.5185011625289917, 0.7238844633102417, -2.2015228271484375, 1.3953814506530762, -1.0460187196731567, 0.38681238889694214, 1.4549872875213623, -1.0288629531860352, 0.4070185422897339, -1.773789405822754, -0.09644081443548203, 0.5611171722412109, -2.2608678340911865, 0.12651441991329193, -1.1526187658309937, -0.4203808605670929, 1.0111507177352905, 0.2696416974067688, -1.180618166923523, 0.2540448307991028, -0.47926267981529236, 1.1199376583099365, 0.5134598016738892, 1.2557041645050049, -1.6820354461669922, 0.07610373944044113, -0.27782970666885376, 0.1302492916584015, -1.3694617748260498, -1.5896040201187134, 0.5249859690666199, 0.6723184585571289, 0.5439466834068298, -0.08179439604282379, 0.9465270638465881, -1.024396538734436, 0.8203824758529663, -0.9020155072212219, -1.5839089155197144, -1.3723567724227905, -2.278242588043213, -2.386796236038208, 0.7817346453666687, -0.4882182478904724, -0.5692028403282166, 2.089041233062744, -1.0521738529205322, -1.7465981245040894, 1.160111665725708, 0.25478309392929077, -0.02692504972219467, 2.4261293411254883, 0.16432034969329834, -0.6524694561958313, 0.47852909564971924, -0.6386247277259827, 0.8312937021255493, -0.2959919273853302, 1.291452169418335, 0.4670760929584503, -1.120707392692566, 1.5066983699798584, -0.4167463183403015, 0.5462654829025269, -0.5365004539489746, -0.569464921951294, -0.8276399374008179, 0.2953689396381378, 1.7488563060760498, -0.2760631740093231, 1.562035083770752, -0.3559059798717499, -1.637182354927063, -1.661217212677002, 0.8456989526748657, 0.5183110237121582, -0.7745645642280579, 0.08672546595335007, -0.42654988169670105, 0.09057814627885818, 0.07085040956735611, 1.0724557638168335, 1.2108078002929688, 0.7222088575363159, -0.26596999168395996, -0.8460590839385986, 0.17789001762866974, -0.092269167304039, -0.6828259825706482, -1.8127249479293823, -0.24719594419002533, 0.08778764307498932, 0.6513279676437378, -1.1118428707122803, 1.6251182556152344, 0.9479305744171143, 1.8222801685333252, 1.0720608234405518, -0.30746275186538696, 1.5094068050384521, 0.005122682079672813, 1.7584233283996582, -0.47226670384407043, 0.671670138835907, -0.37838709354400635, -1.2185713052749634, 0.8254697322845459, -0.38323524594306946, -2.0641722679138184, -0.7926228642463684, -0.776044487953186, -0.20516860485076904, -0.7703771591186523, 0.9763745069503784, -0.22142000496387482, -1.4025025367736816, 0.2859404683113098, -0.5447056293487549, 0.20573416352272034, -1.1802644729614258, 0.3838455080986023, 0.7180734872817993, -0.7529857158660889, -0.020958496257662773, -0.24790123105049133, -1.2731258869171143, -0.4574519693851471, 0.21108321845531464, 1.8552329540252686, -0.8509681224822998, 0.9304360151290894, 1.0285652875900269, -0.7579231858253479, 0.038669414818286896, 0.2745872735977173, -0.2639106810092926, 0.900229275226593, -0.990169882774353, -0.43002912402153015, 1.1359935998916626, -0.24828560650348663, -0.5716519951820374, 1.4530138969421387, 0.5912347435951233, -1.0342693328857422, -0.15679101645946503, -0.1520748883485794, -0.955190122127533, -0.090926393866539, -1.5411856174468994, -0.20893651247024536, 0.37744882702827454, -1.5391771793365479, -0.4650639593601227, -0.21361896395683289, 1.300683856010437, -0.1564633548259735, 1.4758753776550293, -0.4621303677558899, -0.17257378995418549, -0.35495492815971375, -0.37684014439582825, 0.2193431705236435, -0.10999821126461029, -0.5551573038101196, 0.23079939186573029, -0.8254418969154358, 0.3442342281341553, 1.4058239459991455, 0.47154319286346436, 0.026324372738599777, 0.508601725101471, 1.1019563674926758, 0.4035177528858185, -0.06164975464344025, -0.7753087878227234, -1.5505188703536987, 2.1087546348571777, -1.5071920156478882, 1.9307317733764648, 0.7502866983413696, -0.06798786669969559, -1.770786166191101, -1.8487884998321533, 1.371443748474121, 1.1675662994384766, 2.3411507606506348, 0.5096419453620911, 0.40017929673194885, -0.7855434417724609, -0.6036285758018494, 0.4294787049293518, -0.9984263777732849, -0.7375695705413818, 0.14100880920886993, 2.3226113319396973, 1.7181341648101807, -0.5324841737747192, -0.16026367247104645, -0.9586747884750366, 1.2950427532196045, -0.12263975292444229, 0.16053669154644012, 2.0112314224243164, -0.33535945415496826, -1.1295322179794312, 1.3707756996154785, -2.3468141555786133, 0.09327545762062073, 1.953133225440979, 0.30795371532440186, -0.0022524860687553883, -1.415799617767334, -0.6017924547195435, -0.23052579164505005, -0.4415583312511444, -1.3310531377792358, 0.6045958995819092, -0.2926144301891327, -0.7328316569328308, -1.502240777015686, 0.09848901629447937, -1.1637235879898071, -1.6548312902450562, 0.30218586325645447, 1.8669297695159912, 2.16231632232666, -0.7332718372344971, 1.506162166595459, -0.2772562503814697, 0.21577227115631104, 1.241497278213501, 1.198554515838623, 3.175901412963867, 1.826359748840332, -1.4154971837997437, 0.5821845531463623, -0.07406152784824371, -0.46196454763412476, 1.1131682395935059, -1.1201597452163696, 1.2928870916366577, -0.12608182430267334, -1.3299871683120728, -1.285001516342163, 1.0476961135864258, 0.47077909111976624, 0.14752458035945892, -0.46060022711753845, 1.1855547428131104, -0.01019288506358862, 1.3062022924423218, 0.5392141938209534, -0.3267638087272644, 0.49369779229164124, -0.49169158935546875, -0.5911265015602112, 1.6245832443237305, 0.20174521207809448, -1.4103472232818604, -2.227985382080078, -0.2849421799182892, -0.7376928329467773, 0.03289705514907837, -0.5595066547393799, -0.8864154815673828, 1.6020190715789795, 0.42085596919059753, -1.3199182748794556, -0.3219511806964874, -0.3746262490749359, -0.6465790867805481, 2.569915294647217, -1.421378254890442, -0.16133268177509308, -0.8684571981430054, -0.6118003129959106, 1.5436861515045166, -1.1825813055038452, -0.2461429387331009, -0.9815971851348877, -0.6888401508331299, -1.3892102241516113, -0.6277393102645874, 0.032387636601924896, -1.0252678394317627, 0.7953689098358154, 0.12254218757152557, -1.0818513631820679, -0.2646004855632782, -0.8283281922340393, 0.9103749990463257, -0.15727460384368896, 0.33063775300979614, 1.9113965034484863, 0.40609923005104065, -0.47866368293762207, 0.6859951019287109, 1.142100214958191, 0.7442904114723206, -0.621577799320221, 0.06432624161243439, -0.7415615320205688, 0.3545032739639282, -1.259709358215332, 0.3344239294528961, -2.9233553409576416, 0.6861113905906677, -0.04764178767800331, -0.05034647509455681, -0.021146457642316818, -1.2465261220932007, 1.0050110816955566, 2.5899407863616943, -1.1699855327606201, 0.4082322418689728, 0.3407810926437378, 1.233816146850586, -1.5839811563491821, 0.2684391438961029, -0.42972052097320557, 2.161532402038574, 0.13964085280895233, 1.2307137250900269, -0.48938238620758057, -2.250068187713623, 0.5978855490684509, -1.3017600774765015, -1.1708656549453735, 0.8743780851364136, -0.8429730534553528, 0.015020479448139668, -1.3884214162826538, -0.19876939058303833, -0.8480030298233032, -1.2288981676101685, 0.7433963418006897, 0.11617188155651093, 0.4504322111606598, -0.6204610466957092, 0.3274826109409332, -2.200601816177368, -1.2616742849349976, -0.2327117919921875, -0.9447718858718872, 0.41321712732315063, -0.3695618808269501, 0.7119869589805603, -0.18013983964920044, 0.051422879099845886, 0.3814659118652344, 1.332589864730835, 3.3061230182647705, 0.22221378982067108, 0.36441144347190857, -0.17522789537906647, -0.9832369089126587, 1.4750339984893799, 0.9340949654579163, -0.21177031099796295, -0.5631445050239563, -1.0504047870635986, 1.2794572114944458, 1.9047209024429321, 0.9994273781776428, 0.07393424957990646, -0.7862818837165833, -0.6597816348075867, 0.02421979233622551, 0.22296231985092163, 0.5814273357391357, 0.8253639340400696, -0.08415436744689941, 0.15299347043037415, 1.4726216793060303, 1.230645775794983, -0.4015614092350006, 0.42579391598701477, -0.7166473865509033, -0.550126850605011, 0.49853041768074036, 0.306341290473938, -0.004269062075763941, 0.3861931264400482, -1.0061681270599365, -0.2709297239780426, -0.35551023483276367, -1.0200313329696655, -0.6799516081809998, -0.34610486030578613, -0.4058922231197357, 1.5676753520965576, 0.14616258442401886, -0.5114179253578186, -0.05067216232419014, -0.8213511109352112, -0.23402710258960724, -1.1085243225097656, 0.34864142537117004, -0.13312314450740814, -0.13307829201221466, -0.17570430040359497, 1.7674301862716675, -0.9693999886512756, -2.114500045776367, 0.2771355211734772, 0.24465051293373108, -0.3218025863170624, 0.1301589161157608, 1.6055631637573242, 0.5186148881912231, 1.4746135473251343, 1.3564919233322144, 0.916212797164917, -0.6285748481750488, -1.3547061681747437, 0.7438468337059021, 0.904035210609436, -1.486208200454712, 0.8230395913124084, -0.10989715158939362, -0.6119956374168396, 0.7090794444084167, 1.3207162618637085, 0.34118038415908813, -2.064018487930298, 0.9328396916389465, -0.9992237687110901, 0.6282885074615479, 0.6531344652175903, 0.7805015444755554, 0.14919784665107727, 0.8416984677314758, -1.3005623817443848, -1.162125587463379, -0.7205522060394287, -0.667288064956665, 1.929814100265503, -0.18726478517055511, 0.601118266582489, -0.12336820363998413, -1.3181191682815552, -0.10067269206047058, 0.6483199000358582, 0.20983512699604034, -0.30345427989959717, 0.8776557445526123, -0.7529262900352478, -1.1366496086120605, -1.4203681945800781, -0.37188804149627686, -1.0740694999694824, -0.8123419284820557, 1.0633995532989502, 0.8510550856590271, 0.23205795884132385, 1.8601871728897095, 0.5304578542709351, 0.29016414284706116, -2.6027040481567383, 0.8400191068649292, 0.32660335302352905, -0.1688905507326126, 0.8818143010139465, 0.2656872570514679, 1.0110305547714233, 0.07588779926300049, 0.49161794781684875, -2.3948333263397217, 2.301306962966919, -0.24816106259822845, 0.7548611760139465, 0.0008834246546030045, -0.18417689204216003, 1.1320767402648926, 0.6429011225700378, 0.6020362973213196, -1.103081226348877, 0.7613531947135925, -0.5601199269294739, 1.157995343208313, 0.9839861392974854, -0.7950600981712341, -0.10742649435997009, 1.306127667427063, 0.474813312292099, -0.42567721009254456, -0.8842002153396606, -0.904089093208313, 0.9101495742797852, 1.8309639692306519, -0.04774946719408035, 0.07152442634105682, 0.8347144722938538, 0.7362284064292908, -1.2574472427368164, 0.08177409321069717, -0.7285258173942566, -0.8203073740005493, 1.5887924432754517, 1.9895429611206055, -0.10292455554008484, -0.11366339772939682, -0.7125645875930786, -1.2586004734039307, 0.845649778842926, 0.010262074880301952, 0.20775288343429565, 0.6612860560417175, -0.7526529431343079, 1.0643969774246216, 1.053505778312683, 0.8669580817222595, 0.1699032038450241, 0.25849953293800354, 0.32156771421432495, -0.14004729688167572, -1.0587362051010132, -0.16016986966133118, -0.9815933704376221, -2.4272725582122803, 0.44550856947898865, -0.24807633459568024, -1.4664716720581055, 0.03277689963579178, -0.920253336429596, 0.8945366144180298, -0.5502251386642456, -1.143088698387146, -1.6287224292755127, 0.2932467758655548, -0.04907265678048134, 0.9490743279457092, -1.5780049562454224, -0.030950795859098434, 1.2054376602172852, 0.9033081531524658, -0.5738970637321472, 1.0168137550354004, 0.2488584816455841, 0.9463731050491333, 0.8696007132530212, -0.46136194467544556, 0.46384045481681824, 0.16410312056541443, -1.3339488506317139, 0.3512478768825531, 1.10630464553833, 0.11900633573532104, 1.4737749099731445, -0.5246978998184204, -0.036336496472358704, 0.4369209408760071, -0.5604311227798462, -0.3961731493473053, -0.49837809801101685, 0.6621119379997253, 0.00008615385740995407, -0.7888030409812927, 0.042637456208467484, -0.12066490203142166, -0.35423997044563293, 0.22680161893367767, -1.4848239421844482, -0.19668464362621307, -0.5085610747337341, -0.542857825756073, -1.2950767278671265, -0.02589815855026245, 1.497775673866272, -0.8221303224563599, -0.2525724470615387, 0.49249574542045593, 0.44753456115722656, 0.48197388648986816, 0.6882843971252441, -0.6606218218803406, -0.3209109902381897, -0.2868020236492157, -0.2953665554523468, 0.25224706530570984, 1.3375717401504517, -0.13606423139572144, -0.9165037274360657, 0.7735768556594849, -0.2660398781299591, 0.033445581793785095, 1.9341541528701782, 0.13643057644367218, -0.7834371328353882, 0.3426568806171417, -0.7172048687934875, 1.9361461400985718, 1.8045308589935303, 1.3930178880691528, -0.15099379420280457, -1.059343695640564, 0.6047824025154114, -0.303743839263916, -0.3281656801700592, 0.958579957485199, 0.5009843111038208, -0.1815071702003479, -1.4927055835723877, 0.7042112946510315, 1.21457040309906, -0.8219475150108337, -0.6755387783050537, 0.0773078054189682, -0.8143218159675598, 1.076965570449829, 0.7052115797996521, 0.38659220933914185, 0.15541979670524597, 1.5845143795013428, 0.7335414886474609, -0.4798564910888672, 0.4525870382785797, 0.5727735161781311, -0.10958289355039597, -2.1083953380584717, -1.1496672630310059, 0.3014300763607025, -0.43478500843048096, -1.530846118927002, 1.349273681640625, -1.1115212440490723, -0.9454358220100403, 0.4815686047077179, -0.061424288898706436, 1.3929288387298584, 0.3353268504142761, 1.633723497390747, 2.140413522720337, 0.9962002635002136, 0.33900052309036255, 1.4530774354934692, -0.10598386824131012, -0.34514591097831726, 1.768871784210205, -0.4667443633079529, 0.4279007911682129, 1.1973155736923218, -0.456399530172348, -0.9902040362358093, -0.7470650672912598, -1.1292144060134888, -0.6549187898635864, 1.0306382179260254, 0.11293962597846985, -1.0516568422317505, 0.23788310587406158, 1.5238513946533203, 0.11352379620075226, -0.3027976155281067, 0.5957785844802856, 0.5058950185775757, -0.7610152363777161, -0.10982374846935272, -0.8887228965759277, 0.536469578742981, -0.38558921217918396, -0.4446682333946228, 0.32918596267700195, 0.3624543845653534, 1.2875498533248901, 0.00647568516433239, 0.09959312528371811, 1.2475080490112305, -1.3868190050125122, 1.38991117477417, -0.6570632457733154, 0.21202096343040466, -2.391315221786499, 1.4657028913497925, -0.7191849946975708, 2.0332584381103516, -2.6725406646728516, 0.43933388590812683, -0.6004401445388794, -0.4943203926086426, 0.3698906898498535, -0.365426242351532, 0.14712657034397125, -0.14221452176570892, -1.029835820198059, -0.1724783480167389, -0.6409269571304321, 0.6113117933273315, 1.1362696886062622, 1.3427942991256714, -1.1412136554718018, -0.35385358333587646, -1.6396068334579468, -0.27004197239875793, -0.5896016955375671, 0.2887451648712158, -1.9612102508544922, -0.22471095621585846, -1.9490526914596558, -2.4741599559783936, -1.3246684074401855, -0.809059739112854, 1.1803219318389893, 0.17382073402404785, -0.9272531270980835, 1.2042666673660278, -0.42372679710388184, -1.8593236207962036, 1.1006169319152832, -2.1174588203430176 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
(note that if we wanted to display sizes, etc we could also pretty easily parse the `dataset_infos.json` on the hub side)
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
21
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw (note that if we wanted to display sizes, etc we could also pretty easily parse the `dataset_infos.json` on the hub side)
[ -1.2723824977874756, -0.9674921631813049, -0.7758853435516357, 1.4599859714508057, -0.16595137119293213, -1.2058769464492798, 0.08846084773540497, -1.1295064687728882, 1.7222219705581665, -0.8769605755805969, 0.24742956459522247, -1.7263263463974, 0.029492411762475967, -0.6068910956382751, -0.7820848822593689, -0.9280667304992676, -0.48442959785461426, -0.8290700316429138, 1.0600425004959106, 2.439448595046997, 1.1914002895355225, -1.3469775915145874, 2.707364797592163, 0.6322261691093445, -0.2363569140434265, -1.0165640115737915, 0.5389005541801453, -0.07934318482875824, -1.2340538501739502, -0.4402734935283661, -0.9372845888137817, -0.102301687002182, -0.6148253679275513, -0.49298617243766785, 0.10089758038520813, 0.2838488817214966, -0.28688889741897583, -0.28678300976753235, -0.5558499097824097, -0.7451018691062927, 0.524097204208374, -0.2457474321126938, 0.962323009967804, -0.35194799304008484, 1.9162787199020386, -0.5823280215263367, 0.3549817204475403, 0.6874942779541016, 1.364100694656372, 0.24564163386821747, -0.017072588205337524, 0.2586106061935425, 0.3423108160495758, 0.024636659771203995, 0.44295135140419006, 1.104770302772522, 0.6365615129470825, 0.5484067797660828, 0.7329775094985962, -2.2268800735473633, 1.3330684900283813, -1.1040236949920654, 0.32595282793045044, 1.4356005191802979, -0.996845006942749, 0.3898560404777527, -1.7463011741638184, -0.08287157863378525, 0.5548872947692871, -2.320969581604004, 0.12097325176000595, -1.2023288011550903, -0.4640404284000397, 0.9973776340484619, 0.31724995374679565, -1.192010521888733, 0.25524553656578064, -0.4187873899936676, 1.1108633279800415, 0.5541509985923767, 1.224478840827942, -1.7385529279708862, 0.022277679294347763, -0.32530686259269714, 0.1619815230369568, -1.4430243968963623, -1.556546688079834, 0.52463698387146, 0.6353853344917297, 0.5327095985412598, -0.050208114087581635, 0.974819004535675, -1.0332494974136353, 0.8062695264816284, -0.9233656525611877, -1.561922311782837, -1.4402775764465332, -2.254253387451172, -2.4295105934143066, 0.7726156711578369, -0.5218502283096313, -0.5526189208030701, 2.0521562099456787, -1.0682655572891235, -1.7712846994400024, 1.1860085725784302, 0.2910133898258209, 0.008751067332923412, 2.4526309967041016, 0.17212048172950745, -0.5970956683158875, 0.47885268926620483, -0.6665210127830505, 0.823214590549469, -0.28768134117126465, 1.2936228513717651, 0.522507905960083, -1.0854249000549316, 1.5373014211654663, -0.40323540568351746, 0.545819878578186, -0.5218917727470398, -0.5613117814064026, -0.9162863492965698, 0.22803042829036713, 1.7793444395065308, -0.24297377467155457, 1.5763574838638306, -0.3825155794620514, -1.5853886604309082, -1.6530685424804688, 0.8882622122764587, 0.5194512009620667, -0.8303348422050476, 0.11118844151496887, -0.3999686539173126, 0.12087876349687576, 0.07053744792938232, 1.133708119392395, 1.1810693740844727, 0.6987838745117188, -0.289950966835022, -0.8503989577293396, 0.1659189760684967, -0.04158240929245949, -0.7235470414161682, -1.8295953273773193, -0.3422126770019531, 0.09158845990896225, 0.6759963631629944, -1.1217633485794067, 1.6049343347549438, 0.9233952760696411, 1.8148802518844604, 1.0314995050430298, -0.30942243337631226, 1.4737043380737305, -0.04928406700491905, 1.7712242603302002, -0.5172455906867981, 0.7205408215522766, -0.4339173138141632, -1.1768096685409546, 0.8248940110206604, -0.3353208899497986, -2.0905845165252686, -0.8409472107887268, -0.805439293384552, -0.21449396014213562, -0.7442917227745056, 0.9929943084716797, -0.26540058851242065, -1.379609227180481, 0.2764644920825958, -0.5663803815841675, 0.20389001071453094, -1.232043981552124, 0.43221092224121094, 0.7004595994949341, -0.72430020570755, -0.06091724708676338, -0.1961393505334854, -1.2667062282562256, -0.40228167176246643, 0.15757474303245544, 1.9012495279312134, -0.8811248540878296, 0.8919034004211426, 0.9669947624206543, -0.7884684205055237, 0.03725840151309967, 0.2828960418701172, -0.2633088529109955, 0.8960386514663696, -0.950911283493042, -0.4160744845867157, 1.175223469734192, -0.19613830745220184, -0.6542597413063049, 1.431473731994629, 0.6605913043022156, -0.9938974380493164, -0.1539299488067627, -0.1986454576253891, -0.9402015805244446, -0.09585654735565186, -1.552972435951233, -0.21522536873817444, 0.3425464332103729, -1.484052062034607, -0.439024418592453, -0.22757159173488617, 1.3459727764129639, -0.21600984036922455, 1.4571515321731567, -0.48253756761550903, -0.20780529081821442, -0.390639066696167, -0.41408729553222656, 0.2058195024728775, -0.09063589572906494, -0.5739672780036926, 0.24611590802669525, -0.7873877286911011, 0.3607552945613861, 1.3494956493377686, 0.4876388609409332, 0.096837617456913, 0.4728313684463501, 1.0557942390441895, 0.376615047454834, -0.06959464401006699, -0.8448343873023987, -1.5683976411819458, 2.146505832672119, -1.447371482849121, 1.9352922439575195, 0.7002324461936951, -0.10189846903085709, -1.7397788763046265, -1.8506779670715332, 1.329498529434204, 1.190852403640747, 2.297612428665161, 0.43545666337013245, 0.3741808831691742, -0.7994101047515869, -0.6176061034202576, 0.4249172806739807, -0.9976690411567688, -0.7464756369590759, 0.06992674618959427, 2.3411505222320557, 1.6780742406845093, -0.5636254549026489, -0.17577797174453735, -0.9949896931648254, 1.246634602546692, -0.12650012969970703, 0.23559258878231049, 1.9810609817504883, -0.4100715219974518, -1.1938141584396362, 1.3139052391052246, -2.352707862854004, 0.045609936118125916, 1.9664884805679321, 0.3222608268260956, 0.0608203150331974, -1.3834120035171509, -0.6147918105125427, -0.2468942105770111, -0.41341328620910645, -1.3250422477722168, 0.5705139636993408, -0.24486234784126282, -0.7776565551757812, -1.491615891456604, 0.05761488154530525, -1.1955677270889282, -1.6774364709854126, 0.306941956281662, 1.8893733024597168, 2.1343109607696533, -0.7248051166534424, 1.458367109298706, -0.27735424041748047, 0.19024741649627686, 1.2508974075317383, 1.21366548538208, 3.1400773525238037, 1.8517647981643677, -1.4072294235229492, 0.6180122494697571, -0.1014537438750267, -0.5305193066596985, 1.1798627376556396, -1.1117593050003052, 1.2793813943862915, -0.10524112731218338, -1.2494926452636719, -1.3168668746948242, 1.0313289165496826, 0.41409653425216675, 0.12126629799604416, -0.4621448218822479, 1.2239527702331543, -0.017969587817788124, 1.3335450887680054, 0.5532064437866211, -0.33241501450538635, 0.5133791565895081, -0.49202942848205566, -0.5990081429481506, 1.6124745607376099, 0.20179623365402222, -1.4664801359176636, -2.295546054840088, -0.27200794219970703, -0.7199870347976685, 0.032943036407232285, -0.5175440907478333, -0.8790623545646667, 1.6468493938446045, 0.39236944913864136, -1.370379090309143, -0.3263382613658905, -0.35293516516685486, -0.6121914386749268, 2.666685104370117, -1.4597841501235962, -0.21670041978359222, -0.9138025641441345, -0.6454505324363708, 1.549468755722046, -1.1832311153411865, -0.22278067469596863, -0.9821354150772095, -0.6868426203727722, -1.4221301078796387, -0.6017733216285706, 0.006379609927535057, -1.0775889158248901, 0.7679886221885681, 0.12567390501499176, -1.0732795000076294, -0.31431877613067627, -0.813646674156189, 0.9140599966049194, -0.12806059420108795, 0.3895135223865509, 1.910338282585144, 0.43908458948135376, -0.45911604166030884, 0.6661725044250488, 1.1696041822433472, 0.7658296227455139, -0.6501519083976746, 0.10807709395885468, -0.709689736366272, 0.3374467194080353, -1.2470430135726929, 0.34200188517570496, -2.894753932952881, 0.6751126050949097, -0.12495449185371399, -0.13689333200454712, -0.04349932447075844, -1.2654778957366943, 1.0145549774169922, 2.5646677017211914, -1.1656497716903687, 0.38431939482688904, 0.3011803925037384, 1.2325689792633057, -1.599837303161621, 0.3116457164287567, -0.43115511536598206, 2.2009036540985107, 0.25341078639030457, 1.199136734008789, -0.4677044153213501, -2.190521240234375, 0.5915254950523376, -1.289411187171936, -1.2035002708435059, 0.8883017897605896, -0.8745848536491394, 0.09269420057535172, -1.4326845407485962, -0.15297645330429077, -0.8472996950149536, -1.256602168083191, 0.740466296672821, 0.13974693417549133, 0.4644787609577179, -0.6083989143371582, 0.3581508696079254, -2.188941240310669, -1.264150619506836, -0.219679057598114, -0.9649276733398438, 0.44049644470214844, -0.34517136216163635, 0.7323534488677979, -0.19614756107330322, 0.06307577341794968, 0.44073039293289185, 1.381929874420166, 3.3128204345703125, 0.2505863904953003, 0.39198800921440125, -0.17403095960617065, -0.9360544085502625, 1.5028482675552368, 0.9602494239807129, -0.161152184009552, -0.5088727474212646, -0.9894490242004395, 1.3105639219284058, 1.9100594520568848, 0.9771777391433716, 0.030512459576129913, -0.7173739671707153, -0.6274706125259399, 0.047686509788036346, 0.24895276129245758, 0.49157899618148804, 0.8352442383766174, -0.0370294488966465, 0.19726651906967163, 1.439892053604126, 1.2984249591827393, -0.41563305258750916, 0.41777485609054565, -0.739824652671814, -0.5869297981262207, 0.5149588584899902, 0.31058448553085327, -0.0269169919192791, 0.4134863018989563, -0.9418399930000305, -0.3249647617340088, -0.35849878191947937, -0.9472416639328003, -0.7271782755851746, -0.4041788876056671, -0.4557383060455322, 1.5805914402008057, 0.07898308336734772, -0.46382245421409607, -0.03414449095726013, -0.8293448686599731, -0.19059735536575317, -1.1384773254394531, 0.3353676199913025, -0.10846664011478424, -0.16973792016506195, -0.14357547461986542, 1.7292886972427368, -0.9622092247009277, -2.070556879043579, 0.30160659551620483, 0.26690131425857544, -0.3428049087524414, 0.16222476959228516, 1.621841549873352, 0.47703373432159424, 1.5149693489074707, 1.3197280168533325, 0.9097498655319214, -0.6335164308547974, -1.3242541551589966, 0.7843273878097534, 0.8412693738937378, -1.4999011754989624, 0.8358625173568726, -0.10428908467292786, -0.5839440226554871, 0.6617423295974731, 1.2313717603683472, 0.3522496223449707, -1.9680426120758057, 0.8906631469726562, -0.9708465933799744, 0.6376296877861023, 0.6539841294288635, 0.7631672024726868, 0.224738210439682, 0.8595424890518188, -1.2643725872039795, -1.180831789970398, -0.7665866017341614, -0.6247179508209229, 1.9332377910614014, -0.20383594930171967, 0.5831401348114014, -0.09693101048469543, -1.2554113864898682, -0.10245895385742188, 0.6642566323280334, 0.2036728858947754, -0.3473181128501892, 0.887297511100769, -0.696571946144104, -1.12208092212677, -1.3833931684494019, -0.3267735540866852, -1.10676109790802, -0.8600438237190247, 1.1085211038589478, 0.9131583571434021, 0.1794339269399643, 1.8565551042556763, 0.4695722460746765, 0.33740413188934326, -2.637025833129883, 0.9138692021369934, 0.2289990782737732, -0.17260991036891937, 0.867021918296814, 0.2706310749053955, 1.0206100940704346, 0.05446208640933037, 0.5231108665466309, -2.3763022422790527, 2.2894625663757324, -0.25038009881973267, 0.687421977519989, 0.0190872959792614, -0.16453559696674347, 1.1636919975280762, 0.6218612194061279, 0.5677983164787292, -1.100490689277649, 0.669905960559845, -0.5823661088943481, 1.1311994791030884, 1.0158377885818481, -0.8090154528617859, -0.07605676352977753, 1.334392786026001, 0.5071784257888794, -0.47309035062789917, -0.8633304238319397, -0.8743703365325928, 0.8918126225471497, 1.7650758028030396, -0.032767780125141144, -0.027589362114667892, 0.8905124664306641, 0.754731297492981, -1.2687857151031494, 0.17208066582679749, -0.7249347567558289, -0.8335364460945129, 1.5751043558120728, 2.0181450843811035, -0.10434488207101822, -0.0693148747086525, -0.7019821405410767, -1.2624198198318481, 0.8684842586517334, 0.0032259542495012283, 0.27351605892181396, 0.6228246092796326, -0.751182496547699, 1.082190990447998, 1.0456452369689941, 0.8989332914352417, 0.16871312260627747, 0.3010839521884918, 0.3174475431442261, -0.12573741376399994, -1.0716261863708496, -0.14241620898246765, -1.0191274881362915, -2.4539761543273926, 0.5263686180114746, -0.3527659773826599, -1.402044653892517, 0.09420856088399887, -1.017659306526184, 0.8701524138450623, -0.5617247223854065, -1.0528059005737305, -1.657903790473938, 0.26641136407852173, -0.03925270959734917, 0.941482663154602, -1.6159744262695312, 0.04229716211557388, 1.2498549222946167, 0.8534271717071533, -0.5463064312934875, 1.0437816381454468, 0.2987024486064911, 0.9454752802848816, 0.8674877882003784, -0.44203442335128784, 0.5434205532073975, 0.18514271080493927, -1.3382517099380493, 0.3591630756855011, 1.0628942251205444, 0.20758278667926788, 1.4894111156463623, -0.5039023756980896, 0.023089881986379623, 0.47973892092704773, -0.6019428968429565, -0.40754058957099915, -0.5103698372840881, 0.6991135478019714, 0.10130514949560165, -0.8039572834968567, 0.04625353589653969, -0.12861458957195282, -0.38066792488098145, 0.20155933499336243, -1.437817096710205, -0.17647431790828705, -0.5224465131759644, -0.5962585806846619, -1.2725858688354492, -0.04086115583777428, 1.4760240316390991, -0.8121606707572937, -0.1823323667049408, 0.4800177216529846, 0.4449883997440338, 0.4680686593055725, 0.7652641534805298, -0.6655786633491516, -0.33037659525871277, -0.32781916856765747, -0.2619459927082062, 0.27559834718704224, 1.3164265155792236, -0.19393804669380188, -0.9894957542419434, 0.7392510771751404, -0.2616056501865387, 0.003903474658727646, 1.9307177066802979, 0.11872666329145432, -0.7816165089607239, 0.326696515083313, -0.7062655687332153, 1.9172968864440918, 1.8311424255371094, 1.3854466676712036, -0.13935652375221252, -1.0493136644363403, 0.6161741018295288, -0.3150498867034912, -0.2600603401660919, 0.9825677275657654, 0.5035024285316467, -0.1589391678571701, -1.4581979513168335, 0.682712733745575, 1.262130618095398, -0.845832347869873, -0.7036692500114441, 0.07472094893455505, -0.8342185616493225, 1.0760767459869385, 0.7194668650627136, 0.34857413172721863, 0.18040436506271362, 1.5391480922698975, 0.7265082001686096, -0.49848252534866333, 0.3994016647338867, 0.5908504128456116, -0.1502171903848648, -2.090587854385376, -1.1034948825836182, 0.3587208092212677, -0.4322189688682556, -1.5185399055480957, 1.393079161643982, -1.093192458152771, -0.9083753228187561, 0.5222043991088867, -0.06685300916433334, 1.4383471012115479, 0.31030377745628357, 1.6678141355514526, 2.1074087619781494, 0.9559798240661621, 0.34687820076942444, 1.493209719657898, -0.10249543190002441, -0.3470636308193207, 1.7117935419082642, -0.4255732297897339, 0.4050302505493164, 1.1312224864959717, -0.41866737604141235, -0.954257071018219, -0.7917207479476929, -1.1370141506195068, -0.6646832227706909, 1.0934951305389404, 0.1597224771976471, -1.0455807447433472, 0.20010192692279816, 1.5509562492370605, 0.08436573296785355, -0.2733730375766754, 0.6093229651451111, 0.4872867465019226, -0.7136465311050415, -0.09047840535640717, -0.9164997339248657, 0.5410287976264954, -0.3404957354068756, -0.4153441786766052, 0.30460405349731445, 0.29515162110328674, 1.2530052661895752, 0.054759468883275986, 0.11413675546646118, 1.2311458587646484, -1.4003456830978394, 1.4106152057647705, -0.5898246765136719, 0.24299363791942596, -2.4037396907806396, 1.4587854146957397, -0.7229003310203552, 2.0254640579223633, -2.6283204555511475, 0.4509347975254059, -0.5988085269927979, -0.5203914046287537, 0.3857666552066803, -0.3833741843700409, 0.1565651297569275, -0.1806240677833557, -1.0436785221099854, -0.14919759333133698, -0.7092885971069336, 0.6021769046783447, 1.071014642715454, 1.3068335056304932, -1.1156492233276367, -0.4089314341545105, -1.652156114578247, -0.24868349730968475, -0.5448793172836304, 0.2882375121116638, -2.0114247798919678, -0.19211073219776154, -2.010021686553955, -2.4497175216674805, -1.3483998775482178, -0.7623096704483032, 1.1892436742782593, 0.15614715218544006, -0.8353139162063599, 1.1326236724853516, -0.3812585473060608, -1.872374176979065, 1.1076428890228271, -2.1035430431365967 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
I agree that we can move the relevant parts of `dataset_infos.json` to the YAML tags. > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. < > > Yes indeed, or at least make sure that it was tested on the true data. I like the idea of testing streaming and falling back to the dummy data test if streaming does not work. Generating dummy data can be very tedious, so this would be a nice incentive for the contributors to make their datasets streamable.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
112
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw I agree that we can move the relevant parts of `dataset_infos.json` to the YAML tags. > On the other hand, it seems like not all datasets have streaming enabled yet and for those datasets (if they are used a lot), I think it would be nice to continue testing some dummy data. < > > Yes indeed, or at least make sure that it was tested on the true data. I like the idea of testing streaming and falling back to the dummy data test if streaming does not work. Generating dummy data can be very tedious, so this would be a nice incentive for the contributors to make their datasets streamable.
[ -1.2683141231536865, -1.0086708068847656, -0.7531804442405701, 1.421647310256958, -0.15599998831748962, -1.193798303604126, 0.06370405852794647, -1.1348488330841064, 1.7584435939788818, -0.8204204440116882, 0.23104117810726166, -1.732461929321289, 0.05607115849852562, -0.5694364309310913, -0.7517920732498169, -0.9580960869789124, -0.4898090958595276, -0.9031080603599548, 1.067274808883667, 2.4948387145996094, 1.1576125621795654, -1.400958776473999, 2.6911814212799072, 0.6305808424949646, -0.19522202014923096, -1.0193432569503784, 0.529673159122467, -0.046575166285037994, -1.301738977432251, -0.43900611996650696, -0.9194856286048889, -0.08202888071537018, -0.6312416195869446, -0.4945487976074219, 0.05903906002640724, 0.33104798197746277, -0.2771979868412018, -0.32298240065574646, -0.580338180065155, -0.7294620871543884, 0.5427868962287903, -0.2755495011806488, 0.96494460105896, -0.32703685760498047, 1.9068262577056885, -0.5429874658584595, 0.38789427280426025, 0.7073668241500854, 1.3313480615615845, 0.26285189390182495, -0.021295787766575813, 0.22969788312911987, 0.36884763836860657, -0.03791395574808121, 0.4367760717868805, 1.0616384744644165, 0.6745867133140564, 0.5754878520965576, 0.7126506567001343, -2.1921558380126953, 1.3939200639724731, -1.09526526927948, 0.34888899326324463, 1.4354736804962158, -1.014084815979004, 0.39688432216644287, -1.7804616689682007, -0.10154978930950165, 0.5592765212059021, -2.253810167312622, 0.06681613624095917, -1.2484866380691528, -0.44852471351623535, 1.018686056137085, 0.3129540979862213, -1.1757351160049438, 0.27674901485443115, -0.4104301631450653, 1.130913257598877, 0.5434172749519348, 1.2262006998062134, -1.772810697555542, 0.03287870064377785, -0.28333160281181335, 0.18627578020095825, -1.3865450620651245, -1.592538833618164, 0.5157399773597717, 0.6414956450462341, 0.5397453904151917, -0.04708181321620941, 0.9690743088722229, -0.9798123836517334, 0.7483732104301453, -0.9265813827514648, -1.5582969188690186, -1.3829840421676636, -2.277169704437256, -2.4189860820770264, 0.79755038022995, -0.5080162286758423, -0.5420596599578857, 2.0978126525878906, -1.1190547943115234, -1.7720973491668701, 1.131983757019043, 0.27529987692832947, -0.04404387250542641, 2.46018123626709, 0.19472479820251465, -0.6194958686828613, 0.446056991815567, -0.6630817651748657, 0.8376978635787964, -0.2604495584964752, 1.3125474452972412, 0.5048666596412659, -1.0951920747756958, 1.5462408065795898, -0.38585785031318665, 0.5673742890357971, -0.5525976419448853, -0.5706999897956848, -0.8706273436546326, 0.2841531038284302, 1.804192304611206, -0.27165624499320984, 1.595655918121338, -0.4132457673549652, -1.6244522333145142, -1.669530987739563, 0.9207252860069275, 0.4866526424884796, -0.8402101993560791, 0.09756699204444885, -0.3674171268939972, 0.10299037396907806, 0.1045614629983902, 1.135522484779358, 1.2051678895950317, 0.7046566009521484, -0.319902241230011, -0.8999009728431702, 0.16515661776065826, -0.04238760843873024, -0.700748860836029, -1.7648202180862427, -0.35065361857414246, 0.09176026284694672, 0.6759623885154724, -1.1233937740325928, 1.5948641300201416, 0.9239609837532043, 1.7925034761428833, 1.0529394149780273, -0.34726089239120483, 1.4598273038864136, 0.020961126312613487, 1.7961152791976929, -0.5258369445800781, 0.7004579901695251, -0.40223267674446106, -1.1934287548065186, 0.8247193098068237, -0.32890045642852783, -2.0433435440063477, -0.7913402318954468, -0.7951154708862305, -0.1979638934135437, -0.7513744235038757, 0.935188353061676, -0.23307347297668457, -1.3697335720062256, 0.29290771484375, -0.5789985656738281, 0.1699826568365097, -1.2187318801879883, 0.404026597738266, 0.7292770743370056, -0.7384138703346252, -0.007214203476905823, -0.23116853833198547, -1.3010749816894531, -0.4334210157394409, 0.19067251682281494, 1.855156660079956, -0.835559606552124, 0.9279614090919495, 1.018617868423462, -0.816743791103363, -0.0026364391669631004, 0.3089253604412079, -0.26225221157073975, 0.9296287894248962, -0.9879370331764221, -0.3928261697292328, 1.1019617319107056, -0.2310287207365036, -0.5977219939231873, 1.4131563901901245, 0.6267173886299133, -1.009266972541809, -0.1719595491886139, -0.1821601390838623, -0.9130141139030457, -0.07418051362037659, -1.5770896673202515, -0.2134971171617508, 0.3632861375808716, -1.5340079069137573, -0.49516990780830383, -0.20752429962158203, 1.3234765529632568, -0.17720678448677063, 1.4097650051116943, -0.43008318543434143, -0.16702036559581757, -0.43628740310668945, -0.3939191699028015, 0.2154490053653717, -0.1154288649559021, -0.5438170433044434, 0.24554985761642456, -0.7900176644325256, 0.3160367012023926, 1.3749217987060547, 0.4677724838256836, 0.052025776356458664, 0.41679105162620544, 1.080151081085205, 0.39483216404914856, -0.09765605628490448, -0.8351880311965942, -1.5040301084518433, 2.1367220878601074, -1.4434287548065186, 1.9069325923919678, 0.732170581817627, -0.1296556442975998, -1.739105224609375, -1.8536399602890015, 1.377004623413086, 1.1696586608886719, 2.3348374366760254, 0.44675928354263306, 0.39277738332748413, -0.7742988467216492, -0.5813884735107422, 0.44074347615242004, -0.9912270903587341, -0.7888757586479187, 0.13506396114826202, 2.3270766735076904, 1.6902390718460083, -0.5617802739143372, -0.18374407291412354, -0.9929375052452087, 1.266226053237915, -0.10716308653354645, 0.1595185548067093, 1.9787184000015259, -0.35675930976867676, -1.1908185482025146, 1.3341865539550781, -2.337360143661499, 0.05875987932085991, 1.9736980199813843, 0.3526484966278076, 0.06529165804386139, -1.3993767499923706, -0.6464202404022217, -0.2562922239303589, -0.4332221746444702, -1.3199437856674194, 0.5941706895828247, -0.28690531849861145, -0.738677442073822, -1.5458276271820068, 0.08601723611354828, -1.1580581665039062, -1.663473129272461, 0.24544847011566162, 1.8473323583602905, 2.1236398220062256, -0.7505762577056885, 1.4650424718856812, -0.273266464471817, 0.17001813650131226, 1.2024474143981934, 1.1595033407211304, 3.172360420227051, 1.8919659852981567, -1.3837902545928955, 0.5986955761909485, -0.08274798095226288, -0.5049636960029602, 1.1655553579330444, -1.1234009265899658, 1.2885756492614746, -0.17118406295776367, -1.2833456993103027, -1.3158854246139526, 0.9853425621986389, 0.4609958529472351, 0.09931182861328125, -0.4399765729904175, 1.225068211555481, 0.005804136395454407, 1.3488677740097046, 0.5118166208267212, -0.34513646364212036, 0.5649089217185974, -0.483727365732193, -0.5942380428314209, 1.6128346920013428, 0.19517365097999573, -1.4524086713790894, -2.2393176555633545, -0.2804301381111145, -0.7360677719116211, 0.07529668509960175, -0.543187141418457, -0.8779983520507812, 1.5889164209365845, 0.4255284368991852, -1.3838979005813599, -0.32219672203063965, -0.40565571188926697, -0.6595363616943359, 2.6304547786712646, -1.420366883277893, -0.19262480735778809, -0.9159422516822815, -0.6336633563041687, 1.5269405841827393, -1.186910629272461, -0.2355136275291443, -0.9910902976989746, -0.6559628844261169, -1.3682873249053955, -0.5776811838150024, -0.023883119225502014, -1.0386713743209839, 0.7497649788856506, 0.1557655930519104, -1.1214064359664917, -0.2583059072494507, -0.8010567426681519, 0.8374595046043396, -0.15260864794254303, 0.3522990047931671, 1.88975191116333, 0.4422594904899597, -0.4614101052284241, 0.6475837230682373, 1.1527843475341797, 0.7211133241653442, -0.6087957620620728, 0.14178387820720673, -0.7204157114028931, 0.29864540696144104, -1.1979790925979614, 0.3241368234157562, -2.9013867378234863, 0.6740427613258362, -0.07621756196022034, -0.08123821020126343, 0.013895431533455849, -1.2271689176559448, 1.020082712173462, 2.5588252544403076, -1.210493564605713, 0.45562708377838135, 0.3365153968334198, 1.1890839338302612, -1.5784111022949219, 0.3088984489440918, -0.3828071355819702, 2.1872313022613525, 0.24872621893882751, 1.1900413036346436, -0.4839833676815033, -2.227724552154541, 0.5795890092849731, -1.2848937511444092, -1.2232835292816162, 0.8322866559028625, -0.8588282465934753, -0.0027764299884438515, -1.3941069841384888, -0.15873932838439941, -0.8241793513298035, -1.2695841789245605, 0.7779589891433716, 0.10400913655757904, 0.4777120351791382, -0.5995064973831177, 0.3501238226890564, -2.2008516788482666, -1.2722361087799072, -0.24612337350845337, -0.9917585849761963, 0.4137926697731018, -0.3648259937763214, 0.7513476610183716, -0.20766063034534454, 0.05537079647183418, 0.4216551184654236, 1.3453346490859985, 3.3406434059143066, 0.25934287905693054, 0.395725280046463, -0.15624049305915833, -0.9421197772026062, 1.47978675365448, 0.9594966173171997, -0.21477533876895905, -0.5210649967193604, -1.0433176755905151, 1.2809860706329346, 1.9135990142822266, 1.003283977508545, 0.05562487617135048, -0.7307361960411072, -0.6818249821662903, 0.061072591692209244, 0.2576916217803955, 0.5032488107681274, 0.8620222806930542, -0.03508077561855316, 0.15357357263565063, 1.4709268808364868, 1.2450850009918213, -0.40485647320747375, 0.3799853026866913, -0.7227622270584106, -0.5901569724082947, 0.516893744468689, 0.2975921034812927, -0.005508597940206528, 0.3691076636314392, -0.9446110725402832, -0.28364628553390503, -0.3741300404071808, -0.9881073832511902, -0.6962074637413025, -0.35568997263908386, -0.39526358246803284, 1.5847097635269165, 0.08387269079685211, -0.5071308612823486, -0.04019303247332573, -0.8284639716148376, -0.1966879963874817, -1.1221896409988403, 0.3381212055683136, -0.08053535223007202, -0.17938579618930817, -0.11947150528430939, 1.7601219415664673, -0.9577165246009827, -2.0937392711639404, 0.31484168767929077, 0.2807084321975708, -0.3487343490123749, 0.19530543684959412, 1.6337876319885254, 0.4753754138946533, 1.4875966310501099, 1.317505121231079, 0.9300365447998047, -0.6593396663665771, -1.3509924411773682, 0.775461733341217, 0.8574917912483215, -1.4814172983169556, 0.8130252361297607, -0.06331132352352142, -0.5756221413612366, 0.660589337348938, 1.2340784072875977, 0.40500012040138245, -1.982563853263855, 0.8841573596000671, -0.9368899464607239, 0.6606274843215942, 0.6002141833305359, 0.8037970066070557, 0.16713982820510864, 0.8121316432952881, -1.2762600183486938, -1.1619473695755005, -0.7189768552780151, -0.5910847783088684, 1.9607092142105103, -0.1921544075012207, 0.6247867941856384, -0.1556360274553299, -1.2858716249465942, -0.09136658906936646, 0.6509720087051392, 0.23590560257434845, -0.3895798325538635, 0.8907017111778259, -0.6965351700782776, -1.1565932035446167, -1.390709400177002, -0.3334018886089325, -1.1118825674057007, -0.8454238772392273, 1.0795460939407349, 0.8559982776641846, 0.18069034814834595, 1.8347262144088745, 0.4905247390270233, 0.32866400480270386, -2.642031669616699, 0.9266982078552246, 0.2757681608200073, -0.16197927296161652, 0.9036179184913635, 0.3173438012599945, 0.9725887775421143, 0.025067120790481567, 0.5176432132720947, -2.3795454502105713, 2.3321714401245117, -0.25866779685020447, 0.7363812327384949, 0.0070550283417105675, -0.20030388236045837, 1.1475900411605835, 0.6498215794563293, 0.5998303294181824, -1.099509358406067, 0.721813976764679, -0.5374272465705872, 1.130986213684082, 0.9680984616279602, -0.7675146460533142, -0.07121145725250244, 1.3311588764190674, 0.5061969757080078, -0.43982619047164917, -0.8869621753692627, -0.9102827906608582, 0.9160599708557129, 1.8092260360717773, -0.06903991848230362, -0.030610594898462296, 0.8582826852798462, 0.7393704652786255, -1.276200771331787, 0.1474694311618805, -0.7275821566581726, -0.822526752948761, 1.5966492891311646, 2.0387115478515625, -0.0641440823674202, -0.14333154261112213, -0.6696218252182007, -1.2509145736694336, 0.8503005504608154, 0.026849936693906784, 0.2578635811805725, 0.6179864406585693, -0.6888944506645203, 1.1165235042572021, 1.041559100151062, 0.8716018199920654, 0.18836522102355957, 0.2610599100589752, 0.3430776596069336, -0.1493152678012848, -1.0705013275146484, -0.155170738697052, -1.0390944480895996, -2.4006338119506836, 0.5173042416572571, -0.29365411400794983, -1.416098713874817, 0.07119514048099518, -0.9846783876419067, 0.8631153106689453, -0.532414436340332, -1.1097743511199951, -1.6577303409576416, 0.25272688269615173, -0.06646397709846497, 0.9710499048233032, -1.6285427808761597, -0.020990677177906036, 1.2338318824768066, 0.8843701481819153, -0.6106936931610107, 1.0050740242004395, 0.25708723068237305, 0.939834475517273, 0.8845526576042175, -0.45351991057395935, 0.520750105381012, 0.17120201885700226, -1.3731517791748047, 0.3381807804107666, 1.0834980010986328, 0.20871993899345398, 1.4493824243545532, -0.5147567987442017, 0.016708659008145332, 0.4313332736492157, -0.553409993648529, -0.38772284984588623, -0.5154210925102234, 0.6794993877410889, 0.08099597692489624, -0.7972670793533325, 0.07551917433738708, -0.13438178598880768, -0.28663063049316406, 0.2082611322402954, -1.4617122411727905, -0.21018336713314056, -0.5284421443939209, -0.5929475426673889, -1.2668598890304565, -0.09080998599529266, 1.512649655342102, -0.829321563243866, -0.18112455308437347, 0.5049682855606079, 0.4711773693561554, 0.4578205645084381, 0.7030574083328247, -0.6257429122924805, -0.3130042552947998, -0.3061419725418091, -0.30405333638191223, 0.24678701162338257, 1.3082160949707031, -0.15621501207351685, -0.9700833559036255, 0.7642743587493896, -0.2809947431087494, 0.029477842152118683, 1.9075748920440674, 0.09184876084327698, -0.8135706186294556, 0.303813636302948, -0.6790700554847717, 1.9163011312484741, 1.840842604637146, 1.4165936708450317, -0.15486933290958405, -1.026444435119629, 0.6126919388771057, -0.28960666060447693, -0.3085536062717438, 1.0124595165252686, 0.46580368280410767, -0.18085108697414398, -1.4570574760437012, 0.6994248032569885, 1.2388453483581543, -0.8247969150543213, -0.7211886644363403, 0.06400945782661438, -0.8189874887466431, 1.0385315418243408, 0.6919645667076111, 0.3873542845249176, 0.16811828315258026, 1.5720577239990234, 0.7340723872184753, -0.48192667961120605, 0.5031991004943848, 0.5680369138717651, -0.1949504017829895, -2.1277477741241455, -1.1693811416625977, 0.33387067914009094, -0.43600553274154663, -1.515491247177124, 1.4044603109359741, -1.1269538402557373, -0.9396549463272095, 0.540218710899353, -0.10350362956523895, 1.4414933919906616, 0.2961212396621704, 1.6527196168899536, 2.155872344970703, 0.9441081285476685, 0.34822335839271545, 1.4835481643676758, -0.12829218804836273, -0.3537607192993164, 1.7459732294082642, -0.44459208846092224, 0.4147767424583435, 1.1903715133666992, -0.39758002758026123, -0.9449449181556702, -0.770725667476654, -1.1481853723526, -0.6942694187164307, 1.0931562185287476, 0.1010953038930893, -1.0534669160842896, 0.25787800550460815, 1.5384137630462646, 0.07067814469337463, -0.2808869779109955, 0.6116469502449036, 0.5154188871383667, -0.7377356886863708, -0.10357309877872467, -0.9249282479286194, 0.5405720472335815, -0.3805641531944275, -0.37131258845329285, 0.34073635935783386, 0.26967519521713257, 1.27984619140625, 0.08326606452465057, 0.12989988923072815, 1.2494845390319824, -1.3765969276428223, 1.4237239360809326, -0.5812740325927734, 0.23027770221233368, -2.4000003337860107, 1.4658539295196533, -0.6781609654426575, 2.014749050140381, -2.6446726322174072, 0.4334046542644501, -0.5980958938598633, -0.4965135157108307, 0.36638808250427246, -0.3653760850429535, 0.16659578680992126, -0.20087045431137085, -1.0464351177215576, -0.15780289471149445, -0.6953425407409668, 0.6223564743995667, 1.0847365856170654, 1.3078569173812866, -1.0767557621002197, -0.3551221787929535, -1.675045371055603, -0.23203814029693604, -0.5412783622741699, 0.2634022831916809, -1.962755799293518, -0.22518596053123474, -1.9769107103347778, -2.479257345199585, -1.2838562726974487, -0.7619611620903015, 1.1505619287490845, 0.1690474897623062, -0.8788444995880127, 1.1860662698745728, -0.4130878448486328, -1.8901225328445435, 1.0909675359725952, -2.1348111629486084 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
About dummy data, please see e.g. this PR: https://github.com/huggingface/datasets/pull/3692/commits/62368daac0672041524a471386d5e78005cf357a - I updated the previous dummy data: I just had to rename the file and its directory - the dummy data zip contains only a single file: `pubmed22n0001.xml.gz` Then I discover it fails: https://app.circleci.com/pipelines/github/huggingface/datasets/9800/workflows/173a4433-8feb-4fc6-ab9e-59762084e3e1/jobs/60437 ``` No such file or directory: '.../dummy_data/pubmed22n0002.xml.gz' ``` - it needs dummy data for all the 1114 files: `_URLs = [f"ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed22n{i:04d}.xml.gz" for i in range(1, 1115)]` - this confirms me that it never passed the test: these dummy data files were not present before my PR - therefore, is it really useful the data test if we just ignore it when it does not pass? In relation with JSON metadata, I'm generating the file for `pubmed` (see above) in a GCP instance: it's running for more than 3 hours and only 9 million examples generated so far (before my PR, it had 32 million, now it has more).
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
151
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw About dummy data, please see e.g. this PR: https://github.com/huggingface/datasets/pull/3692/commits/62368daac0672041524a471386d5e78005cf357a - I updated the previous dummy data: I just had to rename the file and its directory - the dummy data zip contains only a single file: `pubmed22n0001.xml.gz` Then I discover it fails: https://app.circleci.com/pipelines/github/huggingface/datasets/9800/workflows/173a4433-8feb-4fc6-ab9e-59762084e3e1/jobs/60437 ``` No such file or directory: '.../dummy_data/pubmed22n0002.xml.gz' ``` - it needs dummy data for all the 1114 files: `_URLs = [f"ftp://ftp.ncbi.nlm.nih.gov/pubmed/baseline/pubmed22n{i:04d}.xml.gz" for i in range(1, 1115)]` - this confirms me that it never passed the test: these dummy data files were not present before my PR - therefore, is it really useful the data test if we just ignore it when it does not pass? In relation with JSON metadata, I'm generating the file for `pubmed` (see above) in a GCP instance: it's running for more than 3 hours and only 9 million examples generated so far (before my PR, it had 32 million, now it has more).
[ -1.2301883697509766, -0.9753256440162659, -0.8026643395423889, 1.4359840154647827, -0.10908660292625427, -1.219981074333191, 0.10966556519269943, -1.0494234561920166, 1.7295618057250977, -0.754491925239563, 0.20679248869419098, -1.704485535621643, -0.045637715607881546, -0.5912590026855469, -0.772225558757782, -0.8696204423904419, -0.4393007457256317, -0.8593682646751404, 1.0432088375091553, 2.47163987159729, 1.1820534467697144, -1.3338890075683594, 2.7262699604034424, 0.6491614580154419, -0.22611168026924133, -1.0157537460327148, 0.4646156430244446, -0.05155088007450104, -1.2652281522750854, -0.39799195528030396, -0.9132866263389587, -0.04462413489818573, -0.6012881398200989, -0.504986047744751, 0.10194003582000732, 0.35860952734947205, -0.29435011744499207, -0.3467552065849304, -0.6061040163040161, -0.6911603212356567, 0.5140077471733093, -0.28057122230529785, 0.965448796749115, -0.2827662527561188, 1.8563728332519531, -0.5515658259391785, 0.34898868203163147, 0.7004649043083191, 1.3451615571975708, 0.20308251678943634, 0.030009813606739044, 0.2613375186920166, 0.3301035165786743, 0.018181543797254562, 0.454079806804657, 1.1894924640655518, 0.6571799516677856, 0.49681228399276733, 0.7082889080047607, -2.2473716735839844, 1.320980429649353, -0.9749428033828735, 0.32371601462364197, 1.412872552871704, -0.9713588356971741, 0.38139182329177856, -1.8846029043197632, 0.004185113124549389, 0.5455068349838257, -2.2873001098632812, 0.17187316715717316, -1.2566832304000854, -0.4514860212802887, 1.017673373222351, 0.26334312558174133, -1.1870225667953491, 0.26530420780181885, -0.47274813055992126, 1.1032718420028687, 0.5069510340690613, 1.2596169710159302, -1.7675857543945312, -0.008818263188004494, -0.2547745108604431, 0.18940851092338562, -1.3189151287078857, -1.5819519758224487, 0.5224894285202026, 0.661162793636322, 0.6184773445129395, -0.08662078529596329, 0.974528968334198, -0.9679692387580872, 0.7932828664779663, -0.91605544090271, -1.6369255781173706, -1.3825031518936157, -2.2313528060913086, -2.369734525680542, 0.7895541191101074, -0.5039790868759155, -0.4817030429840088, 2.0387160778045654, -1.059425950050354, -1.7940747737884521, 1.1005370616912842, 0.3191596567630768, 0.015811674296855927, 2.385336399078369, 0.25787144899368286, -0.7137457132339478, 0.4955543875694275, -0.6805593371391296, 0.7940484881401062, -0.29097577929496765, 1.344797968864441, 0.51518714427948, -1.0461212396621704, 1.5932469367980957, -0.3774805963039398, 0.5484904646873474, -0.6686188578605652, -0.5128911137580872, -0.8342158198356628, 0.2924736738204956, 1.8248063325881958, -0.3031591475009918, 1.5863150358200073, -0.42454200983047485, -1.6122733354568481, -1.5804427862167358, 0.8255305290222168, 0.5741845965385437, -0.8226112723350525, 0.0829046219587326, -0.4077232778072357, 0.14125612378120422, 0.03876936435699463, 1.0843416452407837, 1.217786431312561, 0.7167568802833557, -0.2729138731956482, -0.8771032094955444, 0.2096574455499649, -0.026363864541053772, -0.710634171962738, -1.7981061935424805, -0.33224135637283325, 0.20716261863708496, 0.6655246615409851, -1.2211277484893799, 1.6313503980636597, 0.877296507358551, 1.9172335863113403, 1.0230739116668701, -0.37112554907798767, 1.5113365650177002, 0.035296063870191574, 1.838273048400879, -0.4880426228046417, 0.6471616625785828, -0.33551907539367676, -1.1706753969192505, 0.8177574276924133, -0.3009800910949707, -2.0675554275512695, -0.785595178604126, -0.7868592739105225, -0.18203693628311157, -0.7244535088539124, 0.8923357725143433, -0.284403532743454, -1.4208773374557495, 0.22154702246189117, -0.6051377654075623, 0.1924138218164444, -1.2526631355285645, 0.26491236686706543, 0.7213462591171265, -0.7129141688346863, -0.025159496814012527, -0.22418195009231567, -1.3192754983901978, -0.44986623525619507, 0.23944416642189026, 1.8758701086044312, -0.7538474798202515, 0.9110775589942932, 1.0423234701156616, -0.7588599324226379, 0.05121885985136032, 0.3088413178920746, -0.28733131289482117, 0.9043160080909729, -1.0514410734176636, -0.3920387625694275, 1.123515009880066, -0.1413060873746872, -0.6318204402923584, 1.4053874015808105, 0.6971436142921448, -1.0339182615280151, -0.25501754879951477, -0.11359387636184692, -0.8455081582069397, -0.04986387491226196, -1.5639328956604004, -0.19830183684825897, 0.32764068245887756, -1.4855529069900513, -0.46200716495513916, -0.25539690256118774, 1.3218868970870972, -0.19260315597057343, 1.4163110256195068, -0.3567783236503601, -0.14463765919208527, -0.4045742452144623, -0.4313546121120453, 0.14881405234336853, -0.169711634516716, -0.62796950340271, 0.26025471091270447, -0.8218856453895569, 0.34613513946533203, 1.3999766111373901, 0.4241596460342407, 0.04007977247238159, 0.4850704073905945, 1.1530756950378418, 0.3861974775791168, -0.04006698355078697, -0.8627428412437439, -1.5715255737304688, 2.0830934047698975, -1.495894432067871, 1.937502145767212, 0.7444080114364624, -0.07382010668516159, -1.7239208221435547, -1.8803861141204834, 1.3827095031738281, 1.1408042907714844, 2.423384666442871, 0.494529664516449, 0.42718055844306946, -0.7713862061500549, -0.6146723031997681, 0.37961575388908386, -0.9977710843086243, -0.7902604341506958, 0.15155477821826935, 2.3621888160705566, 1.6913979053497314, -0.5471646785736084, -0.28928714990615845, -0.9820592999458313, 1.2203131914138794, -0.13499554991722107, 0.17785431444644928, 2.004473924636841, -0.28679218888282776, -1.1274806261062622, 1.3221620321273804, -2.320249319076538, 0.12820163369178772, 1.983418345451355, 0.2992015480995178, 0.08762576431035995, -1.4069125652313232, -0.6447675228118896, -0.19785363972187042, -0.4788689911365509, -1.2968939542770386, 0.5599657297134399, -0.26129603385925293, -0.8337571024894714, -1.4924741983413696, 0.07888410985469818, -1.1585952043533325, -1.6757131814956665, 0.2764015793800354, 1.920558214187622, 2.0745301246643066, -0.7727267742156982, 1.4384559392929077, -0.30453306436538696, 0.14017026126384735, 1.2250926494598389, 1.248137354850769, 3.15287184715271, 1.8171651363372803, -1.3519575595855713, 0.6778060793876648, -0.1649513840675354, -0.4809362590312958, 1.0994256734848022, -1.1060478687286377, 1.206610918045044, -0.22071582078933716, -1.2638447284698486, -1.2559372186660767, 1.0058139562606812, 0.5055245161056519, 0.08519911020994186, -0.4720362424850464, 1.2093708515167236, 0.0681421235203743, 1.3245954513549805, 0.5663735866546631, -0.3776742219924927, 0.5953930616378784, -0.3827701807022095, -0.5605646967887878, 1.5955404043197632, 0.1244875118136406, -1.4278924465179443, -2.3170363903045654, -0.28138086199760437, -0.7684507966041565, 0.026290323585271835, -0.5608052015304565, -0.9247857332229614, 1.6447478532791138, 0.4264961779117584, -1.3385154008865356, -0.2748057246208191, -0.36527884006500244, -0.6037746071815491, 2.637183666229248, -1.4087159633636475, -0.20356513559818268, -0.9308284521102905, -0.5420799255371094, 1.6019502878189087, -1.0850751399993896, -0.24341732263565063, -0.9936065077781677, -0.6767174601554871, -1.374443531036377, -0.6175272464752197, 0.007047432474792004, -0.9698405265808105, 0.7375167608261108, 0.12783105671405792, -1.1111475229263306, -0.24067983031272888, -0.8662886619567871, 0.944747269153595, -0.1460753083229065, 0.26101768016815186, 1.9462579488754272, 0.4749869108200073, -0.4441254138946533, 0.691399335861206, 1.1487858295440674, 0.6750766038894653, -0.6388174295425415, 0.15663757920265198, -0.6830140948295593, 0.3050117492675781, -1.3323630094528198, 0.31418541073799133, -2.8741261959075928, 0.7235133051872253, -0.05360066890716553, -0.05987535044550896, -0.02829449623823166, -1.249808430671692, 1.0626901388168335, 2.6055240631103516, -1.172990322113037, 0.4128655195236206, 0.37775471806526184, 1.2153114080429077, -1.5912216901779175, 0.26926565170288086, -0.42896464467048645, 2.136817693710327, 0.15451839566230774, 1.2371028661727905, -0.5041718482971191, -2.2377467155456543, 0.5467687845230103, -1.2955118417739868, -1.1738077402114868, 0.903740406036377, -0.8550633788108826, 0.1027585119009018, -1.3962773084640503, -0.20511098206043243, -0.8946267366409302, -1.2707476615905762, 0.7667508125305176, 0.10226023942232132, 0.4593105614185333, -0.6265478134155273, 0.389655202627182, -2.1581997871398926, -1.2921720743179321, -0.23338593542575836, -1.0155442953109741, 0.4457974433898926, -0.3423798382282257, 0.7178969979286194, -0.14934363961219788, 0.024136971682310104, 0.38071468472480774, 1.359110951423645, 3.30663800239563, 0.24006003141403198, 0.31360477209091187, -0.1675092726945877, -0.9687843918800354, 1.4839487075805664, 0.9679814577102661, -0.16977813839912415, -0.5779812932014465, -1.005509853363037, 1.2729685306549072, 1.9793401956558228, 1.0504913330078125, 0.06882569938898087, -0.8100553154945374, -0.7386953234672546, 0.1104721948504448, 0.22891193628311157, 0.5120493769645691, 0.8720750212669373, -0.010440317913889885, 0.1309894621372223, 1.3983771800994873, 1.2144709825515747, -0.400799036026001, 0.420901358127594, -0.7904430627822876, -0.5225360989570618, 0.4669129252433777, 0.2893052101135254, 0.038244906812906265, 0.3803224265575409, -1.0213396549224854, -0.25887003540992737, -0.3422006070613861, -1.0056275129318237, -0.7360714673995972, -0.3756357729434967, -0.3841926157474518, 1.578629970550537, 0.10318893194198608, -0.44718167185783386, 0.0016348231583833694, -0.7761183381080627, -0.17023299634456635, -1.0994640588760376, 0.3453412353992462, -0.14911296963691711, -0.09223625808954239, -0.08556143939495087, 1.6941895484924316, -0.9625198841094971, -2.075183868408203, 0.27573469281196594, 0.252985417842865, -0.3877410888671875, 0.19496166706085205, 1.7149280309677124, 0.5443419814109802, 1.4389569759368896, 1.3155999183654785, 0.9630299210548401, -0.663454532623291, -1.2741940021514893, 0.7257257699966431, 0.8891674280166626, -1.4257080554962158, 0.8478196859359741, -0.1230364590883255, -0.5444434881210327, 0.6784423589706421, 1.3563015460968018, 0.3448239266872406, -2.014314889907837, 0.8757153153419495, -0.9084542989730835, 0.6542486548423767, 0.6107378005981445, 0.8170055150985718, 0.19280889630317688, 0.8419445157051086, -1.2623083591461182, -1.1414647102355957, -0.7088777422904968, -0.6053847670555115, 1.921795129776001, -0.1691192388534546, 0.5739282965660095, -0.1058799996972084, -1.2825428247451782, -0.08545631915330887, 0.7160330414772034, 0.26561370491981506, -0.3881590962409973, 0.8541414737701416, -0.70294189453125, -1.0999280214309692, -1.3481601476669312, -0.4204079806804657, -1.0342655181884766, -0.8936160206794739, 1.0116770267486572, 0.8437612652778625, 0.26313960552215576, 1.8488913774490356, 0.556362509727478, 0.30987295508384705, -2.6636180877685547, 0.9230352640151978, 0.31015947461128235, -0.12483658641576767, 0.921371340751648, 0.24362510442733765, 1.0594043731689453, 0.035102833062410355, 0.5479769706726074, -2.3772132396698, 2.246105909347534, -0.2343580275774002, 0.71566241979599, 0.014599713496863842, -0.230204775929451, 1.1139599084854126, 0.5402309894561768, 0.6087242364883423, -1.134036660194397, 0.7527122497558594, -0.6042803525924683, 1.0903892517089844, 0.9246432185173035, -0.8633840680122375, -0.006315144710242748, 1.290745496749878, 0.47104474902153015, -0.4300467073917389, -0.9218575954437256, -0.8941206336021423, 0.9347875118255615, 1.7983436584472656, -0.04673130810260773, 0.053303852677345276, 0.9294210076332092, 0.7294948697090149, -1.3118141889572144, 0.0807700827717781, -0.7253241539001465, -0.7880149483680725, 1.6688134670257568, 2.0399560928344727, -0.09236760437488556, -0.2225654423236847, -0.7286427021026611, -1.2287461757659912, 0.8059689402580261, -0.005973935127258301, 0.2522881031036377, 0.6378129720687866, -0.7299538254737854, 1.1464139223098755, 0.8679265379905701, 0.9191796183586121, 0.09103533625602722, 0.305821031332016, 0.3699762225151062, -0.24555455148220062, -1.134763240814209, -0.19477352499961853, -1.0671570301055908, -2.4259285926818848, 0.527147114276886, -0.22182480990886688, -1.3888448476791382, 0.10236772149801254, -1.0062323808670044, 0.8424522280693054, -0.5937596559524536, -1.1414865255355835, -1.5460096597671509, 0.2754894495010376, -0.14011289179325104, 0.8887082934379578, -1.6404675245285034, -0.07225190103054047, 1.234381079673767, 0.9188486933708191, -0.5903760194778442, 0.9537337422370911, 0.2364775389432907, 0.9223319292068481, 0.9054646492004395, -0.39927393198013306, 0.5218608975410461, 0.1603478193283081, -1.340557336807251, 0.343030720949173, 1.1341989040374756, 0.2032957226037979, 1.4784952402114868, -0.5194494128227234, 0.025517962872982025, 0.4860166013240814, -0.5671466588973999, -0.4501785337924957, -0.5609416961669922, 0.647171139717102, 0.045680176466703415, -0.8970279693603516, 0.02787574753165245, -0.09076936542987823, -0.2701947093009949, 0.21985071897506714, -1.467483639717102, -0.22560237348079681, -0.43611958622932434, -0.5860016942024231, -1.24478280544281, -0.019420094788074493, 1.3943825960159302, -0.8398936986923218, -0.22294610738754272, 0.4949609637260437, 0.3897302448749542, 0.49191874265670776, 0.6493265628814697, -0.6744189262390137, -0.34193992614746094, -0.30087244510650635, -0.3524923026561737, 0.2662228047847748, 1.2997416257858276, -0.1373528689146042, -1.0061136484146118, 0.7134913802146912, -0.3632740378379822, 0.040411584079265594, 1.941055178642273, 0.06284480541944504, -0.7970500588417053, 0.29298725724220276, -0.6983832120895386, 1.8641114234924316, 1.7333840131759644, 1.410820484161377, -0.20295339822769165, -0.9916313290596008, 0.6438058614730835, -0.32878682017326355, -0.332876980304718, 1.0331344604492188, 0.429782509803772, -0.16934719681739807, -1.4748698472976685, 0.6328391432762146, 1.3214733600616455, -0.8608564138412476, -0.7270632982254028, 0.04353579878807068, -0.860059380531311, 1.0977040529251099, 0.7164304256439209, 0.28603604435920715, 0.18949627876281738, 1.5446799993515015, 0.7278895378112793, -0.4635987877845764, 0.48868221044540405, 0.5165771842002869, -0.19925539195537567, -2.13324236869812, -1.124923825263977, 0.30792683362960815, -0.34226471185684204, -1.5354993343353271, 1.365291714668274, -1.1350417137145996, -0.9712792038917542, 0.5041512846946716, -0.02015226148068905, 1.4316554069519043, 0.31824618577957153, 1.6938257217407227, 2.1501801013946533, 0.907801628112793, 0.3213805556297302, 1.4017897844314575, -0.12144554406404495, -0.4155251383781433, 1.7552064657211304, -0.5013903975486755, 0.5054216980934143, 1.091982126235962, -0.42478567361831665, -1.0432000160217285, -0.8030453324317932, -1.1688385009765625, -0.6860038638114929, 1.1718089580535889, 0.13734929263591766, -1.0877255201339722, 0.27501732110977173, 1.61465322971344, 0.11028039455413818, -0.2703735828399658, 0.7297501564025879, 0.49479150772094727, -0.7484825253486633, -0.093875452876091, -0.8719805479049683, 0.5130162835121155, -0.23841173946857452, -0.35635316371917725, 0.275579571723938, 0.41372013092041016, 1.2380343675613403, 0.02917778491973877, 0.08056579530239105, 1.2473644018173218, -1.3512929677963257, 1.4787003993988037, -0.6241169571876526, 0.3233170807361603, -2.435687780380249, 1.4394046068191528, -0.7729483246803284, 1.9710992574691772, -2.587596893310547, 0.4271838963031769, -0.566998302936554, -0.4994606077671051, 0.31063389778137207, -0.3801102936267853, 0.13303813338279724, -0.1679971069097519, -1.0091556310653687, -0.16586196422576904, -0.7520979642868042, 0.6196783185005188, 1.1212080717086792, 1.3465744256973267, -1.061466097831726, -0.299991637468338, -1.7192703485488892, -0.27486157417297363, -0.5895307660102844, 0.3036602735519409, -1.9711014032363892, -0.19584323465824127, -2.0365562438964844, -2.4268546104431152, -1.3237953186035156, -0.8082104921340942, 1.1208851337432861, 0.17387887835502625, -0.8992529511451721, 1.1419589519500732, -0.3854546844959259, -1.847615361213684, 1.0813943147659302, -2.1818418502807617 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
I mention in https://github.com/huggingface/datasets-server/wiki/Preliminary-design that the future "datasets server" could be in charge of generating both the dummy data and the dataset-info.json file if required (or their equivalent).
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
28
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw I mention in https://github.com/huggingface/datasets-server/wiki/Preliminary-design that the future "datasets server" could be in charge of generating both the dummy data and the dataset-info.json file if required (or their equivalent).
[ -1.2608180046081543, -0.9749828577041626, -0.7585969567298889, 1.4671169519424438, -0.14458878338336945, -1.210669755935669, 0.05393576994538307, -1.0944383144378662, 1.6981934309005737, -0.84358811378479, 0.2470773309469223, -1.7579929828643799, 0.008921405300498009, -0.5778633952140808, -0.7439935803413391, -0.9703313708305359, -0.5137547254562378, -0.822559118270874, 1.030164361000061, 2.464102268218994, 1.1653293371200562, -1.3488655090332031, 2.7351839542388916, 0.6279472708702087, -0.20869873464107513, -1.021566390991211, 0.5449588298797607, -0.048800982534885406, -1.2584595680236816, -0.41140544414520264, -0.9364654421806335, -0.08532560616731644, -0.6009401679039001, -0.4930875897407532, 0.08181965351104736, 0.31849223375320435, -0.28397107124328613, -0.2881389260292053, -0.5494370460510254, -0.7456626892089844, 0.5299465656280518, -0.2645034193992615, 0.9482697248458862, -0.3705562353134155, 1.9019701480865479, -0.5714438557624817, 0.35519737005233765, 0.687084436416626, 1.3416483402252197, 0.26655930280685425, 0.029068734496831894, 0.26384812593460083, 0.33399224281311035, 0.010973989963531494, 0.44456589221954346, 1.141432762145996, 0.6292951107025146, 0.510888934135437, 0.7115724086761475, -2.2027385234832764, 1.33858323097229, -1.0235743522644043, 0.3037828207015991, 1.4493377208709717, -1.0032639503479004, 0.4228760004043579, -1.7434685230255127, -0.08948658406734467, 0.5499014854431152, -2.3139750957489014, 0.06262285262346268, -1.2124422788619995, -0.4455000162124634, 1.0236821174621582, 0.30024290084838867, -1.171830654144287, 0.26105111837387085, -0.4351768493652344, 1.0930503606796265, 0.5555437803268433, 1.2462849617004395, -1.7119706869125366, 0.021754952147603035, -0.2719770669937134, 0.14557988941669464, -1.3991432189941406, -1.5761363506317139, 0.5091668367385864, 0.664294421672821, 0.576504647731781, -0.06753848493099213, 0.9502785801887512, -0.9886698126792908, 0.7938348650932312, -0.8912869691848755, -1.5872985124588013, -1.4108062982559204, -2.28474760055542, -2.432598352432251, 0.8338785171508789, -0.5241361260414124, -0.540774941444397, 2.034449815750122, -1.073682427406311, -1.7842609882354736, 1.1368346214294434, 0.29124194383621216, 0.008107306435704231, 2.4607112407684326, 0.18394167721271515, -0.6672071218490601, 0.47517824172973633, -0.652744710445404, 0.8010714054107666, -0.2585294842720032, 1.318007469177246, 0.5282690525054932, -1.0881189107894897, 1.5422859191894531, -0.42297154664993286, 0.5443145036697388, -0.5346353054046631, -0.540398895740509, -0.8923969864845276, 0.28310757875442505, 1.7645044326782227, -0.2717910408973694, 1.6243128776550293, -0.3586658239364624, -1.5902361869812012, -1.648314356803894, 0.8364819288253784, 0.4733445644378662, -0.8127037882804871, 0.10086638480424881, -0.38399094343185425, 0.1056189239025116, 0.10788041353225708, 1.1080800294876099, 1.2001323699951172, 0.6734601259231567, -0.2873363494873047, -0.8692747950553894, 0.21211549639701843, -0.06152445077896118, -0.6809448599815369, -1.782228946685791, -0.33526211977005005, 0.15928234159946442, 0.6652584075927734, -1.145283579826355, 1.5999542474746704, 0.9142048358917236, 1.825522541999817, 1.0433238744735718, -0.33976054191589355, 1.4895930290222168, -0.04285188019275665, 1.7971419095993042, -0.4999033808708191, 0.6950908899307251, -0.3787747025489807, -1.19788658618927, 0.7946183085441589, -0.3529338240623474, -2.067396879196167, -0.8454028367996216, -0.8092203140258789, -0.18012161552906036, -0.7433121204376221, 1.0009429454803467, -0.2582395672798157, -1.3789031505584717, 0.2886979579925537, -0.6032127737998962, 0.18377889692783356, -1.2486318349838257, 0.37528783082962036, 0.7224344611167908, -0.7338634729385376, -0.07193881273269653, -0.19762784242630005, -1.2887153625488281, -0.4175384044647217, 0.19118933379650116, 1.874469518661499, -0.856147050857544, 0.9235061407089233, 1.0041310787200928, -0.7998203039169312, 0.06886904686689377, 0.2831045389175415, -0.2608768939971924, 0.9346483945846558, -0.963424026966095, -0.3931788206100464, 1.1694303750991821, -0.21847780048847198, -0.6342002749443054, 1.42096745967865, 0.6976179480552673, -0.9943323135375977, -0.17680507898330688, -0.20098750293254852, -0.9041393995285034, -0.12876111268997192, -1.5506393909454346, -0.21971239149570465, 0.3079189658164978, -1.4926801919937134, -0.45701777935028076, -0.21837154030799866, 1.326306939125061, -0.19888505339622498, 1.4751219749450684, -0.4565501809120178, -0.204080730676651, -0.43592411279678345, -0.4357863664627075, 0.2140389084815979, -0.14193525910377502, -0.5952925682067871, 0.2794378995895386, -0.8099390864372253, 0.34496164321899414, 1.3314812183380127, 0.5096091628074646, 0.08875691890716553, 0.46891552209854126, 1.0904369354248047, 0.3704119324684143, -0.0925372764468193, -0.827667772769928, -1.5525485277175903, 2.1546084880828857, -1.421569585800171, 1.9017748832702637, 0.6912416219711304, -0.13557402789592743, -1.7453007698059082, -1.8784798383712769, 1.3390209674835205, 1.1919995546340942, 2.3410935401916504, 0.4388723373413086, 0.40090423822402954, -0.8076239228248596, -0.6441277265548706, 0.39585810899734497, -0.9871754050254822, -0.7674068212509155, 0.09749922156333923, 2.338087558746338, 1.6955313682556152, -0.5547919273376465, -0.17253567278385162, -1.0023916959762573, 1.2463797330856323, -0.13763317465782166, 0.17710889875888824, 2.005430221557617, -0.37183457612991333, -1.1694369316101074, 1.3251433372497559, -2.3405704498291016, 0.04536706581711769, 1.9552801847457886, 0.3380146026611328, 0.020470276474952698, -1.3875383138656616, -0.6364076137542725, -0.26079797744750977, -0.42028331756591797, -1.30587637424469, 0.5860656499862671, -0.24753913283348083, -0.7981503009796143, -1.4779722690582275, 0.036166008561849594, -1.1939302682876587, -1.687179684638977, 0.32745420932769775, 1.8579167127609253, 2.1288557052612305, -0.7549495100975037, 1.4644252061843872, -0.2427992969751358, 0.17919161915779114, 1.2448612451553345, 1.2160042524337769, 3.1738476753234863, 1.888723373413086, -1.37214994430542, 0.6162501573562622, -0.12109840661287308, -0.48325449228286743, 1.1663347482681274, -1.1335302591323853, 1.28496253490448, -0.15679647028446198, -1.2975285053253174, -1.2930736541748047, 1.030332088470459, 0.4266366958618164, 0.09576552361249924, -0.4939168691635132, 1.2213948965072632, 0.011713504791259766, 1.3504834175109863, 0.530491292476654, -0.33514612913131714, 0.5092820525169373, -0.4700559973716736, -0.6182190179824829, 1.6192251443862915, 0.17017920315265656, -1.4818450212478638, -2.2845563888549805, -0.30159246921539307, -0.7538517713546753, -0.009217118844389915, -0.516635537147522, -0.8890358209609985, 1.6228299140930176, 0.4283856153488159, -1.3416229486465454, -0.3541458249092102, -0.38696515560150146, -0.6109216809272766, 2.6833138465881348, -1.4542624950408936, -0.18260790407657623, -0.8878350257873535, -0.6201438307762146, 1.5438753366470337, -1.1590543985366821, -0.21039818227291107, -0.9855552315711975, -0.7109864354133606, -1.4295648336410522, -0.5790130496025085, -0.018346287310123444, -1.06715726852417, 0.7368457317352295, 0.10536028444766998, -1.0776160955429077, -0.2616153359413147, -0.8467597961425781, 0.904384970664978, -0.15927964448928833, 0.36897730827331543, 1.906650424003601, 0.4476214051246643, -0.4454565644264221, 0.6636502742767334, 1.1700170040130615, 0.7316547632217407, -0.6423609852790833, 0.09868326038122177, -0.7234014868736267, 0.33957529067993164, -1.2698603868484497, 0.2787090539932251, -2.9013891220092773, 0.6972633600234985, -0.10511316359043121, -0.11420824378728867, -0.05429013445973396, -1.2257665395736694, 1.0647432804107666, 2.561680316925049, -1.1890201568603516, 0.3881014585494995, 0.3381078243255615, 1.2136249542236328, -1.596213459968567, 0.28171151876449585, -0.4636691212654114, 2.181165933609009, 0.18822021782398224, 1.1909288167953491, -0.46166354417800903, -2.1444993019104004, 0.6012343764305115, -1.2786295413970947, -1.1648191213607788, 0.8988074660301208, -0.8908284306526184, 0.09345575422048569, -1.417037844657898, -0.13279391825199127, -0.815342128276825, -1.2481557130813599, 0.7293933629989624, 0.08848991990089417, 0.46961987018585205, -0.5866935849189758, 0.3785746097564697, -2.210711717605591, -1.31454336643219, -0.24473857879638672, -0.9829775094985962, 0.43015992641448975, -0.3682861924171448, 0.7338061332702637, -0.18429739773273468, 0.04858393222093582, 0.39595186710357666, 1.3673421144485474, 3.2951819896698, 0.25660842657089233, 0.3670654296875, -0.11284806579351425, -0.9803488254547119, 1.4942741394042969, 0.9420676827430725, -0.197455495595932, -0.5072599053382874, -0.9882422685623169, 1.322321891784668, 1.901292085647583, 1.0354458093643188, 0.07936631143093109, -0.7579553127288818, -0.6555516719818115, 0.09122556447982788, 0.23832248151302338, 0.521361231803894, 0.8425306677818298, -0.10573884844779968, 0.1836741715669632, 1.4747458696365356, 1.269091010093689, -0.3604971766471863, 0.39780640602111816, -0.7639480829238892, -0.5763344764709473, 0.5158631205558777, 0.27603787183761597, 0.016971873119473457, 0.43559181690216064, -0.9712346196174622, -0.27352964878082275, -0.32281386852264404, -0.9589430689811707, -0.7174550890922546, -0.40661460161209106, -0.43161922693252563, 1.5756393671035767, 0.06274724751710892, -0.5000877976417542, -0.018242981284856796, -0.8209441900253296, -0.19986635446548462, -1.1102182865142822, 0.34445202350616455, -0.10082171112298965, -0.12679508328437805, -0.1705007404088974, 1.7002640962600708, -0.9903321266174316, -2.1238350868225098, 0.29190224409103394, 0.2933245897293091, -0.3587859869003296, 0.12760522961616516, 1.6369125843048096, 0.5015784502029419, 1.517411470413208, 1.3129833936691284, 0.9465904831886292, -0.6338731646537781, -1.3201724290847778, 0.7675045728683472, 0.8692880868911743, -1.441446304321289, 0.8638428449630737, -0.130067378282547, -0.6047743558883667, 0.629925549030304, 1.2444980144500732, 0.3262621760368347, -1.9782075881958008, 0.91798335313797, -0.9219080209732056, 0.6578915119171143, 0.630420446395874, 0.7944956421852112, 0.15571263432502747, 0.8341239094734192, -1.2787808179855347, -1.1642248630523682, -0.7571359872817993, -0.5943756103515625, 1.9123773574829102, -0.16760459542274475, 0.5648807883262634, -0.11644963920116425, -1.2592276334762573, -0.08558816462755203, 0.668070912361145, 0.22279585897922516, -0.3446270823478699, 0.9334275722503662, -0.6735675930976868, -1.1160279512405396, -1.3994382619857788, -0.3229908347129822, -1.078700304031372, -0.8553757071495056, 1.1032161712646484, 0.862750768661499, 0.20575417578220367, 1.839828372001648, 0.5066753029823303, 0.3428640365600586, -2.6316165924072266, 0.927138090133667, 0.26016414165496826, -0.15196733176708221, 0.8954575657844543, 0.2288687378168106, 1.0360233783721924, 0.014485564082860947, 0.49703657627105713, -2.353485584259033, 2.260199785232544, -0.252472460269928, 0.6953166723251343, 0.007987121120095253, -0.16094784438610077, 1.1091952323913574, 0.5991392135620117, 0.6119363307952881, -1.1373802423477173, 0.7375891208648682, -0.5673534274101257, 1.0940183401107788, 1.005233883857727, -0.793717622756958, -0.0421782061457634, 1.3486801385879517, 0.5215422511100769, -0.43792200088500977, -0.9079970717430115, -0.8349641561508179, 0.9368176460266113, 1.7922639846801758, -0.032936010509729385, 0.03211567923426628, 0.8955244421958923, 0.7464699149131775, -1.3006709814071655, 0.11534728109836578, -0.7304621338844299, -0.7696343660354614, 1.6231434345245361, 2.029520273208618, -0.08690285682678223, -0.12382175773382187, -0.7051928043365479, -1.2325867414474487, 0.8418682813644409, 0.018340473994612694, 0.2552962303161621, 0.7153717875480652, -0.7602155208587646, 1.1108307838439941, 1.0063221454620361, 0.870937168598175, 0.1608056128025055, 0.2646617293357849, 0.32839709520339966, -0.11275621503591537, -1.089247226715088, -0.16336899995803833, -1.0126451253890991, -2.4249536991119385, 0.488009512424469, -0.3497585654258728, -1.4100944995880127, 0.06890255957841873, -1.0144225358963013, 0.8749265074729919, -0.5463903546333313, -1.0786247253417969, -1.6348826885223389, 0.29433804750442505, -0.061472952365875244, 0.9295876026153564, -1.596882700920105, -0.011303779669106007, 1.2644782066345215, 0.8606354594230652, -0.5609727501869202, 1.007673978805542, 0.28032130002975464, 0.9609476327896118, 0.8493488430976868, -0.43092286586761475, 0.5427988171577454, 0.16291089355945587, -1.362502098083496, 0.35211896896362305, 1.093435287475586, 0.20263995230197906, 1.471107006072998, -0.5214301943778992, 0.021775105968117714, 0.4543672204017639, -0.5666996836662292, -0.436876118183136, -0.5413737297058105, 0.6680948734283447, 0.0696379765868187, -0.8461548686027527, 0.052664753049612045, -0.13001760840415955, -0.32042866945266724, 0.20852582156658173, -1.4340529441833496, -0.20237451791763306, -0.48588234186172485, -0.5725019574165344, -1.2633150815963745, -0.04733273386955261, 1.4498566389083862, -0.8514403104782104, -0.1694709211587906, 0.5036655068397522, 0.4127936363220215, 0.5131718516349792, 0.7094924449920654, -0.6577326655387878, -0.29379981756210327, -0.3280752897262573, -0.2438543140888214, 0.2605884075164795, 1.26137113571167, -0.19231122732162476, -0.9721460938453674, 0.770478367805481, -0.253895103931427, 0.03243134170770645, 1.9404360055923462, 0.09661329537630081, -0.788432776927948, 0.32474207878112793, -0.695047914981842, 1.872421145439148, 1.8100292682647705, 1.431711196899414, -0.13551145792007446, -1.0602281093597412, 0.5872027277946472, -0.2965880036354065, -0.30084627866744995, 0.9938398599624634, 0.48842060565948486, -0.14828740060329437, -1.481890320777893, 0.6658907532691956, 1.241660237312317, -0.8594858646392822, -0.6922191381454468, 0.07825443148612976, -0.8726608157157898, 1.091935634613037, 0.7277610898017883, 0.34459543228149414, 0.182792529463768, 1.5540237426757812, 0.7462006211280823, -0.48589855432510376, 0.3799102306365967, 0.5842264294624329, -0.166224405169487, -2.056732654571533, -1.099837064743042, 0.3472863435745239, -0.4244183897972107, -1.506515383720398, 1.3532873392105103, -1.1396944522857666, -0.923949122428894, 0.5322785377502441, -0.04266144707798958, 1.4436794519424438, 0.30056172609329224, 1.6723624467849731, 2.142442464828491, 0.9839490652084351, 0.3240596055984497, 1.4645851850509644, -0.09427060931921005, -0.32253706455230713, 1.710699200630188, -0.421269953250885, 0.40577417612075806, 1.1206316947937012, -0.44413548707962036, -0.9538895487785339, -0.8098704814910889, -1.1451319456100464, -0.641241729259491, 1.0794446468353271, 0.15174342691898346, -1.0499467849731445, 0.21054565906524658, 1.5028674602508545, 0.09655708819627762, -0.2771499752998352, 0.6226871013641357, 0.5166403651237488, -0.7087697386741638, -0.07370775938034058, -0.9412767291069031, 0.5489982962608337, -0.2988532781600952, -0.38948386907577515, 0.29948365688323975, 0.30082255601882935, 1.2848842144012451, 0.07076920568943024, 0.14015930891036987, 1.2749327421188354, -1.3660106658935547, 1.4346047639846802, -0.6299664378166199, 0.24989749491214752, -2.389422655105591, 1.4689316749572754, -0.7518585324287415, 1.9867935180664062, -2.6310222148895264, 0.46434640884399414, -0.580203652381897, -0.5032693147659302, 0.3571655750274658, -0.42062461376190186, 0.1561831384897232, -0.14652325212955475, -1.0550285577774048, -0.1734774261713028, -0.7169114351272583, 0.6090770363807678, 1.1060662269592285, 1.317199468612671, -1.113675594329834, -0.4251849055290222, -1.6698483228683472, -0.25815439224243164, -0.5693426132202148, 0.32164275646209717, -1.9576996564865112, -0.20364485681056976, -1.9948925971984863, -2.498763084411621, -1.3536303043365479, -0.7745779752731323, 1.174564242362976, 0.1685546487569809, -0.9056631326675415, 1.137149453163147, -0.42894643545150757, -1.8853774070739746, 1.1501235961914062, -2.1573572158813477 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
Hi ! I think dummy data generation is out of scope for the datasets server, since it's about generating the original data files. That would be amazing to have it generate the dataset_infos.json though !
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
35
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw Hi ! I think dummy data generation is out of scope for the datasets server, since it's about generating the original data files. That would be amazing to have it generate the dataset_infos.json though !
[ -1.2804538011550903, -0.9867880940437317, -0.7689177989959717, 1.446248173713684, -0.1515364795923233, -1.2160022258758545, 0.051009781658649445, -1.1072410345077515, 1.7387361526489258, -0.8803412914276123, 0.22336818277835846, -1.7400065660476685, 0.02757544070482254, -0.5724756121635437, -0.7487590312957764, -0.9924507737159729, -0.5129889845848083, -0.8443639278411865, 1.037751317024231, 2.4791653156280518, 1.131516695022583, -1.3753918409347534, 2.7122855186462402, 0.6188241243362427, -0.19592398405075073, -1.0125389099121094, 0.5419513583183289, -0.07321930676698685, -1.2607747316360474, -0.41179120540618896, -0.9510897397994995, -0.08749645948410034, -0.6044600605964661, -0.4860718250274658, 0.10349880158901215, 0.28592973947525024, -0.2841481566429138, -0.30912381410598755, -0.5398420691490173, -0.7356732487678528, 0.5047681927680969, -0.2854239344596863, 0.9773659706115723, -0.35868340730667114, 1.9304609298706055, -0.5299811959266663, 0.337236225605011, 0.7109487652778625, 1.3374558687210083, 0.2390608936548233, 0.014763476327061653, 0.22729109227657318, 0.3668670058250427, 0.012430258095264435, 0.4259759783744812, 1.0780442953109741, 0.6406927108764648, 0.5343040227890015, 0.7209257483482361, -2.225994348526001, 1.3344252109527588, -1.089766263961792, 0.3283817768096924, 1.461229681968689, -1.0214868783950806, 0.4002794027328491, -1.7639497518539429, -0.07397165149450302, 0.5653942227363586, -2.2862775325775146, 0.08259793370962143, -1.1929208040237427, -0.439883291721344, 1.0148952007293701, 0.3030322790145874, -1.197832465171814, 0.2549647092819214, -0.4179878234863281, 1.0956414937973022, 0.5803661942481995, 1.2195334434509277, -1.7415025234222412, 0.041828807443380356, -0.3057935833930969, 0.16776356101036072, -1.4274839162826538, -1.5504186153411865, 0.510083019733429, 0.6333214044570923, 0.5766431093215942, -0.027157220989465714, 0.9530115723609924, -0.9995989203453064, 0.7914133667945862, -0.9146221876144409, -1.5511726140975952, -1.3918172121047974, -2.276970863342285, -2.4489076137542725, 0.7666655778884888, -0.5122342109680176, -0.558110237121582, 2.0627925395965576, -1.0912750959396362, -1.7480555772781372, 1.1555763483047485, 0.2701759338378906, 0.024430274963378906, 2.4617393016815186, 0.1875862330198288, -0.6284359693527222, 0.4595898985862732, -0.6700516939163208, 0.828519344329834, -0.2875988483428955, 1.2894572019577026, 0.5439949631690979, -1.094319462776184, 1.5535777807235718, -0.4146583676338196, 0.537312924861908, -0.5107365250587463, -0.5525513291358948, -0.9210841655731201, 0.2722815275192261, 1.7625572681427002, -0.24825912714004517, 1.5880231857299805, -0.39852315187454224, -1.6136887073516846, -1.6516789197921753, 0.8802217245101929, 0.4883909821510315, -0.8449562191963196, 0.1018190085887909, -0.3681347966194153, 0.13218729197978973, 0.05391766130924225, 1.117132544517517, 1.1673462390899658, 0.6962332725524902, -0.30597054958343506, -0.8977065086364746, 0.19484864175319672, -0.05626919865608215, -0.7093419432640076, -1.7718989849090576, -0.3420599699020386, 0.09939169138669968, 0.7095698118209839, -1.1034469604492188, 1.6063727140426636, 0.931731104850769, 1.78456449508667, 1.0318944454193115, -0.3330632448196411, 1.4644155502319336, -0.010936381295323372, 1.7883676290512085, -0.5318830609321594, 0.7112955451011658, -0.39235788583755493, -1.1762843132019043, 0.8050943613052368, -0.33893001079559326, -2.056529998779297, -0.8669564127922058, -0.8167505860328674, -0.2012387216091156, -0.7290741801261902, 0.9685669541358948, -0.24676401913166046, -1.3818646669387817, 0.31681257486343384, -0.5255521535873413, 0.19088688492774963, -1.225233554840088, 0.4264206886291504, 0.7282522320747375, -0.7376880645751953, -0.07055467367172241, -0.19352489709854126, -1.2712123394012451, -0.43273472785949707, 0.15927617251873016, 1.8960438966751099, -0.8757914900779724, 0.9143260717391968, 0.9667547941207886, -0.7831109762191772, 0.027481749653816223, 0.24408875405788422, -0.269042432308197, 0.9131808280944824, -0.9860406517982483, -0.41184598207473755, 1.171266794204712, -0.22225680947303772, -0.6427375078201294, 1.4389243125915527, 0.666068971157074, -0.9846642017364502, -0.15687152743339539, -0.2216128706932068, -0.8927251100540161, -0.100554458796978, -1.5555469989776611, -0.21628078818321228, 0.35446256399154663, -1.4826490879058838, -0.45882195234298706, -0.2161228060722351, 1.3246166706085205, -0.21002143621444702, 1.426522970199585, -0.47842198610305786, -0.21501965820789337, -0.4377742409706116, -0.4036198854446411, 0.2445894032716751, -0.1262340545654297, -0.5727733969688416, 0.2301144003868103, -0.8115910887718201, 0.3456549644470215, 1.3588051795959473, 0.4970143437385559, 0.09005077928304672, 0.45341163873672485, 1.0799787044525146, 0.3799273371696472, -0.04644723981618881, -0.8193405270576477, -1.5486260652542114, 2.1584830284118652, -1.461195707321167, 1.899271011352539, 0.6651929020881653, -0.12325915694236755, -1.7351930141448975, -1.8451898097991943, 1.3390580415725708, 1.1638967990875244, 2.3078203201293945, 0.4454995393753052, 0.389273464679718, -0.7784189581871033, -0.6286214590072632, 0.43226945400238037, -0.994192361831665, -0.7519586682319641, 0.11482258141040802, 2.3410346508026123, 1.6667201519012451, -0.5539605617523193, -0.1703169047832489, -0.9800969958305359, 1.2624073028564453, -0.10288918763399124, 0.22191721200942993, 1.9887945652008057, -0.41346126794815063, -1.188425898551941, 1.3146543502807617, -2.3645129203796387, 0.055760882794857025, 1.9861400127410889, 0.3348633050918579, 0.05822708457708359, -1.4012892246246338, -0.6414333581924438, -0.2278967946767807, -0.4322163462638855, -1.3384557962417603, 0.5845019221305847, -0.27920299768447876, -0.7752268314361572, -1.5119279623031616, 0.06623871624469757, -1.188094973564148, -1.6663591861724854, 0.28165239095687866, 1.8400778770446777, 2.1327052116394043, -0.7357832193374634, 1.4661282300949097, -0.2477787286043167, 0.22572150826454163, 1.2653470039367676, 1.203844428062439, 3.144221544265747, 1.871913194656372, -1.3716216087341309, 0.6224885582923889, -0.10572855174541473, -0.4950871467590332, 1.140540599822998, -1.1027400493621826, 1.2852574586868286, -0.11347462236881256, -1.2767143249511719, -1.30532968044281, 1.0107330083847046, 0.4255344271659851, 0.09462974220514297, -0.4698336124420166, 1.2600176334381104, -0.02509101666510105, 1.3653250932693481, 0.5271868705749512, -0.3370034694671631, 0.5136705636978149, -0.5164040923118591, -0.6274840831756592, 1.6368275880813599, 0.18666695058345795, -1.4629679918289185, -2.2667107582092285, -0.3177264332771301, -0.7128344774246216, 0.03653939440846443, -0.4954448342323303, -0.8730344176292419, 1.645020604133606, 0.4110785126686096, -1.3832159042358398, -0.3105759620666504, -0.37837469577789307, -0.6181374192237854, 2.6706602573394775, -1.4531893730163574, -0.2046511024236679, -0.9035260081291199, -0.6499960422515869, 1.5480873584747314, -1.203316330909729, -0.21015146374702454, -0.9944534301757812, -0.7057911157608032, -1.4320029020309448, -0.5954856276512146, -0.011485311202704906, -1.0815048217773438, 0.7751829028129578, 0.1490078866481781, -1.072035789489746, -0.2765600085258484, -0.8211250901222229, 0.8710484504699707, -0.12986929714679718, 0.3955885171890259, 1.889955997467041, 0.4497019052505493, -0.46254777908325195, 0.6463651061058044, 1.1581984758377075, 0.7724242806434631, -0.6767196655273438, 0.11297822743654251, -0.7309862971305847, 0.34182214736938477, -1.205687403678894, 0.31228113174438477, -2.9046425819396973, 0.697044849395752, -0.12421838194131851, -0.12631358206272125, -0.026836002245545387, -1.2321819067001343, 1.0313681364059448, 2.5618679523468018, -1.1797324419021606, 0.3975863456726074, 0.3316892385482788, 1.2524598836898804, -1.5824371576309204, 0.3130114674568176, -0.4255102276802063, 2.2002272605895996, 0.2272845059633255, 1.2163339853286743, -0.44347572326660156, -2.202393054962158, 0.58692866563797, -1.282961130142212, -1.1951584815979004, 0.8888890743255615, -0.8859632015228271, 0.0709947869181633, -1.4279601573944092, -0.16982395946979523, -0.8425390720367432, -1.2718502283096313, 0.771801769733429, 0.1328578144311905, 0.4778962731361389, -0.5988723635673523, 0.35818231105804443, -2.1880133152008057, -1.2912346124649048, -0.2327680140733719, -0.9515402317047119, 0.4181275963783264, -0.3474442958831787, 0.7548319101333618, -0.2122969925403595, 0.08140052855014801, 0.40534013509750366, 1.3539327383041382, 3.295778274536133, 0.24961285293102264, 0.4068801999092102, -0.15227408707141876, -0.952724814414978, 1.5099583864212036, 0.9714853167533875, -0.15749330818653107, -0.5287547707557678, -1.0236585140228271, 1.3052427768707275, 1.9087847471237183, 0.9707594513893127, 0.06159323453903198, -0.6842146515846252, -0.5873777866363525, 0.07135232537984848, 0.21992242336273193, 0.528542697429657, 0.8156669735908508, -0.07445229589939117, 0.20283836126327515, 1.4628783464431763, 1.2916433811187744, -0.3840280771255493, 0.3631972670555115, -0.7222030162811279, -0.5811848044395447, 0.5318125486373901, 0.2849506735801697, -0.010668059810996056, 0.40340304374694824, -0.9563333988189697, -0.2706158757209778, -0.34253281354904175, -0.9813312292098999, -0.6917526125907898, -0.4078160524368286, -0.4430921673774719, 1.5665730237960815, 0.08422660827636719, -0.4981990456581116, -0.026555253192782402, -0.8447049260139465, -0.1801273375749588, -1.1374207735061646, 0.30564337968826294, -0.12487592548131943, -0.1446639895439148, -0.14036008715629578, 1.7598110437393188, -0.9781339168548584, -2.090200424194336, 0.29680895805358887, 0.2897734045982361, -0.3229697346687317, 0.15816836059093475, 1.6219223737716675, 0.47527962923049927, 1.5190798044204712, 1.3043124675750732, 0.9172018766403198, -0.6389414072036743, -1.350095272064209, 0.7753105163574219, 0.8509873151779175, -1.4801005125045776, 0.8631875514984131, -0.10653037577867508, -0.5814851522445679, 0.6710612773895264, 1.2344446182250977, 0.332592248916626, -1.974906086921692, 0.8953051567077637, -0.9567763805389404, 0.6539252400398254, 0.6504294276237488, 0.7777177095413208, 0.17665940523147583, 0.8464584350585938, -1.2642672061920166, -1.1809213161468506, -0.7399438619613647, -0.5907496213912964, 1.9374622106552124, -0.1955331265926361, 0.5964640378952026, -0.06869755685329437, -1.2493510246276855, -0.08867611736059189, 0.6631216406822205, 0.18133115768432617, -0.32350611686706543, 0.9201791882514954, -0.7240689396858215, -1.1397796869277954, -1.4081001281738281, -0.331484317779541, -1.1324067115783691, -0.8722159266471863, 1.121692419052124, 0.8748723864555359, 0.18311943113803864, 1.8451464176177979, 0.5018017888069153, 0.33047348260879517, -2.65046763420105, 0.9231387972831726, 0.2504330277442932, -0.13948826491832733, 0.8711188435554504, 0.23847253620624542, 1.032200574874878, 0.03201940283179283, 0.5052664279937744, -2.387537717819214, 2.2971627712249756, -0.305717408657074, 0.7250359654426575, -0.013675483874976635, -0.1748185157775879, 1.1307806968688965, 0.6315813064575195, 0.6055339574813843, -1.1169463396072388, 0.6948452591896057, -0.5761643648147583, 1.1241399049758911, 1.0276508331298828, -0.8131921291351318, -0.08146853744983673, 1.331010103225708, 0.5335832238197327, -0.4606863856315613, -0.8810468912124634, -0.8651329874992371, 0.9074724912643433, 1.796968936920166, -0.03877027705311775, -0.008103049360215664, 0.8848655223846436, 0.7518529891967773, -1.2626070976257324, 0.11369002610445023, -0.7230139374732971, -0.8259541988372803, 1.5933418273925781, 2.0145626068115234, -0.08896355330944061, -0.10257911682128906, -0.691591203212738, -1.2497808933258057, 0.8436095714569092, 0.021321594715118408, 0.267142653465271, 0.636590301990509, -0.7646303772926331, 1.0737890005111694, 1.0085034370422363, 0.8855211734771729, 0.16120053827762604, 0.2884403467178345, 0.32298731803894043, -0.10831425338983536, -1.079166054725647, -0.13205069303512573, -1.0246413946151733, -2.426595449447632, 0.5035094618797302, -0.34862494468688965, -1.407057523727417, 0.07991401851177216, -0.995837926864624, 0.8737346529960632, -0.5340322852134705, -1.1067965030670166, -1.6368120908737183, 0.26118212938308716, -0.06204262375831604, 0.9371300339698792, -1.6109755039215088, 0.015941616147756577, 1.2475194931030273, 0.8919740319252014, -0.5591737031936646, 1.0451658964157104, 0.2920541763305664, 0.9242733716964722, 0.8533059358596802, -0.456909716129303, 0.5563735961914062, 0.16128003597259521, -1.3623631000518799, 0.3759571313858032, 1.069409966468811, 0.18887963891029358, 1.5035761594772339, -0.5054470300674438, 0.007336894050240517, 0.4610525965690613, -0.5812304615974426, -0.39057058095932007, -0.5299823880195618, 0.7000762224197388, 0.08582744002342224, -0.811759352684021, 0.06808190792798996, -0.1261516809463501, -0.3460623025894165, 0.19875949621200562, -1.4298975467681885, -0.2286684215068817, -0.5261498689651489, -0.5760301351547241, -1.2684664726257324, -0.05525994300842285, 1.48762047290802, -0.8047093152999878, -0.1832374632358551, 0.4884029030799866, 0.46945106983184814, 0.4757727384567261, 0.7201097011566162, -0.6272822618484497, -0.325624942779541, -0.3449246287345886, -0.2604004144668579, 0.234467551112175, 1.2814005613327026, -0.23221774399280548, -1.003852128982544, 0.7641671895980835, -0.24597546458244324, 0.027133800089359283, 1.9268232583999634, 0.11251644045114517, -0.7755637764930725, 0.3273888826370239, -0.714546799659729, 1.8882123231887817, 1.8223702907562256, 1.419499397277832, -0.15377211570739746, -1.0437041521072388, 0.6102127432823181, -0.33364272117614746, -0.288936972618103, 0.9865176677703857, 0.5111943483352661, -0.13249565660953522, -1.4548261165618896, 0.681122899055481, 1.190271258354187, -0.8515512347221375, -0.6845085024833679, 0.08940674364566803, -0.8352015614509583, 1.0735957622528076, 0.7204239964485168, 0.3922695517539978, 0.16447299718856812, 1.570946216583252, 0.7533479332923889, -0.5016369223594666, 0.41593724489212036, 0.5920364856719971, -0.1589338332414627, -2.069843053817749, -1.1207250356674194, 0.34052836894989014, -0.4251476526260376, -1.5062774419784546, 1.3862913846969604, -1.0957764387130737, -0.8995517492294312, 0.5188971161842346, -0.048737965524196625, 1.4403488636016846, 0.3315936326980591, 1.6629358530044556, 2.125385046005249, 0.9498664736747742, 0.3483651876449585, 1.4871853590011597, -0.09337200224399567, -0.33491164445877075, 1.7433651685714722, -0.44193965196609497, 0.40823227167129517, 1.1755715608596802, -0.4301367402076721, -0.9282709956169128, -0.7871120572090149, -1.1054729223251343, -0.632765531539917, 1.0535064935684204, 0.137198343873024, -1.0657459497451782, 0.1997760385274887, 1.5132545232772827, 0.045622725039720535, -0.28205758333206177, 0.6109264492988586, 0.49314457178115845, -0.6831939220428467, -0.12276137620210648, -0.926644504070282, 0.5474743843078613, -0.33873480558395386, -0.38757288455963135, 0.31856054067611694, 0.299949586391449, 1.2791521549224854, 0.060338690876960754, 0.12156377732753754, 1.2855415344238281, -1.3798521757125854, 1.3916974067687988, -0.5989775657653809, 0.23439902067184448, -2.3731820583343506, 1.4323631525039673, -0.7189638018608093, 2.014456033706665, -2.6389107704162598, 0.4324228763580322, -0.5785086154937744, -0.5274529457092285, 0.3946939706802368, -0.4000481963157654, 0.14470379054546356, -0.1750844120979309, -1.0428358316421509, -0.1513669639825821, -0.6878122687339783, 0.612605094909668, 1.0717931985855103, 1.283105492591858, -1.1214609146118164, -0.40241539478302, -1.639282464981079, -0.2562532126903534, -0.5669200420379639, 0.3164917826652527, -1.99161958694458, -0.19867892563343048, -2.0006465911865234, -2.493166446685791, -1.3632876873016357, -0.7563550472259521, 1.1863760948181152, 0.17213074862957, -0.8926225900650024, 1.161244511604309, -0.38047200441360474, -1.8752275705337524, 1.0966275930404663, -2.1302244663238525 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
From some offline discussion with @mariosasko and especially for vision datasets, we'll probably not require dummy data anymore and use streaming instead :) This will make adding a new dataset much easier. This should also make sure that streaming works as expected directly in the CI, without having to check the dataset viewer once the PR is merged
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
58
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw From some offline discussion with @mariosasko and especially for vision datasets, we'll probably not require dummy data anymore and use streaming instead :) This will make adding a new dataset much easier. This should also make sure that streaming works as expected directly in the CI, without having to check the dataset viewer once the PR is merged
[ -1.2832809686660767, -1.0064797401428223, -0.7370743155479431, 1.4576129913330078, -0.18008674681186676, -1.2056732177734375, 0.04832254722714424, -1.1381862163543701, 1.7051395177841187, -0.862552285194397, 0.192937970161438, -1.7478383779525757, 0.04755927994847298, -0.6054860353469849, -0.728938102722168, -0.9471738338470459, -0.4918286204338074, -0.8697499632835388, 1.0459473133087158, 2.4732913970947266, 1.1527435779571533, -1.3874117136001587, 2.7359180450439453, 0.6858317255973816, -0.23135146498680115, -1.0108022689819336, 0.5389114022254944, -0.07704154402017593, -1.2770270109176636, -0.4248109757900238, -0.9618498086929321, -0.09840123355388641, -0.6008764505386353, -0.4858323335647583, 0.042132675647735596, 0.2512226402759552, -0.28956639766693115, -0.3130989074707031, -0.5313526391983032, -0.7653857469558716, 0.5012215375900269, -0.2708253860473633, 0.9596961140632629, -0.3415139317512512, 1.9195276498794556, -0.5684993863105774, 0.33920013904571533, 0.7021809220314026, 1.3422287702560425, 0.231937438249588, 0.011991715990006924, 0.2783994674682617, 0.31041964888572693, -0.00030132755637168884, 0.45656490325927734, 1.0871094465255737, 0.6571818590164185, 0.5027576684951782, 0.7110384106636047, -2.213759422302246, 1.326008677482605, -1.0827170610427856, 0.32344385981559753, 1.4513143301010132, -1.0001624822616577, 0.42983901500701904, -1.7471972703933716, -0.067551389336586, 0.5972209572792053, -2.271268606185913, 0.09193208813667297, -1.1921709775924683, -0.4552356004714966, 1.0109543800354004, 0.29782959818840027, -1.1707922220230103, 0.25069546699523926, -0.4169199466705322, 1.123767375946045, 0.5583075284957886, 1.2195863723754883, -1.7171553373336792, 0.0349922850728035, -0.3228127360343933, 0.15563467144966125, -1.4503140449523926, -1.567160964012146, 0.5120918154716492, 0.6419920921325684, 0.5479996204376221, -0.018349438905715942, 0.9782195687294006, -0.9860933423042297, 0.781697154045105, -0.9013537168502808, -1.5355877876281738, -1.4168237447738647, -2.312121629714966, -2.406306266784668, 0.7819012403488159, -0.5073426961898804, -0.5718315839767456, 2.06292724609375, -1.1019855737686157, -1.7784656286239624, 1.1913986206054688, 0.26143142580986023, -0.009395379573106766, 2.4642014503479004, 0.16365833580493927, -0.6225131750106812, 0.4580531716346741, -0.6617120504379272, 0.8150979280471802, -0.30561521649360657, 1.320905089378357, 0.5373760461807251, -1.0873786211013794, 1.5464295148849487, -0.4040285050868988, 0.5686123371124268, -0.5292280316352844, -0.5544366240501404, -0.9076610803604126, 0.2794225215911865, 1.7515850067138672, -0.2654734253883362, 1.5903807878494263, -0.37476804852485657, -1.5696276426315308, -1.6500651836395264, 0.8826544880867004, 0.5089753866195679, -0.8067911267280579, 0.10926137119531631, -0.3574506640434265, 0.08297699689865112, 0.047243013978004456, 1.0841487646102905, 1.176296591758728, 0.6511454582214355, -0.2686833143234253, -0.8761667013168335, 0.19133779406547546, -0.08040163666009903, -0.7541353106498718, -1.7895543575286865, -0.3093762695789337, 0.10364166647195816, 0.6747481226921082, -1.1449819803237915, 1.5869039297103882, 0.9295738935470581, 1.8138041496276855, 1.0426679849624634, -0.32418355345726013, 1.4912587404251099, -0.0019042622298002243, 1.7715306282043457, -0.47929084300994873, 0.7398765087127686, -0.3929305970668793, -1.2199409008026123, 0.7985495924949646, -0.33808475732803345, -2.0999317169189453, -0.8090922236442566, -0.8102031350135803, -0.19705325365066528, -0.7292950749397278, 0.9613860845565796, -0.27725791931152344, -1.3946250677108765, 0.31549572944641113, -0.5476034879684448, 0.21769769489765167, -1.2325150966644287, 0.40135470032691956, 0.7117276787757874, -0.7305206060409546, -0.06876372545957565, -0.19622933864593506, -1.3014984130859375, -0.4160550832748413, 0.16240011155605316, 1.881330132484436, -0.8407079577445984, 0.8959528207778931, 1.012939214706421, -0.7719821333885193, 0.004085232503712177, 0.2793705463409424, -0.25920963287353516, 0.9074078798294067, -0.9628021717071533, -0.42658498883247375, 1.1553033590316772, -0.176653191447258, -0.6380031704902649, 1.432599425315857, 0.670879065990448, -0.9774163961410522, -0.19517216086387634, -0.19150197505950928, -0.9159783124923706, -0.08533298969268799, -1.6023796796798706, -0.2152225524187088, 0.3058634102344513, -1.5183030366897583, -0.4526914656162262, -0.21292084455490112, 1.340354561805725, -0.19091841578483582, 1.4459284543991089, -0.5103321671485901, -0.17581509053707123, -0.3944047689437866, -0.4013573229312897, 0.24059677124023438, -0.08656000345945358, -0.5421644449234009, 0.23462998867034912, -0.7910627126693726, 0.34828606247901917, 1.3502919673919678, 0.4792748689651489, 0.09550397843122482, 0.4781438112258911, 1.0314275026321411, 0.36991971731185913, -0.08028688281774521, -0.8050561547279358, -1.5475239753723145, 2.125995397567749, -1.4374043941497803, 1.9363105297088623, 0.7233964800834656, -0.10024003684520721, -1.7362980842590332, -1.8562500476837158, 1.3269764184951782, 1.1988214254379272, 2.279813528060913, 0.44005972146987915, 0.41434815526008606, -0.8094415068626404, -0.6173197031021118, 0.398553729057312, -0.9818617105484009, -0.7511709332466125, 0.10692932456731796, 2.3407962322235107, 1.6838152408599854, -0.5336312055587769, -0.16870810091495514, -0.9909550547599792, 1.2450878620147705, -0.11147315055131912, 0.21165482699871063, 2.0116524696350098, -0.38479843735694885, -1.193552851676941, 1.3322428464889526, -2.3565897941589355, 0.043316856026649475, 1.9443473815917969, 0.3374674916267395, 0.08719930052757263, -1.3654817342758179, -0.6273025274276733, -0.25226128101348877, -0.44758716225624084, -1.3119533061981201, 0.5884302258491516, -0.2672339975833893, -0.7522405385971069, -1.5121217966079712, 0.046530768275260925, -1.1821138858795166, -1.6845592260360718, 0.27106553316116333, 1.8228020668029785, 2.1265594959259033, -0.7604440450668335, 1.4650822877883911, -0.25488388538360596, 0.18455323576927185, 1.2279235124588013, 1.2137010097503662, 3.1362247467041016, 1.872728943824768, -1.4053210020065308, 0.6181419491767883, -0.07896129786968231, -0.47146543860435486, 1.1392309665679932, -1.1550946235656738, 1.3041599988937378, -0.1283547729253769, -1.2618441581726074, -1.3135572671890259, 1.0025311708450317, 0.4430478513240814, 0.13013792037963867, -0.44298091530799866, 1.260020136833191, 0.0022965148091316223, 1.3412894010543823, 0.49658074975013733, -0.34839707612991333, 0.4916037619113922, -0.4921410083770752, -0.6055338978767395, 1.640002727508545, 0.1709110140800476, -1.4334583282470703, -2.2701640129089355, -0.29549145698547363, -0.710299015045166, 0.015893079340457916, -0.5359330773353577, -0.8715523481369019, 1.6458014249801636, 0.39371153712272644, -1.345994234085083, -0.3312082588672638, -0.3758850395679474, -0.5888888239860535, 2.63932204246521, -1.4424889087677002, -0.22512975335121155, -0.8889801502227783, -0.6299579739570618, 1.5233958959579468, -1.1953818798065186, -0.21762070059776306, -1.0022871494293213, -0.7234658598899841, -1.4120655059814453, -0.594795823097229, -0.03321869298815727, -1.091923475265503, 0.786841869354248, 0.1798848956823349, -1.0802850723266602, -0.29734763503074646, -0.8398851752281189, 0.9275322556495667, -0.12479101866483688, 0.36436814069747925, 1.8668822050094604, 0.45695164799690247, -0.4539453685283661, 0.673058032989502, 1.1727310419082642, 0.7677988409996033, -0.6688596606254578, 0.14262285828590393, -0.7030014395713806, 0.35196980834007263, -1.262229084968567, 0.3343319892883301, -2.9176132678985596, 0.6801025867462158, -0.0834440216422081, -0.07833576202392578, -0.037637971341609955, -1.234737515449524, 1.0017578601837158, 2.5840673446655273, -1.1860295534133911, 0.38675937056541443, 0.3566763699054718, 1.2409273386001587, -1.5897339582443237, 0.33190488815307617, -0.4391801953315735, 2.2136037349700928, 0.2149418145418167, 1.203410267829895, -0.4514654874801636, -2.2698044776916504, 0.5846683382987976, -1.2957662343978882, -1.219193935394287, 0.8581389784812927, -0.887426495552063, 0.07886507362127304, -1.4161217212677002, -0.18684495985507965, -0.8571609854698181, -1.2576252222061157, 0.7713677883148193, 0.15071508288383484, 0.4710455536842346, -0.6227225065231323, 0.33553439378738403, -2.208157777786255, -1.3066518306732178, -0.21172013878822327, -0.9312613010406494, 0.4156993627548218, -0.35649386048316956, 0.7411227822303772, -0.1909940540790558, 0.0840737372636795, 0.40809354186058044, 1.3726410865783691, 3.316502094268799, 0.25774407386779785, 0.4233356714248657, -0.12905943393707275, -0.9710831046104431, 1.465665578842163, 0.9149628281593323, -0.17328062653541565, -0.5306006669998169, -1.001254677772522, 1.2977983951568604, 1.904817819595337, 0.9680271148681641, 0.031555403023958206, -0.7228900790214539, -0.6153773069381714, 0.06710534542798996, 0.26312801241874695, 0.5134036540985107, 0.8402379155158997, -0.09910068660974503, 0.18444500863552094, 1.4987971782684326, 1.2871841192245483, -0.43016329407691956, 0.37962594628334045, -0.7405024766921997, -0.591054379940033, 0.5241103768348694, 0.30532777309417725, 0.01236520241945982, 0.41639864444732666, -0.9404323101043701, -0.29195722937583923, -0.3114023506641388, -0.974557101726532, -0.702584981918335, -0.3753763437271118, -0.42531028389930725, 1.5641334056854248, 0.10088513046503067, -0.4618855118751526, -0.019050080329179764, -0.8068151473999023, -0.19174900650978088, -1.130922555923462, 0.3211584985256195, -0.101582370698452, -0.15305477380752563, -0.16902092099189758, 1.749570369720459, -0.9988089799880981, -2.0617847442626953, 0.2667388319969177, 0.2976553738117218, -0.31731462478637695, 0.14407609403133392, 1.6651349067687988, 0.46825912594795227, 1.512546420097351, 1.3140478134155273, 0.9398064613342285, -0.6352919340133667, -1.3404066562652588, 0.8017740249633789, 0.8869876861572266, -1.4409922361373901, 0.8265122175216675, -0.07689881324768066, -0.6051586866378784, 0.6607301831245422, 1.2625293731689453, 0.38233044743537903, -1.9657368659973145, 0.8788614273071289, -0.9778236746788025, 0.6544837355613708, 0.6618548035621643, 0.8048431873321533, 0.18241599202156067, 0.855148434638977, -1.2759703397750854, -1.1695339679718018, -0.7731038928031921, -0.5927033424377441, 1.9527722597122192, -0.20705607533454895, 0.5664680004119873, -0.10171633958816528, -1.2885010242462158, -0.05048765242099762, 0.6656049489974976, 0.199774831533432, -0.33965227007865906, 0.9008582234382629, -0.7205616235733032, -1.1415162086486816, -1.3949908018112183, -0.320271760225296, -1.115553855895996, -0.834084153175354, 1.0825830698013306, 0.9047229886054993, 0.1604260802268982, 1.8790357112884521, 0.5077852010726929, 0.32931703329086304, -2.61549973487854, 0.8947535753250122, 0.23370803892612457, -0.1356339454650879, 0.8785126805305481, 0.22821906208992004, 1.0065892934799194, 0.06079592928290367, 0.4964087903499603, -2.384873867034912, 2.2540266513824463, -0.2598493993282318, 0.7109439373016357, 0.00197442714124918, -0.17166642844676971, 1.0979880094528198, 0.619749128818512, 0.5916019678115845, -1.0786737203598022, 0.6838766932487488, -0.552174985408783, 1.1259539127349854, 1.0079302787780762, -0.7962206602096558, -0.08732566982507706, 1.3418112993240356, 0.5216394662857056, -0.46803101897239685, -0.8458380699157715, -0.8936693668365479, 0.8899667859077454, 1.781377911567688, -0.054779864847660065, 0.005911507643759251, 0.8642056584358215, 0.7763630747795105, -1.2619012594223022, 0.14264293015003204, -0.7335556149482727, -0.8256468772888184, 1.5774013996124268, 2.0253074169158936, -0.09602538496255875, -0.10668883472681046, -0.6710783243179321, -1.2391043901443481, 0.8560007214546204, -0.03483317419886589, 0.2645341157913208, 0.6413816809654236, -0.7225474119186401, 1.0793418884277344, 1.0052210092544556, 0.8994669914245605, 0.21351294219493866, 0.2710742652416229, 0.3327100872993469, -0.12697699666023254, -1.0744715929031372, -0.13878998160362244, -1.032924771308899, -2.4540209770202637, 0.523574948310852, -0.28461262583732605, -1.4313846826553345, 0.10042283684015274, -0.9716533422470093, 0.9103119373321533, -0.537774384021759, -1.084679365158081, -1.6353297233581543, 0.2591570019721985, -0.04868447035551071, 0.9325854778289795, -1.619739055633545, 0.035670310258865356, 1.2392735481262207, 0.8755823373794556, -0.542020857334137, 1.0399788618087769, 0.28434309363365173, 0.9663654565811157, 0.8732049465179443, -0.4503757357597351, 0.5466306209564209, 0.18097808957099915, -1.3582568168640137, 0.352599173784256, 1.069465160369873, 0.21036851406097412, 1.4996365308761597, -0.4907546937465668, 0.007626454345881939, 0.4282738268375397, -0.5835861563682556, -0.4059944152832031, -0.5237680673599243, 0.6857050657272339, 0.06744519621133804, -0.8187346458435059, 0.0426592081785202, -0.14652515947818756, -0.37219107151031494, 0.19780829548835754, -1.4424207210540771, -0.20147980749607086, -0.5175678730010986, -0.5838338136672974, -1.2884303331375122, -0.04681789502501488, 1.5150724649429321, -0.8199517130851746, -0.169706329703331, 0.5019384622573853, 0.47290417551994324, 0.4682817757129669, 0.7628468871116638, -0.5933805108070374, -0.3153250515460968, -0.3448357880115509, -0.2827719449996948, 0.27556824684143066, 1.3032280206680298, -0.18773049116134644, -0.9934108853340149, 0.777206301689148, -0.2779792249202728, 0.014533969573676586, 1.9028171300888062, 0.13660494983196259, -0.8036392331123352, 0.3325836956501007, -0.7006019949913025, 1.8936575651168823, 1.8003636598587036, 1.4035162925720215, -0.1203097477555275, -1.0403282642364502, 0.6251206994056702, -0.3299033045768738, -0.2746524214744568, 1.0160675048828125, 0.5323704481124878, -0.1691228598356247, -1.4496722221374512, 0.6906365156173706, 1.2102035284042358, -0.8048216104507446, -0.6856785416603088, 0.050329457968473434, -0.8181474804878235, 1.044921875, 0.701968252658844, 0.341362863779068, 0.17383742332458496, 1.5517702102661133, 0.7526201605796814, -0.5130393505096436, 0.4430573284626007, 0.587212085723877, -0.15974999964237213, -2.0976831912994385, -1.1117427349090576, 0.34569045901298523, -0.4227997958660126, -1.5167326927185059, 1.3466260433197021, -1.111627459526062, -0.9285216331481934, 0.4924115240573883, -0.07214334607124329, 1.3777761459350586, 0.32998403906822205, 1.6388483047485352, 2.14546799659729, 0.9425959587097168, 0.3303358554840088, 1.4750233888626099, -0.12334565073251724, -0.31485992670059204, 1.7269281148910522, -0.42907851934432983, 0.4013700783252716, 1.150926113128662, -0.41061079502105713, -0.9461910128593445, -0.808598518371582, -1.1435295343399048, -0.6621994376182556, 1.1023896932601929, 0.12458599358797073, -1.0720012187957764, 0.2117227464914322, 1.5410370826721191, 0.06296537816524506, -0.2886068820953369, 0.6114605665206909, 0.502280592918396, -0.7271339297294617, -0.10390514880418777, -0.9376823902130127, 0.537517249584198, -0.31655508279800415, -0.38030630350112915, 0.3287433683872223, 0.34228748083114624, 1.2401503324508667, 0.03446993604302406, 0.13096025586128235, 1.2332508563995361, -1.4059007167816162, 1.3827160596847534, -0.6070466637611389, 0.23960399627685547, -2.399630546569824, 1.4428565502166748, -0.6918949484825134, 1.9902194738388062, -2.6489007472991943, 0.47860661149024963, -0.5749974250793457, -0.5090615749359131, 0.4090125560760498, -0.41412344574928284, 0.15652142465114594, -0.16877740621566772, -1.0437016487121582, -0.15661871433258057, -0.6829606890678406, 0.5954510569572449, 1.1040023565292358, 1.28236985206604, -1.1088507175445557, -0.37452518939971924, -1.6395831108093262, -0.248955637216568, -0.5480482578277588, 0.28529876470565796, -2.0313642024993896, -0.22645480930805206, -2.0051772594451904, -2.4956650733947754, -1.319974422454834, -0.7675826549530029, 1.2140611410140991, 0.15428371727466583, -0.9239031076431274, 1.1437982320785522, -0.39364519715309143, -1.886330485343933, 1.1385623216629028, -2.130521774291992 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
It seems that migration from dataset-info.json to dataset card YAML has been acted. Probably it's a good idea, but I didn't find the pros and cons of this decision, so I put some I could think of: pros: - only one file to parse, share, sync - it gives a hint to the users that if you write your dataset card, you should also specify the metadata cons: - the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums - YAML vs JSON: not sure which one is easier for users to fill and maintain - two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. - [low priority] besides the JSON file, we might want to support yaml or toml file if the user prefers (as [prettier](https://prettier.io/docs/en/configuration.html) and others do for their config files, for example). Inside the md, I understand that only YAML is allowed
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
210
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw It seems that migration from dataset-info.json to dataset card YAML has been acted. Probably it's a good idea, but I didn't find the pros and cons of this decision, so I put some I could think of: pros: - only one file to parse, share, sync - it gives a hint to the users that if you write your dataset card, you should also specify the metadata cons: - the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums - YAML vs JSON: not sure which one is easier for users to fill and maintain - two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. - [low priority] besides the JSON file, we might want to support yaml or toml file if the user prefers (as [prettier](https://prettier.io/docs/en/configuration.html) and others do for their config files, for example). Inside the md, I understand that only YAML is allowed
[ -1.237102746963501, -0.9731717109680176, -0.8035175204277039, 1.4409068822860718, -0.1700512170791626, -1.2164727449417114, 0.008165930397808552, -1.133605718612671, 1.7197247743606567, -0.8496547937393188, 0.1967363953590393, -1.7123703956604004, 0.06044725328683853, -0.5918886661529541, -0.7764288187026978, -0.9239069223403931, -0.4735833406448364, -0.8907158970832825, 1.0591099262237549, 2.4674675464630127, 1.1567269563674927, -1.4208208322525024, 2.7504236698150635, 0.6428049802780151, -0.18538227677345276, -1.017531156539917, 0.5375414490699768, -0.06299687176942825, -1.2847490310668945, -0.4773581027984619, -0.957000732421875, -0.08987840265035629, -0.6156466007232666, -0.5117939114570618, 0.05796072632074356, 0.3509801924228668, -0.2456866204738617, -0.33447006344795227, -0.5900352001190186, -0.6967785954475403, 0.5306559801101685, -0.2885833978652954, 0.9929366707801819, -0.3379742205142975, 1.89757239818573, -0.4799395799636841, 0.3395969569683075, 0.7087105512619019, 1.349471926689148, 0.25983327627182007, 0.021357666701078415, 0.2548268437385559, 0.35288122296333313, -0.05199145898222923, 0.4362115263938904, 1.1291173696517944, 0.6694541573524475, 0.5204780101776123, 0.7860265970230103, -2.188567638397217, 1.348303198814392, -1.040812373161316, 0.35974782705307007, 1.4331735372543335, -1.0032844543457031, 0.44404032826423645, -1.7802459001541138, -0.02670777589082718, 0.5311475396156311, -2.3097050189971924, 0.10163933783769608, -1.1624828577041626, -0.47548583149909973, 1.0318022966384888, 0.28924745321273804, -1.1873881816864014, 0.272227019071579, -0.4660052955150604, 1.082503318786621, 0.5277422070503235, 1.24301016330719, -1.6605666875839233, 0.04708297550678253, -0.26923415064811707, 0.17167377471923828, -1.3568211793899536, -1.563477873802185, 0.48299089074134827, 0.6415277719497681, 0.5203898549079895, -0.10717266798019409, 0.989215075969696, -0.9980428218841553, 0.7585605382919312, -0.924041748046875, -1.6154227256774902, -1.4331915378570557, -2.241407871246338, -2.3703596591949463, 0.7922766208648682, -0.5209149122238159, -0.5497775673866272, 2.0934877395629883, -1.085208773612976, -1.734683871269226, 1.176544427871704, 0.3044029772281647, 0.04115375503897667, 2.4498419761657715, 0.15853802859783173, -0.6728802919387817, 0.5033068060874939, -0.6278004050254822, 0.8256977200508118, -0.31071287393569946, 1.3298494815826416, 0.4515441060066223, -1.0618760585784912, 1.560675024986267, -0.3770154118537903, 0.5839616060256958, -0.5557528734207153, -0.5355233550071716, -0.8535141348838806, 0.3092172145843506, 1.7958436012268066, -0.265511155128479, 1.5760504007339478, -0.38371220231056213, -1.6220362186431885, -1.645562767982483, 0.8916701674461365, 0.48733803629875183, -0.838800847530365, 0.10219341516494751, -0.38611477613449097, 0.07862105220556259, 0.05162381753325462, 1.0971242189407349, 1.2303481101989746, 0.6639058589935303, -0.25901439785957336, -0.8789511322975159, 0.15833880007266998, -0.07103826850652695, -0.6712222099304199, -1.789319634437561, -0.3111700713634491, 0.1068534255027771, 0.660610556602478, -1.160383701324463, 1.6087204217910767, 0.9315873980522156, 1.8838568925857544, 1.0307730436325073, -0.3366391360759735, 1.5232648849487305, 0.055559225380420685, 1.7687665224075317, -0.5179674029350281, 0.6931200623512268, -0.37918820977211, -1.1977577209472656, 0.7850726246833801, -0.35966363549232483, -2.049196243286133, -0.7579976916313171, -0.8016749024391174, -0.1829739362001419, -0.7179848551750183, 0.9734835028648376, -0.27591684460639954, -1.3911612033843994, 0.2811182737350464, -0.5680725574493408, 0.13970710337162018, -1.2259713411331177, 0.3682337999343872, 0.7271358966827393, -0.7066764235496521, -0.005662913434207439, -0.24806739389896393, -1.2943425178527832, -0.4437618553638458, 0.24160648882389069, 1.8032991886138916, -0.8323814868927002, 0.8933167457580566, 1.025224208831787, -0.7611960172653198, 0.03765815868973732, 0.3384784162044525, -0.2719949781894684, 0.8740684390068054, -1.0095975399017334, -0.45659053325653076, 1.1786010265350342, -0.2187347710132599, -0.5917539000511169, 1.3884594440460205, 0.6410369873046875, -1.013565182685852, -0.18709667026996613, -0.13987772166728973, -0.9595913290977478, -0.07521528005599976, -1.5725069046020508, -0.20140518248081207, 0.3118480443954468, -1.5673542022705078, -0.4528840184211731, -0.2473212629556656, 1.3040030002593994, -0.13325950503349304, 1.4618110656738281, -0.42403966188430786, -0.18369336426258087, -0.4064861834049225, -0.42891499400138855, 0.1956944614648819, -0.1673375815153122, -0.5585947036743164, 0.2536056935787201, -0.8161523938179016, 0.30965352058410645, 1.3939857482910156, 0.4672052562236786, 0.07288048416376114, 0.49755164980888367, 1.0859816074371338, 0.4161864221096039, -0.06810063123703003, -0.837175190448761, -1.5171304941177368, 2.1078269481658936, -1.503109335899353, 1.9198527336120605, 0.7644991278648376, -0.08022023737430573, -1.7396856546401978, -1.8031970262527466, 1.3788350820541382, 1.1446462869644165, 2.3262135982513428, 0.49629440903663635, 0.3725133240222931, -0.784414529800415, -0.6251049041748047, 0.4190689027309418, -0.973767101764679, -0.7684624791145325, 0.09479332715272903, 2.395329713821411, 1.7195771932601929, -0.5028427839279175, -0.18678003549575806, -0.9493840336799622, 1.3192825317382812, -0.13837288320064545, 0.21249081194400787, 2.003861904144287, -0.2825137972831726, -1.148148536682129, 1.316257119178772, -2.349611759185791, 0.08894962072372437, 1.9451285600662231, 0.33355018496513367, 0.08867613971233368, -1.4240412712097168, -0.6201911568641663, -0.218148872256279, -0.4297936260700226, -1.3220347166061401, 0.5868024826049805, -0.2989058494567871, -0.8038712739944458, -1.513023853302002, 0.08692846447229385, -1.1946637630462646, -1.6586381196975708, 0.3146040141582489, 1.9016931056976318, 2.1076645851135254, -0.7301216125488281, 1.535725474357605, -0.2674592435359955, 0.17318709194660187, 1.21379816532135, 1.217193365097046, 3.1971843242645264, 1.8654958009719849, -1.3686447143554688, 0.5231820344924927, -0.11159395426511765, -0.48951664566993713, 1.1199619770050049, -1.139672040939331, 1.2955580949783325, -0.1444372981786728, -1.2437559366226196, -1.2278671264648438, 1.019189715385437, 0.46863463521003723, 0.09405820071697235, -0.49736908078193665, 1.1819249391555786, 0.015463653020560741, 1.2873015403747559, 0.5188831686973572, -0.3780074417591095, 0.544147253036499, -0.46133869886398315, -0.5952137112617493, 1.5964465141296387, 0.15871606767177582, -1.440571904182434, -2.2187232971191406, -0.2809780538082123, -0.73248690366745, 0.08740095049142838, -0.5511884093284607, -0.8763229250907898, 1.6349023580551147, 0.4077657461166382, -1.3617230653762817, -0.32845452427864075, -0.37696748971939087, -0.6133249998092651, 2.6025068759918213, -1.397959589958191, -0.2551286220550537, -0.8780875205993652, -0.592563807964325, 1.5389982461929321, -1.1686959266662598, -0.24908700585365295, -1.0072444677352905, -0.665368378162384, -1.3515397310256958, -0.6034205555915833, 0.004209250211715698, -0.985679030418396, 0.8109675645828247, 0.17005138099193573, -1.1059269905090332, -0.2752610445022583, -0.8580898642539978, 0.8954628705978394, -0.13571691513061523, 0.2635144293308258, 1.8969478607177734, 0.3928983211517334, -0.49228087067604065, 0.7003464102745056, 1.1514679193496704, 0.7126920223236084, -0.6686070561408997, 0.12635290622711182, -0.6998893022537231, 0.33570653200149536, -1.2964733839035034, 0.33468303084373474, -2.9137935638427734, 0.6708251237869263, -0.07288949191570282, -0.09491875767707825, 0.008106266148388386, -1.2323615550994873, 1.0195541381835938, 2.6020727157592773, -1.1251146793365479, 0.3972671627998352, 0.3397805988788605, 1.234337329864502, -1.6466373205184937, 0.3184771239757538, -0.4578186869621277, 2.1434359550476074, 0.16418126225471497, 1.1971217393875122, -0.48112621903419495, -2.2928032875061035, 0.5660203695297241, -1.2643786668777466, -1.1482610702514648, 0.8174600601196289, -0.8647732138633728, 0.0544658824801445, -1.4330321550369263, -0.16876904666423798, -0.8524681925773621, -1.225915789604187, 0.7165213823318481, 0.1835831105709076, 0.4523777365684509, -0.6178721785545349, 0.3096170127391815, -2.16194224357605, -1.344403862953186, -0.23190581798553467, -0.9310476183891296, 0.429670125246048, -0.3997286558151245, 0.7421085238456726, -0.20334923267364502, 0.01624031737446785, 0.382497638463974, 1.3479665517807007, 3.286160945892334, 0.2080449014902115, 0.36166903376579285, -0.18635709583759308, -0.9732034802436829, 1.4812748432159424, 0.959791898727417, -0.17929066717624664, -0.5806043148040771, -1.016152262687683, 1.286433219909668, 1.9470454454421997, 0.9936572909355164, 0.030612781643867493, -0.754597008228302, -0.6823357343673706, 0.06937601417303085, 0.22451414167881012, 0.5389932990074158, 0.8577842712402344, -0.07573305070400238, 0.16481181979179382, 1.4789555072784424, 1.231284260749817, -0.37196144461631775, 0.39788711071014404, -0.7590444684028625, -0.5360532402992249, 0.48774826526641846, 0.3317621350288391, 0.013978748582303524, 0.34544849395751953, -0.9985122680664062, -0.2643977701663971, -0.37258613109588623, -0.9623653888702393, -0.7063108086585999, -0.3470340669155121, -0.36827197670936584, 1.622880458831787, 0.11872635781764984, -0.5009206533432007, -0.035767942667007446, -0.7630937099456787, -0.17534905672073364, -1.1156798601150513, 0.33188503980636597, -0.1286969929933548, -0.14516055583953857, -0.13527154922485352, 1.7243788242340088, -0.9753552675247192, -2.1053309440612793, 0.26409050822257996, 0.22736084461212158, -0.296088844537735, 0.15927016735076904, 1.6123631000518799, 0.49721744656562805, 1.476755142211914, 1.391197681427002, 0.9345077872276306, -0.6615457534790039, -1.317169427871704, 0.7649363279342651, 0.912390410900116, -1.447167158126831, 0.8372701406478882, -0.09056534618139267, -0.6338239908218384, 0.6909739375114441, 1.3120986223220825, 0.3758939802646637, -2.004326105117798, 0.9033467769622803, -0.9348195195198059, 0.7204605937004089, 0.6589705944061279, 0.7386454343795776, 0.17316341400146484, 0.8241481781005859, -1.2545644044876099, -1.2161685228347778, -0.7330042123794556, -0.6362795829772949, 1.9695433378219604, -0.19643086194992065, 0.5747692584991455, -0.1290622353553772, -1.2796043157577515, -0.059896375983953476, 0.6343259811401367, 0.2577160894870758, -0.38061755895614624, 0.8357630372047424, -0.752723217010498, -1.182145118713379, -1.4195373058319092, -0.3939664959907532, -1.074535846710205, -0.8583387136459351, 1.0980640649795532, 0.8595632910728455, 0.2130214273929596, 1.8754552602767944, 0.572702944278717, 0.3038785457611084, -2.6434061527252197, 0.9020159244537354, 0.320141464471817, -0.17499959468841553, 0.8838693499565125, 0.2886127531528473, 1.005482792854309, 0.06099787354469299, 0.540080189704895, -2.369398832321167, 2.2941908836364746, -0.24084579944610596, 0.7832310199737549, 0.007497305981814861, -0.1945292204618454, 1.119372844696045, 0.629300594329834, 0.5991238951683044, -1.078291893005371, 0.7144771814346313, -0.5384320616722107, 1.1158442497253418, 0.9893506169319153, -0.778704822063446, -0.008657320402562618, 1.3174312114715576, 0.5064651966094971, -0.5313875079154968, -0.8852245807647705, -0.8909436464309692, 0.9160009622573853, 1.845619559288025, -0.04153752326965332, 0.05999777466058731, 0.85393226146698, 0.7243103384971619, -1.270635962486267, 0.14640772342681885, -0.725266695022583, -0.8151633739471436, 1.5548733472824097, 1.996510624885559, -0.12496717274188995, -0.07500152289867401, -0.6955690383911133, -1.277680516242981, 0.83425372838974, 0.004267172887921333, 0.2465222030878067, 0.6410860419273376, -0.7319560050964355, 1.1109219789505005, 0.9890885949134827, 0.8506622314453125, 0.18959033489227295, 0.2587205469608307, 0.3775195777416229, -0.20104536414146423, -1.029754400253296, -0.1850995123386383, -0.9942095279693604, -2.3922340869903564, 0.49472466111183167, -0.22237947583198547, -1.414686918258667, 0.03562714159488678, -0.959709882736206, 0.8855000138282776, -0.5395664572715759, -1.0860114097595215, -1.5970600843429565, 0.2523960471153259, -0.10083659738302231, 0.92741459608078, -1.62050461769104, -0.057755421847105026, 1.2135436534881592, 0.9054304361343384, -0.6182288527488708, 0.9864603281021118, 0.22325192391872406, 0.9568288326263428, 0.8692238330841064, -0.4362625777721405, 0.46880969405174255, 0.19628764688968658, -1.331821084022522, 0.3682507574558258, 1.0980511903762817, 0.16505135595798492, 1.4562625885009766, -0.5045070648193359, -0.03620293736457825, 0.4263003468513489, -0.5292131304740906, -0.4132888913154602, -0.5485677123069763, 0.6797019243240356, 0.0005341498181223869, -0.8008274435997009, 0.07256503403186798, -0.12360802292823792, -0.33091750741004944, 0.19717535376548767, -1.48250412940979, -0.20412053167819977, -0.47308585047721863, -0.540269136428833, -1.2832882404327393, -0.04907133802771568, 1.4745495319366455, -0.783466100692749, -0.22902090847492218, 0.4910811483860016, 0.46848568320274353, 0.4309672713279724, 0.7098162770271301, -0.682333767414093, -0.3361981213092804, -0.2670842707157135, -0.3114579916000366, 0.24149219691753387, 1.3223897218704224, -0.15772303938865662, -0.9580787420272827, 0.7097752094268799, -0.31201624870300293, -0.004640387371182442, 1.9318675994873047, 0.10005223751068115, -0.7896023988723755, 0.3666638731956482, -0.7183525562286377, 1.912684440612793, 1.804189920425415, 1.4280301332473755, -0.17774799466133118, -1.0147223472595215, 0.6348831653594971, -0.3242660462856293, -0.3220052123069763, 0.9878399968147278, 0.42370396852493286, -0.18499755859375, -1.5228171348571777, 0.6578690409660339, 1.252333164215088, -0.8578485250473022, -0.6995031237602234, 0.09167693555355072, -0.81471848487854, 1.0651403665542603, 0.7110047936439514, 0.3849349021911621, 0.15289856493473053, 1.5849285125732422, 0.7606536149978638, -0.49293628334999084, 0.4619836211204529, 0.5436831116676331, -0.14848513901233673, -2.106739044189453, -1.165371298789978, 0.33263686299324036, -0.44779157638549805, -1.5107693672180176, 1.4024399518966675, -1.1139286756515503, -0.9448237419128418, 0.4702827036380768, -0.05276966840028763, 1.3726519346237183, 0.3162107765674591, 1.6301579475402832, 2.163881778717041, 0.9517441987991333, 0.3702155649662018, 1.4120290279388428, -0.14197589457035065, -0.31730198860168457, 1.7841553688049316, -0.42526498436927795, 0.44442376494407654, 1.1316267251968384, -0.41606494784355164, -0.9885575771331787, -0.7780418395996094, -1.1507161855697632, -0.6965911984443665, 1.0659607648849487, 0.08730906248092651, -1.0796421766281128, 0.2515977919101715, 1.553496241569519, 0.09804808348417282, -0.30666396021842957, 0.6039563417434692, 0.52475905418396, -0.7099239230155945, -0.09001205116510391, -0.922924816608429, 0.5180356502532959, -0.34345191717147827, -0.4703681468963623, 0.3731760084629059, 0.3630126416683197, 1.2805200815200806, 0.04587153345346451, 0.10083392262458801, 1.2235339879989624, -1.4244505167007446, 1.4162356853485107, -0.69789719581604, 0.26665228605270386, -2.4093704223632812, 1.4400235414505005, -0.7224074006080627, 2.0325088500976562, -2.6195197105407715, 0.46235862374305725, -0.6008806824684143, -0.5353692770004272, 0.41031357645988464, -0.3249910771846771, 0.17291736602783203, -0.1637912541627884, -1.0648659467697144, -0.09075123071670532, -0.6837030053138733, 0.5950284004211426, 1.1316356658935547, 1.3004565238952637, -1.0907270908355713, -0.36314794421195984, -1.6913825273513794, -0.25179097056388855, -0.5788103342056274, 0.28591346740722656, -2.0348281860351562, -0.23933403193950653, -1.9434280395507812, -2.4361448287963867, -1.3583831787109375, -0.839713454246521, 1.2089171409606934, 0.2081766277551651, -0.907122790813446, 1.2273361682891846, -0.39952290058135986, -1.8717926740646362, 1.0926846265792847, -2.1025772094726562 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
> the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums Note that we could simply not have the checksums in the YAML metadata at all, or maybe at one point have a pointer to another file instead. We can also choose to hide (collapse) certain sections in the YAML by default when we open the dataset card editor. > two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. I think it's fine for now. Later if we really end up with too many YAML sections we can see if we need to tweak the API endpoints or the `datasets`/`huggingface_hub` tools > YAML vs JSON: not sure which one is easier for users to fill and maintain Regarding YAML vs JSON: I think YAML is easier to write by hand, and I also think that it's better for consistency - i.e. we're using more and more YAML to configure models/datasets/spaces
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
214
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw > the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums Note that we could simply not have the checksums in the YAML metadata at all, or maybe at one point have a pointer to another file instead. We can also choose to hide (collapse) certain sections in the YAML by default when we open the dataset card editor. > two concepts are mixed in the same file (metadata and documentation). This means that if you're interested only in one of them, you still have to know how to parse the whole file. I think it's fine for now. Later if we really end up with too many YAML sections we can see if we need to tweak the API endpoints or the `datasets`/`huggingface_hub` tools > YAML vs JSON: not sure which one is easier for users to fill and maintain Regarding YAML vs JSON: I think YAML is easier to write by hand, and I also think that it's better for consistency - i.e. we're using more and more YAML to configure models/datasets/spaces
[ -1.247182846069336, -0.9961340427398682, -0.7782561182975769, 1.4356188774108887, -0.1676935851573944, -1.2322998046875, 0.04231962561607361, -1.166388750076294, 1.7340019941329956, -0.8618057370185852, 0.22801657021045685, -1.721378207206726, 0.03457263112068176, -0.5685237050056458, -0.7732717990875244, -0.9277895092964172, -0.4891887605190277, -0.8826552629470825, 1.051145315170288, 2.446521759033203, 1.219616174697876, -1.3708512783050537, 2.7248177528381348, 0.645755410194397, -0.24250644445419312, -1.0416733026504517, 0.5247791409492493, -0.09008419513702393, -1.2685903310775757, -0.4839683473110199, -0.9394077658653259, -0.06256522983312607, -0.5979526042938232, -0.5403326749801636, 0.059487856924533844, 0.31214216351509094, -0.27472561597824097, -0.3126172423362732, -0.6069746613502502, -0.7103806138038635, 0.5178703665733337, -0.335050493478775, 0.9940767884254456, -0.3146488666534424, 1.8637773990631104, -0.5063223242759705, 0.4009743928909302, 0.7247770428657532, 1.4008949995040894, 0.2362852543592453, -0.00868619792163372, 0.2727506160736084, 0.3835884630680084, -0.046011388301849365, 0.4404716491699219, 1.1522215604782104, 0.6372891068458557, 0.5257695317268372, 0.7562969923019409, -2.2561588287353516, 1.3218624591827393, -1.0442806482315063, 0.3028792142868042, 1.413515567779541, -0.9518933296203613, 0.4289368987083435, -1.770958423614502, -0.016464369371533394, 0.5367058515548706, -2.3417577743530273, 0.09788151830434799, -1.2156102657318115, -0.47589749097824097, 0.9979919791221619, 0.2540169656276703, -1.2050344944000244, 0.2652173638343811, -0.4282791018486023, 1.0965548753738403, 0.5704712867736816, 1.2291686534881592, -1.6808698177337646, -0.01019177958369255, -0.2565400004386902, 0.16465307772159576, -1.3594037294387817, -1.5899922847747803, 0.4680153727531433, 0.6624327301979065, 0.48034390807151794, -0.08446075767278671, 1.0340585708618164, -0.9430827498435974, 0.7820473909378052, -0.9324175715446472, -1.6235162019729614, -1.4433143138885498, -2.2070605754852295, -2.2985503673553467, 0.7481221556663513, -0.5473089218139648, -0.5715001225471497, 2.0622096061706543, -1.1125391721725464, -1.780410885810852, 1.2163565158843994, 0.28401151299476624, 0.059817664325237274, 2.4396069049835205, 0.13057266175746918, -0.6372143030166626, 0.48120352625846863, -0.6235510110855103, 0.813697874546051, -0.3138553500175476, 1.3056275844573975, 0.4127082824707031, -1.0627771615982056, 1.563275694847107, -0.3812180161476135, 0.5648653507232666, -0.5763188004493713, -0.5377044677734375, -0.8468506932258606, 0.313410222530365, 1.809008240699768, -0.31063807010650635, 1.5932899713516235, -0.46194612979888916, -1.5988917350769043, -1.6727464199066162, 0.8877445459365845, 0.49876880645751953, -0.8534714579582214, 0.10150623321533203, -0.37210512161254883, 0.08280383050441742, 0.04453565925359726, 1.0988116264343262, 1.2480179071426392, 0.6877085566520691, -0.25350692868232727, -0.86639404296875, 0.18117471039295197, -0.05573885887861252, -0.6681826710700989, -1.784244179725647, -0.36485564708709717, 0.13277676701545715, 0.659246027469635, -1.1226693391799927, 1.5995171070098877, 0.9331863522529602, 1.8902760744094849, 1.0479917526245117, -0.3621736466884613, 1.5094746351242065, 0.07788383215665817, 1.759169578552246, -0.5103081464767456, 0.6925303936004639, -0.40105190873146057, -1.1982074975967407, 0.7858802080154419, -0.3256210386753082, -2.00669527053833, -0.7527917623519897, -0.7714137434959412, -0.22101686894893646, -0.7426767945289612, 0.9522393345832825, -0.2803580164909363, -1.340238332748413, 0.2714603543281555, -0.5696887373924255, 0.13846684992313385, -1.2018370628356934, 0.4101721942424774, 0.7374128103256226, -0.7311676740646362, -0.018463628366589546, -0.24477580189704895, -1.2958722114562988, -0.4589819014072418, 0.21995456516742706, 1.8179664611816406, -0.8194252848625183, 0.8638120293617249, 1.0135383605957031, -0.758384108543396, 0.064362071454525, 0.31870025396347046, -0.2376524955034256, 0.8747886419296265, -0.9732791781425476, -0.41432997584342957, 1.1917085647583008, -0.2069375365972519, -0.6113393902778625, 1.3832911252975464, 0.6460909843444824, -0.987811803817749, -0.20188210904598236, -0.15176180005073547, -0.9466376304626465, -0.09665749967098236, -1.5901854038238525, -0.19760969281196594, 0.3214964270591736, -1.5486522912979126, -0.46895095705986023, -0.27533477544784546, 1.3157026767730713, -0.13739219307899475, 1.4633526802062988, -0.467837393283844, -0.16956529021263123, -0.4138290286064148, -0.38048532605171204, 0.17173749208450317, -0.17527641355991364, -0.5855498909950256, 0.22167111933231354, -0.8356010317802429, 0.3278363347053528, 1.400712013244629, 0.4712323248386383, 0.06549767404794693, 0.4648852050304413, 1.1152890920639038, 0.4198189377784729, -0.09256969392299652, -0.8378191590309143, -1.5175580978393555, 2.0962038040161133, -1.4810490608215332, 1.9193429946899414, 0.7555447816848755, -0.0827653706073761, -1.743391990661621, -1.8469434976577759, 1.3314385414123535, 1.1247259378433228, 2.3004331588745117, 0.48566776514053345, 0.4038293659687042, -0.7660396695137024, -0.6318780183792114, 0.3886962831020355, -0.9970262050628662, -0.7855950593948364, 0.08862220495939255, 2.3652658462524414, 1.6969804763793945, -0.5335283279418945, -0.1861969232559204, -0.9597826600074768, 1.286574125289917, -0.08241383731365204, 0.2309451401233673, 1.9633933305740356, -0.29947134852409363, -1.1523188352584839, 1.2929352521896362, -2.3277251720428467, 0.0716932862997055, 1.9677565097808838, 0.270786315202713, 0.07473112642765045, -1.38600492477417, -0.5987453460693359, -0.19871799647808075, -0.4130568206310272, -1.3112268447875977, 0.5748022198677063, -0.2925279438495636, -0.8045133948326111, -1.4845269918441772, 0.09544402360916138, -1.1671340465545654, -1.6335231065750122, 0.3165450096130371, 1.943845272064209, 2.062260627746582, -0.743260383605957, 1.5255703926086426, -0.267850399017334, 0.1456930935382843, 1.2239055633544922, 1.2254235744476318, 3.192437171936035, 1.8892631530761719, -1.3825777769088745, 0.5304709672927856, -0.11545132845640182, -0.49224233627319336, 1.134050965309143, -1.1424534320831299, 1.2884132862091064, -0.15676762163639069, -1.2673283815383911, -1.2560127973556519, 1.0282351970672607, 0.4513843059539795, 0.09349662065505981, -0.5240787863731384, 1.1999338865280151, 0.021833699196577072, 1.2953473329544067, 0.5120481848716736, -0.38515010476112366, 0.5771898627281189, -0.4490390419960022, -0.6093854308128357, 1.577219843864441, 0.1779065728187561, -1.4186371564865112, -2.2455999851226807, -0.2237299233675003, -0.7381212115287781, 0.10082229226827621, -0.5582547783851624, -0.8768526911735535, 1.646358847618103, 0.41701263189315796, -1.4066191911697388, -0.35924434661865234, -0.3887516260147095, -0.6029938459396362, 2.6086721420288086, -1.433892011642456, -0.24478548765182495, -0.9254498481750488, -0.5831368565559387, 1.5718759298324585, -1.1991924047470093, -0.22562378644943237, -0.9988033175468445, -0.6532968878746033, -1.3500511646270752, -0.6030728220939636, 0.004224260337650776, -0.9950238466262817, 0.779911994934082, 0.2118842750787735, -1.107729434967041, -0.2993856370449066, -0.8165803551673889, 0.9089524149894714, -0.17207291722297668, 0.28336814045906067, 1.949220895767212, 0.4226689040660858, -0.43760883808135986, 0.6792593598365784, 1.101737141609192, 0.657102644443512, -0.636027991771698, 0.12840485572814941, -0.6922552585601807, 0.35732463002204895, -1.3417166471481323, 0.30574971437454224, -2.880633592605591, 0.7053705453872681, -0.061002135276794434, -0.08064361661672592, -0.006707492750138044, -1.261361837387085, 0.9996544718742371, 2.6238067150115967, -1.1241179704666138, 0.39359572529792786, 0.3533962070941925, 1.2407468557357788, -1.6294482946395874, 0.32838326692581177, -0.4488726854324341, 2.2023797035217285, 0.18937338888645172, 1.2207332849502563, -0.47084805369377136, -2.259258985519409, 0.5605720281600952, -1.2026761770248413, -1.1705185174942017, 0.8376833200454712, -0.8458870053291321, -0.017386605963110924, -1.4596433639526367, -0.17872631549835205, -0.849929690361023, -1.1820698976516724, 0.7864397168159485, 0.1355791985988617, 0.4532400071620941, -0.6431806683540344, 0.3376259505748749, -2.151280641555786, -1.2915153503417969, -0.2564588487148285, -0.9368016123771667, 0.42584463953971863, -0.38349106907844543, 0.7176957130432129, -0.19141922891139984, 0.012521950528025627, 0.38617533445358276, 1.3562136888504028, 3.313267230987549, 0.25829431414604187, 0.35058823227882385, -0.1972714066505432, -0.9506425857543945, 1.4727303981781006, 0.9512494802474976, -0.19535835087299347, -0.5413225293159485, -1.011629581451416, 1.290015459060669, 1.8962277173995972, 0.9480974674224854, 0.09374241530895233, -0.7741665840148926, -0.7127141356468201, 0.03375006467103958, 0.20359204709529877, 0.5345600247383118, 0.8666042685508728, -0.044758811593055725, 0.19512350857257843, 1.4551684856414795, 1.2785484790802002, -0.37399885058403015, 0.4382432699203491, -0.7861864566802979, -0.5592459440231323, 0.44908952713012695, 0.33491429686546326, 0.005606593564152718, 0.3458996117115021, -0.9339687824249268, -0.28252479434013367, -0.3910418748855591, -0.9195417165756226, -0.7364773154258728, -0.33338454365730286, -0.3396472930908203, 1.577620029449463, 0.14574983716011047, -0.48261559009552, -0.016678959131240845, -0.7849845886230469, -0.18515031039714813, -1.1236319541931152, 0.33977633714675903, -0.1281016618013382, -0.1886105090379715, -0.12717226147651672, 1.680891752243042, -0.9685728549957275, -2.0941121578216553, 0.2982739210128784, 0.2122069150209427, -0.36680087447166443, 0.20137523114681244, 1.6352052688598633, 0.5059230923652649, 1.486168384552002, 1.3688879013061523, 0.9282724857330322, -0.6388364434242249, -1.2660223245620728, 0.75493985414505, 0.8488976359367371, -1.4665864706039429, 0.8304187059402466, -0.029031580314040184, -0.6013999581336975, 0.6943468451499939, 1.260990023612976, 0.37976256012916565, -2.007631540298462, 0.9229936599731445, -0.9197282195091248, 0.7130432724952698, 0.6941678524017334, 0.7531381249427795, 0.20710328221321106, 0.8312931656837463, -1.219838261604309, -1.2374191284179688, -0.7421001195907593, -0.6249381899833679, 1.9575763940811157, -0.23079682886600494, 0.5942554473876953, -0.1443709284067154, -1.271257996559143, -0.10611625015735626, 0.6249089241027832, 0.26170140504837036, -0.4091833531856537, 0.8586845993995667, -0.7134276628494263, -1.136492371559143, -1.3943537473678589, -0.39851319789886475, -1.074906826019287, -0.907965898513794, 1.082261085510254, 0.9131101965904236, 0.19492651522159576, 1.8825780153274536, 0.5262511372566223, 0.3092569410800934, -2.6654841899871826, 0.9271705150604248, 0.3071684241294861, -0.17764315009117126, 0.8938156962394714, 0.2935723662376404, 0.9753347635269165, 0.06361603736877441, 0.5242760181427002, -2.3876969814300537, 2.323087692260742, -0.24408413469791412, 0.7664318680763245, -0.03782384842634201, -0.17820945382118225, 1.135115623474121, 0.6040268540382385, 0.6027864217758179, -1.0901970863342285, 0.7378825545310974, -0.5522825717926025, 1.1343119144439697, 0.9894564151763916, -0.7907211780548096, -0.034517109394073486, 1.355553150177002, 0.4907039701938629, -0.5623148679733276, -0.8525876998901367, -0.9065555334091187, 0.8882343769073486, 1.8227217197418213, 0.0036649443209171295, 0.05653013288974762, 0.85610032081604, 0.7327138185501099, -1.2998783588409424, 0.17531077563762665, -0.7301872372627258, -0.8009949922561646, 1.556039571762085, 1.989851951599121, -0.12546378374099731, -0.11180026829242706, -0.7068782448768616, -1.2535696029663086, 0.8550432920455933, 0.02311570942401886, 0.24938629567623138, 0.6304818987846375, -0.7402445673942566, 1.1441352367401123, 1.0086984634399414, 0.8822795152664185, 0.2074502557516098, 0.3239780068397522, 0.37031835317611694, -0.23888905346393585, -1.033947229385376, -0.13964888453483582, -1.0229671001434326, -2.3593437671661377, 0.5139936804771423, -0.2154962122440338, -1.395141363143921, 0.0367870107293129, -0.9833759665489197, 0.8823717832565308, -0.5750803351402283, -1.0918078422546387, -1.6201552152633667, 0.21546489000320435, -0.06688929349184036, 0.9376893639564514, -1.6113371849060059, -0.02242576703429222, 1.1974538564682007, 0.9258996248245239, -0.5618056058883667, 0.9808131456375122, 0.27029964327812195, 0.9919547438621521, 0.8957826495170593, -0.44039005041122437, 0.4685368537902832, 0.1221529170870781, -1.3239514827728271, 0.34680065512657166, 1.0662258863449097, 0.2310613989830017, 1.4873462915420532, -0.5274102687835693, -0.04879659414291382, 0.43507081270217896, -0.537730872631073, -0.41564232110977173, -0.5101097226142883, 0.7055486440658569, 0.03476281464099884, -0.7911118865013123, 0.06046026945114136, -0.13813327252864838, -0.3408554196357727, 0.1871119737625122, -1.4857821464538574, -0.17443622648715973, -0.47362953424453735, -0.5630216002464294, -1.278565526008606, -0.048585958778858185, 1.4773578643798828, -0.7871909737586975, -0.20918749272823334, 0.4836711585521698, 0.41978928446769714, 0.4234185218811035, 0.701866090297699, -0.6867658495903015, -0.330567330121994, -0.2818138003349304, -0.3050037622451782, 0.2548697292804718, 1.321926236152649, -0.17364543676376343, -0.9516682624816895, 0.7022188305854797, -0.30315399169921875, -0.02797241136431694, 1.9269824028015137, 0.07677512615919113, -0.7828559875488281, 0.3208923637866974, -0.7132185697555542, 1.9153776168823242, 1.8251192569732666, 1.4393631219863892, -0.1577685922384262, -1.042494535446167, 0.6448845863342285, -0.33476388454437256, -0.3125854730606079, 0.9886634945869446, 0.4530986249446869, -0.14739730954170227, -1.5098413228988647, 0.6290374994277954, 1.2270747423171997, -0.8727344870567322, -0.6951738595962524, 0.057702742516994476, -0.7844159007072449, 1.06708824634552, 0.7312740683555603, 0.36640289425849915, 0.1471804529428482, 1.5801538228988647, 0.7672895193099976, -0.4613337218761444, 0.48874518275260925, 0.5681073069572449, -0.1553718000650406, -2.148098945617676, -1.164001703262329, 0.34236252307891846, -0.3694508969783783, -1.527627944946289, 1.420642614364624, -1.144413948059082, -0.9682540893554688, 0.482586532831192, -0.038876183331012726, 1.4301083087921143, 0.29984405636787415, 1.653971552848816, 2.189948558807373, 0.9238854050636292, 0.36429426074028015, 1.4365506172180176, -0.1149907335639, -0.32632768154144287, 1.7543745040893555, -0.44799375534057617, 0.406561017036438, 1.1131081581115723, -0.3937973380088806, -0.9706690311431885, -0.795051634311676, -1.2080752849578857, -0.6984260678291321, 1.0990521907806396, 0.07675755023956299, -1.0407888889312744, 0.25833478569984436, 1.5494072437286377, 0.05476520210504532, -0.30999502539634705, 0.6044791340827942, 0.5325544476509094, -0.6938601732254028, -0.10982464253902435, -0.8519385457038879, 0.5413424968719482, -0.28237032890319824, -0.45135369896888733, 0.38863858580589294, 0.30183371901512146, 1.2937822341918945, 0.03790619224309921, 0.0790819451212883, 1.2236793041229248, -1.4328763484954834, 1.420255422592163, -0.6946805715560913, 0.22939828038215637, -2.4381558895111084, 1.4925849437713623, -0.7258186936378479, 2.0223042964935303, -2.608628749847412, 0.4767553210258484, -0.6232153177261353, -0.5235467553138733, 0.4337237775325775, -0.33753716945648193, 0.12759055197238922, -0.16683685779571533, -1.0652425289154053, -0.10419032722711563, -0.6582319140434265, 0.6092102527618408, 1.1133978366851807, 1.3044774532318115, -1.1228996515274048, -0.3588048815727234, -1.720494031906128, -0.2103540003299713, -0.5813053846359253, 0.2948359549045563, -2.0305299758911133, -0.22550027072429657, -1.9841399192810059, -2.4236066341400146, -1.3325740098953247, -0.7598647475242615, 1.1358555555343628, 0.17587697505950928, -0.8629084825515747, 1.2293561697006226, -0.42638784646987915, -1.8856003284454346, 1.101757526397705, -2.1203207969665527 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
> the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums We can definitely work on this on the hub side to make the UX better
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
66
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw > the metadata header might be very long, before reaching the start of the README/dataset card. It might be surprising when you edit the file because the metadata is not shown on top when the dataset card is rendered (dataset page). It also somewhat prevents including large strings like the checksums We can definitely work on this on the hub side to make the UX better
[ -1.2619619369506836, -0.969796895980835, -0.7901254892349243, 1.4640312194824219, -0.17953941226005554, -1.2044951915740967, 0.04117443040013313, -1.1152279376983643, 1.7077528238296509, -0.8742714524269104, 0.224179208278656, -1.760016918182373, 0.018640007823705673, -0.5709552764892578, -0.7625619769096375, -0.9629542231559753, -0.5173419713973999, -0.8486498594284058, 1.055643916130066, 2.440401792526245, 1.1618859767913818, -1.3615394830703735, 2.7318058013916016, 0.6154415607452393, -0.2121080905199051, -1.0302331447601318, 0.5371520519256592, -0.09170447289943695, -1.2677148580551147, -0.4706534743309021, -0.9348490238189697, -0.10136639326810837, -0.6191033124923706, -0.4771498739719391, 0.06903822720050812, 0.2887500524520874, -0.28190433979034424, -0.28477543592453003, -0.543769359588623, -0.781039297580719, 0.5094643235206604, -0.26465243101119995, 0.9513314962387085, -0.3537234961986542, 1.9231164455413818, -0.5469539165496826, 0.3833346962928772, 0.7092945575714111, 1.3729872703552246, 0.2783454954624176, 0.0007245680317282677, 0.2868742346763611, 0.3265775144100189, 0.0012294352054595947, 0.439853698015213, 1.084703803062439, 0.6452351808547974, 0.5375882387161255, 0.7082833051681519, -2.2077386379241943, 1.3440685272216797, -1.0897934436798096, 0.2987477481365204, 1.4782946109771729, -1.0055831670761108, 0.40955808758735657, -1.7685966491699219, -0.057772766798734665, 0.5625439286231995, -2.335597038269043, 0.05671054124832153, -1.2114633321762085, -0.43200600147247314, 1.0266042947769165, 0.3031774163246155, -1.2066978216171265, 0.2339562624692917, -0.4280070960521698, 1.1215916872024536, 0.5699300765991211, 1.2145057916641235, -1.7099640369415283, 0.035774435847997665, -0.2677055895328522, 0.17886479198932648, -1.4389960765838623, -1.59539794921875, 0.4913063645362854, 0.6355854272842407, 0.48859691619873047, -0.050906747579574585, 0.9795904159545898, -0.9374150037765503, 0.7741579413414001, -0.9069053530693054, -1.5775619745254517, -1.4358282089233398, -2.2535955905914307, -2.3909153938293457, 0.7903048992156982, -0.549089252948761, -0.5874341726303101, 2.0513010025024414, -1.0876474380493164, -1.7903952598571777, 1.1972827911376953, 0.28304731845855713, 0.0549752339720726, 2.4754552841186523, 0.12457326054573059, -0.6491528749465942, 0.47982296347618103, -0.6421064138412476, 0.833176851272583, -0.27198490500450134, 1.3200181722640991, 0.49450135231018066, -1.0889676809310913, 1.5537467002868652, -0.3870222866535187, 0.5182744860649109, -0.5360288023948669, -0.5584150552749634, -0.8841919302940369, 0.27053388953208923, 1.7799667119979858, -0.2622280716896057, 1.619329571723938, -0.3997005820274353, -1.5638090372085571, -1.6232905387878418, 0.8816020488739014, 0.5067654848098755, -0.8655654191970825, 0.11156553030014038, -0.36113107204437256, 0.08371096104383469, 0.08028910309076309, 1.0968410968780518, 1.18722403049469, 0.6672022938728333, -0.29172655940055847, -0.8928869366645813, 0.18168358504772186, -0.0405774749815464, -0.7114916443824768, -1.769510269165039, -0.35440582036972046, 0.09352414309978485, 0.6780897974967957, -1.1598201990127563, 1.6063613891601562, 0.9201435446739197, 1.8261076211929321, 1.069352626800537, -0.3277474045753479, 1.4950459003448486, 0.01204336155205965, 1.7781383991241455, -0.4890691339969635, 0.699701726436615, -0.3995969891548157, -1.1812866926193237, 0.7741275429725647, -0.34888818860054016, -2.0493762493133545, -0.8307900428771973, -0.8145079612731934, -0.1973615288734436, -0.7374293208122253, 1.0028311014175415, -0.302707314491272, -1.3517978191375732, 0.2798454463481903, -0.5762748718261719, 0.1698177605867386, -1.2790471315383911, 0.4133242666721344, 0.7275094985961914, -0.7236215472221375, -0.04671749100089073, -0.21759088337421417, -1.2974116802215576, -0.4552094638347626, 0.17371852695941925, 1.85463547706604, -0.844059944152832, 0.8879997134208679, 0.9846315383911133, -0.7897508144378662, 0.017886415123939514, 0.29031485319137573, -0.22653590142726898, 0.9163618683815002, -0.9175127148628235, -0.42700517177581787, 1.180477261543274, -0.2152799516916275, -0.674401044845581, 1.402417540550232, 0.6626851558685303, -1.0009669065475464, -0.2052917629480362, -0.17744527757167816, -0.9441231489181519, -0.11939550936222076, -1.5788648128509521, -0.20557309687137604, 0.30430570244789124, -1.5551846027374268, -0.43081918358802795, -0.23071840405464172, 1.3573561906814575, -0.19437064230442047, 1.4685678482055664, -0.4742676019668579, -0.19969430565834045, -0.4530486762523651, -0.41824889183044434, 0.17677880823612213, -0.1340360790491104, -0.5716527104377747, 0.23218536376953125, -0.8142969012260437, 0.3384617865085602, 1.3720184564590454, 0.5079843401908875, 0.04878877475857735, 0.49281954765319824, 1.1082898378372192, 0.38700994849205017, -0.08955693989992142, -0.830306887626648, -1.5331847667694092, 2.1139047145843506, -1.4502195119857788, 1.9013230800628662, 0.7335027456283569, -0.11309483647346497, -1.719711184501648, -1.8320949077606201, 1.330248236656189, 1.1744098663330078, 2.2704718112945557, 0.4760994613170624, 0.4092762768268585, -0.7926714420318604, -0.6015832424163818, 0.3973156213760376, -0.9920045137405396, -0.7824696898460388, 0.11219977587461472, 2.355684757232666, 1.666141390800476, -0.517518162727356, -0.16278834640979767, -0.9712761640548706, 1.2644912004470825, -0.11479789763689041, 0.19895021617412567, 1.964818000793457, -0.32089224457740784, -1.2051163911819458, 1.2840834856033325, -2.31632661819458, 0.04268256574869156, 1.9847416877746582, 0.347522109746933, 0.043985672295093536, -1.3951671123504639, -0.6531144380569458, -0.21788720786571503, -0.44174063205718994, -1.3179391622543335, 0.559014618396759, -0.2609941065311432, -0.7708423137664795, -1.4728797674179077, 0.03177232667803764, -1.1504838466644287, -1.6616500616073608, 0.2992922365665436, 1.8859117031097412, 2.0747220516204834, -0.7126285433769226, 1.4653347730636597, -0.2454848289489746, 0.17014244198799133, 1.2402195930480957, 1.2170618772506714, 3.1730196475982666, 1.8758450746536255, -1.3794453144073486, 0.5847036242485046, -0.06899008899927139, -0.5167970061302185, 1.1595938205718994, -1.1480897665023804, 1.2853920459747314, -0.13785549998283386, -1.2919005155563354, -1.3059521913528442, 0.9940096139907837, 0.43525657057762146, 0.09759552776813507, -0.49782341718673706, 1.2097755670547485, 0.002654353156685829, 1.3353490829467773, 0.5249127149581909, -0.3640390932559967, 0.5117568373680115, -0.4834534525871277, -0.6640434861183167, 1.6292685270309448, 0.17323337495326996, -1.4907115697860718, -2.267294406890869, -0.2603132724761963, -0.7019007802009583, 0.04610298573970795, -0.5252982378005981, -0.8759440779685974, 1.6516181230545044, 0.4255530536174774, -1.3815172910690308, -0.37611615657806396, -0.4215061664581299, -0.6432135105133057, 2.6877288818359375, -1.4370089769363403, -0.21608857810497284, -0.9032223224639893, -0.62428218126297, 1.5703705549240112, -1.174585223197937, -0.19288000464439392, -0.9879726767539978, -0.6967942714691162, -1.39972722530365, -0.5905402302742004, -0.026440255343914032, -1.0626617670059204, 0.7526475191116333, 0.16382838785648346, -1.086535930633545, -0.27298930287361145, -0.7875568866729736, 0.8889471292495728, -0.12303157150745392, 0.34102949500083923, 1.9305025339126587, 0.464742511510849, -0.4082862138748169, 0.6816574931144714, 1.1457529067993164, 0.7318221926689148, -0.6252452731132507, 0.10810358077287674, -0.6522789597511292, 0.34316286444664, -1.2712762355804443, 0.2942357361316681, -2.905611038208008, 0.6813085675239563, -0.10840805619955063, -0.11785337328910828, -0.015293819829821587, -1.223508596420288, 1.0294684171676636, 2.6040680408477783, -1.181627869606018, 0.3807019889354706, 0.3660794496536255, 1.2102361917495728, -1.6489808559417725, 0.31695225834846497, -0.48453792929649353, 2.2148263454437256, 0.21157266199588776, 1.2040987014770508, -0.4565305709838867, -2.2036352157592773, 0.5931259989738464, -1.2438679933547974, -1.2213118076324463, 0.8786308765411377, -0.8885661363601685, 0.04687880352139473, -1.4419111013412476, -0.15618757903575897, -0.8323782086372375, -1.2376306056976318, 0.8046156167984009, 0.12203919887542725, 0.4622374176979065, -0.5757410526275635, 0.33327555656433105, -2.2427897453308105, -1.3106610774993896, -0.23106800019741058, -0.9659689664840698, 0.42271411418914795, -0.38005876541137695, 0.7369254231452942, -0.19819797575473785, 0.046186868101358414, 0.40678727626800537, 1.3673698902130127, 3.296215057373047, 0.2659374475479126, 0.3626817464828491, -0.13610948622226715, -0.9608609080314636, 1.4839198589324951, 0.9557940363883972, -0.1920466125011444, -0.5040587782859802, -0.9687789082527161, 1.3103725910186768, 1.8948067426681519, 0.9752132892608643, 0.07745721191167831, -0.7034689784049988, -0.6259635090827942, 0.05008814111351967, 0.24716544151306152, 0.5142707228660583, 0.8518308401107788, -0.06781194359064102, 0.2346249669790268, 1.446826696395874, 1.2760648727416992, -0.3653833866119385, 0.42347681522369385, -0.7409753203392029, -0.5689719915390015, 0.4971497058868408, 0.30175626277923584, -0.03223911672830582, 0.4243107736110687, -0.9265942573547363, -0.29591384530067444, -0.3309037387371063, -0.9481409192085266, -0.7075217962265015, -0.3611372709274292, -0.41903209686279297, 1.5727144479751587, 0.09037915617227554, -0.49708589911460876, -0.006386918481439352, -0.7985082864761353, -0.21074460446834564, -1.1526349782943726, 0.3499717116355896, -0.12014392763376236, -0.18510055541992188, -0.15697957575321198, 1.6929373741149902, -0.9862532615661621, -2.109691858291626, 0.28508326411247253, 0.30148667097091675, -0.3420567512512207, 0.17526184022426605, 1.6162117719650269, 0.4443318247795105, 1.5349810123443604, 1.3499377965927124, 0.9089866876602173, -0.6469724178314209, -1.3239631652832031, 0.7599815130233765, 0.8700034022331238, -1.4407556056976318, 0.829314112663269, -0.08496085554361343, -0.6081690192222595, 0.6400278210639954, 1.2179219722747803, 0.35167163610458374, -1.9403644800186157, 0.9013856053352356, -0.9148720502853394, 0.6578299403190613, 0.6367030739784241, 0.7975754141807556, 0.1781468391418457, 0.8553255796432495, -1.2365431785583496, -1.2065860033035278, -0.7554776668548584, -0.6256582140922546, 1.9267467260360718, -0.1854969561100006, 0.5921889543533325, -0.09371408820152283, -1.2319960594177246, -0.05802551656961441, 0.6223851442337036, 0.23462000489234924, -0.34374624490737915, 0.904434323310852, -0.7029392719268799, -1.164920449256897, -1.4365795850753784, -0.33887094259262085, -1.069815993309021, -0.8602855205535889, 1.1134912967681885, 0.900141716003418, 0.14589715003967285, 1.8450024127960205, 0.4977874159812927, 0.2983710467815399, -2.6921346187591553, 0.9306973814964294, 0.2815818786621094, -0.14886720478534698, 0.9156908988952637, 0.2797110378742218, 0.9963833093643188, 0.05605919659137726, 0.5073063373565674, -2.365898847579956, 2.2974071502685547, -0.28554415702819824, 0.733889102935791, 0.003117106854915619, -0.16782505810260773, 1.1248180866241455, 0.6516292095184326, 0.5991199612617493, -1.0884120464324951, 0.721972644329071, -0.5490452647209167, 1.1285260915756226, 1.002418875694275, -0.7830517292022705, -0.057304687798023224, 1.3452204465866089, 0.5363510847091675, -0.49752911925315857, -0.8689466118812561, -0.8437845706939697, 0.9148364663124084, 1.7814750671386719, -0.008645736612379551, 0.02840915322303772, 0.8677680492401123, 0.7221709489822388, -1.2900333404541016, 0.1770799160003662, -0.7490099668502808, -0.8664897680282593, 1.5591787099838257, 2.002333402633667, -0.08529263734817505, -0.1076275110244751, -0.7190577387809753, -1.239697813987732, 0.857882559299469, -0.008793008513748646, 0.27433153986930847, 0.651795506477356, -0.7233747839927673, 1.093042254447937, 1.0095516443252563, 0.899475634098053, 0.21947002410888672, 0.3007234036922455, 0.3106023967266083, -0.11294248700141907, -1.0628905296325684, -0.117367222905159, -1.0297669172286987, -2.4151968955993652, 0.5144309997558594, -0.34394246339797974, -1.4152116775512695, 0.08701704442501068, -0.9758222699165344, 0.8524922728538513, -0.5611878037452698, -1.106119155883789, -1.627781629562378, 0.23998886346817017, -0.05192729830741882, 0.9217023253440857, -1.6223310232162476, 0.007163027301430702, 1.2476686239242554, 0.8763250708580017, -0.5757133960723877, 1.0022337436676025, 0.29566624760627747, 0.9913325309753418, 0.87654709815979, -0.46167775988578796, 0.5188412070274353, 0.15572595596313477, -1.359116792678833, 0.38138413429260254, 1.073562741279602, 0.21166999638080597, 1.520217776298523, -0.5138856172561646, -0.02215014398097992, 0.43624213337898254, -0.5456628799438477, -0.40357741713523865, -0.5699289441108704, 0.7121033072471619, 0.055887334048748016, -0.7930470108985901, 0.07284873723983765, -0.16387738287448883, -0.31959959864616394, 0.17932024598121643, -1.4516797065734863, -0.1866709291934967, -0.5032845735549927, -0.5788167119026184, -1.2671147584915161, -0.07304328680038452, 1.4862051010131836, -0.8563113212585449, -0.15207096934318542, 0.4936519265174866, 0.4355754852294922, 0.455655574798584, 0.7445746064186096, -0.638363778591156, -0.33799904584884644, -0.30638590455055237, -0.26835376024246216, 0.2767013609409332, 1.2919045686721802, -0.19072046875953674, -0.970520555973053, 0.743021547794342, -0.23078393936157227, -0.013330275192856789, 1.9273145198822021, 0.10952538251876831, -0.7618098258972168, 0.3306506872177124, -0.6774627566337585, 1.9020423889160156, 1.7903823852539062, 1.425779104232788, -0.16327257454395294, -1.0343279838562012, 0.6143770217895508, -0.27822983264923096, -0.29163938760757446, 0.9770601391792297, 0.5044499039649963, -0.12234726548194885, -1.460069179534912, 0.6633259057998657, 1.22330641746521, -0.8454988598823547, -0.6797868013381958, 0.06619662791490555, -0.8118446469306946, 1.057466983795166, 0.7042381763458252, 0.3364933133125305, 0.16767489910125732, 1.5728040933609009, 0.7593204975128174, -0.4883463680744171, 0.4408021569252014, 0.5785562992095947, -0.15058664977550507, -2.0920825004577637, -1.1163450479507446, 0.3528689742088318, -0.399777352809906, -1.5030053853988647, 1.36305832862854, -1.1084177494049072, -0.9175923466682434, 0.49084192514419556, -0.05901164561510086, 1.4510139226913452, 0.2894611656665802, 1.6581387519836426, 2.1653494834899902, 0.9430963397026062, 0.3424912691116333, 1.4882487058639526, -0.1138385608792305, -0.309491902589798, 1.714516043663025, -0.4237917363643646, 0.40051814913749695, 1.1377829313278198, -0.4268282353878021, -0.9331390261650085, -0.7934768199920654, -1.1921907663345337, -0.6720616817474365, 1.0706170797348022, 0.10984112322330475, -1.0523393154144287, 0.21044516563415527, 1.5059280395507812, 0.05854583531618118, -0.2641383409500122, 0.5974534153938293, 0.5243441462516785, -0.7088749408721924, -0.09109532088041306, -0.9253036975860596, 0.5333704352378845, -0.29637429118156433, -0.42209309339523315, 0.3427009880542755, 0.3002740144729614, 1.2922593355178833, 0.055600956082344055, 0.14902734756469727, 1.2339004278182983, -1.3936771154403687, 1.4113095998764038, -0.628130316734314, 0.2292412668466568, -2.402866840362549, 1.4588090181350708, -0.7233728170394897, 1.9956554174423218, -2.6383960247039795, 0.4612187445163727, -0.6112338900566101, -0.5105332136154175, 0.4200704097747803, -0.3808261752128601, 0.15818913280963898, -0.19072073698043823, -1.027892827987671, -0.1546652466058731, -0.6835535168647766, 0.6042006015777588, 1.0978039503097534, 1.3135051727294922, -1.0995638370513916, -0.3985634446144104, -1.7095251083374023, -0.2447846680879593, -0.5206118822097778, 0.29679349064826965, -2.0110907554626465, -0.20718035101890564, -2.0086865425109863, -2.4604978561401367, -1.322281002998352, -0.7509188055992126, 1.1924225091934204, 0.17001992464065552, -0.8799991607666016, 1.181005835533142, -0.40009474754333496, -1.862173318862915, 1.1125246286392212, -2.103386402130127 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
Tensorflow Datasets catalog includes a community catalog where you can find and use HF datasets (see [here](https://www.tensorflow.org/datasets/community_catalog/huggingface)). FYI I noticed today that they are using the exported dataset_infos.json files from github to get the metadata (see their code [here](https://github.com/tensorflow/datasets/blob/a482f01c036a10496f5e22e69a2ef81b707cc418/tensorflow_datasets/scripts/documentation/build_community_catalog.py#L261))
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
39
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw Tensorflow Datasets catalog includes a community catalog where you can find and use HF datasets (see [here](https://www.tensorflow.org/datasets/community_catalog/huggingface)). FYI I noticed today that they are using the exported dataset_infos.json files from github to get the metadata (see their code [here](https://github.com/tensorflow/datasets/blob/a482f01c036a10496f5e22e69a2ef81b707cc418/tensorflow_datasets/scripts/documentation/build_community_catalog.py#L261))
[ -1.236859917640686, -0.9882663488388062, -0.7675920724868774, 1.4702564477920532, -0.15862539410591125, -1.1699291467666626, 0.04464390128850937, -1.088716745376587, 1.7145123481750488, -0.7642884254455566, 0.22176264226436615, -1.7226307392120361, -0.013396868482232094, -0.5538707375526428, -0.7523359656333923, -0.9170472621917725, -0.4585886597633362, -0.8652125000953674, 1.0710469484329224, 2.483994722366333, 1.1926223039627075, -1.346373200416565, 2.7570722103118896, 0.6606301665306091, -0.26358723640441895, -1.0204415321350098, 0.5103990435600281, -0.04581190645694733, -1.2802387475967407, -0.4275975525379181, -0.9402843713760376, -0.040415383875370026, -0.5341169238090515, -0.47762227058410645, 0.09032788127660751, 0.30134350061416626, -0.25469115376472473, -0.29455146193504333, -0.6206379532814026, -0.6877303719520569, 0.4798813760280609, -0.2269919067621231, 0.939350962638855, -0.28848394751548767, 1.878005862236023, -0.520606517791748, 0.3599478006362915, 0.6804996132850647, 1.3338099718093872, 0.21698129177093506, 0.06440871208906174, 0.29065483808517456, 0.35671761631965637, -0.0027890424244105816, 0.4441748261451721, 1.231444239616394, 0.6888443827629089, 0.48329928517341614, 0.7095498442649841, -2.2328555583953857, 1.3316949605941772, -0.9887874126434326, 0.34512436389923096, 1.4212024211883545, -0.9631837010383606, 0.3911936581134796, -1.7469972372055054, -0.06832729279994965, 0.5562453866004944, -2.323967933654785, 0.0998741090297699, -1.257370114326477, -0.47821807861328125, 0.9759849309921265, 0.27779680490493774, -1.196200966835022, 0.30191174149513245, -0.4863530397415161, 1.1438915729522705, 0.5444418787956238, 1.2553975582122803, -1.7025578022003174, -0.01884230226278305, -0.23566937446594238, 0.0942322388291359, -1.3535642623901367, -1.6046617031097412, 0.5377180576324463, 0.603391706943512, 0.6165105700492859, -0.07517366111278534, 0.9970297813415527, -1.0153857469558716, 0.8005650639533997, -0.8575015068054199, -1.6160482168197632, -1.4238587617874146, -2.280395984649658, -2.3947365283966064, 0.7846596837043762, -0.508712649345398, -0.5383102893829346, 2.070399761199951, -1.0679200887680054, -1.806152582168579, 1.110245943069458, 0.31950247287750244, 0.011393357068300247, 2.4505481719970703, 0.22095099091529846, -0.6726521849632263, 0.45995065569877625, -0.6556298136711121, 0.8604598641395569, -0.2837260365486145, 1.3607640266418457, 0.5565733909606934, -1.0260684490203857, 1.5902650356292725, -0.36128896474838257, 0.5321148037910461, -0.5710116624832153, -0.575776994228363, -0.8680266737937927, 0.2500532865524292, 1.8150858879089355, -0.35624417662620544, 1.622013807296753, -0.41259971261024475, -1.5681861639022827, -1.637577772140503, 0.8191152215003967, 0.5308285355567932, -0.8423017859458923, 0.07859696447849274, -0.46671193838119507, 0.0653487965464592, 0.09303539991378784, 1.1514194011688232, 1.1967034339904785, 0.643386960029602, -0.33533042669296265, -0.8461621403694153, 0.18182897567749023, -0.04769837111234665, -0.6651516556739807, -1.797406792640686, -0.3033239543437958, 0.14903195202350616, 0.6539250612258911, -1.1858994960784912, 1.6048647165298462, 0.8733872175216675, 1.879625678062439, 1.0271313190460205, -0.3472581207752228, 1.4608283042907715, -0.05003701150417328, 1.7875759601593018, -0.532126784324646, 0.6479527354240417, -0.379040002822876, -1.2104270458221436, 0.8194644451141357, -0.3689798414707184, -2.082023859024048, -0.8261240124702454, -0.8077540397644043, -0.2113865613937378, -0.7566044330596924, 0.9123929738998413, -0.2768416106700897, -1.4098321199417114, 0.2212839424610138, -0.6191607713699341, 0.19053885340690613, -1.2312841415405273, 0.34751367568969727, 0.7368684411048889, -0.682227611541748, -0.06482298672199249, -0.16776318848133087, -1.2921125888824463, -0.4343087077140808, 0.22759468853473663, 1.8782806396484375, -0.8142572641372681, 0.9346409440040588, 1.0381805896759033, -0.7430770993232727, 0.11910511553287506, 0.23060928285121918, -0.24767301976680756, 0.9417877197265625, -0.9983289837837219, -0.37199416756629944, 1.1470316648483276, -0.1988765150308609, -0.6339749097824097, 1.4104633331298828, 0.6817275285720825, -1.0105984210968018, -0.25790759921073914, -0.1169031411409378, -0.9216141104698181, -0.08345603942871094, -1.5496065616607666, -0.24094998836517334, 0.36997270584106445, -1.5044201612472534, -0.45533785223960876, -0.26522544026374817, 1.356028437614441, -0.1909770518541336, 1.4473495483398438, -0.3853503167629242, -0.16324196755886078, -0.3878932297229767, -0.4531829357147217, 0.19107729196548462, -0.17278821766376495, -0.581789493560791, 0.21453078091144562, -0.8292543888092041, 0.35433587431907654, 1.3894211053848267, 0.4505259096622467, 0.06664656102657318, 0.46737533807754517, 1.1208645105361938, 0.4078027904033661, -0.10309681296348572, -0.8118578195571899, -1.5844110250473022, 2.101419687271118, -1.4267551898956299, 1.9274977445602417, 0.7290444374084473, -0.1205342710018158, -1.7495195865631104, -1.904578447341919, 1.3184345960617065, 1.1659517288208008, 2.338296413421631, 0.45703333616256714, 0.3919123709201813, -0.758294403553009, -0.6836826801300049, 0.37298494577407837, -0.9713726043701172, -0.7292899489402771, 0.07792017608880997, 2.374375820159912, 1.7215816974639893, -0.5610684156417847, -0.21273155510425568, -0.9891369342803955, 1.2510541677474976, -0.12133967131376266, 0.1870317906141281, 1.9872381687164307, -0.35166728496551514, -1.1386587619781494, 1.3192182779312134, -2.346964120864868, 0.09127995371818542, 2.0018720626831055, 0.3376622796058655, 0.056665271520614624, -1.3958109617233276, -0.5880883932113647, -0.29004621505737305, -0.4818427860736847, -1.2667638063430786, 0.5856393575668335, -0.2840358316898346, -0.8573158979415894, -1.5279908180236816, 0.014983000233769417, -1.172122836112976, -1.685590386390686, 0.31698933243751526, 1.895943522453308, 2.096475601196289, -0.7505990266799927, 1.4307782649993896, -0.28885483741760254, 0.12196473777294159, 1.2284326553344727, 1.2727574110031128, 3.1339058876037598, 1.8564536571502686, -1.352315902709961, 0.6602685451507568, -0.13646100461483002, -0.4843846261501312, 1.1680186986923218, -1.1231893301010132, 1.2661508321762085, -0.1695677489042282, -1.284938931465149, -1.2929401397705078, 1.063119649887085, 0.47323980927467346, 0.0956810936331749, -0.4801671504974365, 1.255056619644165, 0.03227388858795166, 1.3041281700134277, 0.565269410610199, -0.3783382773399353, 0.5495413541793823, -0.4331061542034149, -0.5636799335479736, 1.6062067747116089, 0.16166064143180847, -1.5020132064819336, -2.286944627761841, -0.2882397770881653, -0.7302937507629395, 0.03201063722372055, -0.558731734752655, -0.9393678307533264, 1.6251981258392334, 0.44154995679855347, -1.3433330059051514, -0.3138665556907654, -0.3541486859321594, -0.5781272649765015, 2.628892183303833, -1.3931071758270264, -0.1759505271911621, -0.949375331401825, -0.58001309633255, 1.5678472518920898, -1.1191356182098389, -0.23117057979106903, -0.9528032541275024, -0.7347597479820251, -1.3778406381607056, -0.5780377984046936, 0.0382688045501709, -1.0584183931350708, 0.6807993650436401, 0.09733054041862488, -1.0381152629852295, -0.23193679749965668, -0.7902560234069824, 0.9848489165306091, -0.17233864963054657, 0.29836365580558777, 1.928290843963623, 0.4228963553905487, -0.44448259472846985, 0.6618579626083374, 1.1914167404174805, 0.7155342698097229, -0.686255931854248, 0.04754825681447983, -0.7348552942276001, 0.3487115800380707, -1.3477898836135864, 0.25620022416114807, -2.9106950759887695, 0.6791688799858093, -0.08934450894594193, -0.10793186724185944, 0.020079126581549644, -1.276968240737915, 1.0626715421676636, 2.5363242626190186, -1.2316871881484985, 0.4160449206829071, 0.3518763482570648, 1.1546635627746582, -1.5897494554519653, 0.2703585922718048, -0.45105865597724915, 2.1562728881835938, 0.23557250201702118, 1.2463186979293823, -0.47626325488090515, -2.1786482334136963, 0.5988079905509949, -1.252607822418213, -1.126657485961914, 0.8414943218231201, -0.8988639116287231, 0.11853830516338348, -1.4274131059646606, -0.16032551229000092, -0.8885983824729919, -1.2474154233932495, 0.7136244177818298, 0.11681243777275085, 0.4402969777584076, -0.6185498833656311, 0.38809508085250854, -2.171710968017578, -1.2966440916061401, -0.1813041716814041, -1.0448634624481201, 0.4990067780017853, -0.3567661643028259, 0.6705542206764221, -0.15923728048801422, 0.0786052942276001, 0.37655264139175415, 1.3524882793426514, 3.3279712200164795, 0.2609812617301941, 0.32713523507118225, -0.11884494125843048, -1.0150028467178345, 1.471777081489563, 0.9562735557556152, -0.17624561488628387, -0.5498460531234741, -1.0090737342834473, 1.3354144096374512, 1.9595565795898438, 1.0618115663528442, 0.0530703142285347, -0.7722721695899963, -0.7133416533470154, 0.0899476408958435, 0.2840045094490051, 0.4866243898868561, 0.8854465484619141, -0.050858259201049805, 0.17900699377059937, 1.3783411979675293, 1.245309829711914, -0.3843563497066498, 0.42966800928115845, -0.8239941000938416, -0.5351577401161194, 0.43494418263435364, 0.24584771692752838, 0.021454796195030212, 0.4517030417919159, -1.0221831798553467, -0.3087872266769409, -0.3738710880279541, -0.9596081972122192, -0.7311996817588806, -0.3287999629974365, -0.42548081278800964, 1.5485975742340088, 0.09611508250236511, -0.4744747281074524, -0.0377340093255043, -0.7858049273490906, -0.21265189349651337, -1.104800820350647, 0.3494761288166046, -0.09039591997861862, -0.10015799850225449, -0.15288929641246796, 1.6922001838684082, -0.9522271156311035, -2.111351728439331, 0.29940149188041687, 0.2840304970741272, -0.3976398706436157, 0.1841404289007187, 1.6449187994003296, 0.5148398280143738, 1.4840397834777832, 1.3162660598754883, 0.927137017250061, -0.6316025853157043, -1.2886676788330078, 0.7569345235824585, 0.8937519788742065, -1.4129455089569092, 0.8450787663459778, -0.13884784281253815, -0.6023716926574707, 0.6971971392631531, 1.3255428075790405, 0.3792096674442291, -1.987048625946045, 0.9126191735267639, -0.9258595705032349, 0.6729791760444641, 0.6129123568534851, 0.8053231239318848, 0.2186557948589325, 0.8130961060523987, -1.285427451133728, -1.1787675619125366, -0.7430877685546875, -0.6252215504646301, 1.9653730392456055, -0.1664169281721115, 0.6041761636734009, -0.13871240615844727, -1.218650460243225, -0.11314381659030914, 0.6965137720108032, 0.26654407382011414, -0.4148576259613037, 0.9231590032577515, -0.6523783206939697, -1.0924805402755737, -1.3794389963150024, -0.3336103558540344, -1.0806258916854858, -0.8663104176521301, 1.0493505001068115, 0.8502790927886963, 0.256980299949646, 1.8977957963943481, 0.46990641951560974, 0.333947092294693, -2.6698951721191406, 0.9354398250579834, 0.2727492153644562, -0.15747474133968353, 0.9177548885345459, 0.253958523273468, 1.040443778038025, 0.03671833127737045, 0.5394296050071716, -2.3108561038970947, 2.219712495803833, -0.17985308170318604, 0.7255213856697083, -0.003933269064873457, -0.13601398468017578, 1.1355178356170654, 0.6026619076728821, 0.5807934999465942, -1.1476529836654663, 0.7670809626579285, -0.5371643304824829, 1.0929466485977173, 0.9289526343345642, -0.821171224117279, -0.04503554105758667, 1.3797687292099, 0.5142760276794434, -0.4358280301094055, -0.8708581924438477, -0.8423466086387634, 0.9179291129112244, 1.7726044654846191, -0.04188409447669983, 0.043615467846393585, 0.8576778173446655, 0.7366734147071838, -1.2938227653503418, 0.1404772400856018, -0.6484333276748657, -0.7578155398368835, 1.598707914352417, 2.0162525177001953, -0.1083906963467598, -0.12738043069839478, -0.6513668298721313, -1.227931022644043, 0.8051779270172119, -0.04001288115978241, 0.2560103237628937, 0.6701058745384216, -0.7648569345474243, 1.1249228715896606, 0.8812660574913025, 0.8764347434043884, 0.08043257892131805, 0.2924192547798157, 0.3348563313484192, -0.15234147012233734, -1.1166175603866577, -0.22093915939331055, -1.0240837335586548, -2.446197748184204, 0.46226006746292114, -0.28092581033706665, -1.4113357067108154, 0.09297913312911987, -0.9863864183425903, 0.8858115673065186, -0.5806256532669067, -1.07430100440979, -1.607611060142517, 0.2914494574069977, -0.09273040294647217, 0.95333331823349, -1.6481742858886719, -0.07896259427070618, 1.2632094621658325, 0.8834797739982605, -0.5564054250717163, 1.049317479133606, 0.26768290996551514, 0.9087009429931641, 0.8355545997619629, -0.4104737937450409, 0.5453900098800659, 0.16053587198257446, -1.3815633058547974, 0.37137383222579956, 1.1470856666564941, 0.18464332818984985, 1.5037317276000977, -0.5216237902641296, 0.0035953614860773087, 0.5042351484298706, -0.5809503793716431, -0.43523916602134705, -0.4378194510936737, 0.6575824618339539, 0.07917910814285278, -0.9075738191604614, 0.029658237472176552, -0.14385488629341125, -0.33528098464012146, 0.22156672179698944, -1.4570422172546387, -0.23954971134662628, -0.5200705528259277, -0.5331029891967773, -1.2472507953643799, 0.005301893688738346, 1.4629175662994385, -0.8810370564460754, -0.19631046056747437, 0.4970393478870392, 0.4455294907093048, 0.47468486428260803, 0.7092352509498596, -0.6383437514305115, -0.306816041469574, -0.3341164290904999, -0.3050108253955841, 0.23865298926830292, 1.2442033290863037, -0.17062662541866302, -0.9696134924888611, 0.7384785413742065, -0.3158119320869446, 0.017629370093345642, 1.9143247604370117, 0.05787009745836258, -0.7844469547271729, 0.32991135120391846, -0.6937746405601501, 1.8883967399597168, 1.7422305345535278, 1.4438328742980957, -0.15565520524978638, -1.0083640813827515, 0.5520069003105164, -0.25546956062316895, -0.27416136860847473, 1.0003353357315063, 0.4329080879688263, -0.1751590520143509, -1.4520313739776611, 0.6093232035636902, 1.2711095809936523, -0.9057055115699768, -0.6329577565193176, 0.06412920355796814, -0.8656129240989685, 1.1235382556915283, 0.6625308394432068, 0.2888883650302887, 0.17895683646202087, 1.5404537916183472, 0.7073190808296204, -0.4585275948047638, 0.4629190266132355, 0.5398042798042297, -0.1681521087884903, -2.0957252979278564, -1.0412671566009521, 0.3318256735801697, -0.43083515763282776, -1.5366233587265015, 1.3254090547561646, -1.1163642406463623, -0.9487912058830261, 0.48782941699028015, -0.03992804139852524, 1.4266316890716553, 0.2937977612018585, 1.700754165649414, 2.205430746078491, 0.9164441227912903, 0.2883271276950836, 1.4183261394500732, -0.049418918788433075, -0.3443574607372284, 1.7210345268249512, -0.4289504587650299, 0.45064598321914673, 1.069875955581665, -0.46937116980552673, -1.005733847618103, -0.7901380062103271, -1.1647491455078125, -0.6588543057441711, 1.093892216682434, 0.12196198105812073, -1.044145941734314, 0.21096071600914001, 1.5511126518249512, 0.15896862745285034, -0.24215151369571686, 0.6471942663192749, 0.502213180065155, -0.7083348631858826, -0.08372444659471512, -0.9074748158454895, 0.508955180644989, -0.23229192197322845, -0.3966382145881653, 0.2853427231311798, 0.3734830617904663, 1.2523387670516968, 0.04962357133626938, 0.08464626967906952, 1.258520245552063, -1.41647207736969, 1.4741209745407104, -0.5901685357093811, 0.22852829098701477, -2.4394474029541016, 1.4746363162994385, -0.7184891104698181, 1.9885362386703491, -2.6107141971588135, 0.46945759654045105, -0.6008628606796265, -0.4960218071937561, 0.3485069274902344, -0.3770162761211395, 0.17562219500541687, -0.1793917715549469, -1.0152218341827393, -0.17272256314754486, -0.7305982112884521, 0.6083459854125977, 1.132653832435608, 1.3004133701324463, -1.0957015752792358, -0.3814476430416107, -1.6922417879104614, -0.25054118037223816, -0.6017805337905884, 0.3081146776676178, -1.994011640548706, -0.23548288643360138, -1.9645094871520996, -2.495654821395874, -1.3179008960723877, -0.7923999428749084, 1.1192033290863037, 0.14905795454978943, -0.905144989490509, 1.173776388168335, -0.40362486243247986, -1.842915415763855, 1.0753713846206665, -2.1749837398529053 ]
https://github.com/huggingface/datasets/issues/3507
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data
Metadata is now stored as YAML, and dummy data is deprecated, so I think we can close this issue.
I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw
1,027
19
Discuss whether support canonical datasets w/o dataset_infos.json and/or dummy data I open this PR to have a public discussion about this topic and make a decision. As previously discussed, once we have the metadata in the dataset card (README file, containing both Markdown info and YAML tags), what is the point of having also the JSON metadata (dataset_infos.json file)? On the other hand, the dummy data is necessary for testing (in our CI suite) that the canonical dataset loads correctly. However: - the dataset preview feature is already an indirect test that the dataset loads correctly (it also tests it is streamable though) - we are migrating canonical datasets to the Hub Do we really need to continue testing them in out CI? Also note that for generating both (dataset_infos.json file and dummy data), the entire dataset needs being downloaded. This can be an issue for huge datasets (like WIT, with 400 GB of data). Feel free to ping other people for the discussion. CC: @lhoestq @mariosasko @thomwolf @julien-c @patrickvonplaten @anton-l @LysandreJik @yjernite @nateraw Metadata is now stored as YAML, and dummy data is deprecated, so I think we can close this issue.
[ -1.254304051399231, -0.9986898899078369, -0.7581212520599365, 1.451578140258789, -0.1716223806142807, -1.1961866617202759, 0.06696425378322601, -1.1057480573654175, 1.7163777351379395, -0.8858956694602966, 0.2445085048675537, -1.7467377185821533, 0.019667912274599075, -0.6051117777824402, -0.7799938321113586, -0.9450482726097107, -0.4806523025035858, -0.8443129658699036, 1.0473884344100952, 2.4836034774780273, 1.1964396238327026, -1.3552138805389404, 2.733396530151367, 0.6213709712028503, -0.20859722793102264, -1.03413987159729, 0.5309542417526245, -0.08015622943639755, -1.247965693473816, -0.42615988850593567, -0.9826493859291077, -0.08967975527048111, -0.6043826341629028, -0.48355868458747864, 0.06937063485383987, 0.29487770795822144, -0.2791669964790344, -0.3087545335292816, -0.5476195812225342, -0.7451714277267456, 0.5472813844680786, -0.27330684661865234, 0.9873784780502319, -0.35050272941589355, 1.9087344408035278, -0.5739676356315613, 0.33321627974510193, 0.7157838344573975, 1.3390569686889648, 0.2421962022781372, 0.006954170763492584, 0.2520504295825958, 0.36386945843696594, -0.0027087521739304066, 0.4349537491798401, 1.1127333641052246, 0.6601752042770386, 0.5391827821731567, 0.7221445441246033, -2.2197446823120117, 1.3498672246932983, -1.1016236543655396, 0.3328465223312378, 1.4199613332748413, -1.021987795829773, 0.41670772433280945, -1.7483502626419067, -0.0900585725903511, 0.5718569755554199, -2.2684736251831055, 0.09663654118776321, -1.2148319482803345, -0.4541071951389313, 0.9614373445510864, 0.3021315336227417, -1.1993104219436646, 0.25147801637649536, -0.43875283002853394, 1.1088075637817383, 0.557701587677002, 1.1915091276168823, -1.7461801767349243, 0.035960499197244644, -0.3115152418613434, 0.1893182396888733, -1.440307378768921, -1.5692235231399536, 0.5287665724754333, 0.645418107509613, 0.5579124093055725, -0.04044713079929352, 0.9754360914230347, -1.041413426399231, 0.7749688625335693, -0.9106630086898804, -1.5511047840118408, -1.4507652521133423, -2.280092716217041, -2.42679500579834, 0.743486762046814, -0.5173850655555725, -0.5785294771194458, 2.075364351272583, -1.0890121459960938, -1.756320834159851, 1.1750847101211548, 0.26159048080444336, 0.003091905266046524, 2.4635071754455566, 0.19264864921569824, -0.622157633304596, 0.48478496074676514, -0.6804800033569336, 0.814586341381073, -0.28901225328445435, 1.2986656427383423, 0.540268063545227, -1.0696442127227783, 1.569793462753296, -0.4224472641944885, 0.5256425142288208, -0.5005910992622375, -0.5322616696357727, -0.9121237397193909, 0.2372642308473587, 1.7512761354446411, -0.23381762206554413, 1.568785548210144, -0.42236852645874023, -1.594976544380188, -1.6740174293518066, 0.8803064823150635, 0.4848039150238037, -0.8171754479408264, 0.1123286560177803, -0.3995558023452759, 0.11826668679714203, 0.08232542872428894, 1.1102811098098755, 1.1835272312164307, 0.690267026424408, -0.25427669286727905, -0.8740517497062683, 0.1810668706893921, -0.05561169609427452, -0.7194617986679077, -1.7976163625717163, -0.3266795575618744, 0.12864159047603607, 0.6839591264724731, -1.0951194763183594, 1.6108051538467407, 0.930674135684967, 1.8054380416870117, 1.0396000146865845, -0.31683313846588135, 1.4641245603561401, -0.01513380091637373, 1.7811052799224854, -0.5376930832862854, 0.7242515683174133, -0.4127799868583679, -1.1913739442825317, 0.8296579122543335, -0.3578307330608368, -2.0637314319610596, -0.8203520178794861, -0.8159831762313843, -0.21885332465171814, -0.7685298323631287, 1.0034480094909668, -0.23958101868629456, -1.3801109790802002, 0.30855119228363037, -0.5795555710792542, 0.18736973404884338, -1.205909252166748, 0.42683032155036926, 0.6928143501281738, -0.7167280316352844, -0.056997355073690414, -0.1946406215429306, -1.287602186203003, -0.39945322275161743, 0.14891450107097626, 1.9087779521942139, -0.8719196319580078, 0.9051495790481567, 0.9403091073036194, -0.7688522338867188, 0.0038757938891649246, 0.2782827317714691, -0.28760308027267456, 0.9130171537399292, -0.9607672691345215, -0.409249871969223, 1.1885002851486206, -0.2133370339870453, -0.6436386704444885, 1.415442705154419, 0.6728986501693726, -0.9759170413017273, -0.15982060134410858, -0.20037277042865753, -0.9131868481636047, -0.09407144039869308, -1.5661990642547607, -0.22433504462242126, 0.3625618517398834, -1.4598801136016846, -0.46167194843292236, -0.20794996619224548, 1.3348578214645386, -0.20246554911136627, 1.435178279876709, -0.47567492723464966, -0.19573599100112915, -0.4190697968006134, -0.3957916796207428, 0.2280236929655075, -0.09414489567279816, -0.5515972971916199, 0.21684233844280243, -0.8235860466957092, 0.35408350825309753, 1.32735276222229, 0.48544415831565857, 0.1051536351442337, 0.44681453704833984, 1.0675075054168701, 0.3785320222377777, -0.058874547481536865, -0.842556357383728, -1.5381927490234375, 2.1764163970947266, -1.4564169645309448, 1.9302947521209717, 0.6908018589019775, -0.10286508500576019, -1.7451503276824951, -1.830435872077942, 1.332205891609192, 1.2004456520080566, 2.3029608726501465, 0.42953479290008545, 0.37728509306907654, -0.7936608195304871, -0.6330628991127014, 0.40795886516571045, -1.024193525314331, -0.7605363130569458, 0.11448805034160614, 2.338057279586792, 1.6781774759292603, -0.5705742239952087, -0.16572844982147217, -0.993347704410553, 1.2353878021240234, -0.0990043357014656, 0.20388339459896088, 2.011676549911499, -0.4033277928829193, -1.1765084266662598, 1.3235633373260498, -2.3718175888061523, 0.041564349085092545, 1.9628952741622925, 0.35353884100914, 0.07073547691106796, -1.3825198411941528, -0.6324419975280762, -0.23696747422218323, -0.423562228679657, -1.332843542098999, 0.610342800617218, -0.2669857144355774, -0.7774602770805359, -1.507583737373352, 0.06311974674463272, -1.1792142391204834, -1.6803765296936035, 0.29808008670806885, 1.8461261987686157, 2.157998561859131, -0.7670412659645081, 1.4714943170547485, -0.2295583039522171, 0.2133304476737976, 1.2565357685089111, 1.19440758228302, 3.1323206424713135, 1.8762115240097046, -1.3858542442321777, 0.6316126585006714, -0.10451897978782654, -0.50481116771698, 1.1744955778121948, -1.1319763660430908, 1.261808156967163, -0.11996784061193466, -1.2779476642608643, -1.2956327199935913, 1.0266033411026, 0.4115581214427948, 0.09949114173650742, -0.4543094038963318, 1.244579792022705, -0.00458755437284708, 1.3599573373794556, 0.5710442066192627, -0.31248578429222107, 0.5206073522567749, -0.484784871339798, -0.5732808709144592, 1.6095472574234009, 0.19958989322185516, -1.475735068321228, -2.2706382274627686, -0.2883492112159729, -0.7065467238426208, 0.02201271429657936, -0.512890636920929, -0.8969878554344177, 1.638132929801941, 0.3917872905731201, -1.3751753568649292, -0.311282753944397, -0.3679652512073517, -0.617056131362915, 2.6652472019195557, -1.444582462310791, -0.23497934639453888, -0.9263618588447571, -0.6390153169631958, 1.5423811674118042, -1.1964079141616821, -0.21254616975784302, -0.9863458871841431, -0.6790797114372253, -1.432663083076477, -0.6059373021125793, -0.03701554238796234, -1.0569576025009155, 0.7277047038078308, 0.15160878002643585, -1.0838282108306885, -0.2917417287826538, -0.8220812678337097, 0.8717306852340698, -0.13889634609222412, 0.414268434047699, 1.9046200513839722, 0.4321679472923279, -0.450398325920105, 0.6514389514923096, 1.1337751150131226, 0.7586206793785095, -0.6553300023078918, 0.1280544251203537, -0.7392174005508423, 0.3344883620738983, -1.2270153760910034, 0.3290461003780365, -2.904630661010742, 0.6786358952522278, -0.10033425688743591, -0.14167296886444092, -0.0456756055355072, -1.256531834602356, 1.045529842376709, 2.530888557434082, -1.1623263359069824, 0.39693865180015564, 0.30758413672447205, 1.2590601444244385, -1.6086112260818481, 0.3226983845233917, -0.4264768660068512, 2.222696304321289, 0.2681521773338318, 1.2061487436294556, -0.4406934380531311, -2.203031301498413, 0.57956463098526, -1.3075485229492188, -1.1959633827209473, 0.8526027202606201, -0.8620375394821167, 0.07572652399539948, -1.4203139543533325, -0.17167477309703827, -0.8899010419845581, -1.2535982131958008, 0.7565078735351562, 0.11660405993461609, 0.4690205156803131, -0.592078685760498, 0.3493451178073883, -2.1853766441345215, -1.2583107948303223, -0.22754868865013123, -0.9678774476051331, 0.41589727997779846, -0.33365511894226074, 0.7392654418945312, -0.2197527140378952, 0.05528346449136734, 0.43588054180145264, 1.3585320711135864, 3.3257572650909424, 0.2690255641937256, 0.419095516204834, -0.15884585678577423, -0.9551094174385071, 1.5070980787277222, 0.9512414336204529, -0.16428136825561523, -0.5112826228141785, -0.9844274520874023, 1.331134557723999, 1.9068350791931152, 0.9325774908065796, 0.07195980846881866, -0.6960325241088867, -0.6292701363563538, 0.07860468327999115, 0.22539754211902618, 0.48955202102661133, 0.8571034073829651, -0.07811762392520905, 0.17789314687252045, 1.46440589427948, 1.2841628789901733, -0.3955225944519043, 0.38433825969696045, -0.7425240278244019, -0.5545886754989624, 0.5134880542755127, 0.2933596074581146, -0.01930537261068821, 0.394513338804245, -0.9337159395217896, -0.33039969205856323, -0.33429211378097534, -0.9589861631393433, -0.7216727137565613, -0.4001869857311249, -0.435465008020401, 1.5616823434829712, 0.1078597903251648, -0.4796905517578125, -0.030400995165109634, -0.8203067779541016, -0.18053194880485535, -1.1319726705551147, 0.3065415620803833, -0.09802760183811188, -0.1619468629360199, -0.1463436335325241, 1.7498115301132202, -0.9552972316741943, -2.079047203063965, 0.29590079188346863, 0.286376029253006, -0.31553155183792114, 0.15420372784137726, 1.6138427257537842, 0.4800587594509125, 1.5017656087875366, 1.3138118982315063, 0.932427704334259, -0.6387986540794373, -1.3356465101242065, 0.8079328536987305, 0.8301864862442017, -1.4980382919311523, 0.869985044002533, -0.10147745162248611, -0.5940068364143372, 0.6441429853439331, 1.232173204421997, 0.3421606123447418, -1.9645460844039917, 0.8577862977981567, -0.9564540982246399, 0.6647497415542603, 0.6353194713592529, 0.7874236702919006, 0.21101395785808563, 0.8471636176109314, -1.2637231349945068, -1.1611413955688477, -0.751827597618103, -0.5998625755310059, 1.9471204280853271, -0.20989520847797394, 0.6310387849807739, -0.09756912291049957, -1.263986349105835, -0.07060102373361588, 0.6684390306472778, 0.1764744520187378, -0.3514234125614166, 0.8995329737663269, -0.7253442406654358, -1.1534658670425415, -1.3769114017486572, -0.33053502440452576, -1.1227341890335083, -0.892031192779541, 1.1169153451919556, 0.8972664475440979, 0.17610418796539307, 1.8576604127883911, 0.49790245294570923, 0.34949901700019836, -2.6403887271881104, 0.9125895500183105, 0.20557837188243866, -0.15267422795295715, 0.8709440231323242, 0.24284905195236206, 1.0103665590286255, 0.027534089982509613, 0.5287513732910156, -2.422935962677002, 2.288193702697754, -0.2502242922782898, 0.7176184058189392, -0.007711370941251516, -0.17546887695789337, 1.1760449409484863, 0.6096374988555908, 0.5884889960289001, -1.0992722511291504, 0.6833013892173767, -0.5446909666061401, 1.115710735321045, 1.0329509973526, -0.8220205903053284, -0.0619356632232666, 1.3274576663970947, 0.5007604956626892, -0.4407728910446167, -0.8817696571350098, -0.8517941832542419, 0.8761864304542542, 1.7820322513580322, -0.029572173953056335, -0.024764932692050934, 0.892204999923706, 0.7517881989479065, -1.270057201385498, 0.1603538990020752, -0.7173410058021545, -0.8085944652557373, 1.6188277006149292, 2.0196549892425537, -0.11496718972921371, -0.09206783026456833, -0.6802070736885071, -1.2501620054244995, 0.8717694878578186, 0.02043856307864189, 0.2530856728553772, 0.6160287261009216, -0.7362112998962402, 1.057640552520752, 1.0234448909759521, 0.8987192511558533, 0.19398947060108185, 0.2921751141548157, 0.3325687348842621, -0.14600785076618195, -1.070504903793335, -0.12915122509002686, -1.0555601119995117, -2.4085676670074463, 0.5227668881416321, -0.3447270691394806, -1.404152750968933, 0.10879877209663391, -1.0065593719482422, 0.8579477667808533, -0.5467753410339355, -1.0782175064086914, -1.6399869918823242, 0.2547681927680969, -0.05952375754714012, 0.9447956085205078, -1.6374046802520752, 0.03558231517672539, 1.246738076210022, 0.8588317036628723, -0.5517808794975281, 1.0354946851730347, 0.2676554024219513, 0.9534808397293091, 0.8529003858566284, -0.442595511674881, 0.5538138151168823, 0.19012875854969025, -1.3487017154693604, 0.3803226053714752, 1.084363341331482, 0.17554493248462677, 1.5261133909225464, -0.46778759360313416, 0.021050654351711273, 0.4783134162425995, -0.6078895330429077, -0.3982369005680084, -0.4919954240322113, 0.706842839717865, 0.11362415552139282, -0.8087654709815979, 0.02538091316819191, -0.11126690357923508, -0.3746073842048645, 0.1941843181848526, -1.4403551816940308, -0.19124707579612732, -0.5253200531005859, -0.5952199101448059, -1.2630822658538818, -0.05891745164990425, 1.4903491735458374, -0.8106243014335632, -0.17281372845172882, 0.4884010851383209, 0.4417659640312195, 0.4771866500377655, 0.7391642332077026, -0.6268647909164429, -0.3260859549045563, -0.33671650290489197, -0.25235530734062195, 0.26305487751960754, 1.292110562324524, -0.20444001257419586, -1.001421332359314, 0.7406297922134399, -0.27050989866256714, 0.004776494577527046, 1.91473388671875, 0.08846358209848404, -0.7862381339073181, 0.3244231641292572, -0.6920793056488037, 1.924257516860962, 1.8141961097717285, 1.389634609222412, -0.12205448746681213, -1.048924207687378, 0.6125002503395081, -0.312789648771286, -0.27039608359336853, 0.9586139917373657, 0.4899464249610901, -0.1487291157245636, -1.4613409042358398, 0.6995158791542053, 1.2562583684921265, -0.8249586820602417, -0.7118232250213623, 0.04921966791152954, -0.8334305286407471, 1.0735547542572021, 0.7200887203216553, 0.3731725811958313, 0.1929941326379776, 1.532334566116333, 0.7463656663894653, -0.5149685144424438, 0.42356252670288086, 0.5963887572288513, -0.14796730875968933, -2.0990357398986816, -1.1045587062835693, 0.35982686281204224, -0.4237080514431, -1.5094329118728638, 1.3804465532302856, -1.1095620393753052, -0.9201005101203918, 0.5215204954147339, -0.045180708169937134, 1.4086241722106934, 0.3044043183326721, 1.6484044790267944, 2.1163530349731445, 0.9287034273147583, 0.34351521730422974, 1.4919044971466064, -0.09649265557527542, -0.35976120829582214, 1.719029188156128, -0.4414534270763397, 0.42688629031181335, 1.1262335777282715, -0.42204272747039795, -0.9675924777984619, -0.791972279548645, -1.1185722351074219, -0.6453288793563843, 1.0905662775039673, 0.13995298743247986, -1.0391525030136108, 0.19229313731193542, 1.5439907312393188, 0.053233906626701355, -0.29630619287490845, 0.5943135619163513, 0.4923133850097656, -0.6477657556533813, -0.08186608552932739, -0.9225953817367554, 0.5538462996482849, -0.3231251835823059, -0.39022013545036316, 0.32524415850639343, 0.2868511378765106, 1.2581545114517212, 0.041448481380939484, 0.11860616505146027, 1.2666674852371216, -1.389431357383728, 1.4072518348693848, -0.582106351852417, 0.2127622663974762, -2.3954107761383057, 1.4501985311508179, -0.7102770805358887, 2.0150699615478516, -2.6443161964416504, 0.41179752349853516, -0.5937678217887878, -0.5238295793533325, 0.38065105676651, -0.375618577003479, 0.15606330335140228, -0.18119382858276367, -1.0191248655319214, -0.1337040662765503, -0.708206832408905, 0.5932029485702515, 1.0582753419876099, 1.2602874040603638, -1.1132112741470337, -0.39130541682243347, -1.6429290771484375, -0.23077087104320526, -0.5976850390434265, 0.26511549949645996, -2.00736927986145, -0.18414579331874847, -2.0267138481140137, -2.4625890254974365, -1.349919319152832, -0.7685003280639648, 1.1830888986587524, 0.1698891669511795, -0.8866722583770752, 1.1491003036499023, -0.3782988488674164, -1.8837097883224487, 1.1063343286514282, -2.1036343574523926 ]
https://github.com/huggingface/datasets/issues/3505
cast_column function not working with map function in streaming mode for Audio features
Hi! This is probably due to the fact that `IterableDataset.map` sets `features` to `None` before mapping examples. We can fix the issue by passing the old `features` dict to the map generator and performing encoding/decoding there (before calling the map transform function).
## Describe the bug I am trying to use Audio class for loading audio features using custom dataset. I am able to cast 'audio' feature into 'Audio' format with cast_column function. On using map function, I am not getting 'Audio' casted feature but getting path of audio file only. I am getting features of 'audio' of string type with load_dataset call. After using cast_column 'audio' feature is converted into 'Audio' type. But in map function I am not able to get Audio type for audio feature & getting string type data containing path of file only. So I am not able to use processor in encode function. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset, Audio from transformers import Wav2Vec2Processor def encode(batch, processor): print("Audio: ",batch['audio']) batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values return batch def print_ds(ds): iterator = iter(ds) for d in iterator: print("Data: ",d) break processor = Wav2Vec2Processor.from_pretrained(pretrained_model_path) dataset = load_dataset("custom_dataset.py","train",data_files={'train':'train_path.txt'}, data_dir="data", streaming=True, split="train") print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.cast_column("audio", Audio(sampling_rate=16_000)) print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.map(lambda x: encode(x,processor)) print("Features: ",dataset.features) print_ds(dataset) ``` ## Expected results map function not printing Audio type features be used with processor function and getting error in processor call due to this. ## Actual results # after load_dataset call Features: {'sentence': Value(dtype='string', id=None), 'audio': Value(dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': 'data/0116_003.wav'} # after cast_column call Features: {'sentence': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': {'path': 'data/0116_003.wav', 'array': array([ 1.2662281e-06, 1.0264218e-06, -1.3615092e-06, ..., 1.3017889e-02, 1.0085563e-02, 4.8155054e-03], dtype=float32), 'sampling_rate': 16000}} # after map call Features: None Audio: data/0116_003.wav Traceback (most recent call last): File "demo2.py", line 36, in <module> print_ds(dataset) File "demo2.py", line 11, in print_ds for d in iterator: File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 341, in __iter__ for key, example in self._iter(): File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 338, in _iter yield from ex_iterable File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 192, in __iter__ yield key, self.function(example) File "demo2.py", line 32, in <lambda> dataset = dataset.map(lambda x: batch_encode(x,processor)) File "demo2.py", line 6, in batch_encode batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values TypeError: string indices must be integers ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-4.14.243 with-debian-bullseye-sid - Python version: 3.7.9 - PyArrow version: 6.0.1
1,028
42
cast_column function not working with map function in streaming mode for Audio features ## Describe the bug I am trying to use Audio class for loading audio features using custom dataset. I am able to cast 'audio' feature into 'Audio' format with cast_column function. On using map function, I am not getting 'Audio' casted feature but getting path of audio file only. I am getting features of 'audio' of string type with load_dataset call. After using cast_column 'audio' feature is converted into 'Audio' type. But in map function I am not able to get Audio type for audio feature & getting string type data containing path of file only. So I am not able to use processor in encode function. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset, Audio from transformers import Wav2Vec2Processor def encode(batch, processor): print("Audio: ",batch['audio']) batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values return batch def print_ds(ds): iterator = iter(ds) for d in iterator: print("Data: ",d) break processor = Wav2Vec2Processor.from_pretrained(pretrained_model_path) dataset = load_dataset("custom_dataset.py","train",data_files={'train':'train_path.txt'}, data_dir="data", streaming=True, split="train") print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.cast_column("audio", Audio(sampling_rate=16_000)) print("Features: ",dataset.features) print_ds(dataset) dataset = dataset.map(lambda x: encode(x,processor)) print("Features: ",dataset.features) print_ds(dataset) ``` ## Expected results map function not printing Audio type features be used with processor function and getting error in processor call due to this. ## Actual results # after load_dataset call Features: {'sentence': Value(dtype='string', id=None), 'audio': Value(dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': 'data/0116_003.wav'} # after cast_column call Features: {'sentence': Value(dtype='string', id=None), 'audio': Audio(sampling_rate=16000, mono=True, _storage_dtype='string', id=None)} Data: {'sentence': 'और अपने पेट को माँ की स्वादिष्ट गरमगरम जलेबियाँ हड़पते\n', 'audio': {'path': 'data/0116_003.wav', 'array': array([ 1.2662281e-06, 1.0264218e-06, -1.3615092e-06, ..., 1.3017889e-02, 1.0085563e-02, 4.8155054e-03], dtype=float32), 'sampling_rate': 16000}} # after map call Features: None Audio: data/0116_003.wav Traceback (most recent call last): File "demo2.py", line 36, in <module> print_ds(dataset) File "demo2.py", line 11, in print_ds for d in iterator: File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 341, in __iter__ for key, example in self._iter(): File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 338, in _iter yield from ex_iterable File "/opt/conda/lib/python3.7/site-packages/datasets/iterable_dataset.py", line 192, in __iter__ yield key, self.function(example) File "demo2.py", line 32, in <lambda> dataset = dataset.map(lambda x: batch_encode(x,processor)) File "demo2.py", line 6, in batch_encode batch["input_values"] = processor(batch["audio"]['array'], sampling_rate=16000).input_values TypeError: string indices must be integers ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-4.14.243 with-debian-bullseye-sid - Python version: 3.7.9 - PyArrow version: 6.0.1 Hi! This is probably due to the fact that `IterableDataset.map` sets `features` to `None` before mapping examples. We can fix the issue by passing the old `features` dict to the map generator and performing encoding/decoding there (before calling the map transform function).
[ -1.3209736347198486, -0.9842166900634766, -0.6369657516479492, 1.4788740873336792, -0.241384819149971, -1.1032514572143555, 0.16702315211296082, -1.0386404991149902, 1.6741726398468018, -0.8520673513412476, 0.37682804465293884, -1.6408212184906006, 0.03460470959544182, -0.5864285826683044, -0.7053197622299194, -0.951229989528656, -0.3984539806842804, -0.7234386801719666, 1.1848640441894531, 2.5146162509918213, 1.2393656969070435, -1.4025309085845947, 2.796367645263672, 0.7137959003448486, -0.16874831914901733, -1.0731297731399536, 0.5228083729743958, 0.033008720725774765, -1.2922252416610718, -0.4440772831439972, -0.9456180930137634, -0.06043557822704315, -0.5923599600791931, -0.4219247102737427, -0.03847543150186539, 0.4533156156539917, -0.32903504371643066, -0.5029618144035339, -0.6201159358024597, -0.7792130708694458, 0.4670042395591736, -0.45116299390792847, 0.9317297339439392, -0.3159441351890564, 1.7973294258117676, -0.5110939741134644, 0.5236345529556274, 0.6407961845397949, 1.3294856548309326, 0.28603827953338623, -0.022307738661766052, 0.4280489981174469, 0.42046886682510376, -0.0852120891213417, 0.5939741730690002, 1.2096166610717773, 0.6393519043922424, 0.38206130266189575, 0.8049803376197815, -2.2389261722564697, 1.2227991819381714, -0.9665305018424988, 0.3515329360961914, 1.3588446378707886, -0.8919724822044373, 0.3888661563396454, -1.7131280899047852, -0.06588761508464813, 0.6316180229187012, -2.167933225631714, 0.28832679986953735, -1.3551692962646484, -0.5459015369415283, 1.065176010131836, 0.30127614736557007, -1.2539876699447632, 0.16545943915843964, -0.3450687527656555, 1.060875415802002, 0.3905216157436371, 1.0873421430587769, -1.578084945678711, -0.036488842219114304, -0.3207370638847351, 0.0745864138007164, -1.1862372159957886, -1.5399097204208374, 0.5929226279258728, 0.5659915208816528, 0.6090798377990723, -0.15169622004032135, 1.0573198795318604, -1.1917847394943237, 0.8052833676338196, -1.0444661378860474, -1.6814409494400024, -1.455767035484314, -2.3369221687316895, -2.224254608154297, 0.7713875770568848, -0.43459391593933105, -0.5024877786636353, 2.07598614692688, -1.0731661319732666, -1.6917791366577148, 1.2871310710906982, 0.3125491738319397, 0.018983274698257446, 2.4028728008270264, 0.1579933613538742, -0.7377191185951233, 0.5459040403366089, -0.7393040657043457, 0.7447354793548584, -0.29071301221847534, 1.3298782110214233, 0.35293224453926086, -0.9709658026695251, 1.6047003269195557, -0.3728874623775482, 0.5872457027435303, -0.5106319785118103, -0.518260657787323, -0.7365449666976929, 0.3106224834918976, 1.8411322832107544, -0.2169380933046341, 1.5631986856460571, -0.3809473216533661, -1.5425652265548706, -1.6391974687576294, 0.9147600531578064, 0.4422033727169037, -0.7341974973678589, 0.05195208638906479, -0.35391634702682495, 0.14072531461715698, -0.04521613195538521, 1.1564840078353882, 1.2942228317260742, 0.6490164995193481, -0.3779015839099884, -0.8853824138641357, 0.18968042731285095, -0.06616783887147903, -0.6538270115852356, -1.6712877750396729, -0.3792128264904022, 0.050070248544216156, 0.6562532782554626, -1.1659502983093262, 1.6297411918640137, 0.9390215277671814, 1.884773850440979, 1.096591830253601, -0.3784167766571045, 1.5051378011703491, 0.16944991052150726, 1.7959809303283691, -0.5502170920372009, 0.6860175132751465, -0.39869269728660583, -1.166437029838562, 0.7626449465751648, -0.3692229390144348, -2.0708248615264893, -0.8433398008346558, -0.6733238101005554, -0.16582153737545013, -0.8585453033447266, 0.9339584112167358, -0.37293219566345215, -1.484036922454834, 0.29854685068130493, -0.7859338521957397, 0.17117971181869507, -1.2221168279647827, 0.3218477666378021, 0.6289554834365845, -0.5881595015525818, 0.12110870331525803, -0.24325811862945557, -1.2415028810501099, -0.3754231333732605, 0.29532888531684875, 1.856600284576416, -0.7627096772193909, 0.7985147833824158, 1.0383803844451904, -0.6383911371231079, 0.049236807972192764, 0.1262664496898651, -0.2527056336402893, 0.8744365572929382, -1.0131481885910034, -0.5556129217147827, 1.2201942205429077, -0.25135576725006104, -0.564146876335144, 1.4082906246185303, 0.6793551445007324, -1.0082215070724487, -0.2143256813287735, -0.14597758650779724, -0.8512375950813293, -0.013978683389723301, -1.5703425407409668, -0.25432416796684265, 0.5139167308807373, -1.529825210571289, -0.4415360689163208, -0.2124050110578537, 1.1745131015777588, -0.18987737596035004, 1.4880218505859375, -0.5012297034263611, -0.15349054336547852, -0.24195441603660583, -0.4572134017944336, 0.18265655636787415, -0.17912226915359497, -0.6839428544044495, 0.09077448397874832, -0.8678367733955383, 0.386719286441803, 1.3747869729995728, 0.4034210443496704, 0.019904382526874542, 0.4448103606700897, 1.0945301055908203, 0.47236761450767517, -0.07511043548583984, -0.8229110240936279, -1.6128121614456177, 1.994981288909912, -1.4011318683624268, 2.0287389755249023, 0.7620040774345398, -0.043263308703899384, -1.7629121541976929, -1.749169111251831, 1.2996256351470947, 1.0452805757522583, 2.2571051120758057, 0.5323583483695984, 0.39278942346572876, -0.8465231657028198, -0.7455691695213318, 0.25416386127471924, -1.0016080141067505, -0.6485579609870911, 0.14743557572364807, 2.4106621742248535, 1.7942578792572021, -0.435171902179718, -0.1243182048201561, -0.944786548614502, 1.4087364673614502, -0.22366835176944733, 0.28749850392341614, 1.9497418403625488, -0.2775507867336273, -1.0503804683685303, 1.3725619316101074, -2.3229730129241943, 0.17065255343914032, 2.0634498596191406, 0.24954870343208313, 0.0868867039680481, -1.2930636405944824, -0.6007543206214905, -0.378242552280426, -0.42919793725013733, -1.2421737909317017, 0.5222181081771851, -0.2584644556045532, -0.7439593076705933, -1.3687348365783691, 0.14223536849021912, -1.1776180267333984, -1.619041919708252, 0.2222806215286255, 1.940049409866333, 2.0385196208953857, -0.7906377911567688, 1.5432771444320679, -0.21311208605766296, 0.21082913875579834, 1.1885629892349243, 1.2928436994552612, 3.0449318885803223, 1.8699803352355957, -1.2836586236953735, 0.535105288028717, -0.19431909918785095, -0.45999038219451904, 1.1326686143875122, -1.2809242010116577, 1.327623963356018, -0.01992437243461609, -1.2255538702011108, -1.1772838830947876, 0.9739887118339539, 0.47079136967658997, 0.013219076208770275, -0.5395134091377258, 1.15396249294281, -0.03734990954399109, 1.3516604900360107, 0.5878699421882629, -0.3694709241390228, 0.5407627820968628, -0.3410351872444153, -0.5383265018463135, 1.5457903146743774, 0.04455487057566643, -1.4805351495742798, -2.182021379470825, -0.1858121007680893, -0.7554185390472412, -0.003588864579796791, -0.5862184166908264, -0.9957972764968872, 1.594122290611267, 0.28934186697006226, -1.308441162109375, -0.29222190380096436, -0.3385392427444458, -0.4963354766368866, 2.794820785522461, -1.2540826797485352, -0.2754758894443512, -1.0043795108795166, -0.6703792810440063, 1.6308560371398926, -1.1149758100509644, -0.1414516121149063, -0.9959374666213989, -0.5716894268989563, -1.3622223138809204, -0.5678205490112305, 0.09151288121938705, -1.0153462886810303, 0.8895760178565979, 0.30911722779273987, -1.1916561126708984, -0.35111913084983826, -0.9360290765762329, 0.9961831569671631, -0.18343694508075714, 0.1513408124446869, 1.9044469594955444, 0.2916586995124817, -0.33900484442710876, 0.7630690932273865, 1.2254914045333862, 0.667566180229187, -0.6134029626846313, 0.14207635819911957, -0.7156575918197632, 0.4029645025730133, -1.3522204160690308, 0.25749364495277405, -2.8258817195892334, 0.7223362922668457, -0.0476561076939106, -0.2223995178937912, 0.03408045694231987, -1.31167471408844, 1.0450292825698853, 2.5742716789245605, -1.1704154014587402, 0.5246305465698242, 0.4004088044166565, 1.2008460760116577, -1.6973071098327637, 0.32643407583236694, -0.4725501537322998, 2.002279281616211, 0.2846553921699524, 1.2838114500045776, -0.5040296912193298, -2.3184125423431396, 0.6273331046104431, -1.2744140625, -1.170179009437561, 0.6650845408439636, -1.0283925533294678, 0.295307993888855, -1.4571797847747803, -0.29632076621055603, -0.9246023893356323, -1.0727834701538086, 0.6273055076599121, 0.21049189567565918, 0.3046484887599945, -0.5453274846076965, 0.28959280252456665, -2.3105955123901367, -1.4671006202697754, -0.18627770245075226, -1.0116208791732788, 0.5557674169540405, -0.5063992738723755, 0.6640446782112122, -0.18075411021709442, -0.05676329508423805, 0.2980087101459503, 1.5465561151504517, 3.4499306678771973, 0.24689868092536926, 0.291086882352829, -0.16634024679660797, -0.98124760389328, 1.5606650114059448, 0.850536584854126, -0.08023582398891449, -0.5091590881347656, -1.1925466060638428, 1.278795599937439, 1.9066797494888306, 1.000550389289856, 0.05762104690074921, -0.7859009504318237, -0.7080461978912354, -0.06778494268655777, 0.21922437846660614, 0.4854580760002136, 0.9434988498687744, 0.06074829399585724, 0.12550002336502075, 1.5393805503845215, 1.193224310874939, -0.4461893141269684, 0.28419309854507446, -0.8697178959846497, -0.5633238554000854, 0.4654810428619385, 0.20424465835094452, -0.025821398943662643, 0.3932935297489166, -0.9650717377662659, -0.2340548038482666, -0.46601682901382446, -0.8758220672607422, -0.7198461890220642, -0.27994200587272644, -0.3249390125274658, 1.6219191551208496, 0.19632893800735474, -0.6362379789352417, -0.06926984339952469, -0.7684721946716309, -0.19981862604618073, -1.0596064329147339, 0.2443733811378479, -0.10677611082792282, -0.18354728817939758, -0.18092240393161774, 1.6293818950653076, -0.9600861072540283, -2.15733003616333, 0.0974530428647995, 0.20593367516994476, -0.15356864035129547, 0.17160792648792267, 1.608263611793518, 0.5253824591636658, 1.473702311515808, 1.3238521814346313, 0.8857629299163818, -0.6089355945587158, -1.2672313451766968, 0.7404847741127014, 0.9041004180908203, -1.2994170188903809, 0.8221675753593445, -0.057951636612415314, -0.6270020604133606, 0.5938580632209778, 1.2859004735946655, 0.5640644431114197, -2.0042121410369873, 0.8751232028007507, -1.0278551578521729, 0.7980803847312927, 0.6797539591789246, 0.6495351791381836, 0.25468480587005615, 0.8536684513092041, -1.2670278549194336, -1.1604194641113281, -0.7899952530860901, -0.6902706623077393, 2.006105899810791, -0.3916410207748413, 0.7039090991020203, -0.2064654678106308, -1.2348312139511108, -0.01994861289858818, 0.6524918675422668, 0.3277393877506256, -0.512388288974762, 0.8114879131317139, -0.6613442301750183, -1.0431971549987793, -1.4115585088729858, -0.3630925714969635, -1.0823311805725098, -0.9456165432929993, 0.9986895322799683, 0.7584941387176514, 0.28107044100761414, 1.800644874572754, 0.6506643891334534, 0.2917288839817047, -2.5834202766418457, 0.9732422232627869, 0.16448242962360382, -0.07352686673402786, 0.7861417531967163, 0.37134096026420593, 1.080397605895996, 0.03529276326298714, 0.501812756061554, -2.4370343685150146, 2.246387481689453, -0.24930447340011597, 0.7207034230232239, -0.07117655128240585, -0.06784678250551224, 1.167271614074707, 0.6114802956581116, 0.5397930145263672, -0.9705967903137207, 0.6165364980697632, -0.4861038029193878, 1.2737008333206177, 1.0241994857788086, -0.8022894263267517, -0.0060534728690981865, 1.4981521368026733, 0.44355764985084534, -0.6290691494941711, -1.0141973495483398, -0.7754847407341003, 0.958530604839325, 1.7217154502868652, -0.08819638937711716, -0.08756589144468307, 0.8107964992523193, 0.6531696915626526, -1.2727364301681519, 0.07440367341041565, -0.6048177480697632, -0.6828016042709351, 1.6767210960388184, 2.0702402591705322, -0.2426908314228058, -0.3202241361141205, -0.5673267245292664, -1.2909023761749268, 0.7536353468894958, -0.09757915139198303, 0.2018258422613144, 0.7524184584617615, -0.7240065336227417, 0.955617368221283, 0.8088310956954956, 0.8786566257476807, 0.1491134762763977, 0.23960475623607635, 0.4932138919830322, -0.3124392330646515, -1.1583195924758911, -0.20987720787525177, -1.0845574140548706, -2.500762701034546, 0.3585333526134491, -0.21206049621105194, -1.3251004219055176, 0.0413106344640255, -1.0518132448196411, 1.0616775751113892, -0.5590710043907166, -1.0944149494171143, -1.5338231325149536, 0.2075880467891693, 0.08950736373662949, 0.9171603322029114, -1.6271393299102783, -0.24309447407722473, 1.1815569400787354, 0.9289221167564392, -0.6777874231338501, 1.032435655593872, 0.19485460221767426, 0.994340181350708, 0.7624682784080505, -0.4143363833427429, 0.5413516163825989, -0.1411626636981964, -1.3648985624313354, 0.5305073857307434, 1.208042860031128, 0.20656968653202057, 1.4791837930679321, -0.49190184473991394, -0.04509365186095238, 0.39821693301200867, -0.6081949472427368, -0.4282592236995697, -0.39183950424194336, 0.5703799724578857, 0.031520090997219086, -0.8719046115875244, -0.10902218520641327, -0.01722824014723301, -0.38110780715942383, 0.12200730293989182, -1.4754694700241089, -0.07031817734241486, -0.35281944274902344, -0.6351574063301086, -1.243487000465393, -0.11057393997907639, 1.4319299459457397, -0.8408107757568359, -0.21348978579044342, 0.49923479557037354, 0.32224205136299133, 0.5137490034103394, 0.5773647427558899, -0.7647226452827454, -0.3133508265018463, -0.22910286486148834, -0.21987560391426086, 0.3106689155101776, 1.3875137567520142, -0.08912283182144165, -1.049430251121521, 0.6363303065299988, -0.32796165347099304, 0.15056298673152924, 1.9285509586334229, 0.06060215085744858, -0.768821120262146, 0.1841302514076233, -0.8248136043548584, 1.9319994449615479, 1.7183711528778076, 1.403782844543457, -0.17212089896202087, -0.8581982254981995, 0.6186461448669434, -0.4181579351425171, -0.4018837809562683, 0.8610403537750244, 0.33331602811813354, -0.17234590649604797, -1.4165724515914917, 0.825336754322052, 1.2234596014022827, -0.8644507527351379, -0.7696160674095154, 0.21198762953281403, -0.8172048926353455, 1.185235619544983, 0.5004397630691528, 0.3128420114517212, 0.28464266657829285, 1.663279414176941, 0.8326343894004822, -0.3588806390762329, 0.5641305446624756, 0.6493486166000366, -0.21699631214141846, -2.210026741027832, -1.1522969007492065, 0.2917473018169403, -0.5082993507385254, -1.6753654479980469, 1.4238860607147217, -1.131002426147461, -0.9404022097587585, 0.6119367480278015, 0.08721195161342621, 1.403635025024414, 0.3958161473274231, 1.544346809387207, 2.0493428707122803, 0.8322176933288574, 0.48991402983665466, 1.227776050567627, -0.13469871878623962, -0.3469966650009155, 1.7018322944641113, -0.40151920914649963, 0.4635588526725769, 1.0643380880355835, -0.26381322741508484, -1.1812340021133423, -0.8126075863838196, -1.3307303190231323, -0.7336130738258362, 1.0996278524398804, 0.08865178376436234, -1.0540519952774048, 0.24628543853759766, 1.56717050075531, 0.09014318883419037, -0.4354420602321625, 0.6486537456512451, 0.428198903799057, -0.8085070252418518, -0.0816601812839508, -0.8481307625770569, 0.47247955203056335, -0.1693773716688156, -0.34262844920158386, 0.31232592463493347, 0.43545210361480713, 1.4703644514083862, -0.07281767576932907, 0.08826669305562973, 1.173681378364563, -1.3682260513305664, 1.4445257186889648, -0.7023008465766907, 0.31802451610565186, -2.295583724975586, 1.347762107849121, -0.6973267197608948, 1.9620577096939087, -2.626873731613159, 0.5568053126335144, -0.6070550084114075, -0.46732285618782043, 0.23615680634975433, -0.37473440170288086, 0.08067098259925842, 0.01418947335332632, -1.1222569942474365, -0.06080832704901695, -0.5845121145248413, 0.5279102921485901, 1.229229211807251, 1.2876781225204468, -1.1253581047058105, -0.32511597871780396, -1.6461873054504395, -0.11179820448160172, -0.7446625828742981, 0.3299766480922699, -2.086610794067383, -0.2124667912721634, -1.8329522609710693, -2.4041993618011475, -1.1506258249282837, -0.6743267774581909, 1.1578731536865234, 0.10285554826259613, -0.9006892442703247, 1.4381239414215088, -0.35988137125968933, -1.8238433599472046, 1.139069676399231, -2.1758430004119873 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
Hi @ToddMorrill, thanks for reporting. Three weeks ago I contacted the team who created the Pile dataset to report this issue with their data host server: https://the-eye.eu They told me that unfortunately, the-eye was heavily affected by the recent tornado catastrophe in the US. They hope to have their data back online asap.
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
1,029
53
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1 Hi @ToddMorrill, thanks for reporting. Three weeks ago I contacted the team who created the Pile dataset to report this issue with their data host server: https://the-eye.eu They told me that unfortunately, the-eye was heavily affected by the recent tornado catastrophe in the US. They hope to have their data back online asap.
[ -1.1773560047149658, -0.8322024345397949, -0.6177135109901428, 1.523836374282837, 0.007157817482948303, -1.4012211561203003, 0.17229434847831726, -0.8302180171012878, 1.6007416248321533, -0.7985096573829651, 0.36912503838539124, -1.6087433099746704, 0.03057902492582798, -0.6357854008674622, -0.6420696973800659, -0.6932831406593323, -0.28297632932662964, -0.6920785903930664, 1.0981870889663696, 2.3796918392181396, 1.2796838283538818, -1.305290699005127, 2.8349180221557617, 0.6523664593696594, -0.2950284779071808, -0.849772572517395, 0.3543437421321869, -0.028008144348859787, -1.375511884689331, -0.34835484623908997, -0.9414991140365601, -0.07921750843524933, -0.6531495451927185, -0.4729244112968445, 0.07144589722156525, 0.5240770578384399, -0.183205246925354, -0.36316004395484924, -0.5014020204544067, -0.7759655117988586, 0.6044114232063293, -0.24140876531600952, 0.8405011892318726, -0.25464490056037903, 1.8201937675476074, -0.730063796043396, 0.5558257102966309, 0.6305631399154663, 1.1610201597213745, 0.1654081642627716, -0.0696166381239891, 0.36084115505218506, 0.26401472091674805, 0.041664257645606995, 0.6019286513328552, 1.2769721746444702, 0.6332122683525085, 0.5670477747917175, 0.6821461915969849, -2.197575807571411, 1.353432536125183, -0.8131005764007568, 0.22855378687381744, 1.3363080024719238, -1.1023077964782715, 0.47643694281578064, -1.8500332832336426, -0.11020277440547943, 0.4771253764629364, -2.3211052417755127, 0.11344784498214722, -1.3169177770614624, -0.640536367893219, 0.9404687881469727, 0.3533022701740265, -1.2584887742996216, -0.037534233182668686, -0.4815675914287567, 1.0162701606750488, 0.4013669192790985, 1.0602420568466187, -1.6599866151809692, 0.03254391998052597, -0.12812043726444244, 0.26986661553382874, -1.229171872138977, -1.653781771659851, 0.6447962522506714, 0.6988012790679932, 0.6631032228469849, -0.13616055250167847, 0.9265866279602051, -1.1307839155197144, 0.8848221898078918, -0.9771178960800171, -1.7412958145141602, -1.3590521812438965, -2.425184726715088, -2.4050145149230957, 0.7637788653373718, -0.4113067090511322, -0.36744871735572815, 2.1283628940582275, -1.0899749994277954, -1.749295711517334, 1.1011366844177246, 0.23603683710098267, -0.022063393145799637, 2.3624026775360107, 0.22771155834197998, -0.9140079021453857, 0.649632453918457, -0.8544011116027832, 0.6566305756568909, -0.3606162369251251, 1.220615029335022, 0.4024227261543274, -1.0410009622573853, 1.5643346309661865, -0.3272292912006378, 0.5494334697723389, -0.7808974981307983, -0.4278504252433777, -0.5979942679405212, 0.12915626168251038, 1.9495525360107422, -0.20596708357334137, 1.5421779155731201, -0.13672907650470734, -1.4211596250534058, -1.4059271812438965, 0.7466850876808167, 0.4698279798030853, -0.9436179995536804, 0.20192484557628632, -0.5078422427177429, 0.1857871562242508, 0.09213872253894806, 1.1383607387542725, 1.278053641319275, 0.819146990776062, -0.23872536420822144, -0.765959620475769, 0.1110556349158287, -0.04182542860507965, -0.576579749584198, -1.736052393913269, -0.29196691513061523, 0.19674701988697052, 0.6276894211769104, -1.203495979309082, 1.9903550148010254, 0.8372454643249512, 2.077467441558838, 1.0663988590240479, -0.3414939045906067, 1.5028338432312012, -0.02428135648369789, 1.9103881120681763, -0.35767874121665955, 0.6156290769577026, -0.5128700137138367, -1.1156888008117676, 0.710588812828064, -0.33889272809028625, -2.0251479148864746, -0.4612480401992798, -0.8570371866226196, -0.0918656662106514, -0.8310623168945312, 0.9742740392684937, -0.1956203579902649, -1.4022353887557983, 0.09535860270261765, -0.6538759469985962, 0.1847914457321167, -1.35788893699646, 0.2502082586288452, 0.7620499134063721, -0.7992322444915771, 0.0710877776145935, -0.4860836863517761, -1.3882911205291748, -0.596367597579956, 0.5458751916885376, 1.8159791231155396, -0.589040994644165, 0.9955484867095947, 0.9712626338005066, -0.6157914400100708, -0.006899116560816765, 0.49518516659736633, -0.3540976941585541, 0.8853899240493774, -1.0468584299087524, -0.41522666811943054, 1.1097955703735352, -0.3870111107826233, -0.6088953614234924, 1.3896894454956055, 0.762052059173584, -0.981279730796814, -0.3529142439365387, -0.15597257018089294, -0.8448205590248108, 0.06445898860692978, -1.5288959741592407, -0.08988282829523087, 0.3462063670158386, -1.509297251701355, -0.45040008425712585, -0.021582432091236115, 1.3871474266052246, -0.021093731746077538, 1.398154854774475, -0.14575067162513733, -0.12488867342472076, -0.4570661783218384, -0.5481035113334656, 0.15498968958854675, -0.11614550650119781, -0.5711732506752014, 0.21603643894195557, -0.7783064246177673, 0.2050451785326004, 1.4989618062973022, 0.16239793598651886, 0.12710687518119812, 0.5385110974311829, 1.2223742008209229, 0.3648783564567566, -0.20080873370170593, -0.8344850540161133, -1.637458324432373, 1.9667221307754517, -1.5566117763519287, 1.9646885395050049, 0.8087564706802368, -0.0901637002825737, -1.8542628288269043, -1.8248354196548462, 1.3820708990097046, 1.0895947217941284, 2.433584213256836, 0.49631401896476746, 0.4598085284233093, -0.8486921191215515, -0.7619152069091797, 0.43788501620292664, -0.8222006559371948, -0.8662322759628296, 0.15354588627815247, 2.3420352935791016, 1.7605068683624268, -0.39686319231987, -0.2757042944431305, -0.9142205715179443, 1.2992407083511353, -0.31024208664894104, 0.27497392892837524, 1.93315589427948, -0.39011824131011963, -0.986048698425293, 1.3338063955307007, -2.40260648727417, 0.3412831425666809, 2.0147297382354736, 0.26080480217933655, 0.055941298604011536, -1.250045657157898, -0.6583411693572998, -0.1484782099723816, -0.4373725950717926, -1.2456777095794678, 0.336803138256073, -0.21017061173915863, -0.8559434413909912, -1.3465638160705566, 0.006065616384148598, -1.157723069190979, -1.7639039754867554, 0.2853652834892273, 1.8210698366165161, 2.137295722961426, -0.722059428691864, 1.2749390602111816, -0.2959294319152832, 0.16766969859600067, 1.2173455953598022, 1.3202550411224365, 3.222472906112671, 1.9706984758377075, -1.2526025772094727, 0.7272545099258423, -0.23157306015491486, -0.5047090649604797, 1.1222642660140991, -1.0720884799957275, 1.1327617168426514, -0.3204125165939331, -1.3315951824188232, -1.2352821826934814, 1.0290831327438354, 0.4641481041908264, -0.08364618569612503, -0.5143253207206726, 1.182722806930542, 0.2281353920698166, 1.3284803628921509, 0.6542705297470093, -0.3633665442466736, 0.5211014747619629, -0.3954058289527893, -0.5713315010070801, 1.5733672380447388, 0.1294788122177124, -1.5066115856170654, -2.302584648132324, -0.09615003317594528, -1.056552529335022, -0.029748963192105293, -0.8809928297996521, -1.071846842765808, 1.4801989793777466, 0.49672576785087585, -1.0567378997802734, -0.06539340317249298, -0.32466310262680054, -0.5842640399932861, 2.6725215911865234, -1.3080949783325195, -0.22984248399734497, -0.9674608111381531, -0.5743022561073303, 1.5628148317337036, -1.2327024936676025, -0.31855130195617676, -1.029005527496338, -0.5750486254692078, -1.1963034868240356, -0.4300144910812378, -0.05502387881278992, -0.8379459381103516, 0.7158684134483337, -0.08777354657649994, -1.2632033824920654, -0.24628277122974396, -1.0171369314193726, 0.9140917658805847, -0.22731299698352814, 0.05958689749240875, 1.735905408859253, 0.20172423124313354, -0.40306010842323303, 0.8319007158279419, 1.216065764427185, 0.674553394317627, -0.571115255355835, 0.19385592639446259, -0.6002199053764343, 0.49894049763679504, -1.2134186029434204, 0.3731290102005005, -2.920224905014038, 0.7078956961631775, -0.023421775549650192, -0.14554135501384735, -0.18443560600280762, -1.488757848739624, 0.8875042796134949, 2.4606144428253174, -1.1191591024398804, 0.6089829206466675, 0.3531002700328827, 1.2160381078720093, -1.6292082071304321, 0.08800153434276581, -0.6951959133148193, 2.0378165245056152, 0.05606279522180557, 1.1169992685317993, -0.5174821615219116, -2.2700295448303223, 0.565987765789032, -1.209745168685913, -0.9614554643630981, 0.8108286261558533, -0.8596100211143494, 0.23434124886989594, -1.1209678649902344, -0.13478846848011017, -0.9149324893951416, -1.1647135019302368, 0.49644777178764343, 0.05267878621816635, 0.6394451260566711, -0.6317342519760132, 0.24060754477977753, -2.280386447906494, -1.397584319114685, -0.1657957136631012, -0.9309512972831726, 0.48527461290359497, -0.4561387300491333, 0.6833072304725647, -0.07594716548919678, 0.09690701961517334, 0.20941191911697388, 1.554304599761963, 3.201228618621826, 0.01470641978085041, 0.29686710238456726, -0.30015021562576294, -1.0214805603027344, 1.4837244749069214, 0.8894389271736145, -0.19943107664585114, -0.6553274393081665, -0.947693943977356, 1.3803716897964478, 1.990483283996582, 1.1074070930480957, 0.1810799390077591, -0.9420451521873474, -0.8137936592102051, 0.13563884794712067, 0.1674535870552063, 0.47443467378616333, 0.9991590976715088, 0.15029576420783997, 0.22693274915218353, 1.3008253574371338, 1.0947710275650024, -0.24213159084320068, 0.48839038610458374, -0.8930382132530212, -0.3216797113418579, 0.507390558719635, 0.3395313322544098, -0.06547840684652328, 0.2533203065395355, -1.0296764373779297, -0.1586889922618866, -0.2845662236213684, -0.7900726795196533, -0.8005391955375671, -0.3306891918182373, -0.4757603704929352, 1.7898342609405518, -0.06118675321340561, -0.5102791786193848, 0.009240087121725082, -0.7525061368942261, -0.1477276086807251, -1.0648356676101685, 0.2498215287923813, -0.11034893989562988, 0.03803198039531708, -0.11966265738010406, 1.659450888633728, -0.9760607481002808, -2.2880685329437256, 0.1394805908203125, 0.14767351746559143, -0.35614335536956787, -0.05055035650730133, 1.84379243850708, 0.5098691582679749, 1.3781840801239014, 1.5160003900527954, 1.1825127601623535, -0.6203533411026001, -1.2812485694885254, 0.7467486262321472, 0.9036017060279846, -1.3234634399414062, 0.9201160073280334, -0.2483353465795517, -0.5262026786804199, 0.5522473454475403, 1.2851707935333252, 0.373625248670578, -2.01891827583313, 0.8648172616958618, -1.124254822731018, 0.8926511406898499, 0.8417783379554749, 0.8181990385055542, 0.22851145267486572, 0.9262992143630981, -1.2195320129394531, -1.038327693939209, -0.5016461610794067, -0.6510787010192871, 1.88435959815979, -0.2946570813655853, 0.3954620659351349, -0.22206294536590576, -1.241920828819275, 0.09248395264148712, 0.8060131072998047, 0.3213808238506317, -0.33574792742729187, 0.7895419597625732, -0.728847324848175, -0.9821856021881104, -1.241194486618042, -0.488798588514328, -1.038163661956787, -0.8339258432388306, 1.056845784187317, 0.735963761806488, 0.5626521706581116, 1.9578408002853394, 0.6475728154182434, 0.30070823431015015, -2.635855197906494, 0.7940289378166199, 0.3784533739089966, -0.10418731719255447, 0.8440473675727844, 0.3200903534889221, 1.2620372772216797, -0.13389936089515686, 0.5691783428192139, -2.3312909603118896, 2.257936477661133, -0.18600288033485413, 0.7205327749252319, 0.051037535071372986, -0.04269963502883911, 1.0325077772140503, 0.5147140026092529, 0.5636022090911865, -1.0596612691879272, 0.8305518627166748, -0.5910542011260986, 1.1069222688674927, 0.7329395413398743, -0.9226201772689819, 0.17373086512088776, 1.2193583250045776, 0.3861408233642578, -0.6108396649360657, -1.003136157989502, -0.9112198948860168, 0.9088854193687439, 1.7526897192001343, 0.006729805842041969, 0.10370701551437378, 0.8654427528381348, 0.7412937879562378, -1.1937284469604492, 0.05876077711582184, -0.6087015271186829, -0.6996064782142639, 1.7301462888717651, 2.023141622543335, -0.0864357203245163, -0.0300044734030962, -0.8057882785797119, -1.4651706218719482, 0.8038960695266724, 0.08456246554851532, -0.1430816650390625, 0.7249149680137634, -0.6618590354919434, 1.1280728578567505, 0.7197803854942322, 0.9211637377738953, 0.12032872438430786, 0.12578897178173065, 0.2545489966869354, -0.37547799944877625, -1.2959469556808472, -0.39089369773864746, -0.9968541860580444, -2.6146738529205322, 0.42485806345939636, -0.28809070587158203, -1.4812403917312622, 0.13171914219856262, -0.9708796739578247, 0.7189860343933105, -0.580439567565918, -1.272539496421814, -1.3685921430587769, 0.3320575952529907, -0.18536414206027985, 0.7863661050796509, -1.608160138130188, -0.18008515238761902, 1.078241229057312, 0.9102030396461487, -0.665963888168335, 0.8256094455718994, 0.22948524355888367, 0.9149450063705444, 0.8826074600219727, -0.40629351139068604, 0.47903621196746826, 0.25242021679878235, -1.3729231357574463, 0.4091223180294037, 1.3084796667099, 0.13438363373279572, 1.323317289352417, -0.4425053894519806, -0.0409688875079155, 0.44999960064888, -0.3616167902946472, -0.5529203414916992, -0.7088938355445862, 0.6896896362304688, -0.16287469863891602, -1.0058733224868774, -0.1263238489627838, 0.013276424258947372, -0.21877257525920868, 0.241215780377388, -1.4726585149765015, -0.10019199550151825, -0.4084206223487854, -0.6243906617164612, -1.4276540279388428, -0.000006727874279022217, 1.2957185506820679, -0.8474123477935791, -0.14722995460033417, 0.525917112827301, 0.25243982672691345, 0.5517911314964294, 0.6518262028694153, -0.7501375675201416, -0.21736744046211243, -0.15796291828155518, -0.3931104838848114, 0.3651674687862396, 1.3279356956481934, -0.06070809066295624, -0.9667664170265198, 0.5454186797142029, -0.24443379044532776, 0.24307425320148468, 1.998504638671875, 0.10296991467475891, -0.7818470597267151, 0.38086530566215515, -0.7562257647514343, 1.818859338760376, 1.647436499595642, 1.2928102016448975, -0.1094711422920227, -0.9212979078292847, 0.6067588329315186, -0.32163336873054504, -0.37154459953308105, 0.8632872700691223, 0.3166954815387726, -0.34202107787132263, -1.3825753927230835, 0.7754673957824707, 1.2392984628677368, -0.7871515154838562, -0.8201092481613159, 0.17943187057971954, -0.8489975929260254, 1.2757511138916016, 0.5476250648498535, 0.3101924955844879, 0.19272297620773315, 1.6412609815597534, 0.7226501107215881, -0.49599406123161316, 0.5478235483169556, 0.4433329999446869, -0.12499876320362091, -1.971705675125122, -1.0921412706375122, 0.2749938666820526, -0.4808247685432434, -1.5163004398345947, 1.4591639041900635, -1.2657122611999512, -1.0353912115097046, 0.5100074410438538, 0.19389989972114563, 1.3409208059310913, 0.3003925383090973, 1.7658463716506958, 2.0305747985839844, 0.8693429231643677, 0.5400221943855286, 1.181584358215332, -0.2242613285779953, -0.31491005420684814, 1.6884931325912476, -0.5329511165618896, 0.6591758728027344, 1.0600613355636597, -0.429308146238327, -1.2287307977676392, -0.7699460983276367, -1.135841727256775, -0.740513026714325, 1.0790642499923706, 0.1795462667942047, -1.0183862447738647, 0.3241684138774872, 1.595428228378296, 0.08739934861660004, -0.050330750644207, 0.6776787638664246, 0.28882065415382385, -0.5809891819953918, -0.09396850317716599, -1.0201764106750488, 0.5986723899841309, -0.3371833562850952, -0.3975430130958557, 0.2159997820854187, 0.5486563444137573, 1.165034532546997, 0.08939716964960098, 0.03513132780790329, 1.3273533582687378, -1.4356893301010132, 1.3201240301132202, -0.857403576374054, 0.4213685989379883, -2.3369767665863037, 1.4588333368301392, -0.903244137763977, 1.944054365158081, -2.658853769302368, 0.40468212962150574, -0.43560320138931274, -0.5748660564422607, 0.19457018375396729, -0.10995009541511536, 0.03050745464861393, -0.13099168241024017, -1.0452882051467896, -0.07186752557754517, -0.8261780142784119, 0.48060187697410583, 1.2450683116912842, 1.4107412099838257, -0.973369300365448, -0.2664166986942291, -1.6712316274642944, -0.16367419064044952, -0.6277300119400024, 0.21156133711338043, -1.8054695129394531, -0.13956494629383087, -2.0375311374664307, -2.4091129302978516, -1.384842872619629, -1.001303791999817, 1.2506742477416992, 0.1386984884738922, -0.9092864394187927, 1.1791890859603882, -0.2811967730522156, -1.7673511505126953, 1.1674494743347168, -2.2086262702941895 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
Hi @ToddMorrill, people from the Pile team have mirrored their data in a new host server: https://mystic.the-eye.eu See: - #3627 It should work if you update your URL. We should also update the URL in our course material.
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
1,029
38
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1 Hi @ToddMorrill, people from the Pile team have mirrored their data in a new host server: https://mystic.the-eye.eu See: - #3627 It should work if you update your URL. We should also update the URL in our course material.
[ -1.1773560047149658, -0.8322024345397949, -0.6177135109901428, 1.523836374282837, 0.007157817482948303, -1.4012211561203003, 0.17229434847831726, -0.8302180171012878, 1.6007416248321533, -0.7985096573829651, 0.36912503838539124, -1.6087433099746704, 0.03057902492582798, -0.6357854008674622, -0.6420696973800659, -0.6932831406593323, -0.28297632932662964, -0.6920785903930664, 1.0981870889663696, 2.3796918392181396, 1.2796838283538818, -1.305290699005127, 2.8349180221557617, 0.6523664593696594, -0.2950284779071808, -0.849772572517395, 0.3543437421321869, -0.028008144348859787, -1.375511884689331, -0.34835484623908997, -0.9414991140365601, -0.07921750843524933, -0.6531495451927185, -0.4729244112968445, 0.07144589722156525, 0.5240770578384399, -0.183205246925354, -0.36316004395484924, -0.5014020204544067, -0.7759655117988586, 0.6044114232063293, -0.24140876531600952, 0.8405011892318726, -0.25464490056037903, 1.8201937675476074, -0.730063796043396, 0.5558257102966309, 0.6305631399154663, 1.1610201597213745, 0.1654081642627716, -0.0696166381239891, 0.36084115505218506, 0.26401472091674805, 0.041664257645606995, 0.6019286513328552, 1.2769721746444702, 0.6332122683525085, 0.5670477747917175, 0.6821461915969849, -2.197575807571411, 1.353432536125183, -0.8131005764007568, 0.22855378687381744, 1.3363080024719238, -1.1023077964782715, 0.47643694281578064, -1.8500332832336426, -0.11020277440547943, 0.4771253764629364, -2.3211052417755127, 0.11344784498214722, -1.3169177770614624, -0.640536367893219, 0.9404687881469727, 0.3533022701740265, -1.2584887742996216, -0.037534233182668686, -0.4815675914287567, 1.0162701606750488, 0.4013669192790985, 1.0602420568466187, -1.6599866151809692, 0.03254391998052597, -0.12812043726444244, 0.26986661553382874, -1.229171872138977, -1.653781771659851, 0.6447962522506714, 0.6988012790679932, 0.6631032228469849, -0.13616055250167847, 0.9265866279602051, -1.1307839155197144, 0.8848221898078918, -0.9771178960800171, -1.7412958145141602, -1.3590521812438965, -2.425184726715088, -2.4050145149230957, 0.7637788653373718, -0.4113067090511322, -0.36744871735572815, 2.1283628940582275, -1.0899749994277954, -1.749295711517334, 1.1011366844177246, 0.23603683710098267, -0.022063393145799637, 2.3624026775360107, 0.22771155834197998, -0.9140079021453857, 0.649632453918457, -0.8544011116027832, 0.6566305756568909, -0.3606162369251251, 1.220615029335022, 0.4024227261543274, -1.0410009622573853, 1.5643346309661865, -0.3272292912006378, 0.5494334697723389, -0.7808974981307983, -0.4278504252433777, -0.5979942679405212, 0.12915626168251038, 1.9495525360107422, -0.20596708357334137, 1.5421779155731201, -0.13672907650470734, -1.4211596250534058, -1.4059271812438965, 0.7466850876808167, 0.4698279798030853, -0.9436179995536804, 0.20192484557628632, -0.5078422427177429, 0.1857871562242508, 0.09213872253894806, 1.1383607387542725, 1.278053641319275, 0.819146990776062, -0.23872536420822144, -0.765959620475769, 0.1110556349158287, -0.04182542860507965, -0.576579749584198, -1.736052393913269, -0.29196691513061523, 0.19674701988697052, 0.6276894211769104, -1.203495979309082, 1.9903550148010254, 0.8372454643249512, 2.077467441558838, 1.0663988590240479, -0.3414939045906067, 1.5028338432312012, -0.02428135648369789, 1.9103881120681763, -0.35767874121665955, 0.6156290769577026, -0.5128700137138367, -1.1156888008117676, 0.710588812828064, -0.33889272809028625, -2.0251479148864746, -0.4612480401992798, -0.8570371866226196, -0.0918656662106514, -0.8310623168945312, 0.9742740392684937, -0.1956203579902649, -1.4022353887557983, 0.09535860270261765, -0.6538759469985962, 0.1847914457321167, -1.35788893699646, 0.2502082586288452, 0.7620499134063721, -0.7992322444915771, 0.0710877776145935, -0.4860836863517761, -1.3882911205291748, -0.596367597579956, 0.5458751916885376, 1.8159791231155396, -0.589040994644165, 0.9955484867095947, 0.9712626338005066, -0.6157914400100708, -0.006899116560816765, 0.49518516659736633, -0.3540976941585541, 0.8853899240493774, -1.0468584299087524, -0.41522666811943054, 1.1097955703735352, -0.3870111107826233, -0.6088953614234924, 1.3896894454956055, 0.762052059173584, -0.981279730796814, -0.3529142439365387, -0.15597257018089294, -0.8448205590248108, 0.06445898860692978, -1.5288959741592407, -0.08988282829523087, 0.3462063670158386, -1.509297251701355, -0.45040008425712585, -0.021582432091236115, 1.3871474266052246, -0.021093731746077538, 1.398154854774475, -0.14575067162513733, -0.12488867342472076, -0.4570661783218384, -0.5481035113334656, 0.15498968958854675, -0.11614550650119781, -0.5711732506752014, 0.21603643894195557, -0.7783064246177673, 0.2050451785326004, 1.4989618062973022, 0.16239793598651886, 0.12710687518119812, 0.5385110974311829, 1.2223742008209229, 0.3648783564567566, -0.20080873370170593, -0.8344850540161133, -1.637458324432373, 1.9667221307754517, -1.5566117763519287, 1.9646885395050049, 0.8087564706802368, -0.0901637002825737, -1.8542628288269043, -1.8248354196548462, 1.3820708990097046, 1.0895947217941284, 2.433584213256836, 0.49631401896476746, 0.4598085284233093, -0.8486921191215515, -0.7619152069091797, 0.43788501620292664, -0.8222006559371948, -0.8662322759628296, 0.15354588627815247, 2.3420352935791016, 1.7605068683624268, -0.39686319231987, -0.2757042944431305, -0.9142205715179443, 1.2992407083511353, -0.31024208664894104, 0.27497392892837524, 1.93315589427948, -0.39011824131011963, -0.986048698425293, 1.3338063955307007, -2.40260648727417, 0.3412831425666809, 2.0147297382354736, 0.26080480217933655, 0.055941298604011536, -1.250045657157898, -0.6583411693572998, -0.1484782099723816, -0.4373725950717926, -1.2456777095794678, 0.336803138256073, -0.21017061173915863, -0.8559434413909912, -1.3465638160705566, 0.006065616384148598, -1.157723069190979, -1.7639039754867554, 0.2853652834892273, 1.8210698366165161, 2.137295722961426, -0.722059428691864, 1.2749390602111816, -0.2959294319152832, 0.16766969859600067, 1.2173455953598022, 1.3202550411224365, 3.222472906112671, 1.9706984758377075, -1.2526025772094727, 0.7272545099258423, -0.23157306015491486, -0.5047090649604797, 1.1222642660140991, -1.0720884799957275, 1.1327617168426514, -0.3204125165939331, -1.3315951824188232, -1.2352821826934814, 1.0290831327438354, 0.4641481041908264, -0.08364618569612503, -0.5143253207206726, 1.182722806930542, 0.2281353920698166, 1.3284803628921509, 0.6542705297470093, -0.3633665442466736, 0.5211014747619629, -0.3954058289527893, -0.5713315010070801, 1.5733672380447388, 0.1294788122177124, -1.5066115856170654, -2.302584648132324, -0.09615003317594528, -1.056552529335022, -0.029748963192105293, -0.8809928297996521, -1.071846842765808, 1.4801989793777466, 0.49672576785087585, -1.0567378997802734, -0.06539340317249298, -0.32466310262680054, -0.5842640399932861, 2.6725215911865234, -1.3080949783325195, -0.22984248399734497, -0.9674608111381531, -0.5743022561073303, 1.5628148317337036, -1.2327024936676025, -0.31855130195617676, -1.029005527496338, -0.5750486254692078, -1.1963034868240356, -0.4300144910812378, -0.05502387881278992, -0.8379459381103516, 0.7158684134483337, -0.08777354657649994, -1.2632033824920654, -0.24628277122974396, -1.0171369314193726, 0.9140917658805847, -0.22731299698352814, 0.05958689749240875, 1.735905408859253, 0.20172423124313354, -0.40306010842323303, 0.8319007158279419, 1.216065764427185, 0.674553394317627, -0.571115255355835, 0.19385592639446259, -0.6002199053764343, 0.49894049763679504, -1.2134186029434204, 0.3731290102005005, -2.920224905014038, 0.7078956961631775, -0.023421775549650192, -0.14554135501384735, -0.18443560600280762, -1.488757848739624, 0.8875042796134949, 2.4606144428253174, -1.1191591024398804, 0.6089829206466675, 0.3531002700328827, 1.2160381078720093, -1.6292082071304321, 0.08800153434276581, -0.6951959133148193, 2.0378165245056152, 0.05606279522180557, 1.1169992685317993, -0.5174821615219116, -2.2700295448303223, 0.565987765789032, -1.209745168685913, -0.9614554643630981, 0.8108286261558533, -0.8596100211143494, 0.23434124886989594, -1.1209678649902344, -0.13478846848011017, -0.9149324893951416, -1.1647135019302368, 0.49644777178764343, 0.05267878621816635, 0.6394451260566711, -0.6317342519760132, 0.24060754477977753, -2.280386447906494, -1.397584319114685, -0.1657957136631012, -0.9309512972831726, 0.48527461290359497, -0.4561387300491333, 0.6833072304725647, -0.07594716548919678, 0.09690701961517334, 0.20941191911697388, 1.554304599761963, 3.201228618621826, 0.01470641978085041, 0.29686710238456726, -0.30015021562576294, -1.0214805603027344, 1.4837244749069214, 0.8894389271736145, -0.19943107664585114, -0.6553274393081665, -0.947693943977356, 1.3803716897964478, 1.990483283996582, 1.1074070930480957, 0.1810799390077591, -0.9420451521873474, -0.8137936592102051, 0.13563884794712067, 0.1674535870552063, 0.47443467378616333, 0.9991590976715088, 0.15029576420783997, 0.22693274915218353, 1.3008253574371338, 1.0947710275650024, -0.24213159084320068, 0.48839038610458374, -0.8930382132530212, -0.3216797113418579, 0.507390558719635, 0.3395313322544098, -0.06547840684652328, 0.2533203065395355, -1.0296764373779297, -0.1586889922618866, -0.2845662236213684, -0.7900726795196533, -0.8005391955375671, -0.3306891918182373, -0.4757603704929352, 1.7898342609405518, -0.06118675321340561, -0.5102791786193848, 0.009240087121725082, -0.7525061368942261, -0.1477276086807251, -1.0648356676101685, 0.2498215287923813, -0.11034893989562988, 0.03803198039531708, -0.11966265738010406, 1.659450888633728, -0.9760607481002808, -2.2880685329437256, 0.1394805908203125, 0.14767351746559143, -0.35614335536956787, -0.05055035650730133, 1.84379243850708, 0.5098691582679749, 1.3781840801239014, 1.5160003900527954, 1.1825127601623535, -0.6203533411026001, -1.2812485694885254, 0.7467486262321472, 0.9036017060279846, -1.3234634399414062, 0.9201160073280334, -0.2483353465795517, -0.5262026786804199, 0.5522473454475403, 1.2851707935333252, 0.373625248670578, -2.01891827583313, 0.8648172616958618, -1.124254822731018, 0.8926511406898499, 0.8417783379554749, 0.8181990385055542, 0.22851145267486572, 0.9262992143630981, -1.2195320129394531, -1.038327693939209, -0.5016461610794067, -0.6510787010192871, 1.88435959815979, -0.2946570813655853, 0.3954620659351349, -0.22206294536590576, -1.241920828819275, 0.09248395264148712, 0.8060131072998047, 0.3213808238506317, -0.33574792742729187, 0.7895419597625732, -0.728847324848175, -0.9821856021881104, -1.241194486618042, -0.488798588514328, -1.038163661956787, -0.8339258432388306, 1.056845784187317, 0.735963761806488, 0.5626521706581116, 1.9578408002853394, 0.6475728154182434, 0.30070823431015015, -2.635855197906494, 0.7940289378166199, 0.3784533739089966, -0.10418731719255447, 0.8440473675727844, 0.3200903534889221, 1.2620372772216797, -0.13389936089515686, 0.5691783428192139, -2.3312909603118896, 2.257936477661133, -0.18600288033485413, 0.7205327749252319, 0.051037535071372986, -0.04269963502883911, 1.0325077772140503, 0.5147140026092529, 0.5636022090911865, -1.0596612691879272, 0.8305518627166748, -0.5910542011260986, 1.1069222688674927, 0.7329395413398743, -0.9226201772689819, 0.17373086512088776, 1.2193583250045776, 0.3861408233642578, -0.6108396649360657, -1.003136157989502, -0.9112198948860168, 0.9088854193687439, 1.7526897192001343, 0.006729805842041969, 0.10370701551437378, 0.8654427528381348, 0.7412937879562378, -1.1937284469604492, 0.05876077711582184, -0.6087015271186829, -0.6996064782142639, 1.7301462888717651, 2.023141622543335, -0.0864357203245163, -0.0300044734030962, -0.8057882785797119, -1.4651706218719482, 0.8038960695266724, 0.08456246554851532, -0.1430816650390625, 0.7249149680137634, -0.6618590354919434, 1.1280728578567505, 0.7197803854942322, 0.9211637377738953, 0.12032872438430786, 0.12578897178173065, 0.2545489966869354, -0.37547799944877625, -1.2959469556808472, -0.39089369773864746, -0.9968541860580444, -2.6146738529205322, 0.42485806345939636, -0.28809070587158203, -1.4812403917312622, 0.13171914219856262, -0.9708796739578247, 0.7189860343933105, -0.580439567565918, -1.272539496421814, -1.3685921430587769, 0.3320575952529907, -0.18536414206027985, 0.7863661050796509, -1.608160138130188, -0.18008515238761902, 1.078241229057312, 0.9102030396461487, -0.665963888168335, 0.8256094455718994, 0.22948524355888367, 0.9149450063705444, 0.8826074600219727, -0.40629351139068604, 0.47903621196746826, 0.25242021679878235, -1.3729231357574463, 0.4091223180294037, 1.3084796667099, 0.13438363373279572, 1.323317289352417, -0.4425053894519806, -0.0409688875079155, 0.44999960064888, -0.3616167902946472, -0.5529203414916992, -0.7088938355445862, 0.6896896362304688, -0.16287469863891602, -1.0058733224868774, -0.1263238489627838, 0.013276424258947372, -0.21877257525920868, 0.241215780377388, -1.4726585149765015, -0.10019199550151825, -0.4084206223487854, -0.6243906617164612, -1.4276540279388428, -0.000006727874279022217, 1.2957185506820679, -0.8474123477935791, -0.14722995460033417, 0.525917112827301, 0.25243982672691345, 0.5517911314964294, 0.6518262028694153, -0.7501375675201416, -0.21736744046211243, -0.15796291828155518, -0.3931104838848114, 0.3651674687862396, 1.3279356956481934, -0.06070809066295624, -0.9667664170265198, 0.5454186797142029, -0.24443379044532776, 0.24307425320148468, 1.998504638671875, 0.10296991467475891, -0.7818470597267151, 0.38086530566215515, -0.7562257647514343, 1.818859338760376, 1.647436499595642, 1.2928102016448975, -0.1094711422920227, -0.9212979078292847, 0.6067588329315186, -0.32163336873054504, -0.37154459953308105, 0.8632872700691223, 0.3166954815387726, -0.34202107787132263, -1.3825753927230835, 0.7754673957824707, 1.2392984628677368, -0.7871515154838562, -0.8201092481613159, 0.17943187057971954, -0.8489975929260254, 1.2757511138916016, 0.5476250648498535, 0.3101924955844879, 0.19272297620773315, 1.6412609815597534, 0.7226501107215881, -0.49599406123161316, 0.5478235483169556, 0.4433329999446869, -0.12499876320362091, -1.971705675125122, -1.0921412706375122, 0.2749938666820526, -0.4808247685432434, -1.5163004398345947, 1.4591639041900635, -1.2657122611999512, -1.0353912115097046, 0.5100074410438538, 0.19389989972114563, 1.3409208059310913, 0.3003925383090973, 1.7658463716506958, 2.0305747985839844, 0.8693429231643677, 0.5400221943855286, 1.181584358215332, -0.2242613285779953, -0.31491005420684814, 1.6884931325912476, -0.5329511165618896, 0.6591758728027344, 1.0600613355636597, -0.429308146238327, -1.2287307977676392, -0.7699460983276367, -1.135841727256775, -0.740513026714325, 1.0790642499923706, 0.1795462667942047, -1.0183862447738647, 0.3241684138774872, 1.595428228378296, 0.08739934861660004, -0.050330750644207, 0.6776787638664246, 0.28882065415382385, -0.5809891819953918, -0.09396850317716599, -1.0201764106750488, 0.5986723899841309, -0.3371833562850952, -0.3975430130958557, 0.2159997820854187, 0.5486563444137573, 1.165034532546997, 0.08939716964960098, 0.03513132780790329, 1.3273533582687378, -1.4356893301010132, 1.3201240301132202, -0.857403576374054, 0.4213685989379883, -2.3369767665863037, 1.4588333368301392, -0.903244137763977, 1.944054365158081, -2.658853769302368, 0.40468212962150574, -0.43560320138931274, -0.5748660564422607, 0.19457018375396729, -0.10995009541511536, 0.03050745464861393, -0.13099168241024017, -1.0452882051467896, -0.07186752557754517, -0.8261780142784119, 0.48060187697410583, 1.2450683116912842, 1.4107412099838257, -0.973369300365448, -0.2664166986942291, -1.6712316274642944, -0.16367419064044952, -0.6277300119400024, 0.21156133711338043, -1.8054695129394531, -0.13956494629383087, -2.0375311374664307, -2.4091129302978516, -1.384842872619629, -1.001303791999817, 1.2506742477416992, 0.1386984884738922, -0.9092864394187927, 1.1791890859603882, -0.2811967730522156, -1.7673511505126953, 1.1674494743347168, -2.2086262702941895 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
The old URL is still present in the HuggingFace course here: https://huggingface.co/course/chapter5/4?fw=pt I have created a PR for the Notebook here: https://github.com/huggingface/notebooks/pull/148 Not sure if the HTML is in a public repo. I wasn't able to find it.
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
1,029
38
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1 The old URL is still present in the HuggingFace course here: https://huggingface.co/course/chapter5/4?fw=pt I have created a PR for the Notebook here: https://github.com/huggingface/notebooks/pull/148 Not sure if the HTML is in a public repo. I wasn't able to find it.
[ -1.1773560047149658, -0.8322024345397949, -0.6177135109901428, 1.523836374282837, 0.007157817482948303, -1.4012211561203003, 0.17229434847831726, -0.8302180171012878, 1.6007416248321533, -0.7985096573829651, 0.36912503838539124, -1.6087433099746704, 0.03057902492582798, -0.6357854008674622, -0.6420696973800659, -0.6932831406593323, -0.28297632932662964, -0.6920785903930664, 1.0981870889663696, 2.3796918392181396, 1.2796838283538818, -1.305290699005127, 2.8349180221557617, 0.6523664593696594, -0.2950284779071808, -0.849772572517395, 0.3543437421321869, -0.028008144348859787, -1.375511884689331, -0.34835484623908997, -0.9414991140365601, -0.07921750843524933, -0.6531495451927185, -0.4729244112968445, 0.07144589722156525, 0.5240770578384399, -0.183205246925354, -0.36316004395484924, -0.5014020204544067, -0.7759655117988586, 0.6044114232063293, -0.24140876531600952, 0.8405011892318726, -0.25464490056037903, 1.8201937675476074, -0.730063796043396, 0.5558257102966309, 0.6305631399154663, 1.1610201597213745, 0.1654081642627716, -0.0696166381239891, 0.36084115505218506, 0.26401472091674805, 0.041664257645606995, 0.6019286513328552, 1.2769721746444702, 0.6332122683525085, 0.5670477747917175, 0.6821461915969849, -2.197575807571411, 1.353432536125183, -0.8131005764007568, 0.22855378687381744, 1.3363080024719238, -1.1023077964782715, 0.47643694281578064, -1.8500332832336426, -0.11020277440547943, 0.4771253764629364, -2.3211052417755127, 0.11344784498214722, -1.3169177770614624, -0.640536367893219, 0.9404687881469727, 0.3533022701740265, -1.2584887742996216, -0.037534233182668686, -0.4815675914287567, 1.0162701606750488, 0.4013669192790985, 1.0602420568466187, -1.6599866151809692, 0.03254391998052597, -0.12812043726444244, 0.26986661553382874, -1.229171872138977, -1.653781771659851, 0.6447962522506714, 0.6988012790679932, 0.6631032228469849, -0.13616055250167847, 0.9265866279602051, -1.1307839155197144, 0.8848221898078918, -0.9771178960800171, -1.7412958145141602, -1.3590521812438965, -2.425184726715088, -2.4050145149230957, 0.7637788653373718, -0.4113067090511322, -0.36744871735572815, 2.1283628940582275, -1.0899749994277954, -1.749295711517334, 1.1011366844177246, 0.23603683710098267, -0.022063393145799637, 2.3624026775360107, 0.22771155834197998, -0.9140079021453857, 0.649632453918457, -0.8544011116027832, 0.6566305756568909, -0.3606162369251251, 1.220615029335022, 0.4024227261543274, -1.0410009622573853, 1.5643346309661865, -0.3272292912006378, 0.5494334697723389, -0.7808974981307983, -0.4278504252433777, -0.5979942679405212, 0.12915626168251038, 1.9495525360107422, -0.20596708357334137, 1.5421779155731201, -0.13672907650470734, -1.4211596250534058, -1.4059271812438965, 0.7466850876808167, 0.4698279798030853, -0.9436179995536804, 0.20192484557628632, -0.5078422427177429, 0.1857871562242508, 0.09213872253894806, 1.1383607387542725, 1.278053641319275, 0.819146990776062, -0.23872536420822144, -0.765959620475769, 0.1110556349158287, -0.04182542860507965, -0.576579749584198, -1.736052393913269, -0.29196691513061523, 0.19674701988697052, 0.6276894211769104, -1.203495979309082, 1.9903550148010254, 0.8372454643249512, 2.077467441558838, 1.0663988590240479, -0.3414939045906067, 1.5028338432312012, -0.02428135648369789, 1.9103881120681763, -0.35767874121665955, 0.6156290769577026, -0.5128700137138367, -1.1156888008117676, 0.710588812828064, -0.33889272809028625, -2.0251479148864746, -0.4612480401992798, -0.8570371866226196, -0.0918656662106514, -0.8310623168945312, 0.9742740392684937, -0.1956203579902649, -1.4022353887557983, 0.09535860270261765, -0.6538759469985962, 0.1847914457321167, -1.35788893699646, 0.2502082586288452, 0.7620499134063721, -0.7992322444915771, 0.0710877776145935, -0.4860836863517761, -1.3882911205291748, -0.596367597579956, 0.5458751916885376, 1.8159791231155396, -0.589040994644165, 0.9955484867095947, 0.9712626338005066, -0.6157914400100708, -0.006899116560816765, 0.49518516659736633, -0.3540976941585541, 0.8853899240493774, -1.0468584299087524, -0.41522666811943054, 1.1097955703735352, -0.3870111107826233, -0.6088953614234924, 1.3896894454956055, 0.762052059173584, -0.981279730796814, -0.3529142439365387, -0.15597257018089294, -0.8448205590248108, 0.06445898860692978, -1.5288959741592407, -0.08988282829523087, 0.3462063670158386, -1.509297251701355, -0.45040008425712585, -0.021582432091236115, 1.3871474266052246, -0.021093731746077538, 1.398154854774475, -0.14575067162513733, -0.12488867342472076, -0.4570661783218384, -0.5481035113334656, 0.15498968958854675, -0.11614550650119781, -0.5711732506752014, 0.21603643894195557, -0.7783064246177673, 0.2050451785326004, 1.4989618062973022, 0.16239793598651886, 0.12710687518119812, 0.5385110974311829, 1.2223742008209229, 0.3648783564567566, -0.20080873370170593, -0.8344850540161133, -1.637458324432373, 1.9667221307754517, -1.5566117763519287, 1.9646885395050049, 0.8087564706802368, -0.0901637002825737, -1.8542628288269043, -1.8248354196548462, 1.3820708990097046, 1.0895947217941284, 2.433584213256836, 0.49631401896476746, 0.4598085284233093, -0.8486921191215515, -0.7619152069091797, 0.43788501620292664, -0.8222006559371948, -0.8662322759628296, 0.15354588627815247, 2.3420352935791016, 1.7605068683624268, -0.39686319231987, -0.2757042944431305, -0.9142205715179443, 1.2992407083511353, -0.31024208664894104, 0.27497392892837524, 1.93315589427948, -0.39011824131011963, -0.986048698425293, 1.3338063955307007, -2.40260648727417, 0.3412831425666809, 2.0147297382354736, 0.26080480217933655, 0.055941298604011536, -1.250045657157898, -0.6583411693572998, -0.1484782099723816, -0.4373725950717926, -1.2456777095794678, 0.336803138256073, -0.21017061173915863, -0.8559434413909912, -1.3465638160705566, 0.006065616384148598, -1.157723069190979, -1.7639039754867554, 0.2853652834892273, 1.8210698366165161, 2.137295722961426, -0.722059428691864, 1.2749390602111816, -0.2959294319152832, 0.16766969859600067, 1.2173455953598022, 1.3202550411224365, 3.222472906112671, 1.9706984758377075, -1.2526025772094727, 0.7272545099258423, -0.23157306015491486, -0.5047090649604797, 1.1222642660140991, -1.0720884799957275, 1.1327617168426514, -0.3204125165939331, -1.3315951824188232, -1.2352821826934814, 1.0290831327438354, 0.4641481041908264, -0.08364618569612503, -0.5143253207206726, 1.182722806930542, 0.2281353920698166, 1.3284803628921509, 0.6542705297470093, -0.3633665442466736, 0.5211014747619629, -0.3954058289527893, -0.5713315010070801, 1.5733672380447388, 0.1294788122177124, -1.5066115856170654, -2.302584648132324, -0.09615003317594528, -1.056552529335022, -0.029748963192105293, -0.8809928297996521, -1.071846842765808, 1.4801989793777466, 0.49672576785087585, -1.0567378997802734, -0.06539340317249298, -0.32466310262680054, -0.5842640399932861, 2.6725215911865234, -1.3080949783325195, -0.22984248399734497, -0.9674608111381531, -0.5743022561073303, 1.5628148317337036, -1.2327024936676025, -0.31855130195617676, -1.029005527496338, -0.5750486254692078, -1.1963034868240356, -0.4300144910812378, -0.05502387881278992, -0.8379459381103516, 0.7158684134483337, -0.08777354657649994, -1.2632033824920654, -0.24628277122974396, -1.0171369314193726, 0.9140917658805847, -0.22731299698352814, 0.05958689749240875, 1.735905408859253, 0.20172423124313354, -0.40306010842323303, 0.8319007158279419, 1.216065764427185, 0.674553394317627, -0.571115255355835, 0.19385592639446259, -0.6002199053764343, 0.49894049763679504, -1.2134186029434204, 0.3731290102005005, -2.920224905014038, 0.7078956961631775, -0.023421775549650192, -0.14554135501384735, -0.18443560600280762, -1.488757848739624, 0.8875042796134949, 2.4606144428253174, -1.1191591024398804, 0.6089829206466675, 0.3531002700328827, 1.2160381078720093, -1.6292082071304321, 0.08800153434276581, -0.6951959133148193, 2.0378165245056152, 0.05606279522180557, 1.1169992685317993, -0.5174821615219116, -2.2700295448303223, 0.565987765789032, -1.209745168685913, -0.9614554643630981, 0.8108286261558533, -0.8596100211143494, 0.23434124886989594, -1.1209678649902344, -0.13478846848011017, -0.9149324893951416, -1.1647135019302368, 0.49644777178764343, 0.05267878621816635, 0.6394451260566711, -0.6317342519760132, 0.24060754477977753, -2.280386447906494, -1.397584319114685, -0.1657957136631012, -0.9309512972831726, 0.48527461290359497, -0.4561387300491333, 0.6833072304725647, -0.07594716548919678, 0.09690701961517334, 0.20941191911697388, 1.554304599761963, 3.201228618621826, 0.01470641978085041, 0.29686710238456726, -0.30015021562576294, -1.0214805603027344, 1.4837244749069214, 0.8894389271736145, -0.19943107664585114, -0.6553274393081665, -0.947693943977356, 1.3803716897964478, 1.990483283996582, 1.1074070930480957, 0.1810799390077591, -0.9420451521873474, -0.8137936592102051, 0.13563884794712067, 0.1674535870552063, 0.47443467378616333, 0.9991590976715088, 0.15029576420783997, 0.22693274915218353, 1.3008253574371338, 1.0947710275650024, -0.24213159084320068, 0.48839038610458374, -0.8930382132530212, -0.3216797113418579, 0.507390558719635, 0.3395313322544098, -0.06547840684652328, 0.2533203065395355, -1.0296764373779297, -0.1586889922618866, -0.2845662236213684, -0.7900726795196533, -0.8005391955375671, -0.3306891918182373, -0.4757603704929352, 1.7898342609405518, -0.06118675321340561, -0.5102791786193848, 0.009240087121725082, -0.7525061368942261, -0.1477276086807251, -1.0648356676101685, 0.2498215287923813, -0.11034893989562988, 0.03803198039531708, -0.11966265738010406, 1.659450888633728, -0.9760607481002808, -2.2880685329437256, 0.1394805908203125, 0.14767351746559143, -0.35614335536956787, -0.05055035650730133, 1.84379243850708, 0.5098691582679749, 1.3781840801239014, 1.5160003900527954, 1.1825127601623535, -0.6203533411026001, -1.2812485694885254, 0.7467486262321472, 0.9036017060279846, -1.3234634399414062, 0.9201160073280334, -0.2483353465795517, -0.5262026786804199, 0.5522473454475403, 1.2851707935333252, 0.373625248670578, -2.01891827583313, 0.8648172616958618, -1.124254822731018, 0.8926511406898499, 0.8417783379554749, 0.8181990385055542, 0.22851145267486572, 0.9262992143630981, -1.2195320129394531, -1.038327693939209, -0.5016461610794067, -0.6510787010192871, 1.88435959815979, -0.2946570813655853, 0.3954620659351349, -0.22206294536590576, -1.241920828819275, 0.09248395264148712, 0.8060131072998047, 0.3213808238506317, -0.33574792742729187, 0.7895419597625732, -0.728847324848175, -0.9821856021881104, -1.241194486618042, -0.488798588514328, -1.038163661956787, -0.8339258432388306, 1.056845784187317, 0.735963761806488, 0.5626521706581116, 1.9578408002853394, 0.6475728154182434, 0.30070823431015015, -2.635855197906494, 0.7940289378166199, 0.3784533739089966, -0.10418731719255447, 0.8440473675727844, 0.3200903534889221, 1.2620372772216797, -0.13389936089515686, 0.5691783428192139, -2.3312909603118896, 2.257936477661133, -0.18600288033485413, 0.7205327749252319, 0.051037535071372986, -0.04269963502883911, 1.0325077772140503, 0.5147140026092529, 0.5636022090911865, -1.0596612691879272, 0.8305518627166748, -0.5910542011260986, 1.1069222688674927, 0.7329395413398743, -0.9226201772689819, 0.17373086512088776, 1.2193583250045776, 0.3861408233642578, -0.6108396649360657, -1.003136157989502, -0.9112198948860168, 0.9088854193687439, 1.7526897192001343, 0.006729805842041969, 0.10370701551437378, 0.8654427528381348, 0.7412937879562378, -1.1937284469604492, 0.05876077711582184, -0.6087015271186829, -0.6996064782142639, 1.7301462888717651, 2.023141622543335, -0.0864357203245163, -0.0300044734030962, -0.8057882785797119, -1.4651706218719482, 0.8038960695266724, 0.08456246554851532, -0.1430816650390625, 0.7249149680137634, -0.6618590354919434, 1.1280728578567505, 0.7197803854942322, 0.9211637377738953, 0.12032872438430786, 0.12578897178173065, 0.2545489966869354, -0.37547799944877625, -1.2959469556808472, -0.39089369773864746, -0.9968541860580444, -2.6146738529205322, 0.42485806345939636, -0.28809070587158203, -1.4812403917312622, 0.13171914219856262, -0.9708796739578247, 0.7189860343933105, -0.580439567565918, -1.272539496421814, -1.3685921430587769, 0.3320575952529907, -0.18536414206027985, 0.7863661050796509, -1.608160138130188, -0.18008515238761902, 1.078241229057312, 0.9102030396461487, -0.665963888168335, 0.8256094455718994, 0.22948524355888367, 0.9149450063705444, 0.8826074600219727, -0.40629351139068604, 0.47903621196746826, 0.25242021679878235, -1.3729231357574463, 0.4091223180294037, 1.3084796667099, 0.13438363373279572, 1.323317289352417, -0.4425053894519806, -0.0409688875079155, 0.44999960064888, -0.3616167902946472, -0.5529203414916992, -0.7088938355445862, 0.6896896362304688, -0.16287469863891602, -1.0058733224868774, -0.1263238489627838, 0.013276424258947372, -0.21877257525920868, 0.241215780377388, -1.4726585149765015, -0.10019199550151825, -0.4084206223487854, -0.6243906617164612, -1.4276540279388428, -0.000006727874279022217, 1.2957185506820679, -0.8474123477935791, -0.14722995460033417, 0.525917112827301, 0.25243982672691345, 0.5517911314964294, 0.6518262028694153, -0.7501375675201416, -0.21736744046211243, -0.15796291828155518, -0.3931104838848114, 0.3651674687862396, 1.3279356956481934, -0.06070809066295624, -0.9667664170265198, 0.5454186797142029, -0.24443379044532776, 0.24307425320148468, 1.998504638671875, 0.10296991467475891, -0.7818470597267151, 0.38086530566215515, -0.7562257647514343, 1.818859338760376, 1.647436499595642, 1.2928102016448975, -0.1094711422920227, -0.9212979078292847, 0.6067588329315186, -0.32163336873054504, -0.37154459953308105, 0.8632872700691223, 0.3166954815387726, -0.34202107787132263, -1.3825753927230835, 0.7754673957824707, 1.2392984628677368, -0.7871515154838562, -0.8201092481613159, 0.17943187057971954, -0.8489975929260254, 1.2757511138916016, 0.5476250648498535, 0.3101924955844879, 0.19272297620773315, 1.6412609815597534, 0.7226501107215881, -0.49599406123161316, 0.5478235483169556, 0.4433329999446869, -0.12499876320362091, -1.971705675125122, -1.0921412706375122, 0.2749938666820526, -0.4808247685432434, -1.5163004398345947, 1.4591639041900635, -1.2657122611999512, -1.0353912115097046, 0.5100074410438538, 0.19389989972114563, 1.3409208059310913, 0.3003925383090973, 1.7658463716506958, 2.0305747985839844, 0.8693429231643677, 0.5400221943855286, 1.181584358215332, -0.2242613285779953, -0.31491005420684814, 1.6884931325912476, -0.5329511165618896, 0.6591758728027344, 1.0600613355636597, -0.429308146238327, -1.2287307977676392, -0.7699460983276367, -1.135841727256775, -0.740513026714325, 1.0790642499923706, 0.1795462667942047, -1.0183862447738647, 0.3241684138774872, 1.595428228378296, 0.08739934861660004, -0.050330750644207, 0.6776787638664246, 0.28882065415382385, -0.5809891819953918, -0.09396850317716599, -1.0201764106750488, 0.5986723899841309, -0.3371833562850952, -0.3975430130958557, 0.2159997820854187, 0.5486563444137573, 1.165034532546997, 0.08939716964960098, 0.03513132780790329, 1.3273533582687378, -1.4356893301010132, 1.3201240301132202, -0.857403576374054, 0.4213685989379883, -2.3369767665863037, 1.4588333368301392, -0.903244137763977, 1.944054365158081, -2.658853769302368, 0.40468212962150574, -0.43560320138931274, -0.5748660564422607, 0.19457018375396729, -0.10995009541511536, 0.03050745464861393, -0.13099168241024017, -1.0452882051467896, -0.07186752557754517, -0.8261780142784119, 0.48060187697410583, 1.2450683116912842, 1.4107412099838257, -0.973369300365448, -0.2664166986942291, -1.6712316274642944, -0.16367419064044952, -0.6277300119400024, 0.21156133711338043, -1.8054695129394531, -0.13956494629383087, -2.0375311374664307, -2.4091129302978516, -1.384842872619629, -1.001303791999817, 1.2506742477416992, 0.1386984884738922, -0.9092864394187927, 1.1791890859603882, -0.2811967730522156, -1.7673511505126953, 1.1674494743347168, -2.2086262702941895 ]
https://github.com/huggingface/datasets/issues/3504
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst
Both URLs are broken now `HTTPError: 404 Client Error: Not Found for URL: https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst` And `ConnectTimeout: HTTPSConnectionPool(host='mystic.the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(, 'Connection to mystic.the-eye.eu timed out. (connect timeout=10.0)'))`
## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1
1,029
34
Unable to download PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Describe the bug I am unable to download the PubMed dataset from the link provided in the [Hugging Face Course (Chapter 5 Section 4)](https://huggingface.co/course/chapter5/4?fw=pt). https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset # This takes a few minutes to run, so go grab a tea or coffee while you wait :) data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" pubmed_dataset = load_dataset("json", data_files=data_files, split="train") pubmed_dataset ``` I also tried with `wget` as follows. ``` wget https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst ``` ## Expected results I expect to be able to download this file. ## Actual results Traceback ``` --------------------------------------------------------------------------- timeout Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 158 try: --> 159 conn = connection.create_connection( 160 (self._dns_host, self.port), self.timeout, **extra_kw /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 83 if err is not None: ---> 84 raise err 85 /usr/lib/python3/dist-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options) 73 sock.bind(source_address) ---> 74 sock.connect(sa) 75 return sock timeout: timed out During handling of the above exception, another exception occurred: ConnectTimeoutError Traceback (most recent call last) /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 664 # Make the request on the httplib connection object. --> 665 httplib_response = self._make_request( 666 conn, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw) 375 try: --> 376 self._validate_conn(conn) 377 except (SocketTimeout, BaseSSLError) as e: /usr/lib/python3/dist-packages/urllib3/connectionpool.py in _validate_conn(self, conn) 995 if not getattr(conn, "sock", None): # AppEngine might not have `.sock` --> 996 conn.connect() 997 /usr/lib/python3/dist-packages/urllib3/connection.py in connect(self) 313 # Add certificate verification --> 314 conn = self._new_conn() 315 hostname = self.host /usr/lib/python3/dist-packages/urllib3/connection.py in _new_conn(self) 163 except SocketTimeout: --> 164 raise ConnectTimeoutError( 165 self, ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)') During handling of the above exception, another exception occurred: MaxRetryError Traceback (most recent call last) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 438 if not chunked: --> 439 resp = conn.urlopen( 440 method=request.method, /usr/lib/python3/dist-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw) 718 --> 719 retries = retries.increment( 720 method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] /usr/lib/python3/dist-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace) 435 if new_retry.is_exhausted(): --> 436 raise MaxRetryError(_pool, url, error or ResponseError(cause)) 437 MaxRetryError: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) During handling of the above exception, another exception occurred: ConnectTimeout Traceback (most recent call last) /tmp/ipykernel_15104/606583593.py in <module> 3 # This takes a few minutes to run, so go grab a tea or coffee while you wait :) 4 data_files = "https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst" ----> 5 pubmed_dataset = load_dataset("json", data_files=data_files, split="train") 6 pubmed_dataset ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1655 1656 # Create a dataset builder -> 1657 builder_instance = load_dataset_builder( 1658 path=path, 1659 name=name, ~/.local/lib/python3.8/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1492 download_config = download_config.copy() if download_config else DownloadConfig() 1493 download_config.use_auth_token = use_auth_token -> 1494 dataset_module = dataset_module_factory( 1495 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1496 ) ~/.local/lib/python3.8/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1116 # Try packaged 1117 if path in _PACKAGED_DATASETS_MODULES: -> 1118 return PackagedDatasetModuleFactory( 1119 path, data_files=data_files, download_config=download_config, download_mode=download_mode 1120 ).get_module() ~/.local/lib/python3.8/site-packages/datasets/load.py in get_module(self) 773 else get_patterns_locally(str(Path().resolve())) 774 ) --> 775 data_files = DataFilesDict.from_local_or_remote(patterns, use_auth_token=self.downnload_config.use_auth_token) 776 module_path, hash = _PACKAGED_DATASETS_MODULES[self.name] 777 builder_kwargs = {"hash": hash, "data_files": data_files} ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 576 for key, patterns_for_key in patterns.items(): 577 out[key] = ( --> 578 DataFilesList.from_local_or_remote( 579 patterns_for_key, 580 base_path=base_path, ~/.local/lib/python3.8/site-packages/datasets/data_files.py in from_local_or_remote(cls, patterns, base_path, allowed_extensions, use_auth_token) 545 base_path = base_path if base_path is not None else str(Path().resolve()) 546 data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) --> 547 origin_metadata = _get_origin_metadata_locally_or_by_urls(data_files, use_auth_token=use_auth_token) 548 return cls(data_files, origin_metadata) 549 ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_origin_metadata_locally_or_by_urls(data_files, max_workers, use_auth_token) 492 data_files: List[Union[Path, Url]], max_workers=64, use_auth_token: Optional[Union[bool, str]] = None 493 ) -> Tuple[str]: --> 494 return thread_map( 495 partial(_get_single_origin_metadata_locally_or_by_urls, use_auth_token=use_auth_token), 496 data_files, ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in thread_map(fn, *iterables, **tqdm_kwargs) 92 """ 93 from concurrent.futures import ThreadPoolExecutor ---> 94 return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs) 95 96 ~/.local/lib/python3.8/site-packages/tqdm/contrib/concurrent.py in _executor_map(PoolExecutor, fn, *iterables, **tqdm_kwargs) 74 map_args.update(chunksize=chunksize) 75 with PoolExecutor(**pool_kwargs) as ex: ---> 76 return list(tqdm_class(ex.map(fn, *iterables, **map_args), **kwargs)) 77 78 ~/.local/lib/python3.8/site-packages/tqdm/notebook.py in __iter__(self) 252 def __iter__(self): 253 try: --> 254 for obj in super(tqdm_notebook, self).__iter__(): 255 # return super(tqdm...) will not catch exception 256 yield obj ~/.local/lib/python3.8/site-packages/tqdm/std.py in __iter__(self) 1171 # (note: keep this check outside the loop for performance) 1172 if self.disable: -> 1173 for obj in iterable: 1174 yield obj 1175 return /usr/lib/python3.8/concurrent/futures/_base.py in result_iterator() 617 # Careful not to keep a reference to the popped future 618 if timeout is None: --> 619 yield fs.pop().result() 620 else: 621 yield fs.pop().result(end_time - time.monotonic()) /usr/lib/python3.8/concurrent/futures/_base.py in result(self, timeout) 442 raise CancelledError() 443 elif self._state == FINISHED: --> 444 return self.__get_result() 445 else: 446 raise TimeoutError() /usr/lib/python3.8/concurrent/futures/_base.py in __get_result(self) 387 if self._exception: 388 try: --> 389 raise self._exception 390 finally: 391 # Break a reference cycle with the exception in self._exception /usr/lib/python3.8/concurrent/futures/thread.py in run(self) 55 56 try: ---> 57 result = self.fn(*self.args, **self.kwargs) 58 except BaseException as exc: 59 self.future.set_exception(exc) ~/.local/lib/python3.8/site-packages/datasets/data_files.py in _get_single_origin_metadata_locally_or_by_urls(data_file, use_auth_token) 483 if isinstance(data_file, Url): 484 data_file = str(data_file) --> 485 return (request_etag(data_file, use_auth_token=use_auth_token),) 486 else: 487 data_file = str(data_file.resolve()) ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in request_etag(url, use_auth_token) 489 def request_etag(url: str, use_auth_token: Optional[Union[str, bool]] = None) -> Optional[str]: 490 headers = get_authentication_headers_for_url(url, use_auth_token=use_auth_token) --> 491 response = http_head(url, headers=headers, max_retries=3) 492 response.raise_for_status() 493 etag = response.headers.get("ETag") if response.ok else None ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in http_head(url, proxies, headers, cookies, allow_redirects, timeout, max_retries) 474 headers = copy.deepcopy(headers) or {} 475 headers["user-agent"] = get_datasets_user_agent(user_agent=headers.get("user-agent")) --> 476 response = _request_with_retry( 477 method="HEAD", 478 url=url, ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: 408 if tries > max_retries: --> 409 raise err 410 else: 411 logger.info(f"{method} request to {url} timed out, retrying... [{tries/max_retries}]") ~/.local/lib/python3.8/site-packages/datasets/utils/file_utils.py in _request_with_retry(method, url, max_retries, base_wait_time, max_wait_time, timeout, **params) 403 tries += 1 404 try: --> 405 response = requests.request(method=method.upper(), url=url, timeout=timeout, **params) 406 success = True 407 except (requests.exceptions.ConnectTimeout, requests.exceptions.ConnectionError) as err: /usr/lib/python3/dist-packages/requests/api.py in request(method, url, **kwargs) 58 # cases, and look like a memory leak in others. 59 with sessions.Session() as session: ---> 60 return session.request(method=method, url=url, **kwargs) 61 62 /usr/lib/python3/dist-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json) 531 } 532 send_kwargs.update(settings) --> 533 resp = self.send(prep, **send_kwargs) 534 535 return resp /usr/lib/python3/dist-packages/requests/sessions.py in send(self, request, **kwargs) 644 645 # Send the request --> 646 r = adapter.send(request, **kwargs) 647 648 # Total elapsed time of the request (approximately) /usr/lib/python3/dist-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 502 # TODO: Remove this in 3.0.0: see #2811 503 if not isinstance(e.reason, NewConnectionError): --> 504 raise ConnectTimeout(e, request=request) 505 506 if isinstance(e.reason, ResponseError): ConnectTimeout: HTTPSConnectionPool(host='the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f06dd698850>, 'Connection to the-eye.eu timed out. (connect timeout=10.0)')) ``` ## Environment info - `datasets` version: 1.17.0 - Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 6.0.1 Both URLs are broken now `HTTPError: 404 Client Error: Not Found for URL: https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst` And `ConnectTimeout: HTTPSConnectionPool(host='mystic.the-eye.eu', port=443): Max retries exceeded with url: /public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst (Caused by ConnectTimeoutError(, 'Connection to mystic.the-eye.eu timed out. (connect timeout=10.0)'))`
[ -1.1773560047149658, -0.8322024345397949, -0.6177135109901428, 1.523836374282837, 0.007157817482948303, -1.4012211561203003, 0.17229434847831726, -0.8302180171012878, 1.6007416248321533, -0.7985096573829651, 0.36912503838539124, -1.6087433099746704, 0.03057902492582798, -0.6357854008674622, -0.6420696973800659, -0.6932831406593323, -0.28297632932662964, -0.6920785903930664, 1.0981870889663696, 2.3796918392181396, 1.2796838283538818, -1.305290699005127, 2.8349180221557617, 0.6523664593696594, -0.2950284779071808, -0.849772572517395, 0.3543437421321869, -0.028008144348859787, -1.375511884689331, -0.34835484623908997, -0.9414991140365601, -0.07921750843524933, -0.6531495451927185, -0.4729244112968445, 0.07144589722156525, 0.5240770578384399, -0.183205246925354, -0.36316004395484924, -0.5014020204544067, -0.7759655117988586, 0.6044114232063293, -0.24140876531600952, 0.8405011892318726, -0.25464490056037903, 1.8201937675476074, -0.730063796043396, 0.5558257102966309, 0.6305631399154663, 1.1610201597213745, 0.1654081642627716, -0.0696166381239891, 0.36084115505218506, 0.26401472091674805, 0.041664257645606995, 0.6019286513328552, 1.2769721746444702, 0.6332122683525085, 0.5670477747917175, 0.6821461915969849, -2.197575807571411, 1.353432536125183, -0.8131005764007568, 0.22855378687381744, 1.3363080024719238, -1.1023077964782715, 0.47643694281578064, -1.8500332832336426, -0.11020277440547943, 0.4771253764629364, -2.3211052417755127, 0.11344784498214722, -1.3169177770614624, -0.640536367893219, 0.9404687881469727, 0.3533022701740265, -1.2584887742996216, -0.037534233182668686, -0.4815675914287567, 1.0162701606750488, 0.4013669192790985, 1.0602420568466187, -1.6599866151809692, 0.03254391998052597, -0.12812043726444244, 0.26986661553382874, -1.229171872138977, -1.653781771659851, 0.6447962522506714, 0.6988012790679932, 0.6631032228469849, -0.13616055250167847, 0.9265866279602051, -1.1307839155197144, 0.8848221898078918, -0.9771178960800171, -1.7412958145141602, -1.3590521812438965, -2.425184726715088, -2.4050145149230957, 0.7637788653373718, -0.4113067090511322, -0.36744871735572815, 2.1283628940582275, -1.0899749994277954, -1.749295711517334, 1.1011366844177246, 0.23603683710098267, -0.022063393145799637, 2.3624026775360107, 0.22771155834197998, -0.9140079021453857, 0.649632453918457, -0.8544011116027832, 0.6566305756568909, -0.3606162369251251, 1.220615029335022, 0.4024227261543274, -1.0410009622573853, 1.5643346309661865, -0.3272292912006378, 0.5494334697723389, -0.7808974981307983, -0.4278504252433777, -0.5979942679405212, 0.12915626168251038, 1.9495525360107422, -0.20596708357334137, 1.5421779155731201, -0.13672907650470734, -1.4211596250534058, -1.4059271812438965, 0.7466850876808167, 0.4698279798030853, -0.9436179995536804, 0.20192484557628632, -0.5078422427177429, 0.1857871562242508, 0.09213872253894806, 1.1383607387542725, 1.278053641319275, 0.819146990776062, -0.23872536420822144, -0.765959620475769, 0.1110556349158287, -0.04182542860507965, -0.576579749584198, -1.736052393913269, -0.29196691513061523, 0.19674701988697052, 0.6276894211769104, -1.203495979309082, 1.9903550148010254, 0.8372454643249512, 2.077467441558838, 1.0663988590240479, -0.3414939045906067, 1.5028338432312012, -0.02428135648369789, 1.9103881120681763, -0.35767874121665955, 0.6156290769577026, -0.5128700137138367, -1.1156888008117676, 0.710588812828064, -0.33889272809028625, -2.0251479148864746, -0.4612480401992798, -0.8570371866226196, -0.0918656662106514, -0.8310623168945312, 0.9742740392684937, -0.1956203579902649, -1.4022353887557983, 0.09535860270261765, -0.6538759469985962, 0.1847914457321167, -1.35788893699646, 0.2502082586288452, 0.7620499134063721, -0.7992322444915771, 0.0710877776145935, -0.4860836863517761, -1.3882911205291748, -0.596367597579956, 0.5458751916885376, 1.8159791231155396, -0.589040994644165, 0.9955484867095947, 0.9712626338005066, -0.6157914400100708, -0.006899116560816765, 0.49518516659736633, -0.3540976941585541, 0.8853899240493774, -1.0468584299087524, -0.41522666811943054, 1.1097955703735352, -0.3870111107826233, -0.6088953614234924, 1.3896894454956055, 0.762052059173584, -0.981279730796814, -0.3529142439365387, -0.15597257018089294, -0.8448205590248108, 0.06445898860692978, -1.5288959741592407, -0.08988282829523087, 0.3462063670158386, -1.509297251701355, -0.45040008425712585, -0.021582432091236115, 1.3871474266052246, -0.021093731746077538, 1.398154854774475, -0.14575067162513733, -0.12488867342472076, -0.4570661783218384, -0.5481035113334656, 0.15498968958854675, -0.11614550650119781, -0.5711732506752014, 0.21603643894195557, -0.7783064246177673, 0.2050451785326004, 1.4989618062973022, 0.16239793598651886, 0.12710687518119812, 0.5385110974311829, 1.2223742008209229, 0.3648783564567566, -0.20080873370170593, -0.8344850540161133, -1.637458324432373, 1.9667221307754517, -1.5566117763519287, 1.9646885395050049, 0.8087564706802368, -0.0901637002825737, -1.8542628288269043, -1.8248354196548462, 1.3820708990097046, 1.0895947217941284, 2.433584213256836, 0.49631401896476746, 0.4598085284233093, -0.8486921191215515, -0.7619152069091797, 0.43788501620292664, -0.8222006559371948, -0.8662322759628296, 0.15354588627815247, 2.3420352935791016, 1.7605068683624268, -0.39686319231987, -0.2757042944431305, -0.9142205715179443, 1.2992407083511353, -0.31024208664894104, 0.27497392892837524, 1.93315589427948, -0.39011824131011963, -0.986048698425293, 1.3338063955307007, -2.40260648727417, 0.3412831425666809, 2.0147297382354736, 0.26080480217933655, 0.055941298604011536, -1.250045657157898, -0.6583411693572998, -0.1484782099723816, -0.4373725950717926, -1.2456777095794678, 0.336803138256073, -0.21017061173915863, -0.8559434413909912, -1.3465638160705566, 0.006065616384148598, -1.157723069190979, -1.7639039754867554, 0.2853652834892273, 1.8210698366165161, 2.137295722961426, -0.722059428691864, 1.2749390602111816, -0.2959294319152832, 0.16766969859600067, 1.2173455953598022, 1.3202550411224365, 3.222472906112671, 1.9706984758377075, -1.2526025772094727, 0.7272545099258423, -0.23157306015491486, -0.5047090649604797, 1.1222642660140991, -1.0720884799957275, 1.1327617168426514, -0.3204125165939331, -1.3315951824188232, -1.2352821826934814, 1.0290831327438354, 0.4641481041908264, -0.08364618569612503, -0.5143253207206726, 1.182722806930542, 0.2281353920698166, 1.3284803628921509, 0.6542705297470093, -0.3633665442466736, 0.5211014747619629, -0.3954058289527893, -0.5713315010070801, 1.5733672380447388, 0.1294788122177124, -1.5066115856170654, -2.302584648132324, -0.09615003317594528, -1.056552529335022, -0.029748963192105293, -0.8809928297996521, -1.071846842765808, 1.4801989793777466, 0.49672576785087585, -1.0567378997802734, -0.06539340317249298, -0.32466310262680054, -0.5842640399932861, 2.6725215911865234, -1.3080949783325195, -0.22984248399734497, -0.9674608111381531, -0.5743022561073303, 1.5628148317337036, -1.2327024936676025, -0.31855130195617676, -1.029005527496338, -0.5750486254692078, -1.1963034868240356, -0.4300144910812378, -0.05502387881278992, -0.8379459381103516, 0.7158684134483337, -0.08777354657649994, -1.2632033824920654, -0.24628277122974396, -1.0171369314193726, 0.9140917658805847, -0.22731299698352814, 0.05958689749240875, 1.735905408859253, 0.20172423124313354, -0.40306010842323303, 0.8319007158279419, 1.216065764427185, 0.674553394317627, -0.571115255355835, 0.19385592639446259, -0.6002199053764343, 0.49894049763679504, -1.2134186029434204, 0.3731290102005005, -2.920224905014038, 0.7078956961631775, -0.023421775549650192, -0.14554135501384735, -0.18443560600280762, -1.488757848739624, 0.8875042796134949, 2.4606144428253174, -1.1191591024398804, 0.6089829206466675, 0.3531002700328827, 1.2160381078720093, -1.6292082071304321, 0.08800153434276581, -0.6951959133148193, 2.0378165245056152, 0.05606279522180557, 1.1169992685317993, -0.5174821615219116, -2.2700295448303223, 0.565987765789032, -1.209745168685913, -0.9614554643630981, 0.8108286261558533, -0.8596100211143494, 0.23434124886989594, -1.1209678649902344, -0.13478846848011017, -0.9149324893951416, -1.1647135019302368, 0.49644777178764343, 0.05267878621816635, 0.6394451260566711, -0.6317342519760132, 0.24060754477977753, -2.280386447906494, -1.397584319114685, -0.1657957136631012, -0.9309512972831726, 0.48527461290359497, -0.4561387300491333, 0.6833072304725647, -0.07594716548919678, 0.09690701961517334, 0.20941191911697388, 1.554304599761963, 3.201228618621826, 0.01470641978085041, 0.29686710238456726, -0.30015021562576294, -1.0214805603027344, 1.4837244749069214, 0.8894389271736145, -0.19943107664585114, -0.6553274393081665, -0.947693943977356, 1.3803716897964478, 1.990483283996582, 1.1074070930480957, 0.1810799390077591, -0.9420451521873474, -0.8137936592102051, 0.13563884794712067, 0.1674535870552063, 0.47443467378616333, 0.9991590976715088, 0.15029576420783997, 0.22693274915218353, 1.3008253574371338, 1.0947710275650024, -0.24213159084320068, 0.48839038610458374, -0.8930382132530212, -0.3216797113418579, 0.507390558719635, 0.3395313322544098, -0.06547840684652328, 0.2533203065395355, -1.0296764373779297, -0.1586889922618866, -0.2845662236213684, -0.7900726795196533, -0.8005391955375671, -0.3306891918182373, -0.4757603704929352, 1.7898342609405518, -0.06118675321340561, -0.5102791786193848, 0.009240087121725082, -0.7525061368942261, -0.1477276086807251, -1.0648356676101685, 0.2498215287923813, -0.11034893989562988, 0.03803198039531708, -0.11966265738010406, 1.659450888633728, -0.9760607481002808, -2.2880685329437256, 0.1394805908203125, 0.14767351746559143, -0.35614335536956787, -0.05055035650730133, 1.84379243850708, 0.5098691582679749, 1.3781840801239014, 1.5160003900527954, 1.1825127601623535, -0.6203533411026001, -1.2812485694885254, 0.7467486262321472, 0.9036017060279846, -1.3234634399414062, 0.9201160073280334, -0.2483353465795517, -0.5262026786804199, 0.5522473454475403, 1.2851707935333252, 0.373625248670578, -2.01891827583313, 0.8648172616958618, -1.124254822731018, 0.8926511406898499, 0.8417783379554749, 0.8181990385055542, 0.22851145267486572, 0.9262992143630981, -1.2195320129394531, -1.038327693939209, -0.5016461610794067, -0.6510787010192871, 1.88435959815979, -0.2946570813655853, 0.3954620659351349, -0.22206294536590576, -1.241920828819275, 0.09248395264148712, 0.8060131072998047, 0.3213808238506317, -0.33574792742729187, 0.7895419597625732, -0.728847324848175, -0.9821856021881104, -1.241194486618042, -0.488798588514328, -1.038163661956787, -0.8339258432388306, 1.056845784187317, 0.735963761806488, 0.5626521706581116, 1.9578408002853394, 0.6475728154182434, 0.30070823431015015, -2.635855197906494, 0.7940289378166199, 0.3784533739089966, -0.10418731719255447, 0.8440473675727844, 0.3200903534889221, 1.2620372772216797, -0.13389936089515686, 0.5691783428192139, -2.3312909603118896, 2.257936477661133, -0.18600288033485413, 0.7205327749252319, 0.051037535071372986, -0.04269963502883911, 1.0325077772140503, 0.5147140026092529, 0.5636022090911865, -1.0596612691879272, 0.8305518627166748, -0.5910542011260986, 1.1069222688674927, 0.7329395413398743, -0.9226201772689819, 0.17373086512088776, 1.2193583250045776, 0.3861408233642578, -0.6108396649360657, -1.003136157989502, -0.9112198948860168, 0.9088854193687439, 1.7526897192001343, 0.006729805842041969, 0.10370701551437378, 0.8654427528381348, 0.7412937879562378, -1.1937284469604492, 0.05876077711582184, -0.6087015271186829, -0.6996064782142639, 1.7301462888717651, 2.023141622543335, -0.0864357203245163, -0.0300044734030962, -0.8057882785797119, -1.4651706218719482, 0.8038960695266724, 0.08456246554851532, -0.1430816650390625, 0.7249149680137634, -0.6618590354919434, 1.1280728578567505, 0.7197803854942322, 0.9211637377738953, 0.12032872438430786, 0.12578897178173065, 0.2545489966869354, -0.37547799944877625, -1.2959469556808472, -0.39089369773864746, -0.9968541860580444, -2.6146738529205322, 0.42485806345939636, -0.28809070587158203, -1.4812403917312622, 0.13171914219856262, -0.9708796739578247, 0.7189860343933105, -0.580439567565918, -1.272539496421814, -1.3685921430587769, 0.3320575952529907, -0.18536414206027985, 0.7863661050796509, -1.608160138130188, -0.18008515238761902, 1.078241229057312, 0.9102030396461487, -0.665963888168335, 0.8256094455718994, 0.22948524355888367, 0.9149450063705444, 0.8826074600219727, -0.40629351139068604, 0.47903621196746826, 0.25242021679878235, -1.3729231357574463, 0.4091223180294037, 1.3084796667099, 0.13438363373279572, 1.323317289352417, -0.4425053894519806, -0.0409688875079155, 0.44999960064888, -0.3616167902946472, -0.5529203414916992, -0.7088938355445862, 0.6896896362304688, -0.16287469863891602, -1.0058733224868774, -0.1263238489627838, 0.013276424258947372, -0.21877257525920868, 0.241215780377388, -1.4726585149765015, -0.10019199550151825, -0.4084206223487854, -0.6243906617164612, -1.4276540279388428, -0.000006727874279022217, 1.2957185506820679, -0.8474123477935791, -0.14722995460033417, 0.525917112827301, 0.25243982672691345, 0.5517911314964294, 0.6518262028694153, -0.7501375675201416, -0.21736744046211243, -0.15796291828155518, -0.3931104838848114, 0.3651674687862396, 1.3279356956481934, -0.06070809066295624, -0.9667664170265198, 0.5454186797142029, -0.24443379044532776, 0.24307425320148468, 1.998504638671875, 0.10296991467475891, -0.7818470597267151, 0.38086530566215515, -0.7562257647514343, 1.818859338760376, 1.647436499595642, 1.2928102016448975, -0.1094711422920227, -0.9212979078292847, 0.6067588329315186, -0.32163336873054504, -0.37154459953308105, 0.8632872700691223, 0.3166954815387726, -0.34202107787132263, -1.3825753927230835, 0.7754673957824707, 1.2392984628677368, -0.7871515154838562, -0.8201092481613159, 0.17943187057971954, -0.8489975929260254, 1.2757511138916016, 0.5476250648498535, 0.3101924955844879, 0.19272297620773315, 1.6412609815597534, 0.7226501107215881, -0.49599406123161316, 0.5478235483169556, 0.4433329999446869, -0.12499876320362091, -1.971705675125122, -1.0921412706375122, 0.2749938666820526, -0.4808247685432434, -1.5163004398345947, 1.4591639041900635, -1.2657122611999512, -1.0353912115097046, 0.5100074410438538, 0.19389989972114563, 1.3409208059310913, 0.3003925383090973, 1.7658463716506958, 2.0305747985839844, 0.8693429231643677, 0.5400221943855286, 1.181584358215332, -0.2242613285779953, -0.31491005420684814, 1.6884931325912476, -0.5329511165618896, 0.6591758728027344, 1.0600613355636597, -0.429308146238327, -1.2287307977676392, -0.7699460983276367, -1.135841727256775, -0.740513026714325, 1.0790642499923706, 0.1795462667942047, -1.0183862447738647, 0.3241684138774872, 1.595428228378296, 0.08739934861660004, -0.050330750644207, 0.6776787638664246, 0.28882065415382385, -0.5809891819953918, -0.09396850317716599, -1.0201764106750488, 0.5986723899841309, -0.3371833562850952, -0.3975430130958557, 0.2159997820854187, 0.5486563444137573, 1.165034532546997, 0.08939716964960098, 0.03513132780790329, 1.3273533582687378, -1.4356893301010132, 1.3201240301132202, -0.857403576374054, 0.4213685989379883, -2.3369767665863037, 1.4588333368301392, -0.903244137763977, 1.944054365158081, -2.658853769302368, 0.40468212962150574, -0.43560320138931274, -0.5748660564422607, 0.19457018375396729, -0.10995009541511536, 0.03050745464861393, -0.13099168241024017, -1.0452882051467896, -0.07186752557754517, -0.8261780142784119, 0.48060187697410583, 1.2450683116912842, 1.4107412099838257, -0.973369300365448, -0.2664166986942291, -1.6712316274642944, -0.16367419064044952, -0.6277300119400024, 0.21156133711338043, -1.8054695129394531, -0.13956494629383087, -2.0375311374664307, -2.4091129302978516, -1.384842872619629, -1.001303791999817, 1.2506742477416992, 0.1386984884738922, -0.9092864394187927, 1.1791890859603882, -0.2811967730522156, -1.7673511505126953, 1.1674494743347168, -2.2086262702941895 ]
https://github.com/huggingface/datasets/issues/3499
Adjusting chunk size for streaming datasets
Hi ! Data streaming uses `fsspec` to read the data files progressively. IIRC the block size for buffering is 5MiB by default. So every time you finish iterating over a block, it downloads the next one. You can still try to increase the `fsspec` block size for buffering if it can help. To do so you just need to increase `fsspec.spec.AbstractBufferedFile.DEFAULT_BLOCK_SIZE ` Currently this is unfortunately done in a single thread, so it blocks the processing to download and uncompress the next block. At one point it would be nice to be able to do that in parallel !
**Is your feature request related to a problem? Please describe.** I want to use mc4 which I cannot save locally, so I stream it. However, I want to process the entire dataset and filter some documents from it. With the current chunk size of around 1000 documents (right?) I hit a performance bottleneck because of the frequent decompressing. **Describe the solution you'd like** I would appreciate a parameter in the load_dataset function, that allows me to set the chunksize myself (to a value like 100'000 in my case). Like that, I hope to improve the processing time.
1,030
99
Adjusting chunk size for streaming datasets **Is your feature request related to a problem? Please describe.** I want to use mc4 which I cannot save locally, so I stream it. However, I want to process the entire dataset and filter some documents from it. With the current chunk size of around 1000 documents (right?) I hit a performance bottleneck because of the frequent decompressing. **Describe the solution you'd like** I would appreciate a parameter in the load_dataset function, that allows me to set the chunksize myself (to a value like 100'000 in my case). Like that, I hope to improve the processing time. Hi ! Data streaming uses `fsspec` to read the data files progressively. IIRC the block size for buffering is 5MiB by default. So every time you finish iterating over a block, it downloads the next one. You can still try to increase the `fsspec` block size for buffering if it can help. To do so you just need to increase `fsspec.spec.AbstractBufferedFile.DEFAULT_BLOCK_SIZE ` Currently this is unfortunately done in a single thread, so it blocks the processing to download and uncompress the next block. At one point it would be nice to be able to do that in parallel !
[ -1.2981661558151245, -0.9845502376556396, -0.8267052173614502, 1.4103820323944092, -0.2112368792295456, -1.3115050792694092, 0.13791269063949585, -1.126607894897461, 1.7200111150741577, -0.8436671495437622, 0.3471398651599884, -1.614803671836853, 0.11914156377315521, -0.542220950126648, -0.8949406147003174, -0.8969149589538574, -0.5529718399047852, -0.8687314987182617, 0.8926739692687988, 2.5265462398529053, 1.1721667051315308, -1.473039984703064, 2.714305877685547, 0.59541916847229, -0.10846662521362305, -1.1040645837783813, 0.501772403717041, 0.059303902089595795, -1.1988404989242554, -0.5549575090408325, -0.8796453475952148, -0.13860714435577393, -0.5975683927536011, -0.5726943016052246, 0.09617079794406891, 0.3573089838027954, -0.19060103595256805, -0.4001139998435974, -0.4451011121273041, -0.6645554304122925, 0.5375359058380127, -0.4877419173717499, 1.0346972942352295, -0.4663895070552826, 1.8869295120239258, -0.5579488277435303, 0.41345375776290894, 0.8490545749664307, 1.4908370971679688, 0.17897838354110718, -0.08020724356174469, 0.24963068962097168, 0.474102646112442, -0.04330761358141899, 0.40246450901031494, 1.0323554277420044, 0.6381934881210327, 0.5753116607666016, 0.6471083164215088, -2.066675901412964, 1.411819338798523, -1.1743344068527222, 0.2867935299873352, 1.3638399839401245, -0.914664626121521, 0.44431039690971375, -1.8084094524383545, -0.12938621640205383, 0.593247652053833, -2.3228230476379395, 0.10993160307407379, -1.237583041191101, -0.5180315971374512, 1.0159878730773926, 0.20740142464637756, -1.3355321884155273, 0.24825119972229004, -0.479528546333313, 0.9611616134643555, 0.47883298993110657, 1.1628670692443848, -1.770358920097351, 0.06942439079284668, -0.314983993768692, 0.02949020266532898, -1.3724348545074463, -1.46796715259552, 0.6522049903869629, 0.5528756380081177, 0.47790491580963135, -0.000858294777572155, 0.9253617525100708, -0.9460865259170532, 0.9229885339736938, -1.0633909702301025, -1.5762978792190552, -1.462982416152954, -2.1937739849090576, -2.2879326343536377, 0.7915434837341309, -0.46553146839141846, -0.5694119930267334, 2.0481913089752197, -1.03532874584198, -1.7771223783493042, 1.1290862560272217, 0.11442979425191879, 0.06035751849412918, 2.4176571369171143, 0.12204313278198242, -0.6148078441619873, 0.4160230755805969, -0.6303645372390747, 0.866574764251709, -0.5239981412887573, 1.3320716619491577, 0.4565376341342926, -0.9724276065826416, 1.5576212406158447, -0.45990726351737976, 0.5072228908538818, -0.6006050109863281, -0.5516278743743896, -0.8946412801742554, 0.5173985958099365, 1.9354993104934692, -0.30804476141929626, 1.5722259283065796, -0.4002372622489929, -1.5902197360992432, -1.6217516660690308, 0.936943769454956, 0.4301244020462036, -0.8836686611175537, 0.08245613425970078, -0.2920333743095398, 0.10439503192901611, -0.10396097600460052, 1.0983529090881348, 1.171554684638977, 0.7940778732299805, -0.3001485764980316, -0.9278432130813599, 0.2753121852874756, -0.15070222318172455, -0.698671817779541, -1.8320802450180054, -0.4022595286369324, 0.07017429918050766, 0.6414697170257568, -1.2198994159698486, 1.7099741697311401, 0.9467242956161499, 1.8671516180038452, 1.1520322561264038, -0.2632048726081848, 1.4612581729888916, 0.03372733294963837, 1.8920999765396118, -0.5158984661102295, 0.6819844245910645, -0.4213380515575409, -1.0642168521881104, 0.7646112442016602, -0.37564483284950256, -2.1441149711608887, -0.8101720809936523, -0.850278377532959, -0.19771696627140045, -0.7992595434188843, 0.9403543472290039, -0.23008354008197784, -1.2957361936569214, 0.3201861083507538, -0.6276240348815918, 0.10327297449111938, -1.1639797687530518, 0.40134021639823914, 0.7392436265945435, -0.6735280752182007, 0.08368540555238724, -0.28306761384010315, -1.3062537908554077, -0.48711347579956055, 0.22925542294979095, 1.9905344247817993, -0.8117454051971436, 0.9275652170181274, 0.9095385074615479, -0.6938658952713013, -0.09433440119028091, 0.437044233083725, -0.3063563108444214, 0.8204612731933594, -1.0270073413848877, -0.4090176820755005, 1.0802000761032104, -0.28254804015159607, -0.49722182750701904, 1.5103874206542969, 0.6608859300613403, -0.9825981855392456, -0.1528189331293106, -0.30298367142677307, -0.895745038986206, 0.03132479637861252, -1.548510193824768, -0.08033178746700287, 0.3313944637775421, -1.5223240852355957, -0.5010029077529907, -0.20577199757099152, 1.169411301612854, -0.16741618514060974, 1.443534016609192, -0.3359319269657135, -0.2731825113296509, -0.3827434778213501, -0.3973136246204376, 0.24305668473243713, -0.18629442155361176, -0.5880295038223267, 0.18904493749141693, -0.7762389183044434, 0.5014134645462036, 1.391197681427002, 0.39048153162002563, -0.005121270194649696, 0.5017490386962891, 1.0410192012786865, 0.27754297852516174, 0.016631396487355232, -0.8553123474121094, -1.405437707901001, 2.0879743099212646, -1.4579027891159058, 1.9422214031219482, 0.720147967338562, -0.11389639228582382, -1.7335072755813599, -1.7600806951522827, 1.3593083620071411, 1.2117069959640503, 2.2294886112213135, 0.6614717245101929, 0.33216220140457153, -0.7861398458480835, -0.6351441144943237, 0.3893533945083618, -1.1062084436416626, -0.717244029045105, 0.0488906055688858, 2.312784194946289, 1.7635012865066528, -0.5735114812850952, -0.1844608634710312, -1.0294257402420044, 1.398216724395752, -0.14740915596485138, 0.21953418850898743, 2.0652215480804443, -0.3198821544647217, -1.1564409732818604, 1.328657627105713, -2.353362798690796, 0.16547073423862457, 1.9820823669433594, 0.3854069411754608, -0.02241324633359909, -1.4794124364852905, -0.4841223657131195, -0.2626335918903351, -0.27947938442230225, -1.2370795011520386, 0.5906221866607666, -0.3209916949272156, -0.7914628982543945, -1.4666997194290161, 0.1703665852546692, -1.1653279066085815, -1.6052358150482178, 0.3370184004306793, 1.8107343912124634, 2.000615358352661, -0.5711041688919067, 1.491562008857727, -0.24179749190807343, 0.1757991909980774, 1.286630630493164, 1.0950164794921875, 3.1572532653808594, 1.9816961288452148, -1.1816518306732178, 0.5346635580062866, -0.23152676224708557, -0.46918052434921265, 1.1417036056518555, -1.0746198892593384, 1.297188639640808, -0.10373356193304062, -1.1424590349197388, -1.2035373449325562, 0.9881625175476074, 0.5075805187225342, 0.09232684969902039, -0.5386929512023926, 1.2438056468963623, 0.07592910528182983, 1.2988454103469849, 0.42465293407440186, -0.32177481055259705, 0.6512984037399292, -0.4694143235683441, -0.5541168451309204, 1.5376970767974854, 0.235771045088768, -1.4071054458618164, -2.271101236343384, -0.21901436150074005, -0.7776968479156494, 0.03888245299458504, -0.5640690326690674, -0.9789295196533203, 1.6613751649856567, 0.44543007016181946, -1.364318609237671, -0.3096039593219757, -0.4828650653362274, -0.7482013702392578, 2.711432933807373, -1.4925000667572021, -0.21466107666492462, -0.9602276086807251, -0.5460132360458374, 1.5857656002044678, -1.3656941652297974, -0.1477353870868683, -0.9795341491699219, -0.5945985317230225, -1.3317854404449463, -0.553450345993042, -0.07696972787380219, -0.8401641845703125, 0.776080846786499, 0.3130080997943878, -1.0528109073638916, -0.3068254292011261, -0.8024469614028931, 0.6869825124740601, 0.005410642363131046, 0.3201543092727661, 1.8299956321716309, 0.36790525913238525, -0.39253202080726624, 0.6973962783813477, 1.1410518884658813, 0.6641750335693359, -0.6407971382141113, 0.16449421644210815, -0.7246413230895996, 0.3000158667564392, -1.2153650522232056, 0.38465961813926697, -2.794013500213623, 0.591320276260376, -0.04370960220694542, -0.1387774646282196, 0.016356738284230232, -1.2827348709106445, 1.1039526462554932, 2.6771225929260254, -1.1903455257415771, 0.45332470536231995, 0.23827198147773743, 1.1920580863952637, -1.5391358137130737, 0.4285365045070648, -0.38399237394332886, 2.1007535457611084, 0.24984699487686157, 1.187766194343567, -0.5762940645217896, -2.3532330989837646, 0.6067301034927368, -1.2236443758010864, -1.325575590133667, 0.6471437215805054, -0.8037281036376953, -0.0655318945646286, -1.4288325309753418, -0.2156107872724533, -0.9297159910202026, -1.2575362920761108, 0.8619712591171265, 0.20191335678100586, 0.46261149644851685, -0.6500003337860107, 0.30082935094833374, -2.188992500305176, -1.383028507232666, -0.25421425700187683, -0.8111850023269653, 0.4745704233646393, -0.3159266412258148, 0.6250770092010498, -0.14230495691299438, 0.0845566913485527, 0.3629280924797058, 1.3893060684204102, 3.396259307861328, 0.22995656728744507, 0.48686179518699646, -0.22927014529705048, -0.8906608819961548, 1.4317938089370728, 0.9292196035385132, -0.12855026125907898, -0.5541329383850098, -1.0501235723495483, 1.2865628004074097, 1.9429444074630737, 0.920491099357605, 0.10155299305915833, -0.7958413362503052, -0.6439589262008667, -0.05545783042907715, 0.18981830775737762, 0.45549827814102173, 0.9740147590637207, 0.002248191274702549, 0.09944364428520203, 1.4118812084197998, 1.3041746616363525, -0.3961927592754364, 0.3049793541431427, -0.7927227020263672, -0.3701311945915222, 0.5310190916061401, 0.3450361490249634, -0.06343387812376022, 0.29976990818977356, -0.8737068176269531, -0.2560393810272217, -0.41225799918174744, -1.0348718166351318, -0.7529621124267578, -0.3961201608181, -0.37453487515449524, 1.7288663387298584, 0.13347969949245453, -0.5009673833847046, -0.08882571756839752, -0.7735233306884766, -0.13829627633094788, -1.0775392055511475, 0.1955735683441162, -0.08002017438411713, -0.18154439330101013, -0.11000922322273254, 1.9005855321884155, -0.9364149570465088, -2.0504555702209473, 0.30445852875709534, 0.2519119083881378, -0.38859039545059204, 0.2676158547401428, 1.4889642000198364, 0.5282834768295288, 1.463242769241333, 1.4500452280044556, 0.9420361518859863, -0.6544820070266724, -1.3308345079421997, 0.6697601079940796, 0.8745173215866089, -1.5343925952911377, 0.7582595348358154, 0.14461584389209747, -0.5255521535873413, 0.7736684083938599, 1.1909692287445068, 0.3693728446960449, -2.0548155307769775, 0.7693023681640625, -0.904160737991333, 0.76214599609375, 0.6542418003082275, 0.708458423614502, 0.33834096789360046, 0.8172158002853394, -1.2389873266220093, -1.1299864053726196, -0.8253090381622314, -0.6112208366394043, 2.041839361190796, -0.24046854674816132, 0.7007582187652588, -0.10840433090925217, -1.2954548597335815, -0.1729470193386078, 0.6395933628082275, 0.4349174499511719, -0.2949783205986023, 0.8056677579879761, -0.7503602504730225, -1.1476081609725952, -1.5026540756225586, -0.433601975440979, -0.9548288583755493, -0.8705426454544067, 1.052132248878479, 0.8397669792175293, 0.21832120418548584, 1.8888616561889648, 0.5762724876403809, 0.20390766859054565, -2.696449041366577, 0.8452852964401245, 0.3111628592014313, -0.11254919320344925, 0.9200233221054077, 0.3423759937286377, 0.9706064462661743, 0.035501182079315186, 0.5056931972503662, -2.3862500190734863, 2.3402466773986816, -0.26861563324928284, 0.7896147966384888, -0.09610264003276825, -0.17804241180419922, 1.1217710971832275, 0.6794646978378296, 0.5873078107833862, -1.1165469884872437, 0.6367834806442261, -0.6344077587127686, 1.395298957824707, 1.0329420566558838, -0.7333629131317139, -0.04472476243972778, 1.2939609289169312, 0.5076183080673218, -0.4600062370300293, -0.9816198348999023, -0.9494713544845581, 0.9370192289352417, 1.8592321872711182, -0.131489560008049, -0.02582605741918087, 0.8067636489868164, 0.7263098955154419, -1.2377296686172485, 0.1630738526582718, -0.846408486366272, -0.9149203300476074, 1.6350914239883423, 2.02740216255188, -0.08040253072977066, -0.17061038315296173, -0.711877703666687, -1.1859840154647827, 0.7658712863922119, 0.10548677295446396, 0.09336666017770767, 0.5682296752929688, -0.6367223262786865, 1.1585050821304321, 1.0124242305755615, 0.9288578033447266, 0.0861598551273346, 0.3640286922454834, 0.34237849712371826, -0.24729599058628082, -1.0803614854812622, -0.15809524059295654, -1.0624011754989624, -2.569120407104492, 0.444844514131546, -0.27504676580429077, -1.5134435892105103, -0.00887814536690712, -0.9307633638381958, 0.9384603500366211, -0.48408272862434387, -1.2139009237289429, -1.5771591663360596, 0.13335147500038147, -0.0367443710565567, 0.9552129507064819, -1.6463165283203125, 0.004086651839315891, 1.1394562721252441, 0.8257590532302856, -0.5491498708724976, 0.9946588277816772, 0.290822833776474, 1.023224115371704, 0.7313930988311768, -0.41405054926872253, 0.4399354159832001, 0.14299069344997406, -1.3129189014434814, 0.508741021156311, 1.0971806049346924, 0.17354165017604828, 1.329330563545227, -0.5966287851333618, 0.09232116490602493, 0.3704155385494232, -0.5336295366287231, -0.30118149518966675, -0.6342868804931641, 0.7841633558273315, 0.06849982589483261, -0.8119180202484131, 0.15067248046398163, -0.16644564270973206, -0.23065611720085144, 0.14874526858329773, -1.4738609790802002, -0.2957482933998108, -0.4128042459487915, -0.541775107383728, -1.2281749248504639, -0.06616315990686417, 1.429749846458435, -0.7367427349090576, -0.18561971187591553, 0.523998498916626, 0.48702433705329895, 0.5902755260467529, 0.5708478689193726, -0.6111931800842285, -0.4571175277233124, -0.21830801665782928, -0.2678448259830475, 0.18547259271144867, 1.2854394912719727, -0.15574952960014343, -0.9834414720535278, 0.7557624578475952, -0.3535376191139221, 0.03996565565466881, 1.874984622001648, 0.14018718898296356, -0.7082314491271973, 0.36137479543685913, -0.6728596687316895, 1.9050984382629395, 1.6738688945770264, 1.2759939432144165, -0.1482330709695816, -0.9703775644302368, 0.5752671957015991, -0.2787930369377136, -0.36988046765327454, 0.8551894426345825, 0.49917593598365784, -0.17367902398109436, -1.3866510391235352, 0.592083215713501, 1.1996525526046753, -0.850872278213501, -0.8747930526733398, -0.0249259565025568, -0.7956036329269409, 1.0398941040039062, 0.6234632730484009, 0.49041247367858887, 0.1674780249595642, 1.7328544855117798, 0.7215783596038818, -0.5183800458908081, 0.6408991813659668, 0.4896893799304962, -0.18470178544521332, -2.1589410305023193, -1.201300859451294, 0.2450791895389557, -0.4439525902271271, -1.521878719329834, 1.3569633960723877, -1.1300605535507202, -0.8575865030288696, 0.5170793533325195, 0.1522199809551239, 1.522100567817688, 0.32519301772117615, 1.5366888046264648, 2.05924654006958, 0.9295533895492554, 0.4369133710861206, 1.4264860153198242, -0.05989404767751694, -0.42690080404281616, 1.9260557889938354, -0.4341290295124054, 0.4683452844619751, 1.1590170860290527, -0.3731808364391327, -1.0304158926010132, -0.7407408952713013, -1.1348588466644287, -0.6630316972732544, 1.1036205291748047, 0.10139431059360504, -1.1357847452163696, 0.22485442459583282, 1.613342523574829, 0.14145565032958984, -0.3413640856742859, 0.37670382857322693, 0.42616137862205505, -0.6877942085266113, -0.11288148909807205, -0.9120062589645386, 0.49795642495155334, -0.253772497177124, -0.3989563584327698, 0.3877277970314026, 0.4276134669780731, 1.175840973854065, -0.04895055294036865, 0.08656879514455795, 1.2213377952575684, -1.517177939414978, 1.4733651876449585, -0.49466297030448914, 0.23259739577770233, -2.325808525085449, 1.4780120849609375, -0.6779037714004517, 1.9072513580322266, -2.609201192855835, 0.31368136405944824, -0.7624871730804443, -0.4283145070075989, 0.4213930368423462, -0.36352479457855225, 0.13950085639953613, -0.21811704337596893, -1.063298225402832, -0.0670236200094223, -0.7259366512298584, 0.6606805324554443, 1.0779335498809814, 1.3096801042556763, -1.0839993953704834, -0.20973922312259674, -1.7036492824554443, -0.07893853634595871, -0.6469013690948486, 0.37484505772590637, -2.0663044452667236, -0.17417438328266144, -1.9581307172775269, -2.1922309398651123, -1.4069929122924805, -0.8672964572906494, 1.0647934675216675, 0.04309337958693504, -0.8196549415588379, 1.0641645193099976, -0.3187395930290222, -1.8427867889404297, 1.0447540283203125, -2.163862943649292 ]
https://github.com/huggingface/datasets/issues/3490
Does datasets support load text from HDFS?
Hi ! `datasets` currently supports reading local files or files over HTTP. We may add support for other filesystems (cloud storages, hdfs...) at one point though :)
The raw text data is stored on HDFS due to the dataset's size is too large to store on my develop machine, so I wander does datasets support read data from hdfs?
1,032
27
Does datasets support load text from HDFS? The raw text data is stored on HDFS due to the dataset's size is too large to store on my develop machine, so I wander does datasets support read data from hdfs? Hi ! `datasets` currently supports reading local files or files over HTTP. We may add support for other filesystems (cloud storages, hdfs...) at one point though :)
[ -1.2468034029006958, -0.9509500861167908, -0.8317746520042419, 1.298822045326233, -0.3240802586078644, -1.3311011791229248, 0.20607168972492218, -1.2314711809158325, 1.7316741943359375, -0.8071742653846741, 0.31576523184776306, -1.7606877088546753, -0.12110040336847305, -0.35017991065979004, -0.8077172040939331, -1.0653818845748901, -0.48578283190727234, -0.8830384612083435, 1.02211332321167, 2.4461801052093506, 1.1152387857437134, -1.2770986557006836, 2.7109172344207764, 0.5336123704910278, -0.114965058863163, -0.9963710308074951, 0.5647892355918884, 0.15100054442882538, -1.3779524564743042, -0.4046655595302582, -1.0999424457550049, -0.06993399560451508, -0.631949245929718, -0.5803938508033752, 0.12154847383499146, 0.3440970778465271, -0.17515526711940765, -0.6511923670768738, -0.3570823073387146, -0.6889181137084961, 0.3982873260974884, -0.26985669136047363, 1.088539719581604, -0.43682634830474854, 1.9650471210479736, -0.5232374668121338, 0.4222072958946228, 0.6319003701210022, 1.5604345798492432, 0.2847883105278015, -0.034907419234514236, 0.18431997299194336, 0.3501697778701782, -0.135306254029274, 0.34018322825431824, 1.1111723184585571, 0.5505849719047546, 0.5623499155044556, 0.6630585789680481, -2.0361857414245605, 1.2992528676986694, -1.1429438591003418, 0.39326801896095276, 1.5607980489730835, -1.1176716089248657, 0.3835711181163788, -1.8096809387207031, -0.16324813663959503, 0.5665499567985535, -2.125685214996338, 0.14190182089805603, -1.0940706729888916, -0.4803573489189148, 1.0396381616592407, 0.4464065134525299, -1.316329836845398, 0.2087312489748001, -0.3666631877422333, 0.9255723357200623, 0.44600072503089905, 1.3655930757522583, -1.6661955118179321, 0.20400157570838928, -0.47424405813217163, 0.11216118931770325, -1.3504252433776855, -1.4806253910064697, 0.6103367805480957, 0.5043944120407104, 0.5621953010559082, -0.188707634806633, 0.9364456534385681, -0.8706373572349548, 0.9274688959121704, -0.8239781856536865, -1.6569077968597412, -1.4470347166061401, -2.3189902305603027, -2.3810696601867676, 0.7737739682197571, -0.37864449620246887, -0.5460847020149231, 1.976631760597229, -0.9800639152526855, -1.80377197265625, 1.179879903793335, 0.18219482898712158, -0.004688635468482971, 2.4826622009277344, 0.24201583862304688, -0.6317285895347595, 0.25513094663619995, -0.7385089993476868, 0.9188951253890991, -0.4387764632701874, 1.5462926626205444, 0.4208531379699707, -0.9351335167884827, 1.6962429285049438, -0.35549890995025635, 0.6018193364143372, -0.573746383190155, -0.6058557033538818, -0.8714792728424072, 0.26814204454421997, 1.958472728729248, -0.2978890538215637, 1.6314557790756226, -0.666411280632019, -1.626030445098877, -1.5558087825775146, 0.8959424495697021, 0.5297836661338806, -0.7870641350746155, 0.09000478684902191, -0.4231266975402832, -0.03264505788683891, 0.019211843609809875, 1.1627517938613892, 1.1691558361053467, 0.7043091654777527, -0.32583290338516235, -0.8926428556442261, 0.23208771646022797, 0.1027122214436531, -0.7897202372550964, -1.69549560546875, -0.3542371690273285, -0.011378686875104904, 0.7197026014328003, -1.2625395059585571, 1.5748366117477417, 0.9983225464820862, 1.8868980407714844, 0.9367899894714355, -0.38485148549079895, 1.4454821348190308, -0.09195741266012192, 1.7248873710632324, -0.5930546522140503, 0.6189303398132324, -0.25878819823265076, -1.2348476648330688, 0.8160162568092346, -0.28583264350891113, -2.064406633377075, -0.828175961971283, -0.9218205809593201, -0.1668337881565094, -0.6589977145195007, 1.016119360923767, -0.24104465544223785, -1.5642286539077759, 0.09792386740446091, -0.5071726441383362, 0.19419008493423462, -1.233544111251831, 0.46305468678474426, 0.7410376667976379, -0.6910212635993958, -0.02291579358279705, -0.23642221093177795, -1.378471851348877, -0.460660845041275, 0.10698513686656952, 1.9317511320114136, -0.9416627287864685, 0.9218299984931946, 0.993752658367157, -0.6865181922912598, 0.06069706380367279, 0.15599802136421204, -0.22226595878601074, 0.9891186356544495, -1.0885779857635498, -0.29551196098327637, 1.2396525144577026, -0.22325628995895386, -0.5056712627410889, 1.5138988494873047, 0.6706708669662476, -0.943710207939148, -0.03420940786600113, -0.1746821403503418, -0.8485389947891235, -0.1443178653717041, -1.616235613822937, -0.12036211043596268, 0.15265297889709473, -1.5051933526992798, -0.5686615705490112, -0.26163747906684875, 1.2789218425750732, -0.06280162930488586, 1.4476029872894287, -0.2923389971256256, -0.20780690014362335, -0.4062950015068054, -0.2899584472179413, 0.42624834179878235, -0.2896636128425598, -0.5824886560440063, 0.3254227340221405, -0.8350042104721069, 0.36076536774635315, 1.447459101676941, 0.35652342438697815, -0.02722744271159172, 0.5982956886291504, 0.9128125905990601, 0.29722484946250916, -0.09642812609672546, -0.7301914095878601, -1.638121485710144, 2.0335536003112793, -1.4685320854187012, 1.8850387334823608, 0.6384435296058655, -0.10409077256917953, -1.6766763925552368, -1.8203285932540894, 1.361049771308899, 1.2036124467849731, 2.190830945968628, 0.5430049896240234, 0.201486274600029, -0.8630267381668091, -0.6860305666923523, 0.24463799595832825, -0.9465426802635193, -0.6638011932373047, 0.03174575790762901, 2.0991222858428955, 1.6297036409378052, -0.7816498875617981, -0.12272408604621887, -1.2439860105514526, 1.3367412090301514, -0.20698945224285126, 0.3413398861885071, 1.8433789014816284, -0.4592350721359253, -1.1986511945724487, 1.2618505954742432, -2.370274782180786, 0.08510395884513855, 2.0061028003692627, 0.24710100889205933, 0.09151934832334518, -1.4345327615737915, -0.7332367897033691, -0.26183196902275085, -0.3950735032558441, -1.276075005531311, 0.5579631924629211, -0.21105900406837463, -0.8092086911201477, -1.572440505027771, 0.06386234611272812, -1.2378473281860352, -1.494260311126709, 0.4779338538646698, 1.782546877861023, 1.9836270809173584, -0.6228122115135193, 1.4642351865768433, -0.2703629732131958, 0.17680636048316956, 1.1225709915161133, 1.1646099090576172, 3.0273022651672363, 1.8577399253845215, -1.222288727760315, 0.8544478416442871, 0.006480944808572531, -0.596204400062561, 1.2393250465393066, -0.9991966485977173, 1.316372275352478, -0.06915590912103653, -1.0084445476531982, -1.207344651222229, 0.9645728468894958, 0.49951502680778503, 0.0641779750585556, -0.4012649357318878, 1.3214612007141113, -0.011604761704802513, 1.2902823686599731, 0.5636125206947327, -0.36703115701675415, 0.516141414642334, -0.34537720680236816, -0.4491230547428131, 1.6342520713806152, 0.1549552083015442, -1.2838687896728516, -2.330925464630127, -0.2191178798675537, -0.8665952086448669, 0.19744710624217987, -0.6122202277183533, -0.8993203639984131, 1.6526912450790405, 0.555849015712738, -1.1373872756958008, -0.3381655514240265, -0.42423775792121887, -0.5563970804214478, 2.581381320953369, -1.4459894895553589, -0.10198548436164856, -0.7735998034477234, -0.43340370059013367, 1.6806668043136597, -1.1121762990951538, -0.2847262918949127, -0.9564611911773682, -0.563310444355011, -1.3922940492630005, -0.7465718388557434, 0.054671891033649445, -1.0147122144699097, 0.7571398019790649, 0.15089081227779388, -1.119888424873352, -0.3192172646522522, -0.8760412931442261, 0.9750798344612122, -0.055944573134183884, 0.329116553068161, 1.803709864616394, 0.4466066062450409, -0.44273731112480164, 0.6750576496124268, 1.1703169345855713, 0.571181058883667, -0.5459221005439758, 0.15329697728157043, -0.7900916934013367, 0.2744562029838562, -1.221768856048584, 0.17046311497688293, -2.9884815216064453, 0.6011583805084229, -0.1870959997177124, -0.0727739930152893, -0.08578941971063614, -1.3746713399887085, 1.1770492792129517, 2.5451107025146484, -1.2300426959991455, 0.4248359501361847, 0.3347546458244324, 1.1393327713012695, -1.4564976692199707, 0.30809324979782104, -0.4867892265319824, 1.9977556467056274, 0.2112715095281601, 1.1507076025009155, -0.5138751268386841, -2.0449836254119873, 0.6911585330963135, -1.3846492767333984, -1.2492001056671143, 0.7747724056243896, -1.0484756231307983, 0.04679949954152107, -1.4934641122817993, -0.14968377351760864, -0.9832625985145569, -1.297681450843811, 0.686669111251831, 0.16913704574108124, 0.33608075976371765, -0.7053002715110779, 0.4288305938243866, -2.1513512134552, -1.3118172883987427, -0.29033520817756653, -1.0142836570739746, 0.45632320642471313, -0.3356420695781708, 0.6319838166236877, -0.14937926828861237, 0.17937488853931427, 0.39275261759757996, 1.2972333431243896, 3.2539024353027344, 0.1460951268672943, 0.3033967912197113, -0.10260539501905441, -0.8687323927879333, 1.5294421911239624, 1.2047039270401, -0.17185533046722412, -0.5732418894767761, -1.009752631187439, 1.2768710851669312, 2.0458078384399414, 1.0418773889541626, 0.059256963431835175, -0.7339340448379517, -0.4279811382293701, -0.005644484888762236, 0.26417943835258484, 0.45935162901878357, 0.9893834590911865, -0.0825367197394371, 0.3074571490287781, 1.4340828657150269, 1.2434959411621094, -0.4192107021808624, 0.4638265073299408, -0.770272970199585, -0.5685314536094666, 0.5315775871276855, 0.269541472196579, -0.11778493225574493, 0.4479592740535736, -0.8476415276527405, -0.2348613440990448, -0.1854657381772995, -0.9704639911651611, -0.6140618920326233, -0.3954122066497803, -0.43622025847435, 1.5686168670654297, 0.15445075929164886, -0.6090754270553589, -0.12197458744049072, -0.6764343976974487, 0.09987427294254303, -1.0693985223770142, 0.27436700463294983, -0.17443063855171204, 0.05833473056554794, -0.02663562446832657, 1.82799232006073, -0.9888874292373657, -2.1475024223327637, 0.27315589785575867, 0.2871015965938568, -0.5317416787147522, 0.2102290242910385, 1.5233389139175415, 0.4957713782787323, 1.4852182865142822, 1.393812894821167, 0.912825345993042, -0.6930882334709167, -1.3431391716003418, 0.6488603949546814, 0.9095689654350281, -1.496335506439209, 0.7795295119285583, 0.19575494527816772, -0.5868154168128967, 0.6730767488479614, 1.1932989358901978, 0.4292055666446686, -1.9453799724578857, 0.8824463486671448, -0.8501349091529846, 0.9550206661224365, 0.6184577941894531, 0.9028249382972717, 0.27685481309890747, 0.9557993412017822, -1.11782968044281, -1.0706045627593994, -0.80350261926651, -0.6438420414924622, 1.9153177738189697, -0.322658509016037, 0.6268874406814575, -0.216445654630661, -1.0161007642745972, -0.21226327121257782, 0.6145403981208801, 0.35088667273521423, -0.4093432128429413, 0.9059810042381287, -0.6617052555084229, -1.2475736141204834, -1.343678593635559, -0.45070159435272217, -1.0380715131759644, -0.8453270792961121, 1.1692813634872437, 0.8486766219139099, 0.30535194277763367, 1.8414530754089355, 0.43336939811706543, 0.1854814738035202, -2.6313796043395996, 0.7715926170349121, 0.2929825484752655, -0.11866666376590729, 0.8205690383911133, 0.29632315039634705, 1.1346020698547363, -0.13696523010730743, 0.48259544372558594, -2.3040883541107178, 2.3108222484588623, -0.2180437594652176, 0.8455578684806824, -0.020932259038090706, 0.03899639844894409, 1.1863772869110107, 0.6614688038825989, 0.6164137721061707, -1.1944013833999634, 0.6416691541671753, -0.5776267051696777, 1.1897071599960327, 0.9575564861297607, -0.749366044998169, -0.15145458281040192, 1.4418737888336182, 0.5623925924301147, -0.345622181892395, -0.945059061050415, -0.8495455980300903, 0.9132018089294434, 1.6325509548187256, 0.06144619733095169, 0.1799919605255127, 0.8030506372451782, 0.7445932626724243, -1.3503457307815552, -0.08068817108869553, -0.8447628617286682, -0.7235530018806458, 1.5772520303726196, 2.202380895614624, 0.03988465294241905, -0.041997116059064865, -0.75812828540802, -1.2395118474960327, 0.8873440623283386, -0.13683004677295685, 0.16953372955322266, 0.5179543495178223, -0.5546442866325378, 1.2276620864868164, 0.790917694568634, 0.8363670110702515, 0.19636932015419006, 0.24362504482269287, 0.2923118770122528, 0.04372905567288399, -1.1103250980377197, -0.18804877996444702, -1.0189694166183472, -2.514378786087036, 0.5565122365951538, -0.41847413778305054, -1.483521580696106, 0.005615899804979563, -0.9962309002876282, 0.9579977989196777, -0.5886892676353455, -1.1445695161819458, -1.5072311162948608, 0.02169804647564888, 0.07769155502319336, 0.8455287218093872, -1.583668828010559, -0.10213590413331985, 1.3542505502700806, 0.8665770888328552, -0.5106149315834045, 1.0451809167861938, 0.32359787821769714, 0.9308106899261475, 0.6768302917480469, -0.3690722584724426, 0.44197961688041687, 0.013853313401341438, -1.2549340724945068, 0.5184141397476196, 1.2435928583145142, 0.07761603593826294, 1.4752403497695923, -0.5925883054733276, -0.028577163815498352, 0.5670270323753357, -0.5310145020484924, -0.4348776340484619, -0.4361339807510376, 0.6493741869926453, 0.044288519769907, -0.8219049572944641, 0.004744251724332571, -0.12395959347486496, -0.14246419072151184, 0.23693041503429413, -1.4978365898132324, -0.44995054602622986, -0.5116415023803711, -0.525790274143219, -1.1824899911880493, 0.042907170951366425, 1.505672812461853, -0.6696053743362427, -0.20227418839931488, 0.4640473425388336, 0.42889508605003357, 0.6735590100288391, 0.7339164018630981, -0.6798710227012634, -0.309146910905838, -0.3239087462425232, -0.4130944311618805, 0.13474828004837036, 1.2909150123596191, -0.26846635341644287, -1.0071169137954712, 0.6582607626914978, -0.21492953598499298, -0.008795606903731823, 1.933233618736267, 0.024996919557452202, -0.7592712044715881, 0.33955317735671997, -0.7912601828575134, 1.9294660091400146, 1.6252952814102173, 1.4676356315612793, -0.19893088936805725, -0.9486156105995178, 0.5600541234016418, -0.24729286134243011, -0.3295503258705139, 0.7579410076141357, 0.47495323419570923, -0.14703595638275146, -1.2678707838058472, 0.593388020992279, 1.2628523111343384, -1.0450509786605835, -0.8868279457092285, 0.07980458438396454, -0.7295560836791992, 0.9958978295326233, 0.65335613489151, 0.35978734493255615, 0.3227798044681549, 1.7002068758010864, 0.6423633098602295, -0.5688957571983337, 0.5275450944900513, 0.630837619304657, -0.09101742506027222, -1.968953013420105, -0.9797285795211792, 0.3101987838745117, -0.5992184281349182, -1.6136934757232666, 1.4072281122207642, -1.0199159383773804, -0.9081999063491821, 0.5254283547401428, 0.050943609327077866, 1.653404951095581, 0.46391281485557556, 1.6687616109848022, 1.9997977018356323, 0.9952535033226013, 0.31660962104797363, 1.339115858078003, 0.04093229025602341, -0.3744371831417084, 1.9307856559753418, -0.35679930448532104, 0.3876917362213135, 1.2232931852340698, -0.35974156856536865, -0.8705906867980957, -0.8204867243766785, -1.1324759721755981, -0.6998593211174011, 1.1206594705581665, 0.20281586050987244, -1.1874911785125732, 0.2850072979927063, 1.4224085807800293, 0.11394201219081879, -0.4404950737953186, 0.5858273506164551, 0.35631513595581055, -0.7588522434234619, -0.11800963431596756, -1.0970370769500732, 0.3232027590274811, -0.41161665320396423, -0.5844686627388, 0.24871352314949036, 0.49974218010902405, 1.3349840641021729, -0.0076768058352172375, 0.2244609296321869, 1.273870825767517, -1.586646556854248, 1.3811609745025635, -0.7377904057502747, 0.18058376014232635, -2.6116175651550293, 1.5061330795288086, -0.6878197193145752, 1.9746966361999512, -2.8856332302093506, 0.3655964732170105, -0.5516194701194763, -0.415108859539032, 0.2584078013896942, -0.2964463233947754, 0.10474774241447449, -0.18129552900791168, -1.1886398792266846, -0.017095670104026794, -0.6462444067001343, 0.6340688467025757, 0.9528128504753113, 1.0909664630889893, -1.0241408348083496, -0.4037163257598877, -1.6710543632507324, -0.2577413320541382, -0.534655749797821, 0.4084404706954956, -2.1247215270996094, -0.1847434639930725, -1.9532123804092407, -2.3807380199432373, -1.258651852607727, -0.6761913895606995, 1.2782313823699951, 0.16214028000831604, -0.8914582133293152, 1.1168352365493774, -0.3089984655380249, -1.8181623220443726, 1.1434025764465332, -2.198486804962158 ]
https://github.com/huggingface/datasets/issues/3488
URL query parameters are set as path in the compression hop for fsspec
I think the test passes because it simply ignore what's after `gzip://`. The returned urlpath is expected to look like `gzip://filename::url`, and the filename is currently considered to be what's after the final `/`, hence the result. We can decide to change this and simply have `gzip://::url`, this way we don't need to guess the filename, what do you think ?
## Describe the bug There is an ssue with `StreamingDownloadManager._extract`. I don't know how the test `test_streaming_gg_drive_gzipped` passes: For ```python TEST_GG_DRIVE_GZIPPED_URL = "https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz" urlpath = StreamingDownloadManager().download_and_extract(TEST_GG_DRIVE_GZIPPED_URL) ``` gives `urlpath`: ```python 'gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz::https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz' ``` The gzip path makes no sense: `gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz` ## Steps to reproduce the bug ```python from datasets.utils.streaming_download_manager import StreamingDownloadManager dl_manager = StreamingDownloadManager() urlpath = dl_manager.extract("https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz") print(urlpath) ``` ## Expected results The query parameters should not be set as part of the path.
1,033
61
URL query parameters are set as path in the compression hop for fsspec ## Describe the bug There is an ssue with `StreamingDownloadManager._extract`. I don't know how the test `test_streaming_gg_drive_gzipped` passes: For ```python TEST_GG_DRIVE_GZIPPED_URL = "https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz" urlpath = StreamingDownloadManager().download_and_extract(TEST_GG_DRIVE_GZIPPED_URL) ``` gives `urlpath`: ```python 'gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz::https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz' ``` The gzip path makes no sense: `gzip://uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz` ## Steps to reproduce the bug ```python from datasets.utils.streaming_download_manager import StreamingDownloadManager dl_manager = StreamingDownloadManager() urlpath = dl_manager.extract("https://drive.google.com/uc?export=download&id=1Bt4Garpf0QLiwkJhHJzXaVa0I0H5Qhwz") print(urlpath) ``` ## Expected results The query parameters should not be set as part of the path. I think the test passes because it simply ignore what's after `gzip://`. The returned urlpath is expected to look like `gzip://filename::url`, and the filename is currently considered to be what's after the final `/`, hence the result. We can decide to change this and simply have `gzip://::url`, this way we don't need to guess the filename, what do you think ?
[ -1.153934121131897, -0.8712711334228516, -0.6923501491546631, 1.4374494552612305, -0.1575945019721985, -1.2511261701583862, 0.16733108460903168, -1.1216706037521362, 1.6653958559036255, -0.7939504981040955, 0.4001550078392029, -1.5266008377075195, 0.048089295625686646, -0.666796863079071, -0.742267370223999, -0.8199267387390137, -0.3411382734775543, -0.7854301929473877, 1.0197865962982178, 2.4197025299072266, 1.3062824010849, -1.4107933044433594, 2.7383816242218018, 0.7856375575065613, -0.3256617486476898, -1.0552760362625122, 0.4212317168712616, -0.04340152069926262, -1.2589064836502075, -0.547977864742279, -0.9366940259933472, -0.09014328569173813, -0.5799092650413513, -0.4896640479564667, 0.045753803104162216, 0.4644045829772949, -0.3112490177154541, -0.39124515652656555, -0.6394286751747131, -0.7553759813308716, 0.41508132219314575, -0.5400113463401794, 0.9291901588439941, -0.2691604197025299, 1.6725850105285645, -0.7000481486320496, 0.36562857031822205, 0.7537044286727905, 1.274344801902771, 0.11368989199399948, -0.01775028556585312, 0.29927805066108704, 0.4646512567996979, -0.023116402328014374, 0.6019981503486633, 1.1922999620437622, 0.7419022917747498, 0.39857858419418335, 0.6604369878768921, -2.237028121948242, 1.212053894996643, -1.0766890048980713, 0.2767123579978943, 1.3161704540252686, -0.9463364481925964, 0.4165063202381134, -1.8239598274230957, 0.0023351218551397324, 0.5478835701942444, -2.3284361362457275, 0.38549304008483887, -1.3435938358306885, -0.4054979979991913, 0.9692052006721497, 0.26248878240585327, -1.201171636581421, 0.15034981071949005, -0.5126934051513672, 1.0157463550567627, 0.31590160727500916, 0.9561670422554016, -1.7284034490585327, -0.17642159759998322, -0.33298763632774353, 0.07750149816274643, -1.3182169198989868, -1.4905866384506226, 0.561164915561676, 0.6616783142089844, 0.5306052565574646, -0.11642023175954819, 1.1928173303604126, -1.1246892213821411, 0.8125816583633423, -1.0465939044952393, -1.6819020509719849, -1.5254448652267456, -2.226701259613037, -2.0426626205444336, 0.7571664452552795, -0.4578823149204254, -0.4899396598339081, 2.1212074756622314, -1.0149011611938477, -1.7416483163833618, 1.0751601457595825, 0.1769828349351883, -0.025016166269779205, 2.231441020965576, 0.18882082402706146, -0.8151727914810181, 0.41883596777915955, -0.7559045553207397, 0.758479118347168, -0.44938531517982483, 1.3518085479736328, 0.4520072042942047, -1.0886996984481812, 1.595857858657837, -0.35203292965888977, 0.5774696469306946, -0.7599753141403198, -0.49961867928504944, -0.76157546043396, 0.2308199256658554, 1.9320181608200073, -0.32786455750465393, 1.678385615348816, -0.32426196336746216, -1.395686149597168, -1.499047875404358, 0.8726038932800293, 0.4816604256629944, -0.798574686050415, 0.15799714624881744, -0.497470498085022, 0.04386608675122261, -0.23373892903327942, 1.1577671766281128, 1.195949912071228, 0.6983665227890015, -0.22493404150009155, -0.7542319297790527, 0.2457701414823532, 0.020553607493638992, -0.7860042452812195, -1.7578333616256714, -0.40822476148605347, 0.2825453281402588, 0.5082554817199707, -1.210130214691162, 1.7532953023910522, 0.9021605253219604, 1.8130525350570679, 1.0547592639923096, -0.36530596017837524, 1.4660638570785522, 0.07923225313425064, 1.8324308395385742, -0.4854140281677246, 0.6353594660758972, -0.26653262972831726, -1.2175406217575073, 0.8968698978424072, -0.2713121473789215, -2.1833436489105225, -0.6374285221099854, -0.6996065974235535, -0.1130247637629509, -0.6584211587905884, 0.8416968584060669, -0.3455003499984741, -1.415335774421692, 0.1552705019712448, -0.7828280925750732, 0.14679419994354248, -1.0979071855545044, 0.3514818251132965, 0.7164112329483032, -0.6680290102958679, 0.05795098468661308, -0.2520703673362732, -1.1864906549453735, -0.46772393584251404, 0.31841397285461426, 1.8613636493682861, -0.7510427236557007, 0.744731068611145, 1.0919464826583862, -0.685042142868042, 0.03151751309633255, 0.3347287178039551, -0.366056352853775, 0.8231251835823059, -1.0396149158477783, -0.44205668568611145, 1.1367363929748535, -0.17113934457302094, -0.690035343170166, 1.4377188682556152, 0.7573459148406982, -0.9606460928916931, -0.28938740491867065, -0.17280982434749603, -0.8629631400108337, 0.0193437859416008, -1.5840455293655396, -0.18617625534534454, 0.42980480194091797, -1.5197793245315552, -0.423227995634079, -0.22847920656204224, 1.425438404083252, -0.14535704255104065, 1.4819469451904297, -0.2638608515262604, -0.11747097223997116, -0.30403974652290344, -0.3752785623073578, 0.12891358137130737, -0.20354759693145752, -0.6652821898460388, 0.19736455380916595, -0.6227148771286011, 0.36485999822616577, 1.4408868551254272, 0.21852515637874603, -0.024027571082115173, 0.5305272340774536, 1.0736464262008667, 0.31606727838516235, 0.0021794354543089867, -0.9987877011299133, -1.490291953086853, 1.9409183263778687, -1.4668498039245605, 2.0983855724334717, 0.8976635932922363, 0.006726279854774475, -1.6906800270080566, -1.8652673959732056, 1.2551549673080444, 1.2236899137496948, 2.2383062839508057, 0.5985720753669739, 0.4119578003883362, -0.7804195284843445, -0.7082693576812744, 0.38257545232772827, -1.1205987930297852, -0.7415045499801636, 0.12571828067302704, 2.35817813873291, 1.7573022842407227, -0.42007768154144287, -0.2961199879646301, -1.0045503377914429, 1.366628646850586, -0.13265344500541687, 0.20623573660850525, 2.051720380783081, -0.20516258478164673, -1.069921851158142, 1.321808099746704, -2.365752696990967, 0.27237480878829956, 2.071423292160034, 0.33980950713157654, 0.04662385210394859, -1.3118504285812378, -0.6460964679718018, -0.2574685215950012, -0.4549706280231476, -1.2688140869140625, 0.5014408230781555, -0.2264116257429123, -0.7135208249092102, -1.3685773611068726, 0.11508036404848099, -1.1270623207092285, -1.7084791660308838, 0.3031904995441437, 1.9122470617294312, 1.9403845071792603, -0.706112802028656, 1.5236330032348633, -0.4394480884075165, 0.09404751658439636, 1.2962403297424316, 1.3755666017532349, 3.2108166217803955, 1.9582908153533936, -1.2705050706863403, 0.5887404084205627, -0.2723484933376312, -0.4537661075592041, 1.0611737966537476, -1.2216355800628662, 1.0985521078109741, -0.22371944785118103, -1.026358723640442, -1.2382546663284302, 0.9249426126480103, 0.5571539998054504, -0.011732557788491249, -0.5014380812644958, 1.1605576276779175, 0.15433776378631592, 1.4071518182754517, 0.5879037380218506, -0.387929767370224, 0.6672142744064331, -0.35911116003990173, -0.41584375500679016, 1.6003698110580444, 0.19888639450073242, -1.34697425365448, -2.3172738552093506, -0.15189027786254883, -0.7843976616859436, 0.07908205687999725, -0.5805016160011292, -1.1017135381698608, 1.686549425125122, 0.28535839915275574, -1.352837085723877, -0.27540332078933716, -0.28568971157073975, -0.5250639915466309, 2.6854631900787354, -1.4043837785720825, -0.16347898542881012, -1.089081883430481, -0.5289098024368286, 1.720592737197876, -1.2755438089370728, -0.2737724781036377, -1.0407161712646484, -0.5264630317687988, -1.1928318738937378, -0.5327532291412354, -0.06754022091627121, -0.8431716561317444, 0.8560657501220703, 0.23487846553325653, -1.2541236877441406, -0.39107567071914673, -0.716785192489624, 0.9372237920761108, -0.13528546690940857, 0.19772079586982727, 1.9270093441009521, 0.35552769899368286, -0.3834606111049652, 0.6964083909988403, 1.1452523469924927, 0.6415100693702698, -0.5638598203659058, 0.23331372439861298, -0.6176509857177734, 0.21528205275535583, -1.523059606552124, 0.23870407044887543, -2.917191505432129, 0.6919568777084351, -0.035486262291669846, 0.08078005164861679, -0.12301892042160034, -1.396299958229065, 1.0330753326416016, 2.635261297225952, -1.1478272676467896, 0.4702818691730499, 0.36173030734062195, 1.0846956968307495, -1.656935691833496, 0.18723995983600616, -0.37500667572021484, 2.0518136024475098, 0.29932013154029846, 1.340358853340149, -0.3247893750667572, -2.3627123832702637, 0.5255489945411682, -1.2089543342590332, -1.1489458084106445, 0.8316397666931152, -0.7240043878555298, 0.06703916937112808, -1.3628336191177368, -0.15337641537189484, -0.8936142921447754, -1.1939409971237183, 0.8337072730064392, 0.15711042284965515, 0.397879034280777, -0.7057392597198486, 0.2600935995578766, -2.0805158615112305, -1.2425647974014282, -0.29719752073287964, -0.8983440399169922, 0.3986784815788269, -0.2757118046283722, 0.6067230105400085, -0.013561500236392021, 0.027730852365493774, 0.28482910990715027, 1.5750631093978882, 3.295044183731079, 0.09457924962043762, 0.32500165700912476, -0.23422862589359283, -0.8344002366065979, 1.3522545099258423, 0.9013128280639648, -0.027378026396036148, -0.5896489024162292, -1.0909477472305298, 1.2708587646484375, 1.9347223043441772, 0.9588617086410522, 0.04165897145867348, -0.8568301200866699, -0.8634191751480103, -0.19277983903884888, 0.19630862772464752, 0.4820452928543091, 1.0220624208450317, 0.16861963272094727, -0.011003006249666214, 1.3823572397232056, 1.1676547527313232, -0.4151235818862915, 0.285241961479187, -0.8864294290542603, -0.4002262055873871, 0.3620625138282776, 0.2849636673927307, -0.0412774384021759, 0.39700770378112793, -0.976912796497345, -0.3811187446117401, -0.35245099663734436, -0.8893976807594299, -0.8513617515563965, -0.43340614438056946, -0.3688279390335083, 1.7083499431610107, 0.1548600196838379, -0.4122621417045593, -0.01766076125204563, -0.7211104035377502, -0.23264025151729584, -1.1090807914733887, 0.3136509954929352, -0.03963813930749893, -0.14514310657978058, -0.027824725955724716, 1.5730845928192139, -0.7880557775497437, -2.0170793533325195, 0.23061257600784302, 0.20096184313297272, -0.27649393677711487, 0.20735161006450653, 1.8113170862197876, 0.4787256717681885, 1.2797224521636963, 1.2173254489898682, 0.9950116872787476, -0.6228469014167786, -1.1937283277511597, 0.6125485897064209, 1.102606177330017, -1.4945820569992065, 0.8181599378585815, -0.007213182281702757, -0.4542291462421417, 0.7362709045410156, 1.3524582386016846, 0.4808698892593384, -2.1152501106262207, 0.7086372971534729, -1.0210028886795044, 0.6675179600715637, 0.6641151905059814, 0.6715441346168518, 0.3755589723587036, 0.8585214018821716, -1.1187982559204102, -1.1105899810791016, -0.6815635561943054, -0.7295666337013245, 1.9738476276397705, -0.3594781756401062, 0.5689239501953125, -0.052558641880750656, -1.39139986038208, -0.17626389861106873, 0.8058997392654419, 0.3780060410499573, -0.5466515421867371, 0.7624496221542358, -0.722403883934021, -1.096114993095398, -1.2678470611572266, -0.4397425949573517, -1.022628664970398, -0.993036687374115, 0.9680726528167725, 0.871658205986023, 0.2560475170612335, 2.0355160236358643, 0.741101861000061, 0.2328714281320572, -2.5859017372131348, 0.9130609631538391, 0.33334147930145264, -0.0917523205280304, 1.0718907117843628, 0.18466146290302277, 0.9591537714004517, 0.08164425939321518, 0.6948015689849854, -2.5468831062316895, 2.3755016326904297, -0.17307257652282715, 0.6571019291877747, 0.08206205070018768, -0.2012980729341507, 1.093766212463379, 0.48444321751594543, 0.5103783011436462, -1.0199060440063477, 0.7378031015396118, -0.6000129580497742, 1.2359418869018555, 0.9318678975105286, -0.819875180721283, -0.07392017543315887, 1.3984547853469849, 0.3683207631111145, -0.6375477313995361, -0.9073339700698853, -1.0742210149765015, 0.8677145838737488, 1.8286819458007812, -0.009662800468504429, -0.06738605350255966, 0.8851953744888306, 0.7107042074203491, -1.2166372537612915, 0.09521016478538513, -0.7369697093963623, -0.7622063159942627, 1.6221596002578735, 2.024212121963501, -0.21188506484031677, -0.26556387543678284, -0.6974661946296692, -1.2150154113769531, 0.7897093296051025, -0.09512926638126373, 0.1385037750005722, 0.5821728110313416, -0.6113626956939697, 1.0832346677780151, 0.8390520811080933, 0.9046907424926758, 0.12572696805000305, 0.3739122748374939, 0.4718240797519684, -0.29644858837127686, -1.1864373683929443, -0.24655969440937042, -1.146499752998352, -2.6292803287506104, 0.5750135183334351, -0.03712980076670647, -1.3036627769470215, -0.022266125306487083, -1.1824215650558472, 0.7976399660110474, -0.6655499935150146, -1.12956702709198, -1.60052490234375, 0.10300326347351074, -0.11261049658060074, 0.8742306232452393, -1.572684407234192, -0.029446229338645935, 1.246001124382019, 0.8660930395126343, -0.7105405926704407, 0.9197370409965515, 0.18247702717781067, 1.1360758543014526, 0.9304371476173401, -0.34323397278785706, 0.5767691731452942, 0.02548694610595703, -1.3174792528152466, 0.578205943107605, 1.2696092128753662, 0.14889851212501526, 1.566115140914917, -0.546213686466217, 0.039038754999637604, 0.48056745529174805, -0.6304519772529602, -0.4781411290168762, -0.6146901845932007, 0.7397840619087219, 0.10078518092632294, -0.9947683215141296, 0.02123897150158882, -0.13905058801174164, -0.2511456310749054, 0.06953731924295425, -1.4626401662826538, -0.10057138651609421, -0.3601544201374054, -0.5600529909133911, -1.1943894624710083, -0.06602558493614197, 1.3445587158203125, -0.7227205038070679, -0.328981876373291, 0.429243266582489, 0.3561781942844391, 0.5898926258087158, 0.588901698589325, -0.6441076397895813, -0.4522448480129242, -0.17114663124084473, -0.4119113087654114, 0.49821290373802185, 1.428602933883667, 0.024372264742851257, -0.9330748319625854, 0.6818408370018005, -0.5504360198974609, 0.15018504858016968, 1.9919888973236084, 0.008998594246804714, -0.7950736880302429, 0.25296542048454285, -0.7060832977294922, 1.8905731439590454, 1.66941237449646, 1.1353012323379517, -0.13010814785957336, -0.8444769978523254, 0.7969248294830322, -0.4027864336967468, -0.40994682908058167, 0.7679612636566162, 0.3923027515411377, -0.24333146214485168, -1.4037582874298096, 0.5858926177024841, 1.3425801992416382, -0.7993575930595398, -0.7825415730476379, 0.047795917838811874, -0.7524619102478027, 1.0173671245574951, 0.6534011960029602, 0.2869812250137329, 0.2507087290287018, 1.6182398796081543, 0.9106419086456299, -0.3472478687763214, 0.6466068625450134, 0.5760409832000732, -0.26245570182800293, -2.1507084369659424, -1.0494827032089233, 0.38395142555236816, -0.42191359400749207, -1.67026686668396, 1.4512453079223633, -1.2020998001098633, -1.0089080333709717, 0.4911874234676361, 0.04119957983493805, 1.4755162000656128, 0.30143675208091736, 1.5694550275802612, 1.9953439235687256, 0.809687614440918, 0.4731479287147522, 1.2153548002243042, -0.26333701610565186, -0.5147290825843811, 1.8158024549484253, -0.5166955590248108, 0.41727620363235474, 1.05619478225708, -0.245570570230484, -1.0939677953720093, -0.752593994140625, -1.346228837966919, -0.6400695443153381, 1.302100658416748, 0.07459904253482819, -1.1030570268630981, 0.21649619936943054, 1.531365990638733, 0.19641493260860443, -0.31676170229911804, 0.6355210542678833, 0.3793944716453552, -0.8233344554901123, -0.048401761800050735, -0.9118553400039673, 0.5626132488250732, -0.055805522948503494, -0.31074807047843933, 0.38204169273376465, 0.5223302841186523, 1.2849241495132446, 0.022724401205778122, 0.10575247555971146, 1.1480928659439087, -1.4216667413711548, 1.578125, -0.5581801533699036, 0.26573964953422546, -2.4552111625671387, 1.4874491691589355, -0.8365548849105835, 2.002892255783081, -2.542896032333374, 0.4351901412010193, -0.5543677806854248, -0.39251869916915894, 0.3510917127132416, -0.3266023099422455, 0.10110610723495483, -0.18951934576034546, -1.098307728767395, -0.0409395657479763, -0.6435128450393677, 0.6238021850585938, 1.1496881246566772, 1.3300093412399292, -1.187073826789856, -0.14171451330184937, -1.7275663614273071, -0.10705134272575378, -0.7261483669281006, 0.25215426087379456, -2.0439953804016113, -0.05487411096692085, -2.0328848361968994, -2.2567451000213623, -1.3724117279052734, -0.7850862145423889, 0.973355233669281, 0.14923647046089172, -0.8092706799507141, 1.0961686372756958, -0.4275311231613159, -1.7841130495071411, 1.1296101808547974, -2.1607537269592285 ]
https://github.com/huggingface/datasets/issues/3485
skip columns which cannot set to specific format when set_format
You can add columns that you wish to set into `torch` format using `dataset.set_format("torch", ['id', 'abc'])` so that input batch of the transform only contains those columns
**Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error.
1,034
27
skip columns which cannot set to specific format when set_format **Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error. You can add columns that you wish to set into `torch` format using `dataset.set_format("torch", ['id', 'abc'])` so that input batch of the transform only contains those columns
[ -1.184328556060791, -0.9281995296478271, -0.6836172938346863, 1.4754692316055298, -0.164869487285614, -1.273403286933899, 0.24186863005161285, -1.1546696424484253, 1.6853516101837158, -0.8369224667549133, 0.34122464060783386, -1.680001974105835, 0.07856526970863342, -0.5390037894248962, -0.7441668510437012, -0.8320667743682861, -0.25568678975105286, -0.713744580745697, 1.0271509885787964, 2.419095039367676, 1.2065860033035278, -1.3904457092285156, 2.6920325756073, 0.6324188709259033, -0.19275780022144318, -0.9640389084815979, 0.5592477321624756, 0.16420602798461914, -1.0559436082839966, -0.495832234621048, -0.8062129616737366, -0.10820922255516052, -0.5916999578475952, -0.4336700439453125, -0.12325900793075562, 0.4013182520866394, -0.2968207597732544, -0.4242337942123413, -0.5073003172874451, -0.6173581480979919, 0.49924877285957336, -0.5192140936851501, 0.8418998122215271, -0.39661717414855957, 1.8936359882354736, -0.6295468807220459, 0.3337745666503906, 0.6720033288002014, 1.3134654760360718, 0.20547255873680115, -0.07954313606023788, 0.35183000564575195, 0.45263031125068665, -0.09363580495119095, 0.49369117617607117, 1.1408885717391968, 0.5666083097457886, 0.6453174948692322, 0.7473942041397095, -2.2269339561462402, 1.325857162475586, -1.075186848640442, 0.29394763708114624, 1.2247583866119385, -0.9709058403968811, 0.29726970195770264, -1.7746448516845703, -0.15032698214054108, 0.49216964840888977, -2.3477818965911865, 0.3003068268299103, -1.3293606042861938, -0.6603309512138367, 0.862659215927124, 0.34625694155693054, -1.3226176500320435, 0.1762247234582901, -0.40774497389793396, 0.8853896260261536, 0.3193795382976532, 0.9485960602760315, -1.632791519165039, 0.06491073966026306, -0.33851033449172974, 0.08035048842430115, -1.3506041765213013, -1.4386577606201172, 0.6991243958473206, 0.49011221528053284, 0.6762828230857849, -0.09664110839366913, 1.0124266147613525, -1.1599841117858887, 0.8736110925674438, -1.2194628715515137, -1.6054277420043945, -1.347076654434204, -2.1791558265686035, -2.169816732406616, 0.9122229814529419, -0.4660528600215912, -0.49626338481903076, 2.0218122005462646, -0.940789520740509, -1.7492713928222656, 1.204282283782959, 0.33410727977752686, -0.11976581066846848, 2.3935322761535645, 0.15569491684436798, -0.5539708137512207, 0.545883059501648, -0.8983713388442993, 0.922908365726471, -0.48517197370529175, 1.4630177021026611, 0.4025996923446655, -1.032793641090393, 1.6953182220458984, -0.41209977865219116, 0.6454923748970032, -0.6519035696983337, -0.7364233732223511, -0.8805824518203735, 0.4682965576648712, 2.0077741146087646, -0.22054211795330048, 1.5064746141433716, -0.44657695293426514, -1.6329184770584106, -1.6007269620895386, 1.0015157461166382, 0.3742198944091797, -0.9265016913414001, 0.14647576212882996, -0.423930823802948, 0.20429781079292297, -0.06968015432357788, 1.2369709014892578, 1.2970954179763794, 0.7921143174171448, -0.23852160573005676, -0.8300866484642029, 0.04614093899726868, -0.18727977573871613, -0.6590121984481812, -1.8606009483337402, -0.3796798288822174, 0.13174989819526672, 0.543840229511261, -1.1746666431427002, 1.6787470579147339, 1.0660021305084229, 1.938085913658142, 0.9597193002700806, -0.33713632822036743, 1.502590298652649, 0.02511524222791195, 1.8854880332946777, -0.46828994154930115, 0.6616157293319702, -0.4139258861541748, -1.025950312614441, 0.8904925584793091, -0.2989389896392822, -1.9552254676818848, -0.9391059875488281, -0.9306453466415405, -0.2304903119802475, -0.843383252620697, 0.9226047992706299, -0.3187653422355652, -1.2667014598846436, 0.15835465490818024, -0.6115975379943848, 0.1646798849105835, -1.1595343351364136, 0.3444601893424988, 0.888105034828186, -0.6935566067695618, 0.01694534718990326, -0.1858404278755188, -1.2901380062103271, -0.5034761428833008, 0.26734960079193115, 1.999799370765686, -0.7211757898330688, 0.877832293510437, 0.9767071604728699, -0.7261885404586792, 0.008835501968860626, 0.19341495633125305, -0.3467836081981659, 0.6384735107421875, -1.0773444175720215, -0.5095325708389282, 1.056347370147705, -0.1611713171005249, -0.526768147945404, 1.52608060836792, 0.6874760389328003, -0.9947396516799927, -0.05171049386262894, -0.1790103316307068, -0.7277345657348633, 0.03880010545253754, -1.5544524192810059, -0.1503848135471344, 0.22032050788402557, -1.508514404296875, -0.5804446935653687, -0.14611028134822845, 1.2210029363632202, -0.08501454442739487, 1.1689084768295288, -0.2949219346046448, -0.3749901354312897, -0.39212265610694885, -0.3118571639060974, 0.11845388263463974, -0.25271472334861755, -0.7168229818344116, 0.18763259053230286, -0.7340461015701294, 0.42625144124031067, 1.581333875656128, 0.31686851382255554, 0.13264873623847961, 0.5554149746894836, 1.1081241369247437, 0.3700184226036072, 0.06288353353738785, -0.8900461792945862, -1.5268644094467163, 1.9375770092010498, -1.5566893815994263, 2.013629674911499, 0.6689531207084656, -0.12446910887956619, -1.8560558557510376, -1.8855170011520386, 1.3554903268814087, 1.2687633037567139, 2.2518434524536133, 0.6403446793556213, 0.319163054227829, -0.8309202194213867, -0.5608181953430176, 0.1893446296453476, -1.1168047189712524, -0.5649334192276001, 0.18859462440013885, 2.27736234664917, 1.7894867658615112, -0.7223685383796692, -0.1016179770231247, -0.9608105421066284, 1.4381436109542847, -0.28928282856941223, 0.28114163875579834, 1.9976164102554321, -0.42005327343940735, -1.1185157299041748, 1.2834692001342773, -2.300351142883301, 0.1754654347896576, 2.0388553142547607, 0.4381578862667084, 0.08577017486095428, -1.3254756927490234, -0.5385254621505737, -0.2556319832801819, -0.44710245728492737, -1.3305550813674927, 0.4582710564136505, -0.20093311369419098, -0.7854565978050232, -1.4000641107559204, 0.20758353173732758, -1.185085415840149, -1.6123706102371216, 0.4707849621772766, 1.919293999671936, 2.058744430541992, -0.6517024040222168, 1.556485652923584, -0.23155921697616577, 0.1298033595085144, 1.2417601346969604, 1.130993366241455, 2.876307487487793, 1.8953686952590942, -1.0290594100952148, 0.5846225023269653, -0.2451775074005127, -0.6502782702445984, 1.1579604148864746, -1.009374976158142, 1.3258986473083496, -0.2637845575809479, -1.1063116788864136, -1.2597439289093018, 0.8497251868247986, 0.40177997946739197, 0.04782315343618393, -0.5699345469474792, 1.2149516344070435, 0.1523064374923706, 1.3435587882995605, 0.5343877673149109, -0.3082261085510254, 0.6256182193756104, -0.4956110119819641, -0.5259503126144409, 1.5882407426834106, 0.3174245357513428, -1.512226939201355, -2.394320487976074, -0.1315818428993225, -0.7573433518409729, 0.015868892893195152, -0.4315687417984009, -1.1000826358795166, 1.6704015731811523, 0.336863249540329, -1.173222303390503, -0.2700358033180237, -0.3201958239078522, -0.6700184941291809, 2.744413137435913, -1.3667062520980835, -0.3161138892173767, -0.8532657623291016, -0.5917860269546509, 1.8053224086761475, -1.2578401565551758, -0.1140231266617775, -1.0723577737808228, -0.5273139476776123, -1.1464800834655762, -0.5126049518585205, -0.03623504191637039, -0.918493926525116, 0.9856893420219421, 0.2693629860877991, -1.1688580513000488, -0.4235597550868988, -0.875718355178833, 0.7895707488059998, -0.11601126939058304, 0.2700711786746979, 1.8630070686340332, 0.3425711691379547, -0.4652421474456787, 0.881076455116272, 1.271957516670227, 0.5790417790412903, -0.6889737248420715, 0.33753469586372375, -0.590538740158081, 0.25465503334999084, -1.1968817710876465, 0.30679234862327576, -2.902742624282837, 0.47727590799331665, -0.07887649536132812, -0.06114250421524048, 0.053086794912815094, -1.4268505573272705, 1.1028075218200684, 2.474989414215088, -1.1966302394866943, 0.5568780899047852, 0.24520696699619293, 1.257446527481079, -1.4296599626541138, 0.33065497875213623, -0.49363553524017334, 2.0919759273529053, 0.22285251319408417, 1.0703893899917603, -0.6944112777709961, -2.1916792392730713, 0.6945568919181824, -1.2394336462020874, -1.3959431648254395, 0.52032870054245, -1.0855882167816162, 0.14694340527057648, -1.5225917100906372, -0.21444086730480194, -0.9087241291999817, -1.2403031587600708, 0.8299763202667236, 0.22831614315509796, 0.388747900724411, -0.5033524036407471, 0.2592988610267639, -2.2530152797698975, -1.5472228527069092, -0.2546437084674835, -0.9415775537490845, 0.5306099057197571, -0.4968680143356323, 0.7310346961021423, -0.13807247579097748, 0.13257873058319092, 0.2331358790397644, 1.507851243019104, 3.313401699066162, 0.033306434750556946, 0.4711010754108429, -0.38510361313819885, -0.9045479893684387, 1.5014106035232544, 1.0554957389831543, -0.05723268538713455, -0.6219319105148315, -1.0239146947860718, 1.2287633419036865, 1.9442039728164673, 0.9397870302200317, -0.15767914056777954, -0.8175360560417175, -0.4280011057853699, -0.1968192607164383, 0.27710920572280884, 0.5676113367080688, 1.0181671380996704, 0.09630732238292694, 0.057666897773742676, 1.2829474210739136, 1.181815505027771, -0.5841488838195801, 0.41838815808296204, -0.8251263499259949, -0.34830793738365173, 0.4291115999221802, 0.26148802042007446, -0.037446629256010056, 0.3624751567840576, -0.9374461770057678, -0.3758045732975006, -0.27261483669281006, -0.9175141453742981, -0.784753680229187, -0.465303897857666, -0.4338650703430176, 1.7538467645645142, 0.12959596514701843, -0.4872194528579712, -0.1151898130774498, -0.7363297343254089, -0.06631334125995636, -1.064016580581665, 0.11974697560071945, -0.0313088595867157, -0.1903678923845291, -0.0770546942949295, 1.8512929677963257, -1.0908286571502686, -1.990928053855896, 0.281051367521286, 0.30003830790519714, -0.1297861635684967, 0.16926711797714233, 1.4875521659851074, 0.5692810416221619, 1.581573724746704, 1.2611638307571411, 0.9342672228813171, -0.6547460556030273, -1.4280450344085693, 0.5836967825889587, 0.9935002326965332, -1.3210899829864502, 0.7185695171356201, 0.13705317676067352, -0.41710346937179565, 0.7425066828727722, 1.1726877689361572, 0.48437657952308655, -2.026538848876953, 0.8729729652404785, -1.052858829498291, 1.0348503589630127, 0.7431062459945679, 0.7393240332603455, 0.29788628220558167, 0.8932855129241943, -1.1910490989685059, -1.1946696043014526, -0.9309507012367249, -0.7630367279052734, 2.090750217437744, -0.3102266490459442, 0.5868492126464844, 0.05361081659793854, -1.2860760688781738, -0.004718671087175608, 0.6479684710502625, 0.520305335521698, -0.28588205575942993, 0.7138267159461975, -0.5489031076431274, -1.0093355178833008, -1.5130234956741333, -0.464533269405365, -1.0808566808700562, -1.0199754238128662, 1.1113067865371704, 0.746979296207428, 0.2560204565525055, 1.883021354675293, 0.6057084798812866, 0.2557181119918823, -2.5408082008361816, 1.0171011686325073, 0.35516321659088135, -0.04403261840343475, 0.762482225894928, 0.504379391670227, 1.0181748867034912, 0.02857056073844433, 0.5061157941818237, -2.471235752105713, 2.3056540489196777, -0.26975104212760925, 0.6645550727844238, 0.011034531518816948, -0.03349204361438751, 1.0916483402252197, 0.5254634618759155, 0.4825972318649292, -1.0473859310150146, 0.5080289244651794, -0.5288258790969849, 1.2889795303344727, 0.9986352920532227, -0.6690702438354492, -0.009871317073702812, 1.3984652757644653, 0.5551117658615112, -0.525280237197876, -0.9871150851249695, -0.9478312730789185, 0.9895695447921753, 1.782725214958191, -0.15108603239059448, -0.06725403666496277, 0.7250975370407104, 0.5681187510490417, -1.3223297595977783, 0.033901557326316833, -0.8117915987968445, -0.6732267737388611, 1.6113511323928833, 2.065345048904419, -0.17218895256519318, -0.09277711808681488, -0.7779054045677185, -1.1996726989746094, 0.857537031173706, -0.10476261377334595, 0.12760017812252045, 0.6542307734489441, -0.6121175289154053, 1.102554440498352, 0.7866596579551697, 0.9139363169670105, 0.09902605414390564, 0.44884154200553894, 0.46564561128616333, -0.22069847583770752, -1.0708544254302979, -0.3215807378292084, -1.1416041851043701, -2.7099010944366455, 0.34906867146492004, -0.40851905941963196, -1.2605235576629639, -0.14781317114830017, -0.9763321876525879, 0.9294521808624268, -0.5016043782234192, -1.1357717514038086, -1.5767379999160767, -0.004242633935064077, 0.09842313081026077, 0.9486867785453796, -1.6466537714004517, -0.16442134976387024, 1.2239292860031128, 0.9550763964653015, -0.8348870277404785, 1.004055142402649, 0.3633941113948822, 1.065837025642395, 0.6670674681663513, -0.5876110196113586, 0.5604893565177917, -0.08774040639400482, -1.3409500122070312, 0.6369056105613708, 1.2823235988616943, 0.07942884415388107, 1.3522287607192993, -0.5081421136856079, -0.031502023339271545, 0.46744289994239807, -0.5570788979530334, -0.5246863961219788, -0.49262529611587524, 0.6778507232666016, 0.10958055406808853, -0.8089792728424072, 0.0055998992174863815, 0.02465088851749897, -0.2914094030857086, 0.2664468586444855, -1.412392258644104, -0.33795011043548584, -0.5021657943725586, -0.6399272680282593, -1.3598394393920898, -0.044807299971580505, 1.2446143627166748, -0.6626370549201965, -0.06860096752643585, 0.5354236960411072, 0.4276646375656128, 0.5758140087127686, 0.5610225200653076, -0.7325973510742188, -0.35530102252960205, -0.27993932366371155, -0.2898256480693817, 0.33338022232055664, 1.4051628112792969, -0.17552347481250763, -1.0697540044784546, 0.7039681673049927, -0.2583887279033661, -0.04249205440282822, 1.9867712259292603, 0.04435095191001892, -0.7445340752601624, 0.2965157926082611, -0.7948490381240845, 1.8077771663665771, 1.5598728656768799, 1.194549798965454, -0.0654204711318016, -0.7956809401512146, 0.6295346021652222, -0.1937585473060608, -0.3998068869113922, 0.7244243621826172, 0.506656289100647, -0.2524452209472656, -1.4790191650390625, 0.7634073495864868, 1.3331578969955444, -0.8231679201126099, -0.7768290042877197, 0.05267036706209183, -0.7643936276435852, 1.1737996339797974, 0.7041650414466858, 0.5071332454681396, 0.3174230754375458, 1.5239509344100952, 0.7299920916557312, -0.4853619337081909, 0.48403361439704895, 0.5418857932090759, -0.03197608143091202, -2.087285041809082, -1.2334493398666382, 0.34642329812049866, -0.4803007245063782, -1.6033778190612793, 1.4756025075912476, -1.1334770917892456, -0.9361509680747986, 0.6340936422348022, 0.16542398929595947, 1.469274640083313, 0.4575861990451813, 1.5670288801193237, 2.0755391120910645, 0.8915751576423645, 0.41325169801712036, 1.370868444442749, -0.30385565757751465, -0.5919554233551025, 1.932586669921875, -0.3290557861328125, 0.4249785542488098, 1.0248050689697266, -0.16492831707000732, -0.9812631607055664, -0.684293270111084, -1.4252650737762451, -0.5480259656906128, 1.0549862384796143, 0.09263040870428085, -1.2369556427001953, 0.11488714069128036, 1.486095905303955, 0.19100897014141083, -0.3331108093261719, 0.5329985618591309, 0.43065696954727173, -0.9065079092979431, -0.17814123630523682, -0.9321489930152893, 0.624983012676239, -0.26240262389183044, -0.3693859875202179, 0.4680251181125641, 0.4889509379863739, 1.270565152168274, -0.12536075711250305, 0.1489444375038147, 1.038740634918213, -1.5011727809906006, 1.4635193347930908, -0.6234960556030273, 0.13603384792804718, -2.249784231185913, 1.438152551651001, -0.6803069710731506, 1.995885968208313, -2.746246576309204, 0.42647498846054077, -0.6855019330978394, -0.3594006299972534, 0.37414881587028503, -0.24054618179798126, 0.1644151657819748, -0.13885419070720673, -1.1562861204147339, 0.1277933567762375, -0.6650526523590088, 0.4400758445262909, 1.1457451581954956, 1.190158724784851, -1.0205050706863403, -0.2620754539966583, -1.564196228981018, -0.056344300508499146, -0.6625688672065735, 0.33461880683898926, -2.154214382171631, -0.22624213993549347, -1.948107123374939, -2.1308178901672363, -1.3270670175552368, -0.8488525152206421, 1.1938705444335938, 0.07186827063560486, -0.8885985612869263, 1.2309609651565552, -0.3552529811859131, -1.667516827583313, 1.0253682136535645, -2.018638849258423 ]
https://github.com/huggingface/datasets/issues/3485
skip columns which cannot set to specific format when set_format
Sorry, I miss `output_all_columns` args and thought after `dataset.set_format("torch", columns=columns)` I can only get specific columns I assigned.
**Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error.
1,034
18
skip columns which cannot set to specific format when set_format **Is your feature request related to a problem? Please describe.** When using `dataset.set_format("torch")`, I must make sure every columns in datasets can convert to `torch`, however, sometimes I want to keep some string columns. **Describe the solution you'd like** skip columns which cannot set to specific format when set_format instead of raise an error. Sorry, I miss `output_all_columns` args and thought after `dataset.set_format("torch", columns=columns)` I can only get specific columns I assigned.
[ -1.195508360862732, -0.9193515181541443, -0.6674471497535706, 1.385591983795166, -0.19758717715740204, -1.2915507555007935, 0.28667742013931274, -1.168405294418335, 1.6802153587341309, -0.900303304195404, 0.3552590608596802, -1.6504584550857544, 0.13588881492614746, -0.5177924633026123, -0.7490358948707581, -0.7886137962341309, -0.24580268561840057, -0.7449811100959778, 1.0494893789291382, 2.367560625076294, 1.2280182838439941, -1.3770244121551514, 2.688969135284424, 0.5655916929244995, -0.24798360466957092, -1.0000734329223633, 0.5548075437545776, 0.13714338839054108, -1.1013199090957642, -0.4392850399017334, -0.768750011920929, -0.16353502869606018, -0.5665680170059204, -0.45921215415000916, -0.10668672621250153, 0.4308421015739441, -0.2503831684589386, -0.4609227776527405, -0.42544665932655334, -0.6289044618606567, 0.4908239543437958, -0.4508812427520752, 0.8020375967025757, -0.37870559096336365, 1.8864541053771973, -0.6724462509155273, 0.4040099084377289, 0.707824170589447, 1.3218094110488892, 0.21830245852470398, -0.07967722415924072, 0.31710585951805115, 0.4928017556667328, -0.04402145370841026, 0.4849420189857483, 1.1062793731689453, 0.5051478147506714, 0.6845698952674866, 0.6972063779830933, -2.2406911849975586, 1.330277681350708, -1.0644125938415527, 0.3178784251213074, 1.2379599809646606, -0.9419400095939636, 0.19211192429065704, -1.782151460647583, -0.19106093049049377, 0.4998692572116852, -2.3383493423461914, 0.2719056308269501, -1.3640110492706299, -0.6387118697166443, 0.9165663123130798, 0.3438567519187927, -1.3407989740371704, 0.11501221358776093, -0.4346868097782135, 0.8000532388687134, 0.38681796193122864, 0.9631174206733704, -1.599816083908081, 0.007971848361194134, -0.36245501041412354, 0.09893981367349625, -1.3870012760162354, -1.394255518913269, 0.6686062216758728, 0.524738073348999, 0.6154338121414185, -0.03427071124315262, 0.9574971199035645, -1.1553094387054443, 0.899808406829834, -1.215025782585144, -1.600212812423706, -1.383410930633545, -2.19364595413208, -2.213253974914551, 0.9126303195953369, -0.4664863049983978, -0.4678342640399933, 1.9645121097564697, -0.9634069800376892, -1.7324957847595215, 1.2115745544433594, 0.2387489229440689, -0.06372610479593277, 2.3751237392425537, 0.20240789651870728, -0.535692572593689, 0.5547114014625549, -0.8868057727813721, 0.8973817825317383, -0.4327506124973297, 1.3866337537765503, 0.4585748612880707, -1.0817904472351074, 1.634618878364563, -0.3314027488231659, 0.6337667107582092, -0.5960986614227295, -0.7330643534660339, -0.8471605777740479, 0.4360280930995941, 2.014087438583374, -0.19988198578357697, 1.5137783288955688, -0.4474794268608093, -1.6747567653656006, -1.587890863418579, 0.9849491119384766, 0.39675217866897583, -0.876338005065918, 0.1708906888961792, -0.5020396709442139, 0.18172064423561096, -0.03336908668279648, 1.1928199529647827, 1.3526378870010376, 0.8543209433555603, -0.2669368088245392, -0.7624378204345703, 0.08020863682031631, -0.14765742421150208, -0.7509806156158447, -1.8889837265014648, -0.36602795124053955, 0.1221960186958313, 0.5851613879203796, -1.134840726852417, 1.7131881713867188, 1.1063355207443237, 1.9283219575881958, 0.9612195491790771, -0.31031447649002075, 1.441375970840454, 0.06479860842227936, 1.8884625434875488, -0.43953990936279297, 0.6992406845092773, -0.38363170623779297, -0.9907839894294739, 0.9566710591316223, -0.286856085062027, -1.9731279611587524, -0.9482234120368958, -0.8540744781494141, -0.20444756746292114, -0.8235680460929871, 0.879008948802948, -0.24764440953731537, -1.365233063697815, 0.12686759233474731, -0.6435301303863525, 0.2010250836610794, -1.1724693775177002, 0.353850781917572, 0.8168721795082092, -0.715679407119751, -0.03017239272594452, -0.19217228889465332, -1.2431226968765259, -0.5444083213806152, 0.20736859738826752, 1.964411973953247, -0.7643056511878967, 0.9846651554107666, 0.9502606987953186, -0.7047387361526489, 0.02404293417930603, 0.184832364320755, -0.3724742531776428, 0.6633397936820984, -1.094562292098999, -0.4168570637702942, 1.0653893947601318, -0.19353315234184265, -0.5332445502281189, 1.587683081626892, 0.7101343870162964, -0.9953327178955078, -0.03445347025990486, -0.18870487809181213, -0.7465305924415588, 0.03670258820056915, -1.5511903762817383, -0.13202498853206635, 0.241140678524971, -1.52338707447052, -0.5712855458259583, -0.11416469514369965, 1.2255733013153076, -0.10410081595182419, 1.196337342262268, -0.32322385907173157, -0.3903457522392273, -0.4368210732936859, -0.2536843717098236, 0.12255842983722687, -0.19452473521232605, -0.686450719833374, 0.22177709639072418, -0.793336808681488, 0.45710673928260803, 1.6015102863311768, 0.2915218472480774, 0.1345355063676834, 0.4513195753097534, 1.1205086708068848, 0.37531858682632446, 0.08349036425352097, -0.8541133999824524, -1.5389018058776855, 1.9655016660690308, -1.6345815658569336, 2.0059545040130615, 0.6281349658966064, -0.16553527116775513, -1.841152548789978, -1.9045398235321045, 1.3060071468353271, 1.2837746143341064, 2.2346014976501465, 0.5676869750022888, 0.3135639727115631, -0.7610859274864197, -0.5998309850692749, 0.21666356921195984, -1.1508204936981201, -0.5474565625190735, 0.17457380890846252, 2.2134649753570557, 1.699719786643982, -0.7763301134109497, -0.10247275233268738, -0.9713513851165771, 1.371412754058838, -0.22786225378513336, 0.31133100390434265, 2.0724456310272217, -0.3960988223552704, -1.1515016555786133, 1.3364187479019165, -2.320223569869995, 0.20946325361728668, 2.045596122741699, 0.40054696798324585, 0.11152058839797974, -1.3258883953094482, -0.5265776515007019, -0.22398556768894196, -0.48227229714393616, -1.3468327522277832, 0.518631637096405, -0.11820580065250397, -0.8098932504653931, -1.3423736095428467, 0.18371886014938354, -1.1895617246627808, -1.6954594850540161, 0.445822536945343, 1.88374662399292, 2.075174570083618, -0.636376678943634, 1.5028984546661377, -0.24811218678951263, 0.12009644508361816, 1.2133996486663818, 1.1370790004730225, 2.832789421081543, 1.825573205947876, -1.0442898273468018, 0.6528847813606262, -0.2452431470155716, -0.6795495748519897, 1.169351577758789, -1.011225938796997, 1.3293355703353882, -0.21780431270599365, -1.106636643409729, -1.2744923830032349, 0.8539518117904663, 0.39537060260772705, 0.1297743320465088, -0.49755898118019104, 1.1884013414382935, 0.21382784843444824, 1.3778619766235352, 0.5351829528808594, -0.3035835921764374, 0.6553919911384583, -0.5068015456199646, -0.4759822487831116, 1.5784709453582764, 0.36175206303596497, -1.5505012273788452, -2.4254908561706543, -0.14003752171993256, -0.7837901711463928, 0.07444107532501221, -0.4272212088108063, -1.1066287755966187, 1.6677387952804565, 0.33901938796043396, -1.1426340341567993, -0.3142520487308502, -0.31273603439331055, -0.6387065649032593, 2.7353758811950684, -1.2969478368759155, -0.2822088301181793, -0.7655898928642273, -0.6927821040153503, 1.8252146244049072, -1.3051780462265015, -0.09118496626615524, -1.1399226188659668, -0.5094683766365051, -1.1750030517578125, -0.49490875005722046, 0.02486807107925415, -0.9644782543182373, 0.9458303451538086, 0.18697653710842133, -1.159024953842163, -0.42884698510169983, -0.8587943315505981, 0.7542960047721863, -0.09156255424022675, 0.28849804401397705, 1.7770965099334717, 0.32226476073265076, -0.440521776676178, 0.8709263205528259, 1.2486019134521484, 0.5729119777679443, -0.6611842513084412, 0.29034751653671265, -0.5686631798744202, 0.22385644912719727, -1.1553306579589844, 0.3081200122833252, -2.902498245239258, 0.5033641457557678, -0.050429485738277435, -0.044681381434202194, -0.041577890515327454, -1.4597126245498657, 1.1505749225616455, 2.4968221187591553, -1.1600967645645142, 0.5286446213722229, 0.24994175136089325, 1.23642897605896, -1.3810445070266724, 0.3621526062488556, -0.4328173100948334, 2.1395914554595947, 0.2894524335861206, 1.1727931499481201, -0.6413090825080872, -2.242885112762451, 0.711138129234314, -1.2498023509979248, -1.3462005853652954, 0.5688495635986328, -0.996570348739624, 0.12194150686264038, -1.52674400806427, -0.25200897455215454, -0.8961586952209473, -1.1614890098571777, 0.7510247826576233, 0.2242380976676941, 0.42059072852134705, -0.5331159830093384, 0.26537421345710754, -2.3148903846740723, -1.5013242959976196, -0.22871744632720947, -0.9403409361839294, 0.5204793214797974, -0.4884205162525177, 0.6566252112388611, -0.11615628749132156, 0.15765856206417084, 0.26238274574279785, 1.4953495264053345, 3.4183199405670166, 0.07386957854032516, 0.45632481575012207, -0.383960485458374, -0.9226825833320618, 1.5733206272125244, 1.0662095546722412, -0.061077993363142014, -0.633007824420929, -0.9403293132781982, 1.1915148496627808, 1.9575855731964111, 0.9247264862060547, -0.16319765150547028, -0.8556638956069946, -0.3897440731525421, -0.285946249961853, 0.26567551493644714, 0.5991123914718628, 1.060721516609192, 0.09867814183235168, 0.1071111261844635, 1.2873189449310303, 1.154465913772583, -0.6220145225524902, 0.46198228001594543, -0.8373756408691406, -0.34113800525665283, 0.3575337529182434, 0.3183659315109253, 0.01838529109954834, 0.40703684091567993, -0.921088457107544, -0.3140896260738373, -0.23826976120471954, -0.9787879586219788, -0.8013114333152771, -0.5029215216636658, -0.4900796413421631, 1.7299882173538208, 0.08302686363458633, -0.43525072932243347, -0.09386610984802246, -0.7617906332015991, -0.06565872579813004, -1.0738037824630737, 0.12124918401241302, -0.023540852591395378, -0.1509932279586792, -0.08374433219432831, 1.8945907354354858, -1.0231844186782837, -1.937881588935852, 0.2542867660522461, 0.34221991896629333, -0.19364865124225616, 0.1443939208984375, 1.477690577507019, 0.5387148857116699, 1.585105299949646, 1.2698122262954712, 0.9425735473632812, -0.597534716129303, -1.4206609725952148, 0.6538922190666199, 0.9663696885108948, -1.3328315019607544, 0.658061146736145, 0.13522468507289886, -0.40289807319641113, 0.7515701651573181, 1.1771948337554932, 0.5370514988899231, -2.031233549118042, 0.8744251728057861, -1.0380456447601318, 1.0117368698120117, 0.7170079350471497, 0.703227698802948, 0.3216819763183594, 0.8808389902114868, -1.2042475938796997, -1.1404926776885986, -0.8980991244316101, -0.8192788362503052, 2.043567180633545, -0.33990350365638733, 0.5870120525360107, 0.03758418932557106, -1.2628422975540161, -0.02947591245174408, 0.6479459404945374, 0.5145893692970276, -0.29936835169792175, 0.6728028059005737, -0.5216331481933594, -0.9770835638046265, -1.5100116729736328, -0.44537168741226196, -1.1244304180145264, -1.0390028953552246, 1.0903916358947754, 0.7163245677947998, 0.2359638661146164, 1.8307641744613647, 0.6094483733177185, 0.30499526858329773, -2.553279399871826, 0.9966409802436829, 0.3609829545021057, -0.039433568716049194, 0.7900534868240356, 0.42435070872306824, 1.0831689834594727, 0.021248944103717804, 0.5914656519889832, -2.5273404121398926, 2.3692851066589355, -0.2866823673248291, 0.6262915730476379, 0.05340621992945671, -0.10372236371040344, 1.1372125148773193, 0.6403326988220215, 0.47415322065353394, -1.1057837009429932, 0.5737589597702026, -0.5836041569709778, 1.2857232093811035, 0.9493545889854431, -0.6572085022926331, -0.054079875349998474, 1.3170086145401, 0.5256245732307434, -0.45219674706459045, -0.9292061924934387, -0.9578104615211487, 0.9727736115455627, 1.731117606163025, -0.20677807927131653, -0.03739429637789726, 0.678604006767273, 0.6244614720344543, -1.2905288934707642, -0.05684944987297058, -0.7646652460098267, -0.6813697814941406, 1.5764763355255127, 2.131239652633667, -0.14583569765090942, -0.11554302275180817, -0.7301841378211975, -1.215970516204834, 0.863394021987915, -0.1616651713848114, 0.13448554277420044, 0.6393368244171143, -0.6051435470581055, 1.130886435508728, 0.7588905692100525, 0.978422999382019, 0.08763575553894043, 0.4211288094520569, 0.37963834404945374, -0.129934623837471, -1.0807979106903076, -0.4057239890098572, -1.2099937200546265, -2.7260994911193848, 0.39581242203712463, -0.4898739457130432, -1.3388317823410034, -0.1686810702085495, -0.9570308327674866, 0.8798758387565613, -0.5998770594596863, -1.1123696565628052, -1.5900793075561523, -0.01607508771121502, 0.005175069905817509, 0.9260267019271851, -1.6329089403152466, -0.18830040097236633, 1.2327665090560913, 0.9054360389709473, -0.7955958247184753, 1.0610342025756836, 0.3427084684371948, 1.0225590467453003, 0.6677254438400269, -0.5448919534683228, 0.612414538860321, -0.055709391832351685, -1.296806812286377, 0.6675875186920166, 1.2745050191879272, 0.033137090504169464, 1.4352174997329712, -0.46880680322647095, 0.03725134953856468, 0.47940483689308167, -0.5658626556396484, -0.5902341604232788, -0.4810008406639099, 0.6965710520744324, 0.13936999440193176, -0.9052308797836304, 0.00042515993118286133, -0.011752024292945862, -0.27195680141448975, 0.2885379493236542, -1.4173909425735474, -0.30802446603775024, -0.5466079711914062, -0.6895621418952942, -1.3253512382507324, -0.015682581812143326, 1.2833175659179688, -0.6782197952270508, -0.07131250947713852, 0.48087215423583984, 0.43401557207107544, 0.5857003927230835, 0.5794186592102051, -0.7490742206573486, -0.3521907925605774, -0.32358577847480774, -0.27467092871665955, 0.377631276845932, 1.416718602180481, -0.14395450055599213, -1.0433155298233032, 0.6705994606018066, -0.26902371644973755, -0.018254868686199188, 2.030937910079956, 0.1059192568063736, -0.7337064743041992, 0.3477616608142853, -0.8186459541320801, 1.8519710302352905, 1.5267330408096313, 1.2405493259429932, -0.03658579662442207, -0.7490853667259216, 0.5774035453796387, -0.19233889877796173, -0.3889569044113159, 0.771747887134552, 0.519763708114624, -0.22920380532741547, -1.4694430828094482, 0.8148607015609741, 1.3300164937973022, -0.7812032103538513, -0.8047961592674255, -0.01649424061179161, -0.7741637229919434, 1.187762975692749, 0.7034547924995422, 0.5089687705039978, 0.3027718663215637, 1.4721524715423584, 0.7156800627708435, -0.4610261619091034, 0.46242281794548035, 0.5050293803215027, -0.07472044229507446, -2.039045572280884, -1.2308951616287231, 0.40283456444740295, -0.5227013826370239, -1.5806885957717896, 1.4904506206512451, -1.0957790613174438, -0.9573936462402344, 0.6381423473358154, 0.09292030334472656, 1.4501241445541382, 0.5216492414474487, 1.6763848066329956, 2.042349338531494, 0.9381599426269531, 0.36490342020988464, 1.3305631875991821, -0.3208613097667694, -0.6525896191596985, 1.942445993423462, -0.3303341567516327, 0.3585141599178314, 1.0681374073028564, -0.16316461563110352, -0.9099135398864746, -0.7425230145454407, -1.3555964231491089, -0.5581495761871338, 1.0998132228851318, 0.14926466345787048, -1.2473686933517456, 0.0926075205206871, 1.5057294368743896, 0.23160816729068756, -0.31160828471183777, 0.5561568140983582, 0.44550660252571106, -0.9450907111167908, -0.20699362456798553, -0.9662582874298096, 0.5779417753219604, -0.31376853585243225, -0.45013684034347534, 0.3925974369049072, 0.5275833606719971, 1.2884323596954346, -0.24265223741531372, 0.12429746985435486, 1.0640678405761719, -1.533562183380127, 1.4401381015777588, -0.6206278800964355, 0.11136092245578766, -2.1750595569610596, 1.436842918395996, -0.6705513000488281, 2.008195400238037, -2.7424237728118896, 0.3595736622810364, -0.6599239110946655, -0.3986644446849823, 0.3204478621482849, -0.25484541058540344, 0.1878049075603485, -0.15387700498104095, -1.1780034303665161, 0.07130425423383713, -0.7098878026008606, 0.5086156129837036, 1.1431447267532349, 1.1860302686691284, -1.0220915079116821, -0.2672969400882721, -1.5503309965133667, -0.09568473696708679, -0.6326304078102112, 0.28033140301704407, -2.142228126525879, -0.2609952688217163, -1.9919551610946655, -2.045833110809326, -1.324589490890503, -0.9163933396339417, 1.17244291305542, 0.12523789703845978, -0.8295199871063232, 1.1409083604812622, -0.37952521443367004, -1.6510887145996094, 1.0299397706985474, -2.06203031539917 ]
https://github.com/huggingface/datasets/issues/3484
make shape verification to use ArrayXD instead of nested lists for map
Hi! Yes, this makes sense for numeric values, but first I have to finish https://github.com/huggingface/datasets/pull/3336 because currently ArrayXD only allows the first dimension to be dynamic.
As describe in https://github.com/huggingface/datasets/issues/2005#issuecomment-793716753 and mentioned by @mariosasko in [image feature example](https://colab.research.google.com/drive/1mIrTnqTVkWLJWoBzT1ABSe-LFelIep1c#scrollTo=ow3XHDvf2I0B&line=1&uniqifier=1), IMO make shape verifcaiton to use ArrayXD instead of nested lists for map can help user reduce unnecessary cast. I notice datasets have done something special for `input_ids` and `attention_mask` which is also unnecessary after this feature added.
1,035
26
make shape verification to use ArrayXD instead of nested lists for map As describe in https://github.com/huggingface/datasets/issues/2005#issuecomment-793716753 and mentioned by @mariosasko in [image feature example](https://colab.research.google.com/drive/1mIrTnqTVkWLJWoBzT1ABSe-LFelIep1c#scrollTo=ow3XHDvf2I0B&line=1&uniqifier=1), IMO make shape verifcaiton to use ArrayXD instead of nested lists for map can help user reduce unnecessary cast. I notice datasets have done something special for `input_ids` and `attention_mask` which is also unnecessary after this feature added. Hi! Yes, this makes sense for numeric values, but first I have to finish https://github.com/huggingface/datasets/pull/3336 because currently ArrayXD only allows the first dimension to be dynamic.
[ -1.1967211961746216, -0.9058026075363159, -0.8237446546554565, 1.5350905656814575, -0.1261027455329895, -1.2282449007034302, 0.07528899610042572, -1.0785534381866455, 1.5773789882659912, -0.7470964193344116, 0.37586963176727295, -1.592473030090332, 0.07433448731899261, -0.6349090933799744, -0.7159721851348877, -0.8269714713096619, -0.28950750827789307, -0.7689041495323181, 1.0167231559753418, 2.559237241744995, 1.2586621046066284, -1.3611820936203003, 2.7399442195892334, 0.7037200927734375, -0.30435019731521606, -1.068406581878662, 0.6564456224441528, 0.10767406225204468, -1.2403889894485474, -0.45786425471305847, -0.8680784106254578, -0.03253735229372978, -0.6152006983757019, -0.48460283875465393, 0.011859619058668613, 0.364565908908844, -0.22284331917762756, -0.24813206493854523, -0.4978896677494049, -0.7762673497200012, 0.458238422870636, -0.2727414071559906, 0.9267381429672241, -0.3023645579814911, 1.8248989582061768, -0.558118999004364, 0.2946317195892334, 0.653518557548523, 1.283093810081482, 0.1578502357006073, -0.02116616629064083, 0.2286829799413681, 0.38161134719848633, 0.004956968128681183, 0.3984968066215515, 1.161147952079773, 0.6512947678565979, 0.5148292779922485, 0.720312774181366, -2.078042984008789, 1.3703413009643555, -0.9881916046142578, 0.22337515652179718, 1.36703622341156, -0.9637801647186279, 0.3731493055820465, -1.7953168153762817, -0.06903975456953049, 0.5357383489608765, -2.2996983528137207, 0.19815227389335632, -1.242723822593689, -0.5476244688034058, 0.919802725315094, 0.24431854486465454, -1.32638418674469, 0.19463151693344116, -0.560779869556427, 1.058760643005371, 0.5595195293426514, 1.1537798643112183, -1.732948899269104, 0.009259668178856373, -0.31395307183265686, 0.09334300458431244, -1.400739312171936, -1.4330859184265137, 0.5128446817398071, 0.6654202938079834, 0.6004204750061035, -0.006426872685551643, 0.9470607042312622, -1.0556775331497192, 0.8507344722747803, -0.9043585062026978, -1.5303008556365967, -1.4159929752349854, -2.378743886947632, -2.2608489990234375, 0.7364935874938965, -0.3847368359565735, -0.5588618516921997, 1.812177062034607, -1.013910174369812, -1.7990132570266724, 1.1155731678009033, 0.2623581886291504, 0.03864798694849014, 2.384077548980713, 0.2663194239139557, -0.7376667261123657, 0.37323155999183655, -0.6908754110336304, 0.8585373163223267, -0.34203773736953735, 1.3708568811416626, 0.6191750764846802, -1.082719326019287, 1.6625241041183472, -0.5279797315597534, 0.5124064683914185, -0.6563311219215393, -0.4657716751098633, -0.9059423208236694, 0.3003091514110565, 1.9230388402938843, -0.32155942916870117, 1.6474155187606812, -0.35830774903297424, -1.5467758178710938, -1.5880935192108154, 0.8119645118713379, 0.4984579384326935, -0.7270953059196472, 0.1214812695980072, -0.39081013202667236, 0.07065293192863464, 0.007254802621901035, 1.093181848526001, 1.2646602392196655, 0.6580489277839661, -0.2579154372215271, -0.8486107587814331, 0.18541213870048523, -0.08893577009439468, -0.6898608803749084, -1.9616998434066772, -0.34534117579460144, 0.24896946549415588, 0.7476341128349304, -1.207008719444275, 1.6654722690582275, 0.8764085173606873, 1.9331684112548828, 1.0458060503005981, -0.3240150511264801, 1.432660698890686, -0.07957296818494797, 1.8282215595245361, -0.5184964537620544, 0.764525830745697, -0.31249579787254333, -1.1553040742874146, 0.779808759689331, -0.4025013744831085, -1.987489938735962, -0.8334093689918518, -0.8365728855133057, -0.18239358067512512, -0.7726501822471619, 0.928290843963623, -0.3164125084877014, -1.3747303485870361, 0.29402419924736023, -0.7307080626487732, 0.11064159125089645, -1.2390719652175903, 0.24311122298240662, 0.7206302881240845, -0.6043338775634766, -0.020062994211912155, -0.26266366243362427, -1.2376903295516968, -0.5294192433357239, 0.26086339354515076, 1.9644684791564941, -0.7163225412368774, 0.9617692828178406, 0.935171902179718, -0.6843656301498413, 0.032643817365169525, 0.33534812927246094, -0.352780818939209, 0.8254598379135132, -1.058789610862732, -0.3905375897884369, 1.0454213619232178, -0.1397724747657776, -0.6191496849060059, 1.475819706916809, 0.9172074198722839, -0.9626370072364807, -0.2119637280702591, -0.23422542214393616, -0.7458746433258057, -0.06665078550577164, -1.5963186025619507, -0.2664276361465454, 0.26952552795410156, -1.4278327226638794, -0.4929982125759125, -0.19526711106300354, 1.4247708320617676, -0.2148015946149826, 1.4350121021270752, -0.34165260195732117, -0.2417234480381012, -0.3363726735115051, -0.47185418009757996, 0.16691043972969055, -0.10677693784236908, -0.6534809470176697, 0.27075010538101196, -0.7895655632019043, 0.37109488248825073, 1.5013984441757202, 0.39315158128738403, 0.12217310070991516, 0.46642470359802246, 1.1066185235977173, 0.3268166482448578, 0.04695659130811691, -0.8848363757133484, -1.624036192893982, 2.03729510307312, -1.4325063228607178, 2.052532196044922, 0.8689671158790588, -0.036542266607284546, -1.8336988687515259, -1.7838982343673706, 1.3803430795669556, 1.198586344718933, 2.3656792640686035, 0.7030766606330872, 0.320936381816864, -0.8004496693611145, -0.61231929063797, 0.33058589696884155, -1.0893343687057495, -0.7387279868125916, 0.11395662277936935, 2.320063352584839, 1.7902840375900269, -0.5222249627113342, -0.28191646933555603, -1.0143054723739624, 1.2932244539260864, -0.1311435103416443, 0.1464555561542511, 2.0800063610076904, -0.3093385398387909, -1.1225152015686035, 1.2749733924865723, -2.3326523303985596, 0.17840851843357086, 1.974355697631836, 0.34635797142982483, 0.07603303343057632, -1.4752004146575928, -0.6973694562911987, -0.29239919781684875, -0.4677487909793854, -1.246762990951538, 0.5752300024032593, -0.3338075876235962, -0.9082639813423157, -1.4929051399230957, 0.07364014536142349, -1.1662187576293945, -1.711024522781372, 0.5160947442054749, 1.7552825212478638, 2.047330379486084, -0.7617930769920349, 1.5593544244766235, -0.22712887823581696, 0.08690434694290161, 1.318801760673523, 1.2704132795333862, 3.139119863510132, 1.8320229053497314, -1.222832441329956, 0.7660216093063354, -0.17308032512664795, -0.4430139660835266, 1.1448476314544678, -1.0784128904342651, 1.1991907358169556, -0.201925590634346, -1.163846492767334, -1.2608845233917236, 0.9213824272155762, 0.5126615166664124, 0.040621742606163025, -0.5309740900993347, 1.2595947980880737, 0.11482783406972885, 1.3175262212753296, 0.5734623074531555, -0.29710137844085693, 0.5358536839485168, -0.4050302803516388, -0.5316953063011169, 1.6294817924499512, 0.15341752767562866, -1.5488402843475342, -2.38350248336792, -0.19252675771713257, -0.7658871412277222, -0.1436021775007248, -0.553824245929718, -1.0658657550811768, 1.6988693475723267, 0.4018382430076599, -1.314578652381897, -0.2287507802248001, -0.4219800531864166, -0.5754300951957703, 2.6286978721618652, -1.4215646982192993, -0.17239202558994293, -0.954249918460846, -0.6115761995315552, 1.6185579299926758, -1.2736927270889282, -0.207249715924263, -0.9795881509780884, -0.65038001537323, -1.3702120780944824, -0.5173333287239075, -0.008247166872024536, -0.8351349234580994, 0.6573847532272339, 0.13675105571746826, -0.9928674101829529, -0.32181286811828613, -0.8131617903709412, 0.8816850185394287, -0.13469678163528442, 0.36964932084083557, 1.9319264888763428, 0.4777621924877167, -0.4184875190258026, 0.6450929045677185, 1.1839464902877808, 0.6165000200271606, -0.743097722530365, 0.16914524137973785, -0.6510076522827148, 0.19446885585784912, -1.3739622831344604, 0.32602596282958984, -2.9335741996765137, 0.6674790978431702, -0.08130603283643723, -0.10455004870891571, 0.007361807860434055, -1.2756937742233276, 1.1912461519241333, 2.575702667236328, -1.1869243383407593, 0.3964576721191406, 0.29469579458236694, 1.0810282230377197, -1.5179235935211182, 0.3463875651359558, -0.33538109064102173, 2.121603012084961, 0.2906087338924408, 1.3081674575805664, -0.4986844062805176, -2.1336376667022705, 0.5906204581260681, -1.1717101335525513, -1.1101810932159424, 0.7574248313903809, -0.7989863753318787, 0.08359772711992264, -1.5014358758926392, -0.11899901926517487, -1.0252447128295898, -1.314382553100586, 0.8468485474586487, 0.17304007709026337, 0.45672133564949036, -0.5746216773986816, 0.3970409333705902, -2.0985662937164307, -1.3772649765014648, -0.13112875819206238, -0.9907682538032532, 0.42637065052986145, -0.3004077672958374, 0.5903117060661316, -0.08377905189990997, 0.09630763530731201, 0.2674860656261444, 1.439974069595337, 3.4132678508758545, 0.18328197300434113, 0.39588338136672974, -0.09390368312597275, -0.9481468796730042, 1.441025972366333, 0.9946337938308716, 0.0018513891845941544, -0.5406769514083862, -0.9654515981674194, 1.2447839975357056, 1.90924072265625, 1.0730429887771606, 0.1126173809170723, -0.8692562580108643, -0.7738726735115051, -0.008699889294803143, 0.19538864493370056, 0.47038620710372925, 0.9163761138916016, 0.016749951988458633, 0.071115642786026, 1.4124467372894287, 1.3427460193634033, -0.5491989254951477, 0.4077572822570801, -0.9261568188667297, -0.32510924339294434, 0.41804763674736023, 0.3058241009712219, 0.026996269822120667, 0.4684049189090729, -1.0110384225845337, -0.27202922105789185, -0.298280268907547, -1.131874442100525, -0.6845057606697083, -0.5287058353424072, -0.3495637774467468, 1.5983569622039795, 0.0522654689848423, -0.38479429483413696, -0.047563258558511734, -0.8490276336669922, -0.12890946865081787, -1.0816757678985596, 0.14707760512828827, -0.13137048482894897, -0.07452445477247238, -0.06290637701749802, 1.812934398651123, -0.8979907035827637, -2.150071144104004, 0.3642524182796478, 0.30060458183288574, -0.5004691481590271, 0.19211852550506592, 1.711472749710083, 0.5119922161102295, 1.3387537002563477, 1.255239486694336, 0.968104362487793, -0.6361984014511108, -1.2670115232467651, 0.7256819605827332, 0.9496099948883057, -1.4669049978256226, 0.9286398887634277, -0.0926685556769371, -0.5710158944129944, 0.7814499735832214, 1.2620923519134521, 0.42568710446357727, -1.9614150524139404, 0.7060731053352356, -0.7668235301971436, 0.6633432507514954, 0.6402145624160767, 0.6890118718147278, 0.2592103183269501, 0.8381448984146118, -1.3065825700759888, -1.1045567989349365, -0.718145489692688, -0.5851656198501587, 1.8559001684188843, -0.11933394521474838, 0.5415946245193481, -0.15442197024822235, -1.1685917377471924, -0.14988136291503906, 0.7714422345161438, 0.30216503143310547, -0.36402785778045654, 0.8986894488334656, -0.7113547325134277, -1.0512090921401978, -1.4159936904907227, -0.4420141577720642, -0.8609643578529358, -0.9222634434700012, 1.0525094270706177, 0.7640960812568665, 0.3325841724872589, 1.996446132659912, 0.5302609801292419, 0.24066808819770813, -2.6516449451446533, 0.8641717433929443, 0.21429866552352905, 0.03900782763957977, 1.0063894987106323, 0.22039078176021576, 1.0946351289749146, 0.012085900641977787, 0.5272130370140076, -2.4062838554382324, 2.239649772644043, -0.23749151825904846, 0.5158390402793884, -0.029504407197237015, -0.1821582168340683, 1.1778117418289185, 0.6630830764770508, 0.5508422255516052, -1.2094697952270508, 0.6887059807777405, -0.652733564376831, 1.1426416635513306, 0.9809975624084473, -0.8301936388015747, -0.06438343226909637, 1.3217915296554565, 0.4999646246433258, -0.4513716399669647, -0.8168888092041016, -0.881507158279419, 0.8090959191322327, 1.7218130826950073, -0.03006666898727417, 0.001528177410364151, 0.8070851564407349, 0.6278292536735535, -1.3720334768295288, 0.09480484575033188, -0.7011306285858154, -0.7713297009468079, 1.7040431499481201, 1.9996459484100342, -0.1152791827917099, -0.2535102665424347, -0.7449034452438354, -1.1407408714294434, 0.7703652381896973, -0.02869580313563347, 0.22191183269023895, 0.5503495335578918, -0.7126113772392273, 1.1853055953979492, 0.8456586599349976, 0.9404816031455994, 0.05693443492054939, 0.3507820963859558, 0.3966991901397705, -0.29317739605903625, -1.2362797260284424, -0.3707047998905182, -1.2138159275054932, -2.575982093811035, 0.4914630353450775, -0.32721924781799316, -1.4554235935211182, 0.08555060625076294, -1.0866097211837769, 0.8218589425086975, -0.5859334468841553, -1.03366219997406, -1.488778829574585, 0.20706824958324432, -0.15864470601081848, 0.8996783494949341, -1.6389415264129639, -0.0038376376032829285, 1.324556827545166, 0.8833662271499634, -0.5782197117805481, 1.0932241678237915, 0.32594913244247437, 1.0531874895095825, 0.8610525727272034, -0.49372726678848267, 0.5247488021850586, 0.18216471374034882, -1.3270461559295654, 0.38731005787849426, 1.1224424839019775, 0.2661827802658081, 1.4931368827819824, -0.4493426978588104, 0.18157963454723358, 0.39900699257850647, -0.5908644199371338, -0.5821822881698608, -0.5401265621185303, 0.679683268070221, 0.14005309343338013, -0.9959701299667358, 0.045618005096912384, -0.10491079092025757, -0.2153422087430954, 0.18499703705310822, -1.594996690750122, -0.23358610272407532, -0.3733636736869812, -0.5282504558563232, -1.2842458486557007, 0.02394602820277214, 1.2961444854736328, -0.7424694895744324, -0.19865374267101288, 0.42204323410987854, 0.45331135392189026, 0.5754863619804382, 0.5927683115005493, -0.6665070652961731, -0.5079562067985535, -0.33517879247665405, -0.3833644688129425, 0.33428269624710083, 1.1707775592803955, -0.19934451580047607, -1.0386583805084229, 0.653099536895752, -0.42424675822257996, 0.09764557331800461, 2.0031349658966064, 0.022918157279491425, -0.8310360908508301, 0.3086809813976288, -0.6474573016166687, 1.9207843542099, 1.6308097839355469, 1.326859474182129, -0.13936664164066315, -0.7993304133415222, 0.5422712564468384, -0.2372521162033081, -0.29358041286468506, 0.9156991839408875, 0.5089004039764404, -0.15693892538547516, -1.3564282655715942, 0.41786476969718933, 1.393211007118225, -0.9179510474205017, -0.7488806247711182, 0.02621954306960106, -0.8434576988220215, 1.0831087827682495, 0.6975833773612976, 0.36991021037101746, 0.3494800329208374, 1.508729100227356, 0.6601691842079163, -0.5333061814308167, 0.5011419057846069, 0.43756285309791565, -0.19193719327449799, -2.0819272994995117, -0.9610953330993652, 0.3885588049888611, -0.3861328363418579, -1.5733031034469604, 1.2388696670532227, -1.2048810720443726, -0.9391686320304871, 0.5170983076095581, 0.10498238354921341, 1.329258918762207, 0.308266282081604, 1.6240437030792236, 2.088590145111084, 0.8301559686660767, 0.2201286256313324, 1.3043677806854248, -0.0781857818365097, -0.5140863060951233, 1.8571350574493408, -0.49342069029808044, 0.5607441663742065, 1.0918086767196655, -0.28814205527305603, -1.0058176517486572, -0.8218609094619751, -1.2292401790618896, -0.6377938985824585, 1.2495478391647339, 0.20464542508125305, -1.2248281240463257, 0.1684388965368271, 1.5921800136566162, 0.16138000786304474, -0.30968281626701355, 0.5595109462738037, 0.46944180130958557, -0.7079856395721436, -0.028289776295423508, -0.9608768224716187, 0.5422022342681885, -0.11993833631277084, -0.3718520700931549, 0.2692733705043793, 0.49302569031715393, 1.2440651655197144, -0.061402201652526855, 0.15320637822151184, 1.340165376663208, -1.373761773109436, 1.571661353111267, -0.5335833430290222, 0.2658410668373108, -2.410452127456665, 1.4144456386566162, -0.7268365025520325, 1.94868803024292, -2.5952529907226562, 0.3404839038848877, -0.5942440032958984, -0.49964919686317444, 0.37576961517333984, -0.4070177972316742, 0.1622007191181183, -0.17656973004341125, -0.9339305758476257, -0.15597234666347504, -0.8261838555335999, 0.5051552057266235, 1.2213401794433594, 1.2352960109710693, -1.1544477939605713, -0.2073175013065338, -1.7465862035751343, -0.20009391009807587, -0.7017843127250671, 0.3408600389957428, -2.053673028945923, -0.11480169743299484, -1.9309474229812622, -2.418243408203125, -1.4846938848495483, -0.848779022693634, 1.0478768348693848, 0.15357592701911926, -0.8615030646324158, 0.9899471998214722, -0.3930864632129669, -1.7168940305709839, 1.0245728492736816, -2.1005361080169678 ]
https://github.com/huggingface/datasets/issues/3480
the compression format requested when saving a dataset in json format is not respected
Thanks for reporting @SaulLu. At first sight I think the problem is caused because `pandas` only takes into account the `compression` parameter if called with a non-null file path or buffer. And in our implementation, we call pandas `to_json` with `None` `path_or_buf`. We should fix this: - either handling directly the `compression` parameter ourselves - or refactoring to pass non-null path or buffer to pandas CC: @lhoestq
## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0
1,036
67
the compression format requested when saving a dataset in json format is not respected ## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0 Thanks for reporting @SaulLu. At first sight I think the problem is caused because `pandas` only takes into account the `compression` parameter if called with a non-null file path or buffer. And in our implementation, we call pandas `to_json` with `None` `path_or_buf`. We should fix this: - either handling directly the `compression` parameter ourselves - or refactoring to pass non-null path or buffer to pandas CC: @lhoestq
[ -1.1141999959945679, -0.8523776531219482, -0.7137928605079651, 1.4809948205947876, -0.1305670440196991, -1.2597626447677612, 0.21009142696857452, -1.2014012336730957, 1.8026764392852783, -0.7400116920471191, 0.34420087933540344, -1.6739311218261719, 0.003581218421459198, -0.6529513597488403, -0.7654500603675842, -0.8608313202857971, -0.3961893618106842, -0.6420825123786926, 0.9565452337265015, 2.4633307456970215, 1.2238264083862305, -1.3192229270935059, 2.5868947505950928, 0.75620037317276, -0.23540933430194855, -0.8676642775535583, 0.514087975025177, -0.027595210820436478, -1.2615641355514526, -0.36205267906188965, -0.8821043968200684, -0.20018748939037323, -0.5693991780281067, -0.6033093929290771, -0.03623048588633537, 0.48638758063316345, -0.40126296877861023, -0.4854423999786377, -0.5819015502929688, -0.7843276262283325, 0.42048558592796326, -0.3821757733821869, 1.0158389806747437, -0.43030959367752075, 1.7779905796051025, -0.6435232162475586, 0.5670290589332581, 0.8432821035385132, 1.236784815788269, 0.21708732843399048, 0.0619053989648819, 0.3225027322769165, 0.44360196590423584, 0.0020865648984909058, 0.5778673887252808, 1.1276984214782715, 0.6660730838775635, 0.5568118691444397, 0.8212239146232605, -2.1886558532714844, 1.241256833076477, -1.046320915222168, 0.2672024965286255, 1.345827341079712, -0.8403920531272888, 0.3885231614112854, -1.7954086065292358, -0.00276782363653183, 0.5528068542480469, -2.2530109882354736, 0.2804519832134247, -1.3732047080993652, -0.625440776348114, 1.0963153839111328, 0.4233299791812897, -1.1311516761779785, 0.04865409433841705, -0.3536249101161957, 0.9101694822311401, 0.41149216890335083, 1.0709360837936401, -1.6685384511947632, -0.09382890909910202, -0.3549760580062866, 0.10111121833324432, -1.2944536209106445, -1.5068975687026978, 0.5995897054672241, 0.6146882176399231, 0.576033890247345, -0.13624635338783264, 1.0090705156326294, -1.0443103313446045, 0.7214466333389282, -1.0186907052993774, -1.8145183324813843, -1.4538472890853882, -2.1616454124450684, -2.2585344314575195, 0.7268694043159485, -0.46766427159309387, -0.4732706844806671, 2.063779592514038, -0.9231801629066467, -1.6855554580688477, 1.0116757154464722, 0.3190510869026184, -0.08579810708761215, 2.3849949836730957, 0.2568057179450989, -0.6255965232849121, 0.4793238937854767, -0.7197428345680237, 0.6907232403755188, -0.31105080246925354, 1.2480093240737915, 0.3616740107536316, -1.0815027952194214, 1.5524767637252808, -0.39032498002052307, 0.7171631455421448, -0.6845148801803589, -0.453399121761322, -0.6811785697937012, 0.2955787777900696, 1.8565566539764404, -0.28020405769348145, 1.4373643398284912, -0.2775798738002777, -1.5656557083129883, -1.6655070781707764, 0.9112302660942078, 0.4661555886268616, -0.6735784411430359, 0.16775935888290405, -0.4238937497138977, 0.13116039335727692, -0.1970348060131073, 1.2572193145751953, 1.2654783725738525, 0.8557267785072327, -0.30441907048225403, -0.7479164004325867, 0.16177718341350555, 0.048312053084373474, -0.8963019251823425, -1.6797605752944946, -0.3710477352142334, 0.11886151880025864, 0.5419787764549255, -1.141382098197937, 1.8258322477340698, 0.8379321694374084, 1.8637855052947998, 1.001447081565857, -0.3972734808921814, 1.426299810409546, 0.034618061035871506, 1.8332713842391968, -0.498036652803421, 0.5970703363418579, -0.2996017038822174, -1.137338399887085, 0.8617491722106934, -0.2919888198375702, -2.182827949523926, -0.7360773086547852, -0.781779944896698, -0.17164430022239685, -0.7256534695625305, 0.9367758631706238, -0.20275354385375977, -1.297407865524292, 0.1698361337184906, -0.7546576857566833, 0.03415641188621521, -1.2129212617874146, 0.3016881048679352, 0.7127806544303894, -0.7264618873596191, 0.11653264611959457, -0.17311036586761475, -1.2104237079620361, -0.4908631443977356, 0.31467071175575256, 1.899774193763733, -0.8263347148895264, 0.9144527912139893, 1.0677976608276367, -0.7966181039810181, 0.020991742610931396, 0.3455321788787842, -0.4035082459449768, 0.825884222984314, -1.0773231983184814, -0.5183175802230835, 1.1173464059829712, -0.2197997123003006, -0.625892698764801, 1.5040251016616821, 0.6596862077713013, -0.9992737174034119, -0.17531868815422058, -0.22085675597190857, -0.7657696604728699, 0.09413658827543259, -1.5516490936279297, -0.061243318021297455, 0.43706345558166504, -1.5177953243255615, -0.585461437702179, -0.22612950205802917, 1.281856656074524, -0.14056430757045746, 1.334677815437317, -0.2312559187412262, -0.2218201905488968, -0.448775976896286, -0.3348132073879242, 0.018371056765317917, -0.24319078028202057, -0.5745880007743835, 0.15752197802066803, -0.7005923390388489, 0.29225656390190125, 1.4283442497253418, 0.2658821940422058, -0.0009724460542201996, 0.5346241593360901, 1.0839107036590576, 0.44014251232147217, -0.13831786811351776, -0.9334895610809326, -1.443496823310852, 1.9731336832046509, -1.433194637298584, 1.9674397706985474, 0.7045263051986694, -0.010513284243643284, -1.8326354026794434, -2.0186872482299805, 1.3621078729629517, 1.1747926473617554, 2.374666452407837, 0.5631793141365051, 0.40527409315109253, -0.8396985530853271, -0.6731476783752441, 0.39986395835876465, -1.0094702243804932, -0.7163419127464294, 0.19506590068340302, 2.3786468505859375, 1.7852522134780884, -0.46733543276786804, -0.21891140937805176, -0.9986995458602905, 1.4066212177276611, -0.14400427043437958, 0.20949435234069824, 2.102835178375244, -0.32723596692085266, -1.0834134817123413, 1.3222612142562866, -2.303241729736328, 0.1249731108546257, 1.9397732019424438, 0.23035641014575958, 0.09441779553890228, -1.3270087242126465, -0.6191582679748535, -0.3522476553916931, -0.38348379731178284, -1.1819089651107788, 0.5285137295722961, -0.10132558643817902, -0.7827970385551453, -1.4155988693237305, 0.22749005258083344, -1.0767773389816284, -1.6423609256744385, 0.17030897736549377, 1.8627145290374756, 1.985287070274353, -0.8209218382835388, 1.5860357284545898, -0.3295362889766693, 0.07743612676858902, 1.247145652770996, 1.279281735420227, 3.172105073928833, 1.9236483573913574, -1.3157355785369873, 0.6008240580558777, -0.12402302026748657, -0.4916723370552063, 1.2066638469696045, -1.2721822261810303, 1.3107759952545166, -0.16601569950580597, -1.0477321147918701, -1.2108173370361328, 0.8754914999008179, 0.45760875940322876, 0.039219316095113754, -0.4781288504600525, 1.1961756944656372, 0.11138869822025299, 1.4321306943893433, 0.537306547164917, -0.3233659565448761, 0.6164705753326416, -0.3451749086380005, -0.41157105565071106, 1.5984797477722168, 0.26731055974960327, -1.3223379850387573, -2.3111305236816406, -0.20610055327415466, -0.8883146643638611, 0.10202398896217346, -0.5940095782279968, -0.9668769240379333, 1.7280945777893066, 0.3492671549320221, -1.269392490386963, -0.24445809423923492, -0.3009347915649414, -0.6034883260726929, 2.794313669204712, -1.442789077758789, -0.1298728883266449, -1.0335179567337036, -0.6200148463249207, 1.7436015605926514, -1.2326351404190063, -0.25561851263046265, -1.105607509613037, -0.49201464653015137, -1.276728630065918, -0.5126900672912598, 0.055499523878097534, -0.9305172562599182, 1.046135425567627, 0.1596503108739853, -1.228296160697937, -0.37277674674987793, -0.8851750493049622, 0.9047691822052002, -0.20334038138389587, 0.24222704768180847, 1.8755165338516235, 0.39691871404647827, -0.3497430980205536, 0.699762761592865, 1.141273856163025, 0.6738801598548889, -0.6732902526855469, 0.3003021776676178, -0.7159641981124878, 0.3392406105995178, -1.347837209701538, 0.23621268570423126, -2.7659964561462402, 0.5711382627487183, -0.14307436347007751, -0.03136608377099037, -0.051321789622306824, -1.3516565561294556, 1.0708473920822144, 2.6207118034362793, -1.2547160387039185, 0.4667753279209137, 0.2984901964664459, 1.2054643630981445, -1.5786725282669067, 0.2704867124557495, -0.42521896958351135, 2.043416738510132, 0.15529143810272217, 1.180596113204956, -0.3784392178058624, -2.2955806255340576, 0.6379621028900146, -1.2751973867416382, -1.2182824611663818, 0.8235633373260498, -0.7988658547401428, 0.07407938688993454, -1.355046033859253, -0.20444521307945251, -0.85551518201828, -1.2141070365905762, 0.679754376411438, 0.15103796124458313, 0.4984191954135895, -0.6767592430114746, 0.3707708418369293, -2.1777634620666504, -1.4057621955871582, -0.34621182084083557, -0.852361798286438, 0.4610593318939209, -0.30892106890678406, 0.8066785335540771, -0.1686108410358429, -0.04439853876829147, 0.4546561539173126, 1.483888030052185, 3.316477060317993, 0.13761386275291443, 0.27688243985176086, -0.2916179299354553, -0.8944216370582581, 1.4032373428344727, 0.9205304384231567, -0.06208246946334839, -0.5909211039543152, -1.133449912071228, 1.130968451499939, 1.9851235151290894, 1.0712971687316895, -0.034705109894275665, -0.8717380166053772, -0.7834863662719727, -0.05461736395955086, 0.16648629307746887, 0.4462968409061432, 0.9463372826576233, 0.15696442127227783, 0.02746725082397461, 1.4897021055221558, 1.1789193153381348, -0.3254920542240143, 0.2700880765914917, -0.7730597257614136, -0.4694415032863617, 0.5397853255271912, 0.2848933935165405, 0.015951156616210938, 0.2771775722503662, -1.0556567907333374, -0.26357606053352356, -0.42164739966392517, -0.8594847321510315, -0.7690298557281494, -0.4672659933567047, -0.37090039253234863, 1.6632308959960938, 0.04652504250407219, -0.549186646938324, -0.06063318997621536, -0.7798460125923157, -0.04681219533085823, -1.052506923675537, 0.29477187991142273, -0.19965596497058868, -0.16592639684677124, -0.11948893964290619, 1.7264851331710815, -0.9415297508239746, -1.9725419282913208, 0.25434398651123047, 0.2054026871919632, -0.35609859228134155, 0.22848647832870483, 1.6200543642044067, 0.6234340667724609, 1.4367101192474365, 1.2391260862350464, 0.9177661538124084, -0.7240360379219055, -1.2834261655807495, 0.5909402370452881, 1.0591014623641968, -1.4589952230453491, 0.7015383243560791, 0.0762038379907608, -0.4947088956832886, 0.5622016191482544, 1.2091809511184692, 0.43453294038772583, -2.0276856422424316, 0.7252929210662842, -0.996240496635437, 0.8364822268486023, 0.7362183928489685, 0.7027755379676819, 0.16451184451580048, 0.7908669710159302, -1.1896982192993164, -1.109235405921936, -0.693739652633667, -0.6955613493919373, 2.004317045211792, -0.3109011948108673, 0.6060950756072998, -0.20237775146961212, -1.3719706535339355, -0.08373858034610748, 0.6776041984558105, 0.39247530698776245, -0.5396975874900818, 0.7944097518920898, -0.5877406001091003, -0.9892107844352722, -1.2789958715438843, -0.46624141931533813, -1.1046240329742432, -0.9378315806388855, 1.0494641065597534, 0.8360482454299927, 0.30838125944137573, 1.8477789163589478, 0.7506458759307861, 0.3252246677875519, -2.5865745544433594, 0.9084175825119019, 0.31037458777427673, -0.10946714133024216, 0.8664538264274597, 0.4357178807258606, 1.0236388444900513, -0.09257803857326508, 0.6068536043167114, -2.490368366241455, 2.432668685913086, -0.14949549734592438, 0.6167667508125305, 0.025050047785043716, -0.21970166265964508, 1.055769681930542, 0.52214115858078, 0.45737990736961365, -1.0402510166168213, 0.5677154064178467, -0.5801404714584351, 1.2849797010421753, 0.8227478861808777, -0.7816780805587769, -0.0271458737552166, 1.3431549072265625, 0.5433390736579895, -0.5339602828025818, -0.9350109696388245, -1.0531307458877563, 0.9671338200569153, 1.7324806451797485, -0.13453441858291626, -0.015255041420459747, 0.8850440382957458, 0.6805945634841919, -1.2568002939224243, 0.06313864886760712, -0.7886462807655334, -0.7491421699523926, 1.5819549560546875, 2.0564968585968018, -0.11010544002056122, -0.18482060730457306, -0.8148623704910278, -1.214715600013733, 0.8201714754104614, 0.11663370579481125, 0.13300985097885132, 0.6413674354553223, -0.6452102661132812, 1.125520944595337, 0.9224788546562195, 0.9635128378868103, 0.2535803020000458, 0.369346559047699, 0.40225526690483093, -0.36670243740081787, -1.192158818244934, -0.2622196674346924, -0.9949432015419006, -2.5474698543548584, 0.553902804851532, -0.2059558480978012, -1.4206624031066895, -0.13335493206977844, -1.0144002437591553, 0.9566816091537476, -0.5470869541168213, -1.0314795970916748, -1.5880531072616577, 0.2318321317434311, -0.024548713117837906, 1.0038572549819946, -1.5582818984985352, -0.20204280316829681, 1.2543904781341553, 0.9011713266372681, -0.7432184219360352, 0.8757939338684082, 0.23793061077594757, 1.0327719449996948, 0.860266923904419, -0.32851698994636536, 0.5462601780891418, -0.004275540821254253, -1.344265341758728, 0.40719860792160034, 1.1853822469711304, 0.18022708594799042, 1.5344868898391724, -0.5843732357025146, 0.034477341920137405, 0.3019419014453888, -0.5299546122550964, -0.4546167552471161, -0.5871469378471375, 0.6621295213699341, 0.06847307085990906, -0.968659520149231, 0.03150079399347305, 0.03592067211866379, -0.18644125759601593, 0.16341657936573029, -1.476180076599121, -0.15191321074962616, -0.38189855217933655, -0.6384018063545227, -1.1221054792404175, -0.09592995047569275, 1.3053572177886963, -0.6790577173233032, -0.20212750136852264, 0.524586021900177, 0.2532966434955597, 0.528911292552948, 0.5789011716842651, -0.7643935680389404, -0.35560908913612366, -0.2500070631504059, -0.4116937518119812, 0.3573942482471466, 1.4318695068359375, -0.01869913563132286, -0.9761435985565186, 0.7050890922546387, -0.3723891079425812, 0.07254534959793091, 1.9470986127853394, 0.054972805082798004, -0.7711700201034546, 0.32190194725990295, -0.7177596092224121, 1.8869853019714355, 1.7414807081222534, 1.301555871963501, -0.11220743507146835, -0.966408371925354, 0.6258882880210876, -0.476073294878006, -0.41262108087539673, 0.8527863621711731, 0.3081468343734741, -0.33585473895072937, -1.3769680261611938, 0.7338106632232666, 1.3129481077194214, -0.9182519316673279, -0.912541389465332, 0.2235083281993866, -0.742350697517395, 1.0525861978530884, 0.7439466714859009, 0.34121811389923096, 0.32635536789894104, 1.6011890172958374, 0.8273621201515198, -0.43085384368896484, 0.5335654616355896, 0.5082811713218689, -0.16260944306850433, -2.0243895053863525, -1.2300243377685547, 0.4330011308193207, -0.6769922971725464, -1.5866268873214722, 1.4814214706420898, -1.1849684715270996, -1.0152400732040405, 0.576210618019104, 0.08870504051446915, 1.4315170049667358, 0.44200557470321655, 1.5400750637054443, 2.026549816131592, 0.8487366437911987, 0.44952327013015747, 1.2769745588302612, -0.1987285315990448, -0.5210718512535095, 1.8197592496871948, -0.48715850710868835, 0.4613529145717621, 1.0966483354568481, -0.2544751465320587, -1.034894585609436, -0.8450493216514587, -1.2625716924667358, -0.8128501176834106, 1.2433786392211914, 0.008405071683228016, -1.0916168689727783, 0.3165351450443268, 1.548210859298706, 0.07091442495584488, -0.33266234397888184, 0.6997158527374268, 0.3367469906806946, -0.8899882435798645, -0.10086140781641006, -0.8591485023498535, 0.6056092977523804, -0.1791473925113678, -0.340248703956604, 0.3194359242916107, 0.4539267420768738, 1.403259038925171, -0.031163185834884644, 0.12855087220668793, 1.1096668243408203, -1.3861758708953857, 1.584533929824829, -0.7025771141052246, 0.2345641702413559, -2.350477695465088, 1.3953986167907715, -0.7081435322761536, 1.942429542541504, -2.6263747215270996, 0.45556843280792236, -0.494186669588089, -0.4608839154243469, 0.24699434638023376, -0.267842173576355, 0.19796735048294067, -0.1432754397392273, -1.2632976770401, -0.046290818601846695, -0.6996505260467529, 0.6520927548408508, 1.0654973983764648, 1.4219648838043213, -1.1354745626449585, -0.36206769943237305, -1.7039213180541992, -0.17209815979003906, -0.7247939705848694, 0.32981792092323303, -1.9303867816925049, -0.2226068675518036, -1.868851661682129, -2.3764588832855225, -1.3288124799728394, -0.8331109285354614, 1.1392505168914795, 0.07479773461818695, -0.9125370979309082, 1.1869522333145142, -0.37106648087501526, -1.9198012351989746, 1.1619253158569336, -2.2078049182891846 ]
https://github.com/huggingface/datasets/issues/3480
the compression format requested when saving a dataset in json format is not respected
I was thinking if we can handle the `compression` parameter by ourselves? Compression types will be similar to what `pandas` offer. Initially, we can try this with 2-3 compression types and see how good/bad it is? Let me know if it sounds good, I can raise a PR for this next week
## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0
1,036
52
the compression format requested when saving a dataset in json format is not respected ## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0 I was thinking if we can handle the `compression` parameter by ourselves? Compression types will be similar to what `pandas` offer. Initially, we can try this with 2-3 compression types and see how good/bad it is? Let me know if it sounds good, I can raise a PR for this next week
[ -1.1141999959945679, -0.8523776531219482, -0.7137928605079651, 1.4809948205947876, -0.1305670440196991, -1.2597626447677612, 0.21009142696857452, -1.2014012336730957, 1.8026764392852783, -0.7400116920471191, 0.34420087933540344, -1.6739311218261719, 0.003581218421459198, -0.6529513597488403, -0.7654500603675842, -0.8608313202857971, -0.3961893618106842, -0.6420825123786926, 0.9565452337265015, 2.4633307456970215, 1.2238264083862305, -1.3192229270935059, 2.5868947505950928, 0.75620037317276, -0.23540933430194855, -0.8676642775535583, 0.514087975025177, -0.027595210820436478, -1.2615641355514526, -0.36205267906188965, -0.8821043968200684, -0.20018748939037323, -0.5693991780281067, -0.6033093929290771, -0.03623048588633537, 0.48638758063316345, -0.40126296877861023, -0.4854423999786377, -0.5819015502929688, -0.7843276262283325, 0.42048558592796326, -0.3821757733821869, 1.0158389806747437, -0.43030959367752075, 1.7779905796051025, -0.6435232162475586, 0.5670290589332581, 0.8432821035385132, 1.236784815788269, 0.21708732843399048, 0.0619053989648819, 0.3225027322769165, 0.44360196590423584, 0.0020865648984909058, 0.5778673887252808, 1.1276984214782715, 0.6660730838775635, 0.5568118691444397, 0.8212239146232605, -2.1886558532714844, 1.241256833076477, -1.046320915222168, 0.2672024965286255, 1.345827341079712, -0.8403920531272888, 0.3885231614112854, -1.7954086065292358, -0.00276782363653183, 0.5528068542480469, -2.2530109882354736, 0.2804519832134247, -1.3732047080993652, -0.625440776348114, 1.0963153839111328, 0.4233299791812897, -1.1311516761779785, 0.04865409433841705, -0.3536249101161957, 0.9101694822311401, 0.41149216890335083, 1.0709360837936401, -1.6685384511947632, -0.09382890909910202, -0.3549760580062866, 0.10111121833324432, -1.2944536209106445, -1.5068975687026978, 0.5995897054672241, 0.6146882176399231, 0.576033890247345, -0.13624635338783264, 1.0090705156326294, -1.0443103313446045, 0.7214466333389282, -1.0186907052993774, -1.8145183324813843, -1.4538472890853882, -2.1616454124450684, -2.2585344314575195, 0.7268694043159485, -0.46766427159309387, -0.4732706844806671, 2.063779592514038, -0.9231801629066467, -1.6855554580688477, 1.0116757154464722, 0.3190510869026184, -0.08579810708761215, 2.3849949836730957, 0.2568057179450989, -0.6255965232849121, 0.4793238937854767, -0.7197428345680237, 0.6907232403755188, -0.31105080246925354, 1.2480093240737915, 0.3616740107536316, -1.0815027952194214, 1.5524767637252808, -0.39032498002052307, 0.7171631455421448, -0.6845148801803589, -0.453399121761322, -0.6811785697937012, 0.2955787777900696, 1.8565566539764404, -0.28020405769348145, 1.4373643398284912, -0.2775798738002777, -1.5656557083129883, -1.6655070781707764, 0.9112302660942078, 0.4661555886268616, -0.6735784411430359, 0.16775935888290405, -0.4238937497138977, 0.13116039335727692, -0.1970348060131073, 1.2572193145751953, 1.2654783725738525, 0.8557267785072327, -0.30441907048225403, -0.7479164004325867, 0.16177718341350555, 0.048312053084373474, -0.8963019251823425, -1.6797605752944946, -0.3710477352142334, 0.11886151880025864, 0.5419787764549255, -1.141382098197937, 1.8258322477340698, 0.8379321694374084, 1.8637855052947998, 1.001447081565857, -0.3972734808921814, 1.426299810409546, 0.034618061035871506, 1.8332713842391968, -0.498036652803421, 0.5970703363418579, -0.2996017038822174, -1.137338399887085, 0.8617491722106934, -0.2919888198375702, -2.182827949523926, -0.7360773086547852, -0.781779944896698, -0.17164430022239685, -0.7256534695625305, 0.9367758631706238, -0.20275354385375977, -1.297407865524292, 0.1698361337184906, -0.7546576857566833, 0.03415641188621521, -1.2129212617874146, 0.3016881048679352, 0.7127806544303894, -0.7264618873596191, 0.11653264611959457, -0.17311036586761475, -1.2104237079620361, -0.4908631443977356, 0.31467071175575256, 1.899774193763733, -0.8263347148895264, 0.9144527912139893, 1.0677976608276367, -0.7966181039810181, 0.020991742610931396, 0.3455321788787842, -0.4035082459449768, 0.825884222984314, -1.0773231983184814, -0.5183175802230835, 1.1173464059829712, -0.2197997123003006, -0.625892698764801, 1.5040251016616821, 0.6596862077713013, -0.9992737174034119, -0.17531868815422058, -0.22085675597190857, -0.7657696604728699, 0.09413658827543259, -1.5516490936279297, -0.061243318021297455, 0.43706345558166504, -1.5177953243255615, -0.585461437702179, -0.22612950205802917, 1.281856656074524, -0.14056430757045746, 1.334677815437317, -0.2312559187412262, -0.2218201905488968, -0.448775976896286, -0.3348132073879242, 0.018371056765317917, -0.24319078028202057, -0.5745880007743835, 0.15752197802066803, -0.7005923390388489, 0.29225656390190125, 1.4283442497253418, 0.2658821940422058, -0.0009724460542201996, 0.5346241593360901, 1.0839107036590576, 0.44014251232147217, -0.13831786811351776, -0.9334895610809326, -1.443496823310852, 1.9731336832046509, -1.433194637298584, 1.9674397706985474, 0.7045263051986694, -0.010513284243643284, -1.8326354026794434, -2.0186872482299805, 1.3621078729629517, 1.1747926473617554, 2.374666452407837, 0.5631793141365051, 0.40527409315109253, -0.8396985530853271, -0.6731476783752441, 0.39986395835876465, -1.0094702243804932, -0.7163419127464294, 0.19506590068340302, 2.3786468505859375, 1.7852522134780884, -0.46733543276786804, -0.21891140937805176, -0.9986995458602905, 1.4066212177276611, -0.14400427043437958, 0.20949435234069824, 2.102835178375244, -0.32723596692085266, -1.0834134817123413, 1.3222612142562866, -2.303241729736328, 0.1249731108546257, 1.9397732019424438, 0.23035641014575958, 0.09441779553890228, -1.3270087242126465, -0.6191582679748535, -0.3522476553916931, -0.38348379731178284, -1.1819089651107788, 0.5285137295722961, -0.10132558643817902, -0.7827970385551453, -1.4155988693237305, 0.22749005258083344, -1.0767773389816284, -1.6423609256744385, 0.17030897736549377, 1.8627145290374756, 1.985287070274353, -0.8209218382835388, 1.5860357284545898, -0.3295362889766693, 0.07743612676858902, 1.247145652770996, 1.279281735420227, 3.172105073928833, 1.9236483573913574, -1.3157355785369873, 0.6008240580558777, -0.12402302026748657, -0.4916723370552063, 1.2066638469696045, -1.2721822261810303, 1.3107759952545166, -0.16601569950580597, -1.0477321147918701, -1.2108173370361328, 0.8754914999008179, 0.45760875940322876, 0.039219316095113754, -0.4781288504600525, 1.1961756944656372, 0.11138869822025299, 1.4321306943893433, 0.537306547164917, -0.3233659565448761, 0.6164705753326416, -0.3451749086380005, -0.41157105565071106, 1.5984797477722168, 0.26731055974960327, -1.3223379850387573, -2.3111305236816406, -0.20610055327415466, -0.8883146643638611, 0.10202398896217346, -0.5940095782279968, -0.9668769240379333, 1.7280945777893066, 0.3492671549320221, -1.269392490386963, -0.24445809423923492, -0.3009347915649414, -0.6034883260726929, 2.794313669204712, -1.442789077758789, -0.1298728883266449, -1.0335179567337036, -0.6200148463249207, 1.7436015605926514, -1.2326351404190063, -0.25561851263046265, -1.105607509613037, -0.49201464653015137, -1.276728630065918, -0.5126900672912598, 0.055499523878097534, -0.9305172562599182, 1.046135425567627, 0.1596503108739853, -1.228296160697937, -0.37277674674987793, -0.8851750493049622, 0.9047691822052002, -0.20334038138389587, 0.24222704768180847, 1.8755165338516235, 0.39691871404647827, -0.3497430980205536, 0.699762761592865, 1.141273856163025, 0.6738801598548889, -0.6732902526855469, 0.3003021776676178, -0.7159641981124878, 0.3392406105995178, -1.347837209701538, 0.23621268570423126, -2.7659964561462402, 0.5711382627487183, -0.14307436347007751, -0.03136608377099037, -0.051321789622306824, -1.3516565561294556, 1.0708473920822144, 2.6207118034362793, -1.2547160387039185, 0.4667753279209137, 0.2984901964664459, 1.2054643630981445, -1.5786725282669067, 0.2704867124557495, -0.42521896958351135, 2.043416738510132, 0.15529143810272217, 1.180596113204956, -0.3784392178058624, -2.2955806255340576, 0.6379621028900146, -1.2751973867416382, -1.2182824611663818, 0.8235633373260498, -0.7988658547401428, 0.07407938688993454, -1.355046033859253, -0.20444521307945251, -0.85551518201828, -1.2141070365905762, 0.679754376411438, 0.15103796124458313, 0.4984191954135895, -0.6767592430114746, 0.3707708418369293, -2.1777634620666504, -1.4057621955871582, -0.34621182084083557, -0.852361798286438, 0.4610593318939209, -0.30892106890678406, 0.8066785335540771, -0.1686108410358429, -0.04439853876829147, 0.4546561539173126, 1.483888030052185, 3.316477060317993, 0.13761386275291443, 0.27688243985176086, -0.2916179299354553, -0.8944216370582581, 1.4032373428344727, 0.9205304384231567, -0.06208246946334839, -0.5909211039543152, -1.133449912071228, 1.130968451499939, 1.9851235151290894, 1.0712971687316895, -0.034705109894275665, -0.8717380166053772, -0.7834863662719727, -0.05461736395955086, 0.16648629307746887, 0.4462968409061432, 0.9463372826576233, 0.15696442127227783, 0.02746725082397461, 1.4897021055221558, 1.1789193153381348, -0.3254920542240143, 0.2700880765914917, -0.7730597257614136, -0.4694415032863617, 0.5397853255271912, 0.2848933935165405, 0.015951156616210938, 0.2771775722503662, -1.0556567907333374, -0.26357606053352356, -0.42164739966392517, -0.8594847321510315, -0.7690298557281494, -0.4672659933567047, -0.37090039253234863, 1.6632308959960938, 0.04652504250407219, -0.549186646938324, -0.06063318997621536, -0.7798460125923157, -0.04681219533085823, -1.052506923675537, 0.29477187991142273, -0.19965596497058868, -0.16592639684677124, -0.11948893964290619, 1.7264851331710815, -0.9415297508239746, -1.9725419282913208, 0.25434398651123047, 0.2054026871919632, -0.35609859228134155, 0.22848647832870483, 1.6200543642044067, 0.6234340667724609, 1.4367101192474365, 1.2391260862350464, 0.9177661538124084, -0.7240360379219055, -1.2834261655807495, 0.5909402370452881, 1.0591014623641968, -1.4589952230453491, 0.7015383243560791, 0.0762038379907608, -0.4947088956832886, 0.5622016191482544, 1.2091809511184692, 0.43453294038772583, -2.0276856422424316, 0.7252929210662842, -0.996240496635437, 0.8364822268486023, 0.7362183928489685, 0.7027755379676819, 0.16451184451580048, 0.7908669710159302, -1.1896982192993164, -1.109235405921936, -0.693739652633667, -0.6955613493919373, 2.004317045211792, -0.3109011948108673, 0.6060950756072998, -0.20237775146961212, -1.3719706535339355, -0.08373858034610748, 0.6776041984558105, 0.39247530698776245, -0.5396975874900818, 0.7944097518920898, -0.5877406001091003, -0.9892107844352722, -1.2789958715438843, -0.46624141931533813, -1.1046240329742432, -0.9378315806388855, 1.0494641065597534, 0.8360482454299927, 0.30838125944137573, 1.8477789163589478, 0.7506458759307861, 0.3252246677875519, -2.5865745544433594, 0.9084175825119019, 0.31037458777427673, -0.10946714133024216, 0.8664538264274597, 0.4357178807258606, 1.0236388444900513, -0.09257803857326508, 0.6068536043167114, -2.490368366241455, 2.432668685913086, -0.14949549734592438, 0.6167667508125305, 0.025050047785043716, -0.21970166265964508, 1.055769681930542, 0.52214115858078, 0.45737990736961365, -1.0402510166168213, 0.5677154064178467, -0.5801404714584351, 1.2849797010421753, 0.8227478861808777, -0.7816780805587769, -0.0271458737552166, 1.3431549072265625, 0.5433390736579895, -0.5339602828025818, -0.9350109696388245, -1.0531307458877563, 0.9671338200569153, 1.7324806451797485, -0.13453441858291626, -0.015255041420459747, 0.8850440382957458, 0.6805945634841919, -1.2568002939224243, 0.06313864886760712, -0.7886462807655334, -0.7491421699523926, 1.5819549560546875, 2.0564968585968018, -0.11010544002056122, -0.18482060730457306, -0.8148623704910278, -1.214715600013733, 0.8201714754104614, 0.11663370579481125, 0.13300985097885132, 0.6413674354553223, -0.6452102661132812, 1.125520944595337, 0.9224788546562195, 0.9635128378868103, 0.2535803020000458, 0.369346559047699, 0.40225526690483093, -0.36670243740081787, -1.192158818244934, -0.2622196674346924, -0.9949432015419006, -2.5474698543548584, 0.553902804851532, -0.2059558480978012, -1.4206624031066895, -0.13335493206977844, -1.0144002437591553, 0.9566816091537476, -0.5470869541168213, -1.0314795970916748, -1.5880531072616577, 0.2318321317434311, -0.024548713117837906, 1.0038572549819946, -1.5582818984985352, -0.20204280316829681, 1.2543904781341553, 0.9011713266372681, -0.7432184219360352, 0.8757939338684082, 0.23793061077594757, 1.0327719449996948, 0.860266923904419, -0.32851698994636536, 0.5462601780891418, -0.004275540821254253, -1.344265341758728, 0.40719860792160034, 1.1853822469711304, 0.18022708594799042, 1.5344868898391724, -0.5843732357025146, 0.034477341920137405, 0.3019419014453888, -0.5299546122550964, -0.4546167552471161, -0.5871469378471375, 0.6621295213699341, 0.06847307085990906, -0.968659520149231, 0.03150079399347305, 0.03592067211866379, -0.18644125759601593, 0.16341657936573029, -1.476180076599121, -0.15191321074962616, -0.38189855217933655, -0.6384018063545227, -1.1221054792404175, -0.09592995047569275, 1.3053572177886963, -0.6790577173233032, -0.20212750136852264, 0.524586021900177, 0.2532966434955597, 0.528911292552948, 0.5789011716842651, -0.7643935680389404, -0.35560908913612366, -0.2500070631504059, -0.4116937518119812, 0.3573942482471466, 1.4318695068359375, -0.01869913563132286, -0.9761435985565186, 0.7050890922546387, -0.3723891079425812, 0.07254534959793091, 1.9470986127853394, 0.054972805082798004, -0.7711700201034546, 0.32190194725990295, -0.7177596092224121, 1.8869853019714355, 1.7414807081222534, 1.301555871963501, -0.11220743507146835, -0.966408371925354, 0.6258882880210876, -0.476073294878006, -0.41262108087539673, 0.8527863621711731, 0.3081468343734741, -0.33585473895072937, -1.3769680261611938, 0.7338106632232666, 1.3129481077194214, -0.9182519316673279, -0.912541389465332, 0.2235083281993866, -0.742350697517395, 1.0525861978530884, 0.7439466714859009, 0.34121811389923096, 0.32635536789894104, 1.6011890172958374, 0.8273621201515198, -0.43085384368896484, 0.5335654616355896, 0.5082811713218689, -0.16260944306850433, -2.0243895053863525, -1.2300243377685547, 0.4330011308193207, -0.6769922971725464, -1.5866268873214722, 1.4814214706420898, -1.1849684715270996, -1.0152400732040405, 0.576210618019104, 0.08870504051446915, 1.4315170049667358, 0.44200557470321655, 1.5400750637054443, 2.026549816131592, 0.8487366437911987, 0.44952327013015747, 1.2769745588302612, -0.1987285315990448, -0.5210718512535095, 1.8197592496871948, -0.48715850710868835, 0.4613529145717621, 1.0966483354568481, -0.2544751465320587, -1.034894585609436, -0.8450493216514587, -1.2625716924667358, -0.8128501176834106, 1.2433786392211914, 0.008405071683228016, -1.0916168689727783, 0.3165351450443268, 1.548210859298706, 0.07091442495584488, -0.33266234397888184, 0.6997158527374268, 0.3367469906806946, -0.8899882435798645, -0.10086140781641006, -0.8591485023498535, 0.6056092977523804, -0.1791473925113678, -0.340248703956604, 0.3194359242916107, 0.4539267420768738, 1.403259038925171, -0.031163185834884644, 0.12855087220668793, 1.1096668243408203, -1.3861758708953857, 1.584533929824829, -0.7025771141052246, 0.2345641702413559, -2.350477695465088, 1.3953986167907715, -0.7081435322761536, 1.942429542541504, -2.6263747215270996, 0.45556843280792236, -0.494186669588089, -0.4608839154243469, 0.24699434638023376, -0.267842173576355, 0.19796735048294067, -0.1432754397392273, -1.2632976770401, -0.046290818601846695, -0.6996505260467529, 0.6520927548408508, 1.0654973983764648, 1.4219648838043213, -1.1354745626449585, -0.36206769943237305, -1.7039213180541992, -0.17209815979003906, -0.7247939705848694, 0.32981792092323303, -1.9303867816925049, -0.2226068675518036, -1.868851661682129, -2.3764588832855225, -1.3288124799728394, -0.8331109285354614, 1.1392505168914795, 0.07479773461818695, -0.9125370979309082, 1.1869522333145142, -0.37106648087501526, -1.9198012351989746, 1.1619253158569336, -2.2078049182891846 ]
https://github.com/huggingface/datasets/issues/3480
the compression format requested when saving a dataset in json format is not respected
Hi ! Thanks for your help @bhavitvyamalik :) Maybe let's start with `gzip` ? I think it's the most common use case, then if we're fine with it we can add other compression methods
## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0
1,036
34
the compression format requested when saving a dataset in json format is not respected ## Describe the bug In the documentation of the `to_json` method, it is stated in the parameters that > **to_json_kwargs – Parameters to pass to pandas’s pandas.DataFrame.to_json. however when we pass for example `compression="gzip"`, the saved file is not compressed. Would you also have expected compression to be applied? :relaxed: ## Steps to reproduce the bug ```python my_dict = {"a": [1, 2, 3], "b": [1, 2, 3]} ``` ### Result with datasets ```python from datasets import Dataset dataset = Dataset.from_dict(my_dict) dataset.to_json("dic_with_datasets.jsonl.gz", compression="gzip") !cat dic_with_datasets.jsonl.gz ``` output ``` {"a":1,"b":1} {"a":2,"b":2} {"a":3,"b":3} ``` Note: I would expected to see binary data here ### Result with pandas ```python import pandas as pd df = pd.DataFrame(my_dict) df.to_json("dic_with_pandas.jsonl.gz", lines=True, orient="records", compression="gzip") !cat dic_with_pandas.jsonl.gz ``` output ``` 4��a�dic_with_pandas.jsonl��VJT�2�QJ��\� ��g��yƵ���������)��� ``` Note: It looks like binary data ## Expected results I would have expected that the saved result with datasets would also be a binary file ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-4.18.0-193.70.1.el8_2.x86_64-x86_64-with-glibc2.17 - Python version: 3.8.11 - PyArrow version: 5.0.0 Hi ! Thanks for your help @bhavitvyamalik :) Maybe let's start with `gzip` ? I think it's the most common use case, then if we're fine with it we can add other compression methods
[ -1.1141999959945679, -0.8523776531219482, -0.7137928605079651, 1.4809948205947876, -0.1305670440196991, -1.2597626447677612, 0.21009142696857452, -1.2014012336730957, 1.8026764392852783, -0.7400116920471191, 0.34420087933540344, -1.6739311218261719, 0.003581218421459198, -0.6529513597488403, -0.7654500603675842, -0.8608313202857971, -0.3961893618106842, -0.6420825123786926, 0.9565452337265015, 2.4633307456970215, 1.2238264083862305, -1.3192229270935059, 2.5868947505950928, 0.75620037317276, -0.23540933430194855, -0.8676642775535583, 0.514087975025177, -0.027595210820436478, -1.2615641355514526, -0.36205267906188965, -0.8821043968200684, -0.20018748939037323, -0.5693991780281067, -0.6033093929290771, -0.03623048588633537, 0.48638758063316345, -0.40126296877861023, -0.4854423999786377, -0.5819015502929688, -0.7843276262283325, 0.42048558592796326, -0.3821757733821869, 1.0158389806747437, -0.43030959367752075, 1.7779905796051025, -0.6435232162475586, 0.5670290589332581, 0.8432821035385132, 1.236784815788269, 0.21708732843399048, 0.0619053989648819, 0.3225027322769165, 0.44360196590423584, 0.0020865648984909058, 0.5778673887252808, 1.1276984214782715, 0.6660730838775635, 0.5568118691444397, 0.8212239146232605, -2.1886558532714844, 1.241256833076477, -1.046320915222168, 0.2672024965286255, 1.345827341079712, -0.8403920531272888, 0.3885231614112854, -1.7954086065292358, -0.00276782363653183, 0.5528068542480469, -2.2530109882354736, 0.2804519832134247, -1.3732047080993652, -0.625440776348114, 1.0963153839111328, 0.4233299791812897, -1.1311516761779785, 0.04865409433841705, -0.3536249101161957, 0.9101694822311401, 0.41149216890335083, 1.0709360837936401, -1.6685384511947632, -0.09382890909910202, -0.3549760580062866, 0.10111121833324432, -1.2944536209106445, -1.5068975687026978, 0.5995897054672241, 0.6146882176399231, 0.576033890247345, -0.13624635338783264, 1.0090705156326294, -1.0443103313446045, 0.7214466333389282, -1.0186907052993774, -1.8145183324813843, -1.4538472890853882, -2.1616454124450684, -2.2585344314575195, 0.7268694043159485, -0.46766427159309387, -0.4732706844806671, 2.063779592514038, -0.9231801629066467, -1.6855554580688477, 1.0116757154464722, 0.3190510869026184, -0.08579810708761215, 2.3849949836730957, 0.2568057179450989, -0.6255965232849121, 0.4793238937854767, -0.7197428345680237, 0.6907232403755188, -0.31105080246925354, 1.2480093240737915, 0.3616740107536316, -1.0815027952194214, 1.5524767637252808, -0.39032498002052307, 0.7171631455421448, -0.6845148801803589, -0.453399121761322, -0.6811785697937012, 0.2955787777900696, 1.8565566539764404, -0.28020405769348145, 1.4373643398284912, -0.2775798738002777, -1.5656557083129883, -1.6655070781707764, 0.9112302660942078, 0.4661555886268616, -0.6735784411430359, 0.16775935888290405, -0.4238937497138977, 0.13116039335727692, -0.1970348060131073, 1.2572193145751953, 1.2654783725738525, 0.8557267785072327, -0.30441907048225403, -0.7479164004325867, 0.16177718341350555, 0.048312053084373474, -0.8963019251823425, -1.6797605752944946, -0.3710477352142334, 0.11886151880025864, 0.5419787764549255, -1.141382098197937, 1.8258322477340698, 0.8379321694374084, 1.8637855052947998, 1.001447081565857, -0.3972734808921814, 1.426299810409546, 0.034618061035871506, 1.8332713842391968, -0.498036652803421, 0.5970703363418579, -0.2996017038822174, -1.137338399887085, 0.8617491722106934, -0.2919888198375702, -2.182827949523926, -0.7360773086547852, -0.781779944896698, -0.17164430022239685, -0.7256534695625305, 0.9367758631706238, -0.20275354385375977, -1.297407865524292, 0.1698361337184906, -0.7546576857566833, 0.03415641188621521, -1.2129212617874146, 0.3016881048679352, 0.7127806544303894, -0.7264618873596191, 0.11653264611959457, -0.17311036586761475, -1.2104237079620361, -0.4908631443977356, 0.31467071175575256, 1.899774193763733, -0.8263347148895264, 0.9144527912139893, 1.0677976608276367, -0.7966181039810181, 0.020991742610931396, 0.3455321788787842, -0.4035082459449768, 0.825884222984314, -1.0773231983184814, -0.5183175802230835, 1.1173464059829712, -0.2197997123003006, -0.625892698764801, 1.5040251016616821, 0.6596862077713013, -0.9992737174034119, -0.17531868815422058, -0.22085675597190857, -0.7657696604728699, 0.09413658827543259, -1.5516490936279297, -0.061243318021297455, 0.43706345558166504, -1.5177953243255615, -0.585461437702179, -0.22612950205802917, 1.281856656074524, -0.14056430757045746, 1.334677815437317, -0.2312559187412262, -0.2218201905488968, -0.448775976896286, -0.3348132073879242, 0.018371056765317917, -0.24319078028202057, -0.5745880007743835, 0.15752197802066803, -0.7005923390388489, 0.29225656390190125, 1.4283442497253418, 0.2658821940422058, -0.0009724460542201996, 0.5346241593360901, 1.0839107036590576, 0.44014251232147217, -0.13831786811351776, -0.9334895610809326, -1.443496823310852, 1.9731336832046509, -1.433194637298584, 1.9674397706985474, 0.7045263051986694, -0.010513284243643284, -1.8326354026794434, -2.0186872482299805, 1.3621078729629517, 1.1747926473617554, 2.374666452407837, 0.5631793141365051, 0.40527409315109253, -0.8396985530853271, -0.6731476783752441, 0.39986395835876465, -1.0094702243804932, -0.7163419127464294, 0.19506590068340302, 2.3786468505859375, 1.7852522134780884, -0.46733543276786804, -0.21891140937805176, -0.9986995458602905, 1.4066212177276611, -0.14400427043437958, 0.20949435234069824, 2.102835178375244, -0.32723596692085266, -1.0834134817123413, 1.3222612142562866, -2.303241729736328, 0.1249731108546257, 1.9397732019424438, 0.23035641014575958, 0.09441779553890228, -1.3270087242126465, -0.6191582679748535, -0.3522476553916931, -0.38348379731178284, -1.1819089651107788, 0.5285137295722961, -0.10132558643817902, -0.7827970385551453, -1.4155988693237305, 0.22749005258083344, -1.0767773389816284, -1.6423609256744385, 0.17030897736549377, 1.8627145290374756, 1.985287070274353, -0.8209218382835388, 1.5860357284545898, -0.3295362889766693, 0.07743612676858902, 1.247145652770996, 1.279281735420227, 3.172105073928833, 1.9236483573913574, -1.3157355785369873, 0.6008240580558777, -0.12402302026748657, -0.4916723370552063, 1.2066638469696045, -1.2721822261810303, 1.3107759952545166, -0.16601569950580597, -1.0477321147918701, -1.2108173370361328, 0.8754914999008179, 0.45760875940322876, 0.039219316095113754, -0.4781288504600525, 1.1961756944656372, 0.11138869822025299, 1.4321306943893433, 0.537306547164917, -0.3233659565448761, 0.6164705753326416, -0.3451749086380005, -0.41157105565071106, 1.5984797477722168, 0.26731055974960327, -1.3223379850387573, -2.3111305236816406, -0.20610055327415466, -0.8883146643638611, 0.10202398896217346, -0.5940095782279968, -0.9668769240379333, 1.7280945777893066, 0.3492671549320221, -1.269392490386963, -0.24445809423923492, -0.3009347915649414, -0.6034883260726929, 2.794313669204712, -1.442789077758789, -0.1298728883266449, -1.0335179567337036, -0.6200148463249207, 1.7436015605926514, -1.2326351404190063, -0.25561851263046265, -1.105607509613037, -0.49201464653015137, -1.276728630065918, -0.5126900672912598, 0.055499523878097534, -0.9305172562599182, 1.046135425567627, 0.1596503108739853, -1.228296160697937, -0.37277674674987793, -0.8851750493049622, 0.9047691822052002, -0.20334038138389587, 0.24222704768180847, 1.8755165338516235, 0.39691871404647827, -0.3497430980205536, 0.699762761592865, 1.141273856163025, 0.6738801598548889, -0.6732902526855469, 0.3003021776676178, -0.7159641981124878, 0.3392406105995178, -1.347837209701538, 0.23621268570423126, -2.7659964561462402, 0.5711382627487183, -0.14307436347007751, -0.03136608377099037, -0.051321789622306824, -1.3516565561294556, 1.0708473920822144, 2.6207118034362793, -1.2547160387039185, 0.4667753279209137, 0.2984901964664459, 1.2054643630981445, -1.5786725282669067, 0.2704867124557495, -0.42521896958351135, 2.043416738510132, 0.15529143810272217, 1.180596113204956, -0.3784392178058624, -2.2955806255340576, 0.6379621028900146, -1.2751973867416382, -1.2182824611663818, 0.8235633373260498, -0.7988658547401428, 0.07407938688993454, -1.355046033859253, -0.20444521307945251, -0.85551518201828, -1.2141070365905762, 0.679754376411438, 0.15103796124458313, 0.4984191954135895, -0.6767592430114746, 0.3707708418369293, -2.1777634620666504, -1.4057621955871582, -0.34621182084083557, -0.852361798286438, 0.4610593318939209, -0.30892106890678406, 0.8066785335540771, -0.1686108410358429, -0.04439853876829147, 0.4546561539173126, 1.483888030052185, 3.316477060317993, 0.13761386275291443, 0.27688243985176086, -0.2916179299354553, -0.8944216370582581, 1.4032373428344727, 0.9205304384231567, -0.06208246946334839, -0.5909211039543152, -1.133449912071228, 1.130968451499939, 1.9851235151290894, 1.0712971687316895, -0.034705109894275665, -0.8717380166053772, -0.7834863662719727, -0.05461736395955086, 0.16648629307746887, 0.4462968409061432, 0.9463372826576233, 0.15696442127227783, 0.02746725082397461, 1.4897021055221558, 1.1789193153381348, -0.3254920542240143, 0.2700880765914917, -0.7730597257614136, -0.4694415032863617, 0.5397853255271912, 0.2848933935165405, 0.015951156616210938, 0.2771775722503662, -1.0556567907333374, -0.26357606053352356, -0.42164739966392517, -0.8594847321510315, -0.7690298557281494, -0.4672659933567047, -0.37090039253234863, 1.6632308959960938, 0.04652504250407219, -0.549186646938324, -0.06063318997621536, -0.7798460125923157, -0.04681219533085823, -1.052506923675537, 0.29477187991142273, -0.19965596497058868, -0.16592639684677124, -0.11948893964290619, 1.7264851331710815, -0.9415297508239746, -1.9725419282913208, 0.25434398651123047, 0.2054026871919632, -0.35609859228134155, 0.22848647832870483, 1.6200543642044067, 0.6234340667724609, 1.4367101192474365, 1.2391260862350464, 0.9177661538124084, -0.7240360379219055, -1.2834261655807495, 0.5909402370452881, 1.0591014623641968, -1.4589952230453491, 0.7015383243560791, 0.0762038379907608, -0.4947088956832886, 0.5622016191482544, 1.2091809511184692, 0.43453294038772583, -2.0276856422424316, 0.7252929210662842, -0.996240496635437, 0.8364822268486023, 0.7362183928489685, 0.7027755379676819, 0.16451184451580048, 0.7908669710159302, -1.1896982192993164, -1.109235405921936, -0.693739652633667, -0.6955613493919373, 2.004317045211792, -0.3109011948108673, 0.6060950756072998, -0.20237775146961212, -1.3719706535339355, -0.08373858034610748, 0.6776041984558105, 0.39247530698776245, -0.5396975874900818, 0.7944097518920898, -0.5877406001091003, -0.9892107844352722, -1.2789958715438843, -0.46624141931533813, -1.1046240329742432, -0.9378315806388855, 1.0494641065597534, 0.8360482454299927, 0.30838125944137573, 1.8477789163589478, 0.7506458759307861, 0.3252246677875519, -2.5865745544433594, 0.9084175825119019, 0.31037458777427673, -0.10946714133024216, 0.8664538264274597, 0.4357178807258606, 1.0236388444900513, -0.09257803857326508, 0.6068536043167114, -2.490368366241455, 2.432668685913086, -0.14949549734592438, 0.6167667508125305, 0.025050047785043716, -0.21970166265964508, 1.055769681930542, 0.52214115858078, 0.45737990736961365, -1.0402510166168213, 0.5677154064178467, -0.5801404714584351, 1.2849797010421753, 0.8227478861808777, -0.7816780805587769, -0.0271458737552166, 1.3431549072265625, 0.5433390736579895, -0.5339602828025818, -0.9350109696388245, -1.0531307458877563, 0.9671338200569153, 1.7324806451797485, -0.13453441858291626, -0.015255041420459747, 0.8850440382957458, 0.6805945634841919, -1.2568002939224243, 0.06313864886760712, -0.7886462807655334, -0.7491421699523926, 1.5819549560546875, 2.0564968585968018, -0.11010544002056122, -0.18482060730457306, -0.8148623704910278, -1.214715600013733, 0.8201714754104614, 0.11663370579481125, 0.13300985097885132, 0.6413674354553223, -0.6452102661132812, 1.125520944595337, 0.9224788546562195, 0.9635128378868103, 0.2535803020000458, 0.369346559047699, 0.40225526690483093, -0.36670243740081787, -1.192158818244934, -0.2622196674346924, -0.9949432015419006, -2.5474698543548584, 0.553902804851532, -0.2059558480978012, -1.4206624031066895, -0.13335493206977844, -1.0144002437591553, 0.9566816091537476, -0.5470869541168213, -1.0314795970916748, -1.5880531072616577, 0.2318321317434311, -0.024548713117837906, 1.0038572549819946, -1.5582818984985352, -0.20204280316829681, 1.2543904781341553, 0.9011713266372681, -0.7432184219360352, 0.8757939338684082, 0.23793061077594757, 1.0327719449996948, 0.860266923904419, -0.32851698994636536, 0.5462601780891418, -0.004275540821254253, -1.344265341758728, 0.40719860792160034, 1.1853822469711304, 0.18022708594799042, 1.5344868898391724, -0.5843732357025146, 0.034477341920137405, 0.3019419014453888, -0.5299546122550964, -0.4546167552471161, -0.5871469378471375, 0.6621295213699341, 0.06847307085990906, -0.968659520149231, 0.03150079399347305, 0.03592067211866379, -0.18644125759601593, 0.16341657936573029, -1.476180076599121, -0.15191321074962616, -0.38189855217933655, -0.6384018063545227, -1.1221054792404175, -0.09592995047569275, 1.3053572177886963, -0.6790577173233032, -0.20212750136852264, 0.524586021900177, 0.2532966434955597, 0.528911292552948, 0.5789011716842651, -0.7643935680389404, -0.35560908913612366, -0.2500070631504059, -0.4116937518119812, 0.3573942482471466, 1.4318695068359375, -0.01869913563132286, -0.9761435985565186, 0.7050890922546387, -0.3723891079425812, 0.07254534959793091, 1.9470986127853394, 0.054972805082798004, -0.7711700201034546, 0.32190194725990295, -0.7177596092224121, 1.8869853019714355, 1.7414807081222534, 1.301555871963501, -0.11220743507146835, -0.966408371925354, 0.6258882880210876, -0.476073294878006, -0.41262108087539673, 0.8527863621711731, 0.3081468343734741, -0.33585473895072937, -1.3769680261611938, 0.7338106632232666, 1.3129481077194214, -0.9182519316673279, -0.912541389465332, 0.2235083281993866, -0.742350697517395, 1.0525861978530884, 0.7439466714859009, 0.34121811389923096, 0.32635536789894104, 1.6011890172958374, 0.8273621201515198, -0.43085384368896484, 0.5335654616355896, 0.5082811713218689, -0.16260944306850433, -2.0243895053863525, -1.2300243377685547, 0.4330011308193207, -0.6769922971725464, -1.5866268873214722, 1.4814214706420898, -1.1849684715270996, -1.0152400732040405, 0.576210618019104, 0.08870504051446915, 1.4315170049667358, 0.44200557470321655, 1.5400750637054443, 2.026549816131592, 0.8487366437911987, 0.44952327013015747, 1.2769745588302612, -0.1987285315990448, -0.5210718512535095, 1.8197592496871948, -0.48715850710868835, 0.4613529145717621, 1.0966483354568481, -0.2544751465320587, -1.034894585609436, -0.8450493216514587, -1.2625716924667358, -0.8128501176834106, 1.2433786392211914, 0.008405071683228016, -1.0916168689727783, 0.3165351450443268, 1.548210859298706, 0.07091442495584488, -0.33266234397888184, 0.6997158527374268, 0.3367469906806946, -0.8899882435798645, -0.10086140781641006, -0.8591485023498535, 0.6056092977523804, -0.1791473925113678, -0.340248703956604, 0.3194359242916107, 0.4539267420768738, 1.403259038925171, -0.031163185834884644, 0.12855087220668793, 1.1096668243408203, -1.3861758708953857, 1.584533929824829, -0.7025771141052246, 0.2345641702413559, -2.350477695465088, 1.3953986167907715, -0.7081435322761536, 1.942429542541504, -2.6263747215270996, 0.45556843280792236, -0.494186669588089, -0.4608839154243469, 0.24699434638023376, -0.267842173576355, 0.19796735048294067, -0.1432754397392273, -1.2632976770401, -0.046290818601846695, -0.6996505260467529, 0.6520927548408508, 1.0654973983764648, 1.4219648838043213, -1.1354745626449585, -0.36206769943237305, -1.7039213180541992, -0.17209815979003906, -0.7247939705848694, 0.32981792092323303, -1.9303867816925049, -0.2226068675518036, -1.868851661682129, -2.3764588832855225, -1.3288124799728394, -0.8331109285354614, 1.1392505168914795, 0.07479773461818695, -0.9125370979309082, 1.1869522333145142, -0.37106648087501526, -1.9198012351989746, 1.1619253158569336, -2.2078049182891846 ]
https://github.com/huggingface/datasets/issues/3475
The rotten_tomatoes dataset of movie reviews contains some reviews in Spanish
Hi @puzzler10, thanks for reporting. Please note this dataset is not hosted on Hugging Face Hub. See: https://github.com/huggingface/datasets/blob/c8f914473b041833fd47178fa4373cdcb56ac522/datasets/rotten_tomatoes/rotten_tomatoes.py#L42 If there are issues with the source data of a dataset, you should contact the data owners/creators instead. In the homepage associated with this dataset (http://www.cs.cornell.edu/people/pabo/movie-review-data/), you can find the authors of the dataset and how to contact them: > If you have any questions or comments regarding this site, please send email to Bo Pang or Lillian Lee. P.S.: Please also note that the example you gave of non-English review is in Portuguese (not Spanish). ;)
## Describe the bug See title. I don't think this is intentional and they probably should be removed. If they stay the dataset description should be at least updated to make it clear to the user. ## Steps to reproduce the bug Go to the [dataset viewer](https://huggingface.co/datasets/viewer/?dataset=rotten_tomatoes) for the dataset, set the offset to 4160 for the train dataset, and scroll through the results. I found ones at index 4166 and 4173. There's others too (e.g. index 2888) but those two are easy to find like that. ## Expected results English movie reviews only. ## Actual results Example of a Spanish movie review (4173): > "É uma pena que , mais tarde , o próprio filme abandone o tom de paródia e passe a utilizar os mesmos clichês que havia satirizado "
1,038
95
The rotten_tomatoes dataset of movie reviews contains some reviews in Spanish ## Describe the bug See title. I don't think this is intentional and they probably should be removed. If they stay the dataset description should be at least updated to make it clear to the user. ## Steps to reproduce the bug Go to the [dataset viewer](https://huggingface.co/datasets/viewer/?dataset=rotten_tomatoes) for the dataset, set the offset to 4160 for the train dataset, and scroll through the results. I found ones at index 4166 and 4173. There's others too (e.g. index 2888) but those two are easy to find like that. ## Expected results English movie reviews only. ## Actual results Example of a Spanish movie review (4173): > "É uma pena que , mais tarde , o próprio filme abandone o tom de paródia e passe a utilizar os mesmos clichês que havia satirizado " Hi @puzzler10, thanks for reporting. Please note this dataset is not hosted on Hugging Face Hub. See: https://github.com/huggingface/datasets/blob/c8f914473b041833fd47178fa4373cdcb56ac522/datasets/rotten_tomatoes/rotten_tomatoes.py#L42 If there are issues with the source data of a dataset, you should contact the data owners/creators instead. In the homepage associated with this dataset (http://www.cs.cornell.edu/people/pabo/movie-review-data/), you can find the authors of the dataset and how to contact them: > If you have any questions or comments regarding this site, please send email to Bo Pang or Lillian Lee. P.S.: Please also note that the example you gave of non-English review is in Portuguese (not Spanish). ;)
[ -1.168264627456665, -0.9530370831489563, -0.8167147040367126, 1.4102600812911987, -0.18070045113563538, -1.1979998350143433, 0.13066589832305908, -1.0464551448822021, 1.6384844779968262, -0.7721269130706787, 0.24494487047195435, -1.635195255279541, -0.06578972935676575, -0.5302693843841553, -0.7325543165206909, -0.9233903288841248, -0.41463911533355713, -0.8263784050941467, 1.0137970447540283, 2.58437442779541, 1.2213671207427979, -1.412052035331726, 2.7346692085266113, 0.6994308829307556, -0.21942177414894104, -1.0423921346664429, 0.5617254376411438, 0.06829315423965454, -1.2825148105621338, -0.4157026708126068, -0.9393654465675354, 0.04564722627401352, -0.5048806667327881, -0.48616689443588257, 0.07837025821208954, 0.37590497732162476, -0.1922299563884735, -0.3968391418457031, -0.5512964129447937, -0.7366300225257874, 0.48858314752578735, -0.39213716983795166, 0.9259321093559265, -0.3482832610607147, 1.8575222492218018, -0.5224409699440002, 0.3584245443344116, 0.7502760291099548, 1.3211050033569336, 0.16472314298152924, 0.030340461060404778, 0.3176828622817993, 0.3566074073314667, -0.013249905779957771, 0.46261900663375854, 1.1545617580413818, 0.6600438952445984, 0.46915724873542786, 0.7252628207206726, -2.1783337593078613, 1.3355772495269775, -0.987065851688385, 0.32318344712257385, 1.331990361213684, -1.0043630599975586, 0.43533074855804443, -1.8290611505508423, -0.07441788166761398, 0.6042817831039429, -2.252751350402832, 0.1741500049829483, -1.2953776121139526, -0.5048405528068542, 0.9464207291603088, 0.22813761234283447, -1.3000272512435913, 0.21758003532886505, -0.5428456664085388, 1.0851500034332275, 0.5159340500831604, 1.1765769720077515, -1.7215362787246704, 0.01593056507408619, -0.23793551325798035, 0.025415988638997078, -1.3383126258850098, -1.5980503559112549, 0.5177485346794128, 0.6431585550308228, 0.6060662865638733, -0.008401458151638508, 0.9655449986457825, -1.029542326927185, 0.805997371673584, -0.8955402970314026, -1.664355754852295, -1.4306812286376953, -2.2911291122436523, -2.2980620861053467, 0.8270083069801331, -0.43628907203674316, -0.560355544090271, 2.1096036434173584, -1.048426866531372, -1.8357090950012207, 1.1617552042007446, 0.29718634486198425, -0.02655033953487873, 2.4207043647766113, 0.1960216909646988, -0.7189107537269592, 0.3991330862045288, -0.6729705929756165, 0.8357962965965271, -0.3238700330257416, 1.3640336990356445, 0.548992931842804, -0.9760456085205078, 1.6760025024414062, -0.4535159468650818, 0.5281770825386047, -0.6675248742103577, -0.5603435635566711, -0.838370144367218, 0.2785990238189697, 1.8419122695922852, -0.36797815561294556, 1.5969722270965576, -0.3924807012081146, -1.6094564199447632, -1.5864899158477783, 0.8885137438774109, 0.5542945265769958, -0.8324546813964844, 0.021342264488339424, -0.3831444978713989, 0.039605192840099335, -0.004511356353759766, 1.054658055305481, 1.2161595821380615, 0.6734728813171387, -0.36270615458488464, -0.9187120795249939, 0.19088540971279144, -0.1011839434504509, -0.6384103298187256, -1.854572057723999, -0.33754926919937134, 0.11599711328744888, 0.6388087868690491, -1.2090144157409668, 1.6585562229156494, 0.8818460702896118, 1.8696660995483398, 1.0354044437408447, -0.4056791663169861, 1.4762976169586182, 0.007849248126149178, 1.8298592567443848, -0.5381808876991272, 0.6929872035980225, -0.3331562578678131, -1.1593644618988037, 0.784557580947876, -0.383304238319397, -2.0334627628326416, -0.8113653063774109, -0.7672950029373169, -0.23030942678451538, -0.738803505897522, 0.9270541071891785, -0.25190991163253784, -1.4038479328155518, 0.21802715957164764, -0.6400577425956726, 0.1563711315393448, -1.2095755338668823, 0.3344115912914276, 0.7547295689582825, -0.6160405278205872, 0.05838263779878616, -0.2831919193267822, -1.2974178791046143, -0.4007027745246887, 0.31092187762260437, 1.8403785228729248, -0.7667616009712219, 0.9249303936958313, 0.9875584840774536, -0.6942868232727051, 0.04813589155673981, 0.24005335569381714, -0.27938413619995117, 0.9002078175544739, -1.0621933937072754, -0.37818512320518494, 1.1238880157470703, -0.17034780979156494, -0.6399617195129395, 1.4257397651672363, 0.7024778723716736, -0.9495089650154114, -0.24400292336940765, -0.1702585369348526, -0.8803293108940125, -0.044447168707847595, -1.6392426490783691, -0.1635843962430954, 0.30761972069740295, -1.5169841051101685, -0.4844759404659271, -0.24882729351520538, 1.3252532482147217, -0.12335499376058578, 1.4890246391296387, -0.3187341094017029, -0.23576709628105164, -0.34415000677108765, -0.42095187306404114, 0.19409209489822388, -0.16676120460033417, -0.5931327939033508, 0.21753370761871338, -0.8772254586219788, 0.2915947139263153, 1.4617762565612793, 0.5276613831520081, 0.03760598599910736, 0.527685284614563, 1.0637078285217285, 0.39939218759536743, -0.07074284553527832, -0.8068623542785645, -1.5590273141860962, 2.073446273803711, -1.448789119720459, 1.9462182521820068, 0.852293074131012, -0.08554700762033463, -1.8083349466323853, -1.8635905981063843, 1.3661760091781616, 1.1229476928710938, 2.3368587493896484, 0.5317506194114685, 0.4502004086971283, -0.7678098082542419, -0.6842780709266663, 0.332698792219162, -1.070807933807373, -0.7642744779586792, 0.13657914102077484, 2.390519380569458, 1.6979774236679077, -0.476431667804718, -0.20167456567287445, -1.0259476900100708, 1.2917165756225586, -0.13407504558563232, 0.17297793924808502, 2.014930248260498, -0.2409283071756363, -1.06215238571167, 1.2889169454574585, -2.3536505699157715, 0.190120130777359, 2.0149903297424316, 0.25718769431114197, 0.06771574914455414, -1.4521657228469849, -0.5965575575828552, -0.26861587166786194, -0.42812666296958923, -1.2526313066482544, 0.6052286028862, -0.3148706257343292, -0.8385199904441833, -1.4926975965499878, 0.04174789786338806, -1.1886398792266846, -1.6611266136169434, 0.3243806064128876, 1.884414792060852, 1.9915821552276611, -0.7720255851745605, 1.4697203636169434, -0.21947146952152252, 0.09140428900718689, 1.2142008543014526, 1.284536361694336, 3.163304567337036, 1.8441678285598755, -1.3496901988983154, 0.6415988206863403, -0.05777410417795181, -0.4813059866428375, 1.1242856979370117, -1.093619465827942, 1.2598929405212402, -0.2052246779203415, -1.2994565963745117, -1.2260092496871948, 1.0350815057754517, 0.5113269686698914, 0.07249487191438675, -0.4844799041748047, 1.2407158613204956, 0.06065472960472107, 1.3153599500656128, 0.5756129026412964, -0.4064100384712219, 0.6803368330001831, -0.44696030020713806, -0.5392951369285583, 1.591003179550171, 0.17041753232479095, -1.408364176750183, -2.303710699081421, -0.2215791493654251, -0.7537630796432495, -0.01386231929063797, -0.6267592310905457, -1.0323247909545898, 1.6575230360031128, 0.4288126528263092, -1.2540602684020996, -0.35100680589675903, -0.3209652006626129, -0.620051383972168, 2.558248996734619, -1.4452704191207886, -0.1574324667453766, -0.9612388610839844, -0.5738239288330078, 1.5384128093719482, -1.1951318979263306, -0.11400732398033142, -0.9650335907936096, -0.673066258430481, -1.3447731733322144, -0.615652322769165, -0.06444976478815079, -0.9203968048095703, 0.7507182359695435, 0.195805162191391, -1.094019889831543, -0.19651678204536438, -0.8610461950302124, 0.8816691040992737, -0.11318735033273697, 0.28367865085601807, 1.868418574333191, 0.4242037236690521, -0.417717307806015, 0.6879652738571167, 1.160678505897522, 0.6565766334533691, -0.688866138458252, 0.1309451013803482, -0.7222350835800171, 0.2639721632003784, -1.3053807020187378, 0.2769246995449066, -2.9363627433776855, 0.6793522238731384, -0.07590706646442413, -0.0861906111240387, 0.04036743938922882, -1.1862694025039673, 1.081030249595642, 2.587244749069214, -1.1662170886993408, 0.4862777888774872, 0.35252562165260315, 1.1710410118103027, -1.5442969799041748, 0.3295935094356537, -0.426803320646286, 2.130293130874634, 0.18226151168346405, 1.2226189374923706, -0.5170512199401855, -2.1942949295043945, 0.5870782136917114, -1.247307300567627, -1.1423848867416382, 0.7457959055900574, -0.8526822328567505, 0.0871783047914505, -1.456122875213623, -0.21230056881904602, -0.9156911969184875, -1.2203798294067383, 0.7414007782936096, 0.12218701094388962, 0.4063200056552887, -0.5408254265785217, 0.29606395959854126, -2.15446138381958, -1.2579385042190552, -0.2051328420639038, -0.9637110233306885, 0.5106571912765503, -0.31902939081192017, 0.6258193254470825, -0.1329558938741684, 0.03445006161928177, 0.27107250690460205, 1.3017385005950928, 3.4027953147888184, 0.23717309534549713, 0.3686356246471405, -0.1045413464307785, -1.016888976097107, 1.4700305461883545, 0.9941532611846924, -0.15328368544578552, -0.5874810218811035, -1.0604487657546997, 1.3285201787948608, 1.9492206573486328, 1.0656375885009766, 0.043660469353199005, -0.7874484062194824, -0.6910712122917175, 0.0008437251672148705, 0.18954786658287048, 0.5082612037658691, 0.9530025124549866, 0.0074783265590667725, 0.12480085343122482, 1.5148741006851196, 1.300302267074585, -0.44649776816368103, 0.4563801884651184, -0.9076430797576904, -0.46314308047294617, 0.43064001202583313, 0.287875235080719, 0.007695602253079414, 0.39020034670829773, -1.029395580291748, -0.31018179655075073, -0.3866194784641266, -1.0034557580947876, -0.7203232049942017, -0.3971375524997711, -0.39303743839263916, 1.62238609790802, 0.12331473082304001, -0.4441934823989868, -0.012315064668655396, -0.7609994411468506, -0.168428435921669, -1.0587871074676514, 0.38203370571136475, -0.08818167448043823, -0.12142374366521835, -0.13792996108531952, 1.7404522895812988, -0.9543656706809998, -2.166801929473877, 0.2433769702911377, 0.23478259146213531, -0.3715883493423462, 0.20065857470035553, 1.6635808944702148, 0.5013949275016785, 1.4213006496429443, 1.3587791919708252, 0.9773773550987244, -0.6518563628196716, -1.2428518533706665, 0.7048285603523254, 0.9536994099617004, -1.5133498907089233, 0.7890124320983887, -0.07061021029949188, -0.5772262811660767, 0.7521457672119141, 1.280757188796997, 0.4424137771129608, -2.0408525466918945, 0.8900715112686157, -0.8261875510215759, 0.7014069557189941, 0.644437313079834, 0.7718932628631592, 0.2306269109249115, 0.8384160995483398, -1.3067281246185303, -1.147022008895874, -0.7524363398551941, -0.61952805519104, 1.9706782102584839, -0.24042701721191406, 0.5833956599235535, -0.18964716792106628, -1.2315800189971924, -0.1819387972354889, 0.6544599533081055, 0.3303184509277344, -0.46236085891723633, 0.8327804803848267, -0.5856207013130188, -1.1555124521255493, -1.393472671508789, -0.41789841651916504, -1.0350053310394287, -0.8002561330795288, 1.0085577964782715, 0.7971842885017395, 0.30460935831069946, 1.9181386232376099, 0.4719173312187195, 0.26745566725730896, -2.683483362197876, 0.8904038667678833, 0.33485856652259827, -0.012401914224028587, 0.8998465538024902, 0.2835642993450165, 1.0626713037490845, 0.02222433313727379, 0.5714167356491089, -2.3385729789733887, 2.253690719604492, -0.23155935108661652, 0.7728414535522461, 0.02743471972644329, -0.18066392838954926, 1.0802302360534668, 0.575400710105896, 0.6333832144737244, -1.063435673713684, 0.7537710070610046, -0.6008134484291077, 1.1422669887542725, 0.9302211999893188, -0.8497653603553772, 0.00484488345682621, 1.3826384544372559, 0.47885000705718994, -0.4407365024089813, -0.92861407995224, -0.8711506724357605, 0.91930091381073, 1.7729405164718628, -0.05925167351961136, 0.059844620525836945, 0.8495146036148071, 0.6214848756790161, -1.3285613059997559, 0.1582116037607193, -0.7383818626403809, -0.7283260822296143, 1.5850088596343994, 2.041588306427002, -0.10571157932281494, -0.21019624173641205, -0.6998631358146667, -1.2824074029922485, 0.7696065306663513, -0.06030464172363281, 0.18742190301418304, 0.7216129302978516, -0.6985765099525452, 1.1120946407318115, 0.801760733127594, 0.90459144115448, 0.038519375026226044, 0.3543381094932556, 0.30737656354904175, -0.2771977484226227, -1.1383122205734253, -0.20415504276752472, -1.0945507287979126, -2.447401523590088, 0.43246427178382874, -0.2737182676792145, -1.4681968688964844, 0.04121529310941696, -0.9886661171913147, 0.954614520072937, -0.597926139831543, -1.12514066696167, -1.5841801166534424, 0.235951766371727, -0.12412048131227493, 0.94469153881073, -1.608733892440796, -0.10918092727661133, 1.2059499025344849, 0.9420349597930908, -0.5576097369194031, 1.0871995687484741, 0.29784926772117615, 0.96834397315979, 0.8289625644683838, -0.3602542281150818, 0.44281741976737976, 0.15586450695991516, -1.3529932498931885, 0.4143679738044739, 1.1573739051818848, 0.16358359158039093, 1.456781029701233, -0.5726611018180847, 0.044013798236846924, 0.4794765114784241, -0.49193310737609863, -0.4123067259788513, -0.4481891691684723, 0.7436336874961853, 0.006049757823348045, -0.9516400098800659, 0.0015813373029232025, -0.15036174654960632, -0.2544461190700531, 0.21276187896728516, -1.4434701204299927, -0.2914890646934509, -0.38880637288093567, -0.5933042764663696, -1.2615524530410767, -0.006628229282796383, 1.3698699474334717, -0.8240492939949036, -0.26999253034591675, 0.5210537314414978, 0.43837085366249084, 0.5303506851196289, 0.6215624809265137, -0.591452419757843, -0.33322715759277344, -0.2869606614112854, -0.2996519207954407, 0.2869349718093872, 1.2573219537734985, -0.17159801721572876, -0.9480683207511902, 0.7434108853340149, -0.378356009721756, 0.06535559892654419, 1.9676378965377808, 0.028814559802412987, -0.746154248714447, 0.3263190686702728, -0.6328061819076538, 1.8598244190216064, 1.689998984336853, 1.407769799232483, -0.0970403328537941, -0.9419192671775818, 0.623372495174408, -0.22745677828788757, -0.32594358921051025, 0.9833858609199524, 0.5142197012901306, -0.12517280876636505, -1.4109021425247192, 0.596288800239563, 1.2639470100402832, -0.9294775724411011, -0.6752151250839233, 0.10418254137039185, -0.8178144693374634, 1.1202189922332764, 0.7067953944206238, 0.36035409569740295, 0.1255970150232315, 1.5582300424575806, 0.6801583170890808, -0.45637550950050354, 0.5519047379493713, 0.4670623540878296, -0.1571178436279297, -2.1344070434570312, -1.0320265293121338, 0.24576911330223083, -0.3926313519477844, -1.5849225521087646, 1.2795318365097046, -1.1891350746154785, -0.9368590712547302, 0.4969384968280792, 0.0486765131354332, 1.3667057752609253, 0.3195033073425293, 1.6795086860656738, 2.144570827484131, 0.9404157996177673, 0.26401758193969727, 1.3676650524139404, -0.04724050313234329, -0.33460283279418945, 1.8054661750793457, -0.4276934266090393, 0.5058544278144836, 1.0747168064117432, -0.3871636688709259, -1.0452481508255005, -0.7740488648414612, -1.2222199440002441, -0.6175376772880554, 1.1627779006958008, 0.04813672602176666, -1.0902578830718994, 0.20967677235603333, 1.5343612432479858, 0.06155113875865936, -0.299076110124588, 0.6128664612770081, 0.5233621001243591, -0.724415123462677, -0.1195283755660057, -0.8893395662307739, 0.47445398569107056, -0.2005128711462021, -0.33355364203453064, 0.321574330329895, 0.4563698470592499, 1.3059349060058594, -0.05119945853948593, 0.15670819580554962, 1.2335479259490967, -1.392064094543457, 1.495872139930725, -0.589470386505127, 0.21255581080913544, -2.4711363315582275, 1.4659076929092407, -0.7707483172416687, 1.9220943450927734, -2.608870267868042, 0.4433966279029846, -0.6109727621078491, -0.4264174997806549, 0.2897733151912689, -0.35471460223197937, 0.1141575276851654, -0.20055484771728516, -1.042323112487793, -0.11784274876117706, -0.7093055844306946, 0.5851010084152222, 1.1831392049789429, 1.2950273752212524, -1.1150262355804443, -0.24568888545036316, -1.7443233728408813, -0.2023726850748062, -0.7157581448554993, 0.31990936398506165, -2.0052330493927, -0.14482943713665009, -1.9017175436019897, -2.432508945465088, -1.3911612033843994, -0.8898148536682129, 1.0208711624145508, 0.14135858416557312, -0.9234587550163269, 1.1604065895080566, -0.3288258910179138, -1.8326362371444702, 1.084852695465088, -2.157116174697876 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
As discussed, I remember I set `decoded=False` here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
1,039
32
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge As discussed, I remember I set `decoded=False` here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed.
[ -1.2167608737945557, -0.8927983045578003, -0.7541139721870422, 1.3989320993423462, -0.16616639494895935, -1.2591078281402588, 0.19878971576690674, -1.0144238471984863, 1.7259020805358887, -0.8327394723892212, 0.30402809381484985, -1.6457687616348267, 0.05433620139956474, -0.5373620390892029, -0.7524586915969849, -0.8368141651153564, -0.42495161294937134, -0.7621894478797913, 1.0779054164886475, 2.4953835010528564, 1.247201681137085, -1.31514310836792, 2.7356014251708984, 0.6241557002067566, -0.19074849784374237, -0.929236114025116, 0.565462052822113, -0.054290104657411575, -1.3536200523376465, -0.4350810945034027, -0.9149220585823059, -0.07322952151298523, -0.5704241394996643, -0.5452740788459778, 0.00401532556861639, 0.39639413356781006, -0.2579682767391205, -0.4696515202522278, -0.4962206482887268, -0.7822995781898499, 0.405958354473114, -0.4325641095638275, 0.9556775093078613, -0.2791397273540497, 1.8184897899627686, -0.5791622400283813, 0.4698716402053833, 0.7482067942619324, 1.3548932075500488, 0.20655584335327148, -0.009766381233930588, 0.3086712956428528, 0.3848986327648163, -0.022565413266420364, 0.5288442373275757, 1.113814115524292, 0.6908340454101562, 0.44250208139419556, 0.7440105080604553, -2.224182605743408, 1.3092256784439087, -0.9679481387138367, 0.22290366888046265, 1.3945202827453613, -0.8873663544654846, 0.34550100564956665, -1.7867165803909302, -0.02421153336763382, 0.5594822764396667, -2.2608509063720703, 0.22464239597320557, -1.3374133110046387, -0.4965738356113434, 1.023934245109558, 0.36626696586608887, -1.2102758884429932, 0.07307638227939606, -0.41729411482810974, 1.0303579568862915, 0.4518619775772095, 1.1289117336273193, -1.7125130891799927, -0.10388126969337463, -0.30279111862182617, 0.15434187650680542, -1.2236350774765015, -1.6055684089660645, 0.5015887022018433, 0.6489564180374146, 0.5889347195625305, -0.09490616619586945, 1.0490018129348755, -0.9377357959747314, 0.7203313112258911, -0.9699093103408813, -1.7377727031707764, -1.3421893119812012, -2.202110767364502, -2.241900682449341, 0.7250829339027405, -0.4883835017681122, -0.48844268918037415, 2.0787274837493896, -1.0389041900634766, -1.75743567943573, 1.1184539794921875, 0.22418701648712158, -0.038920700550079346, 2.3687198162078857, 0.25727367401123047, -0.7235943078994751, 0.47675490379333496, -0.7662269473075867, 0.7205758690834045, -0.33772286772727966, 1.3117468357086182, 0.34244590997695923, -1.0128824710845947, 1.5441747903823853, -0.42798852920532227, 0.6307360529899597, -0.683279275894165, -0.4481024444103241, -0.7672387361526489, 0.32250118255615234, 1.9031658172607422, -0.27427950501441956, 1.524817943572998, -0.4050259292125702, -1.655181646347046, -1.6519956588745117, 0.8469930291175842, 0.5106228590011597, -0.7186275124549866, 0.08537794649600983, -0.3277316689491272, 0.12805089354515076, -0.018062986433506012, 1.0945245027542114, 1.2642619609832764, 0.7609724402427673, -0.35396963357925415, -0.8800105452537537, 0.20865052938461304, -0.04734111204743385, -0.7613939642906189, -1.7492412328720093, -0.32722991704940796, 0.17683131992816925, 0.6906030774116516, -1.2609565258026123, 1.7910510301589966, 0.9138476848602295, 1.927320957183838, 1.0126192569732666, -0.3683241605758667, 1.4837061166763306, 0.15469111502170563, 1.8465447425842285, -0.45374685525894165, 0.6798730492591858, -0.38612398505210876, -1.1444302797317505, 0.829096257686615, -0.3308194577693939, -2.0037965774536133, -0.7756133675575256, -0.8171270489692688, -0.2169884890317917, -0.7437624335289001, 0.9339142441749573, -0.30440643429756165, -1.384475827217102, 0.23043757677078247, -0.7509841918945312, 0.10706263780593872, -1.2603120803833008, 0.3121235966682434, 0.7316256165504456, -0.6827990412712097, 0.06709356606006622, -0.25873133540153503, -1.2857226133346558, -0.3777858018875122, 0.27203354239463806, 1.9093115329742432, -0.7530642747879028, 0.9361007213592529, 1.0762883424758911, -0.6599023342132568, -0.006332378834486008, 0.3312304615974426, -0.29775744676589966, 0.8870407938957214, -1.0942567586898804, -0.32842209935188293, 1.2003682851791382, -0.14759531617164612, -0.605997622013092, 1.4677976369857788, 0.6949268579483032, -1.0063637495040894, -0.16383829712867737, -0.11441302299499512, -0.7865526080131531, 0.04016324132680893, -1.6548610925674438, -0.12401725351810455, 0.43943965435028076, -1.5164395570755005, -0.4371510148048401, -0.22608758509159088, 1.278403878211975, -0.1596194952726364, 1.3706014156341553, -0.32249748706817627, -0.1855056881904602, -0.38950425386428833, -0.3546372652053833, 0.09923416376113892, -0.2310919612646103, -0.6296325922012329, 0.17529428005218506, -0.8212869763374329, 0.27886641025543213, 1.4481905698776245, 0.3431943655014038, 0.013495801016688347, 0.4116396903991699, 1.1027708053588867, 0.39823147654533386, -0.10104972124099731, -0.8592333793640137, -1.5676136016845703, 2.0601227283477783, -1.4855378866195679, 1.9820035696029663, 0.7607736587524414, -0.07962825894355774, -1.7790876626968384, -1.8701680898666382, 1.3792976140975952, 1.121556282043457, 2.407618761062622, 0.5489046573638916, 0.43741992115974426, -0.7950063347816467, -0.6607467532157898, 0.3062520921230316, -0.976146399974823, -0.7732359170913696, 0.1393241584300995, 2.419160842895508, 1.667901873588562, -0.4361284673213959, -0.19526433944702148, -0.9985907077789307, 1.2971775531768799, -0.14439429342746735, 0.20334208011627197, 1.9511709213256836, -0.23668722808361053, -1.0333887338638306, 1.2601617574691772, -2.2624919414520264, 0.15895643830299377, 1.9482277631759644, 0.24298696219921112, 0.11071670055389404, -1.4112194776535034, -0.6926141977310181, -0.31151410937309265, -0.4034649133682251, -1.2556997537612915, 0.5348827242851257, -0.23268531262874603, -0.818968653678894, -1.427138328552246, 0.18858738243579865, -1.124703288078308, -1.644884705543518, 0.20070134103298187, 1.917965054512024, 2.0174388885498047, -0.825387179851532, 1.5393747091293335, -0.2915090322494507, 0.15658560395240784, 1.2487341165542603, 1.1310694217681885, 3.1098546981811523, 1.9209362268447876, -1.2988569736480713, 0.6294143795967102, -0.12113231420516968, -0.4286738932132721, 1.1273964643478394, -1.1897523403167725, 1.3055328130722046, -0.1461220234632492, -1.2133088111877441, -1.1809910535812378, 0.9479478597640991, 0.48660290241241455, 0.05966046079993248, -0.45276159048080444, 1.1984388828277588, 0.043138835579156876, 1.293962001800537, 0.5290637016296387, -0.27349090576171875, 0.7094082236289978, -0.42948606610298157, -0.4994807541370392, 1.504416584968567, 0.19256344437599182, -1.431972861289978, -2.256882667541504, -0.20133312046527863, -0.8818495273590088, 0.06762683391571045, -0.6346893906593323, -1.0559027194976807, 1.6209073066711426, 0.39619460701942444, -1.2049401998519897, -0.31007853150367737, -0.34878799319267273, -0.5738727450370789, 2.7109322547912598, -1.400023341178894, -0.19153481721878052, -1.030151605606079, -0.6146112084388733, 1.6027246713638306, -1.2179280519485474, -0.16664443910121918, -1.0568046569824219, -0.5355431437492371, -1.337337851524353, -0.5097378492355347, -0.023970596492290497, -0.8864176869392395, 0.7981221675872803, 0.2723467946052551, -1.2135401964187622, -0.32424667477607727, -0.9318838119506836, 0.8532167673110962, -0.09482823312282562, 0.20783042907714844, 1.8810839653015137, 0.46029743552207947, -0.35850194096565247, 0.7556003332138062, 1.1189392805099487, 0.6308953762054443, -0.6710626482963562, 0.17864154279232025, -0.7426044344902039, 0.32051801681518555, -1.3387103080749512, 0.24667464196681976, -2.8071653842926025, 0.6089355945587158, -0.06006421893835068, -0.09497725963592529, 0.0007518157362937927, -1.3218801021575928, 1.1198241710662842, 2.587160348892212, -1.1561492681503296, 0.4704510569572449, 0.3447633385658264, 1.2515599727630615, -1.5574883222579956, 0.28648841381073, -0.4639735817909241, 2.1274263858795166, 0.24453164637088776, 1.2333552837371826, -0.49476155638694763, -2.3074111938476562, 0.65730881690979, -1.2404296398162842, -1.1717692613601685, 0.7877733111381531, -0.8360840082168579, 0.08520503342151642, -1.3538423776626587, -0.27897727489471436, -0.8488631844520569, -1.2209187746047974, 0.7223944067955017, 0.06529027223587036, 0.4555807411670685, -0.5934973955154419, 0.3416382074356079, -2.231456756591797, -1.3591338396072388, -0.23910748958587646, -0.9338162541389465, 0.476214200258255, -0.3645475506782532, 0.7259049415588379, -0.15795882046222687, -0.0031798058189451694, 0.36415520310401917, 1.4295040369033813, 3.444946050643921, 0.2027108371257782, 0.3721076250076294, -0.22109462320804596, -0.9680206179618835, 1.4027882814407349, 0.9387640357017517, -0.1689920723438263, -0.5219082832336426, -1.0498871803283691, 1.1875633001327515, 1.9603646993637085, 1.0330085754394531, -0.01379875186830759, -0.7791306972503662, -0.7612285614013672, 0.025387495756149292, 0.151217520236969, 0.4732116460800171, 0.9445013403892517, 0.08088108897209167, 0.09867842495441437, 1.4507193565368652, 1.1311811208724976, -0.4305444359779358, 0.3759217858314514, -0.8420435190200806, -0.4701046049594879, 0.5415880084037781, 0.28353384137153625, 0.014707695692777634, 0.3608250319957733, -1.0584537982940674, -0.19224108755588531, -0.4104875922203064, -0.8988763689994812, -0.7403146624565125, -0.3589441180229187, -0.3013206720352173, 1.6173733472824097, 0.08685062825679779, -0.5226618647575378, 0.021878421306610107, -0.7497936487197876, -0.09329740703105927, -1.0484524965286255, 0.29593420028686523, -0.18586982786655426, -0.11580008268356323, -0.07639534771442413, 1.784601092338562, -0.9646602272987366, -2.046483039855957, 0.25256219506263733, 0.1904640942811966, -0.3278193771839142, 0.25271323323249817, 1.6586802005767822, 0.6331473588943481, 1.4671489000320435, 1.3197475671768188, 1.006361722946167, -0.618965744972229, -1.3025834560394287, 0.6323816180229187, 0.9236590266227722, -1.3457969427108765, 0.7927575707435608, -0.03996862471103668, -0.5115476846694946, 0.6296715140342712, 1.2721562385559082, 0.426121324300766, -2.0566232204437256, 0.7784815430641174, -0.8764692544937134, 0.7812819480895996, 0.7104102373123169, 0.7743411064147949, 0.15586410462856293, 0.7876347899436951, -1.204856276512146, -1.1614937782287598, -0.6733676791191101, -0.7006586790084839, 1.9432553052902222, -0.27210307121276855, 0.5940160751342773, -0.1905495971441269, -1.3097872734069824, -0.06811735033988953, 0.6978858709335327, 0.3913425803184509, -0.49565115571022034, 0.8136241436004639, -0.6484420895576477, -1.0856505632400513, -1.397017478942871, -0.5316904187202454, -1.0248535871505737, -0.9529373049736023, 1.0280745029449463, 0.8241462111473083, 0.3564773201942444, 1.8652727603912354, 0.6585021615028381, 0.2442162185907364, -2.625839948654175, 0.8735182285308838, 0.26795169711112976, -0.03316693753004074, 0.8943349719047546, 0.3201281428337097, 0.9974893927574158, -0.02741732820868492, 0.5270267128944397, -2.4157724380493164, 2.320343494415283, -0.2853721082210541, 0.7303442358970642, -0.058639541268348694, -0.20174497365951538, 1.0780580043792725, 0.6063328385353088, 0.5385145545005798, -1.1053563356399536, 0.7075091600418091, -0.6224111318588257, 1.2060000896453857, 0.8474146127700806, -0.8622527718544006, 0.019454197958111763, 1.3601607084274292, 0.4761393964290619, -0.5361043810844421, -0.968471109867096, -0.9977144598960876, 0.95182204246521, 1.7574118375778198, -0.049781434237957, -0.03649553284049034, 0.8036862015724182, 0.6435556411743164, -1.3352606296539307, 0.07451128959655762, -0.742432177066803, -0.7514707446098328, 1.6801822185516357, 2.077552318572998, -0.11953112483024597, -0.24959087371826172, -0.7100206613540649, -1.2383378744125366, 0.7926641702651978, 0.050394684076309204, 0.11566424369812012, 0.653590977191925, -0.662509560585022, 1.1300853490829468, 0.8840352892875671, 0.9514310956001282, 0.16863325238227844, 0.2942587435245514, 0.3741740584373474, -0.3816651403903961, -1.1611100435256958, -0.24243909120559692, -1.109265923500061, -2.5119521617889404, 0.3946177065372467, -0.2371915876865387, -1.475277304649353, 0.028956424444913864, -1.0249953269958496, 0.8830807209014893, -0.5557996034622192, -1.102996587753296, -1.5112028121948242, 0.1750856190919876, -0.03624574840068817, 0.9234644770622253, -1.6137038469314575, -0.133056640625, 1.2647916078567505, 1.0291589498519897, -0.5764396786689758, 0.9837597012519836, 0.20985138416290283, 0.977200984954834, 0.8860890865325928, -0.36630353331565857, 0.46847808361053467, 0.0835300087928772, -1.3188074827194214, 0.431905597448349, 1.218898057937622, 0.19775018095970154, 1.5117908716201782, -0.576751172542572, -0.008940164931118488, 0.3905417323112488, -0.47333431243896484, -0.47427892684936523, -0.6037970185279846, 0.6327207088470459, 0.11420413851737976, -0.9213874340057373, 0.004620128311216831, -0.09113655984401703, -0.1908947378396988, 0.2018687129020691, -1.4937928915023804, -0.13420765101909637, -0.40746650099754333, -0.6433078646659851, -1.2604079246520996, -0.07908132672309875, 1.378485083580017, -0.820376992225647, -0.1992567628622055, 0.499870240688324, 0.3196326494216919, 0.48556146025657654, 0.6840986609458923, -0.6902891993522644, -0.30827420949935913, -0.2518880367279053, -0.39722681045532227, 0.3208960294723511, 1.3286606073379517, -0.09630411863327026, -1.0381205081939697, 0.6884174942970276, -0.3353831470012665, 0.08868826925754547, 1.9311374425888062, 0.04931944981217384, -0.8227925300598145, 0.30527547001838684, -0.7787945866584778, 1.8911188840866089, 1.7240192890167236, 1.3331243991851807, -0.09736409783363342, -1.0154529809951782, 0.6510383486747742, -0.3237769901752472, -0.4466102719306946, 0.9909564852714539, 0.43219777941703796, -0.2761670649051666, -1.4175177812576294, 0.6658180356025696, 1.2249906063079834, -0.908856987953186, -0.7387280464172363, 0.11718855798244476, -0.8127865195274353, 1.1177846193313599, 0.6931491494178772, 0.3777253329753876, 0.22493276000022888, 1.6159802675247192, 0.795586347579956, -0.4616716504096985, 0.5576857924461365, 0.5149745345115662, -0.12833651900291443, -2.129574775695801, -1.1067408323287964, 0.2893810570240021, -0.47404661774635315, -1.5911180973052979, 1.4046519994735718, -1.149633765220642, -0.9939647316932678, 0.577036440372467, 0.15267446637153625, 1.4475826025009155, 0.3194946348667145, 1.6153167486190796, 2.1144425868988037, 0.928329348564148, 0.36013081669807434, 1.254804015159607, -0.17830047011375427, -0.4078530967235565, 1.8059470653533936, -0.5102213025093079, 0.4691448509693146, 1.0531054735183716, -0.32794541120529175, -1.0603593587875366, -0.8336001038551331, -1.2664533853530884, -0.6948570609092712, 1.171370029449463, 0.0634831041097641, -1.059051513671875, 0.29424089193344116, 1.558319330215454, 0.08313661813735962, -0.3431107997894287, 0.62296062707901, 0.44548872113227844, -0.8379740118980408, -0.10763262212276459, -0.9598016142845154, 0.5040462017059326, -0.13529588282108307, -0.329194039106369, 0.32852664589881897, 0.49455660581588745, 1.3885172605514526, -0.04248428717255592, 0.08820274472236633, 1.2239724397659302, -1.3987741470336914, 1.5344505310058594, -0.7154384851455688, 0.27190619707107544, -2.3621368408203125, 1.4007117748260498, -0.7760668396949768, 1.9102845191955566, -2.6444387435913086, 0.45829373598098755, -0.5680533647537231, -0.45718708634376526, 0.33201733231544495, -0.33629894256591797, 0.1431608349084854, -0.17898795008659363, -1.1226524114608765, -0.186554417014122, -0.7403054237365723, 0.5930023789405823, 1.134482979774475, 1.3547563552856445, -1.0687755346298218, -0.2732178866863251, -1.7283861637115479, -0.13642393052577972, -0.7856001853942871, 0.35306817293167114, -1.932393193244934, -0.16508610546588898, -1.9398659467697144, -2.416532278060913, -1.2870588302612305, -0.7994824051856995, 1.0888936519622803, 0.17255981266498566, -0.8783034086227417, 1.2278169393539429, -0.3521571457386017, -1.8242050409317017, 1.1243308782577515, -2.149864912033081 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
> I set decoded=False here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed https://github.com/huggingface/datasets/pull/3430 will add more control to decoding, so I think it's OK to enable decoding in `__iter__` for now. After we merge the linked PR, the user can easily disable it again.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
1,039
61
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge > I set decoded=False here to avoid decoding just by iterating over examples of dataset. We wanted to decode only if the "audio" field (for Audio feature) was accessed https://github.com/huggingface/datasets/pull/3430 will add more control to decoding, so I think it's OK to enable decoding in `__iter__` for now. After we merge the linked PR, the user can easily disable it again.
[ -1.2198538780212402, -0.901776134967804, -0.7563875317573547, 1.3935720920562744, -0.1492767482995987, -1.2499687671661377, 0.18913187086582184, -1.009010910987854, 1.7025476694107056, -0.8176207542419434, 0.29444748163223267, -1.6544036865234375, 0.0390995591878891, -0.5289384126663208, -0.7600352168083191, -0.8384116291999817, -0.4107000231742859, -0.7547076940536499, 1.0679068565368652, 2.5009405612945557, 1.2609608173370361, -1.3066473007202148, 2.7409145832061768, 0.6364601254463196, -0.19015225768089294, -0.942300021648407, 0.5634401440620422, -0.047514624893665314, -1.3592113256454468, -0.42530256509780884, -0.9145289659500122, -0.05169067531824112, -0.5627883672714233, -0.5360091924667358, 0.013545640744268894, 0.40908706188201904, -0.2604528069496155, -0.45431485772132874, -0.5254592895507812, -0.7753770351409912, 0.3967997133731842, -0.42600294947624207, 0.9457316398620605, -0.27129337191581726, 1.818334937095642, -0.5741149187088013, 0.4587695598602295, 0.7361220121383667, 1.3524891138076782, 0.1970779448747635, 0.007284135557711124, 0.2980988621711731, 0.38604360818862915, -0.025068365037441254, 0.5166447758674622, 1.142350673675537, 0.6973111033439636, 0.43924617767333984, 0.729724645614624, -2.223759651184082, 1.3103727102279663, -0.9456921219825745, 0.22528541088104248, 1.3946685791015625, -0.8884588479995728, 0.34478068351745605, -1.798566222190857, -0.019522162154316902, 0.5562321543693542, -2.263794183731079, 0.21974876523017883, -1.3335334062576294, -0.5055289268493652, 1.0053538084030151, 0.3531889021396637, -1.2081290483474731, 0.0857972651720047, -0.42555922269821167, 1.0353471040725708, 0.4657393991947174, 1.1480522155761719, -1.7000033855438232, -0.09913260489702225, -0.283079594373703, 0.16397260129451752, -1.2260795831680298, -1.6245225667953491, 0.5094116926193237, 0.6478040814399719, 0.606853723526001, -0.1022859588265419, 1.0459619760513306, -0.9405094385147095, 0.7145669460296631, -0.96468585729599, -1.731223464012146, -1.3445931673049927, -2.2140324115753174, -2.242774486541748, 0.7182751893997192, -0.49019038677215576, -0.49058130383491516, 2.0700523853302, -1.032650351524353, -1.7767744064331055, 1.1052331924438477, 0.23152539134025574, -0.019127938896417618, 2.3754825592041016, 0.25291451811790466, -0.7315337657928467, 0.4729444086551666, -0.7481674551963806, 0.739812970161438, -0.3402971029281616, 1.3196827173233032, 0.3578801155090332, -1.0094108581542969, 1.5394779443740845, -0.4408668875694275, 0.6215294003486633, -0.6820248365402222, -0.44639313220977783, -0.7655215859413147, 0.3195769190788269, 1.8947712182998657, -0.29564422369003296, 1.5297855138778687, -0.40972933173179626, -1.6429145336151123, -1.6482279300689697, 0.8450210094451904, 0.5234470963478088, -0.7247871160507202, 0.07400050014257431, -0.34353137016296387, 0.12454266101121902, -0.020487742498517036, 1.0907363891601562, 1.2581084966659546, 0.753940224647522, -0.3572045862674713, -0.8703422546386719, 0.2102895975112915, -0.041420258581638336, -0.7487516403198242, -1.7592978477478027, -0.29940763115882874, 0.20727583765983582, 0.6860084533691406, -1.2693928480148315, 1.776479721069336, 0.909187376499176, 1.9388303756713867, 0.9968520998954773, -0.374886691570282, 1.4880499839782715, 0.14500005543231964, 1.83912193775177, -0.4578993618488312, 0.6750723123550415, -0.3857819437980652, -1.1555081605911255, 0.8173571228981018, -0.33703941106796265, -2.0096864700317383, -0.7690895795822144, -0.828237771987915, -0.21031251549720764, -0.7562666535377502, 0.9370929598808289, -0.2990283668041229, -1.3789668083190918, 0.21970003843307495, -0.7496060729026794, 0.11564469337463379, -1.2689968347549438, 0.28827419877052307, 0.7445873022079468, -0.6827688813209534, 0.046372272074222565, -0.24872754514217377, -1.2846049070358276, -0.3878420293331146, 0.2902589738368988, 1.9122869968414307, -0.7394747138023376, 0.9385204315185547, 1.080107569694519, -0.6665425300598145, 0.022060241550207138, 0.3240593373775482, -0.30137109756469727, 0.8850114345550537, -1.0923861265182495, -0.32743754982948303, 1.1984645128250122, -0.1479933112859726, -0.6068259477615356, 1.475907802581787, 0.7185683846473694, -1.013454794883728, -0.16829581558704376, -0.10464365035295486, -0.769360363483429, 0.030532460659742355, -1.6477959156036377, -0.11302156001329422, 0.42567509412765503, -1.512306809425354, -0.44523969292640686, -0.24295097589492798, 1.28194260597229, -0.17075656354427338, 1.3748842477798462, -0.3134821951389313, -0.1805604100227356, -0.3997645676136017, -0.36811697483062744, 0.09460382163524628, -0.2510867118835449, -0.6279663443565369, 0.17678028345108032, -0.8266926407814026, 0.27998167276382446, 1.4578574895858765, 0.35692864656448364, 0.01856420189142227, 0.41121619939804077, 1.1120636463165283, 0.3908507227897644, -0.11089163273572922, -0.8569733500480652, -1.568961262702942, 2.045766592025757, -1.4766275882720947, 1.9827756881713867, 0.7697291970252991, -0.07679680734872818, -1.7810161113739014, -1.8859031200408936, 1.3780473470687866, 1.1160093545913696, 2.4268524646759033, 0.5428563952445984, 0.42579594254493713, -0.7932896018028259, -0.6668356657028198, 0.3033912777900696, -0.9732878804206848, -0.7712346315383911, 0.14075914025306702, 2.4054713249206543, 1.694473385810852, -0.44036874175071716, -0.218440979719162, -1.0079610347747803, 1.2938644886016846, -0.14713315665721893, 0.19914141297340393, 1.9506514072418213, -0.2424219399690628, -1.022165060043335, 1.258496642112732, -2.262068748474121, 0.16613759100437164, 1.9510151147842407, 0.24243111908435822, 0.10769844055175781, -1.4146333932876587, -0.6924971342086792, -0.33187592029571533, -0.4061095714569092, -1.2519267797470093, 0.5346576571464539, -0.2245991826057434, -0.8318505883216858, -1.4347652196884155, 0.1814371943473816, -1.1177161931991577, -1.651174545288086, 0.21979528665542603, 1.9208635091781616, 2.025752067565918, -0.8308591246604919, 1.5289121866226196, -0.28855884075164795, 0.1291586458683014, 1.2536449432373047, 1.139414668083191, 3.118730306625366, 1.9241485595703125, -1.304060935974121, 0.6443207263946533, -0.12973642349243164, -0.4277191460132599, 1.14121413230896, -1.1901003122329712, 1.2871932983398438, -0.16308431327342987, -1.2266196012496948, -1.1763885021209717, 0.9592390060424805, 0.49327990412712097, 0.0609380342066288, -0.4799330234527588, 1.199793815612793, 0.04324553906917572, 1.3064658641815186, 0.5384072661399841, -0.2781042456626892, 0.7028797268867493, -0.4163912534713745, -0.5040628910064697, 1.4970154762268066, 0.1767677664756775, -1.4446680545806885, -2.255406379699707, -0.20403996109962463, -0.8875104188919067, 0.05520106479525566, -0.6406838297843933, -1.0679699182510376, 1.617380142211914, 0.4093571603298187, -1.2023053169250488, -0.31047648191452026, -0.3635532259941101, -0.5739864706993103, 2.6957316398620605, -1.403292179107666, -0.18097788095474243, -1.044312834739685, -0.5887043476104736, 1.6044464111328125, -1.204756498336792, -0.16828830540180206, -1.060283899307251, -0.549260139465332, -1.3454149961471558, -0.5201643109321594, -0.017690807580947876, -0.8703174591064453, 0.7817044854164124, 0.2524479329586029, -1.205311894416809, -0.3115580081939697, -0.9287950992584229, 0.8783356547355652, -0.10335219651460648, 0.20111271739006042, 1.8903260231018066, 0.46773165464401245, -0.368219256401062, 0.7589645385742188, 1.1278917789459229, 0.6229380369186401, -0.6808409690856934, 0.1570783108472824, -0.7410099506378174, 0.3217654526233673, -1.3608505725860596, 0.24257124960422516, -2.8077011108398438, 0.6308208703994751, -0.06268250942230225, -0.0912875384092331, 0.002939140424132347, -1.3232922554016113, 1.1280919313430786, 2.5842623710632324, -1.1708158254623413, 0.46984681487083435, 0.352683424949646, 1.2379220724105835, -1.5458072423934937, 0.2732734680175781, -0.4579251706600189, 2.114692449569702, 0.21777339279651642, 1.238357424736023, -0.4968433976173401, -2.287747383117676, 0.6639495491981506, -1.2445238828659058, -1.142928123474121, 0.8093525767326355, -0.8395621180534363, 0.09091119468212128, -1.3640201091766357, -0.2712329924106598, -0.8625543117523193, -1.2246438264846802, 0.7305080890655518, 0.05910257622599602, 0.4478190839290619, -0.6016005873680115, 0.34926027059555054, -2.226891279220581, -1.363993763923645, -0.24934063851833344, -0.9441563487052917, 0.48271268606185913, -0.3648332357406616, 0.7195726633071899, -0.15159176290035248, -0.0046685426495969296, 0.3581257462501526, 1.4125144481658936, 3.4298436641693115, 0.20676004886627197, 0.35727426409721375, -0.2037954479455948, -0.981215238571167, 1.408360481262207, 0.9345410466194153, -0.17169828712940216, -0.5118559002876282, -1.0288939476013184, 1.2002248764038086, 1.9418079853057861, 1.0495235919952393, -0.010388935916125774, -0.8009570240974426, -0.7761589288711548, 0.037042055279016495, 0.1493198424577713, 0.47538748383522034, 0.9521427750587463, 0.057951007038354874, 0.10982075333595276, 1.4498382806777954, 1.1463534832000732, -0.4135657846927643, 0.3866315484046936, -0.8518810868263245, -0.4827907979488373, 0.530527651309967, 0.28342530131340027, 0.01208761241286993, 0.3804992437362671, -1.0710346698760986, -0.20275993645191193, -0.40413087606430054, -0.9048519730567932, -0.7464818358421326, -0.35861703753471375, -0.2955513596534729, 1.5976885557174683, 0.09526939690113068, -0.5137064456939697, 0.033288415521383286, -0.7588732838630676, -0.11125417053699493, -1.0429140329360962, 0.3088729679584503, -0.18884095549583435, -0.10315212607383728, -0.08210884034633636, 1.7560391426086426, -0.9723123908042908, -2.053889036178589, 0.2617247700691223, 0.20200306177139282, -0.35955044627189636, 0.23711125552654266, 1.6734461784362793, 0.6245671510696411, 1.4641058444976807, 1.3119001388549805, 1.0098413228988647, -0.6148912310600281, -1.278343677520752, 0.6293306350708008, 0.9264201521873474, -1.350205659866333, 0.809083878993988, -0.06186574697494507, -0.5093879699707031, 0.633004903793335, 1.2739975452423096, 0.41295236349105835, -2.0368998050689697, 0.7753197550773621, -0.8609617948532104, 0.7837094664573669, 0.7014304399490356, 0.7894922494888306, 0.15525633096694946, 0.785582423210144, -1.2121939659118652, -1.160858392715454, -0.6643561720848083, -0.6876041293144226, 1.931170105934143, -0.26744332909584045, 0.5858200192451477, -0.19666162133216858, -1.2898238897323608, -0.08114902675151825, 0.711126983165741, 0.3830244541168213, -0.49296194314956665, 0.8261544704437256, -0.6366869807243347, -1.074292540550232, -1.3761966228485107, -0.5230105519294739, -1.0032672882080078, -0.9529539346694946, 1.02226984500885, 0.8376522064208984, 0.36027368903160095, 1.8785747289657593, 0.6585851907730103, 0.24414168298244476, -2.627479314804077, 0.8722596764564514, 0.27914127707481384, -0.026957489550113678, 0.9005089402198792, 0.3058609962463379, 1.0011111497879028, -0.024098023772239685, 0.5243875980377197, -2.4055395126342773, 2.298642873764038, -0.27584153413772583, 0.7298498153686523, -0.05483467876911163, -0.20881743729114532, 1.0844690799713135, 0.5953718423843384, 0.5458188652992249, -1.1233670711517334, 0.72810959815979, -0.6132445931434631, 1.183493733406067, 0.8471689820289612, -0.8791029453277588, 0.024906009435653687, 1.361023187637329, 0.47287696599960327, -0.5214139223098755, -0.9721361994743347, -0.9775448441505432, 0.9622547030448914, 1.7586519718170166, -0.030232489109039307, -0.014131449162960052, 0.8086344599723816, 0.6460529565811157, -1.334259271621704, 0.06893664598464966, -0.7349706292152405, -0.7197483777999878, 1.6862716674804688, 2.0648577213287354, -0.1054832860827446, -0.24176821112632751, -0.7030438780784607, -1.2333887815475464, 0.7855004072189331, 0.045588113367557526, 0.12549060583114624, 0.6588186025619507, -0.6718562245368958, 1.1319667100906372, 0.8620104193687439, 0.953969419002533, 0.13469812273979187, 0.29749035835266113, 0.3909773826599121, -0.3895165026187897, -1.1747153997421265, -0.25532597303390503, -1.11021888256073, -2.496612787246704, 0.39329972863197327, -0.24411040544509888, -1.4693336486816406, 0.034594081342220306, -1.0164254903793335, 0.8872938752174377, -0.5681855082511902, -1.1028456687927246, -1.5129565000534058, 0.18155045807361603, -0.04918493330478668, 0.9173329472541809, -1.6059837341308594, -0.14434431493282318, 1.271600365638733, 1.0308654308319092, -0.5641651749610901, 0.9852964282035828, 0.2167462408542633, 0.9872448444366455, 0.8811197876930237, -0.3639315068721771, 0.46039411425590515, 0.08521750569343567, -1.3255901336669922, 0.4271516501903534, 1.228928804397583, 0.20196518301963806, 1.50844407081604, -0.574369490146637, 0.0019376277923583984, 0.4033873975276947, -0.47249162197113037, -0.4788382649421692, -0.5880522131919861, 0.6388155817985535, 0.1139785572886467, -0.9430139064788818, -0.0018121134489774704, -0.0971083864569664, -0.1906091570854187, 0.20845676958560944, -1.4953542947769165, -0.14097937941551208, -0.40198731422424316, -0.630177915096283, -1.269459843635559, -0.06385619938373566, 1.3744523525238037, -0.8395122289657593, -0.21058468520641327, 0.49637576937675476, 0.30832502245903015, 0.48396626114845276, 0.6682350635528564, -0.6976106762886047, -0.2991064488887787, -0.2564016878604889, -0.39554765820503235, 0.31430256366729736, 1.3150516748428345, -0.09958347678184509, -1.031807780265808, 0.6782054305076599, -0.352042019367218, 0.09490010142326355, 1.9314552545547485, 0.04339173436164856, -0.8076711893081665, 0.31425875425338745, -0.7740707397460938, 1.8875367641448975, 1.7234768867492676, 1.3486731052398682, -0.10894175618886948, -0.9943891763687134, 0.6502556800842285, -0.31497278809547424, -0.44121861457824707, 0.998263418674469, 0.4407452344894409, -0.26949289441108704, -1.4227184057235718, 0.6553434729576111, 1.2302860021591187, -0.9338201880455017, -0.7292249798774719, 0.12423678487539291, -0.8227176666259766, 1.1293652057647705, 0.6947429180145264, 0.3659075200557709, 0.23739053308963776, 1.601665735244751, 0.7865738272666931, -0.4594295918941498, 0.5409988164901733, 0.5142908692359924, -0.1335224211215973, -2.1318020820617676, -1.0912712812423706, 0.283746600151062, -0.45535150170326233, -1.5772329568862915, 1.3838796615600586, -1.1451094150543213, -1.0016177892684937, 0.5628877878189087, 0.1547866314649582, 1.4467178583145142, 0.3180122971534729, 1.6186100244522095, 2.120302438735962, 0.9310166835784912, 0.3366225063800812, 1.259039044380188, -0.16993887722492218, -0.4077112376689911, 1.7995940446853638, -0.5064349174499512, 0.47971799969673157, 1.0491490364074707, -0.3441565930843353, -1.0788358449935913, -0.8354440927505493, -1.273482322692871, -0.6894046068191528, 1.1889560222625732, 0.0715794712305069, -1.0614491701126099, 0.30077803134918213, 1.5516678094863892, 0.09571897238492966, -0.32564374804496765, 0.6323117017745972, 0.45411235094070435, -0.8293982148170471, -0.10487586259841919, -0.9413694143295288, 0.513221025466919, -0.13387176394462585, -0.3207990229129791, 0.30733439326286316, 0.4992225468158722, 1.37941312789917, -0.03755442425608635, 0.07106963545084, 1.233809232711792, -1.3824876546859741, 1.5422558784484863, -0.7079249620437622, 0.2638651728630066, -2.386645793914795, 1.4199204444885254, -0.7879026532173157, 1.905577540397644, -2.63859224319458, 0.47414276003837585, -0.5746237635612488, -0.45049458742141724, 0.3264429569244385, -0.34747064113616943, 0.1217232421040535, -0.16771207749843597, -1.1159920692443848, -0.1780986189842224, -0.7323737740516663, 0.6039462089538574, 1.1565839052200317, 1.3652842044830322, -1.074836015701294, -0.26753172278404236, -1.7386940717697144, -0.15155190229415894, -0.8038912415504456, 0.3590719997882843, -1.9238048791885376, -0.16460590064525604, -1.931715965270996, -2.421236753463745, -1.298620581626892, -0.7954602241516113, 1.0746972560882568, 0.1841035783290863, -0.8791807889938354, 1.2242538928985596, -0.3701310157775879, -1.8200711011886597, 1.128774642944336, -2.174496650695801 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
@mariosasko I wonder why there is no issue in `Audio` feature with decoding disabled in `__iter__`, whereas there is in `Image` feature. Enabling decoding in `__iter__` will make fail Audio regressions tests: https://github.com/huggingface/datasets/runs/4608657230?check_suite_focus=true ``` =========================== short test summary info ============================ FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_not_decoded FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_decoded ========================= 2 failed, 15 passed in 8.37s =========================
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
1,039
52
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge @mariosasko I wonder why there is no issue in `Audio` feature with decoding disabled in `__iter__`, whereas there is in `Image` feature. Enabling decoding in `__iter__` will make fail Audio regressions tests: https://github.com/huggingface/datasets/runs/4608657230?check_suite_focus=true ``` =========================== short test summary info ============================ FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_not_decoded FAILED tests/features/test_audio.py::test_dataset_with_audio_feature_map_is_decoded ========================= 2 failed, 15 passed in 8.37s =========================
[ -1.1800682544708252, -0.8919347524642944, -0.7508435845375061, 1.4270449876785278, -0.13174490630626678, -1.268054723739624, 0.22321276366710663, -1.0212937593460083, 1.7418410778045654, -0.8661652207374573, 0.30019611120224, -1.6579991579055786, 0.03537895157933235, -0.5794830322265625, -0.762685239315033, -0.812414288520813, -0.4259546399116516, -0.7558547258377075, 1.0542117357254028, 2.4756627082824707, 1.2678860425949097, -1.3072829246520996, 2.7245962619781494, 0.6435147523880005, -0.19671034812927246, -0.9396896362304688, 0.5374636650085449, -0.081797294318676, -1.338309407234192, -0.42343130707740784, -0.9292802214622498, -0.06172432377934456, -0.5840255618095398, -0.5292555689811707, -0.02448657713830471, 0.43511074781417847, -0.29242825508117676, -0.4718022346496582, -0.5113106369972229, -0.8150425553321838, 0.40330708026885986, -0.41729944944381714, 0.9937108755111694, -0.27304327487945557, 1.801112413406372, -0.5824902057647705, 0.4707810878753662, 0.7913827300071716, 1.361352562904358, 0.17593896389007568, -0.02423824369907379, 0.2964164912700653, 0.36639824509620667, -0.016950758174061775, 0.5453922748565674, 1.103369116783142, 0.6862030029296875, 0.4416225552558899, 0.7253132462501526, -2.243356227874756, 1.3148984909057617, -0.9542173743247986, 0.21025939285755157, 1.3674598932266235, -0.9116795063018799, 0.3005082309246063, -1.7949601411819458, -0.018373806029558182, 0.5946549773216248, -2.2263050079345703, 0.2642285227775574, -1.3585951328277588, -0.48186448216438293, 1.0099806785583496, 0.3716985583305359, -1.1937283277511597, 0.047754932194948196, -0.3647616505622864, 1.0346760749816895, 0.45875775814056396, 1.090766429901123, -1.7176960706710815, -0.10134383291006088, -0.2827785611152649, 0.1775471568107605, -1.2386447191238403, -1.60891592502594, 0.492532342672348, 0.6567917466163635, 0.5945389866828918, -0.10221891105175018, 1.0642434358596802, -0.9534793496131897, 0.68937087059021, -0.9712329506874084, -1.7565504312515259, -1.3355413675308228, -2.2123749256134033, -2.2292115688323975, 0.6823071837425232, -0.4839898347854614, -0.49255871772766113, 2.0983283519744873, -1.0318443775177002, -1.755670428276062, 1.1071374416351318, 0.21942177414894104, -0.003868008963763714, 2.3468825817108154, 0.26598691940307617, -0.7357246279716492, 0.4783947765827179, -0.7631920576095581, 0.7448047995567322, -0.3424803614616394, 1.303537368774414, 0.34059789776802063, -1.0287492275238037, 1.5464766025543213, -0.44061198830604553, 0.6369272470474243, -0.6779361963272095, -0.43954917788505554, -0.7500486373901367, 0.30781620740890503, 1.8691085577011108, -0.2704234719276428, 1.5007522106170654, -0.3895016014575958, -1.6414058208465576, -1.6432898044586182, 0.8584772944450378, 0.517372727394104, -0.7282474040985107, 0.08015545457601547, -0.35226988792419434, 0.15215179324150085, -0.052263688296079636, 1.1279770135879517, 1.2804040908813477, 0.7546315789222717, -0.351274698972702, -0.8579567670822144, 0.21429921686649323, -0.0458625890314579, -0.7644978761672974, -1.7576266527175903, -0.29297560453414917, 0.19599473476409912, 0.6904062628746033, -1.2054669857025146, 1.8155986070632935, 0.904169499874115, 1.9459911584854126, 0.9838190078735352, -0.3636617064476013, 1.4806751012802124, 0.14319777488708496, 1.858948826789856, -0.4340590536594391, 0.6638343930244446, -0.3917096257209778, -1.138671636581421, 0.8443962931632996, -0.32349202036857605, -2.0136654376983643, -0.7552564144134521, -0.8156872987747192, -0.2059290111064911, -0.7417985796928406, 0.9084036350250244, -0.2877480983734131, -1.3852200508117676, 0.22734156250953674, -0.7514281272888184, 0.13581402599811554, -1.2431831359863281, 0.29442551732063293, 0.7304431796073914, -0.6685613989830017, 0.05812765285372734, -0.2599681615829468, -1.2857005596160889, -0.38914334774017334, 0.3296242356300354, 1.9033490419387817, -0.7325857877731323, 0.928076982498169, 1.0784928798675537, -0.6594830751419067, 0.0037580374628305435, 0.29206252098083496, -0.301355242729187, 0.8688526749610901, -1.099277377128601, -0.329866498708725, 1.211654543876648, -0.1632249653339386, -0.6345995664596558, 1.4854145050048828, 0.7140921950340271, -1.0266464948654175, -0.16786156594753265, -0.1393119841814041, -0.7576006054878235, 0.038532622158527374, -1.6429396867752075, -0.11422792822122574, 0.48164212703704834, -1.4824436902999878, -0.4239868223667145, -0.23082441091537476, 1.315019965171814, -0.16844569146633148, 1.3904433250427246, -0.31523630023002625, -0.1778986155986786, -0.38219040632247925, -0.3703818619251251, 0.08763718605041504, -0.22186461091041565, -0.6040416955947876, 0.15375594794750214, -0.7893605828285217, 0.2938801646232605, 1.4308518171310425, 0.3088749945163727, 0.018954657018184662, 0.3940421938896179, 1.1132102012634277, 0.38791871070861816, -0.07668692618608475, -0.8614571690559387, -1.5563011169433594, 2.030643939971924, -1.4788035154342651, 1.998883605003357, 0.7593935132026672, -0.03991151973605156, -1.7866722345352173, -1.8797345161437988, 1.3801628351211548, 1.1140390634536743, 2.3905322551727295, 0.5596685409545898, 0.4256483018398285, -0.8029083609580994, -0.6583430767059326, 0.33283817768096924, -0.9673796892166138, -0.7426196336746216, 0.16800926625728607, 2.4048359394073486, 1.6707658767700195, -0.41307443380355835, -0.2206004410982132, -0.9762165546417236, 1.3144792318344116, -0.15950073301792145, 0.22301410138607025, 1.9745432138442993, -0.23591949045658112, -1.0320286750793457, 1.251017451286316, -2.2760300636291504, 0.164716437458992, 1.9736530780792236, 0.22122448682785034, 0.12131737917661667, -1.4128220081329346, -0.6738275289535522, -0.3402319550514221, -0.39109721779823303, -1.2558329105377197, 0.5391779541969299, -0.2205493003129959, -0.8148665428161621, -1.4326040744781494, 0.2398301661014557, -1.0637714862823486, -1.6574169397354126, 0.18310673534870148, 1.935955286026001, 2.029965877532959, -0.8473172783851624, 1.5603080987930298, -0.3059929609298706, 0.15584835410118103, 1.255042314529419, 1.1567845344543457, 3.113936185836792, 1.9293910264968872, -1.3243316411972046, 0.6605835556983948, -0.11848505586385727, -0.44818204641342163, 1.1523381471633911, -1.2002122402191162, 1.2713943719863892, -0.16262733936309814, -1.2234808206558228, -1.1892714500427246, 0.9447974562644958, 0.49644508957862854, 0.06385482847690582, -0.45094501972198486, 1.1952341794967651, 0.03960654139518738, 1.324507236480713, 0.5485603213310242, -0.27964693307876587, 0.7063701152801514, -0.43477877974510193, -0.49902716279029846, 1.4970371723175049, 0.2101554274559021, -1.4279154539108276, -2.2482106685638428, -0.20698392391204834, -0.8827401995658875, 0.06840061396360397, -0.6396915912628174, -1.0512642860412598, 1.6349287033081055, 0.37112703919410706, -1.2034119367599487, -0.3044045865535736, -0.3634248971939087, -0.5446642637252808, 2.6956520080566406, -1.3766162395477295, -0.17508840560913086, -1.0440049171447754, -0.6295017004013062, 1.6368886232376099, -1.2233344316482544, -0.1946667581796646, -1.0799912214279175, -0.5268424153327942, -1.3365657329559326, -0.5267972350120544, -0.028282053768634796, -0.8663626909255981, 0.7930141687393188, 0.282319039106369, -1.2417980432510376, -0.34111538529396057, -0.92482590675354, 0.8793996572494507, -0.13971185684204102, 0.2138451486825943, 1.8633559942245483, 0.44684624671936035, -0.37209540605545044, 0.7712951898574829, 1.105209231376648, 0.6170539259910583, -0.6456709504127502, 0.18939915299415588, -0.7277796268463135, 0.32545509934425354, -1.3387783765792847, 0.2425255924463272, -2.8232030868530273, 0.6251436471939087, -0.0710858553647995, -0.10146353393793106, -0.0353899747133255, -1.3619426488876343, 1.1096210479736328, 2.5950851440429688, -1.1873701810836792, 0.48064401745796204, 0.3475014865398407, 1.2618427276611328, -1.5584779977798462, 0.25618287920951843, -0.4547359347343445, 2.13169264793396, 0.21945545077323914, 1.2496449947357178, -0.4510728418827057, -2.328845739364624, 0.6577631831169128, -1.2291871309280396, -1.1403579711914062, 0.8204560279846191, -0.8335748314857483, 0.08120251446962357, -1.3382618427276611, -0.2992636263370514, -0.861399233341217, -1.2129720449447632, 0.7168070077896118, 0.055988747626543045, 0.48006516695022583, -0.6118711233139038, 0.3315849304199219, -2.2361040115356445, -1.3418244123458862, -0.2295036017894745, -0.9506899118423462, 0.4749009609222412, -0.35491278767585754, 0.6911154389381409, -0.15565834939479828, -0.010991940274834633, 0.38219332695007324, 1.4332492351531982, 3.4571638107299805, 0.20558299124240875, 0.36948126554489136, -0.21115781366825104, -0.9463865160942078, 1.3996384143829346, 0.9157294034957886, -0.15312844514846802, -0.5174025297164917, -1.0423907041549683, 1.1680383682250977, 1.9672497510910034, 0.9978690147399902, -0.019831590354442596, -0.786483645439148, -0.7690004706382751, 0.0110301049426198, 0.11627601832151413, 0.49565938115119934, 0.919272780418396, 0.09637513011693954, 0.090519480407238, 1.423268437385559, 1.1400940418243408, -0.4020649492740631, 0.3804464638233185, -0.8627769351005554, -0.4660569727420807, 0.5179226398468018, 0.29149535298347473, 0.010285654105246067, 0.34578225016593933, -1.0403597354888916, -0.18621642887592316, -0.41016674041748047, -0.8765541911125183, -0.771392822265625, -0.38117802143096924, -0.2924567759037018, 1.6135350465774536, 0.10236571729183197, -0.5322427749633789, 0.0512397326529026, -0.7264435291290283, -0.09231212735176086, -1.0564229488372803, 0.27710944414138794, -0.195108562707901, -0.12327788025140762, -0.09081331640481949, 1.7379919290542603, -0.9640620350837708, -2.02170467376709, 0.25332126021385193, 0.18849873542785645, -0.3612460196018219, 0.2604956328868866, 1.6991568803787231, 0.6209163069725037, 1.468903660774231, 1.3317382335662842, 1.026768445968628, -0.6484282612800598, -1.2839586734771729, 0.6379349231719971, 0.912813127040863, -1.36575448513031, 0.7934739589691162, -0.05164070054888725, -0.4848017990589142, 0.6177041530609131, 1.2715973854064941, 0.44396787881851196, -2.064403772354126, 0.7751732468605042, -0.9134204387664795, 0.7615677714347839, 0.7338770031929016, 0.7721657156944275, 0.17261309921741486, 0.8042745590209961, -1.1642680168151855, -1.1608916521072388, -0.6626246571540833, -0.736857533454895, 1.9291787147521973, -0.3319460451602936, 0.6005063056945801, -0.17198970913887024, -1.3173516988754272, -0.08869226276874542, 0.7512529492378235, 0.3928813636302948, -0.49070796370506287, 0.7965236902236938, -0.6522293090820312, -1.0734127759933472, -1.3696497678756714, -0.5409623980522156, -1.0405937433242798, -0.9954855442047119, 1.0039873123168945, 0.832562267780304, 0.3583073914051056, 1.867972493171692, 0.6856427788734436, 0.2503504753112793, -2.5882081985473633, 0.8629904985427856, 0.28702253103256226, -0.04434341937303543, 0.8969559669494629, 0.33261558413505554, 0.9967083930969238, -0.037562619894742966, 0.5448873043060303, -2.430987596511841, 2.323695421218872, -0.27341899275779724, 0.7107937335968018, -0.04349596053361893, -0.25014206767082214, 1.0679630041122437, 0.5738905072212219, 0.5171182751655579, -1.126588225364685, 0.7381215691566467, -0.6407266855239868, 1.1926648616790771, 0.8212272524833679, -0.869030773639679, 0.00804030429571867, 1.3757628202438354, 0.4363631010055542, -0.5544323325157166, -0.9533389806747437, -1.0183066129684448, 0.9207895994186401, 1.7029495239257812, -0.07124389708042145, -0.020187538117170334, 0.8041412234306335, 0.6664422750473022, -1.299804449081421, 0.06741417199373245, -0.7467305660247803, -0.7558353543281555, 1.69096040725708, 2.0522589683532715, -0.13675610721111298, -0.23211613297462463, -0.7453440427780151, -1.2261804342269897, 0.7808282375335693, 0.059307295829057693, 0.05207438766956329, 0.6075168251991272, -0.6636577248573303, 1.1127402782440186, 0.8719680309295654, 0.940500020980835, 0.16437304019927979, 0.3018317222595215, 0.4056580364704132, -0.4083211421966553, -1.149761438369751, -0.26364338397979736, -1.1334258317947388, -2.4773619174957275, 0.4159477949142456, -0.23086965084075928, -1.4888983964920044, 0.013398216105997562, -1.0181046724319458, 0.8654147386550903, -0.5678132772445679, -1.1309493780136108, -1.5029910802841187, 0.1971963495016098, -0.05378548055887222, 0.9187589287757874, -1.5926141738891602, -0.1393599957227707, 1.282657504081726, 1.0042781829833984, -0.6119438409805298, 0.9806114435195923, 0.1913926750421524, 1.0015907287597656, 0.8998907804489136, -0.35905930399894714, 0.5022812485694885, 0.061028365045785904, -1.3217499256134033, 0.45663386583328247, 1.2144266366958618, 0.17767398059368134, 1.545440673828125, -0.5499083995819092, -0.016972582787275314, 0.37793171405792236, -0.49017301201820374, -0.4797373414039612, -0.598060667514801, 0.6732263565063477, 0.10760905593633652, -0.9284629225730896, 0.023562010377645493, -0.07647864520549774, -0.19900915026664734, 0.18592345714569092, -1.4992787837982178, -0.13171716034412384, -0.3768739104270935, -0.6243129372596741, -1.2726305723190308, -0.09281765669584274, 1.3877829313278198, -0.7749788761138916, -0.21049457788467407, 0.4878638684749603, 0.3357383608818054, 0.47284266352653503, 0.6778578758239746, -0.6985005140304565, -0.30803385376930237, -0.2835463881492615, -0.39014342427253723, 0.3491559624671936, 1.3358879089355469, -0.06393493711948395, -1.0138992071151733, 0.6804317831993103, -0.36419782042503357, 0.08727158606052399, 1.9274909496307373, 0.051644451916217804, -0.8142063021659851, 0.3236149847507477, -0.7781165242195129, 1.9111453294754028, 1.7424967288970947, 1.3211928606033325, -0.06379541754722595, -1.028901219367981, 0.6797396540641785, -0.3602721095085144, -0.43413835763931274, 0.997580885887146, 0.4227816164493561, -0.28571441769599915, -1.4106390476226807, 0.6891002058982849, 1.233231544494629, -0.8977136015892029, -0.7659716010093689, 0.11646903306245804, -0.7843738794326782, 1.125032901763916, 0.6898906826972961, 0.35734403133392334, 0.23618574440479279, 1.616361141204834, 0.7998960614204407, -0.44127729535102844, 0.5663651823997498, 0.5167398452758789, -0.14069360494613647, -2.1405856609344482, -1.127155065536499, 0.3146997094154358, -0.46929311752319336, -1.6058619022369385, 1.3927584886550903, -1.1324323415756226, -0.9959816336631775, 0.5448258519172668, 0.13574860990047455, 1.4372667074203491, 0.33116504549980164, 1.5874515771865845, 2.1098389625549316, 0.9165999293327332, 0.3846796751022339, 1.2663843631744385, -0.21265584230422974, -0.44182804226875305, 1.8134005069732666, -0.5447544455528259, 0.4551279842853546, 1.0701977014541626, -0.33903589844703674, -1.0810478925704956, -0.8465879559516907, -1.2415030002593994, -0.6887757778167725, 1.191132664680481, 0.07040246576070786, -1.0641028881072998, 0.30440840125083923, 1.5779826641082764, 0.08667343109846115, -0.3421962559223175, 0.6421492695808411, 0.42200958728790283, -0.8596372008323669, -0.09967848658561707, -0.9382681250572205, 0.5341826677322388, -0.13941025733947754, -0.3206702768802643, 0.3605540096759796, 0.5044580698013306, 1.378544569015503, -0.05585445836186409, 0.07902693003416061, 1.1802176237106323, -1.394843578338623, 1.5368200540542603, -0.6976203918457031, 0.27102530002593994, -2.3562517166137695, 1.365871787071228, -0.7632368206977844, 1.9403204917907715, -2.6660349369049072, 0.4408319294452667, -0.5413957238197327, -0.45995622873306274, 0.31624799966812134, -0.32119297981262207, 0.1364157497882843, -0.1729065626859665, -1.1444607973098755, -0.17828233540058136, -0.7456788420677185, 0.6006717085838318, 1.1172778606414795, 1.3602275848388672, -1.0633231401443481, -0.25673946738243103, -1.7218561172485352, -0.12093959003686905, -0.8092381954193115, 0.348451167345047, -1.9301584959030151, -0.15521512925624847, -1.954565167427063, -2.4075522422790527, -1.2835750579833984, -0.7681492567062378, 1.0608235597610474, 0.16781467199325562, -0.8545110821723938, 1.2182153463363647, -0.33681994676589966, -1.8318067789077759, 1.1223455667495728, -2.1422598361968994 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
Please also note that the regression tests were implemented in accordance with the specifications: - when doing a `map` (wich calls `__iter__`) of a function that doesn't access the audio field, the decoding should be disabled; this is why the decoding is disabled in `__iter__` (and only enabled in `__getitem__`).
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
1,039
50
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge Please also note that the regression tests were implemented in accordance with the specifications: - when doing a `map` (wich calls `__iter__`) of a function that doesn't access the audio field, the decoding should be disabled; this is why the decoding is disabled in `__iter__` (and only enabled in `__getitem__`).
[ -1.203080654144287, -0.8880910277366638, -0.7799892425537109, 1.4108035564422607, -0.14684166014194489, -1.2652422189712524, 0.20257329940795898, -1.0203465223312378, 1.7380075454711914, -0.8443124890327454, 0.2799758315086365, -1.6488361358642578, 0.04966811463236809, -0.5674346685409546, -0.7618815302848816, -0.8087515234947205, -0.3961765766143799, -0.7684590816497803, 1.0670206546783447, 2.4882020950317383, 1.24538254737854, -1.302916407585144, 2.7526543140411377, 0.6549142599105835, -0.18493612110614777, -0.9315552115440369, 0.5472120046615601, -0.09099679440259933, -1.3459808826446533, -0.4383237957954407, -0.9326699376106262, -0.05652855336666107, -0.5560821890830994, -0.5564969778060913, -0.014852218329906464, 0.4133191704750061, -0.2787874937057495, -0.4629473090171814, -0.5182740092277527, -0.797195553779602, 0.3922979235649109, -0.4225260615348816, 0.952826976776123, -0.285438597202301, 1.8270254135131836, -0.5666813254356384, 0.4422357678413391, 0.7696182727813721, 1.3679170608520508, 0.19379273056983948, -0.02535412646830082, 0.301979124546051, 0.3636859059333801, -0.03812379762530327, 0.5471449494361877, 1.1142032146453857, 0.7006344795227051, 0.4472450017929077, 0.7393742799758911, -2.2378227710723877, 1.3292574882507324, -0.9805572032928467, 0.20952653884887695, 1.3831565380096436, -0.9227939248085022, 0.3276512622833252, -1.77936589717865, -0.001252506859600544, 0.5693879127502441, -2.2659547328948975, 0.22689825296401978, -1.335967779159546, -0.49648916721343994, 0.9997938275337219, 0.3623388409614563, -1.2186251878738403, 0.056213781237602234, -0.39128822088241577, 1.0506033897399902, 0.4467410445213318, 1.1197125911712646, -1.7145177125930786, -0.10359029471874237, -0.27569878101348877, 0.16804146766662598, -1.2526373863220215, -1.6028897762298584, 0.5072759389877319, 0.6578468680381775, 0.5784965753555298, -0.10106413811445236, 1.061413288116455, -0.9384350180625916, 0.7143602967262268, -0.9777474403381348, -1.7273138761520386, -1.3390324115753174, -2.2136709690093994, -2.2088401317596436, 0.7263442277908325, -0.48958611488342285, -0.5006791353225708, 2.0889999866485596, -1.0528149604797363, -1.7668906450271606, 1.106391429901123, 0.23011288046836853, -0.01811116188764572, 2.3840043544769287, 0.25774824619293213, -0.7354265451431274, 0.48672598600387573, -0.7543057203292847, 0.7603452205657959, -0.3590582013130188, 1.3250732421875, 0.3505106568336487, -1.0114787817001343, 1.5319267511367798, -0.43956458568573, 0.6335371136665344, -0.674266517162323, -0.44775259494781494, -0.7708755135536194, 0.31180310249328613, 1.8837456703186035, -0.28537940979003906, 1.5263350009918213, -0.39645588397979736, -1.6264859437942505, -1.639291524887085, 0.8504050970077515, 0.5095496773719788, -0.7501996159553528, 0.09258684515953064, -0.34657078981399536, 0.13713400065898895, -0.05268104001879692, 1.121761679649353, 1.2724642753601074, 0.7507280111312866, -0.33302605152130127, -0.8591349124908447, 0.20743271708488464, -0.05335479602217674, -0.7391519546508789, -1.7516638040542603, -0.2868790626525879, 0.17791880667209625, 0.6876636743545532, -1.2367422580718994, 1.8037497997283936, 0.8868095874786377, 1.932766079902649, 1.0149788856506348, -0.3575456738471985, 1.4961763620376587, 0.14812424778938293, 1.8529175519943237, -0.45970869064331055, 0.6593784093856812, -0.40111690759658813, -1.139183759689331, 0.8271853923797607, -0.33617472648620605, -2.016007900238037, -0.7521542310714722, -0.8259007334709167, -0.20990166068077087, -0.7390177249908447, 0.9176763296127319, -0.3139514923095703, -1.3825312852859497, 0.23967993259429932, -0.7507659196853638, 0.11330975592136383, -1.2387596368789673, 0.3176730275154114, 0.7458392977714539, -0.6597647070884705, 0.044718772172927856, -0.25785642862319946, -1.2849903106689453, -0.38906705379486084, 0.300071120262146, 1.907850980758667, -0.7418357729911804, 0.936710000038147, 1.0818378925323486, -0.6574831008911133, -0.006217487156391144, 0.31585365533828735, -0.2874572277069092, 0.8839989304542542, -1.0785430669784546, -0.33809328079223633, 1.205249547958374, -0.1601594090461731, -0.6103883981704712, 1.4841840267181396, 0.701772153377533, -1.0230225324630737, -0.17078246176242828, -0.116831935942173, -0.7886387705802917, 0.025222253054380417, -1.6580982208251953, -0.1108645349740982, 0.43835902214050293, -1.504792332649231, -0.4400153160095215, -0.22030222415924072, 1.293972134590149, -0.14606857299804688, 1.3802236318588257, -0.33345991373062134, -0.18462179601192474, -0.3799701929092407, -0.3757835030555725, 0.08717580884695053, -0.24285314977169037, -0.6027464270591736, 0.17539797723293304, -0.7941972017288208, 0.2658960223197937, 1.4406441450119019, 0.3460052013397217, 0.020951565355062485, 0.4263821244239807, 1.1281323432922363, 0.3934445381164551, -0.07750237733125687, -0.8415851593017578, -1.560292363166809, 2.0469508171081543, -1.4794199466705322, 1.9869753122329712, 0.7619175910949707, -0.058151040226221085, -1.7808626890182495, -1.8810865879058838, 1.3911198377609253, 1.1265746355056763, 2.3752195835113525, 0.552065908908844, 0.41574496030807495, -0.7986275553703308, -0.671118438243866, 0.3284776210784912, -0.9712234139442444, -0.7458038926124573, 0.1237911581993103, 2.4024744033813477, 1.7087268829345703, -0.41569972038269043, -0.2268378734588623, -0.9931486248970032, 1.3134220838546753, -0.15266413986682892, 0.2128400057554245, 1.9443371295928955, -0.22225318849086761, -1.0270459651947021, 1.2487202882766724, -2.2705366611480713, 0.1637701690196991, 1.9654779434204102, 0.24282293021678925, 0.10814350843429565, -1.4150822162628174, -0.6721221804618835, -0.318422794342041, -0.3886042833328247, -1.252413272857666, 0.5412307381629944, -0.23917321860790253, -0.8090306520462036, -1.4389592409133911, 0.19836324453353882, -1.0822793245315552, -1.6522189378738403, 0.20066669583320618, 1.9278318881988525, 2.040351152420044, -0.8162248134613037, 1.547989845275879, -0.3085052967071533, 0.15222719311714172, 1.2587357759475708, 1.153974175453186, 3.1282615661621094, 1.9310331344604492, -1.3113235235214233, 0.617462158203125, -0.12270688265562057, -0.42512011528015137, 1.1325803995132446, -1.1993507146835327, 1.2936862707138062, -0.14429576694965363, -1.214771032333374, -1.1884360313415527, 0.9425485730171204, 0.4773877263069153, 0.06274691969156265, -0.45994478464126587, 1.2130708694458008, 0.02575027197599411, 1.3102505207061768, 0.5423446893692017, -0.28453952074050903, 0.6809524297714233, -0.4181596040725708, -0.5152826905250549, 1.5019218921661377, 0.20341350138187408, -1.4260164499282837, -2.249469041824341, -0.20105749368667603, -0.8659507036209106, 0.0947481244802475, -0.6549040079116821, -1.0447478294372559, 1.6408966779708862, 0.39420878887176514, -1.201274037361145, -0.2942851781845093, -0.36690008640289307, -0.5565758943557739, 2.6935243606567383, -1.4098249673843384, -0.1935875415802002, -1.0568569898605347, -0.5961694717407227, 1.6183911561965942, -1.2189794778823853, -0.1824231594800949, -1.0560029745101929, -0.5331953167915344, -1.3147220611572266, -0.5281471014022827, -0.06596271693706512, -0.8629958033561707, 0.7966840267181396, 0.27030789852142334, -1.2163336277008057, -0.3232956528663635, -0.9266188144683838, 0.8642778396606445, -0.1274835169315338, 0.19548659026622772, 1.8797255754470825, 0.43591010570526123, -0.38757050037384033, 0.7790744304656982, 1.1119987964630127, 0.6209520101547241, -0.6421730518341064, 0.18588285148143768, -0.709778368473053, 0.360984206199646, -1.3250782489776611, 0.2474590688943863, -2.824523687362671, 0.6293811798095703, -0.07310665398836136, -0.09618525952100754, -0.02232617884874344, -1.3529565334320068, 1.090559482574463, 2.582974672317505, -1.159208059310913, 0.476473867893219, 0.335476815700531, 1.2686105966567993, -1.5758129358291626, 0.2686583995819092, -0.4697265625, 2.127654790878296, 0.22810357809066772, 1.2035293579101562, -0.4677201509475708, -2.3182928562164307, 0.6417998671531677, -1.2444391250610352, -1.1465333700180054, 0.798096239566803, -0.8231770992279053, 0.07819720357656479, -1.3511407375335693, -0.27803778648376465, -0.858876645565033, -1.2100110054016113, 0.7235743999481201, 0.07378564774990082, 0.46738892793655396, -0.6102532744407654, 0.3136000633239746, -2.2208690643310547, -1.3464481830596924, -0.22583402693271637, -0.9388195872306824, 0.48959559202194214, -0.37471771240234375, 0.7062681317329407, -0.14229798316955566, -0.002723554614931345, 0.3677368760108948, 1.4154613018035889, 3.44360089302063, 0.2080044001340866, 0.3776848316192627, -0.22698606550693512, -0.9502207040786743, 1.3848395347595215, 0.9273518919944763, -0.16524846851825714, -0.5317033529281616, -1.0512741804122925, 1.1912531852722168, 1.9533942937850952, 1.0202149152755737, -0.009274098090827465, -0.7708389163017273, -0.7530308961868286, 0.013841360807418823, 0.1294558197259903, 0.4821435809135437, 0.940299928188324, 0.07653599977493286, 0.10929838567972183, 1.4502924680709839, 1.1458157300949097, -0.4125790596008301, 0.3961375951766968, -0.8504047393798828, -0.4585556983947754, 0.5327550172805786, 0.3047282099723816, -0.02203374169766903, 0.35341084003448486, -1.0361809730529785, -0.2025144249200821, -0.4183605909347534, -0.8770976066589355, -0.7477554678916931, -0.3454427719116211, -0.29378974437713623, 1.6055693626403809, 0.10427939891815186, -0.5264875292778015, 0.0263047032058239, -0.735025942325592, -0.10208642482757568, -1.0636039972305298, 0.2993782162666321, -0.18628308176994324, -0.13018926978111267, -0.07971630990505219, 1.745005488395691, -0.9589840173721313, -2.0390069484710693, 0.2612159252166748, 0.1930319368839264, -0.3393566608428955, 0.25341057777404785, 1.6781179904937744, 0.6197916269302368, 1.4736822843551636, 1.3503656387329102, 1.020808458328247, -0.6543542742729187, -1.2880008220672607, 0.6409851312637329, 0.8985593318939209, -1.371492624282837, 0.7826654314994812, -0.04573221504688263, -0.5024994611740112, 0.6305463314056396, 1.280377984046936, 0.44300156831741333, -2.056675672531128, 0.7753402590751648, -0.9103142023086548, 0.7659791707992554, 0.724440336227417, 0.766990602016449, 0.17642979323863983, 0.7984724640846252, -1.1784747838974, -1.1702589988708496, -0.6727501153945923, -0.7210928201675415, 1.9173845052719116, -0.30709612369537354, 0.603628933429718, -0.17785947024822235, -1.3164021968841553, -0.097105972468853, 0.7204128503799438, 0.3730841875076294, -0.4665745496749878, 0.7845592498779297, -0.6756837964057922, -1.0858761072158813, -1.3754962682724, -0.5280584096908569, -1.0249688625335693, -0.9717772603034973, 1.0188190937042236, 0.8422284722328186, 0.3492810130119324, 1.886467456817627, 0.667510449886322, 0.2389848381280899, -2.591261148452759, 0.8668620586395264, 0.2791617512702942, -0.05085529759526253, 0.8917741179466248, 0.32815152406692505, 0.9838188886642456, -0.020808033645153046, 0.5282330513000488, -2.4071907997131348, 2.321368455886841, -0.2785238027572632, 0.7324501276016235, -0.04940688610076904, -0.22894538938999176, 1.0801669359207153, 0.5872147679328918, 0.5314282178878784, -1.1001815795898438, 0.7252247929573059, -0.639828085899353, 1.202987790107727, 0.8568353652954102, -0.865896999835968, 0.011689821258187294, 1.366235613822937, 0.45163893699645996, -0.5646674633026123, -0.9595655202865601, -1.0074009895324707, 0.9373009204864502, 1.7429901361465454, -0.04219319298863411, -0.009175769053399563, 0.8051944375038147, 0.657871425151825, -1.3084553480148315, 0.08544190227985382, -0.7527586817741394, -0.7598275542259216, 1.6711863279342651, 2.0588834285736084, -0.12673676013946533, -0.20770417153835297, -0.7321131825447083, -1.2544279098510742, 0.7630096077919006, 0.07328536361455917, 0.07294761389493942, 0.6308794021606445, -0.6549198627471924, 1.1204732656478882, 0.894393265247345, 0.9465973377227783, 0.14918440580368042, 0.29822611808776855, 0.38616418838500977, -0.3828263282775879, -1.157745122909546, -0.263627290725708, -1.1192721128463745, -2.4920082092285156, 0.39270710945129395, -0.2332775890827179, -1.4819345474243164, 0.019135696813464165, -1.0065921545028687, 0.8698469400405884, -0.5548649430274963, -1.1166356801986694, -1.5080158710479736, 0.2001730501651764, -0.04258551448583603, 0.9140358567237854, -1.6129462718963623, -0.14294089376926422, 1.2598230838775635, 1.0085530281066895, -0.6015405058860779, 0.9784558415412903, 0.21366526186466217, 0.98142409324646, 0.8852506875991821, -0.38526058197021484, 0.4776817560195923, 0.08870302140712738, -1.344672679901123, 0.4682338833808899, 1.2218005657196045, 0.16603615880012512, 1.5307629108428955, -0.5586365461349487, -0.014236245304346085, 0.3793267607688904, -0.47751152515411377, -0.47512030601501465, -0.6188930869102478, 0.6712449789047241, 0.10274606198072433, -0.9175407290458679, 0.011727863922715187, -0.07158951461315155, -0.21649758517742157, 0.18982036411762238, -1.4963243007659912, -0.13497033715248108, -0.3894679546356201, -0.6284258365631104, -1.2801262140274048, -0.09056209772825241, 1.3878532648086548, -0.7927065491676331, -0.20781606435775757, 0.49591636657714844, 0.3499009609222412, 0.46530216932296753, 0.6888482570648193, -0.673373281955719, -0.3035541772842407, -0.2602853775024414, -0.400132954120636, 0.35615837574005127, 1.3250939846038818, -0.09077960252761841, -1.019011378288269, 0.6664382219314575, -0.33386504650115967, 0.07579939067363739, 1.9131230115890503, 0.04554099217057228, -0.7938960790634155, 0.3244224190711975, -0.7750086188316345, 1.9087754487991333, 1.7353980541229248, 1.3233397006988525, -0.08908213675022125, -1.0163357257843018, 0.6837083101272583, -0.3130300045013428, -0.42952048778533936, 0.9932622313499451, 0.43146562576293945, -0.2862248420715332, -1.4138245582580566, 0.6766493320465088, 1.2145721912384033, -0.9031025767326355, -0.7403634786605835, 0.09430325776338577, -0.7859993577003479, 1.1317791938781738, 0.6821110844612122, 0.3638942241668701, 0.25567710399627686, 1.6291974782943726, 0.7785184383392334, -0.4564201831817627, 0.5562297105789185, 0.5090155601501465, -0.13102346658706665, -2.161097526550293, -1.108810544013977, 0.2972741723060608, -0.4621012210845947, -1.6041896343231201, 1.3856297731399536, -1.1365708112716675, -0.9877549409866333, 0.5374323129653931, 0.14670883119106293, 1.426875114440918, 0.31284457445144653, 1.582011103630066, 2.1304523944854736, 0.907214879989624, 0.3797333836555481, 1.2548824548721313, -0.20921169221401215, -0.4235103130340576, 1.7995378971099854, -0.5167905688285828, 0.4643216133117676, 1.0435678958892822, -0.3507343530654907, -1.089063048362732, -0.828440248966217, -1.2561860084533691, -0.6988130211830139, 1.1749821901321411, 0.05827108025550842, -1.065885066986084, 0.29800641536712646, 1.5469688177108765, 0.08398094028234482, -0.33737117052078247, 0.6188558340072632, 0.44429129362106323, -0.8250200748443604, -0.10160878300666809, -0.9517993927001953, 0.5207672119140625, -0.15050522983074188, -0.3295125365257263, 0.3588966131210327, 0.4978058338165283, 1.373153805732727, -0.049431316554546356, 0.07622480392456055, 1.194463849067688, -1.4016661643981934, 1.5345687866210938, -0.7041712999343872, 0.2670949697494507, -2.3638792037963867, 1.4053202867507935, -0.7711722254753113, 1.9352372884750366, -2.6487433910369873, 0.4639056324958801, -0.5730959177017212, -0.4566618800163269, 0.3580438494682312, -0.3178980350494385, 0.13265608251094818, -0.1727902889251709, -1.1290894746780396, -0.15336886048316956, -0.74381023645401, 0.5833575129508972, 1.125125527381897, 1.3842549324035645, -1.0694999694824219, -0.25686556100845337, -1.7219069004058838, -0.13830001652240753, -0.7986196875572205, 0.33316290378570557, -1.946142315864563, -0.15190434455871582, -1.954136610031128, -2.409222364425659, -1.2948552370071411, -0.793918788433075, 1.0736767053604126, 0.17221690714359283, -0.8749863505363464, 1.228860855102539, -0.3448144793510437, -1.847589373588562, 1.117077112197876, -2.141085624694824 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
> I wonder why there is no issue in Audio feature with decoding disabled in __iter__, whereas there is in Image feature. @albertvillanova Not sure if I understand this part. Currently, both the Image and the Audio feature don't decode data in `__iter__`, so their behavior is aligned there.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
1,039
49
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge > I wonder why there is no issue in Audio feature with decoding disabled in __iter__, whereas there is in Image feature. @albertvillanova Not sure if I understand this part. Currently, both the Image and the Audio feature don't decode data in `__iter__`, so their behavior is aligned there.
[ -1.211165428161621, -0.9101131558418274, -0.7588548064231873, 1.4006620645523071, -0.16340015828609467, -1.2620564699172974, 0.20469887554645538, -1.0221178531646729, 1.7221440076828003, -0.8718710541725159, 0.28333738446235657, -1.658495545387268, 0.03207749128341675, -0.5705937743186951, -0.7585320472717285, -0.8194667100906372, -0.42310452461242676, -0.7643998861312866, 1.070438265800476, 2.480538845062256, 1.2599931955337524, -1.3169567584991455, 2.7434325218200684, 0.639890730381012, -0.18533830344676971, -0.9401944875717163, 0.5558292269706726, -0.07342995703220367, -1.351635217666626, -0.42878279089927673, -0.932609498500824, -0.03491409868001938, -0.5695133805274963, -0.5240082144737244, -0.013996787369251251, 0.4066827595233917, -0.27254366874694824, -0.46046388149261475, -0.5016162395477295, -0.7977652549743652, 0.3813099265098572, -0.4148717224597931, 0.9724029898643494, -0.2764064371585846, 1.7969452142715454, -0.5572471022605896, 0.4554780423641205, 0.778114378452301, 1.3693759441375732, 0.18992605805397034, -0.015354732982814312, 0.2872278690338135, 0.37141135334968567, -0.024217016994953156, 0.5325129628181458, 1.0976340770721436, 0.6868950128555298, 0.43066728115081787, 0.7221745848655701, -2.231987714767456, 1.3272786140441895, -0.951649010181427, 0.22301381826400757, 1.397765874862671, -0.9159054160118103, 0.3326503336429596, -1.781477689743042, -0.02786538191139698, 0.5934087634086609, -2.2509493827819824, 0.23169079422950745, -1.3272817134857178, -0.4834632873535156, 0.9925858974456787, 0.36138468980789185, -1.1952847242355347, 0.06455590575933456, -0.3958877921104431, 1.0373682975769043, 0.46341708302497864, 1.1190024614334106, -1.7108335494995117, -0.09662974625825882, -0.2682082951068878, 0.1822746843099594, -1.2441245317459106, -1.6193068027496338, 0.5025509595870972, 0.6594804525375366, 0.5807613134384155, -0.08837181329727173, 1.0468403100967407, -0.9667938947677612, 0.6972443461418152, -0.9503113031387329, -1.733642816543579, -1.3338816165924072, -2.226828098297119, -2.2272448539733887, 0.6942024230957031, -0.49446117877960205, -0.49898484349250793, 2.109339952468872, -1.0460644960403442, -1.749970555305481, 1.124266266822815, 0.2064855992794037, -0.01354939118027687, 2.3765194416046143, 0.25829607248306274, -0.7344116568565369, 0.4944457411766052, -0.767378032207489, 0.7484800219535828, -0.3548364043235779, 1.3040452003479004, 0.3389471471309662, -0.9970842003822327, 1.5429807901382446, -0.44793039560317993, 0.6151580810546875, -0.6601684093475342, -0.4389619827270508, -0.7697783708572388, 0.3246443569660187, 1.8873473405838013, -0.2639738917350769, 1.5168229341506958, -0.396420955657959, -1.6496855020523071, -1.6570875644683838, 0.856241762638092, 0.5221644043922424, -0.736470639705658, 0.09581320732831955, -0.3470150828361511, 0.1388581246137619, -0.024326372891664505, 1.1068201065063477, 1.2961152791976929, 0.7460685968399048, -0.35513702034950256, -0.8730900287628174, 0.21944113075733185, -0.06792885065078735, -0.7436699271202087, -1.762115240097046, -0.28747308254241943, 0.18601688742637634, 0.7000263333320618, -1.2244491577148438, 1.7947725057601929, 0.9246927499771118, 1.9246830940246582, 0.9953134059906006, -0.36927804350852966, 1.4778140783309937, 0.15326309204101562, 1.8430140018463135, -0.43750637769699097, 0.6776947975158691, -0.3845362961292267, -1.1410644054412842, 0.8432135581970215, -0.3435816168785095, -1.9917970895767212, -0.7523590922355652, -0.8092398643493652, -0.21994945406913757, -0.735033392906189, 0.9289047122001648, -0.27976691722869873, -1.3936201333999634, 0.2406393587589264, -0.7634087204933167, 0.14086532592773438, -1.2558996677398682, 0.30390673875808716, 0.7394432425498962, -0.6694464087486267, 0.04303289204835892, -0.2694590091705322, -1.2786754369735718, -0.37086620926856995, 0.31011271476745605, 1.9112064838409424, -0.7538757920265198, 0.9267286658287048, 1.0712934732437134, -0.645611584186554, -0.0034789470955729485, 0.31928274035453796, -0.29056215286254883, 0.8754644393920898, -1.0899040699005127, -0.32930830121040344, 1.20225191116333, -0.18272463977336884, -0.6172261238098145, 1.4740580320358276, 0.7039524912834167, -1.0326595306396484, -0.16517895460128784, -0.122957244515419, -0.7786545753479004, 0.010960673913359642, -1.6606683731079102, -0.11467812955379486, 0.46359962224960327, -1.5055824518203735, -0.426609069108963, -0.2348354011774063, 1.303699254989624, -0.13636106252670288, 1.4058829545974731, -0.33169177174568176, -0.16447657346725464, -0.3893566131591797, -0.3840181529521942, 0.11173763126134872, -0.22570672631263733, -0.5929921865463257, 0.16749106347560883, -0.8155819773674011, 0.2800067663192749, 1.4331660270690918, 0.33130741119384766, 0.022134335711598396, 0.4100889265537262, 1.091373085975647, 0.3984125256538391, -0.08509510010480881, -0.8446850180625916, -1.5629762411117554, 2.0522680282592773, -1.4869017601013184, 1.992106318473816, 0.7717207074165344, -0.06210453808307648, -1.7861472368240356, -1.8765342235565186, 1.3827738761901855, 1.113791584968567, 2.378236770629883, 0.5525927543640137, 0.42034879326820374, -0.8003219366073608, -0.674757719039917, 0.3170202672481537, -0.9678398370742798, -0.7622055411338806, 0.12513716518878937, 2.3973965644836426, 1.6738604307174683, -0.4300971031188965, -0.20248831808567047, -0.9784802198410034, 1.2971287965774536, -0.1351407915353775, 0.21999971568584442, 1.9726074934005737, -0.24299576878547668, -1.0149897336959839, 1.2536683082580566, -2.2838830947875977, 0.16027292609214783, 1.9630106687545776, 0.22263839840888977, 0.10155642777681351, -1.411984920501709, -0.6827207207679749, -0.32411912083625793, -0.3855452239513397, -1.2561817169189453, 0.5441133379936218, -0.2358061820268631, -0.8193143010139465, -1.4368430376052856, 0.211950421333313, -1.079509973526001, -1.6552600860595703, 0.19776651263237, 1.929266333580017, 2.0606961250305176, -0.8526532053947449, 1.5529247522354126, -0.2856844663619995, 0.15720273554325104, 1.243731141090393, 1.1440834999084473, 3.10973858833313, 1.923395037651062, -1.316041350364685, 0.6403168439865112, -0.11947112530469894, -0.4379623234272003, 1.1398351192474365, -1.1974165439605713, 1.2808324098587036, -0.15042462944984436, -1.237455129623413, -1.1825664043426514, 0.9570018649101257, 0.49221134185791016, 0.05697280913591385, -0.45335131883621216, 1.2141281366348267, 0.03647448122501373, 1.3293137550354004, 0.5342898368835449, -0.27565282583236694, 0.7025358080863953, -0.4419054687023163, -0.5197582840919495, 1.51470148563385, 0.18788769841194153, -1.4494355916976929, -2.245596170425415, -0.21474643051624298, -0.8813007473945618, 0.08064994215965271, -0.6393008828163147, -1.0524888038635254, 1.613404631614685, 0.38242557644844055, -1.1793402433395386, -0.3276987671852112, -0.37502530217170715, -0.5570959448814392, 2.6870193481445312, -1.3991705179214478, -0.17184938490390778, -1.0253140926361084, -0.625190258026123, 1.6060576438903809, -1.2406513690948486, -0.1763332337141037, -1.0643750429153442, -0.5430865287780762, -1.340080976486206, -0.5207005739212036, -0.04516533017158508, -0.8759386539459229, 0.7823484539985657, 0.27362388372421265, -1.2151646614074707, -0.3243100345134735, -0.9257365465164185, 0.8670876026153564, -0.1275925189256668, 0.22714976966381073, 1.8505975008010864, 0.417508065700531, -0.3797542452812195, 0.776215672492981, 1.1103101968765259, 0.618579626083374, -0.6554381251335144, 0.15075020492076874, -0.738067090511322, 0.33557793498039246, -1.3217089176177979, 0.23107735812664032, -2.826716184616089, 0.6310157775878906, -0.06508205085992813, -0.10305056720972061, -0.02991509810090065, -1.3424183130264282, 1.12345552444458, 2.599195957183838, -1.1796318292617798, 0.490123450756073, 0.3472747802734375, 1.2691694498062134, -1.5516732931137085, 0.28144320845603943, -0.46192124485969543, 2.1365630626678467, 0.22755442559719086, 1.2318700551986694, -0.4616446793079376, -2.324544668197632, 0.6773660182952881, -1.2287777662277222, -1.124328374862671, 0.7984743118286133, -0.8317614793777466, 0.09147099405527115, -1.348388910293579, -0.2954186797142029, -0.8577373623847961, -1.2138376235961914, 0.7032959461212158, 0.04552214592695236, 0.4712335765361786, -0.6064559817314148, 0.32859596610069275, -2.2396938800811768, -1.34084153175354, -0.23415030539035797, -0.9541690945625305, 0.47896963357925415, -0.3733294904232025, 0.6983348727226257, -0.16121019423007965, -0.0017277365550398827, 0.36797305941581726, 1.401505947113037, 3.4564223289489746, 0.19862279295921326, 0.37785232067108154, -0.2124890834093094, -0.9506341814994812, 1.418421745300293, 0.9218816161155701, -0.16669151186943054, -0.5170267224311829, -1.0452585220336914, 1.1906208992004395, 1.9640426635742188, 1.0046950578689575, -0.008161614648997784, -0.7838056683540344, -0.7551707029342651, 0.028692545369267464, 0.1218997910618782, 0.5002182126045227, 0.9437984824180603, 0.06117115914821625, 0.1001095250248909, 1.4505729675292969, 1.1619727611541748, -0.40116310119628906, 0.394204318523407, -0.8591234683990479, -0.46609050035476685, 0.5185239315032959, 0.296825110912323, 0.009372187778353691, 0.36000365018844604, -1.0473030805587769, -0.18582142889499664, -0.3883301317691803, -0.8825773000717163, -0.7521612644195557, -0.35049131512641907, -0.29542025923728943, 1.6167094707489014, 0.11783524602651596, -0.5291224122047424, 0.049047209322452545, -0.7326048016548157, -0.08897615224123001, -1.0471547842025757, 0.2856748104095459, -0.18786366283893585, -0.12199561297893524, -0.09172965586185455, 1.7679548263549805, -0.9525485038757324, -2.0510590076446533, 0.24427345395088196, 0.18979902565479279, -0.3388780653476715, 0.2537882924079895, 1.689789056777954, 0.6257776021957397, 1.4871385097503662, 1.336622953414917, 1.029715895652771, -0.6431236267089844, -1.284479022026062, 0.6395719647407532, 0.9045944213867188, -1.3673264980316162, 0.7923823595046997, -0.06171503663063049, -0.5105826258659363, 0.6292396187782288, 1.2743570804595947, 0.4243496358394623, -2.071807622909546, 0.7896820306777954, -0.9123473167419434, 0.7819163203239441, 0.7169748544692993, 0.7613888382911682, 0.1680857390165329, 0.8043674826622009, -1.1713370084762573, -1.1491693258285522, -0.6836668848991394, -0.7183713912963867, 1.9335235357284546, -0.3254953622817993, 0.6009023189544678, -0.18588007986545563, -1.3089509010314941, -0.09480048716068268, 0.7248032689094543, 0.3707265257835388, -0.4490794539451599, 0.8084580898284912, -0.6508587598800659, -1.1079049110412598, -1.3775157928466797, -0.5256885886192322, -1.0251411199569702, -0.974835991859436, 1.0214991569519043, 0.8209314942359924, 0.3509458303451538, 1.8707530498504639, 0.6632247567176819, 0.23349937796592712, -2.596299648284912, 0.86153244972229, 0.27303212881088257, -0.0311257466673851, 0.907177746295929, 0.3226773142814636, 1.010290503501892, -0.030141515657305717, 0.5244128704071045, -2.4249157905578613, 2.3132524490356445, -0.2913193702697754, 0.7495956420898438, -0.023605745285749435, -0.21519255638122559, 1.0650415420532227, 0.5895687341690063, 0.5370821952819824, -1.1144551038742065, 0.7371913194656372, -0.6408323049545288, 1.2065296173095703, 0.8465248942375183, -0.8601292967796326, 0.031010208651423454, 1.3684780597686768, 0.442471444606781, -0.5444595813751221, -0.9684770703315735, -1.0088878870010376, 0.9299618601799011, 1.7260411977767944, -0.06497226655483246, -0.012865880504250526, 0.7702540755271912, 0.6576139330863953, -1.313953161239624, 0.06411304324865341, -0.7510973811149597, -0.7380438446998596, 1.6821885108947754, 2.058546781539917, -0.1169137954711914, -0.22450226545333862, -0.7147970795631409, -1.25874662399292, 0.7679656147956848, 0.052736856043338776, 0.09643998742103577, 0.641866147518158, -0.6508858799934387, 1.1133476495742798, 0.8655698895454407, 0.9343956708908081, 0.15871720016002655, 0.27796947956085205, 0.4005587697029114, -0.39264675974845886, -1.1350741386413574, -0.2565845251083374, -1.1241610050201416, -2.480492353439331, 0.39072534441947937, -0.24413923919200897, -1.4979932308197021, 0.008162073791027069, -0.9958806037902832, 0.8774270415306091, -0.5427379012107849, -1.1175369024276733, -1.521414875984192, 0.191534623503685, -0.055256396532058716, 0.9289630055427551, -1.5893162488937378, -0.15168288350105286, 1.2873003482818604, 1.009961485862732, -0.590052604675293, 1.0125209093093872, 0.20210866630077362, 0.9926459789276123, 0.8664201498031616, -0.3636302649974823, 0.4880579710006714, 0.07648225128650665, -1.3254023790359497, 0.45473018288612366, 1.2238359451293945, 0.17701412737369537, 1.5246928930282593, -0.556607723236084, -0.018017208203673363, 0.38628697395324707, -0.47861114144325256, -0.48035115003585815, -0.5811365842819214, 0.6810709834098816, 0.08676104247570038, -0.9152557849884033, 0.00498897023499012, -0.09018799662590027, -0.2053900957107544, 0.19556736946105957, -1.5049575567245483, -0.1346648931503296, -0.40260055661201477, -0.6260975003242493, -1.267905831336975, -0.07859741151332855, 1.387156367301941, -0.8008749485015869, -0.20918278396129608, 0.4954885244369507, 0.34741124510765076, 0.470470666885376, 0.6805930733680725, -0.6901240944862366, -0.30530619621276855, -0.27182745933532715, -0.3791387379169464, 0.34884345531463623, 1.3155072927474976, -0.08403926342725754, -1.0188965797424316, 0.6722105145454407, -0.3429970145225525, 0.08610011637210846, 1.9277814626693726, 0.045511454343795776, -0.8140170574188232, 0.32205134630203247, -0.785934329032898, 1.908739447593689, 1.715867280960083, 1.333329200744629, -0.08367213606834412, -1.0252200365066528, 0.6664249300956726, -0.3195455074310303, -0.4328998625278473, 0.981670081615448, 0.4455048143863678, -0.28134647011756897, -1.424086093902588, 0.6617384552955627, 1.18437659740448, -0.9054805636405945, -0.7434139251708984, 0.10594850778579712, -0.7962099313735962, 1.1247764825820923, 0.7002239227294922, 0.3710523247718811, 0.22235675156116486, 1.6298757791519165, 0.8069526553153992, -0.46516770124435425, 0.5637791156768799, 0.5149956345558167, -0.14451642334461212, -2.1416916847229004, -1.1010396480560303, 0.28966936469078064, -0.4624409079551697, -1.5930429697036743, 1.396919846534729, -1.1401928663253784, -0.9966209530830383, 0.5410701632499695, 0.14198167622089386, 1.4264072179794312, 0.31674015522003174, 1.600633978843689, 2.1084985733032227, 0.9310622215270996, 0.37823250889778137, 1.2540079355239868, -0.21143779158592224, -0.4250710904598236, 1.8103173971176147, -0.5264782905578613, 0.45130300521850586, 1.0744504928588867, -0.3545668423175812, -1.0560470819473267, -0.834389328956604, -1.2253228425979614, -0.6859830021858215, 1.1724129915237427, 0.0644722506403923, -1.0429903268814087, 0.2948414385318756, 1.5339807271957397, 0.09851403534412384, -0.34280291199684143, 0.6314136385917664, 0.44858235120773315, -0.8452645540237427, -0.10749219357967377, -0.933527410030365, 0.5102354884147644, -0.1553204357624054, -0.3357188105583191, 0.33902448415756226, 0.4919542670249939, 1.378385305404663, -0.0513574481010437, 0.10631086677312851, 1.2127137184143066, -1.3869702816009521, 1.5291972160339355, -0.6935983300209045, 0.25963374972343445, -2.3563084602355957, 1.3808000087738037, -0.7702876329421997, 1.944743037223816, -2.674694776535034, 0.4440535008907318, -0.5750581622123718, -0.44015946984291077, 0.3308235704898834, -0.3268061578273773, 0.1189800277352333, -0.17275556921958923, -1.1346428394317627, -0.17735207080841064, -0.7378154397010803, 0.6004670262336731, 1.1221134662628174, 1.352340579032898, -1.0621428489685059, -0.25238174200057983, -1.726657748222351, -0.14316686987876892, -0.8186945915222168, 0.35133686661720276, -1.9166797399520874, -0.162619948387146, -1.9677685499191284, -2.407468795776367, -1.2960647344589233, -0.7895314693450928, 1.0731841325759888, 0.17365007102489471, -0.870546281337738, 1.2127912044525146, -0.3488312363624573, -1.820762038230896, 1.1350268125534058, -2.1309120655059814 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
Therefore, this is not an issue, neither for Audio nor Image feature. Could you please elaborate more on the expected use case? @lhoestq @NielsRogge The expected use cases (in accordance with the specs: see #2324): - decoding should be enabled when accessing a specific item (`__getitem__`) - decoding should be disabled while iterating (`__iter__`) to allow preprocessing of non-audio/image features (like label or text, for example) using `.map` - decoding should be enabled in a `.map` only if the `.map` function accesses the audio/image feature (implemented using `LazyDict`)
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
1,039
88
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge Therefore, this is not an issue, neither for Audio nor Image feature. Could you please elaborate more on the expected use case? @lhoestq @NielsRogge The expected use cases (in accordance with the specs: see #2324): - decoding should be enabled when accessing a specific item (`__getitem__`) - decoding should be disabled while iterating (`__iter__`) to allow preprocessing of non-audio/image features (like label or text, for example) using `.map` - decoding should be enabled in a `.map` only if the `.map` function accesses the audio/image feature (implemented using `LazyDict`)
[ -1.2130186557769775, -0.9012072086334229, -0.7550197243690491, 1.409445881843567, -0.16466210782527924, -1.24394953250885, 0.1852039247751236, -1.030434250831604, 1.7139495611190796, -0.8288601040840149, 0.2805617153644562, -1.6471285820007324, 0.04148174449801445, -0.5636988282203674, -0.7654459476470947, -0.8049271702766418, -0.42734384536743164, -0.7543556094169617, 1.057151198387146, 2.530468225479126, 1.2527825832366943, -1.2936218976974487, 2.7616426944732666, 0.6492393612861633, -0.18686947226524353, -0.937272846698761, 0.5550765991210938, -0.08894354850053787, -1.3637442588806152, -0.41325220465660095, -0.9528520107269287, -0.05814481899142265, -0.5752642750740051, -0.5561534762382507, -0.012781264260411263, 0.39076220989227295, -0.26518380641937256, -0.45067867636680603, -0.5148953795433044, -0.7886402606964111, 0.41733086109161377, -0.42535996437072754, 0.9574815034866333, -0.26172274351119995, 1.8164026737213135, -0.5766238570213318, 0.46839001774787903, 0.7708451151847839, 1.3589189052581787, 0.20380288362503052, -0.03707551583647728, 0.3247790038585663, 0.3766292333602905, -0.020183535292744637, 0.5212655663490295, 1.110453486442566, 0.6865895390510559, 0.42891833186149597, 0.7290639281272888, -2.2326245307922363, 1.3215386867523193, -0.962936520576477, 0.21996022760868073, 1.3770860433578491, -0.9212892055511475, 0.3562398850917816, -1.7764025926589966, -0.0182039737701416, 0.5761532187461853, -2.2465856075286865, 0.24453340470790863, -1.3306125402450562, -0.49821943044662476, 1.0195921659469604, 0.3806060552597046, -1.223834753036499, 0.057445429265499115, -0.4083153307437897, 1.0450751781463623, 0.4474184513092041, 1.1275960206985474, -1.7276540994644165, -0.10454478114843369, -0.296974778175354, 0.16842371225357056, -1.2453991174697876, -1.6144874095916748, 0.5159519910812378, 0.6389614939689636, 0.5927942991256714, -0.0895947515964508, 1.0209128856658936, -0.9345544576644897, 0.7056055068969727, -0.9719205498695374, -1.7463847398757935, -1.3482444286346436, -2.2242023944854736, -2.217446804046631, 0.7012939453125, -0.4756528437137604, -0.49661484360694885, 2.0857961177825928, -1.0484540462493896, -1.7559125423431396, 1.1250361204147339, 0.23268482089042664, -0.0394732803106308, 2.3937201499938965, 0.2774825990200043, -0.7401849031448364, 0.5017797946929932, -0.791509211063385, 0.7378630042076111, -0.3486922085285187, 1.3154691457748413, 0.35418447852134705, -1.0032472610473633, 1.5303585529327393, -0.4571705758571625, 0.6038275957107544, -0.6707490682601929, -0.44153767824172974, -0.7553226947784424, 0.33121299743652344, 1.8867920637130737, -0.2980073094367981, 1.5177968740463257, -0.3989863693714142, -1.628281831741333, -1.6500275135040283, 0.8411757349967957, 0.5367799401283264, -0.7135100960731506, 0.09445811808109283, -0.34363529086112976, 0.1221475675702095, -0.03024904802441597, 1.1021572351455688, 1.273329734802246, 0.751661479473114, -0.3386739492416382, -0.8783658742904663, 0.21191221475601196, -0.04463815689086914, -0.7443383932113647, -1.7636432647705078, -0.2952917516231537, 0.17201881110668182, 0.6967501640319824, -1.246413230895996, 1.785400390625, 0.9029264450073242, 1.9125603437423706, 1.005454421043396, -0.3562454283237457, 1.48160982131958, 0.16065005958080292, 1.8489205837249756, -0.4628094434738159, 0.6801068186759949, -0.3921852707862854, -1.14439857006073, 0.8175197243690491, -0.3314819633960724, -2.0108728408813477, -0.7447292804718018, -0.8251751065254211, -0.22677819430828094, -0.7610681653022766, 0.9382007122039795, -0.29453134536743164, -1.3750317096710205, 0.2650531828403473, -0.7756929993629456, 0.11461371183395386, -1.2612168788909912, 0.31934240460395813, 0.7252136468887329, -0.6541612148284912, 0.05487361550331116, -0.23982898890972137, -1.2893544435501099, -0.38571298122406006, 0.2720624506473541, 1.893474817276001, -0.7616761326789856, 0.9493990540504456, 1.070207118988037, -0.6471882462501526, -0.022410515695810318, 0.34147560596466064, -0.30062761902809143, 0.89170241355896, -1.0809109210968018, -0.33724305033683777, 1.204533576965332, -0.1635911911725998, -0.6037865281105042, 1.470537781715393, 0.7081475257873535, -1.0385586023330688, -0.1788162738084793, -0.11745139211416245, -0.7837426662445068, 0.02739790454506874, -1.6628721952438354, -0.12014690041542053, 0.4486590027809143, -1.5146161317825317, -0.44709333777427673, -0.2274370938539505, 1.3078687191009521, -0.1417974829673767, 1.3892688751220703, -0.34502315521240234, -0.15544098615646362, -0.39101868867874146, -0.35939064621925354, 0.09577564150094986, -0.2232142686843872, -0.5719552636146545, 0.16603954136371613, -0.8150120377540588, 0.2869153320789337, 1.4385384321212769, 0.3518431782722473, 0.02394287660717964, 0.42941418290138245, 1.0840576887130737, 0.4080851078033447, -0.09581171721220016, -0.8522971272468567, -1.5771119594573975, 2.0559020042419434, -1.480713129043579, 2.005250930786133, 0.783032238483429, -0.06295093148946762, -1.7836695909500122, -1.8910317420959473, 1.3741966485977173, 1.1187736988067627, 2.38581919670105, 0.5570611357688904, 0.437165230512619, -0.8020169734954834, -0.6695720553398132, 0.3253058195114136, -0.9749295115470886, -0.7568365931510925, 0.1355637162923813, 2.420037031173706, 1.6844418048858643, -0.4141431152820587, -0.20672853291034698, -1.0082751512527466, 1.2992609739303589, -0.13187691569328308, 0.20906980335712433, 1.9478141069412231, -0.24241779744625092, -1.0362800359725952, 1.2400647401809692, -2.249035120010376, 0.15167002379894257, 1.94607675075531, 0.21458297967910767, 0.11152268946170807, -1.3977203369140625, -0.6797813177108765, -0.3127806782722473, -0.39209455251693726, -1.2549711465835571, 0.5410177707672119, -0.213698610663414, -0.8292427062988281, -1.436402678489685, 0.188974991440773, -1.0789189338684082, -1.6550102233886719, 0.20561575889587402, 1.9171007871627808, 2.0488100051879883, -0.8555132150650024, 1.5609166622161865, -0.2839770019054413, 0.15865954756736755, 1.2455716133117676, 1.1404441595077515, 3.117898941040039, 1.9200282096862793, -1.3294057846069336, 0.6382395625114441, -0.11726269870996475, -0.4393949508666992, 1.1353703737258911, -1.198638677597046, 1.303951621055603, -0.15708313882350922, -1.2271064519882202, -1.1781493425369263, 0.9390849471092224, 0.47548654675483704, 0.054069459438323975, -0.4393865764141083, 1.198682188987732, 0.04712972790002823, 1.3128657341003418, 0.5385099649429321, -0.2695654630661011, 0.7114254236221313, -0.4205586314201355, -0.49114567041397095, 1.4955612421035767, 0.2084118127822876, -1.4371775388717651, -2.263949394226074, -0.21223606169223785, -0.8773735761642456, 0.08131084591150284, -0.6512811183929443, -1.046644926071167, 1.6018208265304565, 0.3938693404197693, -1.1821908950805664, -0.32042500376701355, -0.36897626519203186, -0.5530034303665161, 2.699336528778076, -1.4339133501052856, -0.17503885924816132, -1.0249196290969849, -0.5992128252983093, 1.6008491516113281, -1.2197368144989014, -0.1762140840291977, -1.0799312591552734, -0.556095540523529, -1.3206825256347656, -0.5456154346466064, -0.056881263852119446, -0.8855575323104858, 0.7680588960647583, 0.2579367756843567, -1.1972194910049438, -0.30089980363845825, -0.919451892375946, 0.870331883430481, -0.11937852948904037, 0.20735789835453033, 1.8776094913482666, 0.43162283301353455, -0.3736109137535095, 0.7622114419937134, 1.1240788698196411, 0.6175158023834229, -0.6483556032180786, 0.1641518920660019, -0.7563972473144531, 0.33613285422325134, -1.3127471208572388, 0.22696754336357117, -2.8180391788482666, 0.6275799870491028, -0.07281222194433212, -0.09268685430288315, -0.023523647338151932, -1.3415852785110474, 1.1235015392303467, 2.5921549797058105, -1.139724850654602, 0.48126599192619324, 0.3349396586418152, 1.243439793586731, -1.562389850616455, 0.2660042643547058, -0.46440911293029785, 2.1381213665008545, 0.23120687901973724, 1.2256866693496704, -0.4758564829826355, -2.315197706222534, 0.67453533411026, -1.2545279264450073, -1.1528353691101074, 0.8015137910842896, -0.8097034692764282, 0.07945564389228821, -1.3557300567626953, -0.2702588438987732, -0.867316484451294, -1.2341535091400146, 0.7141078114509583, 0.06714590638875961, 0.4923032820224762, -0.6012214422225952, 0.32637882232666016, -2.225895404815674, -1.3463211059570312, -0.24310488998889923, -0.9246195554733276, 0.4774283766746521, -0.3431045711040497, 0.713883638381958, -0.19126346707344055, -0.019416749477386475, 0.3894496560096741, 1.3884212970733643, 3.457106590270996, 0.2183850258588791, 0.380656361579895, -0.2096264511346817, -0.967937707901001, 1.399223804473877, 0.942631721496582, -0.18640054762363434, -0.5428087711334229, -1.024994969367981, 1.1891361474990845, 1.9717718362808228, 1.0127726793289185, -0.005283618811517954, -0.7851895689964294, -0.7413144707679749, 0.03257966414093971, 0.15184028446674347, 0.4673048257827759, 0.9360485672950745, 0.06754888594150543, 0.10195497423410416, 1.450720191001892, 1.1608386039733887, -0.43367359042167664, 0.38825055956840515, -0.8481215834617615, -0.4655851423740387, 0.5302462577819824, 0.29765814542770386, -0.002776583656668663, 0.3497120141983032, -1.0381709337234497, -0.2119695544242859, -0.3920503556728363, -0.8909047245979309, -0.7612571716308594, -0.3445538282394409, -0.3010829985141754, 1.6108767986297607, 0.11223332583904266, -0.5039305090904236, 0.02754877880215645, -0.7529305219650269, -0.10047901421785355, -1.0485302209854126, 0.28574299812316895, -0.19765502214431763, -0.1109929010272026, -0.10755588114261627, 1.7634329795837402, -0.9528078436851501, -2.033442735671997, 0.26305291056632996, 0.20115071535110474, -0.342021644115448, 0.23940409719944, 1.6936568021774292, 0.6452993154525757, 1.480100393295288, 1.332617163658142, 1.0047719478607178, -0.635791540145874, -1.2711882591247559, 0.6367765069007874, 0.9278085827827454, -1.3751024007797241, 0.7824801206588745, -0.0304938405752182, -0.5210736393928528, 0.6354969143867493, 1.2739624977111816, 0.4360206127166748, -2.039517641067505, 0.7760323882102966, -0.8849315047264099, 0.7831701040267944, 0.7150170803070068, 0.7869919538497925, 0.1444203406572342, 0.7789727449417114, -1.1778428554534912, -1.1615222692489624, -0.6845744848251343, -0.6898933053016663, 1.9457926750183105, -0.2963486313819885, 0.5852451324462891, -0.20633599162101746, -1.3083951473236084, -0.0729001834988594, 0.7018299698829651, 0.3708034157752991, -0.46722176671028137, 0.787835955619812, -0.6544895172119141, -1.1104260683059692, -1.3713769912719727, -0.5090901255607605, -1.0089588165283203, -0.9614008069038391, 1.0275590419769287, 0.8215062618255615, 0.3690662086009979, 1.8821756839752197, 0.6539682149887085, 0.23643858730793, -2.6025807857513428, 0.881103515625, 0.2728150188922882, -0.053594283759593964, 0.9042347073554993, 0.31451085209846497, 0.9907622337341309, -0.028915300965309143, 0.5300015211105347, -2.4195942878723145, 2.2985010147094727, -0.26632165908813477, 0.7252829074859619, -0.028613772243261337, -0.20339040458202362, 1.0601143836975098, 0.5921147465705872, 0.519639790058136, -1.0898222923278809, 0.7357786297798157, -0.623481273651123, 1.2166073322296143, 0.8500953912734985, -0.8736929893493652, 0.00043058954179286957, 1.3555257320404053, 0.4639764428138733, -0.5356958508491516, -0.9549658298492432, -1.0034911632537842, 0.955155074596405, 1.7522122859954834, -0.0700143426656723, -0.0141261275857687, 0.7926110029220581, 0.6616343259811401, -1.309907078742981, 0.06927786767482758, -0.7560409307479858, -0.750398576259613, 1.6788561344146729, 2.0731067657470703, -0.12099938094615936, -0.227617084980011, -0.7118760347366333, -1.253420114517212, 0.8064586520195007, 0.05254305526614189, 0.11590779572725296, 0.6345518231391907, -0.6428548097610474, 1.1357736587524414, 0.893103837966919, 0.9337339997291565, 0.17854271829128265, 0.2786048352718353, 0.35752636194229126, -0.3730871081352234, -1.1555184125900269, -0.2415766716003418, -1.1054250001907349, -2.493013858795166, 0.402565598487854, -0.22637060284614563, -1.4938801527023315, 0.02488122507929802, -1.0030425786972046, 0.8739913105964661, -0.5363320112228394, -1.0947679281234741, -1.5200945138931274, 0.19820451736450195, -0.048428844660520554, 0.9302396774291992, -1.6214141845703125, -0.1257360577583313, 1.2708348035812378, 1.001807451248169, -0.5808647871017456, 0.9873293042182922, 0.2164113074541092, 0.9837754368782043, 0.887191891670227, -0.3456687331199646, 0.487169086933136, 0.08301372081041336, -1.3320845365524292, 0.44536662101745605, 1.2386897802352905, 0.17147891223430634, 1.532147765159607, -0.5490673780441284, -0.0028716479428112507, 0.3947851061820984, -0.46643391251564026, -0.488694429397583, -0.5909385085105896, 0.6612305641174316, 0.11151040345430374, -0.9022358059883118, 0.011477836407721043, -0.08391021192073822, -0.21179690957069397, 0.20208106935024261, -1.4942479133605957, -0.12211275100708008, -0.39258521795272827, -0.64359450340271, -1.2655574083328247, -0.10613321512937546, 1.392212986946106, -0.8053382635116577, -0.2039637416601181, 0.501847505569458, 0.32605278491973877, 0.470636248588562, 0.6885955929756165, -0.6713500618934631, -0.31762075424194336, -0.2544085383415222, -0.39059382677078247, 0.3433193266391754, 1.3324072360992432, -0.08056291937828064, -1.025833010673523, 0.6801393032073975, -0.3407348096370697, 0.09029356390237808, 1.909353494644165, 0.05473907291889191, -0.8257696628570557, 0.3169283866882324, -0.7653043866157532, 1.9155603647232056, 1.7135863304138184, 1.3256477117538452, -0.09254463762044907, -1.0281473398208618, 0.6711618900299072, -0.3265542984008789, -0.4316527247428894, 0.9916393756866455, 0.425706684589386, -0.296245813369751, -1.4154976606369019, 0.6602757573127747, 1.2103866338729858, -0.8903774619102478, -0.7433637976646423, 0.08222565054893494, -0.7991133332252502, 1.1199259757995605, 0.7055067420005798, 0.34858736395835876, 0.22693835198879242, 1.6282650232315063, 0.7729326486587524, -0.47641757130622864, 0.5392885804176331, 0.4913952648639679, -0.1430368423461914, -2.1462318897247314, -1.1028028726577759, 0.29854097962379456, -0.4651477336883545, -1.6035314798355103, 1.3781152963638306, -1.1360429525375366, -0.9956594705581665, 0.5492188334465027, 0.1326972097158432, 1.434334635734558, 0.3101388216018677, 1.5947648286819458, 2.101036310195923, 0.9204878211021423, 0.36374154686927795, 1.270087718963623, -0.2045215517282486, -0.41007325053215027, 1.7808295488357544, -0.5266754031181335, 0.47234678268432617, 1.0531928539276123, -0.3607722520828247, -1.0795931816101074, -0.8415948748588562, -1.2375733852386475, -0.7184733152389526, 1.1815458536148071, 0.05598893761634827, -1.0670044422149658, 0.303898423910141, 1.5575478076934814, 0.08141966164112091, -0.33525580167770386, 0.6216713190078735, 0.4553217887878418, -0.8251378536224365, -0.09259030222892761, -0.9343154430389404, 0.5047098994255066, -0.13305677473545074, -0.3413937985897064, 0.33606258034706116, 0.49436041712760925, 1.3746390342712402, -0.06798359751701355, 0.09430097043514252, 1.2051329612731934, -1.398918867111206, 1.5358309745788574, -0.6978999972343445, 0.2665320336818695, -2.35736346244812, 1.3901044130325317, -0.7745519876480103, 1.9136836528778076, -2.6714046001434326, 0.44943946599960327, -0.5488830804824829, -0.43792369961738586, 0.31869542598724365, -0.3313777446746826, 0.1565876305103302, -0.18462800979614258, -1.140673041343689, -0.18960627913475037, -0.7379985451698303, 0.5987013578414917, 1.1268244981765747, 1.3635200262069702, -1.0808923244476318, -0.24316522479057312, -1.7265056371688843, -0.15432626008987427, -0.8075255155563354, 0.31587180495262146, -1.9275883436203003, -0.1489398032426834, -1.9599292278289795, -2.3928239345550537, -1.2947511672973633, -0.7881532311439514, 1.081895351409912, 0.15861749649047852, -0.8811761736869812, 1.2083237171173096, -0.3663642108440399, -1.8448394536972046, 1.136837363243103, -2.1513760089874268 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
For me it's not an issue, actually. I just (mistakenly) tried to iterate over a PyTorch Dataset instead of a PyTorch DataLoader, i.e. I did this: `batch = next(iter(train_ds)) ` whereas I actually wanted to do `batch = next(iter(train_dataloader))` and then it turned out that in the first case, the image was a string of bytes rather than a Pillow image, hence Quentin opened an issue.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
1,039
66
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge For me it's not an issue, actually. I just (mistakenly) tried to iterate over a PyTorch Dataset instead of a PyTorch DataLoader, i.e. I did this: `batch = next(iter(train_ds)) ` whereas I actually wanted to do `batch = next(iter(train_dataloader))` and then it turned out that in the first case, the image was a string of bytes rather than a Pillow image, hence Quentin opened an issue.
[ -1.2237061262130737, -0.9164220690727234, -0.7558967471122742, 1.3946740627288818, -0.16683438420295715, -1.2239354848861694, 0.18165135383605957, -1.0060226917266846, 1.7335150241851807, -0.8329067826271057, 0.2885405719280243, -1.657406210899353, 0.057222478091716766, -0.5386314392089844, -0.7609392404556274, -0.8137206435203552, -0.4380524158477783, -0.7696197032928467, 1.0864492654800415, 2.51487135887146, 1.2333720922470093, -1.3098838329315186, 2.745469331741333, 0.6402474045753479, -0.15945987403392792, -0.979781448841095, 0.5579309463500977, -0.0766269862651825, -1.3634473085403442, -0.4118495285511017, -0.9498579502105713, -0.07003898173570633, -0.5660521388053894, -0.5541821122169495, -0.00834792573004961, 0.41771912574768066, -0.26610666513442993, -0.4685448110103607, -0.5092909932136536, -0.7815534472465515, 0.4271470010280609, -0.43336188793182373, 0.954841673374176, -0.2690485715866089, 1.796553611755371, -0.5476632714271545, 0.4761452376842499, 0.7531201839447021, 1.3671663999557495, 0.20330043137073517, -0.026584796607494354, 0.309975266456604, 0.38444119691848755, -0.024844467639923096, 0.5113674998283386, 1.1152245998382568, 0.6964936256408691, 0.42785367369651794, 0.7216421365737915, -2.2323033809661865, 1.316471815109253, -0.9673632979393005, 0.23544427752494812, 1.3724156618118286, -0.9247467517852783, 0.341002494096756, -1.770303726196289, -0.03452305868268013, 0.5740688443183899, -2.2276456356048584, 0.2343999594449997, -1.3370749950408936, -0.4814762771129608, 1.0185502767562866, 0.3845890760421753, -1.2259162664413452, 0.04528733342885971, -0.41539663076400757, 1.032514214515686, 0.4507683515548706, 1.1343058347702026, -1.7324895858764648, -0.11139523983001709, -0.2858554422855377, 0.1907397210597992, -1.2347480058670044, -1.5912821292877197, 0.5090798735618591, 0.6623889803886414, 0.6001489758491516, -0.09420792013406754, 1.0282795429229736, -0.9597890377044678, 0.703002393245697, -0.9820383787155151, -1.7273082733154297, -1.3384029865264893, -2.221754550933838, -2.2528207302093506, 0.7094907760620117, -0.46723586320877075, -0.508995771408081, 2.085930347442627, -1.0372415781021118, -1.7475461959838867, 1.1260486841201782, 0.2275807112455368, -0.010820024646818638, 2.3813369274139404, 0.26587921380996704, -0.7493455410003662, 0.5081496238708496, -0.7651272416114807, 0.7494898438453674, -0.3542875349521637, 1.3449256420135498, 0.3623858690261841, -0.9791264533996582, 1.5455098152160645, -0.4400882422924042, 0.6213613748550415, -0.6781155467033386, -0.4262015223503113, -0.767995297908783, 0.34003713726997375, 1.9003592729568481, -0.27490922808647156, 1.5256402492523193, -0.40055379271507263, -1.643998622894287, -1.6454675197601318, 0.852871835231781, 0.5180794596672058, -0.7212995886802673, 0.08780860155820847, -0.3589245080947876, 0.14787444472312927, -0.013294240459799767, 1.091955542564392, 1.2700603008270264, 0.7574815154075623, -0.3347250819206238, -0.9016152024269104, 0.2159149944782257, -0.06722753494977951, -0.7477220892906189, -1.7599154710769653, -0.31483715772628784, 0.1683918982744217, 0.6896112561225891, -1.2452378273010254, 1.799031138420105, 0.9059906005859375, 1.9413769245147705, 1.0062003135681152, -0.35703322291374207, 1.4855152368545532, 0.16322457790374756, 1.8561111688613892, -0.47360149025917053, 0.6822479367256165, -0.3810243308544159, -1.128066062927246, 0.8059746623039246, -0.33014655113220215, -2.0174527168273926, -0.7472765445709229, -0.8079784512519836, -0.22538109123706818, -0.7510643601417542, 0.9267718195915222, -0.29989930987358093, -1.3872570991516113, 0.26513320207595825, -0.7820224761962891, 0.11251334846019745, -1.23518967628479, 0.3086768686771393, 0.7297908663749695, -0.6635724902153015, 0.058230333030223846, -0.2441142350435257, -1.303324818611145, -0.3638070523738861, 0.2849790155887604, 1.8997762203216553, -0.7736238837242126, 0.9543690085411072, 1.0708847045898438, -0.6543135643005371, -0.008494309149682522, 0.34467560052871704, -0.28539615869522095, 0.8750863671302795, -1.082506775856018, -0.32136473059654236, 1.2263730764389038, -0.17679762840270996, -0.6082825660705566, 1.4758373498916626, 0.7066869735717773, -1.0270386934280396, -0.17764857411384583, -0.10197418928146362, -0.7731338739395142, 0.048636604100465775, -1.6665501594543457, -0.1040821447968483, 0.44816526770591736, -1.4958654642105103, -0.457548588514328, -0.231533482670784, 1.2691982984542847, -0.14126428961753845, 1.3878750801086426, -0.34915682673454285, -0.16632136702537537, -0.4006999731063843, -0.37068885564804077, 0.0950240045785904, -0.2489951103925705, -0.5878129601478577, 0.16121910512447357, -0.8218919038772583, 0.2962951958179474, 1.4556443691253662, 0.3583599328994751, 0.036831870675086975, 0.4364311993122101, 1.1097255945205688, 0.40964868664741516, -0.08688477426767349, -0.8485497832298279, -1.578066110610962, 2.045576810836792, -1.4888482093811035, 2.005685806274414, 0.7775661945343018, -0.07777830958366394, -1.7613933086395264, -1.874558687210083, 1.3876093626022339, 1.1170541048049927, 2.399723768234253, 0.5593605041503906, 0.4300629198551178, -0.798164963722229, -0.6649126410484314, 0.32032015919685364, -0.9768038988113403, -0.7708226442337036, 0.1490241289138794, 2.408804416656494, 1.6933084726333618, -0.4210048019886017, -0.20021523535251617, -1.001077651977539, 1.316549301147461, -0.1522560715675354, 0.22007732093334198, 1.9590892791748047, -0.2202903926372528, -1.033677101135254, 1.2486340999603271, -2.265571117401123, 0.16986912488937378, 1.9427789449691772, 0.2537606358528137, 0.11442452669143677, -1.4208780527114868, -0.6686925292015076, -0.3121761679649353, -0.38161736726760864, -1.2565730810165405, 0.5454860925674438, -0.24229857325553894, -0.8272261023521423, -1.4293653964996338, 0.20434023439884186, -1.09138822555542, -1.6514499187469482, 0.19520290195941925, 1.8894000053405762, 2.0478265285491943, -0.8414264917373657, 1.5328792333602905, -0.2845025956630707, 0.17151786386966705, 1.2419390678405762, 1.1147135496139526, 3.100464105606079, 1.935355305671692, -1.2976588010787964, 0.636946439743042, -0.13612981140613556, -0.4456847012042999, 1.1456389427185059, -1.1974350214004517, 1.2830966711044312, -0.14470404386520386, -1.2287445068359375, -1.167251706123352, 0.9518547058105469, 0.4806922376155853, 0.05687592923641205, -0.4418005347251892, 1.2004444599151611, 0.038990411907434464, 1.2963104248046875, 0.5353662371635437, -0.25597575306892395, 0.7189490795135498, -0.4303450286388397, -0.49705561995506287, 1.4894068241119385, 0.207566499710083, -1.4504187107086182, -2.231661319732666, -0.22111254930496216, -0.8931390643119812, 0.07135800272226334, -0.6506043076515198, -1.0544220209121704, 1.617889404296875, 0.3776109218597412, -1.200432538986206, -0.3011458218097687, -0.35447317361831665, -0.57134610414505, 2.7131285667419434, -1.3974558115005493, -0.1935971975326538, -1.043531060218811, -0.6081452965736389, 1.6087462902069092, -1.2179847955703735, -0.1717066764831543, -1.0729191303253174, -0.5496850609779358, -1.322383999824524, -0.5486891269683838, -0.05318004637956619, -0.8772879242897034, 0.7671225070953369, 0.258038192987442, -1.2119319438934326, -0.306315153837204, -0.9189342856407166, 0.8582684397697449, -0.11089824140071869, 0.20478753745555878, 1.8617037534713745, 0.4367215633392334, -0.37340423464775085, 0.7588739395141602, 1.1171157360076904, 0.6172012686729431, -0.6462407112121582, 0.17504923045635223, -0.7526819705963135, 0.3395901024341583, -1.3141655921936035, 0.22449690103530884, -2.8195853233337402, 0.6385908126831055, -0.04096829146146774, -0.09869543462991714, -0.029867738485336304, -1.3210337162017822, 1.114821434020996, 2.6045784950256348, -1.1633721590042114, 0.48874109983444214, 0.3421097993850708, 1.251967430114746, -1.5501999855041504, 0.26155662536621094, -0.4619569182395935, 2.1243624687194824, 0.24732723832130432, 1.2332453727722168, -0.4841728210449219, -2.320827007293701, 0.6793596148490906, -1.256888508796692, -1.1433632373809814, 0.7852080464363098, -0.8355666995048523, 0.0648694857954979, -1.3380405902862549, -0.25772032141685486, -0.8503425717353821, -1.2101948261260986, 0.6980974078178406, 0.06482051312923431, 0.4606062173843384, -0.5964720249176025, 0.3450644910335541, -2.2359681129455566, -1.3541922569274902, -0.24834202229976654, -0.9427881240844727, 0.48956045508384705, -0.35429489612579346, 0.7036606669425964, -0.16835689544677734, -0.030933793634176254, 0.37496843934059143, 1.401604413986206, 3.4418253898620605, 0.22733953595161438, 0.37467291951179504, -0.19151858985424042, -0.9674054384231567, 1.4044466018676758, 0.9305483102798462, -0.1958785057067871, -0.5419614315032959, -1.0306893587112427, 1.209945797920227, 1.9697985649108887, 1.0317955017089844, -0.014675839804112911, -0.7785398364067078, -0.7543132305145264, 0.024782221764326096, 0.12512142956256866, 0.45689839124679565, 0.9406511187553406, 0.07517259567975998, 0.10726053267717361, 1.465468406677246, 1.1441916227340698, -0.4254308044910431, 0.37310338020324707, -0.8436264991760254, -0.47042354941368103, 0.5488553643226624, 0.2802792489528656, 0.011010139249265194, 0.3438722491264343, -1.048948884010315, -0.2014443576335907, -0.40602827072143555, -0.901423454284668, -0.7598129510879517, -0.3523382544517517, -0.29434463381767273, 1.6177003383636475, 0.09922601282596588, -0.5288068652153015, 0.03686303272843361, -0.7658815383911133, -0.08987192809581757, -1.0376029014587402, 0.28985458612442017, -0.17628435790538788, -0.13433200120925903, -0.09634622931480408, 1.7547690868377686, -0.9631611704826355, -2.0538690090179443, 0.25068584084510803, 0.19602923095226288, -0.35484403371810913, 0.26416462659835815, 1.6665185689926147, 0.6321151852607727, 1.4578499794006348, 1.3501591682434082, 1.0174729824066162, -0.647023618221283, -1.2822178602218628, 0.6363257169723511, 0.9041313529014587, -1.3685649633407593, 0.8003125190734863, -0.02974570542573929, -0.5156211853027344, 0.630830705165863, 1.2840827703475952, 0.4574867784976959, -2.0492093563079834, 0.7633904218673706, -0.8953169584274292, 0.7687633037567139, 0.7145062685012817, 0.7677402496337891, 0.14479927718639374, 0.7793281674385071, -1.1967475414276123, -1.1479665040969849, -0.6888026595115662, -0.699472188949585, 1.9467265605926514, -0.28015008568763733, 0.5901283621788025, -0.18893706798553467, -1.321966528892517, -0.07287099957466125, 0.705367386341095, 0.3629617989063263, -0.48394665122032166, 0.8023296594619751, -0.6425561308860779, -1.1117432117462158, -1.3769599199295044, -0.5284098982810974, -1.0082381963729858, -0.9795811772346497, 1.0322145223617554, 0.8023146390914917, 0.35991743206977844, 1.8696255683898926, 0.6697817444801331, 0.2450973391532898, -2.6036124229431152, 0.8901262283325195, 0.2861248552799225, -0.03790675848722458, 0.887745201587677, 0.30550867319107056, 0.9673328399658203, -0.055656593292951584, 0.5494291186332703, -2.3955578804016113, 2.3173344135284424, -0.2880355715751648, 0.7322070002555847, -0.045031655579805374, -0.21481241285800934, 1.0700719356536865, 0.6032807230949402, 0.5402639508247375, -1.1235225200653076, 0.7246007919311523, -0.6347329616546631, 1.2141623497009277, 0.8348665237426758, -0.8535963296890259, 0.016283594071865082, 1.3345316648483276, 0.4366599917411804, -0.519210159778595, -0.9787691831588745, -1.0090534687042236, 0.9637681245803833, 1.751603364944458, -0.06845637410879135, -0.01776263676583767, 0.7969407439231873, 0.6528753638267517, -1.3288599252700806, 0.05786953866481781, -0.7579190731048584, -0.726087749004364, 1.6911860704421997, 2.0821380615234375, -0.11789347976446152, -0.2392808049917221, -0.6932921409606934, -1.2585431337356567, 0.7874577641487122, 0.060317568480968475, 0.10167919099330902, 0.6489068865776062, -0.6398621797561646, 1.1288968324661255, 0.8920720219612122, 0.9413341879844666, 0.15197524428367615, 0.2756289839744568, 0.3507363498210907, -0.37679728865623474, -1.1592122316360474, -0.249580979347229, -1.102155089378357, -2.4962854385375977, 0.3908243775367737, -0.22229163348674774, -1.487986445426941, 0.03154994919896126, -1.0140210390090942, 0.8830304741859436, -0.5286429524421692, -1.1039516925811768, -1.498532772064209, 0.18291421234607697, -0.053691525012254715, 0.9213073253631592, -1.6134511232376099, -0.1274292916059494, 1.2629070281982422, 1.0083478689193726, -0.5928518772125244, 0.9974560737609863, 0.20456336438655853, 0.9980721473693848, 0.8815380334854126, -0.38173776865005493, 0.49958765506744385, 0.07872717827558517, -1.3333497047424316, 0.4565483331680298, 1.2168017625808716, 0.18076789379119873, 1.5306555032730103, -0.5597090125083923, -0.005872694775462151, 0.3898380696773529, -0.49758169054985046, -0.4781908690929413, -0.6006349921226501, 0.6750832200050354, 0.09533916413784027, -0.9140876531600952, -0.007824893109500408, -0.08342376351356506, -0.18830758333206177, 0.20122523605823517, -1.503914713859558, -0.13469065725803375, -0.39104750752449036, -0.6399368643760681, -1.246955394744873, -0.10456766188144684, 1.4060548543930054, -0.8337373733520508, -0.21195831894874573, 0.488590270280838, 0.3331472873687744, 0.4802362322807312, 0.6726683378219604, -0.68108731508255, -0.3155060112476349, -0.21880832314491272, -0.38115641474723816, 0.3361377716064453, 1.3343826532363892, -0.06883855909109116, -1.0215131044387817, 0.6968957781791687, -0.3481777310371399, 0.09354175627231598, 1.8820858001708984, 0.05221594125032425, -0.8079137206077576, 0.31320878863334656, -0.7675691843032837, 1.9029948711395264, 1.7269525527954102, 1.3381426334381104, -0.09862037748098373, -1.0127567052841187, 0.6543523669242859, -0.32083049416542053, -0.43846648931503296, 0.9662423133850098, 0.40695691108703613, -0.2863525450229645, -1.3924477100372314, 0.6835446953773499, 1.2082436084747314, -0.8905056715011597, -0.7556105256080627, 0.08372382819652557, -0.8098287582397461, 1.1193909645080566, 0.70304274559021, 0.37644413113594055, 0.23201848566532135, 1.6421524286270142, 0.7812924385070801, -0.4736793339252472, 0.5466752052307129, 0.49435675144195557, -0.14341910183429718, -2.1487836837768555, -1.098484754562378, 0.2870951294898987, -0.4779804050922394, -1.596556305885315, 1.3757137060165405, -1.1441805362701416, -0.9741632342338562, 0.552369236946106, 0.14558887481689453, 1.4539674520492554, 0.3168114721775055, 1.5851188898086548, 2.105226516723633, 0.9197253584861755, 0.36436712741851807, 1.2480919361114502, -0.18935348093509674, -0.42391660809516907, 1.7898163795471191, -0.49976974725723267, 0.48083722591400146, 1.0462442636489868, -0.3538171350955963, -1.077327013015747, -0.831214964389801, -1.2442750930786133, -0.6914824843406677, 1.1648207902908325, 0.07441636174917221, -1.0981507301330566, 0.2959882616996765, 1.5588370561599731, 0.08479376882314682, -0.3335323929786682, 0.6240141987800598, 0.4472671151161194, -0.8253962993621826, -0.07680508494377136, -0.9429887533187866, 0.49343180656433105, -0.15930210053920746, -0.3301733732223511, 0.327587753534317, 0.5040872693061829, 1.3701074123382568, -0.0462622344493866, 0.0826222375035286, 1.2132585048675537, -1.3861587047576904, 1.5341198444366455, -0.6994348168373108, 0.2591535747051239, -2.360926389694214, 1.3948265314102173, -0.7841907143592834, 1.9143755435943604, -2.67102313041687, 0.45191898941993713, -0.5714073777198792, -0.4592234194278717, 0.31474021077156067, -0.3441309928894043, 0.13642780482769012, -0.14733585715293884, -1.135239601135254, -0.16843459010124207, -0.7400117516517639, 0.5903793573379517, 1.1227097511291504, 1.3704700469970703, -1.083408236503601, -0.2516791522502899, -1.735287070274353, -0.12959550321102142, -0.8036759495735168, 0.3456631004810333, -1.9345951080322266, -0.1522786021232605, -1.9527033567428589, -2.387458324432373, -1.2956773042678833, -0.7966595888137817, 1.0721851587295532, 0.16537578403949738, -0.8612350821495056, 1.202895164489746, -0.3763013482093811, -1.8349169492721558, 1.1198455095291138, -2.1655216217041016 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
Thanks @NielsRogge for the context. So IMO everything is working as expected. I'm closing this issue. Feel free to reopen it again if further changes of the specs should be addressed.
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
1,039
31
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge Thanks @NielsRogge for the context. So IMO everything is working as expected. I'm closing this issue. Feel free to reopen it again if further changes of the specs should be addressed.
[ -1.2072746753692627, -0.9073502421379089, -0.7498704791069031, 1.4149045944213867, -0.161108136177063, -1.2501050233840942, 0.17996187508106232, -1.0011961460113525, 1.7507858276367188, -0.8407803773880005, 0.285411536693573, -1.6426036357879639, 0.04758282005786896, -0.5410860776901245, -0.7578827142715454, -0.8282232880592346, -0.4217444062232971, -0.772087812423706, 1.0587810277938843, 2.5294995307922363, 1.2515885829925537, -1.308500051498413, 2.756016969680786, 0.634289562702179, -0.1631389558315277, -0.9449273347854614, 0.5668975710868835, -0.06466522812843323, -1.36863112449646, -0.4282529354095459, -0.9419519305229187, -0.0476994514465332, -0.5749469995498657, -0.5335471630096436, -0.011152374558150768, 0.3929515779018402, -0.2611745595932007, -0.4632330536842346, -0.5178335905075073, -0.7895144820213318, 0.39431828260421753, -0.42273998260498047, 0.9518115520477295, -0.2714274525642395, 1.821214199066162, -0.5702584981918335, 0.4533844292163849, 0.7686815857887268, 1.3452502489089966, 0.19860324263572693, -0.030679304152727127, 0.30283787846565247, 0.39141741394996643, 0.001379476860165596, 0.5209562182426453, 1.107427716255188, 0.6901180744171143, 0.43134555220603943, 0.7243413329124451, -2.2254300117492676, 1.344193935394287, -0.9822463393211365, 0.20479318499565125, 1.3852444887161255, -0.9195482134819031, 0.3510986268520355, -1.782443881034851, -0.03547197952866554, 0.5698647499084473, -2.2388017177581787, 0.2398652881383896, -1.3427973985671997, -0.5020195245742798, 1.0154814720153809, 0.3621194660663605, -1.2246971130371094, 0.05987635627388954, -0.42152971029281616, 1.0454432964324951, 0.4656122624874115, 1.1320794820785522, -1.7216047048568726, -0.11166839301586151, -0.285543292760849, 0.16185332834720612, -1.247609257698059, -1.603318214416504, 0.5123745799064636, 0.655544638633728, 0.5986353754997253, -0.07826189696788788, 1.0320649147033691, -0.9556746482849121, 0.7251936793327332, -0.974236011505127, -1.749421238899231, -1.3367081880569458, -2.229079246520996, -2.237278461456299, 0.7334707975387573, -0.47077736258506775, -0.4900839626789093, 2.0815112590789795, -1.0552029609680176, -1.7581974267959595, 1.1126315593719482, 0.21713986992835999, -0.03550729528069496, 2.3874948024749756, 0.26230448484420776, -0.741622805595398, 0.4805974066257477, -0.769212543964386, 0.7469212412834167, -0.3358776271343231, 1.3194615840911865, 0.37054842710494995, -0.998665452003479, 1.5361319780349731, -0.43831807374954224, 0.6030824184417725, -0.6702269315719604, -0.4431321620941162, -0.759161651134491, 0.31546905636787415, 1.891306757926941, -0.28306564688682556, 1.5265600681304932, -0.415983647108078, -1.638689637184143, -1.6488758325576782, 0.8393576145172119, 0.5044469833374023, -0.7222839593887329, 0.05681412294507027, -0.3368930518627167, 0.12136390805244446, -0.021151889115571976, 1.1069667339324951, 1.275535225868225, 0.7564942836761475, -0.3563009798526764, -0.8846844434738159, 0.18890388309955597, -0.05026226490736008, -0.7493494749069214, -1.7568548917770386, -0.30716437101364136, 0.17431475222110748, 0.701991856098175, -1.2418513298034668, 1.781831979751587, 0.9149725437164307, 1.9217584133148193, 1.026929497718811, -0.36460787057876587, 1.4954262971878052, 0.1477435678243637, 1.8516687154769897, -0.4752689003944397, 0.6795856356620789, -0.37961241602897644, -1.1329345703125, 0.8293533325195312, -0.31901872158050537, -2.000955820083618, -0.7720341086387634, -0.8096489310264587, -0.21701519191265106, -0.7354048490524292, 0.920806884765625, -0.28876638412475586, -1.389036774635315, 0.24648192524909973, -0.7721012830734253, 0.11061835289001465, -1.2355347871780396, 0.3117409646511078, 0.7404932975769043, -0.6655901670455933, 0.061502452939748764, -0.2527049779891968, -1.2978380918502808, -0.3860307037830353, 0.27313318848609924, 1.8961737155914307, -0.7588872313499451, 0.9340768456459045, 1.0814650058746338, -0.673163115978241, -0.0021139495074748993, 0.3483761250972748, -0.3163207769393921, 0.8927578926086426, -1.0903127193450928, -0.32555919885635376, 1.2058830261230469, -0.16932502388954163, -0.623873770236969, 1.4783110618591309, 0.7055391669273376, -1.018524169921875, -0.17704132199287415, -0.11712193489074707, -0.78641277551651, 0.045324597507715225, -1.6615467071533203, -0.14141467213630676, 0.4361301362514496, -1.4950573444366455, -0.43311747908592224, -0.23679178953170776, 1.3028879165649414, -0.14744262397289276, 1.3697940111160278, -0.32605984807014465, -0.17538398504257202, -0.3961097300052643, -0.34387215971946716, 0.11626575887203217, -0.2342214584350586, -0.5807814598083496, 0.168514221906662, -0.8408210873603821, 0.2957148551940918, 1.440348744392395, 0.34919941425323486, 0.012025156058371067, 0.4209150969982147, 1.0937966108322144, 0.3888786733150482, -0.10247110575437546, -0.8292661309242249, -1.5732065439224243, 2.080026149749756, -1.4790171384811401, 1.9897911548614502, 0.7552525997161865, -0.08159235119819641, -1.7826600074768066, -1.8946727514266968, 1.3718171119689941, 1.104326844215393, 2.383260488510132, 0.5561891198158264, 0.42956840991973877, -0.7795369625091553, -0.685112476348877, 0.31644922494888306, -0.984264612197876, -0.7712873816490173, 0.15101735293865204, 2.396953821182251, 1.6708290576934814, -0.4259689450263977, -0.19801558554172516, -1.0040819644927979, 1.29390287399292, -0.1376824527978897, 0.21249711513519287, 1.9492379426956177, -0.2272840142250061, -1.0337492227554321, 1.2515050172805786, -2.2689287662506104, 0.17392148077487946, 1.9500566720962524, 0.23826809227466583, 0.10133268684148788, -1.4312602281570435, -0.6816585659980774, -0.31795790791511536, -0.368529349565506, -1.2539379596710205, 0.5384172797203064, -0.2342340052127838, -0.8503820300102234, -1.450432300567627, 0.19507691264152527, -1.1066266298294067, -1.6640408039093018, 0.21765516698360443, 1.909702181816101, 2.041938304901123, -0.8265809416770935, 1.5471727848052979, -0.2756645083427429, 0.14366552233695984, 1.2359225749969482, 1.129333734512329, 3.12255859375, 1.9294794797897339, -1.2985693216323853, 0.6286194324493408, -0.11589872092008591, -0.4345813989639282, 1.1250255107879639, -1.2163399457931519, 1.293261170387268, -0.15265247225761414, -1.2228971719741821, -1.2015609741210938, 0.9590775370597839, 0.4688636362552643, 0.056534115225076675, -0.44726356863975525, 1.202270746231079, 0.03532581776380539, 1.3110910654067993, 0.5198354125022888, -0.2735811471939087, 0.7083495259284973, -0.42992132902145386, -0.489082396030426, 1.4939161539077759, 0.1968015730381012, -1.440921425819397, -2.2437872886657715, -0.2174040973186493, -0.8798902034759521, 0.06467976421117783, -0.6392659544944763, -1.0410313606262207, 1.6206247806549072, 0.4093710780143738, -1.2169954776763916, -0.3003554940223694, -0.3581140339374542, -0.5664911866188049, 2.714823007583618, -1.405484914779663, -0.16521763801574707, -1.037336826324463, -0.6058617830276489, 1.596804141998291, -1.2225170135498047, -0.17538803815841675, -1.0515737533569336, -0.5336646437644958, -1.339898705482483, -0.5311756730079651, -0.05711370334029198, -0.8852449059486389, 0.7622755765914917, 0.2526865005493164, -1.1994789838790894, -0.3172221779823303, -0.9099734425544739, 0.8608312010765076, -0.10702958703041077, 0.20499517023563385, 1.8787049055099487, 0.452695369720459, -0.36876380443573, 0.7643126249313354, 1.1232209205627441, 0.6271374821662903, -0.6512913107872009, 0.1729980707168579, -0.7472286820411682, 0.3250686228275299, -1.320758581161499, 0.25043439865112305, -2.828296661376953, 0.6198378205299377, -0.07018513232469559, -0.09411942213773727, -0.01579107716679573, -1.3191503286361694, 1.138055682182312, 2.6027724742889404, -1.1561719179153442, 0.4962385594844818, 0.33298802375793457, 1.249306321144104, -1.5516842603683472, 0.28583452105522156, -0.4548782408237457, 2.14709734916687, 0.23882019519805908, 1.2128559350967407, -0.48190101981163025, -2.2927656173706055, 0.6694691777229309, -1.2563660144805908, -1.1457512378692627, 0.7801923155784607, -0.8268868923187256, 0.06577043980360031, -1.351590871810913, -0.27646034955978394, -0.8546730875968933, -1.221680760383606, 0.7022985219955444, 0.06594611704349518, 0.4613554775714874, -0.5938852429389954, 0.33702126145362854, -2.2154526710510254, -1.3341656923294067, -0.2382635772228241, -0.9430651068687439, 0.5006462931632996, -0.3625010848045349, 0.6942030787467957, -0.16215798258781433, -0.005457334686070681, 0.38075241446495056, 1.3969954252243042, 3.443730592727661, 0.2158636748790741, 0.3724644184112549, -0.20653212070465088, -0.966535210609436, 1.388210415840149, 0.921220064163208, -0.1825627237558365, -0.5314164757728577, -1.0369826555252075, 1.199494481086731, 1.963794231414795, 1.0134491920471191, 0.006429669447243214, -0.7844047546386719, -0.7707499265670776, 0.027962513267993927, 0.1526186317205429, 0.4605996906757355, 0.9318513870239258, 0.0734768882393837, 0.09237613528966904, 1.4539531469345093, 1.164867639541626, -0.4297558069229126, 0.38098520040512085, -0.8590290546417236, -0.4545164406299591, 0.5546028017997742, 0.2791690528392792, -0.0026398501358926296, 0.34823480248451233, -1.0547866821289062, -0.20189422369003296, -0.38895905017852783, -0.8811843991279602, -0.7537639141082764, -0.34365132451057434, -0.2890782654285431, 1.6075948476791382, 0.11315704137086868, -0.5192388892173767, 0.02574634924530983, -0.7582075595855713, -0.09910888224840164, -1.0466785430908203, 0.29189231991767883, -0.1912636011838913, -0.11232823878526688, -0.09132754802703857, 1.772765040397644, -0.9705036878585815, -2.02628755569458, 0.25573089718818665, 0.17060859501361847, -0.34319958090782166, 0.26085612177848816, 1.6830925941467285, 0.6362740993499756, 1.4663102626800537, 1.3183324337005615, 1.0132322311401367, -0.6295955777168274, -1.2851157188415527, 0.6243618130683899, 0.9034267663955688, -1.3680516481399536, 0.7935468554496765, -0.04915217310190201, -0.5161373019218445, 0.6436998844146729, 1.2788997888565063, 0.4132888615131378, -2.0482418537139893, 0.7588946223258972, -0.878703773021698, 0.7696839570999146, 0.7108694911003113, 0.7764480710029602, 0.14439578354358673, 0.7900553345680237, -1.185684084892273, -1.1477774381637573, -0.6768612265586853, -0.6979352235794067, 1.9329988956451416, -0.2758707106113434, 0.590263843536377, -0.1846255213022232, -1.3133459091186523, -0.0796232521533966, 0.690169095993042, 0.3689555823802948, -0.4879426062107086, 0.8082680106163025, -0.6477158665657043, -1.1073487997055054, -1.3945845365524292, -0.5245556831359863, -1.000336766242981, -0.9495035409927368, 1.0243937969207764, 0.824385404586792, 0.3577115535736084, 1.8767040967941284, 0.6390779614448547, 0.24782955646514893, -2.6219775676727295, 0.8811055421829224, 0.27221035957336426, -0.04616817831993103, 0.9123799800872803, 0.30642169713974, 0.9879773259162903, -0.041301172226667404, 0.5068899393081665, -2.4080467224121094, 2.310795307159424, -0.29016411304473877, 0.7386412024497986, -0.024523749947547913, -0.21197406947612762, 1.0789448022842407, 0.5962761044502258, 0.5576666593551636, -1.1108263731002808, 0.7332683801651001, -0.6192476153373718, 1.2106627225875854, 0.8520957827568054, -0.8633299469947815, 0.008575891144573689, 1.3425378799438477, 0.45190462470054626, -0.5260010957717896, -0.9462920427322388, -1.0098398923873901, 0.9298415780067444, 1.7516560554504395, -0.06221925839781761, -0.033795345574617386, 0.7920332551002502, 0.6520405411720276, -1.3179118633270264, 0.05904460325837135, -0.7412362098693848, -0.7317671179771423, 1.6859667301177979, 2.0851526260375977, -0.10328371822834015, -0.2530471682548523, -0.7126252055168152, -1.2390148639678955, 0.775263249874115, 0.05874212458729744, 0.09753153473138809, 0.624289333820343, -0.652802586555481, 1.139649748802185, 0.8879173398017883, 0.9534515142440796, 0.1481364667415619, 0.31430962681770325, 0.3777870237827301, -0.38113096356391907, -1.1472103595733643, -0.24740035831928253, -1.1055808067321777, -2.5066473484039307, 0.39332565665245056, -0.2318124920129776, -1.493314504623413, 0.028898466378450394, -1.015721082687378, 0.8800235986709595, -0.5459761023521423, -1.1145557165145874, -1.5069968700408936, 0.19277621805667877, -0.057919032871723175, 0.9379328489303589, -1.6172236204147339, -0.12267144024372101, 1.2831196784973145, 1.01315176486969, -0.5637470483779907, 0.9995655417442322, 0.22109539806842804, 1.0091791152954102, 0.8841513991355896, -0.36632201075553894, 0.4691585600376129, 0.1043892428278923, -1.3239837884902954, 0.44555729627609253, 1.2268614768981934, 0.19217939674854279, 1.5062499046325684, -0.5668042898178101, 0.010794448666274548, 0.4009377956390381, -0.482328861951828, -0.4800216555595398, -0.5798870921134949, 0.6808591485023499, 0.11065221577882767, -0.9118674397468567, 0.001116056926548481, -0.10293056070804596, -0.19110693037509918, 0.18967488408088684, -1.497100830078125, -0.13135820627212524, -0.40049082040786743, -0.6374208927154541, -1.2592434883117676, -0.10015880316495895, 1.391775131225586, -0.8179672360420227, -0.20976795256137848, 0.49562618136405945, 0.3429672122001648, 0.49248847365379333, 0.6943126320838928, -0.6784533262252808, -0.31240758299827576, -0.2524789869785309, -0.39459601044654846, 0.3305763304233551, 1.326365351676941, -0.08851881325244904, -1.021190881729126, 0.6961739659309387, -0.3494272530078888, 0.0964551568031311, 1.9151650667190552, 0.04844469577074051, -0.8218944072723389, 0.31470927596092224, -0.7702968716621399, 1.9093645811080933, 1.7069886922836304, 1.346987247467041, -0.09104796499013901, -1.0217649936676025, 0.6660844087600708, -0.31939709186553955, -0.4364103078842163, 0.9737315773963928, 0.4552803039550781, -0.2746826112270355, -1.39717435836792, 0.6617060899734497, 1.1949164867401123, -0.9059007167816162, -0.7341217994689941, 0.09596831351518631, -0.7993032336235046, 1.1079347133636475, 0.7143359184265137, 0.38554832339286804, 0.23838618397712708, 1.6226848363876343, 0.774863064289093, -0.4696969985961914, 0.5403100848197937, 0.504579484462738, -0.15018408000469208, -2.1476781368255615, -1.0819272994995117, 0.2974274158477783, -0.47635847330093384, -1.5992140769958496, 1.38859224319458, -1.1456745862960815, -0.9804039597511292, 0.5380070805549622, 0.15423211455345154, 1.4439963102340698, 0.3185930848121643, 1.6011642217636108, 2.10369873046875, 0.9128431081771851, 0.35692963004112244, 1.263708233833313, -0.1981503665447235, -0.4339335262775421, 1.8040869235992432, -0.5343322157859802, 0.48499634861946106, 1.061835765838623, -0.359762579202652, -1.0628468990325928, -0.8322277069091797, -1.2346007823944092, -0.6836550831794739, 1.1809520721435547, 0.06030804291367531, -1.0565608739852905, 0.2966116666793823, 1.5586609840393066, 0.07952455431222916, -0.34068459272384644, 0.6070746779441833, 0.44152167439460754, -0.8056175112724304, -0.10236930102109909, -0.9463152885437012, 0.5048204064369202, -0.13591621816158295, -0.3350582420825958, 0.33125731348991394, 0.467233270406723, 1.3717063665390015, -0.05504073575139046, 0.09588354080915451, 1.2337113618850708, -1.3968422412872314, 1.5396454334259033, -0.6885421276092529, 0.2741369605064392, -2.370462656021118, 1.4014556407928467, -0.7756344079971313, 1.9137401580810547, -2.6490206718444824, 0.44953957200050354, -0.5572988986968994, -0.44036608934402466, 0.3191535770893097, -0.33287525177001953, 0.1332143396139145, -0.17341740429401398, -1.1266826391220093, -0.17651285231113434, -0.7331276535987854, 0.5889316201210022, 1.1360172033309937, 1.3476313352584839, -1.0738495588302612, -0.25030794739723206, -1.736948847770691, -0.14835256338119507, -0.8087968230247498, 0.33594784140586853, -1.9301066398620605, -0.1624487340450287, -1.9530097246170044, -2.407071590423584, -1.2919939756393433, -0.7847556471824646, 1.063637375831604, 0.17204196751117706, -0.8669899702072144, 1.2062866687774658, -0.36000585556030273, -1.8460197448730469, 1.1259596347808838, -2.1440300941467285 ]
https://github.com/huggingface/datasets/issues/3473
Iterating over a vision dataset doesn't decode the images
Thanks for the details :) I still think that it's unexpected to get different results when doing ```python for i in range(len(dataset)): sample = dataset[i] ``` and ```python for sample in dataset: pass ``` even though I understand that if you don't need to decode the data, then decoding image or audio data when iterating is a waste of time and resources. But in this case users can still drop the column that need decoding to get the full speed back no ?
## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge
1,039
83
Iterating over a vision dataset doesn't decode the images ## Describe the bug If I load `mnist` and I iterate over the dataset, the images are not decoded, and the dictionary with the bytes is returned. ## Steps to reproduce the bug ```python from datasets import load_dataset import PIL mnist = load_dataset("mnist", split="train") first_image = mnist[0]["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # passes first_image = next(iter(mnist))["image"] assert isinstance(first_image, PIL.PngImagePlugin.PngImageFile) # fails ``` ## Expected results The image should be decoded, as a PIL Image ## Actual results We get a dictionary ``` {'bytes': b'\x89PNG\r\n\x1a\n\x00..., 'path': None} ``` ## Environment info - `datasets` version: 1.17.1.dev0 - Platform: Darwin-20.6.0-x86_64-i386-64bit - Python version: 3.7.2 - PyArrow version: 6.0.0 The bug also exists in 1.17.0 ## Investigation I think the issue is that decoding is disabled in `__iter__`: https://github.com/huggingface/datasets/blob/dfe5b73387c5e27de6a16b0caeb39d3b9ded66d6/src/datasets/arrow_dataset.py#L1651-L1661 Do you remember why it was disabled in the first place @albertvillanova ? Also cc @mariosasko @NielsRogge Thanks for the details :) I still think that it's unexpected to get different results when doing ```python for i in range(len(dataset)): sample = dataset[i] ``` and ```python for sample in dataset: pass ``` even though I understand that if you don't need to decode the data, then decoding image or audio data when iterating is a waste of time and resources. But in this case users can still drop the column that need decoding to get the full speed back no ?
[ -1.2152022123336792, -0.8758051991462708, -0.7705647349357605, 1.414053201675415, -0.1536845862865448, -1.2751063108444214, 0.20036326348781586, -1.0367597341537476, 1.7690502405166626, -0.8327772617340088, 0.2918557822704315, -1.672318696975708, 0.04847751557826996, -0.550703763961792, -0.7730668187141418, -0.8343039155006409, -0.43486183881759644, -0.7478492259979248, 1.06594979763031, 2.481441020965576, 1.2451871633529663, -1.3158659934997559, 2.729572057723999, 0.6394664645195007, -0.18408320844173431, -0.956132173538208, 0.5644924640655518, -0.07082708925008774, -1.3520536422729492, -0.4070889353752136, -0.9409762620925903, -0.07513239979743958, -0.5715827345848083, -0.5802052617073059, -0.006740379147231579, 0.42271921038627625, -0.2834151089191437, -0.4879401624202728, -0.4873145818710327, -0.7858892679214478, 0.40591415762901306, -0.4148424565792084, 0.9551462531089783, -0.28459182381629944, 1.7851238250732422, -0.5649222731590271, 0.4551248848438263, 0.7578938603401184, 1.379760503768921, 0.17986123263835907, -0.021766986697912216, 0.30952373147010803, 0.36875611543655396, -0.008483708836138248, 0.5341664552688599, 1.1342647075653076, 0.6870209574699402, 0.44217216968536377, 0.7435470819473267, -2.2358345985412598, 1.296179175376892, -0.983884334564209, 0.23604725301265717, 1.3618446588516235, -0.9278210997581482, 0.3373401463031769, -1.7680656909942627, -0.017795637249946594, 0.5579355359077454, -2.237368583679199, 0.24523352086544037, -1.3264193534851074, -0.47741198539733887, 1.0172820091247559, 0.37201425433158875, -1.1955280303955078, 0.07155414670705795, -0.3942713141441345, 1.0368914604187012, 0.44214171171188354, 1.1361172199249268, -1.7155956029891968, -0.07919439673423767, -0.3152625560760498, 0.16826602816581726, -1.2272913455963135, -1.5878764390945435, 0.5142183303833008, 0.6782985329627991, 0.6051223278045654, -0.10980667173862457, 1.0474282503128052, -0.9419158697128296, 0.6896975636482239, -0.9790708422660828, -1.7516858577728271, -1.331893801689148, -2.1855251789093018, -2.225332021713257, 0.7067155838012695, -0.46749788522720337, -0.4932999312877655, 2.088826894760132, -1.0223667621612549, -1.781244158744812, 1.1147034168243408, 0.24308155477046967, -0.0266257356852293, 2.339080333709717, 0.25735196471214294, -0.7337055802345276, 0.5027132630348206, -0.7617968320846558, 0.7414565682411194, -0.34268301725387573, 1.3296644687652588, 0.36394423246383667, -1.01310133934021, 1.5320789813995361, -0.43244853615760803, 0.6593201756477356, -0.6875075697898865, -0.4277455508708954, -0.7699440717697144, 0.33663663268089294, 1.9011303186416626, -0.2948990762233734, 1.5336155891418457, -0.3893686532974243, -1.6339110136032104, -1.6056296825408936, 0.8462721109390259, 0.5185762643814087, -0.7076706290245056, 0.09690117090940475, -0.32109731435775757, 0.13874563574790955, -0.05015309154987335, 1.110590934753418, 1.253247857093811, 0.760737955570221, -0.3286542296409607, -0.8763884902000427, 0.21023422479629517, -0.023627208545804024, -0.7624619603157043, -1.7399715185165405, -0.31172269582748413, 0.17725946009159088, 0.6610715985298157, -1.2276697158813477, 1.7884865999221802, 0.8945440053939819, 1.9159660339355469, 1.0046662092208862, -0.36297807097435, 1.4974663257598877, 0.1626690924167633, 1.8690286874771118, -0.4475919008255005, 0.6803061366081238, -0.37073472142219543, -1.1517345905303955, 0.8395177721977234, -0.3421814441680908, -2.0189740657806396, -0.751581609249115, -0.8182448744773865, -0.1992783397436142, -0.7399576306343079, 0.9297223687171936, -0.29835712909698486, -1.4093552827835083, 0.2436305433511734, -0.7586678266525269, 0.13091854751110077, -1.242633581161499, 0.3112354874610901, 0.7327775955200195, -0.6766872406005859, 0.05412185192108154, -0.27250930666923523, -1.2829296588897705, -0.392427533864975, 0.27680763602256775, 1.8926023244857788, -0.7705495357513428, 0.9638859033584595, 1.0735816955566406, -0.6810766458511353, -0.01964026317000389, 0.32294854521751404, -0.2954277992248535, 0.9112890362739563, -1.1085377931594849, -0.3655778765678406, 1.2150784730911255, -0.13326707482337952, -0.62633216381073, 1.4813827276229858, 0.7012423276901245, -1.0142061710357666, -0.16856198012828827, -0.13106153905391693, -0.7738003730773926, 0.03435225784778595, -1.6402417421340942, -0.11002451181411743, 0.46351152658462524, -1.4958614110946655, -0.45420998334884644, -0.23509986698627472, 1.270737886428833, -0.14938770234584808, 1.37386953830719, -0.320250540971756, -0.18246765434741974, -0.3971574008464813, -0.3699074387550354, 0.09325936436653137, -0.2322443425655365, -0.6061533093452454, 0.1436418741941452, -0.7898874282836914, 0.30521756410598755, 1.4354064464569092, 0.3366846740245819, 0.030828388407826424, 0.4413827061653137, 1.1366485357284546, 0.38382819294929504, -0.08597982674837112, -0.8450451493263245, -1.5625895261764526, 2.047215700149536, -1.4764739274978638, 1.9768650531768799, 0.7421253323554993, -0.04543585330247879, -1.7807024717330933, -1.87446129322052, 1.4084745645523071, 1.1350934505462646, 2.4024159908294678, 0.5857266187667847, 0.43791988492012024, -0.7958230972290039, -0.6651621460914612, 0.31252533197402954, -0.975206732749939, -0.7477757930755615, 0.1477828025817871, 2.407855987548828, 1.7043365240097046, -0.4246808886528015, -0.2274106740951538, -0.9936428070068359, 1.321411371231079, -0.15693487226963043, 0.21888543665409088, 1.9291568994522095, -0.2232234925031662, -1.0396004915237427, 1.234635353088379, -2.254582643508911, 0.1397079974412918, 1.952140212059021, 0.24152474105358124, 0.10821281373500824, -1.4280040264129639, -0.6744650602340698, -0.28289616107940674, -0.392587810754776, -1.2632184028625488, 0.5280036330223083, -0.23321187496185303, -0.7994503378868103, -1.4261188507080078, 0.20607510209083557, -1.0929036140441895, -1.6619802713394165, 0.17912635207176208, 1.9210675954818726, 2.0164642333984375, -0.8507372140884399, 1.5677683353424072, -0.30549514293670654, 0.2028563916683197, 1.2658361196517944, 1.1308376789093018, 3.0985851287841797, 1.9377840757369995, -1.30388343334198, 0.6543618440628052, -0.12883460521697998, -0.45318204164505005, 1.1781316995620728, -1.1929163932800293, 1.2936915159225464, -0.17011377215385437, -1.2162525653839111, -1.1829707622528076, 0.9434521198272705, 0.48144152760505676, 0.050852373242378235, -0.46971988677978516, 1.189817190170288, 0.015579527243971825, 1.2876837253570557, 0.516563355922699, -0.2817251682281494, 0.7168813943862915, -0.423968642950058, -0.4760169982910156, 1.4990354776382446, 0.2000102549791336, -1.3992934226989746, -2.248671293258667, -0.20446138083934784, -0.8756008148193359, 0.06783097237348557, -0.648193895816803, -1.060838222503662, 1.6218562126159668, 0.3882758319377899, -1.2086318731307983, -0.29219764471054077, -0.34159213304519653, -0.5658809542655945, 2.702808380126953, -1.4013745784759521, -0.20096136629581451, -1.0314780473709106, -0.6209321618080139, 1.6136716604232788, -1.194814682006836, -0.17459048330783844, -1.048849105834961, -0.5237611532211304, -1.3512964248657227, -0.5597053170204163, -0.048236943781375885, -0.8624632358551025, 0.7859557867050171, 0.27007266879081726, -1.2299888134002686, -0.3061291575431824, -0.9197983741760254, 0.8714982271194458, -0.13947506248950958, 0.20324918627738953, 1.9034092426300049, 0.45967429876327515, -0.3651587963104248, 0.7597045302391052, 1.1082348823547363, 0.6248326301574707, -0.6563379168510437, 0.2043038010597229, -0.7719026207923889, 0.31524693965911865, -1.3567495346069336, 0.21888840198516846, -2.8089499473571777, 0.6392261385917664, -0.051709339022636414, -0.07653570175170898, -0.017858006060123444, -1.348064661026001, 1.0862195491790771, 2.61600399017334, -1.1830495595932007, 0.4647989869117737, 0.3340660631656647, 1.2663426399230957, -1.5501154661178589, 0.2444811314344406, -0.4502881169319153, 2.136308193206787, 0.21894143521785736, 1.2535895109176636, -0.44807833433151245, -2.331157684326172, 0.6373212933540344, -1.2619595527648926, -1.1681100130081177, 0.8001378774642944, -0.8301551342010498, 0.08000408858060837, -1.3533360958099365, -0.27412471175193787, -0.8609150052070618, -1.199920892715454, 0.7405579686164856, 0.06272947788238525, 0.46936267614364624, -0.631794810295105, 0.34684112668037415, -2.1989123821258545, -1.3533413410186768, -0.24068446457386017, -0.9213709235191345, 0.4807516038417816, -0.3432280421257019, 0.7002756595611572, -0.15791910886764526, -0.02530001848936081, 0.36441221833229065, 1.4023009538650513, 3.448356866836548, 0.2187831699848175, 0.35781195759773254, -0.2161608785390854, -0.9686873555183411, 1.390241026878357, 0.9167271256446838, -0.19657403230667114, -0.5219309329986572, -1.0504136085510254, 1.1894500255584717, 1.9377774000167847, 1.0092004537582397, -0.009225989691913128, -0.7839264273643494, -0.7566642165184021, 0.01804235763847828, 0.11592531204223633, 0.47432592511177063, 0.9081924557685852, 0.09535562247037888, 0.11415698379278183, 1.4329766035079956, 1.1256707906723022, -0.40854597091674805, 0.3823784589767456, -0.8575577139854431, -0.46936631202697754, 0.5532568693161011, 0.2923526167869568, 0.02679428644478321, 0.3385154604911804, -1.0624159574508667, -0.2207958996295929, -0.413865864276886, -0.8908330202102661, -0.7592491507530212, -0.3560599982738495, -0.28904473781585693, 1.621201515197754, 0.0780453085899353, -0.5486708879470825, 0.015844857320189476, -0.7533825039863586, -0.07427174597978592, -1.0340216159820557, 0.2912425994873047, -0.21597525477409363, -0.11650005728006363, -0.08564300835132599, 1.7447508573532104, -0.9716154336929321, -2.0161986351013184, 0.25561901926994324, 0.18718351423740387, -0.3628058433532715, 0.25097233057022095, 1.6798967123031616, 0.6478594541549683, 1.4600110054016113, 1.3469303846359253, 1.0441149473190308, -0.6441583037376404, -1.2927498817443848, 0.6224780082702637, 0.9237948060035706, -1.3549138307571411, 0.7892168164253235, -0.001447819173336029, -0.5124097466468811, 0.6203832626342773, 1.29442298412323, 0.42918965220451355, -2.060148239135742, 0.7367445230484009, -0.8715332746505737, 0.774165153503418, 0.7197356820106506, 0.7687970995903015, 0.15021748840808868, 0.8038164377212524, -1.200103759765625, -1.1545733213424683, -0.6863101124763489, -0.6972520351409912, 1.9512031078338623, -0.2912464141845703, 0.5932340621948242, -0.21908442676067352, -1.3289172649383545, -0.09477218240499496, 0.7055404186248779, 0.36657750606536865, -0.5007550716400146, 0.7851181626319885, -0.6488050222396851, -1.085533618927002, -1.3819479942321777, -0.5518346428871155, -1.0137643814086914, -0.9816989302635193, 1.0152297019958496, 0.8247298002243042, 0.37732377648353577, 1.8587476015090942, 0.6858452558517456, 0.21584740281105042, -2.59238862991333, 0.8684882521629333, 0.2782967686653137, -0.05382929742336273, 0.8778659105300903, 0.31965282559394836, 0.9783836007118225, -0.04642520099878311, 0.5444404482841492, -2.376084566116333, 2.29683780670166, -0.27051445841789246, 0.7045001983642578, -0.04851084202528, -0.24105028808116913, 1.0618149042129517, 0.5639342069625854, 0.5416263341903687, -1.1124646663665771, 0.6996924877166748, -0.6362274885177612, 1.2161160707473755, 0.8585326671600342, -0.8746161460876465, 0.008702177554368973, 1.368298888206482, 0.4486984610557556, -0.5322675108909607, -0.9686856269836426, -1.001846432685852, 0.9686439633369446, 1.7336313724517822, -0.051507025957107544, -0.019468192011117935, 0.8200963139533997, 0.6788619160652161, -1.3348925113677979, 0.06933627277612686, -0.762000322341919, -0.7198171019554138, 1.6979141235351562, 2.0725505352020264, -0.13878536224365234, -0.23845787346363068, -0.7319395542144775, -1.2358180284500122, 0.7934433817863464, 0.07270333915948868, 0.061204031109809875, 0.6492002010345459, -0.6641730666160583, 1.1328685283660889, 0.9060027003288269, 0.9326266050338745, 0.16490665078163147, 0.2892342805862427, 0.371198832988739, -0.3834318220615387, -1.1588302850723267, -0.21790236234664917, -1.098564624786377, -2.4959659576416016, 0.40727755427360535, -0.2089923620223999, -1.475968599319458, 0.0209075678139925, -1.0127407312393188, 0.8864929676055908, -0.5530931949615479, -1.124397873878479, -1.526695728302002, 0.21545597910881042, -0.03398718684911728, 0.9190990924835205, -1.598518967628479, -0.10456404089927673, 1.2673182487487793, 1.0281721353530884, -0.6014013886451721, 1.000479817390442, 0.21808482706546783, 1.0015779733657837, 0.9132473468780518, -0.37749961018562317, 0.4939989745616913, 0.05891701579093933, -1.3253496885299683, 0.46133893728256226, 1.2039130926132202, 0.17306490242481232, 1.5344942808151245, -0.5780959725379944, -0.028241019695997238, 0.3841535449028015, -0.47489404678344727, -0.4745493531227112, -0.6356359124183655, 0.6544321775436401, 0.11022092401981354, -0.9172914028167725, 0.008223693817853928, -0.037796977907419205, -0.19882485270500183, 0.21561622619628906, -1.509392499923706, -0.1213579848408699, -0.37971457839012146, -0.6439405679702759, -1.2255728244781494, -0.09298613667488098, 1.3788609504699707, -0.7883378863334656, -0.22271007299423218, 0.5099465250968933, 0.31453174352645874, 0.47886285185813904, 0.6383786201477051, -0.6884044408798218, -0.3065345585346222, -0.2549348771572113, -0.40551355481147766, 0.33289438486099243, 1.3382827043533325, -0.09818839281797409, -1.0267962217330933, 0.6965677738189697, -0.3497261106967926, 0.08216600120067596, 1.90774667263031, 0.04876173287630081, -0.8278084993362427, 0.31823450326919556, -0.7820925712585449, 1.9101295471191406, 1.736464262008667, 1.3465781211853027, -0.07564319670200348, -1.0126584768295288, 0.6607556939125061, -0.33427098393440247, -0.4530274569988251, 0.974169909954071, 0.4088960289955139, -0.24785509705543518, -1.4059792757034302, 0.6843680739402771, 1.2445718050003052, -0.8907150626182556, -0.7590745687484741, 0.10739032179117203, -0.7871875166893005, 1.1252046823501587, 0.7164113521575928, 0.3830779790878296, 0.24386604130268097, 1.6134570837020874, 0.8054910898208618, -0.44000861048698425, 0.5661670565605164, 0.5021955370903015, -0.11034791171550751, -2.121802806854248, -1.1185322999954224, 0.29366838932037354, -0.47146958112716675, -1.632068395614624, 1.3795889616012573, -1.1694141626358032, -0.9663533568382263, 0.5526622533798218, 0.14743927121162415, 1.4499250650405884, 0.32475054264068604, 1.5836340188980103, 2.103559970855713, 0.8954604268074036, 0.34871479868888855, 1.2419805526733398, -0.20391041040420532, -0.422855019569397, 1.8106582164764404, -0.5337938666343689, 0.46865788102149963, 1.0408353805541992, -0.32337427139282227, -1.0860105752944946, -0.8432554602622986, -1.2817338705062866, -0.7025317549705505, 1.171980857849121, 0.06289170682430267, -1.0899235010147095, 0.30632537603378296, 1.5434397459030151, 0.07101047784090042, -0.34434863924980164, 0.6570152640342712, 0.43245789408683777, -0.8458930850028992, -0.08262621611356735, -0.9411306381225586, 0.4980418384075165, -0.1250029355287552, -0.3144301772117615, 0.35487762093544006, 0.5003595352172852, 1.3753652572631836, -0.01507379487156868, 0.07142851501703262, 1.2090359926223755, -1.4069249629974365, 1.5439966917037964, -0.7293122410774231, 0.25767168402671814, -2.379354953765869, 1.3854565620422363, -0.7898162603378296, 1.9184530973434448, -2.6680872440338135, 0.45962169766426086, -0.5484424233436584, -0.4394572973251343, 0.3297288119792938, -0.3539166748523712, 0.13429273664951324, -0.1524401158094406, -1.1548608541488647, -0.15379317104816437, -0.7432769536972046, 0.6084801554679871, 1.1281682252883911, 1.375810980796814, -1.1035701036453247, -0.25141796469688416, -1.7418431043624878, -0.10990582406520844, -0.765725314617157, 0.3514383137226105, -1.923841953277588, -0.15057753026485443, -1.9264808893203735, -2.4322011470794678, -1.2878713607788086, -0.7889747023582458, 1.054207444190979, 0.1704438030719757, -0.8765016198158264, 1.1988437175750732, -0.3801893889904022, -1.8231697082519531, 1.1215225458145142, -2.1613547801971436 ]
https://github.com/huggingface/datasets/issues/3465
Unable to load 'cnn_dailymail' dataset
Hi @talha1503, thanks for reporting. It seems there is an issue with one of the data files hosted at Google Drive: ``` Google Drive - Quota exceeded Sorry, you can't view or download this file at this time. Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator. ``` As you probably know, Hugging Face does not host the data, and in this case the data owner decided to host their data at Google Drive, which has quota limits. Is there anything we could do, @lhoestq @mariosasko?
## Describe the bug I wanted to load cnn_dailymail dataset from huggingface datasets on Google Colab, but I am getting an error while loading it. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0', ignore_verifications = True) ``` ## Expected results Expecting to load 'cnn_dailymail' dataset. ## Actual results `NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0
1,040
141
Unable to load 'cnn_dailymail' dataset ## Describe the bug I wanted to load cnn_dailymail dataset from huggingface datasets on Google Colab, but I am getting an error while loading it. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('cnn_dailymail', '3.0.0', ignore_verifications = True) ``` ## Expected results Expecting to load 'cnn_dailymail' dataset. ## Actual results `NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.16.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.12 - PyArrow version: 3.0.0 Hi @talha1503, thanks for reporting. It seems there is an issue with one of the data files hosted at Google Drive: ``` Google Drive - Quota exceeded Sorry, you can't view or download this file at this time. Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator. ``` As you probably know, Hugging Face does not host the data, and in this case the data owner decided to host their data at Google Drive, which has quota limits. Is there anything we could do, @lhoestq @mariosasko?
[ -1.150853157043457, -0.9149706959724426, -0.7074627876281738, 1.3733993768692017, -0.13978205621242523, -1.169152021408081, 0.16518178582191467, -1.0550628900527954, 1.7481811046600342, -0.8092522025108337, 0.25368908047676086, -1.6769613027572632, -0.02294590324163437, -0.5824373364448547, -0.7100885510444641, -0.8411290049552917, -0.4150021970272064, -0.7541233897209167, 0.985260009765625, 2.512845039367676, 1.1004021167755127, -1.3720561265945435, 2.6749727725982666, 0.6223129034042358, -0.21844467520713806, -0.9656281471252441, 0.4469662606716156, -0.005198079161345959, -1.338036298751831, -0.3147639334201813, -0.9348884224891663, -0.004925101064145565, -0.6352084279060364, -0.5145519971847534, 0.0412336103618145, 0.42180564999580383, -0.2546520531177521, -0.4199368953704834, -0.49380365014076233, -0.7785444855690002, 0.5032182931900024, -0.3601330816745758, 0.9527817964553833, -0.30867743492126465, 1.819368839263916, -0.5771703124046326, 0.4444025754928589, 0.744285523891449, 1.309544563293457, 0.15851889550685883, -0.016888830810785294, 0.3419807553291321, 0.32962387800216675, -0.05444801226258278, 0.44677266478538513, 1.1147829294204712, 0.6100369095802307, 0.46274033188819885, 0.6603973507881165, -2.25067400932312, 1.3586580753326416, -0.9304494261741638, 0.29015612602233887, 1.2671540975570679, -0.9448580741882324, 0.38148897886276245, -1.8042809963226318, -0.07853091508150101, 0.5172516107559204, -2.2047953605651855, 0.23960387706756592, -1.3044843673706055, -0.4847998023033142, 0.9904537796974182, 0.3464547097682953, -1.2826151847839355, 0.17237107455730438, -0.3450447916984558, 1.0199635028839111, 0.4278656542301178, 1.1713627576828003, -1.7696713209152222, -0.026107586920261383, -0.29340729117393494, 0.1622224897146225, -1.2923768758773804, -1.5895761251449585, 0.5032121539115906, 0.6490786671638489, 0.6796989440917969, -0.10482712090015411, 0.9673829674720764, -1.049679160118103, 0.7735285758972168, -0.9892064929008484, -1.736067533493042, -1.3327468633651733, -2.28788161277771, -2.346574544906616, 0.7386794686317444, -0.4148544669151306, -0.4070723354816437, 2.023193836212158, -1.0738393068313599, -1.7651480436325073, 1.1820200681686401, 0.27538174390792847, -0.1092841625213623, 2.3506598472595215, 0.24808375537395477, -0.7142850160598755, 0.5232976078987122, -0.7478084564208984, 0.7974657416343689, -0.3661026358604431, 1.3384559154510498, 0.446988582611084, -1.0525387525558472, 1.5510753393173218, -0.4279080927371979, 0.6020004749298096, -0.7125166654586792, -0.5188996195793152, -0.7689969539642334, 0.2948707938194275, 1.855033278465271, -0.30353665351867676, 1.5545047521591187, -0.39586785435676575, -1.593351125717163, -1.5563749074935913, 0.8631303310394287, 0.5460411310195923, -0.7354671955108643, 0.10973399877548218, -0.34293243288993835, 0.1305534690618515, -0.004295032005757093, 1.0841609239578247, 1.2988964319229126, 0.7073278427124023, -0.2566002309322357, -0.919272243976593, 0.2073558121919632, -0.10821405798196793, -0.6622898578643799, -1.810695767402649, -0.34305012226104736, 0.11720506846904755, 0.6113671660423279, -1.232329249382019, 1.7308316230773926, 0.9015995264053345, 1.9622853994369507, 1.0352035760879517, -0.3584630489349365, 1.5416648387908936, 0.15767501294612885, 1.8677549362182617, -0.45201805233955383, 0.6359521746635437, -0.36740684509277344, -1.140047550201416, 0.7767799496650696, -0.2982790768146515, -2.0103354454040527, -0.6580401062965393, -0.8060888051986694, -0.23413628339767456, -0.790256142616272, 0.8960511088371277, -0.2648744583129883, -1.5236703157424927, 0.2402370125055313, -0.6736975312232971, 0.1604613959789276, -1.211456298828125, 0.31003105640411377, 0.7233326435089111, -0.6580614447593689, 0.08248766511678696, -0.3078739047050476, -1.3411014080047607, -0.44919848442077637, 0.4046087861061096, 1.8337420225143433, -0.7199267745018005, 0.9270732402801514, 1.0239802598953247, -0.6646167635917664, -0.0019406666979193687, 0.37526723742485046, -0.32947954535484314, 0.80400151014328, -1.0823602676391602, -0.4372769594192505, 1.1487075090408325, -0.22399254143238068, -0.595073401927948, 1.4046287536621094, 0.7215542793273926, -1.0478562116622925, -0.17111104726791382, -0.1837957799434662, -0.8014542460441589, -0.0065769110806286335, -1.6840122938156128, -0.13361261785030365, 0.3345469832420349, -1.5159319639205933, -0.5078799724578857, -0.22441241145133972, 1.2549864053726196, -0.13369430601596832, 1.3544681072235107, -0.35764557123184204, -0.11715371161699295, -0.41378653049468994, -0.48199528455734253, 0.21266509592533112, -0.2243662029504776, -0.596060037612915, 0.25217702984809875, -0.7738174200057983, 0.3005817234516144, 1.4711428880691528, 0.288074791431427, 0.040356189012527466, 0.4985259175300598, 1.0541908740997314, 0.3537612855434418, -0.024822544306516647, -0.8286634087562561, -1.5769048929214478, 2.022775888442993, -1.4531097412109375, 1.9746816158294678, 0.7774498462677002, -0.028470948338508606, -1.8155052661895752, -1.868242859840393, 1.414900541305542, 1.1060295104980469, 2.370116949081421, 0.5526478290557861, 0.4237560033798218, -0.7811325192451477, -0.6768953204154968, 0.3350856304168701, -0.9490514397621155, -0.7714914679527283, 0.14329898357391357, 2.401521682739258, 1.6884262561798096, -0.4669925570487976, -0.20582851767539978, -1.0364553928375244, 1.3778618574142456, -0.12635920941829681, 0.27445703744888306, 2.020122528076172, -0.3043196499347687, -1.1003046035766602, 1.310904860496521, -2.340139389038086, 0.21576453745365143, 1.9709434509277344, 0.1524794101715088, 0.10692226886749268, -1.4138168096542358, -0.6666851043701172, -0.2132331132888794, -0.429699182510376, -1.288047432899475, 0.5431820154190063, -0.25537481904029846, -0.7741062641143799, -1.4741036891937256, 0.18307965993881226, -1.1477813720703125, -1.680077314376831, 0.29416200518608093, 1.9109050035476685, 2.041699171066284, -0.7872076630592346, 1.5190849304199219, -0.2437043935060501, 0.19934239983558655, 1.1838477849960327, 1.207018256187439, 3.1281919479370117, 1.872785210609436, -1.3264516592025757, 0.6743947863578796, -0.09469850361347198, -0.4804438054561615, 1.1942138671875, -1.0627546310424805, 1.2839038372039795, -0.2171981930732727, -1.2069379091262817, -1.2092339992523193, 0.9545982480049133, 0.4841482639312744, 0.03354437276721001, -0.45080697536468506, 1.182713508605957, 0.07614766061306, 1.3360720872879028, 0.5604780316352844, -0.37444180250167847, 0.6380575895309448, -0.35048574209213257, -0.5523515939712524, 1.6041361093521118, 0.18025720119476318, -1.4007844924926758, -2.3567676544189453, -0.2542179226875305, -0.8949047923088074, 0.04638104885816574, -0.647666335105896, -0.9628922939300537, 1.5862035751342773, 0.414789617061615, -1.2449747323989868, -0.2991577684879303, -0.3366257846355438, -0.5005850791931152, 2.6281538009643555, -1.4296413660049438, -0.2042667418718338, -0.9055493474006653, -0.5979560017585754, 1.5803626775741577, -1.1822658777236938, -0.25744083523750305, -1.0518319606781006, -0.5805965065956116, -1.293971061706543, -0.5509476661682129, -0.023561976850032806, -0.9278237819671631, 0.7913573384284973, 0.25184595584869385, -1.1951236724853516, -0.29424726963043213, -0.9872927069664001, 0.9125630259513855, -0.11319009959697723, 0.17896121740341187, 1.7997337579727173, 0.3896973133087158, -0.41587015986442566, 0.769476592540741, 1.1406865119934082, 0.6370506286621094, -0.6437747478485107, 0.190683513879776, -0.7039921283721924, 0.2969074547290802, -1.2856844663619995, 0.292156845331192, -2.9193830490112305, 0.650063157081604, -0.0468081496655941, -0.09138989448547363, -0.0772830918431282, -1.308632254600525, 1.0589935779571533, 2.5482661724090576, -1.1399246454238892, 0.5614966154098511, 0.33721083402633667, 1.229395866394043, -1.5719889402389526, 0.22503165900707245, -0.4608457386493683, 2.138920545578003, 0.16686365008354187, 1.1997673511505127, -0.5175558924674988, -2.351330280303955, 0.5615517497062683, -1.2791721820831299, -1.1217659711837769, 0.7961133718490601, -0.8673995733261108, 0.12797708809375763, -1.3245759010314941, -0.2331085205078125, -0.886835515499115, -1.2614718675613403, 0.6281039714813232, 0.13083907961845398, 0.5245900750160217, -0.6311119794845581, 0.3308814465999603, -2.1894497871398926, -1.3123416900634766, -0.21653321385383606, -0.9078603982925415, 0.4739513397216797, -0.3116441071033478, 0.7427209615707397, -0.20992620289325714, 0.022393815219402313, 0.2973785102367401, 1.3536136150360107, 3.344573736190796, 0.167624369263649, 0.34520524740219116, -0.1928512006998062, -0.9607897996902466, 1.384200096130371, 0.9984270930290222, -0.13214492797851562, -0.6153424382209778, -1.0541354417800903, 1.237486481666565, 1.9817867279052734, 1.0277678966522217, 0.0722593292593956, -0.7345287203788757, -0.7321268320083618, 0.08598434180021286, 0.17233093082904816, 0.503006100654602, 0.8892099261283875, 0.08084110170602798, 0.1465098261833191, 1.4258952140808105, 1.2295541763305664, -0.3753868043422699, 0.44232165813446045, -0.8328530192375183, -0.463655561208725, 0.4653254449367523, 0.3102940618991852, -0.021965336054563522, 0.32174909114837646, -0.9864725470542908, -0.23435591161251068, -0.344012588262558, -0.9582183957099915, -0.7612344026565552, -0.43506768345832825, -0.3964850902557373, 1.6351081132888794, 0.08033529669046402, -0.46222639083862305, -0.06448981910943985, -0.7125214338302612, -0.06399158388376236, -1.037585973739624, 0.2816619575023651, -0.18616251647472382, -0.05454089120030403, -0.04998748004436493, 1.785682201385498, -0.9184326529502869, -2.074803113937378, 0.1679578274488449, 0.23627853393554688, -0.35028138756752014, 0.14647327363491058, 1.6837767362594604, 0.5420508980751038, 1.4333736896514893, 1.4011553525924683, 0.9997920393943787, -0.6422217488288879, -1.2550973892211914, 0.7038931846618652, 0.9188658595085144, -1.405733346939087, 0.8153302073478699, -0.023876328021287918, -0.5427387356758118, 0.7199520468711853, 1.3076115846633911, 0.46215301752090454, -2.041203022003174, 0.8526720404624939, -0.9266275763511658, 0.8002046942710876, 0.7543641924858093, 0.7757253646850586, 0.19231034815311432, 0.8123734593391418, -1.2598689794540405, -1.1118828058242798, -0.7009658217430115, -0.6300984621047974, 1.974382758140564, -0.26153483986854553, 0.5578189492225647, -0.17505484819412231, -1.3145843744277954, -0.07157644629478455, 0.7034639716148376, 0.3776163160800934, -0.47126439213752747, 0.7740366458892822, -0.5914286971092224, -1.1094067096710205, -1.3780144453048706, -0.4583130180835724, -1.0479549169540405, -0.8791046738624573, 1.0175960063934326, 0.8601890206336975, 0.39024242758750916, 1.896472692489624, 0.6537570953369141, 0.2784684896469116, -2.605116605758667, 0.88888019323349, 0.32927224040031433, -0.10012008249759674, 0.8716275095939636, 0.3077331781387329, 1.12814462184906, -0.014272375032305717, 0.5810073018074036, -2.4058926105499268, 2.2941691875457764, -0.28079769015312195, 0.7283185720443726, -0.019074950367212296, -0.1300237476825714, 1.0691410303115845, 0.49583137035369873, 0.552223265171051, -1.125328540802002, 0.7231282591819763, -0.6329647898674011, 1.2357559204101562, 0.9405310153961182, -0.8787897229194641, 0.0012801559641957283, 1.317455768585205, 0.3672887086868286, -0.5108826160430908, -0.8849897384643555, -0.9804255366325378, 0.9375147223472595, 1.823751449584961, -0.12910214066505432, 0.07404935359954834, 0.9195693135261536, 0.7309722304344177, -1.3718003034591675, 0.0882474035024643, -0.7092747092247009, -0.7600611448287964, 1.6919947862625122, 2.0484232902526855, -0.08274689316749573, -0.15881913900375366, -0.7541357278823853, -1.226248025894165, 0.8200622797012329, 0.07610993087291718, 0.10502404719591141, 0.6419526934623718, -0.6447828412055969, 1.129518985748291, 0.7991123795509338, 0.9434719085693359, 0.1647648811340332, 0.2521677315235138, 0.3767808675765991, -0.33580029010772705, -1.1160995960235596, -0.293771892786026, -1.086081624031067, -2.4855008125305176, 0.5162083506584167, -0.15547597408294678, -1.481606125831604, 0.021532878279685974, -1.028121829032898, 0.8748142719268799, -0.5961864590644836, -1.1474072933197021, -1.5052837133407593, 0.26560500264167786, -0.1629117727279663, 0.885830283164978, -1.65047287940979, -0.11328378319740295, 1.210270881652832, 0.9604065418243408, -0.6230660676956177, 1.0277080535888672, 0.2646277844905853, 0.9670022130012512, 0.8481394052505493, -0.4141160845756531, 0.5359175205230713, 0.16879816353321075, -1.276130199432373, 0.42860323190689087, 1.2646832466125488, 0.19008150696754456, 1.4195634126663208, -0.585259199142456, -0.016829965636134148, 0.39111804962158203, -0.4575093686580658, -0.5319480895996094, -0.6124592423439026, 0.6751500368118286, 0.03184336796402931, -0.8831069469451904, 0.023167256265878677, -0.016254007816314697, -0.1894845962524414, 0.21892748773097992, -1.5266892910003662, -0.1995791494846344, -0.35474690794944763, -0.6121222972869873, -1.2803059816360474, -0.06646154820919037, 1.358317494392395, -0.6926491856575012, -0.2453078180551529, 0.5054286122322083, 0.3425091505050659, 0.5333216786384583, 0.6616267561912537, -0.6888138055801392, -0.3884521722793579, -0.24440884590148926, -0.3906508684158325, 0.3872794210910797, 1.4007415771484375, -0.14463752508163452, -0.9668258428573608, 0.6322014331817627, -0.3773166239261627, 0.1492311656475067, 1.9382439851760864, 0.09782218933105469, -0.821686863899231, 0.3086482286453247, -0.7328820824623108, 1.8861039876937866, 1.771968126296997, 1.391117811203003, -0.09826840460300446, -1.0317661762237549, 0.6467934250831604, -0.347378134727478, -0.37563198804855347, 1.0431194305419922, 0.4243558645248413, -0.19118520617485046, -1.3890578746795654, 0.6635501980781555, 1.2297582626342773, -0.7910906672477722, -0.8293164372444153, 0.093625009059906, -0.8139878511428833, 1.1303154230117798, 0.7032113075256348, 0.3628324568271637, 0.17670100927352905, 1.641759991645813, 0.7774842977523804, -0.48749011754989624, 0.6364147067070007, 0.44535601139068604, -0.19271838665008545, -2.112861394882202, -1.1832339763641357, 0.3181045651435852, -0.4695378839969635, -1.670482873916626, 1.48825204372406, -1.1297653913497925, -0.9731995463371277, 0.5269102454185486, 0.06314957141876221, 1.36337149143219, 0.34582796692848206, 1.587813138961792, 2.119198799133301, 0.9172026515007019, 0.3971495032310486, 1.3467912673950195, -0.18364892899990082, -0.4639813303947449, 1.8047385215759277, -0.5236315131187439, 0.4768683612346649, 1.0875250101089478, -0.36438336968421936, -1.0415360927581787, -0.8112683296203613, -1.1168906688690186, -0.7197437286376953, 1.099615454673767, 0.0679725781083107, -1.1456105709075928, 0.28969788551330566, 1.6255614757537842, 0.03706808015704155, -0.32699570059776306, 0.7171453833580017, 0.3791823983192444, -0.733047604560852, -0.13890665769577026, -0.92153400182724, 0.4994102716445923, -0.25561094284057617, -0.31491971015930176, 0.28765031695365906, 0.4717662036418915, 1.2177503108978271, -0.02065499871969223, 0.07679633051156998, 1.261281132698059, -1.39586341381073, 1.4104576110839844, -0.7018553018569946, 0.31858789920806885, -2.4125399589538574, 1.4389846324920654, -0.7103070616722107, 1.9029136896133423, -2.6451194286346436, 0.4008150100708008, -0.5486083626747131, -0.5130279064178467, 0.26247599720954895, -0.2630598843097687, 0.16917936503887177, -0.14322076737880707, -1.1287095546722412, -0.11647436022758484, -0.7620934844017029, 0.5181825160980225, 1.1022037267684937, 1.3046728372573853, -1.0903533697128296, -0.21428751945495605, -1.6412461996078491, -0.18131233751773834, -0.646522581577301, 0.31977105140686035, -1.9693987369537354, -0.20367422699928284, -1.9475282430648804, -2.357661008834839, -1.3310205936431885, -0.8249281048774719, 1.1356399059295654, 0.10196568071842194, -0.9506725668907166, 1.1914856433868408, -0.3568127453327179, -1.8689625263214111, 1.1255085468292236, -2.2043673992156982 ]
https://github.com/huggingface/datasets/issues/3464
struct.error: 'i' format requires -2147483648 <= number <= 2147483647
Hi ! Can you try setting `datasets.config.MAX_TABLE_NBYTES_FOR_PICKLING` to a smaller value than `4 << 30` (4GiB), for example `500 << 20` (500MiB) ? It should reduce the maximum size of the arrow table being pickled during multiprocessing. If it fixes the issue, we can consider lowering the default value for everyone.
## Describe the bug A clear and concise description of what the bug is. using latest datasets=datasets-1.16.1-py3-none-any.whl process my own multilingual dataset by following codes, and the number of rows in all dataset is 306000, the max_length of each sentence is 256: ![image](https://user-images.githubusercontent.com/30341159/146865779-3d25d011-1f42-4026-9e1b-76f6e1d172e9.png) then I get this error: ![image](https://user-images.githubusercontent.com/30341159/146865844-e60a404c-5f3a-403c-b2f1-acd943b5cdb8.png) I have seen the issue in #2134 and #2150, so I don't understand why latest repo still can't deal with big dataset. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: linux docker - Python version: 3.6
1,041
51
struct.error: 'i' format requires -2147483648 <= number <= 2147483647 ## Describe the bug A clear and concise description of what the bug is. using latest datasets=datasets-1.16.1-py3-none-any.whl process my own multilingual dataset by following codes, and the number of rows in all dataset is 306000, the max_length of each sentence is 256: ![image](https://user-images.githubusercontent.com/30341159/146865779-3d25d011-1f42-4026-9e1b-76f6e1d172e9.png) then I get this error: ![image](https://user-images.githubusercontent.com/30341159/146865844-e60a404c-5f3a-403c-b2f1-acd943b5cdb8.png) I have seen the issue in #2134 and #2150, so I don't understand why latest repo still can't deal with big dataset. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: linux docker - Python version: 3.6 Hi ! Can you try setting `datasets.config.MAX_TABLE_NBYTES_FOR_PICKLING` to a smaller value than `4 << 30` (4GiB), for example `500 << 20` (500MiB) ? It should reduce the maximum size of the arrow table being pickled during multiprocessing. If it fixes the issue, we can consider lowering the default value for everyone.
[ -1.237774133682251, -0.8315445184707642, -0.6751415729522705, 1.3831422328948975, -0.11522115767002106, -1.2985873222351074, 0.10243285447359085, -1.0395491123199463, 1.7103064060211182, -0.7328506708145142, 0.311978280544281, -1.6050786972045898, 0.01317574828863144, -0.516415536403656, -0.7851550579071045, -0.8354253768920898, -0.3719184398651123, -0.8116447925567627, 1.0989863872528076, 2.543564796447754, 1.1841378211975098, -1.4498944282531738, 2.761003255844116, 0.6213271617889404, -0.26020437479019165, -0.9400122165679932, 0.5101757049560547, 0.02215760387480259, -1.364966869354248, -0.3438592851161957, -0.9628894329071045, -0.0667545348405838, -0.5961705446243286, -0.5647395253181458, -0.00856081023812294, 0.3557194769382477, -0.19301030039787292, -0.4368114173412323, -0.3957442045211792, -0.7827399969100952, 0.47421684861183167, -0.24517394602298737, 0.8961817026138306, -0.2890138030052185, 1.8433799743652344, -0.5323429107666016, 0.4390468895435333, 0.6950936317443848, 1.3054521083831787, 0.202710822224617, -0.08152991533279419, 0.3646630346775055, 0.3484173119068146, -0.059082724153995514, 0.44295617938041687, 1.2205009460449219, 0.6086862683296204, 0.48077136278152466, 0.7242509126663208, -2.1851441860198975, 1.3679330348968506, -0.9529306888580322, 0.2434755265712738, 1.3863060474395752, -1.058124303817749, 0.37964755296707153, -1.842491626739502, -0.09861113131046295, 0.4848058223724365, -2.264852523803711, 0.23993821442127228, -1.3097522258758545, -0.5676136016845703, 1.0033719539642334, 0.29111093282699585, -1.2892444133758545, 0.08036310970783234, -0.4728379249572754, 1.0838062763214111, 0.4068088233470917, 1.231503963470459, -1.7419734001159668, -0.0411042645573616, -0.25153687596321106, 0.2195480614900589, -1.2734386920928955, -1.5727863311767578, 0.5184010863304138, 0.6550024747848511, 0.591916561126709, -0.07862728834152222, 0.9174394011497498, -1.0402517318725586, 0.8194542527198792, -0.9143009185791016, -1.7134404182434082, -1.3895518779754639, -2.2918622493743896, -2.3023245334625244, 0.777570366859436, -0.4439060688018799, -0.4959590435028076, 2.069301128387451, -1.070526361465454, -1.7149317264556885, 1.1197984218597412, 0.3122917115688324, -0.05293075367808342, 2.3762261867523193, 0.27672556042671204, -0.8264051079750061, 0.5580096244812012, -0.785467267036438, 0.7362244725227356, -0.3911876082420349, 1.3614249229431152, 0.5145187377929688, -1.0243875980377197, 1.5882353782653809, -0.46741199493408203, 0.5215325355529785, -0.7170396447181702, -0.46991994976997375, -0.7675714492797852, 0.3072308897972107, 1.9318735599517822, -0.24967774748802185, 1.5583875179290771, -0.3587072491645813, -1.562589168548584, -1.5009944438934326, 0.7975598573684692, 0.5673266649246216, -0.8138803839683533, 0.16357077658176422, -0.39253175258636475, 0.10409288108348846, 0.07990878075361252, 1.0569021701812744, 1.2936325073242188, 0.8248826265335083, -0.24361349642276764, -0.9434747695922852, 0.1887752115726471, -0.05478176847100258, -0.6952222585678101, -1.833662986755371, -0.2887043356895447, 0.06498829275369644, 0.7065268158912659, -1.2369215488433838, 1.7330546379089355, 0.8623214364051819, 1.9240334033966064, 0.9701269865036011, -0.3640214502811432, 1.524775743484497, 0.07490438967943192, 1.8875732421875, -0.37245169281959534, 0.7179560661315918, -0.338777631521225, -1.183316707611084, 0.7614668011665344, -0.3462044596672058, -2.039577007293701, -0.6426073312759399, -0.8253324031829834, -0.15133166313171387, -0.8186216950416565, 0.9052183628082275, -0.27061542868614197, -1.4380362033843994, 0.3259175717830658, -0.6747575998306274, 0.20361028611660004, -1.2826240062713623, 0.33222857117652893, 0.7884552478790283, -0.603007435798645, 0.10284300893545151, -0.31515151262283325, -1.3220868110656738, -0.5612238049507141, 0.3060137629508972, 1.859170913696289, -0.7177037000656128, 1.0337779521942139, 1.0541458129882812, -0.5911081433296204, -0.07631717622280121, 0.3942128121852875, -0.3101676404476166, 0.9272423982620239, -1.1441998481750488, -0.4276726543903351, 1.0223217010498047, -0.15756158530712128, -0.5120734572410583, 1.4085097312927246, 0.718315839767456, -0.9606654644012451, -0.18135543167591095, -0.16651612520217896, -0.8466992974281311, -0.016931869089603424, -1.6645162105560303, -0.15600880980491638, 0.29553836584091187, -1.5020129680633545, -0.47891533374786377, -0.17256397008895874, 1.3715698719024658, -0.16088099777698517, 1.4090614318847656, -0.36765486001968384, -0.17351888120174408, -0.5077450275421143, -0.36712563037872314, 0.153192937374115, -0.19935913383960724, -0.6205753087997437, 0.25992944836616516, -0.7128587365150452, 0.26489707827568054, 1.465137004852295, 0.3764055669307709, 0.06305989623069763, 0.49420517683029175, 1.1581811904907227, 0.31025996804237366, -0.05728425458073616, -0.8612708449363708, -1.6149165630340576, 2.0565779209136963, -1.5256304740905762, 2.0305840969085693, 0.8364517688751221, -0.04915626347064972, -1.8461768627166748, -1.9303359985351562, 1.3990323543548584, 1.2007482051849365, 2.4158544540405273, 0.5858497023582458, 0.46746864914894104, -0.7477532029151917, -0.6243807077407837, 0.3736489415168762, -0.931336522102356, -0.817994236946106, 0.14617867767810822, 2.3590054512023926, 1.646571397781372, -0.4455339014530182, -0.17574533820152283, -1.0097720623016357, 1.3740711212158203, -0.10507626086473465, 0.19077561795711517, 1.9671220779418945, -0.2814674973487854, -1.1723291873931885, 1.2271528244018555, -2.3474650382995605, 0.19572129845619202, 2.019043207168579, 0.2297263741493225, 0.029805302619934082, -1.3573312759399414, -0.6091814637184143, -0.24387049674987793, -0.4602632522583008, -1.1962862014770508, 0.5242641568183899, -0.2696802318096161, -0.827987790107727, -1.4642305374145508, 0.07139890640974045, -1.1610183715820312, -1.7221570014953613, 0.28090476989746094, 1.8093934059143066, 2.036504030227661, -0.7675708532333374, 1.5291986465454102, -0.24673983454704285, 0.23383384943008423, 1.2094848155975342, 1.2096035480499268, 3.1634202003479004, 1.8750271797180176, -1.3268580436706543, 0.6262392997741699, -0.08526554703712463, -0.419320672750473, 1.1235160827636719, -1.1167926788330078, 1.2668085098266602, -0.13026106357574463, -1.267899513244629, -1.2050819396972656, 0.9040505290031433, 0.4666988253593445, 0.035659801214933395, -0.4362637400627136, 1.2062926292419434, 0.09440869837999344, 1.3173432350158691, 0.5286932587623596, -0.25756657123565674, 0.6318767666816711, -0.4301873445510864, -0.5273313522338867, 1.641214370727539, 0.16811414062976837, -1.417037010192871, -2.3162713050842285, -0.2527221441268921, -0.8464823365211487, 0.04407075420022011, -0.7234952449798584, -0.9969729781150818, 1.5936496257781982, 0.4554371237754822, -1.1471900939941406, -0.314834326505661, -0.3864397704601288, -0.6217060685157776, 2.578791856765747, -1.4184963703155518, -0.21182170510292053, -0.9713000655174255, -0.5748504400253296, 1.5534725189208984, -1.2706339359283447, -0.2423228770494461, -0.9958085417747498, -0.5987976789474487, -1.2956857681274414, -0.5567749738693237, -0.07625111937522888, -0.8134577870368958, 0.7275580167770386, 0.177898570895195, -1.1832780838012695, -0.31512919068336487, -0.9379927515983582, 0.7767513990402222, -0.1650678962469101, 0.21475538611412048, 1.8119163513183594, 0.36488083004951477, -0.43343719840049744, 0.7239193320274353, 1.2081234455108643, 0.5957826972007751, -0.586345911026001, 0.20093083381652832, -0.7057127952575684, 0.34485504031181335, -1.2333338260650635, 0.28794851899147034, -2.9100959300994873, 0.659075915813446, -0.056870702654123306, -0.03255395591259003, -0.0639684647321701, -1.3054676055908203, 1.0819664001464844, 2.503617286682129, -1.1419270038604736, 0.5517883896827698, 0.275594025850296, 1.2063453197479248, -1.6328060626983643, 0.22048084437847137, -0.46511515974998474, 2.135558605194092, 0.18488751351833344, 1.2134931087493896, -0.5165860056877136, -2.3359341621398926, 0.5599934458732605, -1.1798112392425537, -1.1177632808685303, 0.7810087203979492, -0.8166069984436035, 0.09182722121477127, -1.2897021770477295, -0.1641797125339508, -0.9314815998077393, -1.16127347946167, 0.6692213416099548, 0.0870913416147232, 0.5532993674278259, -0.6369576454162598, 0.29980650544166565, -2.1646687984466553, -1.3492331504821777, -0.17681190371513367, -0.9924808144569397, 0.43740785121917725, -0.3201723098754883, 0.7071956396102905, -0.14585022628307343, 0.016759313642978668, 0.3559405207633972, 1.4020946025848389, 3.3353710174560547, 0.2161448448896408, 0.40105095505714417, -0.15067322552204132, -1.0196046829223633, 1.451207160949707, 0.9378727078437805, -0.1979285180568695, -0.6251757740974426, -1.03950834274292, 1.2910435199737549, 1.9244120121002197, 1.017688512802124, 0.03326449170708656, -0.7881079316139221, -0.7140892148017883, 0.07214118540287018, 0.15851366519927979, 0.5012383460998535, 0.9517035484313965, 0.09334546327590942, 0.11437856405973434, 1.4790287017822266, 1.1670448780059814, -0.4897896945476532, 0.4872073531150818, -0.8419817090034485, -0.47691959142684937, 0.4455404281616211, 0.3504472076892853, -0.011049899272620678, 0.3123317062854767, -1.0168538093566895, -0.24811889231204987, -0.33578893542289734, -0.9520705938339233, -0.730994462966919, -0.37684664130210876, -0.3279012143611908, 1.657303810119629, 0.04631207883358002, -0.4502542018890381, -0.012097522616386414, -0.778531014919281, -0.07143764197826385, -1.0312964916229248, 0.2709328830242157, -0.1711224913597107, 0.002706635743379593, -0.03648241609334946, 1.7836883068084717, -0.8515692949295044, -2.1178300380706787, 0.22218458354473114, 0.2349565029144287, -0.39117833971977234, 0.13256889581680298, 1.7016563415527344, 0.53737473487854, 1.3961191177368164, 1.3903765678405762, 0.979486346244812, -0.6957389712333679, -1.2855126857757568, 0.7262392044067383, 0.9070366024971008, -1.4252586364746094, 0.7890360951423645, -0.06939694285392761, -0.5418609380722046, 0.7196069955825806, 1.3912053108215332, 0.45024365186691284, -1.9981348514556885, 0.84853595495224, -0.9817207455635071, 0.8481165170669556, 0.7085001468658447, 0.7525623440742493, 0.12067142128944397, 0.8791174292564392, -1.2604966163635254, -1.0768091678619385, -0.7310325503349304, -0.6882910132408142, 1.8433046340942383, -0.23025892674922943, 0.4540695250034332, -0.23094354569911957, -1.283653974533081, -0.07109449803829193, 0.6364446878433228, 0.2693759799003601, -0.3607977330684662, 0.7701296806335449, -0.7008606195449829, -1.1888182163238525, -1.3895626068115234, -0.4645470380783081, -0.9652346968650818, -0.8530077338218689, 0.9557781219482422, 0.8242987394332886, 0.32645514607429504, 1.8969779014587402, 0.6147825121879578, 0.12489645183086395, -2.653859853744507, 0.832424521446228, 0.3573136329650879, -0.04193214699625969, 0.971377432346344, 0.2576428949832916, 1.1101202964782715, -0.04729282483458519, 0.5430160760879517, -2.4191763401031494, 2.2963616847991943, -0.2967636287212372, 0.7714285254478455, 0.0013243239372968674, -0.15821173787117004, 1.1045551300048828, 0.5420387387275696, 0.5986727476119995, -1.176314353942871, 0.7952455878257751, -0.6582660675048828, 1.2038545608520508, 0.8884055614471436, -0.817677915096283, 0.030092544853687286, 1.2367651462554932, 0.4391648769378662, -0.5565618872642517, -0.878208339214325, -0.9923046231269836, 0.928881824016571, 1.8015797138214111, -0.031605277210474014, 0.10152440518140793, 0.7763494849205017, 0.6733819246292114, -1.3734421730041504, 0.04455868899822235, -0.7480215430259705, -0.8043767809867859, 1.730151653289795, 2.0679359436035156, -0.08178387582302094, -0.20739512145519257, -0.6774858832359314, -1.3346197605133057, 0.8160213828086853, 0.015426892787218094, 0.15706788003444672, 0.6640201807022095, -0.6936653852462769, 1.154930591583252, 0.8987016677856445, 0.9375296831130981, 0.2366948425769806, 0.22453434765338898, 0.2601046860218048, -0.2377036064863205, -1.140286922454834, -0.2483161836862564, -1.0629699230194092, -2.4784207344055176, 0.4200574457645416, -0.23720790445804596, -1.4317095279693604, 0.09032321721315384, -0.8990765810012817, 0.8136911392211914, -0.5090628862380981, -1.1010289192199707, -1.442396640777588, 0.2109731137752533, -0.1499992460012436, 0.9013471007347107, -1.5988807678222656, -0.17373527586460114, 1.2866857051849365, 0.9546827077865601, -0.6404189467430115, 0.9991673827171326, 0.25791406631469727, 0.9589405059814453, 0.9373720288276672, -0.45125117897987366, 0.4567643702030182, 0.18172837793827057, -1.306546926498413, 0.4296903610229492, 1.2452201843261719, 0.1854381561279297, 1.442188024520874, -0.5120344161987305, -0.010637260042130947, 0.4204230308532715, -0.37123456597328186, -0.5066467523574829, -0.6238147616386414, 0.6839273571968079, -0.04894484207034111, -0.874671220779419, 0.12094137072563171, -0.0761396586894989, -0.17351113259792328, 0.29056382179260254, -1.5432794094085693, -0.20646008849143982, -0.38393425941467285, -0.5844139456748962, -1.2620646953582764, -0.06562373787164688, 1.3543152809143066, -0.8202686905860901, -0.1804867535829544, 0.4737163186073303, 0.42805495858192444, 0.5665941834449768, 0.6744515299797058, -0.6481003761291504, -0.42586901783943176, -0.23591041564941406, -0.4040071666240692, 0.30514857172966003, 1.2263364791870117, -0.11143937706947327, -0.9727098941802979, 0.6224132180213928, -0.36731117963790894, 0.12855343520641327, 1.9170222282409668, 0.0618366077542305, -0.8068482279777527, 0.28786617517471313, -0.7072822451591492, 1.9267184734344482, 1.672001838684082, 1.3910350799560547, -0.13065728545188904, -0.9592252969741821, 0.5636304020881653, -0.29728150367736816, -0.3424527645111084, 0.9788987636566162, 0.48146870732307434, -0.22225171327590942, -1.3594255447387695, 0.6420719623565674, 1.2665565013885498, -0.8882877230644226, -0.7656566500663757, 0.03784286603331566, -0.797620952129364, 1.1594569683074951, 0.702843964099884, 0.4135986268520355, 0.28398022055625916, 1.6751821041107178, 0.7544929385185242, -0.5652928948402405, 0.5382100343704224, 0.4846189320087433, -0.13060824573040009, -2.070899248123169, -1.0970356464385986, 0.2622292637825012, -0.3697759807109833, -1.5511367321014404, 1.396531105041504, -1.1794939041137695, -1.010817050933838, 0.5344803929328918, 0.043304868042469025, 1.3569576740264893, 0.3250466585159302, 1.6506996154785156, 2.0682461261749268, 0.9407029151916504, 0.3795515298843384, 1.2650699615478516, -0.18602679669857025, -0.4158613085746765, 1.7629830837249756, -0.4694842994213104, 0.49917811155319214, 1.0734856128692627, -0.44652605056762695, -1.0937798023223877, -0.8427851796150208, -1.1451988220214844, -0.6831963658332825, 1.0840411186218262, 0.13166649639606476, -1.201117992401123, 0.2696196734905243, 1.5684466361999512, 0.06226230412721634, -0.3021951913833618, 0.6325355768203735, 0.42510566115379333, -0.7447261810302734, -0.09635403007268906, -1.0313551425933838, 0.5226789712905884, -0.23609821498394012, -0.4305400848388672, 0.2935417592525482, 0.4675479233264923, 1.2043540477752686, 0.053899139165878296, 0.1116911992430687, 1.3165485858917236, -1.4274601936340332, 1.3370206356048584, -0.7614256143569946, 0.2945965528488159, -2.3152358531951904, 1.4421658515930176, -0.7945918440818787, 1.9817771911621094, -2.62814998626709, 0.4756328761577606, -0.624915361404419, -0.45879119634628296, 0.31690195202827454, -0.29119768738746643, 0.20456726849079132, -0.18014729022979736, -1.0519039630889893, -0.22542686760425568, -0.7931119203567505, 0.5277910828590393, 1.162904977798462, 1.3250877857208252, -1.0319523811340332, -0.20830543339252472, -1.6739044189453125, -0.17860184609889984, -0.5711233615875244, 0.21040239930152893, -1.9546699523925781, -0.16773836314678192, -2.012342929840088, -2.3633620738983154, -1.3319737911224365, -0.9572862982749939, 1.1378779411315918, 0.1671837419271469, -0.8841491937637329, 1.100315809249878, -0.4066828787326813, -1.7854108810424805, 1.1540305614471436, -2.1427085399627686 ]
https://github.com/huggingface/datasets/issues/3457
Add CMU Graphics Lab Motion Capture dataset
This dataset has files in ASF/AMC format. [ The skeleton file is the ASF file (Acclaim Skeleton File). The motion file is the AMC file (Acclaim Motion Capture data). ] Some questions : 1. How do we go about representing these features using datasets.Features and generate examples ? 2. The dataset download link for ASF/AMC files does not have metadata information, for eg : category and subcategory information. We will need to crawl the website for this information. The authors mention "Please don't crawl this database for all motions." Can we mail the authors for this information ? The dataset structure is as follows : ``` subjects - 01 - 01_01.amc - 01_02.amc . . . - 01.asf - 02 - 02_01.amc - 02_02.amc . . . - 02.asf ``` There is no metadata regarding the category, sub-category and motion description. Need your inputs. @mariosasko / @lhoestq Thank you.
## Adding a Dataset - **Name:** CMU Graphics Lab Motion Capture database - **Description:** The database contains free motions which you can download and use. - **Data:** http://mocap.cs.cmu.edu/ - **Motivation:** Nice motion capture dataset Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
1,043
149
Add CMU Graphics Lab Motion Capture dataset ## Adding a Dataset - **Name:** CMU Graphics Lab Motion Capture database - **Description:** The database contains free motions which you can download and use. - **Data:** http://mocap.cs.cmu.edu/ - **Motivation:** Nice motion capture dataset Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). This dataset has files in ASF/AMC format. [ The skeleton file is the ASF file (Acclaim Skeleton File). The motion file is the AMC file (Acclaim Motion Capture data). ] Some questions : 1. How do we go about representing these features using datasets.Features and generate examples ? 2. The dataset download link for ASF/AMC files does not have metadata information, for eg : category and subcategory information. We will need to crawl the website for this information. The authors mention "Please don't crawl this database for all motions." Can we mail the authors for this information ? The dataset structure is as follows : ``` subjects - 01 - 01_01.amc - 01_02.amc . . . - 01.asf - 02 - 02_01.amc - 02_02.amc . . . - 02.asf ``` There is no metadata regarding the category, sub-category and motion description. Need your inputs. @mariosasko / @lhoestq Thank you.
[ -1.3096346855163574, -0.9486478567123413, -0.5606201887130737, 1.4174236059188843, -0.2415269911289215, -1.2938657999038696, 0.1172226294875145, -0.9802646636962891, 1.7377991676330566, -0.7429309487342834, 0.2905254364013672, -1.7942183017730713, -0.03267817199230194, -0.43252408504486084, -0.7522766590118408, -0.8010602593421936, -0.49320369958877563, -0.8026710748672485, 0.9810420870780945, 2.4915640354156494, 1.1275683641433716, -1.3504890203475952, 2.6801202297210693, 0.6195594072341919, -0.2192666083574295, -1.0122305154800415, 0.40317103266716003, 0.16794006526470184, -1.3575539588928223, -0.3541393578052521, -0.9981797933578491, -0.044603463262319565, -0.5548924803733826, -0.4803871512413025, 0.10641150921583176, 0.3019135594367981, -0.1664513349533081, -0.3654758334159851, -0.504867434501648, -0.7178018689155579, 0.508399248123169, -0.36517655849456787, 0.8894325494766235, -0.41969776153564453, 1.7886759042739868, -0.6956841349601746, 0.5287036299705505, 0.687801718711853, 1.2103153467178345, 0.15570494532585144, 0.010855783708393574, 0.3507755696773529, 0.443108469247818, 0.06801001727581024, 0.46998003125190735, 1.1946173906326294, 0.5304535031318665, 0.5024157762527466, 0.713134765625, -2.228238821029663, 1.3310478925704956, -0.9684133529663086, 0.29802918434143066, 1.3459157943725586, -1.0284154415130615, 0.38377439975738525, -1.813534140586853, 0.0023230919614434242, 0.530273973941803, -2.331054449081421, 0.1390061229467392, -1.4201805591583252, -0.5329104661941528, 0.9873542785644531, 0.31119242310523987, -1.251123309135437, 0.1765705794095993, -0.47136902809143066, 1.0052382946014404, 0.4576534032821655, 1.0720981359481812, -1.6942710876464844, -0.09051262587308884, -0.20767425000667572, 0.05513908341526985, -1.2747766971588135, -1.5913883447647095, 0.5979719758033752, 0.679035484790802, 0.6471735239028931, -0.04682878777384758, 0.9333703517913818, -1.0323745012283325, 0.9444423317909241, -0.9771285653114319, -1.6820080280303955, -1.3653768301010132, -2.3062527179718018, -2.26434326171875, 0.8812741041183472, -0.47798576951026917, -0.47650375962257385, 2.002732515335083, -1.006027102470398, -1.7561684846878052, 1.1994624137878418, 0.2704479992389679, 0.03991314396262169, 2.342604160308838, 0.20036254823207855, -0.7000448703765869, 0.46430549025535583, -0.8273846507072449, 0.7230543494224548, -0.33582353591918945, 1.3331741094589233, 0.4555814564228058, -0.9452770948410034, 1.5709714889526367, -0.4358077943325043, 0.4772063195705414, -0.6380482912063599, -0.5718265175819397, -0.7241095304489136, 0.3152932822704315, 1.9713165760040283, -0.2872051000595093, 1.566442608833313, -0.3130006194114685, -1.556349515914917, -1.5185595750808716, 0.8136258721351624, 0.6180628538131714, -0.7460624575614929, 0.035604991018772125, -0.28184106945991516, 0.10538702458143234, 0.005210386589169502, 1.0263372659683228, 1.1781680583953857, 0.8125171065330505, -0.37039387226104736, -0.8752238154411316, 0.2145807445049286, -0.06831701844930649, -0.7527320384979248, -1.849487066268921, -0.2920971214771271, 0.1756371110677719, 0.6094779372215271, -1.2636021375656128, 1.5671590566635132, 0.8457126617431641, 1.9444388151168823, 0.9669800400733948, -0.3462425470352173, 1.5203052759170532, 0.027396894991397858, 1.8939071893692017, -0.5312341451644897, 0.7796001434326172, -0.22499273717403412, -1.0656063556671143, 0.7810249328613281, -0.3508254885673523, -2.0590908527374268, -0.6952916979789734, -0.8509314656257629, -0.21355265378952026, -0.7320604920387268, 0.8915897011756897, -0.26558923721313477, -1.4574352502822876, 0.1881910264492035, -0.636680543422699, 0.1728297621011734, -1.2058720588684082, 0.3318336308002472, 0.8482592105865479, -0.6564352512359619, -0.0032181115821003914, -0.24685819447040558, -1.4089926481246948, -0.4866389334201813, 0.28450146317481995, 1.8426203727722168, -0.751585841178894, 1.0619804859161377, 1.0144416093826294, -0.7504212260246277, 0.06979850679636002, 0.3332158923149109, -0.2998217046260834, 0.8688105940818787, -1.043549656867981, -0.43539002537727356, 1.072040319442749, -0.13833265006542206, -0.605341911315918, 1.49037504196167, 0.6700848340988159, -0.9400874376296997, -0.3017910122871399, -0.2407768815755844, -0.8406305909156799, -0.04861035570502281, -1.622152328491211, -0.2373703569173813, 0.2170332819223404, -1.52230703830719, -0.5216168761253357, -0.21598871052265167, 1.4252294301986694, -0.18151336908340454, 1.353730320930481, -0.2997521460056305, -0.29059967398643494, -0.47870615124702454, -0.3271371126174927, 0.2396773248910904, -0.2640693187713623, -0.5551843047142029, 0.19188624620437622, -0.8173304200172424, 0.3014499843120575, 1.4789515733718872, 0.4037705957889557, 0.041816744953393936, 0.5345202088356018, 1.104427695274353, 0.2915472686290741, -0.17661775648593903, -0.8763605356216431, -1.5800355672836304, 2.00539231300354, -1.4427709579467773, 1.9758743047714233, 0.749776303768158, -0.08903641998767853, -1.8670111894607544, -1.9411776065826416, 1.2998043298721313, 1.1616933345794678, 2.3370463848114014, 0.5725131630897522, 0.4385133385658264, -0.8246937990188599, -0.6197089552879333, 0.3550577461719513, -1.0069878101348877, -0.8007811903953552, 0.1539793610572815, 2.3116047382354736, 1.6671782732009888, -0.5463895797729492, -0.10733160376548767, -1.0895752906799316, 1.356353998184204, -0.08896438777446747, 0.26382800936698914, 1.978269338607788, -0.3475775122642517, -1.100846529006958, 1.2447729110717773, -2.2913663387298584, 0.1700010746717453, 2.0379343032836914, 0.30949702858924866, 0.07004272937774658, -1.4199851751327515, -0.6843558549880981, -0.2890847623348236, -0.47238320112228394, -1.227560043334961, 0.542534589767456, -0.3104074001312256, -0.8408650755882263, -1.4336894750595093, -0.013666147366166115, -1.127671480178833, -1.7714933156967163, 0.30806964635849, 1.9068893194198608, 1.9146567583084106, -0.6972688436508179, 1.449048399925232, -0.2450864464044571, 0.10981487482786179, 1.3206913471221924, 1.2419871091842651, 3.0794172286987305, 2.0106029510498047, -1.192012906074524, 0.7774409055709839, -0.13963782787322998, -0.35718050599098206, 1.09026038646698, -1.0690193176269531, 1.2124696969985962, -0.14704889059066772, -1.294168472290039, -1.1660752296447754, 1.0578103065490723, 0.4071078598499298, 0.006664390675723553, -0.4914855659008026, 1.1884602308273315, 0.11383874714374542, 1.402411937713623, 0.49951496720314026, -0.41722017526626587, 0.6680001020431519, -0.44171446561813354, -0.48425963521003723, 1.6368604898452759, 0.12316865473985672, -1.465124249458313, -2.3594655990600586, -0.30507421493530273, -0.8526847958564758, 0.043422069400548935, -0.5874493718147278, -1.0003342628479004, 1.6779347658157349, 0.5135136246681213, -1.3388398885726929, -0.23608453571796417, -0.40316587686538696, -0.6060512661933899, 2.6401121616363525, -1.3890310525894165, -0.15562628209590912, -0.9617775082588196, -0.5195078253746033, 1.5758575201034546, -1.2014139890670776, -0.1619175225496292, -0.9521076083183289, -0.6683834791183472, -1.3033370971679688, -0.5498372912406921, 0.002823406830430031, -1.0010433197021484, 0.74161696434021, 0.035942964255809784, -1.1665875911712646, -0.38821321725845337, -0.8590375185012817, 0.8952317237854004, -0.02338838204741478, 0.2035592645406723, 1.9585360288619995, 0.41073206067085266, -0.38828006386756897, 0.7254560589790344, 1.142378807067871, 0.6815686821937561, -0.6718757748603821, 0.22599942982196808, -0.6449924111366272, 0.39996498823165894, -1.3632258176803589, 0.2262558788061142, -3.004544258117676, 0.6811989545822144, -0.0689476802945137, -0.055335287004709244, -0.048176731914281845, -1.3107788562774658, 1.1737759113311768, 2.630626678466797, -1.1633269786834717, 0.48060882091522217, 0.3956143856048584, 1.1353936195373535, -1.460388422012329, 0.3231849670410156, -0.4220183789730072, 2.1611263751983643, 0.15818016231060028, 1.1697487831115723, -0.562201201915741, -2.293177843093872, 0.7048511505126953, -1.1761599779129028, -1.155979037284851, 0.7079037427902222, -0.9094153046607971, 0.18032437562942505, -1.3551124334335327, -0.14001508057117462, -0.8713276386260986, -1.2224512100219727, 0.6445838809013367, 0.12044908851385117, 0.49974021315574646, -0.6648894548416138, 0.3519439995288849, -2.2285499572753906, -1.2498507499694824, -0.3155692517757416, -0.9435067772865295, 0.5021118521690369, -0.2574557363986969, 0.734713613986969, -0.11575936526060104, 0.13768386840820312, 0.321213036775589, 1.4558663368225098, 3.3182592391967773, 0.17532755434513092, 0.23144026100635529, -0.10144247859716415, -1.040542721748352, 1.422691822052002, 1.0135002136230469, -0.06264323741197586, -0.5743688344955444, -1.0042775869369507, 1.2903497219085693, 1.9985491037368774, 0.9097651839256287, 0.09770804643630981, -0.7472189664840698, -0.7322477102279663, 0.10105017572641373, 0.15993298590183258, 0.5113911628723145, 1.0045133829116821, 0.07148812711238861, 0.09392093122005463, 1.4580031633377075, 1.2311880588531494, -0.402834951877594, 0.42902377247810364, -0.8692240118980408, -0.4779828190803528, 0.48246076703071594, 0.28805655241012573, 0.04711911454796791, 0.41444748640060425, -1.0438995361328125, -0.27815118432044983, -0.2508576214313507, -0.983653724193573, -0.7329394221305847, -0.43152526021003723, -0.5407640337944031, 1.6222262382507324, 0.1449175477027893, -0.42101946473121643, -0.03312676399946213, -0.727773904800415, -0.0751148909330368, -1.0216091871261597, 0.4014836251735687, -0.1304863691329956, 0.022455032914876938, -0.14223644137382507, 1.7869632244110107, -0.90426105260849, -2.027548313140869, 0.27173781394958496, 0.26261085271835327, -0.43602100014686584, 0.17704784870147705, 1.6372286081314087, 0.6171718239784241, 1.547408103942871, 1.3272665739059448, 0.938910722732544, -0.5048224925994873, -1.4002265930175781, 0.7122799158096313, 0.9262170791625977, -1.3682162761688232, 0.7839298248291016, 0.04492006078362465, -0.4353351294994354, 0.684969961643219, 1.4232498407363892, 0.4022282660007477, -1.9717470407485962, 0.8461518883705139, -0.9742215871810913, 0.7303949594497681, 0.7442892789840698, 0.8010758757591248, 0.04553229361772537, 0.8542960286140442, -1.2846894264221191, -1.1125470399856567, -0.844479501247406, -0.6283005475997925, 2.008884906768799, -0.22058969736099243, 0.48233672976493835, -0.1907544881105423, -1.1884247064590454, -0.01625179871916771, 0.6375471949577332, 0.3834124505519867, -0.3156690001487732, 0.8784264922142029, -0.5978015065193176, -1.1323169469833374, -1.3883867263793945, -0.4499189257621765, -0.8621833324432373, -0.8069308400154114, 0.9646918773651123, 1.002520203590393, 0.4642849266529083, 1.809360384941101, 0.5002555251121521, 0.34823140501976013, -2.748480796813965, 0.8747227787971497, 0.3112630248069763, -0.11444071680307388, 0.8819755911827087, 0.1681106835603714, 0.9977230429649353, -0.06467753648757935, 0.5257868766784668, -2.3787460327148438, 2.2541255950927734, -0.2613055408000946, 0.7162771224975586, 0.05340869352221489, 0.01561919879168272, 1.0913045406341553, 0.5020172595977783, 0.5220114588737488, -1.1011271476745605, 0.7304467558860779, -0.5970368385314941, 1.2694754600524902, 0.8451929688453674, -0.6627535820007324, -0.09799844771623611, 1.3433821201324463, 0.5421056151390076, -0.45542246103286743, -0.8514699935913086, -0.9572544097900391, 0.9086723327636719, 1.8400921821594238, -0.0626196339726448, -0.0072888764552772045, 0.7860500812530518, 0.7131696939468384, -1.302178144454956, 0.07427513599395752, -0.7929320931434631, -0.6989489197731018, 1.592333436012268, 2.118966579437256, 0.018034331500530243, -0.23549675941467285, -0.6574475765228271, -1.2154433727264404, 0.7693676948547363, -0.060081250965595245, 0.13798047602176666, 0.727042019367218, -0.5907540321350098, 1.0647635459899902, 0.7455864548683167, 0.9994222521781921, 0.1952730119228363, 0.4001482427120209, 0.13934443891048431, -0.26480892300605774, -1.1767529249191284, -0.23534376919269562, -1.1434310674667358, -2.508547782897949, 0.4785131812095642, -0.19325940310955048, -1.4938682317733765, 0.09863059222698212, -1.052250623703003, 0.837931752204895, -0.5779370665550232, -1.2137341499328613, -1.4759513139724731, 0.15380428731441498, -0.12837672233581543, 0.9417909383773804, -1.5367975234985352, -0.10795591026544571, 1.2618273496627808, 0.9162436127662659, -0.5447672605514526, 0.9710396528244019, 0.3081907331943512, 1.0174391269683838, 0.8782844543457031, -0.41409096121788025, 0.41571035981178284, 0.058183375746011734, -1.3238261938095093, 0.46677953004837036, 1.1381525993347168, 0.173206627368927, 1.5056337118148804, -0.58444744348526, 0.04750039428472519, 0.519051194190979, -0.5307199954986572, -0.4595552086830139, -0.6089109182357788, 0.7309752106666565, 0.026218261569738388, -1.0348399877548218, -0.02917579561471939, -0.0763215497136116, -0.13064925372600555, 0.2276146411895752, -1.4599952697753906, -0.25058621168136597, -0.35678261518478394, -0.6213451623916626, -1.2429372072219849, -0.11979860812425613, 1.3529413938522339, -0.8603063821792603, -0.09701848775148392, 0.4575445055961609, 0.31150275468826294, 0.5993635654449463, 0.7382264137268066, -0.5932385921478271, -0.37594103813171387, -0.27908089756965637, -0.25072747468948364, 0.356410950422287, 1.3008487224578857, -0.10766632854938507, -1.0117826461791992, 0.7315381169319153, -0.34450075030326843, 0.09327790886163712, 2.0186049938201904, 0.06090617552399635, -0.7700403928756714, 0.35905277729034424, -0.7384340167045593, 1.8323556184768677, 1.6793102025985718, 1.2855812311172485, -0.05800718441605568, -0.9981059432029724, 0.45864221453666687, -0.26034238934516907, -0.4141541123390198, 0.9023551940917969, 0.5501923561096191, -0.15659378468990326, -1.3125243186950684, 0.6045415997505188, 1.3310728073120117, -0.9227250814437866, -0.7603722810745239, 0.11310996115207672, -0.7760744094848633, 1.1047699451446533, 0.7374047040939331, 0.3594558537006378, 0.2462860494852066, 1.5460588932037354, 0.801206111907959, -0.4680628776550293, 0.39984965324401855, 0.531202495098114, -0.15536411106586456, -2.072430372238159, -1.1355937719345093, 0.2842614948749542, -0.49559128284454346, -1.5661516189575195, 1.3827356100082397, -1.2036783695220947, -0.8885659575462341, 0.48850923776626587, 0.11033235490322113, 1.4045593738555908, 0.3157264292240143, 1.716674566268921, 2.097517728805542, 0.9573270082473755, 0.3321521282196045, 1.4489338397979736, -0.02548263967037201, -0.48752495646476746, 1.7831642627716064, -0.4758818447589874, 0.5101842284202576, 1.041677474975586, -0.3950536847114563, -1.010275959968567, -0.8800606727600098, -1.2219244241714478, -0.6795452833175659, 1.0404175519943237, 0.14479587972164154, -1.169262170791626, 0.10408806800842285, 1.4681471586227417, 0.11553027480840683, -0.26423409581184387, 0.5613157749176025, 0.3856657147407532, -0.7041927576065063, -0.1483161747455597, -0.9493237137794495, 0.456030011177063, -0.20470310747623444, -0.3851280212402344, 0.2537819743156433, 0.4720902740955353, 1.1427550315856934, -0.057748351246118546, 0.11019646376371384, 1.2460155487060547, -1.4174355268478394, 1.4199317693710327, -0.647627592086792, 0.31405124068260193, -2.4608118534088135, 1.4122153520584106, -0.8381229043006897, 1.9014947414398193, -2.664039134979248, 0.39368736743927, -0.48380863666534424, -0.4786825478076935, 0.28607800602912903, -0.3803671598434448, 0.22833983600139618, -0.10131880640983582, -1.1438853740692139, -0.1617719978094101, -0.8397919535636902, 0.5889458060264587, 1.0820468664169312, 1.364569067955017, -1.1701552867889404, -0.21126607060432434, -1.683537244796753, -0.1686217039823532, -0.6461663842201233, 0.38087281584739685, -1.9581966400146484, -0.12013578414916992, -1.927494764328003, -2.3455874919891357, -1.3314578533172607, -0.9857020974159241, 0.9460907578468323, 0.07337874919176102, -0.8575040102005005, 1.033553123474121, -0.3398800492286682, -1.8570982217788696, 1.1381068229675293, -2.278087854385376 ]
https://github.com/huggingface/datasets/issues/3457
Add CMU Graphics Lab Motion Capture dataset
Hi @dnaveenr! Thanks for working on this! 1. We can use the `Sequence(Value("string"))` feature type for the subject's AMC files and `Value("string")` for the subject's ASF file (`Value("string")` represents the file paths) + the types for categories/subcategories and descriptions. 2. We can use this URL to download the motion descriptions: http://mocap.cs.cmu.edu/search.php?subjectnumber=<subject_number>&motion=%%%&maincat=%&subcat=%&subtext=yes where `subject_number` is the number between 1 and 144. And to get categories/subcategories, feel free to contact the authors (they state in the FAQ they are happy to help) and ask them if they can provide the mapping from categories/subcategories to the AMC files to avoid crawling. You can also mention that your goal is to make their dataset more accessible by adding its loading script to the Hub. The AMC files are also available in the tvd, c3d, mpg and avi formats (the links are in the [FAQ](http://mocap.cs.cmu.edu/faqs.php) section), so it would be nice to have one config for each of these additional formats. And additionally, we can add a `Data Preprocessing` section to the card where we explain how to load/process the files. I can help with that.
## Adding a Dataset - **Name:** CMU Graphics Lab Motion Capture database - **Description:** The database contains free motions which you can download and use. - **Data:** http://mocap.cs.cmu.edu/ - **Motivation:** Nice motion capture dataset Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
1,043
181
Add CMU Graphics Lab Motion Capture dataset ## Adding a Dataset - **Name:** CMU Graphics Lab Motion Capture database - **Description:** The database contains free motions which you can download and use. - **Data:** http://mocap.cs.cmu.edu/ - **Motivation:** Nice motion capture dataset Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi @dnaveenr! Thanks for working on this! 1. We can use the `Sequence(Value("string"))` feature type for the subject's AMC files and `Value("string")` for the subject's ASF file (`Value("string")` represents the file paths) + the types for categories/subcategories and descriptions. 2. We can use this URL to download the motion descriptions: http://mocap.cs.cmu.edu/search.php?subjectnumber=<subject_number>&motion=%%%&maincat=%&subcat=%&subtext=yes where `subject_number` is the number between 1 and 144. And to get categories/subcategories, feel free to contact the authors (they state in the FAQ they are happy to help) and ask them if they can provide the mapping from categories/subcategories to the AMC files to avoid crawling. You can also mention that your goal is to make their dataset more accessible by adding its loading script to the Hub. The AMC files are also available in the tvd, c3d, mpg and avi formats (the links are in the [FAQ](http://mocap.cs.cmu.edu/faqs.php) section), so it would be nice to have one config for each of these additional formats. And additionally, we can add a `Data Preprocessing` section to the card where we explain how to load/process the files. I can help with that.
[ -1.3215529918670654, -0.9766904711723328, -0.6816181540489197, 1.4381136894226074, -0.18791182339191437, -1.1945103406906128, 0.08055239915847778, -1.076556921005249, 1.7342079877853394, -0.7340734004974365, 0.3456771671772003, -1.6776939630508423, 0.037064313888549805, -0.4633503556251526, -0.8234856724739075, -0.7946099638938904, -0.45937061309814453, -0.8384360671043396, 0.9566024541854858, 2.4998972415924072, 1.2303916215896606, -1.4307448863983154, 2.7314534187316895, 0.6847361922264099, -0.183539018034935, -1.0455684661865234, 0.4912269413471222, 0.06799469143152237, -1.3118712902069092, -0.44980067014694214, -1.0316797494888306, 0.017894383519887924, -0.5487343668937683, -0.5170080661773682, 0.10450229048728943, 0.32910680770874023, -0.20025452971458435, -0.43210434913635254, -0.5979170203208923, -0.7337019443511963, 0.5040655732154846, -0.3213762640953064, 0.9158704280853271, -0.3596048057079315, 1.7856982946395874, -0.6227641701698303, 0.4506778419017792, 0.6769735217094421, 1.309981107711792, 0.19595101475715637, -0.00016312021762132645, 0.3723512589931488, 0.4536263942718506, 0.01217699982225895, 0.47949737310409546, 1.215736746788025, 0.5850023627281189, 0.5009377598762512, 0.7660720348358154, -2.2172906398773193, 1.307087779045105, -1.005400538444519, 0.3518947958946228, 1.304585576057434, -0.9563231468200684, 0.33504030108451843, -1.7712348699569702, 0.009798616170883179, 0.5789955258369446, -2.330707311630249, 0.18537460267543793, -1.3770629167556763, -0.6129533648490906, 0.9956128597259521, 0.2928340435028076, -1.2485467195510864, 0.24927160143852234, -0.5273097157478333, 1.0432631969451904, 0.43438398838043213, 1.1354382038116455, -1.7401469945907593, -0.04956560581922531, -0.2017439603805542, 0.0857786163687706, -1.3210569620132446, -1.6300048828125, 0.5942714214324951, 0.6292949914932251, 0.54933762550354, -0.1145254373550415, 1.0257396697998047, -1.0480374097824097, 0.9577656388282776, -0.965094804763794, -1.674169898033142, -1.3973764181137085, -2.2496418952941895, -2.1830830574035645, 0.8005708456039429, -0.483457088470459, -0.5226253271102905, 2.0501625537872314, -0.9657137393951416, -1.7728157043457031, 1.2201709747314453, 0.2536732852458954, -0.016106991097331047, 2.3226723670959473, 0.10205743461847305, -0.6285589933395386, 0.38126370310783386, -0.6649590730667114, 0.8703409433364868, -0.40123164653778076, 1.325373888015747, 0.4438985288143158, -0.9931961297988892, 1.5907771587371826, -0.39631858468055725, 0.540635347366333, -0.6248361468315125, -0.5482169389724731, -0.8109074831008911, 0.37104398012161255, 1.9415216445922852, -0.3622564673423767, 1.564937949180603, -0.3430619537830353, -1.5844612121582031, -1.6470807790756226, 0.9234110116958618, 0.6379755735397339, -0.7641643285751343, 0.0372011661529541, -0.33112290501594543, 0.12058541178703308, -0.05544660985469818, 1.1068620681762695, 1.2477622032165527, 0.7372449040412903, -0.34118199348449707, -0.8207976222038269, 0.14204250276088715, -0.12995585799217224, -0.7509793639183044, -1.856307029724121, -0.3739515244960785, 0.19391126930713654, 0.6378857493400574, -1.2874754667282104, 1.6285054683685303, 0.9144688844680786, 1.9976248741149902, 1.002441167831421, -0.4059097170829773, 1.5613306760787964, 0.02735125832259655, 1.8082042932510376, -0.5387150645256042, 0.6805822253227234, -0.3175112307071686, -1.1247180700302124, 0.7888842225074768, -0.38149526715278625, -2.005821704864502, -0.6912290453910828, -0.8449713587760925, -0.23967614769935608, -0.6939944624900818, 0.8457237482070923, -0.28881967067718506, -1.4238622188568115, 0.13760997354984283, -0.666614294052124, 0.1755022555589676, -1.1374913454055786, 0.35396620631217957, 0.7822297215461731, -0.6895086169242859, 0.043218739330768585, -0.2598493993282318, -1.2789218425750732, -0.525894284248352, 0.26697418093681335, 1.7929495573043823, -0.7301859259605408, 0.9532946348190308, 0.9958479404449463, -0.754721999168396, 0.040075115859508514, 0.3011423647403717, -0.32185643911361694, 0.8789172172546387, -1.0660316944122314, -0.4291594326496124, 1.0956379175186157, -0.14850614964962006, -0.5904979705810547, 1.440483808517456, 0.6710846424102783, -0.9891241788864136, -0.2734627425670624, -0.1645735204219818, -0.8619534373283386, 0.020608479157090187, -1.5621358156204224, -0.20146775245666504, 0.30426111817359924, -1.5378313064575195, -0.5350587368011475, -0.2560311257839203, 1.2880867719650269, -0.2129662036895752, 1.3992174863815308, -0.3410917818546295, -0.2293546497821808, -0.37352854013442993, -0.31508341431617737, 0.17811506986618042, -0.20104722678661346, -0.6077215671539307, 0.15784801542758942, -0.7840944528579712, 0.3772919476032257, 1.5332280397415161, 0.4135541021823883, 0.004251468926668167, 0.4855078458786011, 1.14071524143219, 0.3671737015247345, -0.08876536041498184, -0.8996336460113525, -1.6043667793273926, 1.9771260023117065, -1.5176432132720947, 2.0329525470733643, 0.8187894821166992, -0.047291383147239685, -1.8331831693649292, -1.9046833515167236, 1.2588343620300293, 1.1609055995941162, 2.418652296066284, 0.5290916562080383, 0.3903884291648865, -0.7956079244613647, -0.6374853849411011, 0.3701011538505554, -0.9970616698265076, -0.7756971120834351, 0.10200508683919907, 2.3182339668273926, 1.792027473449707, -0.5249602198600769, -0.21253114938735962, -1.0450879335403442, 1.3839235305786133, -0.07359491288661957, 0.2641459107398987, 1.9500635862350464, -0.2179034948348999, -1.1079237461090088, 1.2856273651123047, -2.300962448120117, 0.07879364490509033, 2.002558946609497, 0.31032779812812805, 0.0751139223575592, -1.4018911123275757, -0.6263501048088074, -0.30491408705711365, -0.46814945340156555, -1.2443290948867798, 0.4493897557258606, -0.34384799003601074, -0.7810008525848389, -1.4394574165344238, 0.06406423449516296, -1.228034257888794, -1.6789219379425049, 0.271060049533844, 1.9936408996582031, 1.9201550483703613, -0.7301108837127686, 1.4991475343704224, -0.24891415238380432, 0.04606051743030548, 1.2969712018966675, 1.243721842765808, 3.1311333179473877, 1.9152626991271973, -1.2676796913146973, 0.6464164853096008, -0.1965109258890152, -0.4362548589706421, 1.1272633075714111, -1.104067087173462, 1.1974700689315796, -0.11199823021888733, -1.1885544061660767, -1.1659334897994995, 1.075211763381958, 0.505483865737915, 0.045404404401779175, -0.5117313265800476, 1.1072075366973877, 0.09034259617328644, 1.2909542322158813, 0.5240901112556458, -0.41871094703674316, 0.6487066149711609, -0.4088142514228821, -0.5155321359634399, 1.5943881273269653, 0.12886998057365417, -1.379540205001831, -2.3067209720611572, -0.20982731878757477, -0.8570893406867981, 0.09128999710083008, -0.6441256403923035, -0.9944457411766052, 1.6399624347686768, 0.4175427258014679, -1.3876138925552368, -0.2979898452758789, -0.4205077588558197, -0.6877057552337646, 2.5975613594055176, -1.3714624643325806, -0.17796245217323303, -0.9640300869941711, -0.5257357358932495, 1.5074961185455322, -1.1936644315719604, -0.22968871891498566, -0.938639223575592, -0.5604400634765625, -1.2575876712799072, -0.574282705783844, 0.02692377381026745, -0.8923221230506897, 0.7867414951324463, 0.12846478819847107, -1.09333336353302, -0.33719369769096375, -0.7610579133033752, 0.9130579829216003, -0.04818016290664673, 0.17574959993362427, 2.040470600128174, 0.42282357811927795, -0.3341968059539795, 0.7004650235176086, 1.1452144384384155, 0.6234843730926514, -0.6027625799179077, 0.2624662518501282, -0.6731058359146118, 0.2856433093547821, -1.3743714094161987, 0.2868262231349945, -2.8984341621398926, 0.6887916326522827, -0.0853489488363266, -0.10533208400011063, 0.0221963319927454, -1.3230922222137451, 0.9983805418014526, 2.665245294570923, -1.106702446937561, 0.42089417576789856, 0.32903391122817993, 1.2171021699905396, -1.660658836364746, 0.3306243121623993, -0.41339218616485596, 2.0793986320495605, 0.23102395236492157, 1.149651288986206, -0.6122241020202637, -2.269224166870117, 0.5470825433731079, -1.1932486295700073, -1.1641303300857544, 0.7573556303977966, -0.8206238150596619, 0.11905895173549652, -1.47994065284729, -0.24101482331752777, -0.8777908086776733, -1.1617919206619263, 0.689810037612915, 0.13877613842487335, 0.4628453254699707, -0.6461564302444458, 0.3391854763031006, -2.1406548023223877, -1.28467857837677, -0.25365307927131653, -0.902481198310852, 0.5758674144744873, -0.35611364245414734, 0.6574980020523071, -0.08097270876169205, 0.08108707517385483, 0.31061506271362305, 1.4285780191421509, 3.406346559524536, 0.22692056000232697, 0.35203754901885986, -0.1922154575586319, -0.9615222811698914, 1.4739558696746826, 0.9705137014389038, -0.12297255545854568, -0.6434062123298645, -1.0461959838867188, 1.2894526720046997, 1.9139641523361206, 0.9356645941734314, 0.11491083353757858, -0.7564937472343445, -0.7570316195487976, -0.024953573942184448, 0.21713319420814514, 0.496289998292923, 0.9742618203163147, 0.11381752789020538, 0.14413601160049438, 1.3864933252334595, 1.2745999097824097, -0.41712817549705505, 0.41518303751945496, -0.8015190958976746, -0.5093427896499634, 0.43010780215263367, 0.31137871742248535, 0.013849740847945213, 0.3648764491081238, -0.9894710779190063, -0.28006479144096375, -0.40158790349960327, -1.002359390258789, -0.649799644947052, -0.38994330167770386, -0.42130130529403687, 1.6386313438415527, 0.13616307079792023, -0.48181137442588806, -0.08802822232246399, -0.7511020302772522, -0.07656416296958923, -1.0981074571609497, 0.33098363876342773, -0.09164445102214813, -0.09585923701524734, -0.1311364620923996, 1.7455593347549438, -0.8609455823898315, -2.037299394607544, 0.2464923858642578, 0.17242884635925293, -0.4487948715686798, 0.20543761551380157, 1.6349279880523682, 0.5372536778450012, 1.4732567071914673, 1.322702407836914, 0.9087921977043152, -0.5695084929466248, -1.2765923738479614, 0.6701633930206299, 0.9288352727890015, -1.4359294176101685, 0.7942652702331543, 0.05546683818101883, -0.49075016379356384, 0.7158426642417908, 1.3648512363433838, 0.37019166350364685, -2.074782609939575, 0.9094854593276978, -0.8897836208343506, 0.7632982730865479, 0.7037599086761475, 0.666975736618042, 0.21617445349693298, 0.8929547071456909, -1.248692512512207, -1.1874756813049316, -0.771172285079956, -0.7146271467208862, 2.0582690238952637, -0.20242176949977875, 0.5296364426612854, -0.20424102246761322, -1.2839118242263794, -0.09306492656469345, 0.6036083698272705, 0.37697160243988037, -0.3774567246437073, 0.8820335865020752, -0.7182247042655945, -1.117202639579773, -1.3818089962005615, -0.5062254071235657, -0.9297482967376709, -0.8597580790519714, 0.9757659435272217, 0.9968255758285522, 0.39170336723327637, 1.9013385772705078, 0.5428779721260071, 0.29893380403518677, -2.687734603881836, 0.8587607741355896, 0.30041444301605225, -0.11045040190219879, 0.9256451725959778, 0.24822762608528137, 1.0487502813339233, -0.015180259011685848, 0.46917083859443665, -2.388336420059204, 2.3165931701660156, -0.2882097065448761, 0.7272754311561584, -0.04297797381877899, -0.0980057418346405, 1.2201604843139648, 0.5552182197570801, 0.5169945955276489, -1.0705580711364746, 0.6273204684257507, -0.5513713955879211, 1.1685982942581177, 0.8491619825363159, -0.772722601890564, -0.04896979779005051, 1.3405824899673462, 0.5012149214744568, -0.5201943516731262, -0.8928266763687134, -0.9615016579627991, 0.8766803741455078, 1.855263113975525, -0.006236687768250704, 0.0891883596777916, 0.8126443028450012, 0.6801451444625854, -1.3066474199295044, 0.19088123738765717, -0.7438749670982361, -0.7932953238487244, 1.5490797758102417, 2.053452730178833, -0.058114491403102875, -0.2342378944158554, -0.641325831413269, -1.2876393795013428, 0.7517653703689575, -0.0550871342420578, 0.2060781717300415, 0.6169590353965759, -0.6846436262130737, 1.0741156339645386, 0.8928576707839966, 0.9846475720405579, 0.09782247990369797, 0.2999975383281708, 0.3136572539806366, -0.37044528126716614, -1.1510628461837769, -0.23751194775104523, -1.0930613279342651, -2.477539300918579, 0.47070664167404175, -0.1931837648153305, -1.436618447303772, 0.040085747838020325, -0.993527889251709, 0.8791574239730835, -0.5833179354667664, -1.173714518547058, -1.53566312789917, 0.21768835186958313, -0.10896807163953781, 0.9182965159416199, -1.6244738101959229, -0.13749711215496063, 1.201391339302063, 0.8617913126945496, -0.4718687832355499, 0.9648070931434631, 0.25391337275505066, 1.0369256734848022, 0.9175165891647339, -0.4174267053604126, 0.41082698106765747, 0.024155432358384132, -1.2992527484893799, 0.3905916213989258, 1.1066718101501465, 0.2093963623046875, 1.4559974670410156, -0.5276630520820618, 0.07291598618030548, 0.4164343774318695, -0.522695004940033, -0.4021942615509033, -0.4844999313354492, 0.6853005886077881, 0.014562848955392838, -0.9762210249900818, 0.020453114062547684, -0.07971951365470886, -0.2660376727581024, 0.1923767328262329, -1.5169819593429565, -0.19296839833259583, -0.4118748605251312, -0.5030576586723328, -1.2079638242721558, -0.03050069697201252, 1.3865022659301758, -0.7902470231056213, -0.20715084671974182, 0.4900150001049042, 0.38500794768333435, 0.5833250880241394, 0.7159736156463623, -0.6489743590354919, -0.34094834327697754, -0.21970044076442719, -0.3679935038089752, 0.29421499371528625, 1.3145453929901123, -0.16880571842193604, -0.895336925983429, 0.6588654518127441, -0.36554062366485596, 0.09999638050794601, 1.9596121311187744, 0.010200651362538338, -0.7242069840431213, 0.30702710151672363, -0.7166597843170166, 1.8565845489501953, 1.7921959161758423, 1.3592636585235596, -0.11346781253814697, -0.9378600716590881, 0.5602593421936035, -0.35310080647468567, -0.31118613481521606, 0.8881001472473145, 0.515038251876831, -0.18137957155704498, -1.410986304283142, 0.5833146572113037, 1.316371202468872, -0.9240490198135376, -0.7045032978057861, 0.09140145778656006, -0.7312842607498169, 1.1008093357086182, 0.7038904428482056, 0.33845794200897217, 0.2890382707118988, 1.5425492525100708, 0.7462641000747681, -0.4093114137649536, 0.5481812357902527, 0.5687838792800903, -0.1739170253276825, -2.1638169288635254, -1.1594316959381104, 0.26889532804489136, -0.42225182056427, -1.6012457609176636, 1.3656277656555176, -1.1076761484146118, -0.9151030778884888, 0.5456680655479431, 0.01908065192401409, 1.463191032409668, 0.3629319965839386, 1.6385366916656494, 2.1161534786224365, 0.8801860809326172, 0.34249958395957947, 1.376433253288269, 0.014139799401164055, -0.476638525724411, 1.8311362266540527, -0.5108947157859802, 0.4410252273082733, 1.0153601169586182, -0.33646973967552185, -1.0624366998672485, -0.800148069858551, -1.2636877298355103, -0.6435430645942688, 1.1293550729751587, 0.03960241377353668, -1.0854978561401367, 0.2492941915988922, 1.6276370286941528, 0.11276079714298248, -0.3268168270587921, 0.5475844740867615, 0.44683292508125305, -0.7206450700759888, -0.099156454205513, -0.8756949305534363, 0.4535394608974457, -0.19824223220348358, -0.33509233593940735, 0.3342129588127136, 0.42084819078445435, 1.197709560394287, -0.02444802224636078, 0.07084906101226807, 1.2446472644805908, -1.4739007949829102, 1.4804960489273071, -0.6925835609436035, 0.3557848334312439, -2.4675159454345703, 1.518223524093628, -0.7790972590446472, 2.021566390991211, -2.593714952468872, 0.4629657566547394, -0.6428755521774292, -0.47251471877098083, 0.34544235467910767, -0.39891931414604187, 0.17869314551353455, -0.1591201275587082, -1.1075400114059448, -0.07676786184310913, -0.7358695864677429, 0.5809177756309509, 1.1772218942642212, 1.349094271659851, -1.1744190454483032, -0.22109760344028473, -1.7183278799057007, -0.10129211097955704, -0.6679518818855286, 0.30728453397750854, -1.9757661819458008, -0.15978187322616577, -1.8911725282669067, -2.3193411827087402, -1.3357067108154297, -0.8817633390426636, 0.9430649280548096, 0.11864306032657623, -0.8429375290870667, 1.1670011281967163, -0.37823453545570374, -1.7713463306427002, 1.0920801162719727, -2.20037841796875 ]
https://github.com/huggingface/datasets/issues/3457
Add CMU Graphics Lab Motion Capture dataset
Hi @mariosasko , 1. Thanks for this, so we can add the file paths. 2. Yes, I had already mailed the authors a couple of days back actually, asking for the metadata details[ i.e category, sub-category and motion description] . They are yet to respond though, I will wait for a couple of days and try to follow up with them again. :) Else we can use the workaround solution. Yes. Supporting all the formats would be helpful. > And additionally, we can add a Data Preprocessing section to the card where we explain how to load/process the files. I can help with that. Okay. Got it.
## Adding a Dataset - **Name:** CMU Graphics Lab Motion Capture database - **Description:** The database contains free motions which you can download and use. - **Data:** http://mocap.cs.cmu.edu/ - **Motivation:** Nice motion capture dataset Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
1,043
107
Add CMU Graphics Lab Motion Capture dataset ## Adding a Dataset - **Name:** CMU Graphics Lab Motion Capture database - **Description:** The database contains free motions which you can download and use. - **Data:** http://mocap.cs.cmu.edu/ - **Motivation:** Nice motion capture dataset Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Hi @mariosasko , 1. Thanks for this, so we can add the file paths. 2. Yes, I had already mailed the authors a couple of days back actually, asking for the metadata details[ i.e category, sub-category and motion description] . They are yet to respond though, I will wait for a couple of days and try to follow up with them again. :) Else we can use the workaround solution. Yes. Supporting all the formats would be helpful. > And additionally, we can add a Data Preprocessing section to the card where we explain how to load/process the files. I can help with that. Okay. Got it.
[ -1.2761895656585693, -0.9785972237586975, -0.6403140425682068, 1.325018048286438, -0.28648641705513, -1.2591662406921387, 0.09770120680332184, -1.055037498474121, 1.6991658210754395, -0.7558348774909973, 0.2981261909008026, -1.6637728214263916, 0.07127740979194641, -0.5291840434074402, -0.8344800472259521, -0.8163384199142456, -0.42172324657440186, -0.8227982521057129, 0.8838986158370972, 2.562786102294922, 1.0924744606018066, -1.3534256219863892, 2.6569199562072754, 0.6704370975494385, -0.18503838777542114, -1.1095144748687744, 0.5315824747085571, 0.12515771389007568, -1.2478011846542358, -0.40534451603889465, -0.9885349869728088, -0.08821582049131393, -0.5515037178993225, -0.46875807642936707, 0.076682448387146, 0.3186267018318176, -0.09889309108257294, -0.2898443043231964, -0.5392706394195557, -0.7115275859832764, 0.5341768860816956, -0.4195823669433594, 0.9605312943458557, -0.3962152898311615, 1.790179967880249, -0.6505769491195679, 0.47391197085380554, 0.6431308388710022, 1.3281804323196411, 0.17329877614974976, -0.035775259137153625, 0.2707165777683258, 0.514327883720398, 0.07974894344806671, 0.3339770436286926, 1.0436064004898071, 0.6214457750320435, 0.4883645176887512, 0.6884424686431885, -2.162412166595459, 1.3780845403671265, -0.9504441022872925, 0.38294723629951477, 1.4139336347579956, -1.0082485675811768, 0.35230374336242676, -1.7324154376983643, -0.08794532716274261, 0.5292723178863525, -2.309091806411743, 0.14543646574020386, -1.3958543539047241, -0.7018260955810547, 0.9409595131874084, 0.3140740692615509, -1.2521182298660278, 0.25720125436782837, -0.49411335587501526, 1.001591682434082, 0.4760000705718994, 1.0907150506973267, -1.7601674795150757, -0.09426163882017136, -0.22803378105163574, 0.09824522584676743, -1.2811927795410156, -1.5351662635803223, 0.6716277599334717, 0.6492258310317993, 0.5985156297683716, -0.08191802352666855, 0.8408089280128479, -1.0623987913131714, 1.0225169658660889, -1.023433804512024, -1.6455694437026978, -1.3360681533813477, -2.346682548522949, -2.275170087814331, 0.8502118587493896, -0.4553717374801636, -0.45379728078842163, 1.9743014574050903, -1.046613335609436, -1.7048367261886597, 1.1702169179916382, 0.16893351078033447, -0.05257076025009155, 2.3898189067840576, 0.0956646203994751, -0.5766089558601379, 0.3858829140663147, -0.7549742460250854, 0.9144009351730347, -0.44670388102531433, 1.3915207386016846, 0.49144038558006287, -0.9340699315071106, 1.572187900543213, -0.4973951280117035, 0.430794358253479, -0.5669571161270142, -0.5752933621406555, -0.8203989267349243, 0.4292115867137909, 1.936737298965454, -0.2765060067176819, 1.5950927734375, -0.30203109979629517, -1.604878544807434, -1.533972144126892, 0.917708158493042, 0.6179671287536621, -0.83449387550354, 0.04270268231630325, -0.29635587334632874, 0.12859448790550232, -0.055676233023405075, 1.0663052797317505, 1.1918889284133911, 0.806469738483429, -0.31958621740341187, -0.9074189066886902, 0.19139322638511658, -0.20215335488319397, -0.8135562539100647, -1.8879694938659668, -0.3953142762184143, 0.15631595253944397, 0.7119296789169312, -1.2721203565597534, 1.6175222396850586, 0.8804643750190735, 2.0121138095855713, 0.9897350668907166, -0.4304121732711792, 1.4186198711395264, -0.021845176815986633, 1.8609601259231567, -0.6505597829818726, 0.7850812077522278, -0.3374742865562439, -1.0110630989074707, 0.7805390357971191, -0.4146658778190613, -1.9848424196243286, -0.6276187896728516, -0.9544917345046997, -0.2849244177341461, -0.7738240361213684, 0.963772177696228, -0.3203458786010742, -1.3651723861694336, 0.1811453104019165, -0.6660869121551514, 0.19902518391609192, -1.1693313121795654, 0.3485596477985382, 0.8429189324378967, -0.6384413838386536, -0.1005471870303154, -0.3021686375141144, -1.3041648864746094, -0.5080413222312927, 0.29325634241104126, 1.8562099933624268, -0.6966434717178345, 0.9934607148170471, 0.8554196357727051, -0.7165828347206116, 0.015588143840432167, 0.43475791811943054, -0.3042140007019043, 0.7295023202896118, -1.1028817892074585, -0.42470547556877136, 1.0083208084106445, -0.22793015837669373, -0.5076243281364441, 1.497064232826233, 0.7501805424690247, -0.9322746992111206, -0.2169855535030365, -0.23775777220726013, -0.7187017202377319, 0.0460171215236187, -1.6692489385604858, -0.1995464265346527, 0.28591614961624146, -1.4859931468963623, -0.5915237069129944, -0.210052490234375, 1.3038358688354492, -0.15380573272705078, 1.2961673736572266, -0.36122557520866394, -0.34445300698280334, -0.47719907760620117, -0.3226868212223053, 0.24694055318832397, -0.22667601704597473, -0.5518881678581238, 0.1643390953540802, -0.8252439498901367, 0.36379194259643555, 1.4759628772735596, 0.40116292238235474, 0.04331348463892937, 0.5173528790473938, 1.0669806003570557, 0.27326110005378723, -0.10507719963788986, -0.9460862874984741, -1.5374138355255127, 2.0760951042175293, -1.4911818504333496, 1.9754070043563843, 0.7929661273956299, -0.07110479474067688, -1.8199622631072998, -1.823704481124878, 1.2082301378250122, 1.190650463104248, 2.3777005672454834, 0.572466254234314, 0.38823482394218445, -0.7946024537086487, -0.5804175138473511, 0.35384681820869446, -1.034914255142212, -0.7866995334625244, 0.08073364198207855, 2.322786331176758, 1.7696547508239746, -0.6333932280540466, -0.14609667658805847, -1.1487185955047607, 1.3683990240097046, -0.05652456730604172, 0.2274707853794098, 2.0167994499206543, -0.3715794086456299, -1.149006962776184, 1.2911783456802368, -2.296663284301758, 0.13468486070632935, 2.055685043334961, 0.3764995038509369, 0.07971921563148499, -1.4360427856445312, -0.6089178323745728, -0.3017443120479584, -0.4409521520137787, -1.238143801689148, 0.5219006538391113, -0.3749479353427887, -0.8458179235458374, -1.4591783285140991, 0.04679220914840698, -1.1791770458221436, -1.7457550764083862, 0.40875953435897827, 1.8294488191604614, 1.900245189666748, -0.6975178718566895, 1.4084426164627075, -0.2637009024620056, 0.08627297729253769, 1.2962578535079956, 1.1747419834136963, 3.155250072479248, 2.0292396545410156, -1.1762475967407227, 0.7289419174194336, -0.22256898880004883, -0.3760411739349365, 1.1141810417175293, -1.0122379064559937, 1.1753714084625244, -0.17455899715423584, -1.2616348266601562, -1.103841781616211, 1.0907560586929321, 0.3873606324195862, 0.043174441903829575, -0.5766964554786682, 1.211022973060608, 0.02750348672270775, 1.3913832902908325, 0.5644820332527161, -0.3693268299102783, 0.5906034111976624, -0.4620641767978668, -0.494471937417984, 1.633185863494873, 0.23266971111297607, -1.464004397392273, -2.4245529174804688, -0.34009048342704773, -0.8353654146194458, -0.030620858073234558, -0.6019973754882812, -1.0348693132400513, 1.680442452430725, 0.4946747124195099, -1.3714001178741455, -0.2940457761287689, -0.44863271713256836, -0.6981608867645264, 2.6354360580444336, -1.4916952848434448, -0.1734669804573059, -0.9953634142875671, -0.4989078938961029, 1.5600953102111816, -1.3081883192062378, -0.15841752290725708, -1.0625386238098145, -0.5801490545272827, -1.2747349739074707, -0.49282392859458923, -0.04014744609594345, -0.9367306232452393, 0.7538170218467712, 0.031657006591558456, -1.0359138250350952, -0.32226425409317017, -0.8600376844406128, 0.8039241433143616, 0.01089506596326828, 0.21436068415641785, 1.955567479133606, 0.4345492422580719, -0.38038933277130127, 0.6411574482917786, 1.1357793807983398, 0.6910869479179382, -0.7554559111595154, 0.23834562301635742, -0.6825085282325745, 0.24564963579177856, -1.230599284172058, 0.30494311451911926, -2.871150255203247, 0.7356489896774292, -0.07320300489664078, -0.14354631304740906, -0.0017283093184232712, -1.3038997650146484, 1.1353814601898193, 2.6098265647888184, -1.183564305305481, 0.498950332403183, 0.272222638130188, 1.2177207469940186, -1.5300836563110352, 0.37226298451423645, -0.3793433904647827, 2.1479406356811523, 0.2982076108455658, 1.13093900680542, -0.6237564086914062, -2.328498125076294, 0.6650125980377197, -1.1638461351394653, -1.13518488407135, 0.640052855014801, -0.791391909122467, 0.11013899743556976, -1.4553810358047485, -0.06449519097805023, -0.9768244028091431, -1.2198486328125, 0.7071220278739929, 0.1136322021484375, 0.510093629360199, -0.6903505325317383, 0.3168351948261261, -2.2103230953216553, -1.299354910850525, -0.30741915106773376, -0.8713657855987549, 0.5770174264907837, -0.33256590366363525, 0.6654362082481384, -0.08483324944972992, 0.1344318389892578, 0.30726054310798645, 1.4648069143295288, 3.4124255180358887, 0.2311534285545349, 0.3482135534286499, -0.07730422168970108, -0.9861441850662231, 1.392142653465271, 0.9948922991752625, 0.02233603596687317, -0.5985202193260193, -0.9183892011642456, 1.261167049407959, 2.019629955291748, 0.9242939949035645, 0.10969573259353638, -0.7702555656433105, -0.6711190342903137, 0.11701902002096176, 0.26204878091812134, 0.44380706548690796, 0.9733168482780457, 0.09361608326435089, 0.10956524312496185, 1.4255046844482422, 1.3023420572280884, -0.40938514471054077, 0.43060269951820374, -0.7967629432678223, -0.5213283896446228, 0.4401847720146179, 0.38409197330474854, -0.02061663568019867, 0.43368059396743774, -1.0210037231445312, -0.2666662633419037, -0.3172737956047058, -1.0196739435195923, -0.6487809419631958, -0.44312775135040283, -0.5245221853256226, 1.6522867679595947, 0.14266490936279297, -0.48567134141921997, -0.07759211212396622, -0.7341775298118591, -0.05410991609096527, -1.0953623056411743, 0.34663447737693787, -0.09510604292154312, -0.008232435211539268, -0.10567213594913483, 1.8222821950912476, -0.8654060959815979, -2.04931640625, 0.3080565929412842, 0.23202762007713318, -0.5662781000137329, 0.14613133668899536, 1.586378574371338, 0.5503058433532715, 1.4960520267486572, 1.356752872467041, 0.9814081192016602, -0.5736587047576904, -1.3153258562088013, 0.7348088622093201, 0.831876814365387, -1.4629788398742676, 0.8055444359779358, 0.11630711704492569, -0.5095196962356567, 0.8103434443473816, 1.3619178533554077, 0.3443630635738373, -2.0213210582733154, 0.827060341835022, -0.9031438231468201, 0.8220540285110474, 0.716729462146759, 0.6976403594017029, 0.18058902025222778, 0.8961695432662964, -1.3595510721206665, -1.0805244445800781, -0.8323899507522583, -0.6163586974143982, 2.0018978118896484, -0.19076204299926758, 0.5284096002578735, -0.20743423700332642, -1.1651966571807861, -0.11588626354932785, 0.6599970459938049, 0.41747018694877625, -0.3123732805252075, 0.8939293026924133, -0.6406397819519043, -1.1601070165634155, -1.3362261056900024, -0.5334673523902893, -0.8000021576881409, -0.8923400640487671, 0.9901643395423889, 1.042067050933838, 0.4468398094177246, 1.9564212560653687, 0.5145352482795715, 0.2509791851043701, -2.6250057220458984, 0.8142625093460083, 0.23752683401107788, -0.07678798586130142, 0.905295193195343, 0.22811827063560486, 1.0833845138549805, -0.03268696367740631, 0.529771089553833, -2.41152024269104, 2.280493974685669, -0.312660813331604, 0.7508906126022339, 0.0070450808852910995, 0.007592041045427322, 1.2318929433822632, 0.5332328081130981, 0.5062450170516968, -1.1089378595352173, 0.6441968083381653, -0.5991733074188232, 1.2194753885269165, 0.9159647226333618, -0.7432151436805725, -0.03346521407365799, 1.2962297201156616, 0.5129825472831726, -0.47233572602272034, -0.9324811100959778, -0.9362977147102356, 0.817077100276947, 1.8484822511672974, -0.0826387107372284, -0.02534070424735546, 0.7887247204780579, 0.7359371781349182, -1.2789342403411865, 0.11236391216516495, -0.755472719669342, -0.6970170736312866, 1.6100327968597412, 2.051950693130493, 0.04222797602415085, -0.1286013126373291, -0.6386363506317139, -1.2295821905136108, 0.7567133903503418, 0.044395700097084045, 0.13124912977218628, 0.7104235887527466, -0.5166075229644775, 1.0500224828720093, 0.85664963722229, 1.0337454080581665, 0.11842093616724014, 0.36804383993148804, 0.27974390983581543, -0.34054049849510193, -1.1390637159347534, -0.29349783062934875, -1.2292972803115845, -2.493774175643921, 0.5556326508522034, -0.2961995303630829, -1.4976305961608887, 0.0726005956530571, -1.062011957168579, 0.8528725504875183, -0.6572774052619934, -1.0569466352462769, -1.539475679397583, 0.21988078951835632, -0.10492797195911407, 1.0064778327941895, -1.6563944816589355, -0.10852637141942978, 1.1892961263656616, 0.7762019634246826, -0.4413888156414032, 1.020696759223938, 0.2888376712799072, 1.045565128326416, 0.8634918928146362, -0.499946653842926, 0.35468417406082153, 0.12719565629959106, -1.34890615940094, 0.5031197667121887, 1.0972532033920288, 0.21500375866889954, 1.3431787490844727, -0.5068677663803101, 0.18434086441993713, 0.5113014578819275, -0.5685597658157349, -0.4209056496620178, -0.511896550655365, 0.7685373425483704, 0.07456556707620621, -0.9658212661743164, -0.004501825664192438, -0.1487026810646057, -0.2338869273662567, 0.30485087633132935, -1.4780354499816895, -0.31861546635627747, -0.47268813848495483, -0.5355952382087708, -1.2692632675170898, -0.12289457768201828, 1.3637266159057617, -0.7927436232566833, -0.0933685228228569, 0.5082741975784302, 0.3974924683570862, 0.5774295330047607, 0.7407649755477905, -0.5455042719841003, -0.41566991806030273, -0.29219502210617065, -0.32532963156700134, 0.263372004032135, 1.2664633989334106, -0.22779232263565063, -0.9818103909492493, 0.691912055015564, -0.3330879807472229, 0.14997240900993347, 2.0011799335479736, 0.04242445155978203, -0.7919116020202637, 0.32417601346969604, -0.7105642557144165, 1.8396731615066528, 1.649568796157837, 1.2946276664733887, -0.12389631569385529, -0.9474338293075562, 0.41890573501586914, -0.19311493635177612, -0.33046674728393555, 0.7499218583106995, 0.5770494937896729, -0.1706903874874115, -1.3166818618774414, 0.6005446910858154, 1.306925654411316, -0.9652000069618225, -0.7665458917617798, 0.10333891957998276, -0.7645504474639893, 1.1183407306671143, 0.6745156645774841, 0.46190309524536133, 0.3498675525188446, 1.61576247215271, 0.6367624402046204, -0.5170599818229675, 0.4154546856880188, 0.5028178095817566, -0.1851971447467804, -2.152844190597534, -1.1425527334213257, 0.22795331478118896, -0.4666394293308258, -1.6272486448287964, 1.3534444570541382, -1.158292293548584, -0.8446976542472839, 0.5616596341133118, 0.16537007689476013, 1.4000492095947266, 0.3899797201156616, 1.6972754001617432, 2.035726308822632, 0.8885148763656616, 0.332690954208374, 1.4636085033416748, 0.07030458748340607, -0.5257803201675415, 1.8189697265625, -0.4332142174243927, 0.5226121544837952, 1.0655319690704346, -0.3034598231315613, -1.0673812627792358, -0.8408352136611938, -1.1439366340637207, -0.5722634196281433, 1.1553536653518677, 0.14379051327705383, -1.1692523956298828, 0.1682722270488739, 1.5811011791229248, 0.0819491297006607, -0.30459749698638916, 0.45947155356407166, 0.41712093353271484, -0.6275140643119812, -0.09364912658929825, -0.9568760991096497, 0.4605931341648102, -0.24496573209762573, -0.3322288691997528, 0.2910844087600708, 0.5395596623420715, 1.0958353281021118, -0.08773787319660187, 0.08944172412157059, 1.2418420314788818, -1.437834620475769, 1.456459403038025, -0.5434620976448059, 0.2941257059574127, -2.4177820682525635, 1.460789680480957, -0.7165693640708923, 1.9477182626724243, -2.641617774963379, 0.3257923424243927, -0.6295442581176758, -0.5088183879852295, 0.3263131082057953, -0.41479170322418213, 0.2141488790512085, -0.1099284291267395, -1.0678460597991943, -0.07630764693021774, -0.8491101861000061, 0.4707590639591217, 1.219632625579834, 1.3928014039993286, -1.1422202587127686, -0.1807214319705963, -1.7366615533828735, -0.11078070849180222, -0.7224935293197632, 0.39443397521972656, -2.0229685306549072, -0.08529669791460037, -1.8603867292404175, -2.1972827911376953, -1.4362645149230957, -0.9683982133865356, 0.9234545826911926, 0.10176943242549896, -0.8038351535797119, 0.9879541397094727, -0.29705968499183655, -1.7593162059783936, 1.069352149963379, -2.2527620792388916 ]